/* ==========================================================================
   Al Hamim storefront — theme.css
   Spec: docs/design.md

   webflow.css and custom.css are the previous alhamim.qa stylesheets and are
   left as they were. This file holds everything added for the Laravel app:
     1. tokens
     2. rules the old site kept inline in its templates
     3. replacements for what Webflow's JavaScript used to do (reveal, marquee,
        tabs, slider, accordion, mobile menu)
     4. components the old site never styled: forms, cart, checkout, account
   New rules use logical properties so Arabic (RTL) needs no overrides.
   ========================================================================== */

/* ---------- 1. Tokens --------------------------------------------------- */
:root {
    --ah-bg: #fbf8f1;
    --ah-ink: #000;
    --ah-ink-soft: #545454;
    --ah-ink-faint: #8a8a8a;
    --ah-line: #e6e6e6;
    --ah-surface: #fff;
    --ah-tan: #c89564;
    --ah-gold: #d19f2a;
    --ah-gold-light: #e8ba4f;
    --ah-gold-deep: #ab801a;
    --ah-whatsapp: #25d366;
    --ah-sale: #ff385c;
    --ah-good: #1f7a45;
    --ah-good-bg: #e3f3e8;
    --ah-warn: #8a5a00;
    --ah-warn-bg: #fbefd5;
    --ah-bad: #a12a22;
    --ah-bad-bg: #f9e1df;
    --ah-info: #1f5fa8;
    --ah-info-bg: #e2edf9;
    --ah-radius: 4px;
    --ah-header-space: clamp(110px, 9.5vw, 170px); /* room for the floating header on pages without a hero */
}

/* ---------- 2. Carried over from the old templates' inline styles ------- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}


.whatsapp-float:hover {
    background-color: #128C7E;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* Pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    animation: none;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* Sticky Header Styles - preserve original positioning */
