/* =====================================================================
   Atena Gallery storefront ("Beauty by Atena").
   Mobile first, RTL. Every color comes from the tokens below (same values as Styles/app.css);
   spacing is a multiple of 4px and every tap target is at least 44px.
   ===================================================================== */
.ag-site {
  --ink: #24172A; --plum: #5C2A4C; --plum-2: #7A3D63; --pink: #D9839F; --pink-soft: #E9A9BD;
  --blush: #F6E6EB; --blush-2: #FBF2F5; --cream: #FFFAF8; --muted: #7D6878; --line: #ECDDE2;
  --sage: #E7EFE6; --sage-ink: #3F6B4A; --err: #C0392B; --err-bg: #FDECEC; --white: #fff;
  --r-sm: 10px; --r: 14px; --r-lg: 16px; --r-xl: 24px; --gutter: 16px;
  --shadow: 0 6px 20px rgb(36 23 42 / .07); --shadow-lg: 0 16px 40px rgb(36 23 42 / .16);
  --latin: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--cream); color: var(--ink); font-size: 15px; line-height: 1.75;
}
@media (min-width: 768px) { .ag-site { --gutter: 24px; } }
:where(.ag-site) h1, :where(.ag-site) h2, :where(.ag-site) h3, :where(.ag-site) p { margin: 0; }
:where(.ag-site) a { color: inherit; text-decoration: none; }
:where(.ag-site) img, :where(.ag-site) svg { display: block; max-width: 100%; }
:where(.ag-site) button, :where(.ag-site) input, :where(.ag-site) select, :where(.ag-site) textarea { font: inherit; color: inherit; }
:where(.ag-site) button { cursor: pointer; }
:where(.ag-site) button:disabled { cursor: not-allowed; }
:where(.ag-site) :focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; border-radius: 6px; }
.ag-dark :focus-visible { outline-color: var(--pink-soft); }
.ag-site main { flex: 1 0 auto; }
.ag-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ag-wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.ag-ltr { direction: ltr; unicode-bidi: isolate; }
.ag-muted { color: var(--muted); }
.ag-latin { font-family: var(--latin) !important; font-style: italic; font-weight: 500; letter-spacing: .01em; }
.ag-section { padding-top: 40px; }
@media (min-width: 1024px) { .ag-section { padding-top: 56px; } }
.ag-page { padding-block: 16px 56px; }
@media (min-width: 768px) { .ag-page { padding-block: 24px 72px; } }

/* ------------------------------------------------------------- logo */
.ag-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.ag-mark { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--plum); color: var(--plum); font-family: var(--latin) !important; font-style: italic; font-size: 26px; line-height: 1; padding-top: 2px; box-sizing: border-box; }
.ag-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.ag-logo-text strong { font-size: 17px; font-weight: 900; }
.ag-logo-text .ag-latin { color: var(--plum); font-size: 14px; }
.ag-dark .ag-mark { border-color: var(--pink); color: var(--pink); }
.ag-dark .ag-logo-text .ag-latin { color: var(--pink); }

