/* ==========================================================================
   OPB Fashion — Myntra-inspired storefront theme
   ========================================================================== */

:root {
  --pink: #ff3f6c;          /* primary CTA / brand accent */
  --pink-dark: #e6285a;
  --ink: #282c3f;           /* Myntra-style near-black text */
  --text: #282c3f;
  --muted: #7e818c;
  --muted-2: #94969f;
  --discount: #ff905a;      /* orange discount text */
  --rating: #03a685;
  --line: #eaeaec;
  --bg: #ffffff;
  --bg-soft: #f5f5f6;
  --deep: #1f1747;          /* deep indigo for hero/footer */
  --violet: #7b2ff7;
  --gold: #f6a417;
  --ok: #03a685;
  --shadow-sm: 0 2px 8px rgba(40,44,63,.08);
  --shadow: 0 8px 26px rgba(40,44,63,.16);
  --radius: 8px;
  --radius-lg: 14px;
  --max: 1280px;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .4rem; color: var(--ink); font-weight: 700; line-height: 1.2; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.1rem; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }

/* ---------- Universal image-fit: every image inside a fixed box fills it ---------- */
.imgbox { position: relative; overflow: hidden; background: var(--bg-soft); }
.imgbox img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.4rem; border-radius: var(--radius); border: 0; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: .9rem; transition: .15s ease; white-space: nowrap;
  text-transform: uppercase; letter-spacing: .3px;
}
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--pink-dark); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-gold { background: var(--gold); color: #3a2500; }
.btn-outline { background: transparent; border: 1px solid var(--pink); color: var(--pink); }
.btn-outline:hover { background: var(--pink); color: #fff; }
.btn-soft { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-soft:hover { border-color: var(--muted); }
.btn-whatsapp { background: #25d366; color: #063d1f; }
.btn-whatsapp:hover { background: #1eb85a; }
.btn-sm { padding: .5rem .9rem; font-size: .78rem; }
.btn-block { width: 100%; }

/* ---------- Announcement ---------- */
.announce { background: linear-gradient(90deg, var(--deep), var(--violet)); color: #fff; text-align: center; font-size: .8rem; padding: .45rem 1rem; letter-spacing: .3px; }
.announce b { color: var(--gold); }

/* ---------- Header (Myntra style) ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: 0 1px 6px rgba(40,44,63,.1); }
.header-inner { display: flex; align-items: center; gap: 2.2rem; padding: .55rem 1.1rem; max-width: var(--max); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.35rem; color: var(--ink); flex-shrink: 0; }
.logo .logo-mark { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--pink), var(--violet)); color: #fff; font-weight: 800; font-size: .95rem; }
.logo small { display: block; font-size: .58rem; font-weight: 600; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.logo-img { display: block; height: 48px; width: auto; max-width: 220px; object-fit: contain; }
.logo-img-footer { height: 42px; max-width: 200px; }
@media (max-width: 768px) { .logo-img { height: 40px; max-width: 170px; } }
.main-nav { display: flex; gap: 1.8rem; height: 100%; }
.main-nav a { font-weight: 700; font-size: .82rem; color: var(--ink); text-transform: uppercase; letter-spacing: .3px; padding: 1.1rem 0; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--pink); transform: scaleX(0); transition: transform .18s; }
.main-nav a:hover, .main-nav a.active { color: var(--pink); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-search { flex: 1; max-width: 520px; position: relative; }
.header-search input { width: 100%; padding: .7rem 1rem .7rem 2.6rem; border: 1px solid transparent; border-radius: var(--radius); background: var(--bg-soft); font-family: inherit; font-size: .9rem; outline: none; }
.header-search input:focus { border-color: #d4d5d9; background: #fff; }
.header-search .search-ico { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1rem; }
.header-actions { display: flex; align-items: center; gap: 1.6rem; }
.header-actions a { display: flex; flex-direction: column; align-items: center; font-size: .68rem; color: var(--ink); font-weight: 700; gap: 3px; }
.header-actions a:hover { color: var(--pink); }
.header-actions .ico { font-size: 1.2rem; }
.cart-link { position: relative; }
.cart-count { position: absolute; top: -6px; right: 4px; background: var(--pink); color: #fff; font-size: .6rem; min-width: 16px; height: 16px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; padding: 0 3px; }
.hamburger { display: none; font-size: 1.5rem; background: none; border: 0; color: var(--ink); cursor: pointer; }

/* ---------- Hero carousel (trending saree + jewellery banner) ---------- */
.hero-carousel { position: relative; max-width: var(--max); margin: 1rem auto; height: 440px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.hero-slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; opacity: 0; visibility: hidden; transition: opacity .6s ease; }
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide-copy { background: linear-gradient(135deg, var(--deep), var(--violet)); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 3rem; }
.hero-slide-copy .tag { display: inline-block; width: fit-content; background: rgba(255,255,255,.16); color: #fff; padding: .3rem .8rem; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.hero-slide-copy .tag.saree { background: var(--gold); color: #3a2500; }
.hero-slide-copy .tag.jewel { background: var(--pink); }
.hero-slide-copy h2 { color: #fff; font-size: 2.1rem; line-height: 1.15; margin-bottom: .6rem; }
.hero-slide-copy .price { font-size: 1.4rem; font-weight: 800; margin: .3rem 0 .2rem; }
.hero-slide-copy .price .mrp { font-size: .95rem; font-weight: 500; text-decoration: line-through; color: #cbc3f0; margin-left: .5rem; }
.hero-slide-copy .price .off { color: #ffd36b; font-size: .95rem; font-weight: 700; margin-left: .4rem; }
.hero-slide-copy .hero-cta { display: flex; gap: .7rem; margin-top: 1.4rem; flex-wrap: wrap; }
.hero-slide-media { position: relative; overflow: hidden; background: var(--bg-soft); }
.hero-slide-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow-sm); display: grid; place-items: center; }
.hero-arrow.prev { left: 14px; } .hero-arrow.next { right: 14px; }
.hero-arrow:hover { background: #fff; color: var(--pink); }
.hero-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: .4rem; }
.hero-dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.hero-dots button.active { background: #fff; width: 22px; }

/* ---------- Page hero banner (offers etc.) ---------- */
.page-hero { max-width: var(--max); margin: 1rem auto; border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; min-height: 260px; box-shadow: var(--shadow-sm); }
.page-hero-copy { background: linear-gradient(135deg, var(--deep), var(--violet)); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 2.4rem; }
.page-hero-copy .eyebrow { color: var(--gold); }
.page-hero-copy h1 { color: #fff; font-size: 2rem; margin: .5rem 0; }
.page-hero-copy p { color: #e7e2ff; max-width: 440px; margin-bottom: 1.2rem; }
.page-hero-media { position: relative; overflow: hidden; background: var(--bg-soft); }
.page-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
@media (max-width: 768px) { .page-hero { grid-template-columns: 1fr; } .page-hero-media { height: 220px; } .page-hero-copy { padding: 1.6rem; } .page-hero-copy h1 { font-size: 1.5rem; } }

/* ---------- Trending duo band (Saree × Jewellery) ---------- */
.duo { max-width: var(--max); margin: 2rem auto; padding: 0 1.1rem; }
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.duo-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; min-height: 220px; }
.duo-card .duo-visual { position: relative; overflow: hidden; background: var(--bg-soft); }
.duo-card .duo-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.duo-card .duo-tag { position: absolute; top: .7rem; left: .7rem; z-index: 2; background: #fff; color: var(--ink); font-size: .68rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; }
.duo-card .duo-body { padding: 1.4rem; display: flex; flex-direction: column; justify-content: center; }
.duo-card .duo-body .eyebrow { color: var(--pink); }
.duo-card .duo-body h3 { font-size: 1.1rem; margin: .3rem 0 .5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.duo-card .duo-body .price { font-weight: 800; font-size: 1.15rem; margin-bottom: .9rem; }
.duo-card .duo-body .price .mrp { font-weight: 500; font-size: .85rem; text-decoration: line-through; color: var(--muted); margin-left: .4rem; }

/* ---------- Category chips ---------- */
.cat-chips { display: flex; gap: 1.2rem; overflow-x: auto; padding: .4rem .2rem 1rem; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: .55rem; width: 96px; }
.cat-chip .cat-thumb { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; border: 2px solid var(--line); background: var(--bg-soft); position: relative; }
.cat-chip .cat-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-chip span { font-size: .76rem; font-weight: 600; color: var(--ink); text-align: center; }
.cat-chip:hover .cat-thumb { border-color: var(--pink); }

/* ---------- Rails / sections ---------- */
.rail { max-width: var(--max); margin: 2.4rem auto; padding: 0 1.1rem; }
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.rail-tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .5px; margin-bottom: .2rem; text-transform: uppercase; }
.rail-tag-trending { color: var(--pink); }
.rail-tag-offers { color: var(--discount); }
.rail-tag-reco { color: var(--violet); }
.rail-head h2 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: .5px; }
.rail-sub { color: var(--muted); font-size: .86rem; margin: 0; }
.rail-head-right { display: flex; align-items: center; gap: 1rem; }
.rail-more { font-weight: 700; color: var(--ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.rail-more:hover { color: var(--pink); }
.rail-countdown { display: flex; align-items: center; gap: .45rem; background: var(--ink); color: #fff; padding: .4rem .8rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.rail-countdown-time { background: var(--gold); color: #3a2500; padding: .1rem .45rem; border-radius: 5px; font-variant-numeric: tabular-nums; font-weight: 800; }
.rail-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.rail-track.is-refreshing { opacity: .35; transition: opacity .2s; }

/* ---------- Product card (Myntra style) ---------- */
.pcard { background: #fff; border: 1px solid transparent; position: relative; transition: .18s ease; display: flex; flex-direction: column; min-width: 0; }
.pcard:hover { box-shadow: var(--shadow); border-color: var(--line); }
.pcard-img { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; background: var(--bg-soft); }
.pcard-img-link { position: absolute; inset: 0; display: block; }
.pcard-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: opacity .3s; }
.pcard-img .img-hover { opacity: 0; }
.pcard:hover .pcard-img .img-hover { opacity: 1; }
.pcard-badges { position: absolute; top: .5rem; left: 0; display: flex; flex-direction: column; gap: .3rem; z-index: 2; }
.badge { font-size: .64rem; font-weight: 700; padding: .2rem .5rem; color: #fff; letter-spacing: .3px; text-transform: uppercase; }
.badge-sale { background: var(--pink); border-radius: 0 4px 4px 0; }
.badge-trending { background: var(--violet); border-radius: 0 4px 4px 0; }
.badge-offer { background: var(--discount); border-radius: 0 4px 4px 0; }
.badge-new { background: var(--ink); border-radius: 0 4px 4px 0; }
.badge-urgent { background: #ef4444; border-radius: 0 4px 4px 0; }
.wish { position: absolute; top: .5rem; right: .5rem; z-index: 3; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.95); border: 0; cursor: pointer; font-size: .95rem; color: var(--muted); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.wish.active, .wish:hover { color: var(--pink); }
.pcard-quick { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; transform: translateY(100%); transition: transform .2s ease; }
.pcard:hover .pcard-quick { transform: translateY(0); }
.pcard-quick button { width: 100%; border: 0; background: rgba(255,255,255,.97); color: var(--ink); font-weight: 700; font-size: .78rem; padding: .65rem; cursor: pointer; text-transform: uppercase; letter-spacing: .4px; border-top: 1px solid var(--line); }
.pcard-quick button:hover { color: var(--pink); }
.pcard-body { padding: .7rem .75rem 1rem; display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 0; }
.pcard-brand { display: block; max-width: 100%; font-size: .88rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-name { display: block; max-width: 100%; font-size: .82rem; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.pcard-price { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; margin-top: .35rem; }
.pcard-price .now { font-size: .92rem; font-weight: 700; color: var(--ink); }
.pcard-price .mrp { font-size: .8rem; color: var(--muted); text-decoration: line-through; }
.pcard-price .off { font-size: .8rem; font-weight: 700; color: var(--discount); }
.pcard-stock { font-size: .72rem; color: #ef4444; font-weight: 600; margin-top: .2rem; }

/* ---------- Combos ---------- */
.combo-section { background: linear-gradient(120deg, #1f1747, #4b2fae); padding: 2.6rem 0; margin: 2.6rem 0; }
.combo-section .rail-head h2, .combo-section .rail-tag { color: #fff; }
.combo-section .rail-sub { color: #d9d2ff; }
.combo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.combo-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.combo-imgs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 100%; gap: 2px; aspect-ratio: 16/10; background: var(--line); position: relative; overflow: hidden; }
.combo-imgs img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; object-position: center top; }
.combo-plus { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 34px; height: 34px; background: var(--gold); color: #3a2500; border-radius: 50%; display: grid; place-items: center; font-weight: 800; box-shadow: var(--shadow); z-index: 2; }
.combo-ribbon { position: absolute; top: .5rem; left: .5rem; background: var(--pink); color: #fff; font-size: .68rem; font-weight: 700; padding: .25rem .55rem; border-radius: 5px; z-index: 3; }
.combo-body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.combo-title { font-size: .9rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.combo-price { display: flex; align-items: baseline; gap: .5rem; }
.combo-price .now { font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.combo-price .mrp { text-decoration: line-through; color: var(--muted); font-size: .82rem; }
.combo-save { font-size: .75rem; color: var(--ok); font-weight: 700; }
.combo-body .btn { margin-top: .3rem; }

/* ---------- Generic section ---------- */
.section { max-width: var(--max); margin: 2.6rem auto; padding: 0 1.1rem; }
.section-head-center { text-align: center; margin-bottom: 1.6rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: .72rem; color: var(--violet); font-weight: 700; }

/* ---------- USP strip ---------- */
.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: var(--max); margin: 1.6rem auto; padding: 0 1.1rem; }
.usp-item { background: var(--bg-soft); border-radius: var(--radius); padding: 1rem; text-align: center; }
.usp-item .ico { font-size: 1.5rem; }
.usp-item strong { display: block; color: var(--ink); font-size: .9rem; }
.usp-item span { font-size: .74rem; color: var(--muted); }

/* ---------- Catalog grid ---------- */
.catalog { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.catalog-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.4rem; }
.catalog-toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.catalog-toolbar select { padding: .55rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-family: inherit; font-size: .85rem; }
.pagination { display: flex; gap: .4rem; justify-content: center; margin: 2.4rem 0; flex-wrap: wrap; }
.pagination a { padding: .5rem .85rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .85rem; }
.pagination a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; max-width: var(--max); margin: 1.6rem auto; padding: 0 1.1rem; }
.pdp-gallery { display: flex; flex-direction: column; gap: .7rem; position: sticky; top: 90px; align-self: start; }
.pdp-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; background: var(--bg-soft); position: relative; }
.pdp-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pdp-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.pdp-thumbs img { width: 66px; height: 84px; object-fit: cover; object-position: center top; border-radius: 6px; cursor: pointer; border: 2px solid transparent; background: var(--bg-soft); }
.pdp-thumbs img.active { border-color: var(--pink); }
.pdp-info h1 { font-size: 1.6rem; }
.pdp-brand { color: var(--muted); font-weight: 600; }
.pdp-price { display: flex; align-items: baseline; gap: .7rem; margin: 1rem 0; }
.pdp-price .now { font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.pdp-price .mrp { text-decoration: line-through; color: var(--muted); }
.pdp-price .off { color: var(--discount); font-weight: 700; }
.pdp-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 1.2rem 0; }
.pdp-meta div { background: var(--bg-soft); border-radius: var(--radius); padding: .6rem .8rem; font-size: .85rem; }
.pdp-meta small { color: var(--muted); display: block; }
.pdp-cta { display: flex; gap: .7rem; margin: 1.4rem 0; flex-wrap: wrap; }
.pdp-desc { line-height: 1.7; color: #535766; }

/* ---------- Footer ---------- */
.site-footer { background: #fafafb; border-top: 1px solid var(--line); margin-top: 3rem; color: var(--muted); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 2.6rem 1.1rem 1.4rem; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer h4 { color: var(--ink); font-size: .82rem; margin-bottom: .9rem; text-transform: uppercase; letter-spacing: .5px; }
.site-footer a { display: block; color: var(--muted); font-size: .84rem; margin-bottom: .5rem; }
.site-footer a:hover { color: var(--pink); }
.footer-brand .logo { color: var(--ink); margin-bottom: .8rem; }
.footer-brand p { font-size: .84rem; color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--line); text-align: center; padding: 1rem; font-size: .78rem; color: var(--muted-2); }

/* ---------- Flash ---------- */
.flash { max-width: var(--max); margin: 1rem auto; padding: .8rem 1.1rem; border-radius: var(--radius); font-weight: 600; }
.flash-success { background: #dcfce7; color: #166534; }
.flash-error { background: #fee2e2; color: #991b1b; }
.flash-info { background: #e0e7ff; color: #3730a3; }

/* ---------- Cart ---------- */
.cart-wrap { display: grid; grid-template-columns: 1.6fr .9fr; gap: 1.6rem; max-width: var(--max); margin: 1.6rem auto; padding: 0 1.1rem; }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; margin-bottom: .8rem; align-items: center; }
.cart-item img { width: 80px; height: 100px; object-fit: cover; object-position: center top; border-radius: 6px; background: var(--bg-soft); }
.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; align-self: start; position: sticky; top: 90px; }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: .6rem; font-size: .9rem; }
.cart-summary .total { font-weight: 800; font-size: 1.15rem; color: var(--ink); border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .4rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.qty button { border: 0; background: var(--bg-soft); width: 28px; height: 28px; cursor: pointer; font-weight: 700; }
.qty span { min-width: 30px; text-align: center; font-size: .9rem; }
.field { margin-bottom: .8rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .3rem; color: var(--ink); }
.field input, .field textarea { width: 100%; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); font-family: inherit; font-size: .9rem; }

/* ---------- Empty / toast ---------- */
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty .ico { font-size: 3rem; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: .8rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: .86rem; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s; z-index: 200; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .rail-track, .catalog { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
  .rail-track, .catalog, .combo-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .header-inner { gap: 1.2rem; }
  .main-nav { gap: 1.1rem; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: block; }
  .header-inner { flex-wrap: wrap; gap: .8rem; padding: .55rem 1rem; }
  .header-search { order: 3; max-width: 100%; flex-basis: 100%; }
  .hero-carousel { height: auto; }
  .hero-slide { position: relative; grid-template-columns: 1fr; display: none; }
  .hero-slide.active { display: grid; }
  .hero-slide-copy { padding: 1.6rem; order: 2; }
  .hero-slide-copy h2 { font-size: 1.5rem; }
  .hero-slide-media { height: 300px; order: 1; }
  .duo-grid { grid-template-columns: 1fr; }
  .duo-card { grid-template-columns: 1fr 1fr; }
  .rail-track { grid-auto-flow: column; grid-auto-columns: 47%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem; scrollbar-width: none; }
  .rail-track::-webkit-scrollbar { display: none; }
  .rail-track > * { scroll-snap-align: start; }
  .catalog { grid-template-columns: repeat(2, 1fr); }
  .combo-grid { grid-template-columns: 1fr 1fr; }
  .usp { grid-template-columns: 1fr 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .cart-wrap { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.2rem; }
  .rail-head h2 { font-size: 1.2rem; }
}
@media (max-width: 430px) {
  .combo-grid { grid-template-columns: 1fr; }
  .duo-card { grid-template-columns: 1fr; }
  .duo-card .duo-visual { height: 200px; }
}

/* ---------- Secure checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.5fr .9fr; gap: 1.6rem; max-width: var(--max); margin: 1.6rem auto; padding: 0 1.1rem; align-items: start; }
.checkout-main h1 { font-size: 1.5rem; margin: 0 0 .3rem; }
.checkout-lead { color: var(--muted); margin: 0 0 1.2rem; font-size: .9rem; }
.checkout-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.co-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.checkout-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; position: sticky; top: 90px; }
.checkout-summary h3 { margin: 0 0 .8rem; font-size: 1.05rem; }
.co-items { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1rem; }
.co-item { display: grid; grid-template-columns: 46px 1fr auto; gap: .6rem; align-items: center; }
.co-item img { width: 46px; height: 58px; object-fit: cover; border-radius: 8px; }
.co-item-info { display: flex; flex-direction: column; min-width: 0; }
.co-item-info strong { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-item-info span { font-size: .74rem; color: var(--muted); }
.co-item-price { font-weight: 700; font-size: .86rem; }
.co-row { display: flex; justify-content: space-between; font-size: .88rem; padding: .35rem 0; color: var(--muted); }
.co-total { border-top: 1px dashed var(--line); margin-top: .3rem; padding-top: .7rem; font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.co-error { color: #991b1b; background: #fee2e2; border-radius: 8px; padding: .6rem .8rem; font-size: .82rem; margin-top: .8rem; }
.co-trust { margin-top: 1rem; display: flex; flex-direction: column; gap: .25rem; font-size: .74rem; color: var(--muted); text-align: center; }

/* ---------- Order success ---------- */
.order-done { max-width: 640px; margin: 2rem auto; padding: 0 1.1rem; }
.order-done-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 2rem; text-align: center; box-shadow: var(--shadow); }
.od-icon { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; margin: 0 auto 1rem; color: #fff; }
.od-icon.ok { background: var(--ok); }
.od-icon.pending { background: var(--gold, #f6a417); }
.order-done-card h1 { font-size: 1.5rem; margin: 0 0 .3rem; }
.od-sub { color: var(--muted); margin: 0 0 1rem; }
.od-ref { background: #f6f4fb; border-radius: 10px; padding: .6rem; font-size: .9rem; margin-bottom: 1rem; }
.od-items, .track-items { text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; }
.od-item { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .88rem; }
.od-item-total { border-top: 1px dashed var(--line); margin-top: .3rem; padding-top: .6rem; font-weight: 800; }
.od-ship { text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1.2rem; }
.od-ship h4 { margin: 0 0 .4rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); }
.od-ship p { margin: 0; line-height: 1.6; font-size: .9rem; }
.od-payid { color: var(--ok); font-size: .82rem; margin-top: .5rem !important; }
.od-cta { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Track order ---------- */
.track-wrap { max-width: 720px; margin: 2rem auto; padding: 0 1.1rem; }
.track-wrap h1 { font-size: 1.5rem; margin: 0 0 1rem; }
.track-form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; display: grid; gap: .3rem; }
.track-result { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; margin-top: 1.4rem; }
.track-head { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1.2rem; }
.track-head span.help { display: block; font-size: .72rem; color: var(--muted); }
.track-head strong { font-size: .95rem; }
.track-steps { display: flex; justify-content: space-between; margin: 1.4rem 0; position: relative; }
.track-steps::before { content: ""; position: absolute; top: 16px; left: 8%; right: 8%; height: 3px; background: var(--line); z-index: 0; }
.track-step { display: flex; flex-direction: column; align-items: center; gap: .4rem; z-index: 1; flex: 1; }
.track-step .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--line); color: var(--muted); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.track-step.done .dot { background: var(--ok); color: #fff; }
.track-step .lbl { font-size: .76rem; color: var(--muted); }
.track-step.done .lbl { color: var(--ink); font-weight: 600; }
@media (max-width: 768px) {
  .checkout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .co-grid, .co-grid-3 { grid-template-columns: 1fr; }
  .track-head { grid-template-columns: 1fr 1fr; }
}

/* ---------- Support chat widget ---------- */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 1200; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--brand), #7b2ff7); color: #fff; box-shadow: 0 10px 26px rgba(80,40,160,.4); font-size: 1.5rem; display: grid; place-items: center; transition: transform .18s ease, opacity .18s ease; }
.chat-fab:hover { transform: scale(1.07); }
.chat-fab.hide { opacity: 0; pointer-events: none; transform: scale(.6); }
.chat-widget { position: fixed; right: 20px; bottom: 20px; z-index: 1201; width: 360px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 40px); background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(31,23,71,.34); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.chat-widget.open { opacity: 1; transform: none; pointer-events: auto; }
.chat-head { background: linear-gradient(135deg, #241b4f, #4b2fae); color: #fff; padding: .9rem 1rem; display: flex; align-items: center; justify-content: space-between; }
.chat-head strong { display: block; font-size: .98rem; }
.chat-head span { font-size: .74rem; opacity: .8; }
.chat-close { background: rgba(255,255,255,.15); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: .9rem; }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; background: #f7f5fc; display: flex; flex-direction: column; gap: .55rem; }
.chat-msg { max-width: 84%; padding: .6rem .8rem; border-radius: 14px; font-size: .86rem; line-height: 1.45; }
.chat-msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.me { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-quick { display: flex; flex-wrap: wrap; gap: .45rem; align-self: flex-start; margin-top: .1rem; }
.chat-quick button { background: #fff; border: 1px solid var(--brand); color: var(--brand); border-radius: 999px; padding: .4rem .8rem; font-size: .8rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.chat-quick button:hover { background: var(--brand); color: #fff; }
.chat-input { border-top: 1px solid var(--line); padding: .7rem; background: #fff; }
.chat-input:empty { display: none; }
.chat-form-inline { display: flex; gap: .5rem; }
.chat-form-inline input { flex: 1; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: .86rem; }
.chat-form-inline button, .chat-form button { background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: .6rem .9rem; font-weight: 600; cursor: pointer; font-family: inherit; font-size: .84rem; }
.chat-form { display: flex; flex-direction: column; gap: .5rem; }
.chat-form input, .chat-form textarea { padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: .86rem; resize: vertical; }
.chat-card { font-size: .84rem; }
.chat-card .cc-row { display: flex; justify-content: space-between; gap: 1rem; padding: .16rem 0; }
.chat-card .cc-row span { color: var(--muted); }
.chat-track { margin-top: .6rem; display: flex; flex-direction: column; gap: .3rem; }
.chat-track .cts { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); }
.chat-track .cts span { width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: #fff; display: grid; place-items: center; font-size: .7rem; }
.chat-track .cts.done { color: var(--ink); font-weight: 600; }
.chat-track .cts.done span { background: var(--ok); }
.chat-card .cc-items { margin-top: .6rem; padding-top: .5rem; border-top: 1px dashed var(--line); color: var(--muted); font-size: .8rem; }
@media (max-width: 480px) {
  .chat-widget { right: 8px; bottom: 8px; height: calc(100vh - 20px); }
  .chat-fab { right: 14px; bottom: 14px; }
}

/* ---------- Shared small utilities (storefront) ---------- */
.help { font-size: .8rem; color: var(--muted); }
.tag { display: inline-block; padding: .18rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.tag-done { background: #dcfce7; color: #166534; }
.tag-warn { background: #fef3c7; color: #92400e; }
.tag-info { background: #ede9fe; color: #5b21b6; }
.tag-danger { background: #fee2e2; color: #991b1b; }

/* ---------- Auth (login / register) ---------- */
.auth-wrap { max-width: 440px; margin: 2.4rem auto; padding: 0 1.1rem; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 2rem; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.5rem; margin: 0 0 .2rem; }
.auth-sub { color: var(--muted); margin: 0 0 1.2rem; font-size: .9rem; }
.auth-form .field { margin-bottom: .9rem; }
.auth-alt { text-align: center; margin-top: 1.1rem; font-size: .9rem; color: var(--muted); }
.auth-alt a { color: var(--brand); font-weight: 600; }

/* ---------- Customer account / profile ---------- */
.account { max-width: var(--max); margin: 1.6rem auto; padding: 0 1.1rem; }
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.account-head h1 { font-size: 1.5rem; margin: 0 0 .2rem; }
.account-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.4rem; align-items: start; }
.acc-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; margin-bottom: 1.4rem; }
.acc-panel h3 { margin: 0 0 1rem; font-size: 1.1rem; }
.acc-orders { display: flex; flex-direction: column; gap: .8rem; }
.acc-order { border: 1px solid var(--line); border-radius: 12px; padding: .9rem; }
.acc-order-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.acc-order-items { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; font-size: .8rem; color: var(--muted); }
.acc-order-items span { background: #f6f4fb; padding: .2rem .5rem; border-radius: 6px; }
.acc-order-foot { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.acc-order-foot strong { margin-left: auto; }
@media (max-width: 768px) {
  .account-grid { grid-template-columns: 1fr; }
}
