/* AH — homepage + product card. Mobile-first; uses ah-brand.css tokens only. */
.ah-wrap { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.ah-section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.ah-section--alt { background: var(--ah-surface); border-block: 1px solid var(--ah-border); }
.ah-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.ah-head h2 { margin: 0; }
.ah-head p { margin: .25rem 0 0; color: var(--ah-text-muted); font-size: var(--fs-small); }
.ah-link { font-weight: 700; font-size: var(--fs-small); white-space: nowrap; text-decoration: none; }
.ah-link:hover { text-decoration: underline; }

/* Hero */
.ah-hero { background: var(--ah-surface-alt); padding: clamp(2rem, 6vw, 4.5rem) 0; }
.ah-hero__grid { display: grid; gap: 2rem; align-items: center; }
.ah-hero__eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--ah-primary); font-size: var(--fs-small); margin-bottom: 1rem; }
.ah-hero__eyebrow img { width: 32px; height: 32px; border-radius: 8px; }
.ah-hero h1 { margin: 0 0 .75rem; }
.ah-hero p { color: var(--ah-text-muted); max-width: 46ch; margin: 0 0 1.5rem; }
.ah-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.ah-hero__cta .btn-ah { min-height: 48px; padding-inline: 1.6rem; }
.ah-hero__trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 1.5rem 0 0; font-size: var(--fs-small); color: var(--ah-text-muted); }
.ah-hero__trust i { color: var(--ah-success); margin-inline-end: .35rem; }
.ah-hero__visual { order: -1; max-width: 280px; margin-inline: auto; width: 100%; }
.ah-hero__visual img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--ah-radius-lg); }
@media (min-width: 900px) {
  .ah-hero__grid { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; }
  .ah-hero__visual { order: 0; max-width: 460px; }
}
@media (max-width: 480px) { .ah-hero__cta .btn-ah { flex: 1 1 100%; justify-content: center; } }

/* Categories */
.ah-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.ah-cat { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.25rem .75rem; text-align: center; background: var(--ah-surface); border: 1px solid var(--ah-border); border-radius: var(--ah-radius-lg); color: var(--ah-text); text-decoration: none; font-weight: 700; transition: border-color .2s, transform .2s; }
.ah-cat i { font-size: 1.4rem; color: var(--ah-primary); }
.ah-cat:hover { border-color: var(--ah-primary); transform: translateY(-2px); color: var(--ah-text); }
@media (min-width: 640px) { .ah-cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .ah-cats { grid-template-columns: repeat(6, 1fr); } }

