/* =========================================================
   RESPONSIVE ADD-ON  —  load AFTER style.css
   Laptop / desktop / tablet / phone fixes + search results
========================================================= */

* { -webkit-tap-highlight-color: transparent; }
button, a, select, input { touch-action: manipulation; }

/* hero height fallback for browsers without "svh" */
.hero { height: calc(100vh - 112px); height: calc(100svh - 112px); }

/* ── SEARCH RESULTS ───────────────────────────────────── */
.search-results {
  padding: calc(var(--nav-h) + 48px) clamp(14px, 4vw, 56px) 0;
  min-height: 70vh;
}
.search-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  padding: 40px 0;
}

/* ── LARGE SCREENS ────────────────────────────────────── */
@media (min-width: 1600px) {
  .products, .cat-grid { max-width: 1560px; }
  .products { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

/* ── LAPTOP / DESKTOP: delivery form centred like a dialog ── */
@media (min-width: 769px) {
  #deliveryModal { align-items: center; }
  .modal-card { border-radius: var(--radius); }
  .drag-handle { display: none; }
}

/* ── TABLET ───────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1100px) {
  .products { grid-template-columns: repeat(3, 1fr); gap: 40px 20px; }
  .banner-content h2 { font-size: clamp(32px, 5vw, 56px); }
}

/* ── ANY TOUCH SCREEN (phones + tablets): no hover, so always
      show the Quick View label ─────────────────────────── */
@media (hover: none) {
  .quick-view-btn {
    bottom: 0;
    font-size: 10px;
    letter-spacing: 2px;
    padding: 9px;
    background: rgba(10, 10, 10, .7);
  }
}

/* ── PHONES ───────────────────────────────────────────── */
@media (max-width: 768px) {

  /* sale bar: stack neatly instead of overflowing */
  .sale-bar { flex-wrap: wrap; justify-content: center; text-align: center; row-gap: 10px; }

  /* 16px stops iPhones zooming in when a field is tapped */
  #searchInput,
  .modal-body input,
  .modal-body textarea,
  .qv-select { font-size: 16px; }

  /* proper full-height on mobile browsers with moving address bars */
  .cart-drawer { height: 100vh; height: 100dvh; }
  .modal-card, .qv-card { max-height: 92vh; max-height: 92dvh; }

  /* results page: clear the (shorter) mobile navbar */
  .search-results { padding-top: calc(var(--nav-h) + 32px); min-height: 60vh; }

  .section-title { font-size: clamp(24px, 7vw, 32px); }
  .footer-wordmark { letter-spacing: .06em; }
}

/* ── SMALL PHONES ─────────────────────────────────────── */
@media (max-width: 380px) {
  .products { gap: 28px 8px; }
  .announce { letter-spacing: 1px; }
  .countdown b { font-size: 14px; }
  .hero-content h1 { letter-spacing: 3px; }
}


/* =========================================================
   LAPTOP / DESKTOP LOOK  (Duch-style)
========================================================= */

/* sale bar: Festive Sale · Shop Now · countdown, centred */
.sale-cta {
  margin-left: 14px;
  padding-bottom: 2px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #fff;
  white-space: nowrap;
}
.sale-cta:hover { color: var(--gold); border-color: var(--gold); }
.sale-text { flex-wrap: wrap; }

@media (min-width: 769px) {
  .announce { font-size: 13px; font-weight: 600; letter-spacing: 3.5px; padding: 14px 0; }
  .sale-bar { justify-content: center; gap: clamp(36px, 7vw, 110px); padding-top: 22px; padding-bottom: 22px; }
}

/* hero on wide screens: the whole photo is shown, centred, on a soft
   blurred copy of itself — no more zoomed-in face */
@media (min-width: 1000px) {
  .hero::before {
    content: "";
    position: absolute;
    inset: -40px;
    background-image: var(--hero-bg, none);
    background-size: cover;
    background-position: center;
    filter: blur(36px) brightness(.6) saturate(1.1);
    z-index: 0;
  }
  .hero img { position: relative; z-index: 1; object-fit: contain; object-position: center; }
  .hero::after { z-index: 2; }
  .hero-content { z-index: 3; }
}


/* =========================================================
   SIDE MENU — light, expandable list
========================================================= */

.side-menu {
  background: #fff;
  color: var(--ink);
  padding: 0;
  overflow-y: auto;
  width: min(88vw, 400px);
}

.side-menu-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.side-menu .brand-rare { color: var(--ink); font-size: 20px; letter-spacing: 5px; }
.side-menu .icon-btn { color: var(--ink); font-size: 20px; }

.side-menu .side-links { margin-top: 0; }

.mm-item { border-bottom: 1px solid var(--line); }

.side-menu .mm-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  background: none;
  border: 0;
  border-bottom: 0;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.side-menu .mm-row:hover { color: var(--ink); padding-left: 24px; }

.mm-badge {
  display: inline-block;
  margin-left: 12px;
  padding: 5px 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 1px;
  vertical-align: middle;
}

/* the + / − icon */
.mm-plus { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.mm-plus::before,
.mm-plus::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 100%; height: 1.5px;
  margin-top: -.75px;
  background: var(--ink);
  transition: transform .3s;
}
.mm-plus::after { transform: rotate(90deg); }
.mm-item.open .mm-plus::after { transform: rotate(0); }

/* the expanding list */
.mm-sub { max-height: 0; overflow: hidden; transition: max-height .4s ease; background: #faf8f3; }
.mm-item.open .mm-sub { max-height: 900px; }

.side-menu .mm-sub a {
  display: block;
  padding: 13px 24px 13px 40px;
  border-bottom: 0;
  font-family: var(--sans);
  font-size: 15px;
  color: #4a463c;
  text-decoration: none;
}
.side-menu .mm-sub a:first-child { font-weight: 500; color: var(--ink); }
.side-menu .mm-sub a:hover { color: #6e5a12; padding-left: 40px; }

/* promo cards at the bottom */
.mm-promos { display: grid; gap: 16px; padding: 24px; }

.mm-promo {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #ddd6c8;
}
.mm-promo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.mm-promo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 45%);
}
.mm-promo-title {
  position: absolute;
  z-index: 2;
  top: 16px; left: 0; right: 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
}
.mm-tag {
  position: absolute;
  z-index: 2;
  left: 0; bottom: 18px;
  padding: 6px 14px;
  background: #e11d1d;
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.side-menu .side-foot {
  margin: 0;
  padding: 8px 24px 32px;
  color: var(--muted);
}
.side-menu .side-foot a { color: var(--ink); }