/* =========================================================
   YULIA — dark gallery storefront styles
   Black canvas, gold + green accents, the art is the colour.
   Mobile-first, responsive, no framework.
   ========================================================= */
:root {
  --bg: #0d0d0f;            /* near-black gallery wall */
  --bg-soft: #18181c;       /* panels / image backdrops */
  --ink: #f2efe9;           /* warm off-white text */
  --muted: #9a948c;         /* warm grey */
  --accent: #d4a24c;        /* gold (primary) */
  --accent-deep: #e0b25f;   /* brighter gold for prices/links */
  --accent-soft: rgba(212, 162, 76, 0.16);
  --green: #5bbf3a;         /* leaf green pulled from the artwork */
  --gold: #d4a24c;
  --line: #262229;          /* subtle dark divider */
  --card: #151418;          /* card / panel surface */
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.4);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Dancing Script", "Segoe Script", cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; }

a { color: inherit; }

img { max-width: 100%; display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #14110a;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- loading screen ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem; background: var(--bg);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader-mark { position: relative; width: 104px; height: 104px; display: grid; place-items: center; }
.loader-logo {
  width: 66px; height: 66px; border-radius: 50%; object-fit: cover;
  box-shadow: var(--shadow-sm); animation: loader-breathe 1.8s ease-in-out infinite;
}
.loader-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(212, 162, 76, 0.18);
  border-top-color: var(--accent);
  border-right-color: var(--green);
  animation: loader-spin 0.9s linear infinite;
}
.loader-word {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  letter-spacing: 0.55em; text-indent: 0.55em; color: var(--ink);
  animation: loader-pulse 1.7s ease-in-out infinite;
}
@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes loader-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ---------- decorative background petals ---------- */
.petals {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(45vw 45vw at 82% -8%, rgba(212, 162, 76, 0.10), transparent 60%),
    radial-gradient(45vw 45vw at -8% 108%, rgba(91, 191, 58, 0.07), transparent 60%);
  opacity: 1;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(13, 13, 15, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-logo {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.18em; }
.brand-tag { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-deep); }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { text-decoration: none; font-size: 0.95rem; letter-spacing: 0.02em; position: relative; }
.nav a:not(.nav-admin)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1.5px;
  background: var(--accent); transition: width 0.2s ease;
}
.nav a:hover::after { width: 100%; }
.nav-admin {
  font-size: 0.8rem; padding: 0.3rem 0.8rem; border: 1px solid var(--line);
  border-radius: 999px; color: var(--muted);
}
.nav-admin:hover { border-color: var(--accent); color: var(--accent-deep); }

.cart-btn {
  position: relative; background: none; border: none; cursor: pointer;
  color: var(--ink); padding: 0.3rem; display: inline-flex;
}
.cart-count {
  position: absolute; top: -6px; right: -8px;
  background: var(--green); color: #0d0d0f; font-size: 0.66rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 4px;
}
.cart-count[data-empty="true"] { display: none; }

.nav-toggle { display: none; }
.nav-close { display: none; }

/* ---------- hero carousel ---------- */
.hero-carousel {
  position: relative;
  min-height: min(82vh, 660px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.7s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.hero-intro {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 2.5rem 1.25rem; position: relative; overflow: hidden;
  /* background image for slide 1 — fit the WHOLE image (no crop), dark sides */
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(13, 13, 15, 0.45), rgba(13, 13, 15, 0.6)),
    url("../../Photos/home1.png");
  background-size: cover, 100% 100%;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
.hero-intro-inner { max-width: 760px; position: relative; z-index: 1; }

/* image / video slides */
.hero-img-slide img,
.hero-img-slide video { position: absolute; inset: 0; width: 100%; height: 100%; }
/* default: fill the band and crop (focus point chooses the visible slice) */
.hero-fg { object-fit: cover; }
/* "fit whole image" modes: show the entire image without cropping */
.hero-fit-contain .hero-fg,
.hero-fit-plain .hero-fg { object-fit: contain; }
/* contain = blurred copy of the image fills the sides */
.hero-bg { object-fit: cover; filter: blur(28px) brightness(0.55); transform: scale(1.12); }
/* plain = empty (page colour) fills the sides, no blur */
.hero-fit-plain { background: var(--bg); }
.hero-img-slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(13,13,15,0.75), rgba(13,13,15,0.1) 55%, rgba(13,13,15,0.25));
}

