/*
 * AH Store — FINAL BOLD COMMERCE SYSTEM
 * Direction: Modern Beauty Commerce / high-conversion / light-only.
 * This layer intentionally replaces the previous editorial styling while preserving legacy classes.
 */
:root{
  --ah-primary:#e83d5b;
  --ah-primary-600:#cf2948;
  --ah-primary-700:#a91f39;
  --ah-primary-50:#fff0f3;
  --ah-ink:#111113;
  --ah-text:#26262a;
  --ah-muted:#707078;
  --ah-bg:#f7f7f5;
  --ah-surface:#ffffff;
  --ah-surface-2:#efefed;
  --ah-line:#e4e4e1;
  --ah-line-strong:#cfcfcb;
  --ah-success:#177a55;
  --ah-warning:#a56300;
  --ah-danger:#b4233c;
  --ah-max:1280px;
  --ah-radius-sm:10px;
  --ah-radius:16px;
  --ah-radius-lg:24px;
  --ah-radius-xl:32px;
  --ah-shadow:0 10px 30px rgba(17,17,19,.07);
  --ah-shadow-lg:0 28px 70px rgba(17,17,19,.13);
  --ah-font-ar:'Tajawal','Cairo','Segoe UI',sans-serif;
  --ah-font-display:'Cormorant Garamond','Playfair Display',Georgia,serif;
}

html{background:var(--ah-bg);scroll-behavior:smooth}
body{font-family:var(--ah-font-ar);background:var(--ah-bg);color:var(--ah-text);line-height:1.7;overflow-x:hidden}
body.ah-loading{overflow:hidden}
.ah-wrap,.ah-container{width:min(calc(100% - 36px),var(--ah-max));margin-inline:auto}
::selection{background:rgba(232,61,91,.18);color:var(--ah-ink)}