.sticky-header {
    z-index: 1000;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* When scrolled, make header fixed but maintain original width/alignment */
/* Mobile: match original mobile positioning (top: 20px, left: 20px, right: 20px) */
.sticky-header.is-sticky {
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    right: 20px !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Desktop: maintain original desktop positioning (top: 1.875vw, left: 4.167vw, right: 4.167vw) */
@media (min-width: 768px) {
    .sticky-header.is-sticky {
        top: 1.875vw !important;
        left: 4.167vw !important;
        right: 4.167vw !important;
        width: auto !important;
    }
}

/* Hide header when scrolling down */
.sticky-header.header-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Show header when scrolling up */
.sticky-header.header-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* At top of page, header should be in normal position (not fixed) */
.sticky-header.at-top {
    position: absolute !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}


.best-seller-badge {
    position: absolute;
    top: 15px;
    inset-inline-end: 15px;
    background-color: var(--ah-sale);
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 4;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}
.product-post { position: relative; }
.product-post .product-tag { z-index: 3; }

.footer-follow-address-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(0deg, var(--ah-gold) 0%, var(--ah-gold-light) 100%);
}
.footer-follow-us-block,
.footer-address-block { flex: 1; min-width: 200px; }
.footer-address-block { text-align: right; } /* as on the old site: right-aligned in both languages */
.footer-follow-title { color: #fff; font-size: 20px; font-weight: 600; margin: 0 0 15px; }
.footer-social-links-inline { display: flex; gap: 15px; flex-wrap: wrap; }
.footer-social-link { display: inline-block; transition: transform 0.3s ease; }
.footer-social-link:hover { transform: scale(1.1); }
.footer-social-link svg { display: block; width: 40px; height: 40px; }
.footer-address-text { color: #fff; font-size: 17px; line-height: 1.6; }
.footer-address-text strong { color: #fff; }
.footer-title {
    background: linear-gradient(12deg, var(--ah-gold-deep), #e6ce92);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header: keep icon colours white on the dark pill */
.header-nav-icon,
.header-cart-button,
.header-search-wrap { color: #fff; }
.ah-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}
.ah-icon-button svg { width: 22px; height: 22px; }
.header-cart-icon { width: 24px; height: 24px; }
.header-search-box.is-open { display: flex; }
.header-search-box { inset-inline-end: 0; z-index: 20; }
.header-menu-button { border: 0; background: transparent; cursor: pointer; }

/* Cart modal: moved to <body> by front.js so it is never trapped inside the moving header */
#cart-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}
#cart-modal .header-cart-footer { display: flex; flex-direction: column; min-height: 0; flex: 1; }
#cart-modal .header-cart-default { display: flex; flex-direction: column; min-height: 0; }
#cart-modal .cart-footer { padding: 20px 24px 24px; border-top: 1px solid var(--ah-line); }
#cart-modal .header-cart-line-item { display: flex; justify-content: space-between; }
#cart-modal .header-cart-name { text-decoration: none; display: block; }
.header-cart-trash { background: none; border: 0; padding: 0; cursor: pointer; text-align: start; align-self: flex-start; font-family: inherit; }
.header-cart-qty { font-size: 14px; color: var(--ah-ink-soft); white-space: nowrap; }
.ah-link-quiet { display: block; margin-top: 12px; text-align: center; color: var(--ah-ink-soft); text-decoration: underline; font-size: 14px; }
.ah-link-quiet:hover { color: var(--ah-ink); }

/* ---------- 3. Replacements for Webflow's JavaScript -------------------- */

/* Scroll reveal (was Webflow interactions). Only hides content when JS is running. */
.js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Ribbon marquee (was a Webflow interaction). Each half slides by its own width, in the reading direction. */
@keyframes ah-ribbon-ltr { to { transform: translate3d(-100%, 0, 0); } }
@keyframes ah-ribbon-rtl { to { transform: translate3d(100%, 0, 0); } }
.ribbon-section { overflow: hidden; }
.ribbon-marquee { animation: ah-ribbon-ltr 60s linear infinite; }
html[dir="rtl"] .ribbon-marquee { animation-name: ah-ribbon-rtl; }

/* Tabs */
.w-tab-pane { display: none; }
.w-tab-pane.w--tab-active { display: block; }
.home-product-tab-link { cursor: pointer; border: 0; }

/* Lookbook slider on small screens (was w-slider): scroll-snap */
.lookbook-slider.w-slider { height: auto; background: transparent; }
.lookbook-slider .lookbook-mask {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    white-space: normal;
    height: auto;
    direction: ltr;
}
.lookbook-slider .lookbook-mask::-webkit-scrollbar { display: none; }
.lookbook-slider .lookbook-slide { flex: 0 0 100%; scroll-snap-align: center; position: relative; height: auto; }
.lookbook-slider .lookbook-slide .lookbook-image { width: 100%; display: block; }
.lookbook-slider .lookbook-slide-nav { position: static; display: flex; justify-content: center; gap: 8px; padding-top: 16px; height: auto; }
.ah-slider-dot { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: #d9d9d9; cursor: pointer; }
.ah-slider-dot.is-active { background: #000; }
.lookbook-name h5 { margin: 0; }

/* FAQ accordion (was w-dropdown) */
.faq-question-wrapper { display: block; width: 100%; }
.faq-question-block { cursor: pointer; width: 100%; background: none; border: 0; text-align: start; font-family: inherit; color: #222; }
.faq-question-wrapper .faq-answer-block {
    display: block;
    position: static;
    height: 0;
    overflow: hidden;
    background: transparent;
    transition: height 0.3s ease;
}
/* The "+" is two strokes: a horizontal bar that always shows and a vertical one that goes away when open */
.faq-question-icon { position: relative; flex: none; }
.faq-question-icon .plus { transition: opacity 0.2s ease, transform 0.2s ease; }
.faq-question-wrapper.is-open .faq-question-icon .plus { opacity: 0; transform: rotate(90deg); }

/* About: the story lights up word by word as it scrolls (was a Webflow interaction) */
.about-except-wrap { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 0.3em; }
.about-except { color: #b0b0b0; transition: color 0.4s ease; }
.about-except.is-lit { color: #000; }
.overview-number-wrap { direction: ltr; }

/* ---------- 4. Components added for this app ---------------------------- */

/* Product card caption under the image */
.ah-product-name {
    margin-top: 10px;
    color: #000;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-decoration: none;
    display: block;
}
.ah-product-price { color: #000; font-size: 15px; font-weight: 700; }
.ah-product-price s { color: gray; font-weight: 500; margin-inline-start: 5px; }
.product-list:not(.for-home) .ah-product-name { font-size: 13px; }
.product-list:not(.for-home) .ah-product-price { font-size: 18px; }
.product-image-block { display: block; aspect-ratio: 5 / 4; overflow: hidden; background: #f0ece2; }
.product-image-block .product-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.w-dyn-empty { grid-column: 1 / -1; background: transparent; text-align: center; color: var(--ah-ink-soft); padding: 40px 10px; }

/* Pages without a hero start below the floating header */
.ah-page { padding-top: var(--ah-header-space); padding-bottom: 80px; }
.ah-container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
.ah-container--narrow { max-width: 560px; }
.ah-container--medium { max-width: 880px; }
.ah-page-title { font-size: clamp(30px, 3.4vw, 54px); font-weight: 700; line-height: 1.2; margin: 0 0 10px; text-align: center; color: #000; }
.ah-page-lead { text-align: center; color: var(--ah-ink-soft); margin: 0 auto 40px; max-width: 640px; }
.ah-section-title { font-size: 22px; font-weight: 700; margin: 0 0 18px; color: #000; }

.ah-card { background: var(--ah-surface); border-radius: var(--ah-radius); padding: clamp(20px, 3vw, 40px); }
.ah-card + .ah-card { margin-top: 20px; }
.ah-card--flush { padding: 0; overflow: hidden; }

/* Buttons: the old site's black bar with an arrow, plus quiet variants */
.ah-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 28px;
    border: 1px solid #000;
    border-radius: var(--ah-radius);
    background: #000;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}
.ah-btn:hover { background: #333; border-color: #333; color: #fff; }
.ah-btn svg { width: 20px; height: 17px; flex: none; }
html[dir="rtl"] .ah-btn svg.button-icon,
html[dir="rtl"] .button .button-icon { transform: scaleX(-1); }
.ah-btn--block { display: flex; width: 100%; }
.ah-btn--outline { background: transparent; color: #000; }
.ah-btn--outline:hover { background: #000; color: #fff; }
.ah-btn--whatsapp { background: var(--ah-whatsapp); border-color: var(--ah-whatsapp); color: #fff; }
.ah-btn--whatsapp:hover { background: #128c7e; border-color: #128c7e; }
.ah-btn--small { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.ah-btn--danger { background: transparent; border-color: var(--ah-bad); color: var(--ah-bad); }
.ah-btn--danger:hover { background: var(--ah-bad); border-color: var(--ah-bad); color: #fff; }
.ah-btn[disabled] { opacity: 0.6; cursor: default; }
.ah-link { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.ah-link:hover { color: var(--ah-tan); }

/* Forms: underlined fields like the old contact form */
.ah-form { display: grid; gap: 22px; }
.ah-form-row { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ah-field { display: flex; flex-direction: column; gap: 6px; }
.ah-label { font-size: 14px; font-weight: 500; color: var(--ah-ink-soft); margin: 0; }
.ah-input,
.ah-select,
.ah-textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid #8a8a8a;
    border-radius: 0;
    background: transparent;
    color: #000;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
}
.ah-select { padding-inline-end: 24px; cursor: pointer; }
.ah-textarea { min-height: 110px; resize: vertical; }
.ah-input::placeholder,
.ah-textarea::placeholder { color: var(--ah-ink-faint); }
.ah-input:focus,
.ah-select:focus,
.ah-textarea:focus { outline: none; border-bottom-color: #000; box-shadow: 0 1px 0 #000; }
.ah-input--boxed,
.ah-select--boxed { padding: 10px 14px; border: 1px solid #ddd; border-radius: var(--ah-radius); background: #fff; }
.ah-input.is-invalid,
.ah-textarea.is-invalid,
.ah-select.is-invalid { border-bottom-color: var(--ah-bad); }
.ah-error { color: var(--ah-bad); font-size: 13px; }
.ah-hint { color: var(--ah-ink-soft); font-size: 13px; }
.ah-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.ah-check input { width: 18px; height: 18px; accent-color: #000; margin: 0; }
.ah-radio-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.ah-radio-card { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid #ddd; border-radius: var(--ah-radius); cursor: pointer; background: #fff; }
.ah-radio-card:has(input:checked) { border-color: #000; box-shadow: inset 0 0 0 1px #000; }
.ah-radio-card input { accent-color: #000; margin: 0; }

/* Focus ring for keyboard users */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input[type="submit"]:focus-visible,
[role="button"]:focus-visible { outline: 2px solid var(--ah-tan); outline-offset: 3px; }

/* Alerts and toasts */
.ah-alert { padding: 14px 16px; border-radius: var(--ah-radius); font-size: 15px; margin-bottom: 20px; }
.ah-alert--success { background: var(--ah-good-bg); color: var(--ah-good); }
.ah-alert--error { background: var(--ah-bad-bg); color: var(--ah-bad); }
.ah-alert--info { background: #f3efe4; color: #000; }
.ah-alert ul { margin: 6px 0 0; padding-inline-start: 18px; }
/* Bottom-left: clear of the header icons (top) and the WhatsApp button (bottom-right) */
.ah-toasts { position: fixed; bottom: 24px; left: 24px; z-index: 10001; display: grid; gap: 10px; max-width: min(360px, calc(100vw - 40px)); }
.ah-toast { padding: 14px 18px; border-radius: 6px; color: #fff; font-size: 15px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); animation: ah-toast-in 0.3s ease; }
.ah-toast--success { background: #10b981; }
.ah-toast--error { background: var(--ah-bad); }
.ah-toast.is-leaving { opacity: 0; transition: opacity 0.4s ease; }
@keyframes ah-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Status pills */
.ah-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; background: #eee; color: #333; white-space: nowrap; }
.ah-pill--pending { background: var(--ah-warn-bg); color: var(--ah-warn); }
.ah-pill--confirmed { background: var(--ah-info-bg); color: var(--ah-info); }
.ah-pill--processing { background: #e0f1f0; color: #14635d; }
.ah-pill--delivered { background: var(--ah-good-bg); color: var(--ah-good); }
.ah-pill--cancelled { background: var(--ah-bad-bg); color: var(--ah-bad); }

/* Tables */
.ah-table-wrap { overflow-x: auto; }
.ah-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ah-table th { text-align: start; font-size: 13px; font-weight: 500; color: var(--ah-ink-soft); padding: 12px 14px; border-bottom: 1px solid #000; white-space: nowrap; }
.ah-table td { padding: 14px; border-bottom: 1px solid var(--ah-line); vertical-align: middle; }
.ah-table tr:last-child td { border-bottom: 0; }
.ah-num { text-align: end !important; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Summary lists (cart, checkout, order) */
.ah-summary { display: grid; gap: 12px; margin: 0; }
.ah-summary-row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.ah-summary-row dt { font-weight: 400; color: var(--ah-ink-soft); }
.ah-summary-row dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.ah-summary-row--total { padding-top: 14px; border-top: 1px solid #000; font-size: 18px; }
.ah-summary-row--total dt,
.ah-summary-row--total dd { font-weight: 700; color: #000; }
.ah-good-text { color: var(--ah-good); }

/* Two-column layouts */
.ah-split { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
.ah-split--account { grid-template-columns: 260px minmax(0, 1fr); }
.ah-sticky { position: sticky; top: 110px; }
@media (max-width: 991px) {
    .ah-split,
    .ah-split--account { grid-template-columns: minmax(0, 1fr); }
    .ah-sticky { position: static; }
}

/* Cart */
.ah-cart-item { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--ah-line); }
.ah-cart-item:last-child { border-bottom: 0; }
.ah-cart-item img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--ah-radius); background: #f0ece2; }
.ah-cart-item-name { font-weight: 500; font-size: 17px; color: #000; text-decoration: none; }
.ah-cart-item-meta { color: var(--ah-ink-soft); font-size: 14px; }
.ah-cart-item-end { display: grid; gap: 8px; justify-items: end; }
.ah-qty { display: inline-flex; align-items: center; border: 1px solid #ddd; border-radius: var(--ah-radius); background: #fff; }
.ah-qty button { width: 36px; height: 36px; border: 0; background: none; font-size: 18px; cursor: pointer; color: #000; }
.ah-qty button:hover { background: #f3efe4; }
.ah-qty span,
.ah-qty input { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; border: 0; background: none; font: inherit; }
.ah-text-button { background: none; border: 0; padding: 0; color: var(--ah-tan); cursor: pointer; font-family: inherit; font-size: 14px; text-decoration: underline; }
.ah-text-button:hover { color: #000; }
.ah-coupon { display: flex; gap: 8px; }
.ah-coupon .ah-input { flex: 1; }
@media (max-width: 560px) {
    .ah-cart-item { grid-template-columns: 64px minmax(0, 1fr); }
    .ah-cart-item img { width: 64px; height: 64px; }
    .ah-cart-item-end { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; justify-items: start; }
}

/* Empty state */
.ah-empty { text-align: center; padding: 60px 20px; color: var(--ah-ink-soft); }
.ah-empty-title { font-size: 22px; font-weight: 700; color: #000; margin: 0 0 8px; }
.ah-empty .ah-btn { margin-top: 20px; }

/* Account */
.ah-account-nav { display: grid; gap: 4px; background: #000; border-radius: var(--ah-radius); padding: 20px; }
.ah-account-nav a,
.ah-account-nav button { display: block; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.25); background: none; color: #fff; text-align: center; text-decoration: none; font-family: inherit; font-size: 16px; cursor: pointer; }
.ah-account-nav a:hover,
.ah-account-nav button:hover { color: var(--ah-tan); }
.ah-account-nav a.is-active { background: var(--ah-tan); border-bottom-color: transparent; color: #fff; }
.ah-account-nav form { margin: 0; }
.ah-stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 20px; }
.ah-stat { background: #fff; border-radius: var(--ah-radius); padding: 22px; text-decoration: none; color: #000; }
.ah-stat-figure { font-size: 34px; font-weight: 700; line-height: 1.1; }
.ah-stat-label { color: var(--ah-ink-soft); font-size: 14px; }
.ah-address-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ah-address { background: #fff; border-radius: var(--ah-radius); padding: 20px; display: grid; gap: 6px; font-size: 15px; }
.ah-address-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.ah-address-actions form { margin: 0; }
.ah-row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ah-row-between .ah-section-title { margin: 0; }
.ah-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 0; font-size: 15px; }
.ah-dl dt { color: var(--ah-ink-soft); font-weight: 400; }
.ah-dl dd { margin: 0; }

/* Category listing. The old page sat 15px wider and lower than the other pages and centred its title. */
.shop-section { margin-inline: -15px; margin-top: 15px; }
.shop-title { text-align: center; }
@media (max-width: 767px) { .shop-section { margin-inline: 0; } }

/* Category listing: the black box holds categories, then filters */
.shop-tabs-menu .ah-filter-title { color: #fff; font-size: 14px; font-weight: 700; margin: 26px 0 10px; text-align: center; opacity: 0.75; }
.ah-filters { display: grid; gap: 10px; color: #fff; width: 100%; }
.ah-filters .ah-check { color: #fff; font-size: 14px; }
.ah-filters .ah-check input { accent-color: var(--ah-tan); }
.ah-filters .ah-input { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.5); min-height: 40px; font-size: 14px; }
.ah-filters .ah-input::placeholder { color: rgba(255, 255, 255, 0.6); }
.ah-filters .ah-input:focus { border-bottom-color: #fff; box-shadow: 0 1px 0 #fff; }
.ah-price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ah-swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.6); display: inline-block; }
.ah-filters .ah-btn { border-color: #fff; min-height: 44px; }
.ah-filters .ah-btn:hover { background: var(--ah-tan); border-color: var(--ah-tan); }
.ah-filters .ah-link-quiet { color: rgba(255, 255, 255, 0.75); margin-top: 0; }
.ah-filters .ah-link-quiet:hover { color: #fff; }
.ah-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; font-size: 14px; color: var(--ah-ink-soft); }
.ah-list-toolbar .ah-select { width: auto; min-height: 40px; font-size: 14px; }

/* Pagination */
.ah-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 50px; }
.ah-pagination a,
.ah-pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #000; border-radius: var(--ah-radius); color: #000; text-decoration: none; font-size: 15px; font-variant-numeric: tabular-nums; }
.ah-pagination a:hover { background: #000; color: #fff; }
.ah-pagination .is-current { background: #000; color: #fff; }
.ah-pagination .is-disabled { opacity: 0.35; }

/* Product page pieces the old site styled inline */
.product-details-section { margin-top: 100px; }
.zoomable-image { transition: transform 0.3s ease; cursor: zoom-in; }
.zoomable-image:hover { transform: scale(1.02); }
.product-image-thumbnails { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.product-thumbnail { width: 80px; height: 80px; object-fit: cover; border: 2px solid transparent; border-radius: 4px; cursor: pointer; opacity: 0.7; transition: all 0.3s ease; padding: 0; background: none; }
.product-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 2px; }
.product-thumbnail:hover { opacity: 1; transform: scale(1.05); }
.product-thumbnail.active { opacity: 1; border-color: #000; }
.product-details-price s { color: gray; font-size: 0.8em; font-weight: 500; margin-inline-start: 6px; }
.ah-variation { margin-bottom: 20px; }
.ah-variation label { display: block; margin-bottom: 8px; font-weight: 500; color: #000; }
.ah-variation select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; background-color: #fff; cursor: pointer; font-family: inherit; color: #000; }
.product-details-add-to-cart .button { width: 100%; display: flex; cursor: pointer; border: 0; text-decoration: none; }
.product-details-add-to-cart .cart-button-whatsapp { background-color: var(--ah-whatsapp); margin-bottom: 12px; }
.product-details-add-to-cart .cart-button-whatsapp .button-text,
.product-details-add-to-cart .cart-button-whatsapp .button-icon { color: #fff; }
.product-details-add-to-cart .cart-button { background: #000; color: #fff; }
.ah-stock-note { font-size: 14px; color: var(--ah-bad); margin: 0 0 12px; }

.ah-zoom { position: fixed; inset: 0; z-index: 10002; background: rgba(0, 0, 0, 0.95); display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.ah-zoom img { max-width: 90%; max-height: 90%; object-fit: contain; }
.ah-zoom button { position: absolute; background: rgba(255, 255, 255, 0.2); border: 0; color: #fff; cursor: pointer; width: 50px; height: 50px; border-radius: 50%; font-size: 28px; line-height: 1; display: grid; place-items: center; }
.ah-zoom button:hover { background: rgba(255, 255, 255, 0.4); }
.ah-zoom-close { top: 20px; inset-inline-end: 30px; }
.ah-zoom-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.ah-zoom-next { right: 20px; top: 50%; transform: translateY(-50%); }
[x-cloak] { display: none !important; }

/* Lookbook page */
.ah-gallery { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ah-gallery-item { position: relative; display: block; padding: 0; border: 0; background: #f0ece2; cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 5; }
.ah-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.ah-gallery-item:hover img { transform: scale(1.04); }
.ah-gallery-caption { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; background: linear-gradient(180deg, transparent, #000 90%); color: #fff; font-weight: 700; text-align: start; }

/* CMS page */
.ah-prose { font-size: 17px; line-height: 1.8; color: #000; }
.ah-prose p { margin: 0 0 1.2em; }

/* Contact map */
.contact-map-wrap { padding: 40px 0; }
.contact-map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }
.contact-form-button { position: relative; }
.contact-form-button .contact-submit-button { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; z-index: 2; }
.contact-form-button:focus-within .contact-button { outline: 2px solid var(--ah-tan); outline-offset: 3px; }
.contact-visit-except { white-space: pre-line; }

/* Auth pages */
.ah-auth { display: grid; gap: 30px; }
.ah-auth-switch { text-align: center; font-size: 15px; color: var(--ah-ink-soft); margin: 0; }

/* The hidden attribute must win over component display rules */
[hidden] { display: none !important; }

/* Utilities */
.ah-center { text-align: center; }
.ah-muted { color: var(--ah-ink-soft); }
.ah-stack { display: grid; gap: 14px; }
.ah-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ah-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.ah-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* An <h1> that looks like the h2/h3/h4 it replaced (each page needs one h1 for search engines).
   webflow.css sizes headings by tag, so these repeat its h2/h3/h4 rules, breakpoints included.
   :where() keeps the weight of a bare tag selector, so the page's own class rules still win. */
h1:where(.ah-as-h2) { font-size: 42px; font-weight: 700; line-height: 130%; }
h1:where(.ah-as-h3) { font-size: 34px; font-weight: 700; line-height: 140%; }
h1:where(.ah-as-h4) { font-size: 24px; font-weight: 500; line-height: 140%; }
@media screen and (min-width: 1440px) {
    h1:where(.ah-as-h2) { font-size: 52px; }
    h1:where(.ah-as-h3) { font-size: 42px; }
    h1:where(.ah-as-h4) { font-size: 32px; }
}
@media screen and (min-width: 1920px) {
    h1:where(.ah-as-h2) { font-size: 72px; }
    h1:where(.ah-as-h3) { font-size: 58px; }
    h1:where(.ah-as-h4) { font-size: 42px; }
}
@media screen and (max-width: 991px) {
    h1:where(.ah-as-h2) { font-size: 36px; }
    h1:where(.ah-as-h3) { font-size: 30px; }
    h1:where(.ah-as-h4) { font-size: 24px; }
}
@media screen and (max-width: 767px) {
    h1:where(.ah-as-h2) { font-size: 32px; }
    h1:where(.ah-as-h3) { font-size: 26px; }
    h1:where(.ah-as-h4) { font-size: 22px; }
}

/* ---------- 5. Preferences ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .ribbon-marquee,
    .whatsapp-float { animation: none; }
    .about-except { color: #000; transition: none; }
}

/* ==========================================================================
   Mobile hardening
   ========================================================================== */
/* 1fr tracks cannot shrink below their content, so wide images pushed the second column off screen */
.product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: minmax(0, 1fr); }
.product-list.for-home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-list.for-trending { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media screen and (max-width: 1150px) { .product-list.for-trending { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media screen and (max-width: 991px) { .product-list.for-home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media screen and (max-width: 767px) {
    .product-list, .product-list.for-home, .product-list.for-trending { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
img { max-width: 100%; }

/* Category filters: collapsible on phones, always open on desktop */
.ah-filter-panel { width: 100%; }
.ah-filter-summary { list-style: none; cursor: pointer; color: #fff; font-weight: 700; text-align: center; padding: 14px 0; min-height: 44px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: var(--ah-radius); margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ah-filter-summary::-webkit-details-marker { display: none; }
.ah-filter-summary::after { content: ""; width: 8px; height: 8px; border-inline-end: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); transition: transform .2s; margin-top: -4px; }
.ah-filter-panel[open] > .ah-filter-summary::after { transform: rotate(-135deg); margin-top: 4px; }
.ah-filter-panel[open] > .ah-filter-summary { margin-bottom: 4px; }
@media (min-width: 992px) { .ah-filter-summary { display: none; } }

/* Tables turn into stacked cards on phones */
@media (max-width: 640px) {
    .ah-table-wrap { overflow: visible; }
    .ah-table, .ah-table tbody, .ah-table tr, .ah-table td { display: block; width: 100%; }
    .ah-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .ah-table tr { padding: 14px 0; border-bottom: 1px solid var(--ah-line); }
    .ah-table tr:last-child { border-bottom: 0; }
    .ah-table td { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 6px 0 !important; border: 0 !important; text-align: end; }
    .ah-table td[data-label]::before { content: attr(data-label); color: var(--ah-ink-soft); font-size: 13px; text-align: start; flex: none; }
    .ah-table td.ah-num { text-align: end; }
    .ah-table td:not([data-label]) { justify-content: flex-end; }
}

/* Account menu: one scrollable row of tabs instead of a tall black block */
@media (max-width: 991px) {
    .ah-account-nav { display: flex; gap: 6px; padding: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .ah-account-nav::-webkit-scrollbar { display: none; }
    .ah-account-nav a, .ah-account-nav button { width: auto; white-space: nowrap; padding: 10px 16px; border: 0; border-radius: var(--ah-radius); font-size: 15px; min-height: 44px; }
    .ah-account-nav form { flex: none; }
}

@media screen and (max-width: 767px) {
    /* Product cards: same type scale on every listing */
    .product-list, .product-list.for-home, .product-list.for-trending { grid-column-gap: 12px; grid-row-gap: 24px; }
    .ah-product-name, .product-list:not(.for-home) .ah-product-name { font-size: 15px; line-height: 1.35; margin-top: 8px; }
    .ah-product-price, .product-list:not(.for-home) .ah-product-price { font-size: 14px; }
    .ah-product-price s { display: inline-block; font-size: 12px; }
    .best-seller-badge, .product-tag { font-size: 11px; }

    /* Category box: tighter, less tall */
    .shop-tabs-menu { max-width: 100%; margin-right: 0; padding: 16px 20px 20px; }
    .shop-tab-link { height: 44px; font-size: 15px; }
    .ah-filters .ah-check { min-height: 40px; }

    /* Footer strip: last photo no longer orphaned; WhatsApp button clears the copyright line */
    .footer-social-card-block > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .footer-section { padding-bottom: 70px; }
}

/* Touch targets and iOS zoom: form controls at 16px, tappable controls at least 44px */
@media (max-width: 991px) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), select, textarea { font-size: 16px; }
    .ah-btn, .button { min-height: 44px; }
    .ah-qty button { width: 44px; height: 44px; }
    .ah-icon-button { min-width: 44px; min-height: 44px; }
}

/* Product quantity stepper: wider buttons, still 50px tall in total to match the input */
@media (max-width: 991px) {
    .quantity-counter { top: 0; }
    .quantity-buttons { gap: 2px; }
    .quantity-btn { width: 48px; height: 24px; }
}

@media (max-width: 991px) {
    .ah-select, .ah-list-toolbar .ah-select, .ah-filters .ah-input { font-size: 16px; }
}

/* Summary rows: amounts never wrap; long names take the remaining space */
.ah-summary-row dd { white-space: nowrap; flex: none; }
.ah-summary-row dt { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 767px) {
    /* Footer strip: the lone fifth photo is cropped to a banner instead of a full square */
    .footer-social-card-block > :last-child:nth-child(odd) { aspect-ratio: 2 / 1; overflow: hidden; }
    .footer-social-card-block > :last-child:nth-child(odd) .footer-social-image { width: 100%; height: 100%; object-fit: cover; }
}

/* About page starts below the floating header on phones (the template set the gap inline) */
@media (max-width: 767px) { .about-section { margin-top: 100px !important; } }
.ah-summary-row > strong, .ah-summary-row > .ah-ltr { white-space: nowrap; flex: none; }
.ah-summary-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
