/* ═══════════════════════════════════════════════════════════
   DIOURA ELEGANCE — Collection / Shop Page Styles
   Two-Column Boutique Layout with Left Sidebar Filters
   "Your style, Your choice."
═══════════════════════════════════════════════════════════ */

/* ── Collection Hero / Banner ───────────────────────────── */
.shop-banner {
  margin-top: var(--nav-h);
  min-height: clamp(190px, 15vw, 235px);
  background-color: #F8DEE5;
  background-image: url('/images/collection-banner.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

/* Subtle, light blush radial glow in the center for effortless text readability without washing out flowers */
.shop-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 85% at center, rgba(255, 246, 248, 0.46) 0%, rgba(255, 246, 248, 0.1) 68%, rgba(255, 246, 248, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.shop-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.65rem 1.5rem;
  z-index: 2;
}

.banner-text-content {
  max-width: 580px;
  text-align: center;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  animation: heroFadeInUp 0.65s var(--ease) 0.08s both;
}

.banner-subtag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-btn, #B04A62);
  margin-bottom: 0.3rem;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.85);
}

.shop-banner h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: var(--dark, #281B20);
  line-height: 1.15;
  margin: 0 0 0.3rem;
  letter-spacing: -0.015em;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.9);
}

.banner-desc {
  font-family: var(--font-sans);
  font-size: clamp(0.88rem, 1.05vw, 0.98rem);
  font-weight: 450;
  color: #4A333C;
  line-height: 1.45;
  margin: 0 0 0.3rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.85);
}

.banner-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.88rem, 1vw, 0.96rem);
  font-weight: 500;
  color: var(--rose-btn, #B04A62);
  margin: 0;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

/* ── Two-Column Shop Layout ────────────────────────────── */
.shop-layout-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.25rem;
  align-items: start;
  padding: 1.5rem 0 5rem;
}

/* ── Left Sidebar Filters ──────────────────────────────── */
.filter-drawer-backdrop {
  display: none;
}

.shop-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.filter-drawer-header,
.filter-drawer-footer {
  display: none;
}

.filter-drawer-body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.filter-group-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Categories List */
.sidebar-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-cat-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--dark);
  cursor: pointer;
  padding: 0.2rem 0;
  transition: color var(--t-hover) var(--ease-hover);
  user-select: none;
}
.sidebar-cat-item:hover {
  color: var(--rose-btn);
}
.sidebar-cat-item.active {
  color: var(--rose-btn);
  font-weight: 600;
}

.sidebar-cat-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--t-hover) var(--ease-hover);
}
.sidebar-cat-item.active .sidebar-cat-radio {
  border-color: var(--rose-btn);
}
.sidebar-cat-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose-btn);
  transform: scale(0);
  transition: transform var(--t-hover) var(--ease-hover);
}
.sidebar-cat-item.active .sidebar-cat-radio::after {
  transform: scale(1);
}

.cat-count {
  color: var(--light);
  font-size: 0.82rem;
  margin-left: auto;
}

/* Price Range Slider */
.price-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.price-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-tint);
  outline: none;
  border: 1px solid var(--border);
}
.price-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--rose-btn);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(176, 74, 98, 0.4);
  border: 2px solid var(--white);
}

.price-range-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  font-variant-numeric: tabular-nums;
  display: flex;
  justify-content: space-between;
}

/* Size Chips */
.size-chips-wrap {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.size-chip {
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  transition: all var(--t-hover) var(--ease-hover);
}
.size-chip:hover {
  border-color: var(--rose-btn);
  color: var(--rose-btn);
}
.size-chip.active {
  background: var(--rose-btn);
  border-color: var(--rose-btn);
  color: var(--white);
}

/* Color Filter Dots */
.color-chips-wrap {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.color-filter-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  padding: 0;
  transition: transform var(--t-hover) var(--ease-hover), box-shadow var(--t-hover) var(--ease-hover);
  position: relative;
}
.color-filter-btn:hover {
  transform: scale(1.15);
}
.color-filter-btn.active {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--rose-btn);
}

