/* Category page */
.category-page {
  padding-bottom: 50px;
}

/* Left column - category sidebar */
#product-category #column-left {
  padding-right: 20px;
}

.category-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: Gilroy, sans-serif;
  border: 1px solid #e8e8e8;
}

.category-sidebar-item {
  border: none;
  border-bottom: none;
}

.category-sidebar-item a {
  display: block;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  color: #000;
  padding: 15px 20px;
  border-bottom: 1px solid #e8e8e8;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.category-sidebar-item a:hover {
  background: #f5f5f5;
  text-decoration: none;
}

.category-sidebar-item--active a {
  background: #A2947A;
  color: #fff;
}

.category-sidebar-item--active a:hover {
  background: #8f826c;
  color: #fff;
  text-decoration: none;
}

.category-sidebar-item--child a {
  padding-left: 40px;
}

/* Content area */
@media(min-width: 768px) {
  .category-content {
    padding-left: 0px !important;
  }
}

.category-heading {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 34px;
  color: #000;
  margin-top: 0px;
  margin-bottom: -8px;
}

.category-description-block {
  margin-bottom: 24px;
}

.category-refine-title {
  font-family: Gilroy, sans-serif;
  font-size: 18px;
  margin: 0 0 12px 0;
}

.category-refine-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-refine-list li {
  margin-bottom: 8px;
}

.category-refine-list a {
  color: #000;
  text-decoration: none;
}

.category-refine-list a:hover {
  text-decoration: underline;
}

/* Toolbar */
.category-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 34px;
  margin-bottom: 50px;
}

.category-view-toggle {
  display: flex;
  gap: 16px;
  position: relative;
  top: -12px;
}

.view-btn {
  padding: 0;
  outline: none;
  border: none;
  background: none;
  cursor: pointer;
  margin: 0px;
  opacity: .20;
}

.view-btn.active {
  opacity: 1;
}


.view-btn-grid::after {
  content: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMTYiIHZpZXdCb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iIgaGVpZ2h0PSI0IiBmaWxsPSJibGFjayIvPgo8cmVjdCB4PSIxNiIgd2lkdGg9IjYiIGhlaWdodD0iNCIgZmlsbD0iYmxhY2siLz4KPHJlY3QgeD0iMTYiIHk9IjYiIHdpZHRoPSI2IiBoZWlnaHQ9IjQiIGZpbGw9ImJsYWNrIi8+CjxyZWN0IHg9IjE2IiB5PSIxMiIgd2lkdGg9IjYiIGhlaWdodD0iNCIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==);
  display: block;
  width: 22px;
  height: 16px;
}

.category-compare-link {
  display: inline-block;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  color: #a2947a;
  text-decoration: none;
  min-width: 190px;
  position: relative;
  top: -7px;
}

.category-compare-link:hover {
  color: #000;
}

.category-sort,
.category-limit {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-sort label,
.category-limit label {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 0px;
}

.category-toolbar select {
  -moz-appearance:none;
  -webkit-appearance:none;
  appearance:none;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzIDRMOCA5TDMgNCIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLW9wYWNpdHk9IjAuNCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+Cjwvc3ZnPgo=) !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 14px !important;
  padding-right: 30px;
}

.category-sort .form-control,
.category-limit .form-control {
  display: inline-block;
  width: auto;
  background: #f4f4f4;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  color: #000;
  border: none;
  outline: none;
  box-shadow: none;
  border-radius: 0px;
  height: 45px;
}


.category-sort,
.category-limit {
  width: 100%;
  min-width: 240px;
}

/* Product grid */
.category-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.category-product-item {
  min-width: 0;
}

.category-product-item .product-card {
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.category-product-item .product-card:hover {
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.12);
}

.category-product-item .product-image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.category-product-item .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-product-item .product-card:hover .product-image img {
  transform: scale(1.05);
}

.category-product-item .product-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-product-item .product-name {
  margin: 0 0 16px 0;
  font-family: Gilroy, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
}

.category-product-item .product-name a {
  color: #000;
  text-decoration: none;
}

.category-product-item .product-name a:hover {
  text-decoration: underline;
}

.category-product-item .product-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.category-product-item .spec-item {
  display: flex;
  align-items: center;
  font-family: Gilroy, sans-serif;
  font-size: 14px;
  color: #666;
}

.category-product-item .spec-icon {
  margin-right: 6px;
  flex-shrink: 0;
}

.category-product-item .product-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  margin-bottom: 16px;
}

.category-product-item .price-regular,
.category-product-item .price-special {
  font-family: Gilroy, sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #000;
}

.category-product-item .price-old {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.category-product-item .product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.product-buy-btn {
  padding: 10px 20px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-family: Gilroy, sans-serif;
  font-size: 14px;
  cursor: pointer;
  flex: 1;
  transition: background 0.2s, color 0.2s;
}

.product-buy-btn:hover {
  background: #000;
  color: #fff;
}

.product-wishlist-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.product-wishlist-btn:hover {
  color: #000;
  border-color: #000;
}

/* List view */
.category-product-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.category-product-list .product-buy-btn {
  max-width: 220px;
}

.category-product-list .category-product-item .product-card {
  flex-direction: row;
  max-width: 100%;
}

.category-product-list .category-product-item .product-image {
  width: 200px;
  min-width: 200px;
  height: 200px;
}

.category-product-list .category-product-item .product-info {
  flex: 1;
  padding: 24px;
}

/* Pagination */
.category-pagination-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Empty category state */
.category-empty-state {
  text-align: center;
  padding: 48px 24px;
  margin: 32px 0;
  background: #f8f7f5;
  border-radius: 8px;
}

.category-empty {
  font-family: Gilroy, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #666;
  margin: 0 0 24px 0;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.category-buttons {
  margin-top: 0;
}

.category-continue-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: #A2947A;
  color: #fff;
  font-family: Gilroy, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.category-continue-btn:hover {
  background: #8f826c;
  color: #fff;
  text-decoration: none;
}

@media(max-width: 1200px) {
  .category-toolbar {
    flex-wrap: wrap;
  }

  .category-view-toggle,
  .category-compare-link {
    top: 0px;
  }

  .category-toolbar {
    gap: 20px;
  }

  .category-compare-link {
    top: 5px;
  }
  
  .category-sidebar-item a {
    font-size: 16px;
    padding: 15px;
  }
}

  .category-sort,
  .category-limit {
    width: 100%;
  }

@media (max-width: 991px) {
  .category-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {

  #category-product-container.category-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
  }

  #category-product-container.category-product-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
  }

  .category-view-toggle {
    display: flex;
    gap: 16px;
  }

  .category-row #column-left {
    padding-right: 0;
    margin-bottom: 24px;
  }

  .category-heading {
    font-size: 32px;
  }

  .category-product-list .category-product-item .product-card {
    flex-direction: column;
  }

  .category-product-list .category-product-item .product-image {
    width: 100%;
    min-width: 0;
    height: 240px;
  }
}
