/* ============================================================
   Brand Emotion – Shop Page Styles
   shop.css
   Depends on: styles.css (CSS variables, container, reset)
   ============================================================ */


/* ============================================================
   0. FOCUS STYLES (accessibility)
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.4);
  outline-offset: 2px;
}


/* ============================================================
   0b. PAGE PROGRESS BAR
   ============================================================ */
#shopProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #9EA524 0%, #C2C62F 50%, #9EA524 100%);
  background-size: 200% 100%;
  animation: progressSheen 1.6s linear infinite;
}

/* glowing tip at the leading edge */
#shopProgressBar::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -3px;
  width: 70px;
  height: 9px;
  background: #C2C62F;
  border-radius: 50%;
  filter: blur(5px);
  opacity: 0.85;
}

@keyframes progressSheen {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ============================================================
   1. PAGE SHELL
   ============================================================ */
.shop-page {
  padding-top: var(--offset);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* ============================================================
   2. SHOP HERO
   ============================================================ */
.shop-hero {
  background: #0A0A0A;
  padding: 3.5rem 0 0;
  position: relative;
  overflow: hidden;
}

/* subtle texture overlay */
.shop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1557683316-973673baf926?w=1200&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  pointer-events: none;
}

.shop-hero .container {
  position: relative;
  z-index: 1;
}

/* back link */
.shop-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  transition: color 0.18s;
}

.shop-back-link:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* hero title */
.shop-hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: #F5F0E8;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

.shop-hero-title em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
}

/* hero sub */
.shop-hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 1.75rem;
  line-height: 1.6;
}

/* hero search bar */
.shop-hero-search {
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 540px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.shop-hero-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.shop-hero-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #F5F0E8;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  padding: 1rem 0.5rem;
  min-width: 0;
}

.shop-hero-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.shop-hero-search-btn {
  background: #FFFFFF;
  color: #0A0A0A;
  border: none;
  padding: 0 1.25rem;
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  transition: background 0.18s, color 0.18s;
}

.shop-hero-search-btn:hover {
  background: #e8e8e8;
}


/* ============================================================
   3. HERO CATEGORY TABS
   (inside .shop-hero, pinned to the very bottom)
   ============================================================ */
.hero-cat-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  scrollbar-width: none;
}

.hero-cat-tabs::-webkit-scrollbar {
  display: none;
}

.hero-cat-tab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: rgba(255, 255, 255, 0.45);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s, border-bottom-color 0.18s;
  flex-shrink: 0;
  border-radius: 0;
  line-height: 1;
}

.hero-cat-tab:hover {
  color: #F5F0E8;
  background: rgba(255, 255, 255, 0.04);
}

.hero-cat-tab.active {
  color: #F5F0E8;
  border-bottom-color: #F5F0E8;
  font-weight: 600;
}


/* ============================================================
   4. FILTER BAR  (sticky below topbar + navbar)
   ============================================================ */
.filter-bar {
  position: sticky;
  top: var(--offset);
  z-index: 900;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.filter-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  flex-wrap: wrap;
}

.filter-bar-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.filter-bar-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #aaaaaa;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-bar-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #F5F0E8;
  white-space: nowrap;
  pointer-events: none;
}

.filter-bar-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s;
}
.filter-bar-clear-btn:hover { color: #F5F0E8; }

.filter-bar-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* divider between control groups */
.fbar-divider {
  width: 1px;
  height: 24px;
  background: rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

/* custom select wrapper */
.fbar-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.fbar-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #FFFFFF;
  color: #444444;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.48rem 2rem 0.48rem 0.75rem;
  outline: none;
  cursor: pointer;
  border-radius: 0;
  transition: border-color 0.15s;
}

.fbar-select:focus {
  border-color: rgba(0, 0, 0, 0.35);
}

.fbar-select-icon {
  position: absolute;
  right: 0.5rem;
  font-size: 0.65rem;
  color: #aaaaaa;
  pointer-events: none;
}

/* toggle switch */
.fbar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.3rem 0;
}

