﻿/* GrabOrGone styles, based on the Google Stitch design "High-Velocity Retail".
   Mobile-first: base rules are for phones, @media adds wider layouts.
   Colors and font are set once in :root below. */
:root {
  --black: #0d0d0d;
  --white: #ffffff;
  --band: #f4f4f6;        /* light grey section bands */
  --line: #e5e7eb;        /* thin dividers */
  --muted: #5f5e5e;
  --soft: #9ca3af;
  --red: #e3250a;         /* accent: buttons, auction badges */
  --red-dark: #b71500;
  --green: #006b2c;       /* availability only */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--black); background: #f9f9fb; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 8px; }
h1 { font-size: 2rem; font-weight: 900; text-transform: uppercase; }
h2 { font-weight: 800; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 16px; }

/* ---------- Hero strip ---------- */
.hero { background: var(--band); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 24px; padding-bottom: 24px; }
.hero p { margin: 0; color: var(--muted); max-width: 640px; }
.pill { display: inline-block; background: var(--black); color: var(--white); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; margin-bottom: 10px; }

/* ---------- Shop layout: filters + grid ---------- */
.shop { display: flex; flex-direction: column; gap: 16px; }
.filters { background: var(--white); border: 2px solid var(--black); border-radius: 4px; padding: 12px 16px; }
.filters summary { font-weight: 800; text-transform: uppercase; cursor: pointer; }
.filters fieldset { border: 0; border-top: 1px solid var(--line); margin: 12px 0 0; padding: 12px 0 0; }
.filters legend { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 0; margin-bottom: 6px; }
.filters label { display: block; padding: 3px 0; cursor: pointer; font-size: 0.9rem; }
.filters input { accent-color: var(--black); margin-right: 8px; }
.filters select { width: 100%; padding: 8px; font: inherit; border: 1px solid var(--black); border-radius: 4px; background: var(--band); }
.filters input[type=search] { width: 100%; margin: 0; padding: 9px; font: inherit; border: 1px solid var(--black); border-radius: 4px; background: var(--white); }
.reset { background: none; border: 0; color: var(--red-dark); text-decoration: underline; font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; margin-top: 10px; padding: 0; }
.results-bar { background: var(--band); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; font-size: 0.85rem; font-weight: 700; margin-bottom: 12px; }

.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

/* ---------- Product card ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--black); border-radius: 4px; }
.card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; }
.heart { position: absolute; top: 44px; right: 18px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--black); background: var(--white); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0; }
.heart.on { color: var(--red); border-color: var(--red); }
.count { background: var(--red); color: var(--white); border-radius: 10px; padding: 0 6px; font-size: 0.7rem; margin-left: 2px; }
.card:hover { transform: translateY(-3px); }
.card .badges { padding: 10px 10px 0; }
.media { margin: 10px; background: var(--band); aspect-ratio: 1; border-radius: 4px; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body h2 { font-size: 1rem; text-transform: uppercase; }
.price { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.price-sub { font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.card-body .btn { margin-top: auto; }
.card.is-out { opacity: 0.75; }
.card.is-out .media img { filter: grayscale(1); }

/* ---------- Badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: var(--black); color: var(--white); }
.badge.dark { background: var(--black); }
.badge.red { background: var(--red); }
.badge.outline { background: var(--band); color: var(--black); border: 1px solid var(--black); }
.badge.ok { background: var(--green); }
.badge.out { background: var(--soft); }
.badge.soon { background: var(--red-dark); }

/* ---------- Buttons ---------- */
.btn { display: block; text-align: center; padding: 12px; border-radius: 4px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; border: 0; }
.btn-dark { background: var(--black); color: var(--white); }
.card:hover .btn-dark { background: var(--red); }
.avail { font-weight: 800; text-transform: uppercase; font-size: 0.85rem; margin: 0 0 8px; }
.avail.yes { color: var(--green); }
.avail.no { color: var(--muted); }
.btn-ghost { background: var(--white); color: var(--black); border: 2px solid var(--black); margin: 8px 0; padding: 14px; font-size: 0.85rem; cursor: pointer; width: 100%; font-family: inherit; }
.btn-ghost:hover { background: var(--black); color: var(--white); }

/* ---------- Product page extras: notify form ---------- */
.notify { background: var(--band); border: 1px solid var(--line); border-radius: 4px; padding: 12px; margin: 12px 0; }
.notify strong { display: block; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 6px; }
.notify form { display: flex; gap: 8px; flex-wrap: wrap; }
.notify input[type=tel] { flex: 1 1 180px; padding: 10px; font: inherit; border: 1px solid var(--black); border-radius: 4px; }
.notify button { padding: 10px 14px; font: inherit; font-weight: 800; background: var(--black); color: var(--white); border: 0; border-radius: 4px; cursor: pointer; }
.notify .note { font-size: 0.8rem; margin: 6px 0 0; color: var(--muted); }
.notify .hp { position: absolute; left: -9999px; }
.row-actions { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .row-actions { grid-template-columns: 1fr 1fr; } }

/* ---------- Cart ---------- */
.cart-group { background: var(--white); border: 2px solid var(--black); border-radius: 4px; padding: 16px; margin-bottom: 16px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 64px; height: 64px; object-fit: cover; background: var(--band); border-radius: 4px; }
.cart-line .name { font-weight: 800; text-transform: uppercase; font-size: 0.9rem; }
.cart-line .gone { color: var(--red-dark); font-weight: 700; font-size: 0.8rem; }
.qty { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.qty button, .linkbtn { font: inherit; font-weight: 800; border: 1px solid var(--black); background: var(--white); border-radius: 4px; width: 30px; height: 30px; cursor: pointer; padding: 0; }
.qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.linkbtn { width: auto; border: 0; background: none; text-decoration: underline; color: var(--red-dark); height: auto; font-size: 0.8rem; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 900; padding: 12px 0; }
.empty-box { background: var(--white); border: 2px dashed var(--soft); padding: 32px 16px; text-align: center; }
.btn-off { background: var(--line); color: var(--soft); }
.btn-red { background: var(--red); color: var(--white); margin: 8px 0; padding: 16px; font-size: 0.9rem; }
.btn-red:hover { background: var(--red-dark); }

/* ---------- Product page ---------- */
.crumbs { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.product-layout { display: grid; gap: 24px; }
.gallery .main { background: var(--white); border: 2px solid var(--black); border-radius: 4px; aspect-ratio: 1; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.thumbs button { padding: 0; background: var(--white); border: 2px solid var(--line); border-radius: 4px; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.thumbs button.on { border-color: var(--black); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.price-box { background: var(--band); border: 1px solid var(--line); border-radius: 4px; padding: 16px; margin: 16px 0; }
.price-box .label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.price-box .price { font-size: 2.25rem; }
.price-box .aed { font-size: 1.75rem; font-weight: 900; color: var(--red); letter-spacing: -0.03em; }
.trust { display: grid; gap: 8px; margin-top: 16px; }
.trust div { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 10px; font-size: 0.8rem; }
.trust strong { display: block; text-transform: uppercase; }
.specs { width: 100%; border-collapse: collapse; background: var(--white); border: 2px solid var(--black); margin-top: 8px; }
.specs th, .specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.specs th { width: 40%; background: var(--band); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.section { margin-top: 32px; }

/* ---------- Terms & conditions page: soft colours, rounded corners ---------- */
.tc { max-width: 900px; }
.tc-hero { background: #cde6e3; border-radius: 16px; padding: 36px 16px; text-align: center; margin-bottom: 16px; }
.tc-hero h1 { margin: 0; color: #4a14a8; text-transform: none; font-size: 2rem; letter-spacing: -0.03em; }
.tc-intro { text-align: center; color: var(--muted); }
.tc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.tc-tab { font: inherit; font-weight: 700; text-align: left; padding: 16px; border: 2px solid transparent; border-radius: 12px; cursor: pointer; color: var(--black); }
.tc-tab.c0 { background: #cde6e3; } .tc-tab.c1 { background: #fdebb8; } .tc-tab.c2 { background: #f7d3e3; } .tc-tab.c3 { background: #d4cdf5; }
.tc-tab.on { border-color: #4a14a8; }
.tc-group h2 { text-align: center; text-transform: none; font-size: 1.3rem; margin: 20px 0 14px; }
.tc-group details { background: var(--white); border: 1px solid #c9ced6; border-radius: 12px; margin-bottom: 10px; }
.tc-group summary { cursor: pointer; padding: 18px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.tc-group summary::-webkit-details-marker { display: none; }
.tc-group summary::after { content: "âŒ„"; font-size: 1.3rem; line-height: 1; color: #4a14a8; transition: transform 0.15s; }
.tc-group details[open] summary::after { transform: rotate(180deg); }
.tc-group details[open] summary { border-bottom: 1px solid var(--line); }
.tc-body { padding: 4px 16px 12px; }
.tc-body p { margin: 12px 0; }
@media (min-width: 700px) { .tc-tabs { grid-template-columns: repeat(4, 1fr); } .tc-hero h1 { font-size: 2.6rem; } }

/* ---------- Text pages ---------- */
.text-page { max-width: 760px; }
.text-page h2 { margin-top: 28px; font-size: 1.4rem; text-transform: uppercase; scroll-margin-top: 16px; }
.text-page ul, .text-page ol { padding-left: 20px; }
.text-page li { margin-bottom: 8px; }
.lead { font-size: 1.2rem; font-weight: 800; }
.toc { font-size: 0.85rem; font-weight: 700; }
.hint { color: var(--muted); font-size: 0.85rem; }
.trust a { display: block; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 10px; font-size: 0.8rem; }
.trust a:hover { border-color: var(--black); }
.trust a strong { display: block; text-transform: uppercase; }
.todo { background: #fff3a8; padding: 0 4px; }

.site-footer { text-align: center; color: var(--muted); background: var(--band); border-top: 2px solid var(--black); padding: 24px 16px; font-size: 0.85rem; margin-top: 40px; }

/* ---------- Wider screens ---------- */
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  h1 { font-size: 3rem; }
  .shop { flex-direction: row; align-items: flex-start; }
  .filters { width: 260px; flex-shrink: 0; }
  .listing { flex: 1; min-width: 0; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .product-layout { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================================
   Soft theme (applies to the whole site): pastel colours and curved corners.
   Change the look from here. These rules sit last so they win over the rules above.
   ===================================================================== */
:root {
  --radius: 12px;
  --radius-lg: 16px;
  --purple: #4a14a8;
  --mint: #cde6e3;
  --sun: #fef3d0;
  --rose: #f7d3e3;
  --lav: #d4cdf5;
  --line: #dfe3e8;
}
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
h1, h2, h3 { text-transform: none; }

/* Hero: a rounded mint banner */
.hero { background: none; border: 0; max-width: 1280px; margin: 0 auto; padding: 16px 16px 0; }
.hero .wrap { background: var(--mint); border-radius: var(--radius-lg); padding: 28px 22px; max-width: none; }
.hero h1 { color: var(--purple); letter-spacing: -0.03em; }
.hero p { color: #2f4a47; }
.pill { background: var(--lav); color: var(--purple); border-radius: 999px; padding: 4px 12px; }

/* Filters and shop */
.filters { border: 1px solid var(--line); border-radius: var(--radius-lg); }
.filters select, .filters input[type=search], .notify input[type=tel] { border: 1px solid #c9ced6; border-radius: 10px; }
.filters input { accent-color: var(--purple); }
.results-bar { border-radius: 10px; background: var(--sun); border-color: transparent; }
.reset { color: var(--purple); }

/* Cards */
.card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.card:hover { border-color: var(--purple); box-shadow: 0 6px 18px rgba(74, 20, 168, 0.12); }
.media { border-radius: var(--radius); }
.card-body h2 { text-transform: none; font-size: 1.05rem; }
.heart { border: 1px solid var(--line); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }

/* Badges: little pills */
.badge { border-radius: 999px; padding: 3px 10px; letter-spacing: 0.04em; }
.badge.dark { background: var(--lav); color: var(--purple); }
.badge.ok { background: var(--mint); color: #0b4a2c; }
.badge.out { background: #e5e7eb; color: var(--muted); }
.badge.soon { background: var(--rose); color: #8a1245; }

/* Buttons */
.btn { border-radius: 10px; text-transform: none; font-size: 0.95rem; letter-spacing: 0; font-weight: 700; }
.btn-dark { background: var(--black); }
.card:hover .btn-dark { background: var(--purple); }
.btn-red { border-radius: 12px; }
.btn-ghost { border: 1.5px solid var(--black); border-radius: 12px; }
.btn-ghost:hover { background: var(--purple); border-color: var(--purple); }
.btn-off { background: #eceef1; }
.notify button, .qty button { border-radius: 10px; }
.notify button:hover { background: var(--purple); }
.qty button { width: 34px; height: 34px; }
.linkbtn { color: var(--purple); }

/* Product page */
.gallery .main { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.thumbs button { border-radius: 10px; }
.thumbs button.on { border-color: var(--purple); }
.price-box { background: var(--sun); border: 0; border-radius: var(--radius-lg); }
.price-box .label { color: #6b5a1f; }
.avail { text-transform: none; font-size: 0.95rem; }
.notify { border-radius: var(--radius); background: var(--lav); border: 0; }
.notify strong { text-transform: none; font-size: 0.9rem; }
.trust a { border: 0; border-radius: var(--radius); }
.trust a:nth-child(1) { background: var(--mint); }
.trust a:nth-child(2) { background: var(--rose); }
.trust a:nth-child(3) { background: var(--lav); }
.trust a strong { text-transform: none; }
.specs { border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { text-transform: none; letter-spacing: 0; font-size: 0.85rem; background: var(--band); }
.crumbs a { color: var(--purple); }

/* Cart, saved, text pages */
.cart-group { border: 1px solid var(--line); border-radius: var(--radius-lg); }
.cart-line img { border-radius: 10px; }
.cart-line .name { text-transform: none; font-size: 1rem; }
.empty-box { border: 2px dashed #c9ced6; border-radius: var(--radius-lg); }
.text-page h2 { text-transform: none; }
.text-page h1 { color: var(--purple); }
.tc-hero h1 { text-transform: none; }

/* Footer */
.site-footer { border-top: 0; background: var(--band); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }


/* =====================================================================
   Header and menus (white header, Shop All / Sale mega menus, pill search)
   ===================================================================== */
[hidden] { display: none !important; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.site-header { background: #fff; color: var(--black); position: relative; z-index: 30; border-bottom: 1px solid var(--line); }
.top-strip { background: #f4f4f6; font-size: 0.72rem; }
.top-strip .inner { max-width: 1280px; margin: 0 auto; padding: 6px 16px; display: flex; gap: 16px; justify-content: flex-end; flex-wrap: wrap; }
.top-strip a { text-decoration: none; color: var(--muted); }
.top-strip a:hover { color: var(--purple); }

.bar .inner { max-width: 1280px; margin: 0 auto; padding: 12px 16px; display: grid; gap: 10px 14px; align-items: center;
  grid-template-columns: 1fr auto; grid-template-areas: "logo actions" "menus menus" "search search"; }
.logo { grid-area: logo; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 46px; height: 46px; border-radius: 50%; background: var(--black); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 0.78rem; box-shadow: inset 0 -5px 0 var(--red); }
.logo-text b { display: block; font-size: 1.15rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.logo-text small { display: none; font-size: 0.7rem; color: var(--muted); }

.menu-btns { grid-area: menus; display: flex; gap: 8px; }
.menu-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 700; padding: 9px 14px; background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; color: var(--black); }
.menu-btn .icon { width: 16px; height: 16px; transition: transform 0.15s; }
.menu-btn.open { border-bottom-color: var(--purple); }
.menu-btn.open .icon { transform: rotate(180deg); }
.menu-btn.sale { background: var(--black); color: #fff; border-radius: 999px; border-bottom: 0; padding: 9px 16px; }
.menu-btn.sale.open { background: var(--purple); }

.search { grid-area: search; display: flex; align-items: center; background: #fff; border: 2px solid #c9bdf0; border-radius: 999px; padding: 4px 4px 4px 18px; box-shadow: 0 0 0 3px rgba(74, 20, 168, 0.06); }
.search:focus-within { border-color: var(--purple); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; background: transparent; padding: 8px 0; }
.search button { width: 40px; height: 40px; border-radius: 50%; background: var(--purple); border: 0; color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.search button .icon { width: 20px; height: 20px; }

.actions { grid-area: actions; display: flex; gap: 2px; justify-self: end; }
.act { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; font: inherit; font-size: 0.75rem; color: var(--black); text-decoration: none; padding: 4px 8px; cursor: pointer; border-radius: 10px; }
.act:hover { background: var(--band); }
.act.on { color: var(--purple); }
.act-icon { position: relative; display: inline-flex; }
.act-icon .count { position: absolute; top: -6px; right: -10px; margin: 0; }
@media (max-width: 599px) { .act-label { display: none; } .act { padding: 6px; } }

@media (min-width: 1000px) {
  .bar .inner { grid-template-columns: auto auto 1fr auto; grid-template-areas: "logo menus search actions"; gap: 18px; }
  .logo-text small { display: block; }
}

/* Mega menu: opens under the header */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: 0 18px 30px rgba(0, 0, 0, 0.14); max-height: calc(100vh - 150px); overflow-y: auto; }
.mega-inner { max-width: 1280px; margin: 0 auto; padding: 16px; display: grid; gap: 16px; }
.mega-cats { list-style: none; margin: 0; padding: 0; }
.mega-cat { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; font: inherit; padding: 13px 12px; border: 0; background: none; cursor: pointer; border-radius: 10px; text-decoration: none; color: inherit; }
.mega-cat.on, .mega-cat:hover { background: #f1ecfc; color: var(--purple); }
.mega-cat .chev { color: var(--purple); font-size: 1.3rem; line-height: 1; }
.mega-cat.plain { font-weight: 700; margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.mega-body { display: grid; gap: 20px; }
.mega-side { background: var(--band); border-radius: var(--radius); padding: 16px; align-self: start; }
.mega-side h3 { margin: 18px 0 8px; font-size: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.mega-side ul, .mega-col ul { list-style: none; padding: 0; margin: 0; }
.mega-side li, .mega-col li { padding: 6px 0; line-height: 1.35; }
.mega-all { display: block; font-weight: 800; }
.mega-side a, .mega-col a, .mega-all { text-decoration: none; font-size: 0.92rem; }
.mega-side a:hover, .mega-col a:hover { color: var(--purple); text-decoration: underline; }
.promos .hl { color: #d4146a; }
.mega-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; align-content: start; }
.mega-col h3 { font-size: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin: 0 0 8px; }
.mega-empty { color: var(--muted); margin: 0; }
@media (min-width: 900px) {
  .mega-inner:not(.sale-panel) { grid-template-columns: 250px 1fr; }
  .mega-body { grid-template-columns: 240px 1fr; }
}

/* Sale prices */
.price-wrap { margin-bottom: 8px; }
.was-row { display: flex; align-items: center; margin-top: 2px; }
.was { text-decoration: line-through; color: var(--soft); font-weight: 700; }
.save { background: var(--rose); color: #8a1245; border-radius: 999px; font-size: 0.7rem; font-weight: 800; padding: 1px 8px; margin-left: 8px; }
.price-box .was-row { margin: 2px 0 6px; }

/* Small message at the bottom of the screen */
#notice { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--black); color: #fff; padding: 12px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 50; max-width: 90vw; }
#notice.show { opacity: 1; }


/* =====================================================================
   Product photo slider (photos fill the square, swipe or use the arrows)
   ===================================================================== */
.slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--band); border: 1px solid var(--line); }
.slider:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--black); font-size: 1.8rem; line-height: 1; padding: 0 0 4px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
.arrow:hover:not(:disabled) { background: var(--purple); color: #fff; }
.arrow:disabled { opacity: 0.35; cursor: default; }
.arrow.prev { left: 10px; }
.arrow.next { right: 10px; }
.counter { position: absolute; top: 12px; right: 12px; background: rgba(13, 13, 13, 0.7); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 0 56px; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.7); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); cursor: pointer; }
.dots button.on { background: var(--purple); box-shadow: 0 0 0 1px #fff; width: 22px; border-radius: 999px; }
@media (max-width: 599px) { .arrow { width: 36px; height: 36px; font-size: 1.5rem; } }

/* Product page title and description: calmer sizes */
.product-layout h1 { font-size: 1.5rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 12px; }
@media (min-width: 900px) { .product-layout h1 { font-size: 1.75rem; } }
.desc { white-space: pre-line; color: #333; font-size: 0.95rem; }

/* Product page layout: photos then description on the left, buying info and item details on the right */
.product-layout { grid-template-areas: "gallery" "info" "desc"; }
.product-layout .gallery { grid-area: gallery; }
.product-layout .info { grid-area: info; min-width: 0; }
.product-layout .desc-box { grid-area: desc; min-width: 0; }
.desc-box h2 { font-size: 1.2rem; margin: 0 0 8px; }
.desc-box .desc { margin: 0; }
.info .section { margin-top: 24px; }
@media (min-width: 900px) {
  .product-layout { grid-template-columns: 1fr 1fr; grid-template-areas: "gallery info" "desc info"; grid-template-rows: auto 1fr; align-items: start; }
}


/* =====================================================================
   Product page layout and parts
   Phones: title, short description, rating, photos, price, options, buttons, wishlist, delivery, details, description.
   Desktop: photos then description on the left; title, buy box and details on the right.
   ===================================================================== */
.product-layout { display: flex; flex-direction: column; gap: 20px; grid-template-areas: none; grid-template-columns: none; grid-template-rows: none; }
.col-left, .col-right { display: contents; }
.o-head { order: 1; } .o-gallery { order: 2; } .o-buy { order: 3; } .o-details { order: 4; } .o-desc { order: 5; }
@media (min-width: 900px) {
  .product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .col-left, .col-right { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
}
.hp { position: absolute; left: -9999px; }
.p-head h1 { margin: 0 0 6px; }
.summary { margin: 0 0 8px; color: #444; }
.rating-row { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; text-decoration: none; color: var(--muted); }
.rating-row:hover { color: var(--purple); }
.stars { color: #e8a400; letter-spacing: 1px; }
.rating-row b { color: var(--black); }
.rating-line { font-size: 0.8rem; font-weight: 700; color: #a56b00; }

.price-box .price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; }
.price-box .price { font-size: 2rem; }
.price-box .was { font-size: 1.1rem; }
.price-line .save { margin-left: 0; font-size: 0.8rem; padding: 2px 10px; }
.price-box { margin: 0 0 10px; }

.options { display: grid; gap: 14px; margin: 14px 0; }
.opt-title { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; font-size: 0.9rem; }
.opt-picked { color: var(--muted); }
.opt-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { font: inherit; font-weight: 700; font-size: 0.9rem; padding: 8px 14px; border: 1.5px solid #c9ced6; background: var(--white); border-radius: 999px; cursor: pointer; }
.opt:hover { border-color: var(--purple); }
.opt.on { background: var(--purple); border-color: var(--purple); color: #fff; }

.buy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; }
.buy-row .btn { margin: 0; padding: 14px 8px; font-size: 0.9rem; width: 100%; }
.save-btn { display: block; width: 100%; text-align: left; font: inherit; font-weight: 700; color: var(--purple); background: none; border: 0; padding: 10px 2px; cursor: pointer; }
.save-btn:hover { text-decoration: underline; }

.delivery { border: 1.5px solid var(--black); border-radius: var(--radius); margin: 8px 0 0; }
.delivery summary { cursor: pointer; list-style: none; padding: 14px 16px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.delivery summary::-webkit-details-marker { display: none; }
.delivery summary::after { content: "⌄"; font-size: 1.3rem; line-height: 1; color: var(--purple); transition: transform 0.15s; }
.delivery[open] summary::after { transform: rotate(180deg); }
.delivery-body { padding: 0 16px 14px; font-size: 0.9rem; }
.delivery-body p { margin: 8px 0; }
.delivery-body a { color: var(--purple); font-weight: 700; }

.p-details h2, .desc-box h2 { font-size: 1.2rem; margin: 0 0 8px; }
.desc-box .desc { margin: 0; }

/* Reviews */
.reviews { margin-top: 40px; max-width: 760px; }
.reviews-summary { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.reviews-summary .big { font-size: 2.2rem; font-weight: 900; }
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 8px 0; }
.review-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review p { margin: 6px 0 0; white-space: pre-line; }
.review-form { background: var(--band); border-radius: var(--radius-lg); padding: 16px; display: grid; gap: 10px; max-width: 560px; margin-top: 16px; position: relative; }
.review-form h3 { margin: 0; }
.review-form input:not(.hp), .review-form textarea { font: inherit; padding: 10px; border: 1px solid #c9ced6; border-radius: 10px; width: 100%; }
.review-form .btn { width: auto; justify-self: start; padding: 12px 22px; cursor: pointer; border: 0; }
.star-pick button { font-size: 1.7rem; line-height: 1; background: none; border: 0; color: #e8a400; cursor: pointer; padding: 0 2px; }

/* Options with their own price and stock */
.from { font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-right: 4px; }
.opt:disabled { color: #a3a8b0; text-decoration: line-through; border-style: dashed; cursor: not-allowed; background: #f4f4f6; }
.opt:disabled:hover { border-color: #c9ced6; }
.opt-note { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* Slider dots: see-through so the photo shows behind them */
.dots button { background: rgba(255, 255, 255, 0.4); box-shadow: none; }
.dots button:hover { background: rgba(255, 255, 255, 0.7); }
.dots button.on { background: rgba(74, 20, 168, 0.8); box-shadow: none; }

/* Reviews: rating summary with bars, review cards, hidden write-a-review form */
.stars-vis { position: relative; display: inline-block; color: #d6d9df; letter-spacing: 2px; line-height: 1; white-space: nowrap; }
.stars-vis::before { content: "★★★★★"; }
.stars-vis > span { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #e8a400; }
.stars-vis.lg { font-size: 1.7rem; }
.reviews { max-width: 1000px; }
.reviews-grid { display: grid; gap: 24px; }
@media (min-width: 800px) { .reviews-grid { grid-template-columns: 340px 1fr; align-items: start; } }
.reviews-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.outof { font-size: 1.2rem; font-weight: 800; }
.bar-row { display: grid; grid-template-columns: 48px 1fr 40px; align-items: center; gap: 10px; width: 100%; padding: 5px 4px; border: 0; background: none; font: inherit; font-size: 0.9rem; cursor: pointer; border-radius: 8px; text-align: left; color: var(--purple); }
.bar-row:hover:not(:disabled), .bar-row.on { background: #f1ecfc; }
.bar-row:disabled { cursor: default; color: var(--muted); }
.bar-track { height: 18px; border-radius: 6px; background: #eceef1; border: 1px solid #d6d9df; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: #e8a400; }
.bar-pct { color: var(--purple); text-align: right; }
.reviews-side hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.reviews-side h3 { margin: 0 0 4px; }
.write-btn { display: block; width: 100%; margin-top: 10px; padding: 12px; font: inherit; font-weight: 700; background: var(--white); border: 1.5px solid var(--black); border-radius: 999px; cursor: pointer; }
.write-btn:hover { background: var(--black); color: #fff; }
.reviews-side .review-form { margin-top: 12px; }
.chip { font: inherit; font-weight: 700; font-size: 0.85rem; background: var(--lav); color: var(--purple); border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; margin-bottom: 10px; }
.review { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; margin: 0; }
.review-who { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--lav); color: var(--purple); display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; }
.review-line { display: flex; align-items: center; gap: 10px; }
.review p { margin: 8px 0 0; }

/* WhatsApp button, photo viewer, delivery estimate */
.chat-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 8px; background: #25d366; color: #fff; text-decoration: none; font-weight: 800; padding: 12px 16px 12px 12px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.chat-float .icon { width: 26px; height: 26px; stroke-width: 2; }
.chat-float:hover { background: #1ebe5b; }
@media (max-width: 599px) { .chat-float span { display: none; } .chat-float { padding: 13px; } }
body.no-scroll { overflow: hidden; }
.zoom-hint { position: absolute; left: 12px; top: 12px; background: rgba(13, 13, 13, 0.7); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; pointer-events: none; }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(13, 13, 13, 0.94); }
.lb-stage { position: absolute; inset: 0; overflow: auto; display: flex; align-items: center; justify-content: center; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.lightbox.zoomed .lb-stage { display: block; }
.lightbox.zoomed .lb-stage img { max-width: none; max-height: none; width: 220%; cursor: zoom-out; }
.lb-close, .lb-arrow { position: absolute; border: 0; border-radius: 50%; width: 44px; height: 44px; background: rgba(255, 255, 255, 0.92); color: #0d0d0d; font-size: 1.4rem; cursor: pointer; padding: 0 0 3px; z-index: 2; }
.lb-close { top: 14px; right: 14px; padding: 0; }
.lb-arrow { top: 50%; transform: translateY(-50%); font-size: 1.9rem; }
.lb-arrow.prev { left: 14px; } .lb-arrow.next { right: 14px; }
.lb-counter { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; background: rgba(0, 0, 0, 0.5); padding: 3px 12px; border-radius: 999px; }
.lightbox.zoomed .lb-arrow, .lightbox.zoomed .lb-counter { display: none; }
.estimate { background: var(--lav); border-radius: var(--radius); padding: 12px; margin: 8px 0 12px; display: grid; gap: 8px; }
.estimate-out { margin: 0; font-size: 0.9rem; }
.city-select { font: inherit; padding: 10px; border: 1px solid #c9ced6; border-radius: 10px; background: #fff; width: 100%; }
.pay-row { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.9rem; }
.cart-sum { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.sum-row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
