/* Shop Page Layout */
.shop-page-wrapper {
  min-height: 100vh;
  background: var(--bg-light);
  font-family: 'Plus Jakarta Sans', sans-serif;
}



/* Mobile sticky header bar */
.shop-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  background: white;
  border-bottom: 1px solid #EDE9E2;
  position: sticky;
  top: 0;
  z-index: 200;
  gap: 0.75rem;
}

.shop-mobile-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark-charcoal);
  flex: 1;
  text-align: center;
  margin: 0;
}

.back-home-shop {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--dark-charcoal);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  transition: background 0.2s;
  flex-shrink: 0;
}
.back-home-shop:hover { background: #f0ede8; }

.shop-filter-toggle {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
  transition: background 0.2s;
}
.shop-filter-toggle:hover { background: var(--primary-dark); }

/* Layout */
.shop-layout {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
}

/* Sidebar Filters */
.shop-sidebar {
  width: 280px;
  min-width: 280px;
  background: white;
  border-right: 1px solid #EDE9E2;
  min-height: calc(100vh - 72px);
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}

.sidebar-inner {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1.5px solid #EDE9E2;
  flex-wrap: wrap;
}

.sidebar-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-charcoal);
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.sidebar-header h3 i { color: var(--primary); }

.sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: #6c757d;
  padding: 0.3rem;
  border-radius: 50%;
}
.sidebar-close-btn:hover { background: #f0ede8; color: var(--primary); }

.clear-all-btn {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-family: inherit;
}
.clear-all-btn:hover { color: var(--primary-dark); }

/* Filter Groups */
.filter-group {
  margin-bottom: 1.75rem;
}

.filter-group-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #8C877D;
  margin-bottom: 0.85rem;
}

/* Category list */
.filter-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-cat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: #5A554C;
  transition: all 0.2s ease;
  user-select: none;
}

.filter-cat-item i {
  width: 18px;
  color: #A09A90;
  font-size: 0.9rem;
}

.filter-cat-item .cat-count {
  margin-left: auto;
  font-size: 0.72rem;
  background: #F0EDE8;
  color: #7E7970;
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 700;
}

.filter-cat-item:hover {
  background: #FAF7F2;
  color: var(--primary-dark);
}

.filter-cat-item.active {
  background: linear-gradient(135deg, rgba(193,122,90,0.12), rgba(193,122,90,0.06));
  color: var(--primary-dark);
  font-weight: 700;
}
.filter-cat-item.active i { color: var(--primary); }
.filter-cat-item.active .cat-count {
  background: var(--primary);
  color: white;
}

/* Price range */
.price-range-display {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.price-range-display span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.price-sliders {
  position: relative;
  margin-bottom: 1rem;
}

.price-range-input {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 10px;
  background: #EAE6DF;
  outline: none;
  display: block;
  margin-bottom: 0.6rem;
  cursor: pointer;
}

.price-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(193,122,90,0.35);
  transition: transform 0.2s;
}
.price-range-input::-webkit-slider-thumb:hover { transform: scale(1.15); }

.price-inputs-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-input-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-input-box label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8C877D;
}

.price-input-box input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1.5px solid #EAE6DF;
  border-radius: 10px;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--dark-charcoal);
  outline: none;
  transition: border-color 0.2s;
}

.price-input-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(193,122,90,0.1);
}

.price-range-sep {
  font-size: 1rem;
  color: #A09A90;
  margin-top: 1.2rem;
}

/* Mobile sort list inside sidebar */
.sort-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sort-item {
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: #5A554C;
  transition: all 0.2s ease;
  user-select: none;
}

.sort-item:hover {
  background: #FAF7F2;
  color: var(--primary-dark);
}

.sort-item.active {
  background: linear-gradient(135deg, rgba(193,122,90,0.12), rgba(193,122,90,0.06));
  color: var(--primary-dark);
  font-weight: 700;
}

/* Apply button (mobile sidebar) */
.apply-filters-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.85rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  margin-top: 0.5rem;
  display: none;
}
.apply-filters-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(193,122,90,0.25);
}

/* Main section */
.shop-main {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 2rem 3rem;
}

/* Desktop top-bar */
.shop-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.shop-breadcrumb {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-charcoal);
}

.shop-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.shop-search-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: white;
  border: 1.5px solid #EAE6DF;
  border-radius: 50px;
  padding: 0.55rem 1rem;
  transition: border-color 0.2s;
}

.shop-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(193,122,90,0.1);
}

.shop-search-box i { color: #A09A90; font-size: 0.85rem; }

.shop-search-box input {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--dark-charcoal);
  width: 200px;
  background: transparent;
}

.shop-sort-select-wrap select {
  border: 1.5px solid #EAE6DF;
  border-radius: 50px;
  padding: 0.55rem 2.2rem 0.55rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-charcoal);
  outline: none;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C17A5A'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 0.4rem center / 20px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.shop-sort-select-wrap select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(193,122,90,0.1);
}

/* Active filter chips */
.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(193,122,90,0.1);
  border: 1px solid rgba(193,122,90,0.3);
  color: var(--primary-dark);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.filter-chip:hover {
  background: rgba(193,122,90,0.18);
  transform: translateY(-1px);
}

.filter-chip .fa-times {
  font-size: 0.7rem;
  margin-left: 2px;
  opacity: 0.7;
}