.fbar-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.fbar-toggle-track {
  width: 32px;
  height: 18px;
  background: #dddddd;
  border-radius: 9px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.fbar-toggle-thumb {
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.fbar-toggle input:checked + .fbar-toggle-track {
  background: #0A0A0A;
}

.fbar-toggle input:checked + .fbar-toggle-track .fbar-toggle-thumb {
  transform: translateX(14px);
}

.fbar-toggle-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #555555;
  white-space: nowrap;
}

/* advanced filters button */
.fbar-advanced-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #0A0A0A;
  color: #F5F0E8;
  border: none;
  padding: 0.48rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s;
  border-radius: 0;
}

.fbar-advanced-btn:hover {
  background: #2a2a2a;
}

.filter-badge {
  background: #ef4444;
  color: #F5F0E8;
  font-size: 0.58rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 8.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}


/* ============================================================
   5. SHOP BODY & LAYOUT GRID
   ============================================================ */
.shop-body {
  background: #F8F7F5;
  padding-bottom: 5rem;
  flex: 1;
}

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


/* ============================================================
   6. SIDEBAR
   ============================================================ */
.shop-sidebar {
  background: #FFFFFF;
  border-right: 1px solid rgba(0, 0, 0, 0.07);
  position: sticky;
  top: calc(var(--offset) + 57px);
  max-height: calc(100vh - var(--offset) - 57px);
  overflow-y: auto;
  scrollbar-width: thin;
}

/* sidebar header */
.sidebar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.sidebar-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0A0A0A;
  margin: 0;
}

.sidebar-clear-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
  transition: opacity 0.15s;
}

.sidebar-clear-btn:hover {
  opacity: 0.75;
}

.sidebar-close-btn {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  color: #555555;
  flex-shrink: 0;
  margin-left: 0.5rem;
  transition: background 0.15s;
  border-radius: 0;
}

.sidebar-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* collapsible sections */
.sidebar-section {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0.85rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888888;
  cursor: pointer;
  transition: color 0.15s;
  text-align: left;
}

.sidebar-section-toggle .bi {
  font-size: 0.65rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.sidebar-section-toggle:not(.active) .bi {
  transform: rotate(180deg);
}

.sidebar-section-toggle:hover {
  color: #0A0A0A;
}

.sidebar-section-body {
  padding: 0 1.25rem 1.1rem;
}

/* category list */
.sidebar-cat-list {
  display: flex;
  flex-direction: column;
}

.sidebar-cat-btn {
  background: none;
  border: none;
  padding: 0.38rem 0.6rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: #555555;
  cursor: pointer;
  text-align: left;
  transition: background 0.14s, color 0.14s;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-cat-btn:hover {
  background: #f5f5f5;
  color: #0A0A0A;
}

.sidebar-cat-btn.active {
  background: #0A0A0A;
  color: #F5F0E8;
  font-weight: 600;
}

.sidebar-show-more {
  background: none;
  border: none;
  color: #999999;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s;
  margin-top: 0.25rem;
}

.sidebar-show-more:hover {
  color: #0A0A0A;
}

/* price range slider */
.price-range-track-wrap {
  padding: 0.5rem 0.25rem;
}

.price-range-track {
  position: relative;
  height: 3px;
  background: #e8e8e8;
  margin: 1.25rem 0 0.5rem;
}

.price-range-fill {
  position: absolute;
  height: 100%;
  background: #0A0A0A;
  pointer-events: none;
  left: 0;
  width: 100%;
}

.price-range-input {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 3px;
  background: transparent;
  border: none;
  outline: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  left: 0;
}

.price-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #0A0A0A;
  cursor: pointer;
  pointer-events: all;
  border: 2.5px solid #F5F0E8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.price-range-input::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #0A0A0A;
  cursor: pointer;
  pointer-events: all;
  border: 2.5px solid #F5F0E8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

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

.price-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #FFFFFF;
  min-width: 0;
}

.price-input-prefix {
  padding: 0 0.4rem;
  font-size: 0.75rem;
  color: #aaaaaa;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
}

.price-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  padding: 0.42rem 0.4rem 0.42rem 0;
  background: transparent;
  -moz-appearance: textfield;
  min-width: 0;
  color: #0A0A0A;
}

