/**
 * Shop Page Styles
 * RojaGold Block Theme
 */

/* ========================================
   PAGE BACKGROUND
======================================== */
.shop-page-main {
  background: var(--wp--preset--color--base, #f8fafc) !important;
}

body.woocommerce-shop {
  background: var(--wp--preset--color--base, #f8fafc) !important;
}

/* Keep shop content safely below fixed navigation on all viewports */
body.woocommerce-shop,
body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag {
  padding-top: calc(var(--header-height, 80px) + 2rem) !important;
}

@media (max-width: 1024px) {
  body.woocommerce-shop,
  body.post-type-archive-product,
  body.tax-product_cat,
  body.tax-product_tag {
    padding-top: calc(var(--header-height-mobile, 70px) + 2rem) !important;
  }
}

/* ========================================
   HERO SECTION
======================================== */
.shop-hero {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  height: 394px;
  overflow: hidden;
  margin-bottom: 60px;
}

/* Background Image Layer */
.shop-hero-background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Gradient Overlay Layer */
.shop-hero-gradient-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.4) 30%,
    rgba(34, 34, 34, 0.8) 70%,
    rgba(34, 34, 34, 0.95) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Deprecated - kept for compatibility */
.shop-hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.shop-hero-background .wp-block-cover__background,
.shop-hero-background::before,
.shop-hero-background::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.shop-hero-background .wp-block-cover__background {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.4) 30%,
    rgba(34, 34, 34, 0.8) 70%,
    rgba(34, 34, 34, 0.95) 100%
  ) !important;
}

.shop-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.shop-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 394px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.1) 30%,
    rgba(34, 34, 34, 0.7) 70%,
    rgba(34, 34, 34, 1) 100%
  );
  pointer-events: none;
}

.shop-hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ========================================
   SEARCH BOX
======================================== */
.shop-search-bar-wrapper {
  width: 100%;
  margin-top: 2rem;
  padding: 1.5rem 0;
}

.shop-search-bar-wrapper .shop-search-wrapper {
  align-items: stretch;
  width: 100%;
}

.shop-search-bar-wrapper .shop-search-form {
  width: 100%;
  background: #e8e4de;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.shop-search-container {
  max-width: 600px;
  width: 100%;
}

.shop-search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.shop-search-form:focus-within {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.shop-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 20px;
  font-family: "PeydaFaNumWeb", sans-serif !important;
  font-size: 16px;
  color: #222;
  outline: none;
  direction: rtl;
  text-align: right;
}

.shop-search-input::placeholder {
  color: #999;
  opacity: 1;
}

.shop-search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #403c27;
  color: #e5e0e0;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;

  gap: 8px;
  font-family: "PeydaFaNumWeb", sans-serif !important;
  font-size: 14px;
  white-space: nowrap;
}

.shop-search-button:hover {
  background: #302f29;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.shop-search-button:active {
  transform: translateY(0);
}

/* Search Wrapper */
.shop-search-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

/* Search Tag */
.shop-search-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 8px 16px;
  color: #fff;
  font-family: "PeydaFaNumWeb", sans-serif;
  font-size: 14px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shop-search-tag-text {
  color: #fff;
}

.shop-search-tag-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
}

.shop-search-tag-clear:hover {
  background: rgba(255, 100, 100, 0.6);
  transform: scale(1.1);
}

.shop-search-tag-clear:active {
  transform: scale(0.95);
}

/* ========================================
   MAIN LAYOUT
======================================== */
.shop-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px 80px;
  direction: rtl;
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

/* ========================================
   SIDEBAR
======================================== */
.shop-sidebar {
  position: sticky;
  top: 100px;
  background: #1a1a1a;
  border-radius: 16px;
  padding: 24px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.shop-sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #2a2a2a;
}

.shop-sidebar-icon {
  width: 24px;
  height: 24px;
  color: #d4af37;
}

.shop-sidebar-title {
  font-family: "PeydaFaNumWeb", sans-serif !important;
  font-size: 20px;
  font-weight: 600;
  color: #e5e0e0;
  margin: 0;
}

/* Filter Widgets Styles */
.filter-widget {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #2a2a2a;
}

.filter-widget:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-widget-title {
  font-family: "PeydaFaNumWeb", sans-serif !important;
  font-size: 16px;
  font-weight: 500;
  color: #d4af37;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Generic filter styles for compatibility */
.filter-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-widget li {
  margin-bottom: 10px;
}

.filter-widget label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: "PeydaFaNumWeb", sans-serif !important;
  font-size: 14px;
  color: #e5e0e0;
  transition: color 0.2s ease;
}

