
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

@media (max-width: 991px) {
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* SIDEBAR FILTER WIDGETS */
.shop-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.filter-widget {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.5rem;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.25rem;
  color: var(--color-text-main);
}

.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-range-inputs input {
  padding: 0.5rem;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  width: 80px;
}

.btn-apply-filter {
  background-color: var(--color-primary);
  color: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--border-radius-sm);
  transition: background-color 0.2s;
}

.btn-apply-filter:hover {
  background-color: var(--color-primary-hover);
}

.filter-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-options-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-options-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  accent-color: var(--color-primary);
}

.filter-options-list label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.filter-options-list .count {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* SHOP MAIN AREA */
.shop-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

.shop-title {
  font-size: 1.75rem;
  font-weight: var(--font-weight-headline-max);
}

.shop-control-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.results-count {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.shop-sorting-wrapper select {
  padding: 0.5rem 1.5rem 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  color: var(--color-text-main);
  background-color: #fff;
  cursor: pointer;
}

/* PRODUCT CARD GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

/* PRODUCT CARD */
.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #fff;
  overflow: hidden;
}

.product-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card-thumb img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--border-radius-sm);
  text-transform: uppercase;
}

.badge-sale {
  background-color: #ef4444;
  color: #fff;
}

.badge-new {
  background-color: #10b981;
  color: #fff;
}

.product-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.05rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.product-title a:hover {
  color: var(--color-primary);
}

.product-card-price {
  font-size: 1.15rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.product-card-price del {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: var(--font-weight-regular);
  margin-left: 0.5rem;
}

.product-swatches-preview {
  display: flex;
  gap: 0.35rem;
  margin-top: auto;
}

.swatch-preview-item {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* SUBCATEGORY PILLS */
.subcategories-section {
  margin-bottom: 2.5rem;
}

.subcategory-pill-list {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.subcat-pill-link {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  padding: 0.45rem 1rem;
  border-radius: var(--border-radius-pill);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  transition: all 0.2s;
}

.subcat-pill-link:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.subcat-count {
  opacity: 0.7;
  font-weight: var(--font-weight-regular);
  margin-left: 0.25rem;
}

/* CATEGORY REVIEW FORM */
.category-review-section {
  border-top: 1px solid var(--color-border);
  padding: 4rem 0;
  max-width: 700px;
}

.category-review-form {
  margin-top: 2rem;
}

/* FAQ ACCORDION */
.category-faq-section {
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.faq-accordion-group {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-accordion-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
}

.faq-accordion-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}

/* SEO EXPANDABLE BOX */
.category-seo-text-section {
  padding: 4rem 0;
  border-top: 1px solid var(--color-border);
}

.seo-expandable-wrapper {
  position: relative;
  max-height: 180px;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.seo-expandable-wrapper[aria-expanded="true"] {
  max-height: 2000px;
}

.seo-expandable-wrapper[aria-expanded="false"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-bg-main));
  pointer-events: none;
}

.seo-content-inner {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.btn-seo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  font-size: 0.9rem;
  margin-top: 1.5rem;
  cursor: pointer;
}

.btn-seo-toggle svg {
  fill: currentColor;
  transition: transform 0.3s;
}

.seo-expandable-wrapper[aria-expanded="true"] .btn-seo-toggle svg {
  transform: rotate(180deg);
}