.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.price-range-sep {
  font-size: 0.72rem;
  color: #cccccc;
  flex-shrink: 0;
}

/* checkboxes & radios */
.sidebar-check-row,
.sidebar-radio-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  cursor: pointer;
}

.sidebar-checkbox,
.sidebar-radio {
  width: 14px;
  height: 14px;
  accent-color: #0A0A0A;
  cursor: pointer;
  flex-shrink: 0;
}

.sidebar-check-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: #555555;
  cursor: pointer;
}

.sidebar-count {
  color: #bbbbbb;
  font-size: 0.72rem;
  margin-left: auto;
  font-family: 'DM Sans', sans-serif;
}

/* mobile apply button */
.sidebar-apply-wrap {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  position: sticky;
  bottom: 0;
  background: #FFFFFF;
}

.sidebar-apply-btn {
  width: 100%;
  background: #0A0A0A;
  color: #F5F0E8;
  border: none;
  padding: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s;
  border-radius: 0;
}

.sidebar-apply-btn:hover {
  background: #2a2a2a;
}

/* sidebar overlay (mobile) */
.shop-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1800;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.shop-sidebar-overlay.open {
  display: block;
}


/* ============================================================
   7. SHOP MAIN
   ============================================================ */
.shop-main {
  padding: 1.75rem 2rem;
  min-width: 0;
}

/* toolbar */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.shop-results-count {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: #888888;
}

.shop-results-count strong {
  color: #0A0A0A;
  font-weight: 600;
}

/* active filter chips strip */
.shop-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #0A0A0A;
  color: #F5F0E8;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.65rem 0.3rem 0.8rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 0;
}

.filter-chip:hover {
  background: #333333;
}

.filter-chip .bi {
  font-size: 0.6rem;
  opacity: 0.7;
}


/* ============================================================
   8. PRODUCT GRID
   ============================================================ */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 2.5rem;
}


/* ============================================================
   9. PRODUCT CARD
   ============================================================ */
.shop-card {
  background: #FFFFFF;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s, z-index 0s;
  position: relative;
}

.shop-card:hover {
  z-index: 2;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
}

/* image wrapper */
.shop-card-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f7f7f7;
  position: relative;
}

.shop-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
}

.shop-card:hover .shop-card-img {
  transform: scale(1.08);
}

.shop-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dddddd;
  font-size: 2rem;
}

/* hover overlay + quick-view */
.shop-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s;
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
}

.shop-card:hover .shop-card-overlay {
  background: rgba(0, 0, 0, 0.04);
}

.shop-card-quick {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s, transform 0.22s;
  background: #0A0A0A;
  color: #F5F0E8;
  border: none;
  padding: 0.5rem 0.9rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 0;
}

.shop-card:hover .shop-card-quick {
  opacity: 1;
  transform: translateY(0);
}

/* badge */
.shop-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #0A0A0A;
  color: #F5F0E8;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border-radius: 0;
  z-index: 1;
}

/* card body */
.shop-card-body {
  padding: 0.85rem 1rem 1.1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.shop-card-cat {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbbbbb;
}

.shop-card-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  color: #0A0A0A;
  line-height: 1.3;
  flex: 1;
}

.shop-card-code {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  color: #cccccc;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* card footer */
.shop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.shop-card-price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0A0A0A;
  line-height: 1.2;
}

.shop-card-price-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  color: #bbbbbb;
  font-weight: 400;
  display: block;
  margin-top: 0.1rem;
}

/* add to cart button + qty popover */
.card-add-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.shop-card-add {
  width: 30px;
  height: 30px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #888888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  flex-shrink: 0;
  border-radius: 0;
}

.shop-card-add:hover {
  background: #0A0A0A;
  color: #F5F0E8;
  border-color: #0A0A0A;
}