.filter-widget label:hover {
  color: #d4af37;
}

.filter-widget input[type="checkbox"],
.filter-widget input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #d4af37;
}

.filter-widget select {
  width: 100%;
  padding: 10px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  color: #e5e0e0;
  font-family: "PeydaFaNumWeb", sans-serif !important;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-widget select:hover,
.filter-widget select:focus {
  border-color: #d4af37;
  outline: none;
}

.filter-widget button,
.filter-widget .button {
  width: 100%;
  padding: 10px 16px;
  background: #403c27;
  border: none;
  border-radius: 8px;
  color: #e5e0e0;
  font-family: "PeydaFaNumWeb", sans-serif !important;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.filter-widget button:hover,
.filter-widget .button:hover {
  background: #302f29;
  transform: translateY(-2px);
}

/* Color swatches (for color filters) */
.filter-widget .color-swatch {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #3a3a3a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-widget .color-swatch:hover,
.filter-widget .color-swatch.selected {
  border-color: #d4af37;
  transform: scale(1.1);
}

/* Price Range Slider */
.filter-widget .price-slider {
  margin: 16px 0;
}

.filter-widget .price-input {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.filter-widget .price-input input {
  flex: 1;
  padding: 8px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  color: #e5e0e0;
  font-family: "PeydaFaNumWeb", sans-serif !important;
  font-size: 13px;
  text-align: center;
}

/* ========================================
   PRODUCTS SECTION
======================================== */
.shop-products {
  min-height: 600px;
}

.shop-products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid #2a2a2a;
  flex-wrap: wrap;
  gap: 16px;
}

.shop-products-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-products-icon {
  width: 24px;
  height: 24px;
  color: #d4af37;
}

.shop-products-title {
  font-family: "PeydaFaNumWeb", sans-serif !important;
  font-size: 24px;
  font-weight: 600;
  color: #e5e0e0;
  margin: 0;
}

.shop-products-count {
  font-family: "PeydaFaNumWeb", sans-serif !important;
  font-size: 14px;
  color: #999;
  margin-right: 12px;
}

.shop-products-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.shop-sort-select,
.shop-view-select {
  padding: 10px 16px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #e5e0e0;
  font-family: "PeydaFaNumWeb", sans-serif !important;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-sort-select:hover,
.shop-sort-select:focus,
.shop-view-select:hover,
.shop-view-select:focus {
  border-color: #d4af37;
  outline: none;
}

/* Mobile Filter Toggle */
.shop-mobile-filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #403c27;
  border: none;
  border-radius: 8px;
  color: #e5e0e0;
  font-family: "PeydaFaNumWeb", sans-serif !important;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  width: 100%;
  justify-content: center;
}

.shop-mobile-filter-toggle:hover {
  background: #302f29;
}

/* ========================================
   PRODUCT GRID
======================================== */
.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ========================================
   PAGINATION
======================================== */
.shop-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #2a2a2a;
}

.shop-pagination a,
.shop-pagination span,
.shop-pagination button,
.shop-pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #e5e0e0;
  font-family: "PeydaFaNumWeb", sans-serif !important;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.shop-pagination a:hover,
.shop-pagination button:hover,
.shop-pagination-button:hover {
  background: #403c27;
  border-color: #d4af37;
  color: #ffffff;
}

.shop-pagination a:disabled,
.shop-pagination button:disabled,
.shop-pagination-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.shop-pagination .current,
.shop-pagination-button.current {
  background: #d4af37;
  border-color: #d4af37;
  color: #1a1a1a;
  font-weight: 600;
}

/* ========================================
   LOADING & EMPTY STATES
======================================== */
.shop-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 20px;
}

.shop-loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #2a2a2a;
  border-top-color: #d4af37;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.shop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
  text-align: center;
  padding: 40px;
}

.shop-empty-icon {
  width: 80px;
  height: 80px;
  color: #3a3a3a;
}

.shop-empty-title {
  font-family: "PeydaFaNumWeb", sans-serif !important;
  font-size: 24px;
  color: #e5e0e0;
  margin: 0;
}

