/* ── NAV OVERRIDE (dark hero page — always show bg) ── */
#nav {
  background: rgba(246,248,250,0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border);
}


/* ── CONTROLS (STICKY) ─────────────────────────────── */
.shop-controls {
  position: sticky;
  top: 72px;
  margin-top: 72px;
  z-index: 90;
  background: rgba(246,248,250,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 52px;
}
.controls-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.search-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 13px;
  color: var(--mid);
  pointer-events: none;
  flex-shrink: 0;
}
#shop-search {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 40px 10px 38px;
  font-size: .875rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
#shop-search::placeholder { color: var(--mid); }
#shop-search:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(158,51,47,.08);
}
.search-clear {
  position: absolute;
  right: 11px;
  background: none;
  border: none;
  color: var(--mid);
  cursor: pointer;
  padding: 3px;
  display: flex;
  align-items: center;
  line-height: 1;
  transition: color .2s;
}
.search-clear:hover { color: var(--text); }
.search-clear.hidden { display: none; }

.controls-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.result-count {
  font-size: .8rem;
  color: var(--muted);
  white-space: nowrap;
}
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mid);
}
#shop-sort {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 32px 9px 12px;
  font-size: .8125rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  outline: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239BA3AB' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color .2s;
}
#shop-sort:focus { border-color: var(--brand); outline: none; }

/* ── FILTER CHIPS ──────────────────────────────────── */
.shop-filter-bar {
  padding: 14px 52px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
}
.filter-chips::-webkit-scrollbar { display: none; }

.filter-arrow {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: border-color .18s, color .18s, background .18s, box-shadow .18s;
  z-index: 1;
}
.filter-arrow:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(158,51,47,.04);
  box-shadow: 0 2px 8px rgba(158,51,47,.12);
}
.filter-arrow.hidden { display: none; }
.filter-chip {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  padding: 7px 18px;
  font-size: .8125rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .18s, color .18s, background .18s, box-shadow .18s;
  white-space: nowrap;
}
.filter-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(158,51,47,.04);
}
.filter-chip.active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 12px rgba(158,51,47,.24);
}

/* ── PRODUCT GRID ──────────────────────────────────── */
.shop-main {
  padding: 48px 52px 88px;
  background: var(--bg);
  min-height: 60vh;
}
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

/* ── PRODUCT CARD ──────────────────────────────────── */
.prod-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .42s ease, transform .42s ease, box-shadow .25s ease;
  transition-delay: var(--delay, 0s);
}
.prod-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.prod-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) !important;
}

.prod-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg);
}
.prod-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .52s cubic-bezier(.25,1,.5,1);
}
.prod-card:hover .prod-img { transform: scale(1.07); }

.prod-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
}