.shop-card-add.added {
  background: #22c55e;
  color: #F5F0E8;
  border-color: #22c55e;
}

/* qty picker popover */
.qty-picker {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: #0A0A0A;
  display: none;
  align-items: center;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
}

.qty-picker.open {
  display: flex;
}

.qty-dec,
.qty-inc {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  width: 30px;
  height: 34px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.qty-dec:hover,
.qty-inc:hover {
  color: #F5F0E8;
  background: rgba(255, 255, 255, 0.08);
}

.qty-input {
  width: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: #F5F0E8;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  height: 34px;
  outline: none;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-confirm {
  background: #FFFFFF;
  border: none;
  color: #0A0A0A;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.15s;
  border-radius: 0;
}

.qty-confirm:hover {
  background: #e0e0e0;
}


/* ============================================================
   10. PAGINATION
   ============================================================ */
.shop-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #666666;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  border-radius: 0;
}

.page-btn:hover {
  background: #f5f5f5;
  color: #0A0A0A;
}

.page-btn.active {
  background: #0A0A0A;
  color: #F5F0E8;
  border-color: #0A0A0A;
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.page-ellipsis {
  color: #cccccc;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  padding: 0 0.2rem;
  line-height: 36px;
}


/* ============================================================
   11. SHOP STATUS (loading / empty)
   ============================================================ */
.shop-status {
  text-align: center;
  padding: 5rem 2rem;
  color: #aaaaaa;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  display: none;
}

.shop-status.visible {
  display: block;
}

.shop-loading-dots {
  display: inline-flex;
  gap: 0.3rem;
}

.shop-loading-dots span {
  width: 5px;
  height: 5px;
  background: #cccccc;
  border-radius: 50%;
  animation: dotPulse 1.2s infinite;
}

.shop-loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.shop-loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%, 80%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}


/* ============================================================
   12. SKELETON LOADERS
   ============================================================ */
.skeleton-card {
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
}

.skeleton-img {
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.skeleton-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skeleton-line {
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.skeleton-line.w-40 {
  width: 40%;
}

.skeleton-line.w-60 {
  width: 60%;
}

.skeleton-line.w-80 {
  width: 80%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}


/* ============================================================
   13. PRODUCT DRAWER
   ============================================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

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

.product-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(600px, 100vw);
  background: #FFFFFF;
  z-index: 2100;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

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

/* close button */
.drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #555555;
  z-index: 10;
  transition: background 0.18s, color 0.18s;
  border-radius: 0;
}

.drawer-close:hover {
  background: #0A0A0A;
  color: #F5F0E8;
}

/* scrollable content area */
.drawer-scroll {
  flex: 1;
  overflow-y: auto;
}

/* image section */
.drawer-img-section {
  background: #f7f7f7;
}

.drawer-img-main-wrap {
  aspect-ratio: 1 / 1;
  max-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.drawer-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2rem;
  transition: opacity 0.2s;
}

/* thumbnail strip */
.drawer-img-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  overflow-x: auto;
  background: #f0f0f0;
  scrollbar-width: thin;
}

.drawer-thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border: 2px solid transparent;
  padding: 3px;
  background: #FFFFFF;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s;
}

.drawer-thumb.active {
  border-color: #0A0A0A;
}

.drawer-thumb:hover {
  border-color: #999999;
}

/* drawer text content */
.drawer-body {
  padding: 1.75rem 1.75rem 0;
}

.drawer-code {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bbbbbb;
  margin: 0 0 0.5rem;
  display: block;
}

.drawer-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 500;
  color: #0A0A0A;
  line-height: 1.12;
  margin: 0 0 1rem;
}

.drawer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.drawer-cat-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777777;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.22rem 0.6rem;
}

/* price block */
.drawer-price-block {
  background: #f8f7f5;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.drawer-price-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #aaaaaa;
  display: block;
  margin-bottom: 0.2rem;
}

.drawer-price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #0A0A0A;
  line-height: 1;
}

.drawer-price-poa {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #999999;
  line-height: 1;
}