/* ================= PRELOADER ================= */
.ah-preloader{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;background:#111113;color:#fff;opacity:1;visibility:visible;transition:opacity .42s ease,visibility .42s ease}
.ah-preloader.is-done{opacity:0;visibility:hidden;pointer-events:none}
.ah-preloader__inner{width:min(280px,72vw);text-align:center}
.ah-preloader__mark{width:50px;height:50px;object-fit:contain;filter:brightness(0) invert(1);margin:0 auto 18px}
.ah-preloader__brand{font-family:var(--ah-font-display);font-size:42px;font-weight:700;line-height:1;letter-spacing:.12em}
.ah-preloader__caption{margin:9px 0 18px;color:#a7a7ad;font-size:10px;letter-spacing:.28em;text-transform:uppercase}
.ah-preloader__track{height:2px;background:#36363a;border-radius:999px;overflow:hidden}
.ah-preloader__bar{display:block;width:0;height:100%;background:var(--ah-primary);transition:width .18s ease}

/* ================= TOPBAR / NAV ================= */
.topbar{background:var(--ah-ink);color:#fff;min-height:34px;border:0;font-size:11px;letter-spacing:.01em}
.topbar-content{min-height:34px}
.topbar a{color:#fff!important;opacity:.78}
.topbar a:hover{opacity:1}
.topbar .text-gold,.topbar .text-gold i{color:#ff8296!important}
.ah-navbar{position:sticky;top:0;z-index:1030;background:rgba(255,255,255,.94);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid rgba(17,17,19,.08);box-shadow:0 6px 24px rgba(17,17,19,.045)}
.nav-container{min-height:82px;gap:28px}
.nav-brand{flex:0 0 auto}
.nav-logo-img{max-height:46px;width:auto}
.nav-links{gap:2px}
.nav-link{position:relative;padding:29px 13px!important;color:#4b4b51!important;font-size:13px;font-weight:800;letter-spacing:.01em}
.nav-link::after{height:3px!important;bottom:14px!important;background:var(--ah-primary)!important;border-radius:999px}
.nav-link:hover,.nav-link.active{color:var(--ah-ink)!important}
.nav-actions{gap:7px}
.btn-nav-action{position:relative;width:42px;height:42px;border:1px solid #e3e3e0;background:#f5f5f3;color:var(--ah-ink);border-radius:50%;box-shadow:none;transition:.2s ease}
.btn-nav-action:hover{background:#fff;border-color:#cfcfcb;color:var(--ah-primary);transform:translateY(-1px)}
.cart-counter-badge{background:var(--ah-primary)!important;border:2px solid #fff;min-width:18px;height:18px;font-size:9px}
.mobile-menu-btn{border:1px solid #e3e3e0;background:#f5f5f3;color:var(--ah-ink);border-radius:13px;width:42px;height:42px}

/* ================= BUTTONS / FORMS ================= */
.btn-ah{min-height:48px;border-radius:13px;padding:.68rem 1.15rem;font-weight:900;transition:transform .2s ease,box-shadow .2s ease,background .2s ease,border-color .2s ease;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.btn-ah:hover{transform:translateY(-2px)}
.btn-ah-gold{background:var(--ah-primary)!important;border-color:var(--ah-primary)!important;color:#fff!important;box-shadow:0 12px 26px rgba(232,61,91,.22)!important}
.btn-ah-gold:hover{background:var(--ah-primary-600)!important;box-shadow:0 16px 34px rgba(232,61,91,.28)!important}
.btn-ah-outline{background:#fff!important;border-color:#d2d2ce!important;color:var(--ah-ink)!important}
.btn-ah-outline:hover{background:#f5f5f3!important;border-color:#b9b9b4!important}
.form-control-ah,.form-select,.form-control{min-height:48px;border:1px solid var(--ah-line-strong)!important;border-radius:13px!important;background:#fff!important;color:var(--ah-text)!important;box-shadow:none!important}
.form-control-ah:focus,.form-select:focus,.form-control:focus{border-color:var(--ah-primary)!important;box-shadow:0 0 0 4px rgba(232,61,91,.10)!important}

/* ================= HOMEPAGE HERO ================= */
.ah-hero{position:relative;overflow:hidden;background:#f7f7f5;border-bottom:1px solid var(--ah-line);padding:clamp(34px,5vw,70px) 0 58px}
.ah-hero::before{content:"";position:absolute;inset:auto auto -220px -180px;width:560px;height:560px;border-radius:50%;background:rgba(232,61,91,.08);filter:blur(2px)}
.ah-hero::after{content:"AH";position:absolute;inset-inline-start:5%;top:7%;font-family:var(--ah-font-display);font-size:clamp(150px,23vw,330px);font-weight:700;line-height:1;color:rgba(17,17,19,.025);pointer-events:none}
.ah-hero__grid{position:relative;z-index:1;grid-template-columns:minmax(0,1fr) minmax(390px,.88fr)!important;gap:clamp(30px,6vw,100px)!important;align-items:center!important}
.ah-hero__eyebrow{display:inline-flex!important;align-items:center;gap:8px;padding:7px 11px!important;background:#111113!important;color:#fff!important;border:0!important;border-radius:999px!important;box-shadow:none!important;margin-bottom:18px!important;font-size:10px!important;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.ah-hero__eyebrow img{width:23px!important;height:23px!important;border-radius:6px!important;filter:brightness(0) invert(1)}
.ah-hero h1{font-size:clamp(45px,6.4vw,88px)!important;line-height:.99!important;letter-spacing:-.055em!important;max-width:790px;color:var(--ah-ink)!important;margin:0 0 18px!important;font-weight:900!important}
.ah-hero h1::first-line{color:var(--ah-ink)}
.ah-hero p{font-size:clamp(16px,1.5vw,19px);line-height:1.9;max-width:630px!important;color:#66666e!important;margin-bottom:0!important}
.ah-hero__cta{margin-top:27px}
.ah-hero__cta .btn-ah{min-height:56px;border-radius:15px;padding-inline:25px}
.ah-hero__trust{gap:9px 9px!important;margin-top:22px!important;display:flex;flex-wrap:wrap}
.ah-hero__trust li{background:#fff;border:1px solid #dededb;border-radius:999px;padding:7px 11px!important;font-size:11px!important;color:#4c4c52!important}
.ah-hero__trust li i{color:var(--ah-primary)!important}
.ah-hero__visual{position:relative;max-width:570px!important;justify-self:end;filter:none!important}
.ah-hero__visual::before{content:"";position:absolute;inset:7% 6% 5% 5%;background:#111113;border-radius:38% 38% 28% 28%;transform:rotate(5deg);box-shadow:var(--ah-shadow-lg)}
.ah-hero__visual::after{content:"NEW BEAUTY";position:absolute;top:9%;inset-inline-start:8%;color:#fff;font-size:9px;letter-spacing:.28em;font-weight:800;z-index:2;transform:rotate(5deg)}
.ah-hero__visual img{position:relative;z-index:1;width:100%;min-height:430px;border-radius:32px!important;object-fit:contain!important;background:transparent!important;mix-blend-mode:normal!important;filter:drop-shadow(0 28px 25px rgba(0,0,0,.22));transform:rotate(-2deg)}

/* ================= SECTIONS ================= */
.ah-section{padding:clamp(50px,6vw,88px) 0}
.ah-section--alt{background:#fff;border-block:1px solid var(--ah-line)}
.ah-head{margin-bottom:28px!important;align-items:end}
.ah-head h2{font-size:clamp(28px,3.1vw,42px)!important;letter-spacing:-.045em;color:var(--ah-ink);font-weight:900!important;margin:0}
.ah-head p{font-size:13px;color:var(--ah-muted);margin:.35rem 0 0}
.ah-link{display:inline-flex;align-items:center;gap:8px;padding-bottom:5px;border-bottom:2px solid #d8d8d4;color:var(--ah-ink)!important;font-size:13px;font-weight:900}
.ah-link:hover{border-color:var(--ah-primary);color:var(--ah-primary)!important;text-decoration:none}

/* ================= CATEGORIES ================= */
.ah-cats{gap:12px!important}
.ah-cat{min-height:126px;padding:22px 14px!important;border-radius:20px!important;background:#fff!important;border:1px solid var(--ah-line)!important;box-shadow:none!important;transition:.22s ease!important;color:var(--ah-ink)!important;font-weight:900}
.ah-cat i{width:50px;height:50px;display:grid;place-items:center;border-radius:15px;background:#111113;color:#fff;font-size:19px!important}
.ah-cat:hover{transform:translateY(-6px)!important;border-color:#111113!important;box-shadow:0 18px 35px rgba(17,17,19,.09)!important}

/* ================= PRODUCT CARDS ================= */
.ah-grid{gap:22px!important}
.ah-card{border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important;box-shadow:none!important;position:relative}
.ah-card__media{position:relative;border-radius:24px;overflow:hidden;background:#ededeb!important;border:1px solid #e0e0dc;box-shadow:none}
.ah-card__img{transition:transform .5s cubic-bezier(.2,.7,.2,1),filter .3s ease!important}
.ah-card:hover .ah-card__img{transform:scale(1.055)!important}
.ah-card__wish{width:42px!important;height:42px!important;top:12px!important;right:12px!important;border:0!important;background:#fff!important;color:#111!important;box-shadow:0 8px 20px rgba(17,17,19,.11)!important;z-index:3}
.ah-card__wish.active{color:var(--ah-primary)!important}
.ah-card__badges{z-index:3}
.ah-badge{border-radius:999px!important;padding:6px 9px!important;font-size:10px!important;font-weight:900;box-shadow:none!important}
.ah-badge--sale{background:var(--ah-primary)!important;color:#fff!important}
.ah-badge--best{background:#111113!important;color:#fff!important}
.ah-badge--new{background:#fff!important;color:#111!important;border:1px solid #d8d8d4}
.ah-card__body{padding:14px 2px 2px!important;gap:4px!important}
.ah-card__brand{font-size:10px!important;text-transform:uppercase;letter-spacing:.12em;color:#8a8a91!important;font-weight:800}
.ah-card__title{font-size:15px!important;line-height:1.5!important;min-height:2.9em;color:var(--ah-ink)!important;font-weight:900!important}
.ah-card__rating{font-size:11px!important;color:#66666e!important}
.ah-card__rating i{color:#f2a900!important}
.ah-card__price{margin-top:5px!important}
.ah-price{font-size:18px!important;color:var(--ah-ink)!important;font-weight:950!important}
.ah-price-old{font-size:12px!important;color:#99999f!important}
.ah-card__cta{border-radius:12px!important;min-height:42px!important;margin-top:9px!important;box-shadow:none!important;width:100%}

/* ================= WHY / REVIEWS / BRANDS ================= */
.ah-why{gap:12px!important}
.ah-why__item{border-radius:20px!important;padding:21px!important;background:#fff!important;box-shadow:none!important;border:1px solid var(--ah-line)!important;transition:.22s ease}
.ah-why__item:hover{transform:translateY(-4px);box-shadow:var(--ah-shadow)!important;border-color:#d3d3cf!important}
.ah-why__item>i{width:45px;height:45px;display:grid;place-items:center;border-radius:14px;background:#111113;color:#fff!important}
.ah-why__item h3{font-size:15px!important;color:var(--ah-ink)!important;font-weight:900}
.ah-why__item p{font-size:12px!important;color:var(--ah-muted)!important}
.ah-reviews{gap:16px!important}
.ah-review{border:1px solid var(--ah-line)!important;background:#fff!important;border-radius:20px!important;padding:22px!important;box-shadow:none!important}
.ah-review__stars i{color:#f2a900!important;font-size:12px}
.ah-review p{font-size:14px!important;color:#404047!important;line-height:1.9}
.ah-review footer{font-size:12px!important;color:#85858b!important}
.ah-brands{gap:10px!important}
.ah-brand{border:1px solid #dcdcd8!important;background:#fff!important;border-radius:999px!important;padding:10px 16px!important;color:#303036!important;font-size:12px!important;font-weight:800!important;transition:.2s ease}
.ah-brand:hover{border-color:#111113!important;background:#111113!important;color:#fff!important}

/* ================= CTA ================= */
.ah-cta{position:relative;overflow:hidden;margin-top:0!important;padding:clamp(60px,8vw,100px) 20px!important;background:#111113!important;color:#fff!important;text-align:center}
.ah-cta::before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;background:rgba(232,61,91,.2);filter:blur(50px);inset:-180px auto auto -100px}
.ah-cta h2,.ah-cta p,.ah-cta__row{position:relative;z-index:1}
.ah-cta h2{font-size:clamp(34px,5vw,64px)!important;color:#fff!important;letter-spacing:-.05em!important;font-weight:950!important}
.ah-cta p{color:#bdbdc3!important;max-width:650px;margin:8px auto 22px}
.ah-cta__row{gap:10px!important}

/* ================= SHOP / PAGE HEAD ================= */
.ah-pagehead{background:#111113!important;color:#fff;border:0!important;padding:42px 0!important}
.ah-pagehead h1{color:#fff!important;font-size:clamp(34px,5vw,58px)!important;letter-spacing:-.05em!important;font-weight:950!important}
.ah-pagehead p{color:#aaaab0!important}
.ah-shop{gap:24px!important}
@media (min-width:992px){.ah-shop{grid-template-columns:270px minmax(0,1fr);gap:28px!important}.ah-filters{position:sticky;top:100px}}
.ah-filters__box{background:#fff!important;border:1px solid var(--ah-line)!important;border-radius:20px!important;padding:18px!important;box-shadow:none!important}
.ah-filters__box summary{font-weight:900!important}
.ah-filters .form-label{font-size:11px!important;font-weight:900!important;color:#55555b}
.ah-pager{gap:7px!important}
.ah-pager .btn-ah{width:42px;height:42px;border-radius:12px}

/* ================= PRODUCT DETAIL ================= */
.ah-crumbs{background:#fff;border-bottom:1px solid var(--ah-line);padding:12px 0!important;font-size:11px!important;color:#8b8b91!important}
.ah-crumbs a{color:#55555b!important;font-weight:800}
.ah-pdp{padding:34px 0 76px!important}
.ah-pdp__grid{gap:clamp(28px,5vw,70px)!important}
.ah-gal__strip{border-radius:28px!important;background:#ededeb!important;border:1px solid #dededb!important}
.ah-gal__slide{border-radius:28px!important}
.ah-gal__thumb{border-radius:13px!important;border:1px solid #dededb!important;background:#fff!important}
.ah-gal__thumb.is-active{border-color:var(--ah-primary)!important;box-shadow:0 0 0 2px rgba(232,61,91,.12)}
.ah-pdp__brand{color:var(--ah-primary)!important;font-size:11px!important;letter-spacing:.12em;text-transform:uppercase;font-weight:900}
.ah-pdp__title{font-size:clamp(32px,4.5vw,58px)!important;line-height:1.05!important;letter-spacing:-.05em!important;color:var(--ah-ink)!important;font-weight:950!important}
.ah-pdp__rating{color:#f2a900!important}
.ah-pdp__pricebox{background:#111113!important;color:#fff!important;border:0!important;border-radius:22px!important;padding:18px!important}
.ah-pdp__price{font-size:30px!important;color:#fff!important;font-weight:950!important}
.ah-pdp__price .old-price,.ah-pdp__pricebox .ah-price-old{color:#aaa!important}
.ah-pdp__meta,.ah-delivery,.ah-acc{border-color:var(--ah-line)!important}
.ah-delivery{background:#fff!important;border-radius:20px!important;padding:18px!important}
.ah-buy__row{gap:8px!important}
.ah-buy__now,.ah-buy__cart{min-height:54px!important;border-radius:14px!important}
.ah-buy__wish{border:1px solid #d5d5d1!important;background:#fff!important;border-radius:14px!important}
.ah-variants__list{gap:8px!important}
.ah-variant{border:1px solid #d6d6d2!important;background:#fff!important;border-radius:12px!important}
.ah-variant.active{border-color:var(--ah-primary)!important;box-shadow:0 0 0 2px rgba(232,61,91,.12)!important}

/* ================= CART / CHECKOUT / EMPTY ================= */
.summary-card,.cart-container,.checkout-card{background:#fff!important;border:1px solid var(--ah-line)!important;border-radius:22px!important;box-shadow:none!important}
.summary-card{padding:20px!important}
.total-row{border-top-color:var(--ah-line)!important}
.ah-empty{max-width:560px;margin:25px auto;padding:55px 22px;background:#fff;border:1px solid var(--ah-line);border-radius:24px;box-shadow:none}
.ah-empty i{color:var(--ah-primary)!important}
.ah-fsbar{background:#fff!important;border:1px solid var(--ah-line)!important;border-radius:18px!important}
.ah-fsbar__track{background:#ecece9!important}
.ah-fsbar__track span{background:var(--ah-primary)!important}

/* ================= SEARCH ================= */
.ah-search{position:fixed!important;inset:0!important;z-index:9990!important;display:flex;align-items:flex-start;justify-content:center;padding:8vh 18px 30px!important;background:rgba(17,17,19,.72)!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.ah-search__box{position:relative;width:min(760px,100%);background:#fff!important;border:0!important;border-radius:28px!important;padding:28px!important;box-shadow:0 30px 90px rgba(0,0,0,.25)!important}
.ah-search__box h3{font-size:28px!important;font-weight:950!important;color:#111!important;margin-bottom:18px}
.ah-search__close{position:absolute;top:17px;inset-inline-end:17px;width:38px;height:38px;border-radius:50%;border:1px solid #ddd;background:#f4f4f2}
.ah-search__row{display:flex;gap:8px}
.ah-suggest{margin-top:14px!important;max-height:52vh;overflow-y:auto}
.ah-suggest__item{padding:10px!important;border-bottom:1px solid #ededeb!important;border-radius:10px!important}
.ah-suggest__item:hover,.ah-suggest__item:focus-visible{background:#faf3f5!important}

/* ================= FOOTER / MOBILE NAV ================= */
.ah-footer{background:#111113!important;color:#aaaab0!important;border-top:0!important;padding:60px 0 35px!important}
.ah-footer h4{color:#fff!important;font-weight:900!important}
.ah-footer a{color:#bcbcc2!important}
.ah-footer a:hover{color:#fff!important}
.ah-footer__logo img{filter:brightness(0) invert(1);opacity:.95}
.ah-footer__social a{background:#242428!important;border-color:#343438!important;color:#fff!important}
.ah-footer__bottom{border-color:#2e2e32!important;color:#88888f!important}
.ah-bottomnav{background:rgba(255,255,255,.96)!important;border-top:1px solid #ddd!important;box-shadow:0 -8px 25px rgba(17,17,19,.08)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.ah-bottomnav a,.ah-bottomnav button{color:#67676e!important}
.ah-bottomnav .is-active,.ah-bottomnav a:hover,.ah-bottomnav button:hover{color:var(--ah-primary)!important}

/* ================= MOTION / RESPONSIVE ================= */
@media (max-width:991px){
  .ah-wrap,.ah-container{width:min(calc(100% - 28px),var(--ah-max))}
  .nav-links{background:#fff!important;border-color:#ddd!important;box-shadow:var(--ah-shadow-lg)!important}
  .ah-hero__grid{grid-template-columns:1fr!important;text-align:center;gap:26px!important}
  .ah-hero__visual{justify-self:center;width:min(100%,520px)}
  .ah-hero__trust{justify-content:center}
  .ah-hero p{margin-inline:auto}
  .ah-hero__cta{justify-content:center}
  .ah-hero__visual img{min-height:350px}
}
@media (max-width:767px){
  .topbar{display:none}
  .nav-container{min-height:68px}
  .nav-logo-img{max-height:38px}
  .nav-actions{gap:4px}
  .btn-nav-action,.mobile-menu-btn{width:39px;height:39px}
  .ah-hero{padding:30px 0 45px}
  .ah-hero h1{font-size:clamp(43px,13vw,68px)!important}
  .ah-hero__visual::before{inset:8% 4% 5%}
  .ah-hero__visual img{min-height:290px}
  .ah-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 12px!important}
  .ah-card__media{border-radius:18px}
  .ah-card__title{font-size:13px!important}
  .ah-price{font-size:16px!important}
  .ah-card__cta{font-size:12px!important}
  .ah-section{padding:46px 0}
  .ah-head h2{font-size:28px!important}
  .ah-head{align-items:flex-start}
  .ah-head .ah-link{font-size:11px}
  .ah-search{padding:20px 12px}
  .ah-search__box{border-radius:22px!important;padding:22px 16px!important}
  .ah-search__row{flex-direction:column}
  .ah-search__row .btn-ah{width:100%}
  .ah-pdp__title{font-size:37px!important}
  .ah-pdp__pricebox{border-radius:18px!important}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
