/* Ayan Mart website - colors come from admin → Settings → App Colors (CSS variables set in <head>) */
:root {
  --am-muted: #6b6b70;
  --am-line: #ece7dc;
  --am-soft: color-mix(in srgb, var(--am-primary) 9%, #fff);
  --am-shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 6px 18px rgba(20, 20, 20, .06);
  --am-shadow-lg: 0 10px 40px rgba(10, 40, 30, .16);
  --bottom-nav-h: 0px;
}
* { -webkit-tap-highlight-color: transparent; }
html { scroll-padding-top: 140px; }
body {
  background: var(--am-bg); color: var(--am-text);
  font-family: var(--am-font-en), var(--am-font-ta), system-ui, -apple-system, 'Segoe UI', Roboto, 'Nirmala UI', sans-serif;
  font-size: 15px; -webkit-font-smoothing: antialiased;
}
body.lang-ta { font-family: var(--am-font-ta), var(--am-font-en), 'Nirmala UI', 'Latha', system-ui, sans-serif; font-size: 15.5px; }
a { color: var(--am-primary); text-decoration: none; }
a:hover { color: var(--am-primary-dark); }
img { max-width: 100%; }
.text-muted { color: var(--am-muted) !important; }
.btn { border-radius: 12px; font-weight: 600; }
.btn-primary { --bs-btn-bg: var(--am-primary); --bs-btn-border-color: var(--am-primary); --bs-btn-hover-bg: var(--am-primary-dark);
  --bs-btn-hover-border-color: var(--am-primary-dark); --bs-btn-active-bg: var(--am-primary-dark); --bs-btn-disabled-bg: var(--am-primary);
  --bs-btn-disabled-border-color: var(--am-primary); }
.btn-outline-primary { --bs-btn-color: var(--am-primary); --bs-btn-border-color: var(--am-primary); --bs-btn-hover-bg: var(--am-primary);
  --bs-btn-hover-border-color: var(--am-primary); --bs-btn-active-bg: var(--am-primary-dark); }
.btn-accent { background: var(--am-accent); color: #fff; border: 0; }
.btn-accent:hover { filter: brightness(.95); color: #fff; }
.form-control, .form-select { border-radius: 12px; border-color: #ddd6c8; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--am-primary); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--am-primary) 18%, transparent); }
.form-check-input:checked { background-color: var(--am-primary); border-color: var(--am-primary); }
.card-soft { background: var(--am-surface); border-radius: var(--am-radius); box-shadow: var(--am-shadow); border: 1px solid var(--am-line); }

/* ---------------- top bar + header ---------------- */
.topbar { background: var(--am-primary-dark); color: rgba(255, 255, 255, .9); font-size: 12.5px; padding: 6px 0; }
.topbar a { color: #fff; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.status-dot.is-open { background: #5be38f; box-shadow: 0 0 0 3px rgba(91, 227, 143, .25); }
.status-dot.is-closed { background: #ff8a80; }
.lang-switch { font-weight: 600; white-space: nowrap; }
.site-header { position: sticky; top: 0; z-index: 1020; background: var(--am-surface); box-shadow: 0 1px 0 var(--am-line), 0 6px 20px rgba(0, 0, 0, .04); }
.site-header > .container { min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--am-text); flex: none; }
.brand img { border-radius: 12px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.2px; color: var(--am-primary-dark); }
.search-box { position: relative; flex: 1; max-width: 640px; }
.search-box > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--am-muted); }
.search-box input { width: 100%; border: 1.5px solid transparent; background: #f4f1ea; border-radius: 999px; padding: 11px 16px 11px 44px; font-size: 15px; outline: none; transition: .15s; }
.search-box input:focus { background: #fff; border-color: var(--am-primary); }
.search-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 16px; box-shadow: var(--am-shadow-lg); overflow: hidden; z-index: 30; }
.search-suggest a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--am-text); border-bottom: 1px solid var(--am-line); }
.search-suggest a:last-child { border-bottom: 0; }
.search-suggest a:hover, .search-suggest a.active { background: var(--am-soft); }
.search-suggest img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: #f7f5f0; }
.search-suggest .s-price { margin-left: auto; font-weight: 700; color: var(--am-primary); white-space: nowrap; }
.hdr-btn { flex-direction: column; align-items: center; color: var(--am-text); font-size: 12px; font-weight: 600; gap: 2px; max-width: 110px; }
.hdr-btn i { font-size: 21px; color: var(--am-primary); }
.hdr-btn span { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-btn { position: relative; display: flex; align-items: center; gap: 8px; background: var(--am-primary); color: #fff; border-radius: 14px; padding: 10px 14px; font-weight: 700; flex: none; }
.cart-btn:hover { background: var(--am-primary-dark); color: #fff; }
.cart-btn i { font-size: 20px; }
.cart-count { position: absolute; top: -7px; left: 26px; background: var(--am-accent); color: #fff; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
.cat-bar { border-top: 1px solid var(--am-line); }
.cat-scroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-scroll a { flex: none; padding: 6px 14px; border-radius: 999px; color: var(--am-text); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.cat-scroll a:hover { background: var(--am-soft); color: var(--am-primary); }
.cat-scroll a.active { background: var(--am-primary); color: #fff; }

@media (max-width: 767.98px) {
  .site-header > .container { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; min-height: 0; row-gap: 10px !important; }
  .brand-name { font-size: 17px; }
  .brand img { width: 36px; height: 36px; }
  .search-box { order: 3; flex-basis: 100%; max-width: none; }
  .cart-btn { margin-left: auto; padding: 8px 12px; }
  .site-header .cat-bar { display: none; }
}

/* ---------------- layout ---------------- */
.site-main { min-height: 60vh; padding-bottom: 32px; }
.page-head { padding: 22px 0 8px; }
.page-head h1 { font-size: 24px; font-weight: 800; margin: 0; letter-spacing: -.3px; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.section-head h2 { font-size: 20px; font-weight: 800; margin: 0; letter-spacing: -.2px; }
.section-head a { font-weight: 700; font-size: 14px; white-space: nowrap; }
.crumbs { font-size: 13px; color: var(--am-muted); padding-top: 14px; }
.crumbs a { color: var(--am-muted); }
.crumbs a:hover { color: var(--am-primary); }

/* ---------------- home ---------------- */
.hero { margin-top: 18px; }
.hero .carousel { border-radius: calc(var(--am-radius) + 4px); overflow: hidden; box-shadow: var(--am-shadow); }
.hero .carousel-item img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; background: var(--am-soft); }
.hero-welcome { border-radius: calc(var(--am-radius) + 4px); background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--am-accent) 45%, transparent) 0, transparent 55%), linear-gradient(135deg, var(--am-primary) 0%, var(--am-primary-dark) 100%);
  color: #fff; padding: 34px 32px; position: relative; overflow: hidden; }
.hero-welcome h1 { font-size: clamp(24px, 4vw, 38px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 8px; }
.hero-welcome p { opacity: .9; max-width: 520px; margin-bottom: 18px; }
.hero-welcome .hw-art { position: absolute; right: -10px; bottom: -18px; font-size: 170px; opacity: .13; line-height: 1; }
.hero-welcome .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-welcome .chips span { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.offer-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.offer-card { position: relative; display: flex; gap: 14px; align-items: center; border-radius: var(--am-radius); padding: 16px 18px; background: linear-gradient(135deg, var(--am-offer), #fff); border: 1.5px dashed color-mix(in srgb, var(--am-accent) 70%, transparent); color: var(--am-text); overflow: hidden; }
.offer-card .oc-icon { width: 58px; height: 58px; flex: none; border-radius: 16px; background: var(--am-accent); color: #fff; display: grid; place-items: center; font-size: 28px; }
.offer-card .oc-icon img { width: 58px; height: 58px; object-fit: contain; border-radius: 14px; background: #fff; }
.offer-card h3 { font-size: 16px; font-weight: 800; margin: 0 0 2px; }
.offer-card p { font-size: 13px; color: var(--am-muted); margin: 0; }
.offer-card .oc-tag { position: absolute; top: 10px; right: 12px; font-size: 11px; font-weight: 800; letter-spacing: .5px; color: var(--am-accent); text-transform: uppercase; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 14px 8px 12px; border-radius: var(--am-radius); color: var(--am-text); font-weight: 700; font-size: 13.5px; line-height: 1.25; transition: transform .15s, box-shadow .15s; }
.cat-tile img { width: 76px; height: 76px; object-fit: contain; }
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--am-shadow); color: var(--am-primary-dark); }
@media (max-width: 575.98px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; } .cat-tile { padding: 10px 4px; font-size: 12px; } .cat-tile img { width: 54px; height: 54px; } }
.promo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.promo { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--am-radius); background: var(--am-surface); border: 1px solid var(--am-line); color: var(--am-text); box-shadow: var(--am-shadow); }
.promo i { font-size: 28px; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--am-soft); color: var(--am-primary); flex: none; }
.promo b { display: block; }
.promo small { color: var(--am-muted); }

/* ---------------- product card ---------------- */
.prow { display: grid; grid-auto-flow: column; grid-auto-columns: 196px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: thin; }
.prow > * { scroll-snap-align: start; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
@media (max-width: 575.98px) {
  .prow { grid-auto-columns: 44vw; gap: 10px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
.pcard { background: var(--am-surface); border-radius: var(--am-radius); border: 1px solid var(--am-line); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .18s, transform .18s; min-width: 0; }
.pcard:hover { box-shadow: var(--am-shadow); }
.pcard-img { position: relative; display: block; aspect-ratio: 1; background: #fbfaf6; padding: 12px; }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.off-badge { position: absolute; top: 10px; left: 10px; background: var(--am-accent); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 8px; letter-spacing: .2px; }
.pcard-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-name { color: var(--am-text); font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pcard-var { font-size: 12.5px; padding-top: 4px; padding-bottom: 4px; border-radius: 9px; }
.pcard-var-text { font-size: 12.5px; color: var(--am-muted); padding: 5px 0; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.pcard-price { display: flex; flex-direction: column; line-height: 1.15; }
.pcard-price b { font-size: 16px; font-weight: 800; }
.pcard-price s { font-size: 12px; color: var(--am-muted); }
.pcard.is-out .pcard-img img { filter: grayscale(1); opacity: .55; }
.btn-add { border: 1.5px solid var(--am-primary); color: var(--am-primary); background: #fff; border-radius: 10px; font-weight: 800; font-size: 13px; padding: 6px 16px; letter-spacing: .3px; transition: .15s; }
.btn-add:hover:not(:disabled) { background: var(--am-primary); color: #fff; }
.btn-add:disabled { border-color: #d6d1c5; color: #9a958a; font-size: 11px; padding: 6px 8px; letter-spacing: 0; background: #f6f4ef; }
.stepper { display: inline-flex; align-items: center; background: var(--am-primary); border-radius: 10px; color: #fff; overflow: hidden; }
.stepper button { background: transparent; border: 0; color: #fff; width: 32px; height: 32px; font-size: 18px; font-weight: 700; display: grid; place-items: center; }
.stepper button:hover { background: rgba(0, 0, 0, .12); }
.stepper button:disabled { opacity: .45; }
.stepper span { min-width: 22px; text-align: center; font-weight: 800; font-size: 14px; }
.stepper.lg button { width: 42px; height: 44px; font-size: 20px; }
.stepper.lg span { min-width: 34px; font-size: 16px; }

/* ---------------- product page ---------------- */
.pd { margin-top: 12px; }
.pd-gallery { background: #fff; border-radius: calc(var(--am-radius) + 4px); border: 1px solid var(--am-line); padding: 18px; position: sticky; top: 140px; }
.pd-main { aspect-ratio: 1; display: grid; place-items: center; }
.pd-main img { max-height: 100%; object-fit: contain; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.pd-thumbs button { border: 2px solid var(--am-line); border-radius: 12px; padding: 4px; background: #fff; flex: none; }
.pd-thumbs button.active { border-color: var(--am-primary); }
.pd-thumbs img { width: 60px; height: 60px; object-fit: contain; }
.pd h1 { font-size: 26px; font-weight: 800; letter-spacing: -.3px; }
.pd .brand-tag { font-size: 13px; font-weight: 700; color: var(--am-accent); text-transform: uppercase; letter-spacing: .6px; }
.pd-price b { font-size: 30px; font-weight: 800; }
.pd-price s { color: var(--am-muted); margin-left: 8px; }
.pd-price .save { background: color-mix(in srgb, var(--am-success) 12%, #fff); color: var(--am-success); font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 8px; margin-left: 8px; }
.var-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.var-pill { border: 1.5px solid var(--am-line); border-radius: 14px; background: #fff; padding: 10px 14px; text-align: left; min-width: 110px; }
.var-pill b { display: block; font-size: 14px; }
.var-pill small { color: var(--am-muted); }
.var-pill.active { border-color: var(--am-primary); background: var(--am-soft); }
.var-pill:disabled { opacity: .5; }
.pd-buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pd-buy .btn-add { font-size: 16px; padding: 12px 40px; }
.fav-btn { width: 50px; height: 50px; border-radius: 14px; border: 1.5px solid var(--am-line); background: #fff; color: var(--am-error); font-size: 22px; display: grid; place-items: center; }
.fav-btn.on { background: color-mix(in srgb, var(--am-error) 8%, #fff); border-color: color-mix(in srgb, var(--am-error) 35%, #fff); }
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.assure div { background: #fff; border: 1px solid var(--am-line); border-radius: 14px; padding: 12px; font-size: 12.5px; text-align: center; font-weight: 600; }
.assure i { display: block; font-size: 22px; color: var(--am-primary); margin-bottom: 4px; }
.pd-desc { white-space: pre-line; line-height: 1.7; }

/* ---------------- listing ---------------- */
.list-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 16px; }
.sub-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.sub-chips a { flex: none; border: 1.5px solid var(--am-line); background: #fff; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--am-text); }
.sub-chips a.active { border-color: var(--am-primary); background: var(--am-primary); color: #fff; }
.empty { text-align: center; padding: 50px 20px; color: var(--am-muted); }
.empty i { font-size: 54px; color: color-mix(in srgb, var(--am-primary) 35%, #fff); display: block; margin-bottom: 10px; }
.empty h2, .empty h3 { color: var(--am-text); font-size: 19px; font-weight: 700; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }

/* ---------------- cart / checkout ---------------- */
.cart-line { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--am-line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: #fbfaf6; flex: none; }
.cart-line .cl-info { flex: 1; min-width: 0; }
.cart-line .cl-name { font-weight: 600; line-height: 1.3; }
.cart-line .cl-sub { font-size: 13px; color: var(--am-muted); }
.cart-line .cl-issue { font-size: 12.5px; color: var(--am-error); font-weight: 600; }
.cart-line .cl-total { font-weight: 800; min-width: 70px; text-align: right; }
.cart-line.is-free { background: var(--am-offer); border-radius: 14px; padding: 12px; border: 0; margin: 8px 0; }
.progress-card { border-radius: var(--am-radius); padding: 14px 16px; background: var(--am-offer); border: 1px dashed color-mix(in srgb, var(--am-accent) 60%, transparent); }
.progress-card.done { background: color-mix(in srgb, var(--am-success) 10%, #fff); border-color: color-mix(in srgb, var(--am-success) 40%, transparent); }
.progress-card .progress { height: 8px; border-radius: 8px; background: rgba(0, 0, 0, .07); margin-top: 8px; }
.progress-card .progress-bar { background: var(--am-accent); border-radius: 8px; }
.bill-row { display: flex; justify-content: space-between; padding: 5px 0; }
.bill-row.total { border-top: 1px dashed #d8d1c2; margin-top: 8px; padding-top: 12px; font-size: 18px; font-weight: 800; }
.save-pill { background: color-mix(in srgb, var(--am-success) 12%, #fff); color: var(--am-success); border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: 14px; text-align: center; margin-top: 10px; }
.step-card { background: var(--am-surface); border-radius: var(--am-radius); border: 1px solid var(--am-line); padding: 18px; margin-bottom: 14px; box-shadow: var(--am-shadow); }
.step-card h2 { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step-card h2 .num { width: 28px; height: 28px; border-radius: 50%; background: var(--am-primary); color: #fff; display: grid; place-items: center; font-size: 14px; }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--am-line); border-radius: 14px; padding: 12px 14px; cursor: pointer; margin-bottom: 10px; background: #fff; transition: .12s; }
.choice:hover { border-color: color-mix(in srgb, var(--am-primary) 40%, #fff); }
.choice.active { border-color: var(--am-primary); background: var(--am-soft); }
.choice input { margin-top: 4px; }
.choice .ch-title { font-weight: 700; }
.choice .ch-sub { font-size: 13px; color: var(--am-muted); }
.choice.disabled { opacity: .55; cursor: not-allowed; }
.day-tabs { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; }
.day-tabs button, .slot-btn { border: 1.5px solid var(--am-line); background: #fff; border-radius: 12px; padding: 8px 14px; font-weight: 700; white-space: nowrap; }
.day-tabs button.active, .slot-btn.active { border-color: var(--am-primary); background: var(--am-primary); color: #fff; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.slot-btn { text-align: left; font-weight: 600; }
.slot-btn small { display: block; font-weight: 500; opacity: .8; }
.slot-btn:disabled { background: #f5f3ee; color: #a29d92; }
.sticky-pay { position: sticky; top: 140px; }
@media (max-width: 991.98px) { .sticky-pay { position: static; } }

/* map */
.map-wrap { position: relative; height: 320px; border-radius: 16px; overflow: hidden; background: #eae6dc; }
.map-wrap .map { position: absolute; inset: 0; }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); font-size: 42px; color: var(--am-error); pointer-events: none; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .25)); z-index: 2; }
.map-locate { position: absolute; right: 12px; bottom: 12px; z-index: 2; }
.map-msg { font-size: 13.5px; font-weight: 600; padding: 8px 12px; border-radius: 10px; margin-top: 8px; }
.map-msg.ok { background: color-mix(in srgb, var(--am-success) 12%, #fff); color: var(--am-success); }
.map-msg.bad { background: color-mix(in srgb, var(--am-error) 10%, #fff); color: var(--am-error); }

/* orders */
.order-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; color: var(--am-text); margin-bottom: 12px; }
.order-card:hover { color: var(--am-text); box-shadow: var(--am-shadow-lg); }
.order-thumbs { display: flex; }
.order-thumbs img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: #fbfaf6; border: 2px solid #fff; margin-left: -10px; }
.order-thumbs img:first-child { margin-left: 0; }
.st-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--am-soft); color: var(--am-primary); }
.st-badge.delivered { background: color-mix(in srgb, var(--am-success) 12%, #fff); color: var(--am-success); }
.st-badge.cancelled { background: color-mix(in srgb, var(--am-error) 10%, #fff); color: var(--am-error); }
.st-badge.placed, .st-badge.payment_pending { background: var(--am-offer); color: #8a6400; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 18px 36px; color: var(--am-muted); }
.timeline li::before { content: ''; position: absolute; left: 11px; top: 22px; bottom: -2px; width: 2px; background: var(--am-line); }
.timeline li:last-child::before { display: none; }
.timeline li .dot { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--am-line); background: #fff; display: grid; place-items: center; font-size: 12px; }
.timeline li.done { color: var(--am-text); }
.timeline li.done .dot { background: var(--am-primary); border-color: var(--am-primary); color: #fff; }
.timeline li.done::before { background: var(--am-primary); }
.timeline li b { display: block; font-weight: 700; }
.stars { display: flex; gap: 6px; font-size: 30px; color: #d9d2c3; }
.stars button { background: none; border: 0; padding: 0; color: inherit; }
.stars .on { color: var(--am-accent); }
.success-hero { text-align: center; padding: 26px 16px; border-radius: var(--am-radius); background: linear-gradient(135deg, var(--am-primary), var(--am-primary-dark)); color: #fff; margin-top: 18px; }
.success-hero i { font-size: 56px; }

/* account */
.acc-head { border-radius: calc(var(--am-radius) + 4px); background: linear-gradient(135deg, var(--am-primary), var(--am-primary-dark)); color: #fff; padding: 22px; display: flex; gap: 16px; align-items: center; margin-top: 18px; }
.acc-avatar { width: 62px; height: 62px; border-radius: 50%; background: #fff; color: var(--am-primary); display: grid; place-items: center; font-size: 26px; font-weight: 800; flex: none; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--am-text); border-bottom: 1px solid var(--am-line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; font-weight: 600; }
.menu-list > :last-child { border-bottom: 0; }
.menu-list i.ic { width: 38px; height: 38px; border-radius: 11px; background: var(--am-soft); color: var(--am-primary); display: grid; place-items: center; font-size: 18px; flex: none; }
.menu-list .chev { margin-left: auto; color: var(--am-muted); }
.notif { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--am-line); color: var(--am-text); }
.notif.unread { background: var(--am-soft); }
.notif .ni { width: 40px; height: 40px; border-radius: 12px; background: var(--am-offer); color: var(--am-accent); display: grid; place-items: center; flex: none; font-size: 18px; }
.notif img { max-width: 220px; border-radius: 12px; margin-top: 8px; }

/* login + offer popups */
.login-card { border-radius: 22px; padding: 18px 24px 26px; border: 0; }
.otp-input { letter-spacing: 14px; font-size: 26px; font-weight: 800; }
.offer-pop { border-radius: 24px; overflow: hidden; border: 0; text-align: center; }
.offer-pop .op-top { background: linear-gradient(135deg, var(--am-accent), color-mix(in srgb, var(--am-accent) 60%, var(--am-primary))); color: #fff; padding: 26px 20px 52px; }
.offer-pop .op-top i { font-size: 44px; }
.offer-pop .op-img { width: 120px; height: 120px; border-radius: 22px; background: #fff; object-fit: contain; margin: -48px auto 0; box-shadow: var(--am-shadow-lg); display: block; padding: 8px; }
.offer-pop .op-body { padding: 18px 22px 24px; }

/* footer, bottom nav, floating cart, toasts, install */
.site-footer { background: #11291f; color: rgba(255, 255, 255, .78); padding: 40px 0 20px; margin-top: 40px; font-size: 14px; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 12px; }
.site-footer a { color: rgba(255, 255, 255, .82); }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 7px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 24px; padding-top: 16px; font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.store-badge { display: inline-flex; gap: 8px; align-items: center; background: #000; color: #fff !important; border: 1px solid rgba(255, 255, 255, .25); padding: 8px 14px; border-radius: 10px; font-weight: 600; }
.bottom-nav { display: none; }
.cart-float { display: none; }
@media (max-width: 991.98px) {
  :root { --bottom-nav-h: 62px; }
  body { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: #fff; border-top: 1px solid var(--am-line);
    height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(0, 0, 0, .05); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--am-muted); font-size: 11px; font-weight: 600; position: relative; }
  .bottom-nav a i { font-size: 21px; }
  .bottom-nav a.active { color: var(--am-primary); }
  .bottom-nav b { position: absolute; top: 6px; left: calc(50% + 6px); background: var(--am-accent); color: #fff; font-size: 10px; border-radius: 9px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; }
  .cart-float:not([hidden]) { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(var(--bottom-nav-h) + 10px + env(safe-area-inset-bottom)); z-index: 1029;
    background: var(--am-primary); color: #fff; border-radius: 16px; padding: 12px 16px; justify-content: space-between; align-items: center; font-weight: 700; box-shadow: var(--am-shadow-lg); }
  .cart-float small { display: block; font-weight: 500; opacity: .85; }
  .site-footer { padding-bottom: 90px; }
}
.toast-zone { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottom-nav-h) + 80px); z-index: 1090; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: 92vw; }
.am-toast { background: #1d1d1f; color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--am-shadow-lg); animation: toastIn .2s ease-out; pointer-events: auto; }
.am-toast.error { background: var(--am-error); }
.am-toast.success { background: var(--am-success); }
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } }
.install-bar:not([hidden]) { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bottom-nav-h) + 12px + env(safe-area-inset-bottom)); z-index: 1031; background: #fff; border-radius: 16px; box-shadow: var(--am-shadow-lg);
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; max-width: 520px; margin: 0 auto; }
.install-bar img { border-radius: 10px; }
.install-bar div { flex: 1; min-width: 0; line-height: 1.25; }
.install-bar small { display: block; color: var(--am-muted); }
.skeleton { background: linear-gradient(90deg, #eee9df 25%, #f6f3ec 50%, #eee9df 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
.spinner-cover { display: grid; place-items: center; padding: 60px 0; }
@media (max-width: 575.98px) {
  .cart-line { flex-wrap: wrap; gap: 10px; }
  .cart-line img { width: 54px; height: 54px; }
  .cart-line .cl-info { flex: 1 1 calc(100% - 70px); }
  .cart-line .stepper { margin-left: 64px; }
  .cart-line .cl-total { margin-left: auto; }
  .cart-line.is-free .cl-total { margin-left: auto; }
}
.menu-list .lang-pick { display: inline-flex; background: #f1ede4; border-radius: 10px; padding: 3px; }
.menu-list .lang-pick a { display: inline-block; width: auto; padding: 5px 14px; border: 0; border-radius: 8px; font-size: 13.5px; color: var(--am-muted); }
.menu-list .lang-pick a.on { background: #fff; color: var(--am-primary); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