/* captions: one or more positionable groups; each line has its own size/font/colour.
   Multiple captions at the same position stack vertically (new below previous). */
.hero-caption-group {
  position: absolute; z-index: 2; padding: 0 1.5rem; max-width: 88%;
  display: flex; flex-direction: column; gap: 0.18em;
}
.hero-caption-group.v-top { top: 9%; }
.hero-caption-group.v-center { top: 50%; transform: translateY(-50%); }
.hero-caption-group.v-bottom { bottom: 12%; }
.hero-caption-group.h-left { left: 6%; right: auto; text-align: left; align-items: flex-start; }
.hero-caption-group.h-center { left: 0; right: 0; text-align: center; align-items: center; }
.hero-caption-group.h-right { right: 6%; left: auto; text-align: right; align-items: flex-end; }

.hero-caption-line {
  color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.6);
  font-family: var(--serif); line-height: 1.12;
}
.hero-caption-line.size-sm { font-size: clamp(1.05rem, 2.4vw, 1.5rem); }
.hero-caption-line.size-md { font-size: clamp(1.6rem, 4vw, 2.8rem); }
.hero-caption-line.size-lg { font-size: clamp(2.2rem, 6vw, 4rem); }
.hero-caption-line.size-xl { font-size: clamp(2.8rem, 8vw, 5.4rem); }
.hero-caption-line.font-serif { font-family: var(--serif); }
.hero-caption-line.font-sans { font-family: var(--sans); letter-spacing: 0.02em; }
.hero-caption-line.font-script { font-family: var(--script); font-weight: 600; }

/* dots + arrows */
.hero-dots { position: absolute; bottom: 1.1rem; left: 0; right: 0; z-index: 3;
  display: flex; gap: 0.5rem; justify-content: center; }
.hero-dots button {
  width: 9px; height: 9px; padding: 0; border: none; border-radius: 999px;
  background: rgba(255,255,255,0.45); cursor: pointer; transition: width 0.25s ease, background 0.25s ease;
}
.hero-dots button.active { width: 24px; background: var(--gold); }
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,0.4); color: #fff; font-size: 1.7rem; line-height: 1;
  display: grid; place-items: center; transition: background 0.15s ease;
}
.hero-nav:hover { background: rgba(0,0,0,0.7); }
.hero-prev { left: 1rem; }
.hero-next { right: 1rem; }

.hero-art { display: flex; justify-content: center; margin-bottom: 0.5rem; }
.hero-art svg { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
.hero-title { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 0.6rem; }
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 46ch; margin: 0 auto 1.6rem; }
.hero-note {
  margin-top: 1.1rem; font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent-deep);
}

/* ---------- section heads ---------- */
.section-head { text-align: center; margin: 1rem auto 2rem; }
.section-head h2, .about h2, .contact h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-sub, .section-head .section-sub {
  color: var(--accent-deep); letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 0.8rem; margin-top: 0.4rem;
}