/* ── Right Main Area ───────────────────────────────────── */
.shop-main {
  display: flex;
  flex-direction: column;
}

/* Top bar: Results Count & Sort Dropdown */
.shop-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.shop-results-count {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--medium);
}

.shop-sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.shop-sort-label {
  font-size: 0.86rem;
  color: var(--medium);
}

.shop-sort-select {
  padding: 0.55rem 2rem 0.55rem 1.15rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A3E3D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 11px;
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--dark);
  cursor: pointer;
  outline: none;
  transition: border-color var(--t-hover) var(--ease-hover);
}
.shop-sort-select:focus {
  border-color: var(--rose-btn);
}

/* Mobile Filter Toggle Button */
.mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  transition: all var(--t-hover) var(--ease-hover);
}
.mobile-filter-btn:hover {
  border-color: var(--rose-btn);
  color: var(--rose-btn);
}
.mobile-filter-btn.active {
  background: var(--rose-btn);
  color: var(--white);
  border-color: var(--rose-btn);
}

/* 3-Column Collection Grid */
.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.65rem;
}

/* Empty State */
.no-results {
  text-align: center;
  padding: 4.5rem 1.5rem;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px dashed var(--border);
  grid-column: 1 / -1;
}

.mobile-sheet-sort-group {
  display: none;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 960px) {
  .mobile-sheet-sort-group {
    display: block;
  }
  .shop-banner {
    min-height: 200px;
    background-position: 18% center;
  }
  .banner-text-content {
    max-width: 520px;
  }

  .shop-layout-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .shop-top-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "count count"
      "filter sort";
    gap: 0.85rem 1rem;
    align-items: center;
    margin-bottom: 1.35rem;
    padding-bottom: 0.85rem;
  }

  .shop-results-count {
    grid-area: count;
    font-size: 0.88rem;
  }

  .mobile-filter-btn {
    grid-area: filter;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 42px;
    width: 100%;
    padding: 0 1rem;
    border-radius: var(--r-pill);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
  }

  .shop-sort-wrap {
    grid-area: sort;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 0.5rem;
  }

  .shop-sort-select {
    width: 100%;
    height: 42px;
    padding: 0 2rem 0 0.85rem;
    border-radius: var(--r-pill);
    font-size: 0.85rem;
  }

  .filter-drawer-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(40, 27, 32, 0.48);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 590;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .filter-drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .shop-sidebar {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 86dvh;
    background: #FAF1F3;
    z-index: 600;
    transform: translateY(105%);
    transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -8px 36px rgba(40, 27, 32, 0.22);
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 22px 22px 0 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }

  .shop-sidebar.open {
    transform: translateY(0);
  }

  .filter-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1rem;
    position: relative;
    border-bottom: 1px solid var(--border-light);
    background: #FAF1F3;
    flex-shrink: 0;
    min-height: 60px;
  }

  /* Bottom sheet drag handle */
  .filter-drawer-header::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 4px;
    background: rgba(176, 74, 98, 0.3);
    border-radius: 99px;
  }

  .filter-drawer-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }

  .filter-drawer-header-icon {
    stroke: var(--rose-btn);
    flex-shrink: 0;
  }

  .filter-drawer-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    letter-spacing: -0.01em;
  }

  .filter-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--dark);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--t-hover) var(--ease-hover);
    padding: 0;
    line-height: 1;
    box-shadow: var(--shadow-xs);
  }

  .filter-drawer-close:hover,
  .filter-drawer-close:active {
    background: var(--rose-btn);
    color: var(--white);
    border-color: var(--rose-btn);
    transform: scale(1.05);
  }

  .filter-drawer-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.25rem 1.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
  }

  .filter-drawer-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-light);
    background: #FAF1F3;
    flex-shrink: 0;
    box-shadow: 0 -4px 16px rgba(40, 27, 32, 0.05);
  }

  .btn-filter-reset {
    flex: 1;
    height: 44px;
    border-radius: var(--r-pill);
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--dark);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--t-hover) var(--ease-hover);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-filter-reset:hover {
    border-color: var(--rose-btn);
    color: var(--rose-btn);
    background: rgba(176, 74, 98, 0.05);
  }

  .btn-filter-apply {
    flex: 1.4;
    height: 44px;
    border-radius: var(--r-pill);
    border: 1.5px solid var(--rose-btn);
    background: var(--rose-btn);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(176, 74, 98, 0.25);
    transition: all var(--t-hover) var(--ease-hover);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-filter-apply:hover,
  .btn-filter-apply:active {
    background: #9A384F;
    border-color: #9A384F;
    box-shadow: 0 5px 14px rgba(176, 74, 98, 0.35);
  }

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

@media (max-width: 768px) {
  .shop-banner {
    min-height: 185px;
    background-position: 20% center;
  }
  .shop-banner-inner {
    padding: 1.35rem 1rem;
  }
  .banner-text-content {
    max-width: 92%;
  }
  .shop-banner h1 {
    font-size: clamp(1.65rem, 4vw, 2rem);
  }
}

@media (max-width: 480px) {
  .shop-banner {
    min-height: 165px;
    background-position: 22% center;
  }
  .shop-banner-inner {
    padding: 1.15rem 0.85rem;
  }
  .banner-text-content {
    max-width: 96%;
  }
  .banner-subtag {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    margin-bottom: 0.2rem;
  }
  .shop-banner h1 {
    font-size: clamp(1.4rem, 5.2vw, 1.75rem);
    margin-bottom: 0.25rem;
  }
  .banner-desc {
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
  }
  .banner-tagline {
    font-size: 0.82rem;
  }

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

  .shop-top-bar {
    gap: 0.65rem 0.55rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.75rem;
  }
  .shop-results-count {
    font-size: 0.84rem;
  }
  .shop-sort-label {
    display: none;
  }
  .mobile-filter-btn {
    height: 42px;
    font-size: 0.84rem;
    padding: 0 0.75rem;
    gap: 0.45rem;
  }
  .shop-sort-select {
    height: 42px;
    font-size: 0.84rem;
    padding: 0 1.75rem 0 0.75rem;
  }
  .filter-drawer-body {
    padding: 1.15rem 1.1rem 1.5rem;
    gap: 1.35rem;
  }
}

@media (max-width: 360px) {
  .shop-banner {
    min-height: 155px;
    background-position: 24% center;
  }
  .shop-banner-inner {
    padding: 0.95rem 0.65rem;
  }
  .banner-text-content {
    max-width: 98%;
  }
  .shop-banner h1 {
    font-size: 1.28rem;
  }
  .banner-desc {
    font-size: 0.76rem;
  }
  .banner-tagline {
    font-size: 0.78rem;
  }
  .shop-top-bar {
    gap: 0.5rem 0.4rem;
    margin-bottom: 0.95rem;
  }
  .shop-results-count {
    font-size: 0.80rem;
  }
  .mobile-filter-btn {
    height: 40px;
    font-size: 0.78rem;
    padding: 0 0.45rem;
    gap: 0.35rem;
  }
  .shop-sort-select {
    height: 40px;
    font-size: 0.78rem;
    padding: 0 1.4rem 0 0.55rem;
  }
  .filter-drawer-header {
    padding: 0.95rem 1rem;
    min-height: 56px;
  }
  .filter-drawer-title {
    font-size: 1.08rem;
  }
  .filter-drawer-close {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  .filter-drawer-body {
    padding: 1rem 0.9rem 1.25rem;
    gap: 1.2rem;
  }
  .filter-drawer-footer {
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    gap: 0.5rem;
  }
  .btn-filter-reset,
  .btn-filter-apply {
    height: 40px;
    font-size: 0.82rem;
  }
}

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