/* ------------------------------------------------------------- buttons */
.ag-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--ink); color: #fff !important; font-weight: 800; font-size: 15px; line-height: 1.3; text-align: center; transition: background .15s, border-color .15s, color .15s; }
.ag-btn:hover:not(:disabled) { background: var(--plum); border-color: var(--plum); }
.ag-btn:disabled, .ag-btn[aria-disabled=true] { background: #EADDE2; border-color: #EADDE2; color: var(--muted) !important; }
.ag-btn-line { background: #fff; color: var(--ink) !important; border-color: var(--ink); }
.ag-btn-line:hover:not(:disabled) { background: var(--blush); border-color: var(--plum); color: var(--plum) !important; }
.ag-btn-white { background: #fff; border-color: #fff; color: var(--ink) !important; }
.ag-btn-white:hover:not(:disabled) { background: var(--blush); border-color: var(--blush); }
.ag-btn-sage { background: var(--sage); border-color: var(--sage-ink); color: var(--sage-ink) !important; }
.ag-btn-sage:hover:not(:disabled) { background: #d9e6d7; border-color: var(--sage-ink); }
.ag-btn-plum { background: var(--plum); border-color: var(--plum); }
.ag-btn-plum:hover:not(:disabled) { background: var(--plum-2); border-color: var(--plum-2); }
.ag-btn-block { display: flex; width: 100%; }
.ag-btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.ag-btn-lg { min-height: 54px; font-size: 16px; }
.ag-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--plum); font-weight: 800; }
.ag-link:hover { color: var(--plum-2); }
.ag-link-u { border: 0; background: none; padding: 0; min-height: 44px; color: var(--plum); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.ag-icon-btn { position: relative; flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); transition: background .15s; }
.ag-icon-btn:hover { background: var(--blush); }
.ag-icon-btn.ag-white { background: #fff; box-shadow: 0 1px 3px rgb(36 23 42 / .08); }
.ag-count { position: absolute; top: 2px; inset-inline-end: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--plum); color: #fff; font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; box-sizing: border-box; }
.ag-spin { width: 18px; height: 18px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: ag-spin .8s linear infinite; }
@keyframes ag-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------- chips, badges, swatches */
.ag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-chips-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.ag-chips-scroll::-webkit-scrollbar { display: none; }
.ag-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border: 1.5px solid transparent; border-radius: 999px; background: var(--blush); color: var(--ink); font-weight: 800; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s; }
.ag-chip:hover { border-color: var(--pink-soft); }
.ag-chip[aria-pressed=true], .ag-chip.is-on { background: var(--plum); color: #fff; }
.ag-chip-line { background: #fff; border-color: var(--ink); }
.ag-chip-line:hover { background: var(--blush); }
.ag-badge { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.ag-badge-ink { background: var(--ink); color: #fff; }
.ag-badge-pink { background: var(--pink); color: var(--ink); }
.ag-badge-blush { background: var(--blush); color: var(--plum); }
.ag-badge-sage { background: var(--sage); color: var(--sage-ink); }
.ag-badge-err { background: var(--err-bg); color: var(--err); }
.ag-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ag-sw { display: inline-flex; align-items: center; gap: 4px; }
.ag-sw i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.ag-sw small { color: var(--muted); font-size: 12px; font-weight: 700; margin-inline-start: 2px; }

/* ------------------------------------------------------------- forms */
.ag-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ag-field > span, .ag-label { font-size: 14px; font-weight: 800; }
.ag-input, .ag-field input, .ag-field select, .ag-field textarea { width: 100%; min-height: 50px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; font-size: 15px; box-sizing: border-box; transition: border-color .15s, box-shadow .15s; }
.ag-field textarea { padding-block: 12px; resize: vertical; min-height: 110px; }
.ag-input:focus, .ag-field input:focus, .ag-field select:focus, .ag-field textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgb(217 131 159 / .2); }
.ag-input[aria-invalid=true], .ag-field [aria-invalid=true] { border-color: var(--err); background: var(--err-bg); }
.ag-field small { color: var(--muted); font-size: 12px; }
.ag-err { color: var(--err); font-size: 13px; font-weight: 700; }
.ag-site ::placeholder { color: #A898A3; }
.ag-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-size: 14px; cursor: pointer; }
.ag-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--plum); flex: none; }
.ag-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-weight: 800; cursor: pointer; }
.ag-switch input { appearance: none; width: 46px; height: 26px; border-radius: 999px; background: #E6D6DC; position: relative; transition: background .15s; flex: none; cursor: pointer; }
.ag-switch input::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .2); transition: inset-inline-start .15s; }
.ag-switch input:checked { background: var(--plum); }
.ag-switch input:checked::after { inset-inline-start: 23px; }

/* ------------------------------------------------------------- cards & panels */
.ag-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
@media (min-width: 768px) { .ag-panel { padding: 20px; } }
.ag-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; font-size: 17px; font-weight: 900; }
.ag-panel-title small { color: var(--muted); font-weight: 500; font-size: 13px; }
.ag-note { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--r); background: var(--blush); color: var(--plum); font-size: 14px; font-weight: 700; }
.ag-note.is-ok { background: var(--sage); color: var(--sage-ink); }
.ag-note.is-err { background: var(--err-bg); color: var(--err); }
.ag-secure { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------- header */
.ag-header { position: sticky; top: 0; z-index: 40; background: rgb(255 250 248 / .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.ag-head-row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.ag-search.ag-head-search { flex: 1; display: none; }
.ag-head-actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.ag-head-account { display: none; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: 12px; font-weight: 800; font-size: 14px; }
.ag-head-account:hover { background: var(--blush); }
.ag-head-cart { display: none; }
.ag-head-wish { display: none; }
.ag-search { position: relative; display: flex; align-items: center; width: 100%; }
.ag-search input { width: 100%; min-height: 48px; padding: 0 48px 0 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; font-size: 14px; box-sizing: border-box; }
.ag-search input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgb(217 131 159 / .2); }
.ag-search > button, .ag-search > .ag-search-ico { position: absolute; inset-inline-start: 2px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); }
.ag-search input[type=search]::-webkit-search-cancel-button { display: none; }
.ag-head-mobile-search { padding-bottom: 12px; }
.ag-nav { display: none; border-top: 1px solid var(--line); }
.ag-nav-in { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ag-nav a { flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; font-weight: 800; font-size: 14px; border-bottom: 2px solid transparent; }
.ag-nav a:hover, .ag-nav a[aria-current=page] { color: var(--plum); border-bottom-color: var(--plum); }
.ag-acc-menu { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 220px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); z-index: 50; }
.ag-acc-menu a, .ag-acc-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; font-weight: 700; font-size: 14px; text-align: start; }
.ag-acc-menu a:hover, .ag-acc-menu button:hover { background: var(--blush); }
.ag-acc-menu .is-danger { color: var(--err); }
@media (min-width: 1024px) {
  .ag-head-row { min-height: 76px; gap: 24px; }
  .ag-search.ag-head-search { display: flex; max-width: 560px; margin-inline: auto; }
  .ag-head-actions { margin-inline-start: 0; gap: 8px; }
  .ag-head-account, .ag-head-wish { display: inline-flex; }
  .ag-head-cart { display: inline-flex; }
  .ag-head-icon-cart, .ag-head-icon-user, .ag-head-mobile-search { display: none !important; }
  .ag-nav { display: block; }
}
.ag-cart-btn { position: relative; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: var(--r); }
.ag-cart-btn .ag-count { position: static; background: var(--pink); color: var(--ink); }

/* compact header for focused flows (checkout, auth, account sub pages on mobile) */
.ag-topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 8px; min-height: 60px; padding-inline: 8px; background: rgb(255 250 248 / .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.ag-topbar h1 { flex: 1; font-size: 17px; font-weight: 900; line-height: 1.3; }
.ag-topbar h1 small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }

/* ------------------------------------------------------------- bottom nav (mobile) */
.ag-bottom-nav { position: fixed; inset-inline: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); }
.ag-bottom-nav a, .ag-bottom-nav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 700; }
.ag-bottom-nav [aria-current=page], .ag-bottom-nav .is-on { color: var(--plum); font-weight: 900; }
.ag-bottom-nav .ag-count { top: 4px; inset-inline-end: calc(50% - 22px); }
.ag-has-bottom-nav { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .ag-bottom-nav { display: none; } .ag-has-bottom-nav { padding-bottom: 0; } }

/* sticky action bar on product / cart / checkout (mobile) */
.ag-actionbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 46; display: flex; align-items: center; gap: 12px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(36 23 42 / .06); }
.ag-actionbar .ag-btn { flex: 1; }
.ag-actionbar-sum { display: flex; flex-direction: column; line-height: 1.35; font-size: 12px; color: var(--muted); }
.ag-actionbar-sum strong { color: var(--plum); font-size: 18px; font-weight: 900; }
.ag-actionbar-sum strong small { color: var(--muted); font-size: 12px; font-weight: 500; }
.ag-actionbar.is-above-nav { bottom: calc(60px + env(safe-area-inset-bottom)); }
.ag-has-actionbar { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .ag-actionbar { display: none; } .ag-has-actionbar { padding-bottom: 0; } }

