/* =====================================================================
   NOAH 2026 identity layer — red · white · black
   Loaded after noah-tokens.css and noah-storefront.css. The tokens re-skin
   every existing component; this file holds what tokens alone can't do:
   the new hero and brand band, button shape, section colour roles,
   product-stage cards, footer, product page persuasion blocks and motion.
   ===================================================================== */

/* ---------- 01 Base ---------- */
body.noah-store { background: #fff; }
body.noah-store ::selection { background: var(--noah-red); color: #fff; }
body.noah-store :is(h1, h2, h3, h4, h5, h6) { color: var(--noah-black); font-weight: 800; letter-spacing: -0.02em; }
[dir="rtl"] body.noah-store :is(h1, h2, h3, h4, h5, h6),
body.noah-store[dir="rtl"] :is(h1, h2, h3, h4, h5, h6) { letter-spacing: 0; }
body.noah-store a:hover { color: var(--noah-red); }
body.noah-store .text-warning, body.noah-store .star-rating i, .noah-rating i, .noah-review__stars { color: #F2A900 !important; }

/* Latin display type: the brand voice is uppercase, tight, heavy. */
.nx-display, .nx-hero__title, .nx-band__statement, .nx-hero__tag {
    font-family: var(--noah-font-display) !important;
    text-transform: uppercase; font-weight: 800; letter-spacing: -0.03em; line-height: 0.95;
}

/* Small red kicker used above section titles */
.nx-kicker {
    display: inline-flex; align-items: center; gap: 10px; margin: 0 0 var(--noah-space-5);
    font-size: var(--noah-fs-sm); font-weight: 700; color: var(--noah-red-dark);
}
.nx-kicker__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--noah-red); box-shadow: 0 0 0 5px var(--noah-red-tint); }
.noah-eyebrow { color: var(--noah-red-dark); font-weight: 700; }
.noah-eyebrow::before { background: var(--noah-red); height: 2px; opacity: 1; width: 18px; }

/* ---------- 02 Buttons ---------- */
.noah-btn, body.noah-store .btn, .noah-card__cta, .noah-newsletter__btn, .noah-bag__trigger { border-radius: var(--noah-radius-btn) !important; }
.noah-btn { font-weight: 700; letter-spacing: 0.01em; }
.noah-btn--lg { min-height: 56px; padding: 0 30px; font-size: var(--noah-fs-md); }
.noah-btn--primary { --_bg: var(--noah-red); --_bd: var(--noah-red); --_fg: #fff; }
.noah-btn--primary:hover { --_bg: var(--noah-red-dark); --_bd: var(--noah-red-dark); box-shadow: var(--noah-shadow-red); transform: translateY(-1px); }
.noah-btn--ghost { --_fg: var(--noah-black); --_bd: var(--noah-black); }
.noah-btn--ghost:hover { --_bg: var(--noah-black); --_fg: #fff; --_bd: var(--noah-black); background: var(--noah-black); }
.noah-btn--outline { --_fg: var(--noah-black); --_bd: var(--noah-black); }
.noah-btn--outline:hover { --_bg: var(--noah-black); --_fg: #fff; }
.noah-btn--light { --_bg: #fff; --_fg: var(--noah-black); --_bd: #fff; }
.nx-btn-arrow i { transition: transform var(--noah-dur) var(--noah-ease); }
.nx-btn-arrow:hover i { transform: translateX(4px); }
[dir="rtl"] .nx-btn-arrow:hover i { transform: translateX(-4px); }
body.noah-store :is(.btn--primary, .btn-primary, .btn-base):hover { box-shadow: var(--noah-shadow-red); }
body.noah-store :is(.btn-secondary, .btn--secondary, .btn-outline-secondary, .btn-light, .btn-outline-primary, .btn-outline--primary):hover { border-color: var(--noah-black) !important; color: var(--noah-black) !important; }

/* ---------- 03 Announcement + header ---------- */
.noah-announce { background: var(--noah-black); color: #fff; }
.noah-announce__brand { color: var(--noah-red); }
.noah-header { background: rgba(255, 255, 255, 0.94); }
.noah-header.is-scrolled { background: rgba(255, 255, 255, 0.98); box-shadow: 0 8px 28px -20px rgba(17, 17, 17, 0.45); border-bottom-color: var(--noah-border-soft); }
.noah-logo__img { height: 38px; max-width: 170px; }
.noah-logo__word { color: var(--noah-black); letter-spacing: 0.18em; }
.noah-nav__link { color: var(--noah-black) !important; font-weight: 600; }
.noah-nav__link:hover { background: var(--noah-gray); color: var(--noah-red) !important; }
.noah-nav__link.is-active { color: var(--noah-red) !important; }
.noah-nav__link.is-active::before { background: var(--noah-red); }
.noah-header__icon:hover { background: var(--noah-gray); color: var(--noah-red) !important; }
body.noah-store .noah-search__input { background: var(--noah-gray) !important; border-color: transparent !important; }
body.noah-store .noah-search__input:focus { background: #fff !important; border-color: var(--noah-red) !important; }
.noah-bag__icon .noah-count { background: #fff; color: var(--noah-red); box-shadow: 0 0 0 2px var(--noah-red); }
.noah-header .dropdown-item:hover, .noah-header .dropdown-item.active { background: var(--noah-gray); color: var(--noah-red); }
.noah-mega__title:hover, .noah-mega__all { background: var(--noah-gray); }
.noah-drawer__panel { background: #fff; }
.noah-drawer__link:hover { background: var(--noah-gray); }
.noah-drawer__backdrop { background: rgba(17, 17, 17, 0.5); }

/* ---------- 04 Hero ---------- */
.nx-hero { position: relative; overflow: hidden; padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(2.5rem, 1.5rem + 4vw, 5rem); background: #fff; }
.nx-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 4vw, 5rem); align-items: center; }
.nx-hero__title { margin: 0 0 var(--noah-space-6); font-size: clamp(2.6rem, 0.9rem + 4.4vw, 5rem) !important; color: var(--noah-black) !important; display: flex; flex-direction: column; gap: 0.06em; }
.nx-hero__title-accent { color: var(--noah-red); }
.nx-hero__title span { white-space: nowrap; }
[dir="rtl"] .nx-hero__title { align-items: flex-end; text-align: right; }
.nx-hero__lead { max-width: 44ch; margin: 0 0 var(--noah-space-8); font-size: var(--noah-fs-lg); color: var(--noah-text-muted); line-height: 1.7; }
.nx-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.nx-hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: var(--noah-space-10) 0 0; padding: var(--noah-space-6) 0 0; border-top: 1px solid var(--noah-border); }
.nx-hero__trust li { display: inline-flex; align-items: center; gap: 8px; font-size: var(--noah-fs-sm); font-weight: 600; color: var(--noah-black); }
.nx-hero__trust svg { width: 22px; height: 22px; fill: none; stroke: var(--noah-red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.nx-hero__media { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.nx-hero__stage {
    position: absolute; inset: 4%; border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, rgba(255,255,255,0.35), rgba(255,255,255,0) 38%),
        radial-gradient(circle at 50% 55%, var(--noah-red) 0%, var(--noah-red-dark) 100%);
    box-shadow: 0 50px 90px -40px rgba(169, 22, 39, 0.55);
}
.nx-hero__stage::after { /* studio floor reflection */
    content: ""; position: absolute; left: 18%; right: 18%; bottom: 12%; height: 10%;
    border-radius: 50%; background: rgba(17, 17, 17, 0.28); filter: blur(18px);
}
.nx-hero__product {
    position: relative; z-index: 1; width: 74%; aspect-ratio: 1 / 1; display: grid; place-items: center;
    border-radius: 28px; overflow: hidden; background: #fff;
    box-shadow: 0 40px 80px -30px rgba(17, 17, 17, 0.45);
    transform: rotate(-3deg); transition: transform 0.8s var(--noah-ease);
}
.nx-hero__product img { width: 100%; height: 100%; object-fit: cover; }
.nx-hero__media:hover .nx-hero__product { transform: rotate(0deg) scale(1.02); }
.nx-hero__banner { position: relative; z-index: 1; width: 78%; border-radius: 28px; box-shadow: var(--noah-shadow-lg); }
.nx-hero__spotlight {
    position: absolute; z-index: 2; inset-inline-start: 0; bottom: 8%; max-width: 270px;
    display: flex; flex-direction: column; gap: 4px; padding: 14px 18px;
    background: #fff; border-radius: 14px; box-shadow: var(--noah-shadow-md);
    border-inline-start: 4px solid var(--noah-red);
}
.nx-hero__spotlight-label { font-size: 11px; font-weight: 700; color: var(--noah-red-dark); }
.nx-hero__spotlight-name { font-weight: 600; color: var(--noah-black); line-height: 1.35; }
.nx-hero__spotlight-price { font-weight: 800; font-size: var(--noah-fs-lg); color: var(--noah-black); }
.nx-hero__tag {
    position: absolute; z-index: 2; top: 6%; inset-inline-end: 0; padding: 8px 14px;
    background: var(--noah-black); color: #fff; border-radius: 8px; font-size: 12px; letter-spacing: 0.08em;
}

/* Brand band */
.nx-band { background: var(--noah-black); color: #fff; }
.nx-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding-block: 26px; }
.nx-band__statement { margin: 0; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.25rem); color: #fff; }
.nx-band__statement::first-letter { color: var(--noah-red); }
.nx-band__facts { display: flex; gap: clamp(1.5rem, 1rem + 2vw, 3.5rem); margin: 0; }
.nx-band__facts div { display: flex; align-items: baseline; gap: 10px; }
.nx-band__facts dt { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); font-weight: 800; color: var(--noah-red); line-height: 1; }
.nx-band__facts dd { margin: 0; font-size: var(--noah-fs-sm); color: rgba(255,255,255,0.75); }

/* ---------- 05 Sections ---------- */
.noah-section--deep { background: var(--noah-gray); }
.noah-section--forest { background: var(--noah-black); color: #fff; }
.noah-section--forest .noah-section__lead { color: rgba(255,255,255,0.72); }
.noah-section--forest .noah-eyebrow { color: #FF6B78; }
.noah-section__title { font-weight: 800 !important; }
.noah-need { border-color: rgba(255,255,255,0.14); color: #fff !important; }
.noah-need:hover { border-color: var(--noah-red); background: rgba(229, 36, 53, 0.12); }
.noah-need__icon { background: var(--noah-red); color: #fff; }
.noah-need__count { color: rgba(255,255,255,0.65); }
.noah-category { background: var(--noah-gray); border-color: transparent; }
.noah-category:hover { background: #fff; border-color: var(--noah-border); }
.noah-category__media { background: #fff; }
.noah-why__item { background: #fff; }
.noah-why__icon { background: var(--noah-red-tint); }
.noah-faq__item { background: var(--noah-gray); }
.noah-faq__item summary::after { background: var(--noah-red); color: #fff; }
.noah-tabs__tab.is-active { background: var(--noah-black); }
.noah-campaign { background: var(--noah-black); }
.noah-campaign .noah-countdown .cz-countdown-value { color: var(--noah-red); }
.noah-dotd { background: var(--noah-gray); }

/* ---------- 06 Product card: gray studio stage ---------- */
.noah-card { border-color: transparent; background: #fff; }
.noah-card:hover { border-color: transparent; box-shadow: var(--noah-shadow-md); }
.noah-card__media { background: var(--noah-gray); border-radius: var(--noah-radius-lg); }
.noah-card__image img { mix-blend-mode: multiply; }
.noah-card__body { padding: 14px 4px 6px; }
.noah-card__title a { color: var(--noah-black) !important; }
.noah-price__current { color: var(--noah-black); font-weight: 800; }
.noah-price__old { color: var(--noah-text-subtle); }
.noah-badge, .noah-badge--sale { background: var(--noah-red); }
.noah-badge--muted { background: var(--noah-black); }
.noah-card__cta { border-color: var(--noah-black); color: var(--noah-black) !important; }
.noah-card__cta:hover { background: var(--noah-red); border-color: var(--noah-red); color: #fff !important; }
.noah-icon-btn:hover { background: var(--noah-red); border-color: var(--noah-red); }

/* ---------- 07 Footer ---------- */
.noah-footer { background: var(--noah-black); color: rgba(255,255,255,0.72); }
.noah-footer__newsletter { background: var(--noah-red); border-bottom: 0; }
.noah-footer__newsletter-text { color: rgba(255,255,255,0.85); }
.noah-newsletter { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.35); }
.noah-newsletter:focus-within { border-color: #fff; }
.noah-newsletter__input::placeholder { color: rgba(255,255,255,0.7); }
.noah-newsletter__btn { background: var(--noah-black); color: #fff; }
.noah-newsletter__btn:hover { background: #000; }
.noah-footer__tagline { color: #fff; font-weight: 700; letter-spacing: 0.04em; }
.noah-footer__contact i { color: var(--noah-red); }
.noah-social__link { border-color: rgba(255,255,255,0.22); color: #fff !important; }
.noah-social__link:hover { background: var(--noah-red); border-color: var(--noah-red); color: #fff !important; }
.noah-footer__links a:hover, .noah-footer__legal a:hover { color: var(--noah-red) !important; }

/* ---------- 08 Product details: persuasion blocks ---------- */
/* "Buy now" is the main path (one-page COD checkout) → solid red;
   "Add to cart" is secondary → black outline. */
body.noah-store .product-buy-now-button {
    background: var(--noah-red) !important; border: 1px solid var(--noah-red) !important; color: #fff !important;
    min-height: 54px !important; font-size: var(--noah-fs-md) !important; font-weight: 800 !important;
}
body.noah-store .product-buy-now-button:hover { background: var(--noah-red-dark) !important; border-color: var(--noah-red-dark) !important; box-shadow: var(--noah-shadow-red); }
body.noah-store .product-add-to-cart-button.btn--primary {
    background: #fff !important; border: 1.5px solid var(--noah-black) !important; color: var(--noah-black) !important;
    min-height: 54px !important; font-weight: 700 !important;
}
body.noah-store .product-add-to-cart-button.btn--primary:hover { background: var(--noah-black) !important; color: #fff !important; box-shadow: none; }
.noah-pd-title { font-weight: 800 !important; color: var(--noah-black) !important; letter-spacing: -0.01em; }
.noah-pd .discounted_unit_price, .noah-pd .product-details-chosen-price-amount { color: var(--noah-black) !important; font-weight: 800; }
.noah-pd-gallery .cz-preview-item, .noah-pd-gallery .product-preview-item { background: var(--noah-gray); border-radius: var(--noah-radius-lg); }
.nx-pd-assure { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; padding: 0; }
.nx-pd-assure li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--noah-gray); font-size: var(--noah-fs-sm); font-weight: 600; color: var(--noah-black); line-height: 1.35; }
.nx-pd-assure svg { width: 22px; height: 22px; fill: none; stroke: var(--noah-red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 575px) { .nx-pd-assure { grid-template-columns: 1fr; } .nx-pd-assure li { flex-direction: row; align-items: center; } }

/* ---------- 09 Forms & misc ---------- */
body.noah-store :is(.form-control, .custom-select):focus { border-color: var(--noah-red) !important; }
body.noah-store :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--noah-red); }

/* ---------- 10 Motion: reveal on scroll (JS adds .nx-reveal / .is-in) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .nx-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--noah-ease), transform 0.7s var(--noah-ease); }
    .nx-reveal.is-in { opacity: 1; transform: none; }
    .nx-hero__title span { display: block; animation: nx-rise 0.9s var(--noah-ease) both; }
    .nx-hero__title span + span { animation-delay: 0.12s; }
    .nx-hero__product { animation: nx-pop 1s var(--noah-ease) 0.15s both; }
    @keyframes nx-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
    /* animates `scale`, not `transform`, so the hover tilt still works afterwards */
    @keyframes nx-pop { from { opacity: 0; scale: 0.94; } to { opacity: 1; scale: 1; } }
}

/* ---------- 11 Responsive ---------- */
@media (max-width: 991px) {
    .nx-hero__grid { grid-template-columns: 1fr; }
    .nx-hero__media { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 575px) {
    .nx-hero { padding-top: 1.25rem; }
    .nx-hero__ctas .noah-btn { flex: 1 1 100%; }
    .nx-hero__trust { gap: 10px 16px; margin-top: var(--noah-space-8); }
    .nx-hero__spotlight { max-width: 220px; bottom: 2%; padding: 10px 14px; }
    .nx-hero__tag { font-size: 10px; }
    .nx-band__inner { justify-content: center; text-align: center; }
    .nx-band__facts { width: 100%; justify-content: space-around; }
    .nx-band__facts div { flex-direction: column; align-items: center; gap: 4px; }
}

/* Product page button group: beat the legacy `.noah-pd-info .__btn-grp .btn` rules */
body.noah-store .noah-pd-info .__btn-grp .btn.product-buy-now-button,
body.noah-store .noah-pd-info .string-limit.product-buy-now-button {
    background: var(--noah-red) !important; border-color: var(--noah-red) !important; color: #fff !important;
}
body.noah-store .noah-pd-info .__btn-grp .btn.product-buy-now-button:hover { background: var(--noah-red-dark) !important; border-color: var(--noah-red-dark) !important; }
body.noah-store .noah-pd-info .__btn-grp .btn.product-add-to-cart-button {
    background: #fff !important; border: 1.5px solid var(--noah-black) !important; color: var(--noah-black) !important;
}
body.noah-store .noah-pd-info .__btn-grp .btn.product-add-to-cart-button:hover { background: var(--noah-black) !important; color: #fff !important; }

/* ---------- 12 Offer strip + countdown (homepage, while an offer runs) ---------- */
.nx-offer { background: var(--noah-red); color: #fff; }
.nx-offer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: 22px; }
.nx-offer__tag { display: inline-block; background: var(--noah-black); color: #fff; border-radius: 999px; padding: 3px 14px; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.nx-offer__title { margin: 0; font-size: clamp(1.1rem, 0.85rem + 1vw, 1.6rem); font-weight: 800; color: #fff; }
.nx-offer__timer { display: flex; gap: 8px; }
.nx-offer__timer span { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 8px 6px; border-radius: 12px; background: rgba(0, 0, 0, 0.2); }
.nx-offer__timer b { font-size: 1.6rem; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.nx-offer__timer small { font-size: 11px; opacity: 0.85; margin-top: 4px; }
.nx-offer .noah-btn--light { color: var(--noah-red) !important; }
.nx-offer .noah-btn--light:hover { background: var(--noah-black); color: #fff !important; border-color: var(--noah-black); }
@media (max-width: 767px) {
    .nx-offer__inner { justify-content: center; text-align: center; }
    .nx-offer__timer span { min-width: 56px; }
    .nx-offer .noah-btn { width: 100%; }
}
/* Promo banners: 16:9 artwork, lift on hover */
.noah-promo { border-radius: var(--noah-radius-lg); box-shadow: var(--noah-shadow-sm); transition: transform var(--noah-dur) var(--noah-ease), box-shadow var(--noah-dur) var(--noah-ease); }
.noah-promo:hover { transform: translateY(-3px); box-shadow: var(--noah-shadow-md); }
.noah-promo-grid .noah-promo { aspect-ratio: 16 / 9; }