.drawer-price-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: #aaaaaa;
  line-height: 1.5;
}

/* description */
.drawer-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: #555555;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.drawer-desc *,
.drawer-desc p,
.drawer-desc li {
  max-width: 100%;
}

/* sticky action bar */
.drawer-actions {
  padding: 1rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #FFFFFF;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  position: sticky;
  bottom: 0;
}

.drawer-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  margin-bottom: 0.75rem;
  width: 100%;
}

.drawer-qty-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaaaaa;
}

.drawer-qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.13);
  background: #FFFFFF;
}

.drawer-qty-btn {
  background: transparent;
  border: none;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #555555;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
  border-radius: 0;
}

.drawer-qty-btn:hover {
  background: #f5f5f5;
  color: #0A0A0A;
}

.drawer-qty-input {
  width: 52px;
  border: none;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0A0A0A;
  height: 38px;
  outline: none;
  background: #FFFFFF;
  -moz-appearance: textfield;
}

.drawer-qty-input::-webkit-outer-spin-button,
.drawer-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.drawer-action-btns {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  flex-wrap: wrap;
}

.drawer-btn-primary {
  flex: 1;
  min-width: 140px;
  background: #0A0A0A;
  color: #F5F0E8;
  border: none;
  padding: 0.9rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.18s;
  border-radius: 0;
}

.drawer-btn-primary:hover {
  background: #2a2a2a;
}

.drawer-btn-secondary {
  flex: 1;
  min-width: 140px;
  background: transparent;
  color: #0A0A0A;
  border: 1px solid rgba(0, 0, 0, 0.18);
  padding: 0.9rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.18s, border-color 0.18s;
  border-radius: 0;
}

.drawer-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.3);
}

.drawer-btn-secondary.added {
  border-color: #22c55e;
  color: #22c55e;
}


/* ============================================================
   14. CART FAB
   ============================================================ */
.cart-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1500;
  background: #0A0A0A;
  color: #F5F0E8;
  border: none;
  width: 54px;
  height: 54px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, background 0.18s;
  border-radius: 0;
}

.cart-fab:hover {
  background: #222222;
  transform: translateY(-2px);
}

.cart-fab-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: #F5F0E8;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s, transform 0.2s;
}

.cart-fab-count.visible {
  opacity: 1;
  transform: scale(1);
}


/* ============================================================
   15. CART SIDEBAR
   ============================================================ */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: #0A0A0A;
  z-index: 2200;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  transform: translateX(0);
}

/* cart header */
.cart-sidebar-head {
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cart-sidebar-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: #F5F0E8;
  margin: 0;
  line-height: 1;
}

.cart-sidebar-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.28);
  margin: 0.3rem 0 0;
  font-weight: 500;
}

.cart-close {
  background: rgba(255, 255, 255, 0.07);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.18s, color 0.18s;
  border-radius: 0;
}

.cart-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #F5F0E8;
}

/* cart items list */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.75rem;
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem 0;
}

.cart-empty-icon {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.1);
}

.cart-empty-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.28);
  line-height: 1.6;
}

/* individual cart item */
.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-img-wrap {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.cart-item-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.92rem;
  color: #F5F0E8;
  line-height: 1.3;
  margin: 0 0 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-code {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}

.cart-item-qty-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.cart-qty-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-radius: 0;
}

.cart-qty-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #F5F0E8;
}

.cart-qty-input {
  width: 38px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #F5F0E8;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  height: 24px;
  outline: none;
  -moz-appearance: textfield;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item-price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.cart-item-remove {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  transition: color 0.18s;
  line-height: 1;
  margin-top: 2px;
}

.cart-item-remove:hover {
  color: #f87171;
}

/* cart footer / actions */
.cart-footer {
  padding: 1.25rem 1.75rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.cart-item-count-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.28);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.cart-submit {
  width: 100%;
  background: #FFFFFF;
  color: #0A0A0A;
  border: none;
  padding: 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: background 0.18s;
  margin-bottom: 0.75rem;
  border-radius: 0;
}

.cart-submit:hover {
  background: #e8e8e8;
}

.cart-whatsapp {
  width: 100%;
  background: transparent;
  color: #4ADE80;
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.18s, border-color 0.18s;
  margin-bottom: 0.75rem;
  border-radius: 0;
}

.cart-whatsapp:hover {
  background: rgba(74, 222, 128, 0.06);
  border-color: rgba(74, 222, 128, 0.5);
}

.cart-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
  line-height: 1.5;
}