.shop-empty-text {
  font-family: "PeydaFaNumWeb", sans-serif !important;
  font-size: 16px;
  color: #999;
  margin: 0;
  max-width: 400px;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .shop-search-bar-wrapper {
    padding: 0 !important;
    margin-top: 0 !important;
  }

  .shop-container {
    padding: 0 40px 60px;
  }

  .shop-layout {
    grid-template-columns: 240px 1fr;
    gap: 30px;
  }

  .shop-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .shop-hero {
    height: 300px;
    margin-bottom: 30px;
  }

  .shop-hero-overlay {
    height: 300px;
  }

  .shop-container {
    padding: 0 20px 40px;
  }

  .shop-layout {
    display: block;
  }

  .shop-sidebar {
    display: none;
  }

  .shop-mobile-filter-toggle {
    display: flex;
  }

  .shop-products-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-products-controls {
    width: 100%;
    justify-content: space-between;
  }

  .shop-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .shop-search-button {
    padding: 12px 16px;
  }

  .shop-search-button span {
    display: none;
  }

  .shop-products-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   DRAWER (Mobile Filters)
======================================== */
.shop-filter-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 320px;
  background: #1a1a1a;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 10000; /* Higher than header navigation */
  overflow-y: auto;
}

.shop-filter-drawer.open {
  transform: translateX(0);
}

.shop-filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #2a2a2a;
  position: sticky;
  top: 0;
  background: #1a1a1a;
  z-index: 10;
}

.shop-filter-drawer-title {
  font-family: "PeydaFaNumWeb", sans-serif !important;
  font-size: 20px;
  font-weight: 600;
  color: #e5e0e0;
  margin: 0;
}

.shop-filter-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: #e5e0e0;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
}

.shop-filter-drawer-close:hover {
  background: #2a2a2a;
}

.shop-filter-drawer-content {
  padding: 20px;
}

.shop-filter-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999; /* Higher than header but below drawer */
}

.shop-filter-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* RTL specific */
[dir="rtl"] .shop-filter-drawer {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}

[dir="rtl"] .shop-filter-drawer.open {
  transform: translateX(0);
}

/* ========================================
   UTILITIES
======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========================================
   SHOP FILTERS COMPONENT
======================================== */
.shop-filters {
  padding: 0;
}

.shop-filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #2a2a2a;
}

.shop-filters-icon {
  color: #d4af37;
}

.shop-filters-title {
  font-family: "PeydaFaNumWeb", sans-serif !important;
  font-size: 1.125rem;
  font-weight: 600;
  color: #e5e0e0;
  margin: 0;
}

.shop-filters-clear {
  background: transparent;
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #ef4444;
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.shop-filters-clear:hover {
  background-color: rgba(220, 38, 38, 0.15);
  border-color: rgba(220, 38, 38, 0.5);
}

.shop-filter-groups {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shop-filter-group {
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 0.5rem;
}

.shop-filter-group:last-child {
  border-bottom: none;
}

.shop-filter-group-header {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  color: #d4af37;
}

.shop-filter-group-header:hover {
  background-color: transparent;
}

.shop-filter-group-header:hover span {
  color: #e5c366;
}

.shop-filter-group-header span {
  font-family: "PeydaFaNumWeb", sans-serif !important;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #d4af37;
  margin: 0;
}

.shop-filter-group-icon {
  color: #d4af37;
  transition: transform 0.2s;
}

.shop-filter-group-icon.expanded {
  transform: rotate(180deg);
}

.shop-filter-group-content {
  padding: 0.5rem 0;
  border-top: none;
  max-height: 260px;
  overflow-y: auto;
}

.shop-filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.25rem 0;
}

.shop-filter-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  padding: 0.5rem 0.625rem;
  border-radius: 6px;
  transition: background-color 0.15s;
}

.shop-filter-option:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Active/selected state for filter options */
.shop-filter-option.selected {
  background-color: rgba(212, 175, 55, 0.12);
  border-right: 3px solid #d4af37;
}

.shop-filter-option.selected .shop-filter-option-label {
  color: #d4af37;
  font-weight: 500;
}

.shop-filter-option.selected .shop-filter-option-count {
  background: rgba(212, 175, 55, 0.2);
  color: #d4af37;
}

.shop-filter-option input[type="checkbox"],
.shop-filter-option input[type="radio"] {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: #d4af37;
  cursor: pointer;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #555;
  background: transparent;
  transition: all 0.2s ease;
}

.shop-filter-option input[type="radio"] {
  border-radius: 50%;
}

.shop-filter-option input[type="checkbox"] {
  border-radius: 4px;
}

.shop-filter-option input[type="radio"]:checked,
.shop-filter-option input[type="checkbox"]:checked {
  background-color: #d4af37;
  border-color: #d4af37;
  box-shadow: inset 0 0 0 2.5px #1a1a1a;
}

.shop-filter-option input[type="radio"]:hover,
.shop-filter-option input[type="checkbox"]:hover {
  border-color: #d4af37;
}