/* Product grid + card */
.ah-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 700px) { .ah-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1000px) { .ah-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.ah-card { display: flex; flex-direction: column; background: var(--ah-surface); border: 1px solid var(--ah-border); border-radius: var(--ah-radius-lg); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.ah-card:hover { box-shadow: var(--ah-shadow); border-color: var(--ah-border-strong); }
.ah-card__media { position: relative; background: var(--ah-surface-alt); aspect-ratio: 1; }
.ah-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ah-card.is-soldout .ah-card__img { opacity: .55; }
.ah-card__badges { position: absolute; inset-block-start: .5rem; inset-inline-start: .5rem; display: flex; flex-direction: column; gap: .3rem; z-index: 2; }
.ah-badge { font-size: var(--fs-badge); font-weight: 700; line-height: 1; padding: .35rem .55rem; border-radius: 999px; background: var(--ah-secondary); color: #fff; width: fit-content; }
.ah-badge--sale { background: var(--ah-primary); }
.ah-badge--low { background: var(--ah-warning); }
.ah-badge--new { background: var(--ah-success); }
.ah-badge--out { background: var(--ah-text-muted); }
.ah-card__wish { position: absolute; inset-block-start: .5rem; inset-inline-end: .5rem; z-index: 3; width: 36px; height: 36px; border: 1px solid var(--ah-border); border-radius: 50%; background: rgba(255,255,255,.95); color: var(--ah-text); display: grid; place-items: center; cursor: pointer; }
.ah-card__wish.active i, .ah-card__wish[aria-pressed="true"] i { color: var(--ah-danger); }
.ah-card__body { display: flex; flex-direction: column; gap: .35rem; padding: .85rem; flex: 1; }
.ah-card__brand { font-size: var(--fs-caption); color: var(--ah-text-muted); font-weight: 600; }
.ah-card__title { font-size: .95rem; font-weight: 700; margin: 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.ah-card__title a { color: var(--ah-text); text-decoration: none; }
.ah-card__rating { font-size: var(--fs-caption); color: var(--ah-text-muted); }
.ah-card__rating i { color: #E0A100; }
.ah-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .6rem; margin-top: auto; }
.ah-price { font-size: var(--fs-price); font-weight: 800; color: var(--ah-secondary); }
.ah-price-old { font-size: var(--fs-small); color: var(--ah-text-muted); text-decoration: line-through; }
.ah-card__cta { width: 100%; justify-content: center; min-height: 44px; margin-top: .5rem; }

/* Why AH */
.ah-why { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ah-why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ah-why { grid-template-columns: repeat(4, 1fr); } }
.ah-why__item { display: flex; gap: .85rem; padding: 1rem; background: var(--ah-surface); border: 1px solid var(--ah-border); border-radius: var(--ah-radius-lg); }
.ah-why__item i { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--ah-primary-50); color: var(--ah-primary); }
.ah-why__item h3 { font-size: 1rem; margin: 0 0 .15rem; }
.ah-why__item p { margin: 0; font-size: var(--fs-small); color: var(--ah-text-muted); }

/* Reviews */
.ah-reviews { display: grid; gap: .75rem; }
@media (min-width: 800px) { .ah-reviews { grid-template-columns: repeat(3, 1fr); } }
.ah-review { background: var(--ah-surface); border: 1px solid var(--ah-border); border-radius: var(--ah-radius-lg); padding: 1.1rem; }
.ah-review__stars { color: #E0A100; font-size: .85rem; margin-bottom: .5rem; }
.ah-review p { margin: 0 0 .75rem; font-size: var(--fs-small); }
.ah-review footer { font-size: var(--fs-caption); color: var(--ah-text-muted); }
.ah-review footer b { color: var(--ah-text); }

/* Brands strip */
.ah-brands { display: flex; flex-wrap: wrap; gap: .6rem; }
.ah-brand { padding: .55rem 1.1rem; border: 1px solid var(--ah-border); border-radius: 999px; background: var(--ah-surface); color: var(--ah-text); font-weight: 600; font-size: var(--fs-small); text-decoration: none; }
.ah-brand:hover { border-color: var(--ah-primary); color: var(--ah-primary); }

/* Final CTA */
.ah-cta { background: var(--ah-secondary); color: #fff; text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 1rem; }
.ah-cta h2 { color: #fff; margin: 0 0 .5rem; }
.ah-cta p { color: rgba(255,255,255,.8); margin: 0 auto 1.5rem; max-width: 52ch; }
.ah-cta__row { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; }
.ah-cta .btn-ah-outline { color: #fff !important; border-color: rgba(255,255,255,.7) !important; }
.ah-cta .btn-ah-outline:hover { background: rgba(255,255,255,.12) !important; }


/* ===== Topbar / navbar (restrained) ===== */
.topbar { background: var(--ah-secondary) !important; color: #fff !important; font-size: var(--fs-caption); }
.topbar a, .topbar span { color: rgba(255,255,255,.88) !important; }
.topbar .text-gold { color: rgba(255,255,255,.88) !important; }
.ah-navbar { background: var(--ah-surface) !important; border-bottom: 1px solid var(--ah-border) !important; box-shadow: none !important; backdrop-filter: none !important; }
.nav-logo-img { height: 42px; width: auto; }
.ah-logo-mark { display: none; height: 40px; }
.nav-link { color: var(--ah-text) !important; font-weight: 600; }
.nav-link:hover, .nav-link.active { color: var(--ah-primary) !important; }
.btn-nav-action { color: var(--ah-text) !important; background: transparent !important; border: 1px solid transparent !important; }
.btn-nav-action:hover { border-color: var(--ah-border) !important; }
.cart-counter-badge { background: var(--ah-primary) !important; color: #fff !important; }
@media (max-width: 991px) {
  .ah-logo-full { display: none; } .ah-logo-mark { display: block; }
  .topbar-socials { display: none; }
}

/* ===== Search dialog ===== */
.ah-search { position: fixed; inset: 0; z-index: 9999; background: rgba(43,35,38,.55); align-items: flex-start; justify-content: center; padding: 6vh 1rem 1rem; }
.ah-search__box { position: relative; width: 100%; max-width: 560px; background: var(--ah-surface); border-radius: var(--ah-radius-lg); padding: 1.5rem; box-shadow: var(--ah-shadow); }
.ah-search__box h3 { font-size: 1.1rem; margin: 0 0 1rem; }
.ah-search__row { display: flex; gap: .5rem; }
.ah-search__row .form-control-ah { flex: 1; min-height: 46px; }
.ah-search__close { position: absolute; inset-block-start: .6rem; inset-inline-start: .6rem; background: none; border: 0; font-size: 1.2rem; color: var(--ah-text-muted); cursor: pointer; padding: .4rem; }

/* ===== Footer ===== */
.ah-footer { background: var(--ah-secondary) !important; color: rgba(255,255,255,.82); padding: 3rem 0 1.25rem; margin-top: 0; border: 0 !important; }
.ah-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.ah-footer a:hover { color: #fff; text-decoration: underline; }
.ah-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 .9rem; }
.ah-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .ah-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.ah-footer__brand p { font-size: var(--fs-small); line-height: 1.9; max-width: 38ch; margin: .9rem 0 1rem; }
.ah-footer__logo img { height: 45px; width: auto; }
.ah-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: var(--fs-small); }
.ah-footer__contact li { display: flex; gap: .6rem; align-items: flex-start; }
.ah-footer__contact i { margin-top: .3rem; color: var(--ah-accent); }
.ah-footer__social { display: flex; gap: .5rem; }
.ah-footer__social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.ah-footer__social a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.ah-footer__info { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.14); font-size: var(--fs-small); }
.ah-footer__info i { color: var(--ah-accent); margin-inline-end: .4rem; }
.ah-footer__bottom { margin-top: 1.25rem; font-size: var(--fs-caption); color: rgba(255,255,255,.65); text-align: center; }
.ah-footer__bottom p { margin: 0; }

/* ===== Mobile bottom nav ===== */
.ah-bottomnav { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .ah-bottomnav { position: fixed; inset-inline: 0; bottom: 0; z-index: 1000; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--ah-surface); border-top: 1px solid var(--ah-border); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .ah-bottomnav a, .ah-bottomnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 56px; padding: .4rem .1rem; background: none; border: 0; color: var(--ah-text-muted); font: inherit; font-size: .7rem; font-weight: 600; text-decoration: none; cursor: pointer; }
  .ah-bottomnav i { font-size: 1.15rem; }
  .ah-bottomnav .is-active { color: var(--ah-primary); }
}


/* ===== Product page ===== */
.ah-crumbs { background: var(--ah-surface); border-bottom: 1px solid var(--ah-border); padding: .75rem 0; font-size: var(--fs-small); color: var(--ah-text-muted); }
.ah-crumbs a { color: var(--ah-text-muted); text-decoration: none; }
.ah-crumbs a:hover { color: var(--ah-primary); }
.ah-crumbs span[aria-current] { color: var(--ah-text); }
.ah-pdp { padding: 1.5rem 0 3rem; }
.ah-pdp__grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .ah-pdp__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: start; } .ah-gal { position: sticky; top: 90px; } }

.ah-gal__strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border: 1px solid var(--ah-border); border-radius: var(--ah-radius-lg); background: var(--ah-surface-alt); overscroll-behavior-x: contain; }
.ah-gal__strip::-webkit-scrollbar { display: none; }
.ah-gal__slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; aspect-ratio: 1; overflow: hidden; }
.ah-gal__slide img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .15s ease-out; }
.ah-gal__thumbs { display: flex; gap: .5rem; margin-top: .75rem; overflow-x: auto; padding-bottom: .25rem; }
.ah-gal__thumb { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid var(--ah-border); border-radius: var(--ah-radius); overflow: hidden; background: var(--ah-surface); cursor: pointer; }
.ah-gal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ah-gal__thumb.is-active { border-color: var(--ah-primary); }

.ah-pdp__brand { font-size: var(--fs-small); font-weight: 700; color: var(--ah-primary); }
.ah-pdp__title { font-size: var(--fs-h1); margin: .25rem 0 .5rem; }
.ah-pdp__meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-size: var(--fs-small); color: var(--ah-text-muted); margin-bottom: 1rem; }
.ah-pdp__rating { color: var(--ah-text); text-decoration: none; font-weight: 700; }
.ah-pdp__rating i { color: #E0A100; }
.ah-pdp__rating span { font-weight: 400; color: var(--ah-text-muted); }
.ah-pdp__pricebox { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem .9rem; padding: 1rem 0; border-block: 1px solid var(--ah-border); }
.ah-pdp__price { font-size: 1.9rem; font-weight: 800; color: var(--ah-secondary); }
.ah-pdp__stock { margin: .9rem 0; font-size: var(--fs-small); font-weight: 700; display: flex; align-items: center; gap: .4rem; }
.ah-pdp__stock.is-in { color: var(--ah-success); } .ah-pdp__stock.is-out { color: var(--ah-danger); }
.ah-pdp__skin { font-size: var(--fs-small); }

.ah-variants { border: 0; padding: 0; margin: 0 0 1rem; }
.ah-variants legend { font-size: var(--fs-small); font-weight: 700; margin-bottom: .5rem; float: none; width: auto; }
.ah-variants legend span { font-weight: 400; color: var(--ah-text-muted); }
.ah-variants__list { display: flex; flex-wrap: wrap; gap: .5rem; }
.ah-variant { min-height: 44px; min-width: 44px; padding: .45rem .95rem; border: 1px solid var(--ah-border-strong); border-radius: 999px; background: var(--ah-surface); color: var(--ah-text); font: inherit; font-size: var(--fs-small); font-weight: 600; cursor: pointer; }
.ah-variant:hover:not(:disabled) { border-color: var(--ah-primary); }
.ah-variant.is-selected { border-color: var(--ah-primary); box-shadow: 0 0 0 2px var(--ah-primary); }
.ah-variant.is-out { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.ah-variant--swatch { padding: .3rem; border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; }
.ah-variant__dot { display: block; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }

.ah-buy__row { display: flex; gap: .6rem; margin-bottom: .6rem; align-items: stretch; }
.ah-buy__now, .ah-buy__cart { flex: 1; min-height: 48px; justify-content: center; }
.ah-buy__wish { flex: none; width: 48px; border: 1px solid var(--ah-border-strong); border-radius: var(--ah-radius); background: var(--ah-surface); color: var(--ah-text); cursor: pointer; }
.ah-buy__wish.active i, .ah-buy__wish[aria-pressed="true"] i { color: var(--ah-danger); }
.ah-pdp__soldout { padding: 1rem; border: 1px dashed var(--ah-border-strong); border-radius: var(--ah-radius); color: var(--ah-text-muted); }
@media (max-width: 767px) { .ah-buy__row:first-of-type { flex-wrap: wrap; } .ah-buy__now { flex: 1 1 100%; } }

.ah-delivery { margin: 1.25rem 0; padding: 1rem; background: var(--ah-surface); border: 1px solid var(--ah-border); border-radius: var(--ah-radius-lg); }
.ah-delivery h2 { font-size: 1rem; margin: 0 0 .6rem; }
.ah-delivery .form-control-ah { width: 100%; min-height: 44px; }
.ah-delivery__result { margin: .5rem 0 0; font-size: var(--fs-small); color: var(--ah-text); min-height: 1.2em; }
.ah-delivery ul { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .35rem; font-size: var(--fs-small); color: var(--ah-text-muted); }
.ah-delivery li i { color: var(--ah-primary); margin-inline-end: .5rem; }

.ah-acc { border-bottom: 1px solid var(--ah-border); }
.ah-acc summary { cursor: pointer; padding: .9rem 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.ah-acc summary::after { content: '+'; color: var(--ah-primary); font-size: 1.2rem; line-height: 1; }
.ah-acc[open] summary::after { content: '−'; }
.ah-acc div { padding: 0 0 1rem; line-height: 1.9; color: var(--ah-text); }

/* sticky mobile buy bar spacing: leave room above bottom nav */
@media (max-width: 767px) { .ah-pdp { padding-bottom: 2rem; } }


/* ===== Page head, empty state, cart extras ===== */
.ah-pagehead { background: var(--ah-surface-alt); padding: clamp(1.5rem, 4vw, 2.5rem) 0; border-bottom: 1px solid var(--ah-border); }
.ah-pagehead h1 { margin: 0 0 .25rem; font-size: var(--fs-h2); }
.ah-pagehead p { margin: 0; color: var(--ah-text-muted); font-size: var(--fs-small); }
.ah-empty { max-width: 520px; margin: 1rem auto; text-align: center; padding: 3rem 1.5rem; background: var(--ah-surface); border: 1px solid var(--ah-border); border-radius: var(--ah-radius-lg); }
.ah-empty i { font-size: 2.2rem; color: var(--ah-primary); margin-bottom: 1rem; }
.ah-empty h2 { font-size: 1.3rem; margin: 0 0 .4rem; }
.ah-empty p { color: var(--ah-text-muted); margin: 0 0 1.5rem; }
.ah-fsbar { background: var(--ah-surface); border: 1px solid var(--ah-border); border-radius: var(--ah-radius-lg); padding: .9rem 1rem; margin-bottom: 1.25rem; }
.ah-fsbar p { margin: 0 0 .6rem; font-size: var(--fs-small); }
.ah-fsbar i { color: var(--ah-primary); margin-inline-end: .35rem; }
.ah-fsbar__track { height: 8px; background: var(--ah-surface-alt); border-radius: 999px; overflow: hidden; }
.ah-fsbar__track span { display: block; height: 100%; background: var(--ah-success); border-radius: 999px; transition: width .4s ease; }

/* Light summary / cart surfaces (legacy classes) */
.summary-card { background: var(--ah-surface) !important; border: 1px solid var(--ah-border) !important; border-radius: var(--ah-radius-lg) !important; padding: 1.25rem !important; box-shadow: none !important; }
.summary-row { display: flex; justify-content: space-between; padding: .5rem 0; }
.total-row { border-top: 1px solid var(--ah-border); margin-top: .5rem; padding-top: .9rem; font-size: 1.15rem; font-weight: 800; }
.admin-card { background: var(--ah-surface); }
@media (max-width: 767px) { .summary-card .btn-ah-gold { position: sticky; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); } }


/* ===== Shop layout ===== */
.ah-shop { display: grid; gap: 1.25rem; }
@media (min-width: 992px) { .ah-shop { grid-template-columns: 280px minmax(0, 1fr); gap: 2rem; align-items: start; } .ah-filters { position: sticky; top: 90px; } }
.ah-filters__box { background: var(--ah-surface); border: 1px solid var(--ah-border); border-radius: var(--ah-radius-lg); padding: 1rem; }
.ah-filters__box summary { font-weight: 800; cursor: pointer; margin-bottom: .75rem; list-style: none; }
@media (min-width: 992px) { .ah-filters__box summary { pointer-events: none; } }
.ah-filters .form-label { font-size: var(--fs-small); font-weight: 700; margin-bottom: .25rem; display: block; }
.ah-pager { display: flex; justify-content: center; gap: .5rem; margin-top: 2rem; flex-wrap: wrap; }
.ah-pager .btn-ah { width: 42px; height: 42px; padding: 0; justify-content: center; }


/* ===== Search suggestions ===== */
.ah-suggest { margin-top: .75rem; max-height: 50vh; overflow-y: auto; }
.ah-suggest__item { display: flex; align-items: center; gap: .75rem; padding: .55rem .25rem; border-bottom: 1px solid var(--ah-border); color: var(--ah-text); text-decoration: none; }
.ah-suggest__item:hover, .ah-suggest__item:focus-visible { background: var(--ah-primary-50); }
.ah-suggest__item img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; flex: none; }
.ah-suggest__item span { flex: 1; font-size: var(--fs-small); font-weight: 600; }
.ah-suggest__item b { font-size: var(--fs-small); color: var(--ah-primary); white-space: nowrap; }
.ah-suggest__empty { margin: .5rem 0 0; font-size: var(--fs-small); color: var(--ah-text-muted); }