/* ============================================================
   16. RESPONSIVE — TABLET (max 960px)
   ============================================================ */
/* ============================================================
   16. RESPONSIVE — TABLET / MOBILE
   ============================================================ */

/* 1200px — large desktop: 3-col product grid */
@media (max-width: 1200px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 1024px — iPad landscape / small laptop */
@media (max-width: 1024px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-hero-input { font-size: 0.9rem; }
}

/* 960px — sidebar goes off-canvas */
@media (max-width: 960px) {
  .shop-layout { grid-template-columns: 1fr; }

  .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 90vw);
    z-index: 1900;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    padding-top: 0;
    max-height: 100vh;
  }

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

  .sidebar-apply-wrap { display: block; }
}

/* hide apply/close on desktop */
@media (min-width: 961px) {
  .sidebar-apply-wrap { display: none; }
  .sidebar-close-btn { display: none; }
}

/* 768px — tablet portrait */
@media (max-width: 768px) {
  .shop-main { padding: 1.25rem; }

  .shop-hero { padding: 1.5rem 1.25rem 1rem; }
  .shop-hero-title { font-size: 1.4rem; }
  .shop-hero-search { max-width: 100%; }

  .filter-bar-inner { flex-wrap: wrap; gap: 0.4rem; }
  .filter-bar-controls { flex-wrap: wrap; gap: 0.4rem; }

  .hero-cat-tabs { gap: 0.25rem; }
  .hero-cat-tab { font-size: 0.73rem; padding: 0.65rem 0.85rem; }

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

  .shop-card-name { font-size: 0.85rem; }

  /* product drawer — full width on tablet */
  .product-drawer { width: min(520px, 100vw); }

  /* cart sidebar */
  .cart-sidebar { width: min(380px, 100vw); }
}

/* 640px — large phones */
@media (max-width: 640px) {
  .shop-main { padding: 0.85rem; }

  .shop-hero { padding: 1.25rem 0.85rem 0.75rem; }
  .shop-hero-title { font-size: 1.2rem; }

  .filter-bar { padding: 0 0.75rem; }
  .filter-bar-inner { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .filter-bar-chips { flex-wrap: wrap; gap: 0.3rem; }
  .filter-bar-controls { justify-content: flex-start; }

  .fbar-select { font-size: 0.8rem; padding: 0.55rem 2rem 0.55rem 0.65rem; }

  .hero-cat-tab { font-size: 0.7rem; padding: 0.6rem 0.75rem; }

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

  .results-bar { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* 500px — phones */
@media (max-width: 500px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }

  .fbar-toggle-label { display: none; }
  .shop-hero-search { max-width: 100%; }

  .drawer-action-btns { flex-direction: column; }
  .drawer-btn-primary,
  .drawer-btn-secondary { min-width: 0; width: 100%; }

  /* product drawer — full screen on small phones */
  .product-drawer { width: 100vw; }
  .cart-sidebar { width: 100vw; }

  .shop-card-body { padding: 0.65rem 0.75rem 0.75rem; }
  .shop-card-name { font-size: 0.82rem; line-height: 1.3; }
  .shop-card-price { font-size: 0.88rem; }
}

/* 380px — very small phones */
@media (max-width: 380px) {
  .shop-main { padding: 0.6rem; }
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 1px; }
  .hero-cat-tab { font-size: 0.65rem; padding: 0.5rem 0.6rem; }
  .fbar-select { font-size: 0.75rem; }
  .shop-card-img-wrap { aspect-ratio: 1/1; }
}