.shop-filter-option-label {
  font-family: "PeydaFaNumWeb", sans-serif !important;
  font-size: 0.875rem;
  color: #c0bbb5;
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-filter-option:hover .shop-filter-option-label {
  color: #e5e0e0;
}

.shop-filter-option-count {
  font-size: 0.75rem;
  color: #777;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
}

/* No filters message */
.shop-filters-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #777;
  font-size: 0.875rem;
}

/* Scrollbar for filter content */
.shop-filter-group-content::-webkit-scrollbar {
  width: 5px;
}

.shop-filter-group-content::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.shop-filter-group-content::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

.shop-filter-group-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Mobile drawer with ShopFilters */
.shop-filter-drawer-content .shop-filters {
  padding: 0 1rem 1rem;
}

.shop-filter-drawer-content .shop-filters-header {
  display: none; /* Already have header in drawer */
}

/* Active filter badge in mobile toggle */
.filter-count-badge {
  background: #d4af37;
  color: #1a1a1a;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
  margin-right: 0.25rem;
}

/* ========================================
   React Source Visual Override (Light Theme)
   Style-only override: keeps existing shop structure and functionality.
======================================== */

.shop-page-main {
  background: #f8fafc !important;
}

.shop-container {
  max-width: 1440px;
  padding: 0 20px 80px;
}

.shop-layout {
  grid-template-columns: 300px 1fr;
  gap: 28px;
}

.shop-sidebar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.shop-sidebar-header {
  border-bottom-color: #e2e8f0;
}

.shop-sidebar-icon,
.shop-filters-icon {
  color: #8a0020;
}

.shop-sidebar-title,
.shop-filters-title,
.shop-products-title {
  color: #0f172a;
}

.shop-products-count {
  color: #64748b;
}

.shop-products-header {
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 24px;
}

.shop-sort-select,
.shop-view-select {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #334155;
}

.shop-sort-select:hover,
.shop-sort-select:focus,
.shop-view-select:hover,
.shop-view-select:focus {
  border-color: #b54962;
}

.shop-mobile-filter-toggle {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #8a0020;
}

.shop-mobile-filter-toggle:hover {
  background: #f8fafc;
}

.shop-products-grid {
  gap: 20px;
}

.shop-pagination a,
.shop-pagination span,
.shop-pagination button,
.shop-pagination-button {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #334155;
}

.shop-pagination a:hover,
.shop-pagination button:hover,
.shop-pagination-button:hover {
  background: #fff1f4;
  border-color: #b54962;
  color: #8a0020;
}

.shop-pagination .current,
.shop-pagination-button.current {
  background: #8a0020;
  border-color: #8a0020;
  color: #ffffff;
}

.shop-loading-spinner {
  border-color: #e2e8f0;
  border-top-color: #8a0020;
}

.shop-empty-title {
  color: #0f172a;
}

.shop-empty-text {
  color: #64748b;
}

/* Filter groups in light style */
.shop-filters-header,
.shop-filter-group {
  border-bottom-color: #e2e8f0;
}

.shop-filter-group-header span,
.shop-filter-group-header,
.shop-filter-option.selected .shop-filter-option-label {
  color: #8a0020;
}

.shop-filter-option {
  border-radius: 8px;
}

.shop-filter-option:hover {
  background: #f8fafc;
}

.shop-filter-option-label {
  color: #334155;
}

.shop-filter-option:hover .shop-filter-option-label {
  color: #111827;
}

.shop-filter-option input[type="checkbox"],
.shop-filter-option input[type="radio"] {
  border-color: #cbd5e1;
}

.shop-filter-option input[type="radio"]:checked,
.shop-filter-option input[type="checkbox"]:checked {
  background-color: #8a0020;
  border-color: #8a0020;
  box-shadow: inset 0 0 0 2.5px #ffffff;
}

.shop-filter-option-count {
  color: #64748b;
  background: #f1f5f9;
}

.shop-filters-clear {
  border-color: #fecdd3;
  color: #be123c;
}

.shop-filters-clear:hover {
  background-color: #fff1f2;
  border-color: #fda4af;
}

/* Mobile filter drawer in light style */
.shop-filter-drawer,
.shop-filter-drawer-header {
  background: #ffffff;
}

.shop-filter-drawer-title {
  color: #0f172a;
}

.shop-filter-drawer-close {
  color: #475569;
}

.shop-filter-drawer-close:hover {
  background: #f1f5f9;
}

.shop-filter-drawer-overlay {
  background: rgba(15, 23, 42, 0.42);
}

@media (max-width: 1024px) {
  .shop-container {
    padding: 0 16px 52px;
  }

  .shop-layout {
    gap: 20px;
  }

  .shop-products-grid {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .shop-products-header {
    margin-bottom: 18px;
  }
}