/* Results count */
.results-count {
  font-size: 0.82rem;
  color: #8C877D;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

/* Product grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.75rem;
}

/* Product card */
.shop-product-card {
  background: white;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  border: 1px solid #F0EDE8;
  transition: all 0.3s cubic-bezier(0.2,0,0,1);
  display: flex;
  flex-direction: column;
}

.shop-product-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: rgba(193,122,90,0.18);
}

.shop-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.shop-card-img-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

/* Hover Add to Bag Slide up action */
.shop-product-card:hover .hover-add-btn {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

.hover-add-btn:hover {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

.shop-card-body {
  padding: 1.1rem 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.shop-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-charcoal);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 2.7em;
}

.shop-card-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.shop-card-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.shop-card-actions .btn {
  flex: 1;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

/* Empty state */
.shop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  gap: 1rem;
  color: #8C877D;
}

.shop-empty i {
  font-size: 3rem;
  opacity: 0.3;
}

.shop-empty h3 {
  font-size: 1.25rem;
  color: var(--dark-charcoal);
  margin: 0;
}

.shop-empty p {
  font-size: 0.9rem;
  margin: 0;
  max-width: 280px;
}

/* Mobile filter drawer overlay */
.filter-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  z-index: 900;
}
.filter-drawer-overlay.active { display: block; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .shop-mobile-bar { display: flex; }

  .shop-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 88%;
    max-width: 340px;
    height: 100dvh;
    max-height: 100dvh;
    border-right: none;
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
    z-index: 950;
    transition: left 0.38s cubic-bezier(0.2,0,0,1);
  }

  .shop-sidebar.drawer-open { left: 0; }
  .sidebar-close-btn { display: flex; }
  .apply-filters-btn { display: block; }

  .shop-main {
    padding: 1rem 1rem 2.5rem;
  }

  .shop-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .shop-topbar-right {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .shop-search-box { width: 100%; }
  .shop-search-box input { width: 100%; }
  .shop-sort-select-wrap select { width: 100%; }

  .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .shop-card-img-wrap img { height: 175px !important; }
  .shop-card-actions { flex-direction: column; }
}

@media (max-width: 768px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.95rem !important;
  }
  .shop-card-img-wrap img { height: 160px !important; }
  .shop-card-actions { flex-direction: column !important; }
}

@media (max-width: 480px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .shop-card-img-wrap img { height: 150px !important; }
  .shop-card-body { padding: 0.85rem 0.9rem 1rem; }
  .shop-card-name { font-size: 0.82rem; }
  .shop-card-price { font-size: 1rem; }
  .shop-card-actions .btn { font-size: 0.72rem; padding: 0.5rem 0.5rem; }
}

/* --- PREMIUM SHOP PAGE ENHANCEMENTS: DOUBLE SLIDERS, PAGINATION & CHEVRONS --- */

/* Sidebar Accordion Chevrons and transitions */
.accordion-toggle {
  color: #A09A90;
  border-radius: 4px;
  transition: transform 0.25s ease, background-color 0.2s, color 0.2s;
}
.accordion-toggle:hover {
  background-color: #FAF6F0;
  color: var(--primary);
}

.filter-subcat-list {
  border-left: 1.5px solid #F0EDE8;
  padding-left: 0.25rem !important;
}

.filter-subcat-list .filter-cat-item {
  padding: 0.45rem 0.65rem !important;
  border-radius: 8px !important;
}

/* Double range slider absolute track overlaps */
.price-sliders input[type="range"] {
  pointer-events: none;
  cursor: pointer;
}

.price-sliders input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
}

.price-sliders input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
}

/* Pagination circular layout */
.pagination-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #EAE6DF;
  background: white;
  color: var(--dark-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.pagination-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2.5px);
  box-shadow: 0 6px 14px rgba(193, 122, 90, 0.14);
}

.pagination-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(193, 122, 90, 0.28);
}

.pagination-btn.disabled {
  background: #FAF8F5;
  border-color: #EDEAE5;
  color: #C0BCAE;
  cursor: not-allowed;
  box-shadow: none;
  transform: none !important;
  pointer-events: none;
}

/* Shimmer Skeletal overlay animations */
@keyframes loading-shimmer-move {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.loading-shimmer-item {
  background: linear-gradient(90deg, #FAF9F6 25%, #EAE6DF 37%, #FAF9F6 63%);
  background-size: 200% 100%;
  animation: loading-shimmer-move 1.5s infinite linear;
}

/* Category item grid list anchors clean typography resets */
.filter-cat-list .cat-link {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

/* Card images horizontal sliding track layout */
.card-images-slider-track {
  display: flex;
  width: 100%;
}
.card-images-slider-track img {
  width: 100%;
  flex-shrink: 0;
  height: 220px;
  object-fit: cover;
  pointer-events: none;
}

/* Card index indicator dots hover displays */
.shop-product-card:hover .card-slideshow-dots {
  opacity: 1 !important;
}

.slideshow-dot.active {
  background-color: var(--primary) !important;
  transform: scale(1.2) !important;
}

/* Responsive overrides for images and cards at the absolute bottom of the stylesheet to ensure correct loading order */
@media (max-width: 900px) {
  .shop-card-img-wrap img,
  .card-images-slider-track img {
    height: 175px !important;
  }
}
@media (max-width: 768px) {
  .shop-card-img-wrap img,
  .card-images-slider-track img {
    height: 160px !important;
  }
}
@media (max-width: 480px) {
  .shop-card-img-wrap img,
  .card-images-slider-track img {
    height: 150px !important;
  }
  .shop-card-name {
    font-size: 0.8rem !important;
  }
}