/* ------------------------------------------------------------- footer */
.ag-footer { margin-top: 56px; background: var(--ink); color: #E9DDE3; font-size: 14px; }
.ag-footer-grid { display: grid; gap: 28px; padding-block: 36px; }
.ag-footer h2 { margin-bottom: 12px; color: #fff; font-size: 16px; font-weight: 900; }
.ag-footer p { color: #CDBCC6; line-height: 1.9; }
.ag-footer-list { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ag-footer-list li, .ag-footer-list a { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.ag-footer-list a:hover { color: var(--pink-soft); }
.ag-footer-list .vl-icon { color: var(--pink); flex: none; }
.ag-trust { display: flex; flex-wrap: wrap; gap: 10px; }
.ag-trust > * { display: grid; place-items: center; width: 92px; height: 100px; padding: 6px; border: 1px dashed #6B5868; border-radius: var(--r); color: #CDBCC6; font-size: 12px; text-align: center; box-sizing: border-box; background: rgb(255 255 255 / .03); }
.ag-trust img { max-height: 84px; width: auto; }
.ag-footer-bottom { padding-block: 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid #3B2B40; color: #A996A3; font-size: 13px; text-align: center; }
@media (min-width: 768px) { .ag-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .ag-footer-grid { grid-template-columns: 1.5fr 1.2fr 1fr 1fr auto; padding-block: 44px; } }

/* ------------------------------------------------------------- section heads */
.ag-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ag-sec-head h2 { font-size: 20px; font-weight: 900; line-height: 1.4; }
.ag-sec-head p { margin-top: 2px; color: var(--muted); font-size: 14px; }
@media (min-width: 1024px) { .ag-sec-head h2 { font-size: 22px; } }

/* ------------------------------------------------------------- hero */
.ag-hero { padding-top: 16px; }
.ag-hero-card { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 230px; padding: 24px; border-radius: var(--r-xl); background: var(--plum); color: #fff; isolation: isolate; box-sizing: border-box; }
.ag-hero-card::before { content: 'A'; position: absolute; top: -18px; inset-inline-end: 22px; z-index: -1; font-family: var(--latin); font-style: italic; font-size: 180px; line-height: 1; color: rgb(233 169 189 / .35); }
.ag-hero-card::after { content: ''; position: absolute; top: -70px; inset-inline-end: -40px; z-index: -1; width: 240px; height: 240px; border: 1px solid rgb(233 169 189 / .35); border-radius: 50%; }
.ag-hero-card img.ag-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ag-hero-card.has-img::before, .ag-hero-card.has-img::after { display: none; }
.ag-hero-card.has-img { background: linear-gradient(0deg, rgb(36 23 42 / .72), rgb(36 23 42 / .05) 70%); }
.ag-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 560px; }
.ag-hero-copy .ag-eyebrow { color: var(--pink-soft); font-size: 13px; font-weight: 800; }
.ag-hero-copy h1, .ag-hero-copy h2 { font-size: 24px; font-weight: 900; line-height: 1.45; }
.ag-hero-copy p { color: #F1E2E9; font-size: 14px; }
.ag-hero-copy .ag-btn-white { min-height: 46px; padding: 0 22px; }
.ag-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.ag-dots button { width: 44px; height: 32px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.ag-dots button i { width: 8px; height: 8px; border-radius: 999px; background: var(--pink-soft); transition: width .2s, background .2s; }
.ag-dots button[aria-current=true] i { width: 24px; background: var(--plum); }
@media (min-width: 768px) { .ag-hero-card { min-height: 340px; padding: 36px 40px; } .ag-hero-copy h1, .ag-hero-copy h2 { font-size: 32px; } .ag-hero-card::before { font-size: 260px; } .ag-hero-card::after { width: 340px; height: 340px; } }
@media (min-width: 1024px) { .ag-hero { padding-top: 24px; } .ag-hero-card { min-height: 390px; } }
@media (prefers-reduced-motion: no-preference) { .ag-hero-slide { animation: ag-fade .45s ease; } }
@keyframes ag-fade { from { opacity: .3; } to { opacity: 1; } }

/* ------------------------------------------------------------- home: quick cats + trust */
.ag-quick { padding-top: 16px; }
@media (min-width: 1024px) { .ag-quick { display: none; } }
.ag-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 20px; }
.ag-perk { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; font-size: 13px; font-weight: 800; line-height: 1.5; }
.ag-perk-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blush); color: var(--plum); }
.ag-perk-ico.is-sage { background: var(--sage); color: var(--sage-ink); }
@media (min-width: 1024px) { .ag-perks { grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 28px; } .ag-perk { font-size: 14px; } }

/* ------------------------------------------------------------- product grid & card */
.ag-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .ag-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .ag-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ag-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 4px; }
.ag-rail::-webkit-scrollbar { display: none; }
.ag-rail > * { scroll-snap-align: start; }
@media (min-width: 768px) { .ag-rail { grid-auto-columns: 31%; gap: 16px; } }
@media (min-width: 1024px) { .ag-rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; } }

.ag-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: box-shadow .2s, transform .2s; }
.ag-card:hover { box-shadow: var(--shadow); }
.ag-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ag-card-media { position: relative; aspect-ratio: 1 / 1; background: var(--blush); overflow: hidden; }
.ag-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.ag-card:hover .ag-card-media img { transform: scale(1.03); }
.ag-card.is-out .ag-card-media { background: var(--blush-2); }
.ag-card.is-out .ag-card-media img { filter: grayscale(.85) opacity(.6); }
.ag-card-badge { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; }
.ag-card-fav { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; width: 40px; height: 40px; }
.ag-card-fav.is-on { color: var(--plum); }
.ag-card-out { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; pointer-events: none; }
.ag-card-out span { padding: 6px 14px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 2px 8px rgb(36 23 42 / .1); }
.ag-card-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 12px; }
.ag-card-brand { color: var(--muted); font-size: 12px; font-weight: 700; min-height: 18px; }
.ag-card-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em; font-size: 14px; font-weight: 800; line-height: 1.5; }
.ag-card-sw { min-height: 24px; display: flex; align-items: center; }
.ag-card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: auto; padding-top: 4px; }
.ag-price { color: var(--plum); font-weight: 900; font-size: 16px; white-space: nowrap; }
.ag-price small { color: var(--muted); font-size: 12px; font-weight: 500; margin-inline-start: 2px; }
.ag-price-old { color: var(--muted); font-size: 12px; text-decoration: line-through; }
.ag-price-call { color: var(--muted); font-weight: 800; font-size: 13px; }
@media (min-width: 768px) { .ag-card-body { padding: 14px 16px 16px; } .ag-card-name { font-size: 15px; } }
.ag-sk { border-radius: var(--r-lg); background: linear-gradient(90deg, var(--blush) 25%, var(--blush-2) 50%, var(--blush) 75%); background-size: 200% 100%; animation: ag-sk 1.4s ease-in-out infinite; }
.ag-sk-card { aspect-ratio: 3 / 4.6; }
@keyframes ag-sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ------------------------------------------------------------- tested by Atena */
.ag-videos { display: grid; grid-auto-flow: column; grid-auto-columns: 40%; gap: 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.ag-videos::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .ag-videos { grid-auto-columns: 24%; } }
@media (min-width: 1024px) { .ag-videos { grid-auto-columns: calc((100% - 60px) / 6); margin: 0; padding: 0; } }
.ag-video { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; background: none; text-align: start; }
.ag-video-tile { position: relative; display: grid; place-items: center; aspect-ratio: 9 / 16; border-radius: var(--r-lg); background: var(--plum); overflow: hidden; }
.ag-video-swatch { width: 62%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 12px rgb(255 255 255 / .08); margin-top: -36%; }
.ag-video-play { position: absolute; top: 52%; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #F6EEF1; color: var(--ink); }
.ag-video-time { position: absolute; bottom: 10px; inset-inline-end: 10px; padding: 0 8px; height: 22px; border-radius: 999px; background: rgb(36 23 42 / .7); color: #fff; font-size: 12px; font-weight: 800; line-height: 22px; direction: ltr; }
.ag-video-name { font-size: 14px; font-weight: 800; line-height: 1.5; }
.ag-video:hover .ag-video-play { background: #fff; transform: scale(1.06); }

/* ------------------------------------------------------------- brands + owner */
.ag-brands { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.ag-brands::-webkit-scrollbar { display: none; }
.ag-brand { flex: none; display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: var(--plum); font-weight: 900; font-size: 15px; }
.ag-brand:hover { border-color: var(--pink); background: var(--blush-2); }
.ag-brand img { max-height: 32px; width: auto; }
@media (min-width: 1024px) { .ag-brands { flex-wrap: wrap; margin: 0; padding: 0; } }
.ag-owner { display: grid; gap: 16px; padding: 20px; border-radius: var(--r-xl); background: var(--blush); }
.ag-owner-head { display: flex; align-items: center; gap: 16px; }
.ag-owner-avatar { flex: none; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #F1D5DE; border: 3px solid #fff; color: var(--plum); overflow: hidden; }
.ag-owner h2 { font-size: 20px; font-weight: 900; margin-bottom: 6px; }
.ag-owner blockquote { margin: 0; font-size: 15px; line-height: 1.9; }
.ag-owner p { margin-top: 6px; color: var(--muted); font-size: 13px; }
@media (min-width: 1024px) { .ag-owner { grid-template-columns: 1fr auto; align-items: center; padding: 22px 28px; } }

/* ------------------------------------------------------------- breadcrumbs */
.ag-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.ag-crumbs li { display: inline-flex; align-items: center; gap: 2px; }
.ag-crumbs a { display: inline-flex; align-items: center; min-height: 36px; padding-inline: 2px; }
.ag-crumbs a:hover { color: var(--plum); }
.ag-crumbs [aria-current=page] { color: var(--ink); font-weight: 800; }

/* ------------------------------------------------------------- product page */
.ag-pdp { display: grid; gap: 20px; }
@media (min-width: 1024px) { .ag-pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; } .ag-pdp-gallery { position: sticky; top: 140px; } }
.ag-gal-main { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--blush); margin-inline: calc(var(--gutter) * -1); }
@media (min-width: 768px) { .ag-gal-main { margin-inline: 0; border-radius: var(--r-xl); } }
.ag-gal-main img { width: 100%; height: 100%; object-fit: cover; }
.ag-gal-tools { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; display: flex; gap: 8px; }
.ag-gal-badge { position: absolute; bottom: 14px; inset-inline-end: 14px; z-index: 2; }
.ag-gal-count { position: absolute; bottom: 14px; inset-inline-start: 14px; z-index: 2; padding: 0 10px; height: 26px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 800; line-height: 26px; }
.ag-gal-nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; }
.ag-gal-nav.is-prev { inset-inline-start: 8px; }
.ag-gal-nav.is-next { inset-inline-end: 8px; }
.ag-gal-caption { position: absolute; bottom: 18%; inset-inline: 0; text-align: center; color: var(--plum); font-size: 13px; font-weight: 700; }
.ag-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.ag-thumbs button { flex: none; width: 76px; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: var(--r); background: var(--blush); overflow: hidden; }
.ag-thumbs button[aria-current=true] { border-color: var(--plum); }
.ag-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) { .ag-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); } .ag-thumbs button { width: auto; } }
.ag-pdp-info { display: flex; flex-direction: column; gap: 16px; }
.ag-pdp-brand { color: var(--muted); font-size: 13px; font-weight: 700; }
.ag-pdp-info h1 { font-size: 22px; font-weight: 900; line-height: 1.5; }
@media (min-width: 1024px) { .ag-pdp-info h1 { font-size: 26px; } }
.ag-rating { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.ag-rating strong { color: var(--ink); font-size: 14px; }
.ag-rating .vl-icon { color: var(--plum); }
.ag-colors-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ag-colors-head strong { font-size: 15px; font-weight: 900; }
.ag-colors-head span { color: var(--muted); font-size: 13px; }
.ag-colors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.ag-color { position: relative; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); transition: transform .15s; }
.ag-color:hover { transform: scale(1.06); }
.ag-color[aria-checked=true] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--plum); }
.ag-color.is-out { opacity: .55; }
.ag-color.is-out::after { content: ''; position: absolute; inset: 50% 4px auto; height: 2px; background: #fff; rotate: -45deg; }
.ag-videocard { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; text-align: start; }
.ag-videocard:hover { border-color: var(--pink-soft); }
.ag-videocard-thumb { flex: none; display: grid; place-items: center; width: 52px; height: 88px; border-radius: 10px; background: var(--plum); }
.ag-videocard-thumb i { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 4px rgb(255 255 255 / .12); }
.ag-videocard-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ag-videocard-text strong { font-size: 15px; font-weight: 900; }
.ag-videocard-text small { color: var(--muted); font-size: 13px; }
.ag-videocard-play { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blush); color: var(--plum); }
.ag-buybox { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.ag-buybox-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.ag-buybox-price .ag-price { font-size: 26px; }
.ag-buybox-price .ag-price small { font-size: 14px; }
.ag-installment { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--sage-ink); font-size: 13px; font-weight: 800; }
.ag-buybox .ag-btn { margin-top: 14px; }
.ag-qty { display: inline-flex; align-items: center; height: 48px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; }
.ag-qty button { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; }
.ag-qty button:disabled { color: #CDBCC6; }
.ag-qty output { min-width: 28px; text-align: center; font-weight: 900; }
.ag-ship-list { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.ag-ship-list > div { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.ag-ship-list > div + div { border-top: 1px solid var(--line); }
.ag-ship-list strong { display: block; font-size: 14px; font-weight: 900; }
.ag-ship-list small { color: var(--muted); font-size: 12px; }
.ag-ship-list .vl-icon { color: var(--plum); flex: none; }
.ag-acc { border-top: 1px solid var(--line); }
.ag-acc details { border-bottom: 1px solid var(--line); }
.ag-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; font-weight: 900; font-size: 15px; list-style: none; cursor: pointer; }
.ag-acc summary::-webkit-details-marker { display: none; }
.ag-acc summary .vl-icon { transition: rotate .2s; color: var(--muted); }
.ag-acc details[open] summary .vl-icon { rotate: 180deg; }
.ag-acc-body { padding-bottom: 16px; color: #3E2D44; font-size: 14px; line-height: 2; }
.ag-specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.ag-specs th, .ag-specs td { padding: 10px 0; border-bottom: 1px dashed var(--line); text-align: start; vertical-align: top; }
.ag-specs th { width: 38%; color: var(--muted); font-weight: 700; }
.ag-review { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.ag-review header { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.ag-review header strong { font-size: 14px; }
.ag-stars { display: inline-flex; gap: 2px; color: var(--plum); }
.ag-stars .is-off { color: #E2D2D9; }
.ag-star-pick { display: flex; gap: 4px; }
.ag-star-pick button { width: 40px; height: 40px; border: 0; background: none; color: #E2D2D9; display: grid; place-items: center; }
.ag-star-pick button.is-on { color: var(--plum); }

/* ------------------------------------------------------------- listing */
.ag-listbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ag-listbar .ag-btn { min-height: 46px; font-weight: 800; }
.ag-filter-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--plum); color: #fff; font-size: 12px; box-sizing: border-box; }
.ag-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.ag-active-filters .ag-chip { min-height: 40px; padding: 0 14px; font-size: 13px; }
.ag-list-layout { display: grid; gap: 20px; }
.ag-list-side { display: none; }
@media (min-width: 1024px) {
  .ag-list-layout { grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: 28px; }
  .ag-list-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 140px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
  .ag-listbar .ag-filter-open { display: none; }
  .ag-listbar { grid-template-columns: auto; justify-content: end; }
}
.ag-filter-group h3 { margin-bottom: 10px; font-size: 15px; font-weight: 900; }
.ag-color-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-color-filter .ag-chip i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); }
.ag-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 24px; color: var(--muted); font-size: 13px; }
.ag-more .ag-btn { min-width: 200px; }

/* ------------------------------------------------------------- bottom sheet / modal */
.ag-sheet-back { position: fixed; inset: 0; z-index: 80; background: rgb(36 23 42 / .45); animation: ag-fade .2s ease; }
.ag-sheet { position: fixed; inset-inline: 0; bottom: 0; z-index: 81; max-height: 88dvh; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-lg); animation: ag-up .22s ease; }
.ag-sheet::before { content: ''; display: block; width: 44px; height: 4px; margin: 10px auto 0; border-radius: 999px; background: var(--pink-soft); }
.ag-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px 6px 20px; }
.ag-sheet-head h2 { font-size: 17px; font-weight: 900; }
.ag-sheet-body { flex: 1; overflow-y: auto; padding: 4px 20px 16px; }
.ag-sheet-foot { display: flex; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.ag-sheet-foot .ag-btn:last-child { flex: 1; }
.ag-sheet-list button, .ag-sheet-list a { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; border: 0; border-bottom: 1px solid var(--line); background: none; font-weight: 700; text-align: start; }
.ag-sheet-list [aria-checked=true], .ag-sheet-list [aria-current=page] { color: var(--plum); font-weight: 900; }
@media (min-width: 768px) {
  .ag-sheet { inset: 50% auto auto 50%; translate: -50% -50%; width: min(520px, calc(100vw - 48px)); max-height: 80dvh; border-radius: var(--r-xl); animation: ag-fade .2s ease; }
  .ag-sheet::before { display: none; }
  .ag-sheet-head { padding: 14px 12px 6px 20px; }
}
@keyframes ag-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.ag-video-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgb(20 12 24 / .88); }
.ag-video-modal video { max-width: 100%; max-height: 84dvh; border-radius: var(--r-lg); background: #000; }
.ag-video-modal > button { position: absolute; top: 12px; inset-inline-end: 12px; background: rgb(255 255 255 / .14); color: #fff; }
.ag-video-modal-cap { margin-top: 10px; color: #fff; font-weight: 800; text-align: center; }

/* toast */
.ag-toast { position: fixed; inset-inline: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 95; display: flex; align-items: center; gap: 10px; max-width: 460px; margin-inline: auto; padding: 12px 16px; border-radius: var(--r); background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; box-shadow: var(--shadow-lg); animation: ag-up .2s ease; }
.ag-toast a, .ag-toast button { margin-inline-start: auto; border: 0; background: none; color: var(--pink-soft); font-weight: 900; min-height: 36px; }
@media (min-width: 1024px) { .ag-toast { bottom: 24px; inset-inline: auto 24px; } }

/* ------------------------------------------------------------- empty / error states */
.ag-state { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; text-align: center; }
.ag-state-ico { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--blush); color: var(--plum); margin-bottom: 4px; }
.ag-state.is-err { background: var(--err-bg); border-color: transparent; }
.ag-state.is-err .ag-state-ico { background: #fff; color: var(--err); }
.ag-state.is-err strong { color: var(--err); }
.ag-state.is-ok { background: var(--sage); border-color: transparent; }
.ag-state.is-ok .ag-state-ico { background: #fff; color: var(--sage-ink); }
.ag-state strong { font-size: 17px; font-weight: 900; }
.ag-state p { color: var(--muted); font-size: 14px; max-width: 420px; }

/* ------------------------------------------------------------- steps (checkout) */
.ag-steps { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ag-steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 800; }
.ag-steps li:not(:last-child) { flex: 1; }
.ag-steps li:not(:last-child)::after { content: ''; flex: 1; height: 2px; border-radius: 2px; background: var(--line); min-width: 16px; }
.ag-steps li.is-done:not(:last-child)::after { background: var(--sage-ink); }
.ag-steps i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-style: normal; font-size: 13px; }
.ag-steps .is-done { color: var(--sage-ink); }
.ag-steps .is-done i { background: var(--sage-ink); border-color: var(--sage-ink); color: #fff; }
.ag-steps .is-current { color: var(--ink); }
.ag-steps .is-current i { background: var(--plum); border-color: var(--plum); color: #fff; }
@media (min-width: 1024px) { .ag-steps { max-width: 560px; } }

/* selectable option cards (address, shipping, payment) */
.ag-options { display: flex; flex-direction: column; gap: 10px; }
.ag-option { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.ag-option:hover { border-color: var(--pink-soft); }
.ag-option:has(input:checked), .ag-option.is-on { border-color: var(--plum); background: var(--blush-2); }
.ag-option input[type=radio] { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--plum); }
.ag-option-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ag-option-body strong { font-size: 15px; font-weight: 900; }
.ag-option-body small { color: var(--muted); font-size: 13px; line-height: 1.7; }
.ag-option-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blush); color: var(--plum); }
.ag-option-end { flex: none; align-self: center; font-weight: 900; font-size: 14px; white-space: nowrap; }
.ag-option-end.is-free { color: var(--sage-ink); }
.ag-option.is-disabled { opacity: .55; cursor: not-allowed; }
.ag-add-option { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; border: 1.5px dashed var(--muted); border-radius: var(--r-lg); background: #fff; font-weight: 800; }
.ag-add-option:hover { border-color: var(--plum); color: var(--plum); }

/* order summary */
.ag-sum { display: flex; flex-direction: column; gap: 10px; margin: 0; font-size: 14px; }
.ag-sum > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ag-sum dt { color: #3E2D44; }
.ag-sum dd { margin: 0; font-weight: 800; white-space: nowrap; }
.ag-sum .is-good dt, .ag-sum .is-good dd { color: var(--sage-ink); }
.ag-sum .is-total { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.ag-sum .is-total dt { font-weight: 900; font-size: 15px; color: var(--ink); }
.ag-sum .is-total dd { color: var(--plum); font-size: 19px; font-weight: 900; }
.ag-saving { margin-top: 12px; padding: 10px 12px; border-radius: var(--r); background: var(--sage); color: var(--sage-ink); font-size: 14px; font-weight: 900; text-align: center; }

/* cart lines */
.ag-line { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.ag-line.is-bad { border-color: #F2C4C0; background: #FFF8F7; }
.ag-line-img { flex: none; width: 88px; height: 88px; border-radius: var(--r); overflow: hidden; background: var(--blush); }
.ag-line-img img { width: 100%; height: 100%; object-fit: cover; }
.ag-line-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ag-line-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ag-line-name { font-size: 15px; font-weight: 900; line-height: 1.5; }
.ag-line-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.ag-line-meta i { width: 12px; height: 12px; border-radius: 50%; }
.ag-line-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.ag-line-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.4; }
.ag-line-price small { color: var(--muted); font-size: 12px; }
@media (min-width: 768px) { .ag-line-img { width: 104px; height: 104px; } }

.ag-two { display: grid; gap: 16px; }
@media (min-width: 1024px) { .ag-two { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; } .ag-two > aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 12px; } }

/* thumbnails row of an order */
.ag-mini-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.ag-mini-thumbs span { position: relative; width: 52px; height: 52px; border-radius: 12px; background: var(--blush); overflow: hidden; }
.ag-mini-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ag-mini-thumbs b { position: absolute; bottom: -2px; inset-inline-start: -2px; min-width: 20px; height: 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 11px; line-height: 18px; text-align: center; box-sizing: border-box; }

/* ------------------------------------------------------------- auth */
.ag-auth { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 420px; margin-inline: auto; padding-block: 32px 24px; text-align: center; }
.ag-auth .ag-mark { width: 72px; height: 72px; font-size: 40px; margin-bottom: 8px; }
.ag-auth h1 { font-size: 22px; font-weight: 900; }
.ag-auth > p { color: var(--muted); font-size: 14px; }
.ag-auth form { width: 100%; display: flex; flex-direction: column; gap: 14px; margin-top: 18px; text-align: start; }
.ag-otp { display: flex; justify-content: center; gap: 8px; direction: ltr; }
.ag-otp input { width: 46px; height: 56px; padding: 0; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; text-align: center; font-size: 22px; font-weight: 900; }
.ag-otp input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgb(217 131 159 / .2); }
.ag-otp input.is-filled { border-color: var(--plum); }
.ag-otp.is-bad input { border-color: var(--err); background: var(--err-bg); }

/* ------------------------------------------------------------- account */
.ag-profile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: var(--blush); }
.ag-avatar { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--plum); color: #fff; font-size: 22px; font-weight: 900; }
.ag-profile strong { display: block; font-size: 17px; font-weight: 900; }
.ag-profile span { color: var(--muted); font-size: 13px; }
.ag-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: var(--r); background: #EEDDE3; }
.ag-tabs a, .ag-tabs button { display: grid; place-items: center; min-height: 44px; border: 0; border-radius: 11px; background: none; color: var(--muted); font-weight: 800; font-size: 14px; }
.ag-tabs [aria-current=page], .ag-tabs [aria-selected=true] { background: #fff; color: var(--plum); box-shadow: 0 1px 3px rgb(36 23 42 / .08); }
.ag-order-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.ag-order-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ag-order-card header strong { font-size: 15px; font-weight: 900; }
.ag-order-card > small { color: var(--muted); font-size: 13px; }
.ag-progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.ag-progress i { display: block; height: 100%; border-radius: inherit; background: var(--plum); }
.ag-track { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--cream); }
.ag-track small { display: block; color: var(--muted); font-size: 12px; }
.ag-track strong { font-family: Consolas, monospace; direction: ltr; unicode-bidi: isolate; font-size: 14px; }
.ag-menu-list { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.ag-menu-list a, .ag-menu-list button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 16px; border: 0; background: none; font-weight: 800; font-size: 15px; text-align: start; }
.ag-menu-list > * + * { border-top: 1px solid var(--line) !important; }
.ag-menu-list a:hover, .ag-menu-list button:hover { background: var(--blush-2); }
.ag-menu-list .vl-icon:first-child { color: var(--plum); }
.ag-menu-list .ag-menu-end { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.ag-logout { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: var(--err); font-weight: 900; }
.ag-logout:hover { background: var(--err-bg); }

/* ------------------------------------------------------------- content pages */
.ag-about-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; border-radius: var(--r-xl); background: var(--plum); color: #fff; }
.ag-about-hero .ag-mark { border-color: var(--pink-soft); color: var(--pink-soft); width: 56px; height: 56px; font-size: 32px; }
.ag-about-hero h1 { font-size: 24px; font-weight: 900; }
.ag-about-hero p { color: #F1E2E9; line-height: 2; }
.ag-feature-cards { display: grid; gap: 12px; }
@media (min-width: 768px) { .ag-feature-cards { grid-template-columns: repeat(3, 1fr); } }
.ag-feature { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.ag-feature .ag-perk-ico { margin-bottom: 4px; }
.ag-feature strong { font-weight: 900; }
.ag-feature small { color: var(--muted); font-size: 13px; }
.ag-prose { font-size: 15px; line-height: 2.05; color: #3E2D44; }
.ag-prose h2 { margin: 1.4em 0 .5em; color: var(--ink); font-size: 18px; font-weight: 900; }
.ag-prose h3 { margin: 1.2em 0 .4em; color: var(--ink); font-size: 16px; font-weight: 900; }
.ag-prose p { margin: 0 0 1em; }
.ag-prose ul, .ag-prose ol { margin: 0 0 1em; padding-inline-start: 1.4em; }
.ag-prose a { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }
.ag-prose img { border-radius: var(--r-lg); height: auto; }
.ag-contact-map { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--r-lg); background-color: var(--blush); background-image: linear-gradient(rgb(92 42 76 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(92 42 76 / .07) 1px, transparent 1px); background-size: 28px 28px; color: var(--plum); overflow: hidden; }
.ag-contact-map iframe { width: 100%; height: 100%; border: 0; }
.ag-info-table { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.ag-info-table > div { display: flex; gap: 16px; padding: 14px 16px; font-size: 14px; }
.ag-info-table > div + div { border-top: 1px solid var(--line); }
.ag-info-table span { flex: none; width: 72px; color: var(--muted); }
.ag-info-table strong, .ag-info-table a { font-weight: 800; }
.ag-info-table a { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------- search page */
.ag-trend { display: flex; flex-direction: column; }
.ag-trend a { display: flex; align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--line); font-weight: 700; }
.ag-trend a .vl-icon:last-child { margin-inline-start: auto; color: var(--muted); }
.ag-suggest { display: flex; flex-direction: column; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.ag-suggest a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 12px; }
.ag-suggest a + a { border-top: 1px solid var(--line); }
.ag-suggest a:hover { background: var(--blush-2); }
.ag-suggest img { width: 48px; height: 48px; border-radius: 10px; background: var(--blush); object-fit: cover; }
.ag-suggest span { flex: 1; min-width: 0; font-weight: 800; font-size: 14px; }
.ag-suggest small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }

/* payment result / success */
.ag-result { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-block: 24px 8px; text-align: center; }
.ag-result-ico { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--sage); color: var(--sage-ink); margin-bottom: 8px; }
.ag-result-ico.is-err { background: var(--err-bg); color: var(--err); }
.ag-result-ico.is-wait { background: var(--blush); color: var(--plum); }
.ag-result h1 { font-size: 22px; font-weight: 900; }
.ag-result p { color: var(--muted); font-size: 14px; max-width: 440px; }

/* print + motion */
@media print { .ag-header, .ag-footer, .ag-bottom-nav, .ag-actionbar { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .ag-site *, .ag-site *::before, .ag-site *::after { animation: none !important; transition: none !important; } }

/* admin-authored pages: <section> blocks become cards, <details> become the FAQ accordion */
.ag-prose-cards > section { margin-bottom: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.ag-prose-cards > section > h2:first-child, .ag-prose-cards > section > h3:first-child { margin-top: 0; }
.ag-prose-cards > section > :last-child { margin-bottom: 0; }
.ag-prose details { border-bottom: 1px solid var(--line); background: #fff; }
.ag-prose details:first-of-type { border-top-left-radius: var(--r-lg); border-top-right-radius: var(--r-lg); }
.ag-prose details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 16px; color: var(--ink); font-weight: 900; list-style: none; cursor: pointer; }
.ag-prose details summary::-webkit-details-marker { display: none; }
.ag-prose details summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); rotate: 45deg; transition: rotate .2s; flex: none; margin-top: -4px; }
.ag-prose details[open] summary::after { rotate: -135deg; margin-top: 4px; }
.ag-prose details > :not(summary) { margin: 0; padding: 0 16px 14px; }
.ag-prose .ag-faq-box { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); }

/* desktop-only controls (phones use the sticky action bar) */
@media (max-width: 1023px) { .ag-desk-only { display: none !important; } }
/* toasts sit above the action bar on product, cart and checkout pages */
@media (max-width: 1023px) { body:has(.ag-actionbar) .swal2-container.swal2-bottom { bottom: calc(140px + env(safe-area-inset-bottom)) !important; } }