/* ---------- collections + product grid ---------- */
.shop { max-width: var(--maxw); margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.collection { margin-bottom: 3.5rem; }
/* alternating banner image shown between category sections */
.cat-banner {
  width: 100%; height: clamp(180px, 30vw, 360px);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  border-radius: var(--radius); margin: 0 0 3.5rem; box-shadow: var(--shadow-sm);
}
.collection:last-child { margin-bottom: 0; }
.collection-name.nsize-sm { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.collection-name.nsize-md { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.collection-name.nsize-lg { font-size: clamp(2.3rem, 5.5vw, 3.4rem); }
.collection-name.nsize-xl { font-size: clamp(2.8rem, 7vw, 4.4rem); }
.collection-name.nfont-serif { font-family: var(--serif); }
.collection-name.nfont-sans { font-family: var(--sans); }
.collection-name.nfont-script { font-family: var(--script); font-weight: 600; }

.collection-blurb { color: var(--muted); max-width: 54ch; margin: 0.5rem auto 0; font-size: 1rem; line-height: 1.4; }
.collection-blurb.bsize-sm { font-size: 0.85rem; }
.collection-blurb.bsize-md { font-size: 1rem; }
.collection-blurb.bsize-lg { font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
.collection-blurb.bsize-xl { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.collection-blurb.bfont-sans { font-family: var(--sans); }
.collection-blurb.bfont-serif { font-family: var(--serif); }
.collection-blurb.bfont-script { font-family: var(--script); font-weight: 600; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.6rem;
}
.loading { grid-column: 1 / -1; text-align: center; color: var(--muted); }

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.05); }
/* sliding image track for the auto slideshow */
.card-track { display: flex; width: 100%; height: 100%; transition: transform 0.7s ease; }
.card-track img { flex: 0 0 100%; }
.badge {
  position: absolute; top: 0.7rem; left: 0.7rem;
  background: rgba(0,0,0,0.55); color: var(--gold);
  border: 1px solid rgba(212,162,76,0.55); backdrop-filter: blur(3px);
  font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 999px; font-weight: 600;
}
.badge.sold { background: rgba(0,0,0,0.72); color: #fff; border-color: rgba(255,255,255,0.3); }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.card-name { font-size: 1.3rem; }
.card-collection { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 0.6rem; }
.card-price { font-size: 1.15rem; font-weight: 500; color: var(--accent-deep); }
.card-view { font-size: 0.85rem; color: var(--muted); }

/* ---------- about ---------- */
.about {
  background: var(--bg-soft);
  padding: 3.5rem 1.25rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.about-inner h2 { margin-bottom: 1rem; }
.about-inner p { color: #cdc7bf; font-size: 1.05rem; }
.about-ship { margin-top: 1.2rem; font-size: 0.92rem; color: var(--muted); font-style: italic; }

/* ---------- contact ---------- */
.contact { text-align: center; padding: 3.5rem 1.25rem; max-width: 620px; margin: 0 auto; }
.contact p { color: var(--muted); }
.contact-links { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.5rem; }
.contact-links a {
  text-decoration: none; padding: 0.7rem 1.4rem; border-radius: 999px;
  border: 1px solid var(--accent); color: var(--ink); font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.contact-links a:hover { background: var(--accent); color: #0d0d0f; border-color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { text-align: center; padding: 2.5rem 1.25rem 3rem; }
.footer-logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin: 0 auto 0.8rem; opacity: 0.9; }
.footer-tag { font-family: var(--serif); font-size: 1.2rem; }
.footer-copy { color: var(--muted); font-size: 0.82rem; margin-top: 0.3rem; }

/* ---------- modal ---------- */
.modal, .cart { position: fixed; inset: 0; z-index: 100; }
.modal[hidden], .cart[hidden] { display: none; }
.modal-backdrop, .cart-backdrop { position: absolute; inset: 0; background: rgba(43,34,48,0.45); backdrop-filter: blur(2px); }
.modal-card {
  position: relative; z-index: 1; background: var(--card);
  max-width: 880px; width: calc(100% - 2rem); max-height: calc(100% - 2rem);
  margin: 1rem auto; top: 50%; transform: translateY(-50%);
  border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow);
  animation: pop 0.2s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(-50%) scale(0.97) } to { opacity: 1 } }
.modal-close, .cart-x {
  position: absolute; top: 0.6rem; right: 0.8rem; z-index: 2;
  background: rgba(255,255,255,0.1); border: none; width: 36px; height: 36px;
  border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.modal-grid { display: grid; grid-template-columns: 1.1fr 1fr; }
.modal-media { background: var(--bg-soft); position: relative; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
/* product image gallery (next / prev) */
.modal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 1.6rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.modal-nav:hover { background: rgba(0, 0, 0, 0.7); }
.modal-prev { left: 0.7rem; }
.modal-next { right: 0.7rem; }
.modal-dots {
  position: absolute; left: 0; right: 0; bottom: 0.8rem; z-index: 2;
  display: flex; gap: 0.4rem; justify-content: center;
}
.modal-dots button {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px;
  background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: width 0.2s, background 0.2s;
}
.modal-dots button.active { width: 20px; background: var(--gold); }

/* product tabs (description / additional info / ratings) */
.ptabs { display: flex; gap: 1.3rem; border-bottom: 1px solid var(--line); margin: 1.4rem 0 1rem; }
.ptab { background: none; border: none; color: var(--muted); font-family: var(--sans); font-size: 0.9rem; cursor: pointer; padding: 0 0 0.6rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ptab.active { color: var(--ink); border-bottom-color: var(--accent); }
.ptab-panel .modal-desc, .ptab-panel .modal-info { color: #cdc7bf; margin: 0; white-space: pre-wrap; }

/* ratings */
.modal-rating-summary { color: var(--accent-deep); font-size: 0.9rem; margin: 0.3rem 0 0; }
.stars { color: var(--gold); letter-spacing: 0.04em; }
.ratings-list { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1rem; }
.ratings-empty { color: var(--muted); font-size: 0.88rem; }
.rating-item { border-bottom: 1px solid var(--line); padding-bottom: 0.7rem; }
.rating-item:last-child { border-bottom: none; }
.rating-head { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.rating-who { color: var(--muted); }
.rating-comment { color: #cdc7bf; margin: 0.3rem 0 0; font-size: 0.9rem; }
.rating-form { display: flex; flex-direction: column; gap: 0.6rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.star-input { display: flex; gap: 0.2rem; }
.star-input button { background: none; border: none; font-size: 1.7rem; line-height: 1; color: rgba(212, 162, 76, 0.28); cursor: pointer; padding: 0; transition: color 0.15s; }
.star-input button.on { color: var(--gold); }
.rating-form textarea { padding: 0.6rem 0.7rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); font-family: var(--sans); resize: vertical; }
.rating-form .btn-primary { align-self: flex-start; }
.rating-msg { font-size: 0.85rem; color: var(--green); margin: 0; }
.rating-msg.err { color: #e06a6a; }
.rating-gate { color: var(--muted); font-size: 0.88rem; }
.rating-gate a { color: var(--accent-deep); text-decoration: underline; cursor: pointer; }
.modal-body { padding: 2rem 1.8rem; }
.modal-collection { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.modal-body h3 { font-size: 2.1rem; margin: 0.2rem 0 0.4rem; }
.modal-price { font-size: 1.4rem; color: var(--accent-deep); font-weight: 500; }
.modal-desc { color: #cdc7bf; margin: 1rem 0 1.4rem; }
.modal-size label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.size-options { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 1.4rem; }
.size-chip {
  min-width: 44px; padding: 0.5rem 0.8rem; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--ink); border-radius: 10px; cursor: pointer; font-family: var(--sans); font-size: 0.95rem;
}
.size-chip.active { border-color: var(--gold); background: var(--accent-soft); color: var(--accent-deep); }
.modal-add { width: 100%; }
.modal-unique { margin-top: 0.9rem; text-align: center; color: var(--gold); font-size: 0.85rem; }

/* ---------- cart drawer ---------- */
.cart-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column;
  animation: slideIn 0.22s ease;
}
@keyframes slideIn { from { transform: translateX(100%) } to { transform: translateX(0) } }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-size: 1.6rem; }
.cart-x { position: static; background: var(--bg-soft); }
.cart-items { flex: 1; overflow: auto; padding: 1rem 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.cart-empty { text-align: center; color: var(--muted); margin-top: 2rem; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.8rem; align-items: center; }
.cart-line img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-line-name { font-weight: 500; }
.cart-line-meta { font-size: 0.8rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.3rem; }
.qty button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); cursor: pointer; line-height: 1; }
.cart-line-price { font-weight: 500; color: var(--accent-deep); white-space: nowrap; }
.cart-line-remove { display: block; margin-top: 0.3rem; font-size: 0.72rem; color: var(--muted); background: none; border: none; cursor: pointer; text-decoration: underline; }
.cart-foot { border-top: 1px solid var(--line); padding: 1.2rem 1.4rem; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.2rem; margin-bottom: 0.9rem; }
.cart-checkout { width: 100%; }
.cart-hint { font-size: 0.78rem; color: var(--muted); text-align: center; margin: 0.7rem 0 0; }

/* ---------- account / auth ---------- */
.nav-account { cursor: pointer; }
.auth-card, .choice-card { max-width: 420px; }
.auth-body { padding: 2rem 1.8rem; text-align: center; }
.auth-logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin: 0 auto 0.8rem; }
.auth-body h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.auth-tabs { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1.2rem; }
.auth-tab { background: none; border: none; color: var(--muted); font-family: var(--sans); font-size: 0.98rem; cursor: pointer; padding: 0.3rem 0.2rem; border-bottom: 2px solid transparent; }
.auth-tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.auth-social { display: flex; flex-direction: column; gap: 0.6rem; }
.btn-social {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--ink); font-family: var(--sans); font-size: 0.95rem; cursor: pointer;
}
.btn-social:hover { border-color: var(--accent); }
.auth-or { position: relative; text-align: center; color: var(--muted); margin: 1.1rem 0; font-size: 0.8rem; }
.auth-or::before, .auth-or::after { content: ""; position: absolute; top: 50%; width: 36%; height: 1px; background: var(--line); }
.auth-or::before { left: 0; }
.auth-or::after { right: 0; }
.auth-or span { background: var(--card); padding: 0 0.6rem; position: relative; }
.auth-form { display: flex; flex-direction: column; gap: 0.6rem; }
.auth-form input {
  padding: 0.75rem 0.9rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--ink); font-family: var(--sans); font-size: 0.95rem;
}
.auth-form .btn-primary { margin-top: 0.3rem; }
.auth-error { color: #e06a6a; font-size: 0.85rem; margin: 0.3rem 0 0; }
.auth-note { color: var(--green); font-size: 0.85rem; margin: 0.3rem 0 0; }
.auth-who { color: var(--muted); margin-bottom: 1rem; }
.choice-text { color: var(--muted); margin: 0.4rem 0 1.2rem; }
.choice-card .btn-primary { width: 100%; }
.choice-guest { margin-top: 0.7rem; }

/* ---------- language toggle + RTL ---------- */
.lang-toggle {
  background: none; border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; min-width: 34px; height: 34px; padding: 0 0.55rem;
  cursor: pointer; font-family: var(--sans); font-size: 0.85rem; flex: none;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent-deep); }
[dir="rtl"] .cart-count { right: auto; left: -8px; }
[dir="rtl"] .badge { left: auto; right: 0.7rem; }
[dir="rtl"] .card-view { direction: rtl; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; background: none;
    border: none; cursor: pointer; padding: 0.4rem; order: 3;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed; top: 0; right: 0; width: min(280px, 80%);
    height: 100vh; height: 100dvh;
    flex-direction: column; align-items: flex-start; gap: 1.4rem;
    background: #16151a; padding: 5rem 1.6rem 2rem;
    box-shadow: var(--shadow); transform: translateX(100%);
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    z-index: 60; overflow-y: auto; visibility: hidden;
  }
  .nav.open { transform: translateX(0); visibility: visible; transition: transform 0.25s ease; }
  .nav a { font-size: 1.1rem; }
  .cart-btn { position: absolute; top: 1.05rem; right: 4rem; }
  .nav-close {
    display: block; position: absolute; top: 0.8rem; right: 1.1rem;
    background: none; border: none; color: var(--ink); font-size: 2.2rem;
    line-height: 1; cursor: pointer; padding: 0.1rem 0.4rem;
  }
  .nav-close:hover { color: var(--accent); }

  .modal-grid { grid-template-columns: 1fr; }
  .modal-media img { min-height: 240px; max-height: 42vh; }
  .modal-body { padding: 1.5rem 1.3rem; }
  .brand-tag { display: none; }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .card-name { font-size: 1.05rem; }
  .card-body { padding: 0.7rem 0.8rem 0.9rem; }
}

/* mobile horizontal "shelves" layout — enabled via the admin toggle.
   Each category becomes a side-swipe row; scroll down for the next one. */
@media (max-width: 760px) {
  body.mobile-shelves .product-grid {
    display: flex; grid-template-columns: none;
    gap: 0.9rem; overflow-x: auto; padding-bottom: 0.6rem;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  body.mobile-shelves .product-grid::-webkit-scrollbar { display: none; }
  body.mobile-shelves .product-grid > .card {
    flex: 0 0 64%; max-width: 260px; scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  /* the loading screen is a progress indicator — keep it fully animated */
  .loader-ring { animation: loader-spin 0.9s linear infinite !important; }
  .loader-logo { animation: loader-breathe 1.8s ease-in-out infinite !important; }
  .loader-word { animation: loader-pulse 1.7s ease-in-out infinite !important; }
  .loader { transition: opacity 0.4s ease !important; }
}