.prod-featured-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  background: var(--gradient);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  box-shadow: 0 2px 8px rgba(158,51,47,.34);
  pointer-events: none;
}
.prod-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,17,17,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}
.prod-card:hover .prod-overlay { opacity: 1; }
.prod-quick-view {
  background: rgba(246,248,250,.96);
  border: none;
  border-radius: var(--r-sm);
  padding: 10px 22px;
  font-size: .8125rem;
  font-weight: 600;
  font-family: 'Bricolage Grotesque', sans-serif;
  color: var(--text);
  cursor: pointer;
  transform: translateY(10px);
  transition: transform .28s cubic-bezier(.25,1,.5,1), background .2s;
  letter-spacing: -.01em;
}
.prod-card:hover .prod-quick-view { transform: translateY(0); }
.prod-quick-view:hover { background: #fff; }

.prod-body {
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.prod-cat-badge {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--brand);
  background: rgba(158,51,47,.07);
  padding: 3px 9px;
  border-radius: var(--r-pill);
  display: inline-block;
  align-self: flex-start;
}
.prod-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-desc {
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 300;
}
.prod-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.prod-price {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.prod-view-btn {
  font-size: .75rem;
  font-weight: 600;
  font-family: 'Bricolage Grotesque', sans-serif;
  color: var(--brand);
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 6px 13px;
  cursor: pointer;
  transition: border-color .18s, background .18s;
  white-space: nowrap;
  letter-spacing: -.01em;
}
.prod-view-btn:hover {
  border-color: var(--brand);
  background: rgba(158,51,47,.04);
}
.prod-stock {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .05em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.prod-stock::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.prod-stock.in { color: #3A9C5E; }
.prod-stock.in::before { background: #3A9C5E; }
.prod-stock.out { color: var(--muted); }
.prod-stock.out::before { background: var(--mid); }

/* ── SKELETON LOADERS ──────────────────────────────── */
.prod-skeleton {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.skel {
  background: linear-gradient(90deg, #f0f2f4 25%, #e6e9ed 50%, #f0f2f4 75%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.6s ease-in-out infinite;
  border-radius: 6px;
}
.skel-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 0;
}
.skel-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skel-badge { width: 72px; height: 18px; border-radius: var(--r-pill); }
.skel-title { width: 80%; height: 20px; }
.skel-text { width: 100%; height: 13px; }
.skel-text-2 { width: 70%; height: 13px; }
.skel-price { width: 55%; height: 20px; margin-top: 6px; }
@keyframes skel-shimmer {
  to { background-position: -200% 0; }
}

/* ── EMPTY STATE ───────────────────────────────────── */
.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
}
.shop-empty.hidden { display: none; }
.empty-icon {
  margin: 0 auto 24px;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
}
.empty-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.empty-desc {
  font-size: .9375rem;
  color: var(--muted);
  margin-bottom: 32px;
  font-weight: 300;
}

/* ── LOAD MORE ─────────────────────────────────────── */
.load-more-wrap {
  text-align: center;
  padding: 8px 0 0;
}
.load-more-wrap.hidden { display: none; }
.load-more-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 48px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  letter-spacing: -.01em;
}
.load-more-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(158,51,47,.03);
}

/* ── CATALOG ERROR ─────────────────────────────────── */
.catalog-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-size: .9375rem;
  color: var(--muted);
  font-weight: 300;
}

/* ── PRODUCT MODAL ─────────────────────────────────── */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: transparent;
  pointer-events: none;
  transition: background .28s;
}
.product-modal.open {
  pointer-events: all;
  background: rgba(20,10,10,.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.modal-open { overflow: hidden; }

.modal-inner {
  background: var(--surface);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 32px 96px rgba(0,0,0,.36);
  animation: modal-in .32s cubic-bezier(.25,1,.5,1) both;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  z-index: 10;
  transition: background .2s, color .2s, transform .2s;
}
.modal-close:hover {
  background: var(--border);
  color: var(--text);
  transform: scale(1.08);
}
.modal-gallery {
  padding: 32px 28px 32px 32px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-main-img-wrap {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg);
  flex-shrink: 0;
}
#modal-main-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .44s cubic-bezier(.25,1,.5,1);
  cursor: zoom-in;
}
#modal-main-img:hover { transform: scale(1.04); }

.modal-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
  font-size: 3rem;
}

.modal-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.modal-thumb {
  width: 58px; height: 58px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: var(--bg);
  transition: border-color .2s, transform .18s;
  flex-shrink: 0;
}
.modal-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.modal-thumb.active { border-color: var(--brand); }
.modal-thumb:hover:not(.active) { border-color: var(--accent); transform: scale(1.06); }

.modal-details {
  padding: 40px 36px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.modal-cat-badge {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--brand);
  background: rgba(158,51,47,.08);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}
.modal-stock {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .05em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.modal-stock::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.modal-stock.in { color: #3A9C5E; }
.modal-stock.in::before { background: #3A9C5E; }
.modal-stock.out { color: var(--muted); }
.modal-stock.out::before { background: var(--mid); }

.modal-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.025em;
  line-height: 1.15;
}
.modal-price {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.875rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.modal-full-desc {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.78;
  font-weight: 300;
}
.modal-section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--mid);
  margin-bottom: 11px;
}
.modal-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.modal-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .875rem;
  color: var(--text);
  line-height: 1.5;
}
.modal-feature-item svg { color: var(--brand); flex-shrink: 0; margin-top: 1px; }

.modal-specs-grid {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.modal-spec {
  display: grid;
  grid-template-columns: 140px 1fr;
  border-bottom: 1px solid var(--border);
}
.modal-spec:last-child { border-bottom: none; }
.modal-spec-k {
  padding: 10px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border-right: 1px solid var(--border);
}
.modal-spec-v {
  padding: 10px 14px;
  font-size: .8rem;
  color: var(--text);
  line-height: 1.5;
}

.modal-cta {
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 16px;
  width: 100%;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, box-shadow .2s;
  box-shadow: 0 2px 16px rgba(158,51,47,.22);
  letter-spacing: -.01em;
  margin-top: 8px;
}
.modal-cta:hover { opacity: .88; box-shadow: 0 4px 28px rgba(158,51,47,.38); }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1200px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .shop-controls { padding: 12px 36px; top: 64px; }
  .shop-filter-bar { padding: 10px 20px; }
  .shop-main { padding: 36px 36px 64px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .modal-inner { grid-template-columns: 1fr; max-height: 92vh; }
  .modal-gallery { position: static; max-height: none; border-right: none; border-bottom: 1px solid var(--border); padding: 24px; }
  .modal-main-img-wrap { aspect-ratio: 16/9; }
  .modal-details { padding: 24px; gap: 16px; }
  .result-count { display: none; }
}
@media (max-width: 640px) {
  .shop-controls { padding: 10px 20px; top: 64px; }
  .shop-filter-bar { padding: 10px 16px; }
  .shop-main { padding: 24px 20px 56px; }
  .prod-grid { grid-template-columns: 1fr; gap: 10px; }

  /* horizontal card layout on mobile */
  .prod-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    border-radius: 12px;
    animation: none;
    opacity: 1;
    transform: none;
  }
  .prod-card.visible { transform: none; }
  .prod-img-wrap {
    width: 110px;
    min-width: 110px;
    height: 110px;
    border-radius: 10px 0 0 10px;
    flex-shrink: 0;
    overflow: hidden;
  }
  .prod-img { border-radius: 0; }
  .prod-overlay,
  .prod-quick-view { display: none !important; }
  .prod-info {
    flex: 1;
    padding: 14px 14px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  .prod-cat-badge,
  .prod-stock { display: none; }
  .prod-footer { display: flex; padding: 0; background: none; border: none; margin-top: 4px; }
  .prod-btn { display: none; }
  .prod-price { font-size: .9rem; }
  .prod-name {
    font-size: .9rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    margin: 0;
  }
  .prod-short-desc {
    font-size: .775rem;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    color: var(--muted);
  }
  .controls-inner { gap: 10px; }
  .sort-wrap svg { display: none; }
  #shop-sort { font-size: .75rem; padding: 8px 26px 8px 10px; }
  .product-modal { align-items: flex-end; padding: 0; }
  .modal-inner {
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    max-height: 96vh;
  }
  .modal-spec { grid-template-columns: 100px 1fr; }
}
@media (max-width: 380px) {
  .prod-grid { gap: 10px; }
  .prod-card:hover { transform: none !important; }
}

/* ── LIGHTBOX ───────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lb-close {
  position: absolute;
  top: 20px; left: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #111;
  transition: background .18s;
  z-index: 1;
}
.lb-close:hover { background: rgba(0,0,0,.12); }

.lb-img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.lb-dots {
  position: absolute;
  bottom: 28px;
  display: flex;
  gap: 8px;
}
.lb-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,.18);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.lb-dot.active {
  background: var(--brand);
  transform: scale(1.25);
}
