/* Ariana Nila: page stylesheet for collection pages: hubs and PLPs (is_product_category).
   Loaded on those pages only, straight after style.css (inc/page-styles.php).
   Every rule here came out of style.css unchanged and keeps its original
   order. A "copy of style.css" rule repeats a style.css rule that followed
   the one before it there, so it still wins now that this file loads later;
   tests/Unit/PageStyles/PageStylesTest.php keeps each copy identical. */

/* ID override for hub grid — highest specificity fallback */
#an-hub-products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
}

#an-plp-products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 5px !important;
}

/* ─── Hero ────────────────────────────────── */
.an-hub-hero {
    position: relative;
    min-height: 75vh;
    background: var(--an-black) center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 0;
    margin-top: calc( -1 * (var(--topbar-h, 36px) + var(--an-header-h, 68px)) );
}

.an-hub-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 30%, transparent 100%);
}

.an-hub-hero__content {
    position: relative;
    z-index: 2;
    padding: 64px 60px;
    max-width: 720px;
}

.an-hub-hero__title {
    font-family: var(--an-serif);
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 300;
    color: #fff;
    line-height: 1.1;
    margin: 12px 0 16px;
}

.an-hub-hero__sub {
    font-family: var(--an-sans);
    font-size: 15px;
    color: rgba(var(--an-white-rgb),0.82);
    max-width: 480px;
    line-height: 1.7;
    margin: 0 0 28px;
}

.an-hub-hero__ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Subtitle moved under the CTA buttons (per-hub toggle) */
.an-hub-hero__sub--below {
    margin: 20px 0 0;
}

/* ─── Hub Hero Slideshow ──────────────────── */
.an-hub-hero__slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.an-hub-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.an-hub-hero__slide.is-active { opacity: 1; }

.an-hub-hero__slide-bg {
    position: absolute;
    inset: 0;
    background: center/cover no-repeat;
}

.an-hub-hero__slide-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.an-hub-hero__dots {
    position: absolute;
    bottom: 16px; /* 24px to the drawn dot, minus the 8px of hit area below it */
    right: 52px;  /* 60px to the drawn dot, minus the 8px of hit area beside it */
    z-index: 3;
    display: flex;
    gap: 0;
}

/* 24×24 touch target (WCAG 2.5.8, ARI-27); the 8px dot is drawn by ::before.
   Same technique as .an-hero__dot: the dot keeps its size and its corner,
   only the dot-to-dot pitch grows from 16px to 24px. */
.an-hub-hero__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.an-hub-hero__dot::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    transition: background 0.3s, transform 0.3s;
}

.an-hub-hero__dot.is-active::before {
    background: var(--an-gold);
    transform: scale(1.25);
}

@media (max-width: 767px) {
    .an-hub-hero__dots { right: 12px; bottom: 8px; }
}

/* ─── Quick Filter Bar ────────────────────── */
.an-hub-filter {
    background: #f6f6f6;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    position: sticky;
    top: calc(var(--topbar-h, 36px) + var(--an-header-h, 68px));
    z-index: 500;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: box-shadow 0.25s ease;
}

.an-hub-filter.is-sticky {
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

.an-hub-filter__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.an-hub-filter__inner::-webkit-scrollbar { display: none; }

.an-hub-filter__btn {
    flex-shrink: 0;
    font-family: var(--an-sans);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: var(--an-charcoal);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.an-hub-filter__btn:hover {
    color: var(--an-black);
}

.an-hub-filter__btn.is-active {
    color: var(--an-black);
    border-bottom-color: var(--an-gold);
    font-weight: 500;
}

/* ─── Editorial Block ─────────────────────── */
.an-hub-editorial {
    background: var(--an-cream);
    padding: 64px 0;
}

.an-hub-editorial__media {
    aspect-ratio: 4/3;
    background: var(--an-black) center/cover no-repeat;
    border-radius: 1px;
}

.an-hub-editorial__title {
    font-family: var(--an-serif);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 300;
    margin: 0 0 16px;
    line-height: 1.2;
}

.an-hub-editorial__text {
    font-family: var(--an-sans);
    font-size: 15px;
    color: var(--an-muted);
    line-height: 1.75;
    margin: 0 0 24px;
}

/* Mid-grid editorial spans full width */
.an-hub-editorial--mid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: var(--an-cream);
    border-radius: 1px;
    padding: 40px;
    margin: 8px 0;
}

/* ─── Hub body: sidebar + grid two-column layout ─── */
.an-hub-body {
    display: flex;
    gap: 56px;
    align-items: flex-start;
    padding: 60px 0;
}

/* LEFT sidebar: "Need Help Choosing?" */
.an-hub-sidebar {
    flex: 0 0 240px;
    width: 240px;
    position: sticky;
    top: 120px; /* sticks below header as user scrolls */
}

.an-hub-sidebar__inner {
    background: #f6f6f6;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 1px;
    padding: 32px 24px;
}

.an-hub-sidebar .an-hub-editorial__title {
    font-size: clamp(20px, 2vw, 26px);
    margin-bottom: 12px;
}

.an-hub-sidebar .an-hub-editorial__text {
    font-size: 13px;
    margin-bottom: 20px;
    color: var(--an-grey);
}

.an-hub-sidebar__media {
    aspect-ratio: 4/3;
    background: var(--an-black) center/cover no-repeat;
    border-radius: 1px;
    margin-bottom: 20px;
}

/* RIGHT: product grid column */
.an-hub-grid-col {
    flex: 1;
    min-width: 0; /* prevent flex overflow */
}

@media (min-width: 961px) {
    .an-hub-body:has(.an-hub-sidebar) .an-product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .an-hub-body:has(.an-hub-sidebar) #an-hub-products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* When no editorial sidebar, grid takes full width */
.an-hub-body:not(:has(.an-hub-sidebar)) .an-hub-grid-col {
    width: 100%;
}

.an-hub-grid-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.an-hub-grid__title {
    font-family: var(--an-serif);
    font-size: 28px;
    font-weight: 300;
    margin: 8px 0 0;
}

/* ─── Metal filter (grid head, right-aligned) ────── */
.an-hub-metal-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.an-hub-filter__btn--metal {
    flex-shrink: 0;
    font-family: var(--an-sans);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 0;
    border: none;
    background: transparent;
    color: var(--an-charcoal);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.an-hub-filter__btn--metal:hover {
    color: var(--an-black);
}

.an-hub-filter__btn--metal.is-active {
    color: var(--an-black);
    border-bottom-color: var(--an-gold);
    font-weight: 500;
}

@media (max-width: 767px) {
    .an-hub-grid-head {
        align-items: flex-start;
    }

    .an-hub-metal-filter {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .an-hub-metal-filter::-webkit-scrollbar { display: none; }
}

/* ─── Metal filter — Tabs variant (segmented pill bar) ────── */
.an-hub-metal-filter--tabs {
    gap: 0;
    padding: 4px;
    background: var(--an-off-white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 1px;
}

.an-hub-metal-filter--tabs .an-hub-filter__btn--metal {
    padding: 8px 16px;
    border: none;
    border-radius: 1px;
    background: transparent;
    color: var(--an-charcoal);
    transition: background 0.2s, color 0.2s;
}

.an-hub-metal-filter--tabs .an-hub-filter__btn--metal:hover {
    color: var(--an-black);
}

.an-hub-metal-filter--tabs .an-hub-filter__btn--metal.is-active {
    background: var(--an-black);
    color: #fff;
    font-weight: 500;
}

@media (max-width: 767px) {
    .an-hub-metal-filter--tabs {
        width: auto;
        flex-wrap: wrap;
    }
}

.an-hub-grid__empty {
    text-align: center;
    padding: 48px;
    color: var(--an-charcoal);
    font-family: var(--an-sans);
    font-size: 14px;
}

/* Prominent section heading */
.an-hub-trust .an-trust__heading {
    font-family: var(--an-serif);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 300;
    color: var(--an-black);
    text-align: center;
    margin: 0 0 48px;
    line-height: 1.2;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-hub-trust .an-trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 0;
}

/* ── Hub: "Didn't find it?" ────────────────────────────────── */

.an-hub-didnt-find {
    background: var(--an-section-alt);
    padding: 72px 0;
}

.an-hub-didnt-find__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.an-hub-didnt-find__title {
    font-family: var(--an-serif);
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 400;
    color: var(--an-black);
    margin: 12px 0 0;
}

.an-hub-didnt-find__sub {
    font-family: var(--an-sans);
    font-size: 14px;
    color: var(--an-grey);
    line-height: 1.75;
    margin: 16px 0 0;
    max-width: 480px;
}

.an-hub-didnt-find__ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .an-hub-didnt-find {
        padding: 56px 0 64px;
    }

    .an-hub-didnt-find__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .an-hub-didnt-find__ctas {
        width: 100%;
        gap: 12px;
    }

    .an-hub-didnt-find__ctas .an-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding-left: 18px;
        padding-right: 18px;
        text-align: center;
        overflow-wrap: anywhere;
    }
}

/* ═══════════════════════════════════════════════════════════
   PLP PAGE
   ═══════════════════════════════════════════════════════════ */

.an-plp {
    padding-bottom: 80px;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-plp__breadcrumb {
    padding: 20px 0 12px;
    font-family: var(--an-sans);
    font-size: 12px;
    color: var(--an-charcoal);
    color: color-mix(in srgb, var(--an-charcoal) 86%, #000);
    letter-spacing: 0.04em;
}

.an-plp__head {
    padding: 16px 0 24px;
}

.an-plp__title {
    font-family: var(--an-serif);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 300;
    margin: 0 0 8px;
}

.an-plp__subtitle {
    font-family: var(--an-sans);
    font-size: 14px;
    color: var(--an-grey);
    max-width: 480px;
    margin: 0;
    line-height: 1.65;
}

/* ─── Primary Tabs ─────────────────────────── */
.an-plp__tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 0;
    margin-bottom: 32px;
}

.an-plp__tabs::-webkit-scrollbar { display: none; }

.an-plp__tab {
    flex-shrink: 0;
    font-family: var(--an-sans);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--an-charcoal);
    color: color-mix(in srgb, var(--an-charcoal) 86%, #000);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.an-plp__tab:hover { color: var(--an-black); }

.an-plp__tab.is-active {
    color: var(--an-black);
    border-bottom-color: var(--an-gold);
    font-weight: 500;
}

/* ─── Body: Sidebar + Grid ─────────────────── */
.an-plp__body {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
}

/* ─── Sidebar ──────────────────────────────── */
.an-plp__sidebar {
    position: sticky;
    top: calc(var(--topbar-h, 36px) + var(--an-header-h, 68px) + 16px);
}

.an-plp__sidebar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 16px;
}

.an-plp__sidebar-title {
    font-family: var(--an-sans);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
}

.an-plp__clear-filters {
    background: none;
    border: none;
    font-family: var(--an-sans);
    font-size: 11px;
    color: var(--an-charcoal);
    cursor: pointer;
    text-decoration: underline;
}

.an-plp__clear-filters:hover { color: var(--an-black); }

.an-plp__filter-group {
    border-bottom: 1px solid rgba(0,0,0,0.07);
    padding: 14px 0;
}

.an-plp__filter-heading {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--an-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0 0 10px;
    color: var(--an-black);
}

.an-plp__filter-heading::after {
    content: '−';
    font-size: 16px;
    font-weight: 300;
}

.an-plp__filter-heading[aria-expanded="false"]::after { content: '+'; }

.an-plp__filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.an-plp__filter-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--an-sans);
    font-size: 13px;
    color: var(--an-dark);
    cursor: pointer;
}

.an-plp__filter-label input {
    accent-color: var(--an-black);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* ─── Main Grid ────────────────────────────── */
.an-plp__main { min-width: 0; }

/* Toolbar: result count left, Filters button right */
.an-plp__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    min-height: 40px;
}

.an-plp__count {
    font-family: var(--an-sans);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--an-grey);
    color: color-mix(in srgb, var(--an-grey) 93%, #000);
}

.an-plp__mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 8px;
    font-family: var(--an-sans);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(0,0,0,0.2);
    background: #f6f6f6;
    padding: 10px 16px;
    border-radius: 1px;
    cursor: pointer;
}

.an-plp__mobile-filter-btn svg { width: 18px; height: 18px; }

/* ─── Price range slider (Theme Studio → Price Filter Style) ── */
/* Standalone metal filter on PLP pages — sits on the right side of the
   toolbar (count left, metal filter right), reusing the hub bar styles. */
.an-plp__metal-filter {
    margin-left: auto;
}

/* Drawer layout shows the Filters button next to the metal links — separate
   the two with a hairline divider and breathing room so they read as two
   distinct controls. */
.an-plp--filters-drawer .an-plp__metal-filter {
    padding-right: 24px;
    margin-right: 24px;
    border-right: 1px solid var(--an-grey-light);
    align-self: center;
}

@media (max-width: 767px) {
    /* Metal bar drops to its own scrollable row under count + Filters */
    .an-plp__toolbar { flex-wrap: wrap; row-gap: 14px; }

    .an-plp__metal-filter,
    .an-plp--filters-drawer .an-plp__metal-filter {
        order: 3;
        margin-left: 0;
        margin-right: 0;
        padding-right: 0;
        border-right: none;
    }
}

/* Price sort options (Lowest/Highest first) — divider before the slider or
   checkbox ranges when both are shown. */
.an-plp__price-sort:not(:last-child) {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--an-off-white);
}

.an-plp__price-slider { padding: 4px 2px 6px; }

.an-plp__price-values {
    display: flex;
    justify-content: space-between;
    font-family: var(--an-sans);
    font-size: 12px;
    color: var(--an-black);
    margin-bottom: 12px;
}

.an-plp__price-track { position: relative; height: 24px; }

.an-plp__price-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.12);
}

.an-plp__price-fill {
    position: absolute;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
    background: var(--an-gold-dark);
    left: 0;
    right: 0;
}

.an-plp__price-range {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    background: none;
    pointer-events: none;
}

.an-plp__price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--an-black);
    border: none;
    cursor: pointer;
}

.an-plp__price-range::-moz-range-thumb {
    pointer-events: auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--an-black);
    border: none;
    cursor: pointer;
}

.an-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--an-sans);
    font-size: 11px;
    background: var(--an-black);
    color: #fff;
    padding: 5px 10px;
    border-radius: 1px;
    border: none;
    cursor: pointer;
    margin: 0 4px 8px 0;
    text-transform: capitalize;
}

#an-active-filters {
    margin-bottom: 16px;
}

.an-product-grid--plp {
    grid-template-columns: repeat(3, 1fr);
}

.an-plp__no-results {
    text-align: center;
    padding: 48px;
    color: var(--an-charcoal);
    font-family: var(--an-sans);
    font-size: 14px;
}

.an-plp__audience-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    margin-bottom: 20px;
    background: rgba(var(--an-gold-rgb),0.08);
    border: 1px solid rgba(var(--an-gold-rgb),0.25);
    border-radius: 1px;
    font-family: var(--an-sans);
    font-size: 13px;
    color: var(--an-charcoal);
    letter-spacing: 0.03em;
}

.an-plp__audience-clear {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--an-sans);
    font-size: 12px;
    color: var(--an-gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0;
}

.an-plp__audience-clear:hover { text-decoration: underline; }

.an-link {
    background: none;
    border: none;
    color: var(--an-gold);
    cursor: pointer;
    text-decoration: underline;
    font-family: var(--an-sans);
    font-size: 14px;
}

/* ─── Mobile Filter Drawer ─────────────────── */
.an-plp__filter-drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
}

.an-plp__filter-drawer[aria-hidden="false"] { pointer-events: auto; }

.an-plp__filter-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.an-plp__filter-drawer[aria-hidden="false"] .an-plp__filter-drawer-overlay {
    opacity: 1;
}

.an-plp__filter-drawer-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f6f6f6;
    border-radius: 1px 1px 0 0;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
}

.an-plp__filter-drawer[aria-hidden="false"] .an-plp__filter-drawer-panel {
    transform: translateY(0);
}

.an-plp__filter-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-family: var(--an-sans);
    font-size: 14px;
    font-weight: 600;
}

.an-plp__filter-drawer-head button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.an-plp__filter-drawer-body {
    overflow-y: auto;
    padding: 16px 24px;
    flex: 1;
}

.an-plp__filter-drawer-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* ─── Hidden filter layout ──────────────────
   Theme Studio → Product Grid → Filter Layout = "Hidden".
   The sidebar column disappears on every viewport and the
   Filters button (mobile-only otherwise) shows on desktop too,
   opening the drawer as a right-side panel. */
.an-plp--filters-drawer .an-plp__body           { grid-template-columns: 1fr; }

.an-plp--filters-drawer .an-plp__sidebar        { display: none; }

.an-plp--filters-drawer .an-plp__mobile-filter-btn { display: inline-flex; }

@media (min-width: 961px) {
    .an-plp__filter-drawer--all .an-plp__filter-drawer-panel {
        top: 0;
        bottom: 0;
        left: auto;
        right: 0;
        width: min(400px, 90vw);
        max-height: none;
        border-radius: 0;
        transform: translateX(100%);
    }

    .an-plp__filter-drawer--all[aria-hidden="false"] .an-plp__filter-drawer-panel {
        transform: translateX(0);
    }
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-btn--whatsapp svg {
    width: 20px;
    height: 20px;
}

@media (min-width: 961px) {
    .an-grid-show-more--mobile-only { display: none; }
}

@media (max-width: 960px) {
    .an-product-grid--plp   { grid-template-columns: repeat(2, 1fr) !important; }

    #an-hub-products, #an-plp-products { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }

    /* Hub */
    .an-hub-hero__content { padding: 40px 24px; }

    .an-hub-filter__inner { padding: 0 24px; }

    .an-hub-editorial--mid {
        grid-template-columns: 1fr;
        padding: 28px 20px;
    }

    /* Hub body: stack sidebar above grid on tablet */
    .an-hub-body {
        flex-direction: column;
        gap: 32px;
    }

    .an-hub-sidebar {
        flex: none;
        width: 100%;
        position: static;
    }

    .an-hub-sidebar__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: center;
        padding: 24px;
    }

    /* PLP */
    .an-plp__body           { grid-template-columns: 1fr; }

    .an-plp__sidebar        { display: none; }

    .an-plp__mobile-filter-btn { display: flex; }
}

@media (max-width: 640px) {
    /* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
    .an-product-grid        { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }

    #an-hub-products, #an-plp-products { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }

    .an-hub-hero            { min-height: 50vh; }

    .an-hub-hero__content   { padding: 32px 20px; }

    .an-hub-hero__ctas      { flex-direction: column; }

    .an-plp__tabs           { padding: 0 20px; }
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-footer__social-link svg {
    width: 15px;
    height: 15px;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-footer__wa-link svg { width: 16px; height: 16px; }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-footer__trust-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--an-gold);
    opacity: 0.7;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-wa-float svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-btn--dark-outline:hover {
    background: var(--an-black);
    color: #fff;
    text-decoration: none;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-info-cta-block .wp-block-buttons {
    justify-content: center;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-info-cta-block .wp-block-button {
    margin: 0 auto;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-info-cta-block .an-btn,
.an-info-cta-block a.an-btn {
    border-color: var(--an-gold-dark) !important;
    color: var(--an-gold-dark) !important;
    background: transparent !important;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-info-cta-block .wp-block-button__link {
    display: inline-block;
    min-width: 260px;
    font-family: var(--an-sans) !important;
    font-size: 11px !important;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.4 !important;
    text-align: center;
    padding: 15px 40px;
    border: 1px solid var(--an-gold-dark) !important;
    border-radius: 0 !important;
    color: var(--an-gold-dark) !important;
    background: transparent !important;
    transition: all 0.35s var(--an-ease);
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-cookie-modal[aria-hidden="true"] { display: none; }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-cookie-modal__toggle-wrap input { opacity: 0; width: 0; height: 0; position: absolute; }

/* ════════════════════════════════════════════════════════════
   HUB FAQ / EDUCATION TEASER
   ════════════════════════════════════════════════════════════ */
.an-hub-faq {
    padding: 64px 0;
    max-width: 800px;
    margin: 0 auto;
}

.an-hub-faq__header { margin-bottom: 32px; }

.an-hub-faq__title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    margin: 8px 0 0;
    color: var(--an-dark);
}

.an-hub-faq__list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--an-border); }

.an-hub-faq__item { border-bottom: 1px solid var(--an-border); }

.an-hub-faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--an-dark);
    cursor: pointer;
    font-family: var(--an-sans);
    line-height: 1.4;
}

.an-hub-faq__question:hover { color: var(--an-gold); }

.an-hub-faq__icon { width: 18px; height: 18px; flex-shrink: 0; transition: transform .25s; }

.an-hub-faq__item.is-open .an-hub-faq__icon { transform: rotate(180deg); }

.an-hub-faq__answer { padding: 0 0 20px; }

.an-hub-faq__answer p { margin: 0; font-size: 14px; color: var(--an-muted); line-height: 1.7; }

.an-hub-faq__footer { margin-top: 24px; }

.an-hub-faq__more { font-size: 14px; font-weight: 600; color: var(--an-gold); text-decoration: none; }

.an-hub-faq__more:hover { text-decoration: underline; }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-quote-checkout-notice p { font-family: var(--an-sans); font-size: 13px; color: var(--an-charcoal); margin: 4px 0 0; }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-pwd-wrap input { width: 100%; padding-right: 62px !important; }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-checkout-invoice .form-row { padding: 0; margin: 0 0 12px; }

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.wc-block-components-sidebar{
    width: 100%;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.wc-block-components-sidebar-layout .wc-block-components-main{
    width: 100%;
}

@media (max-width: 900px) {
    /* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
    .an-hub-trust .an-trust__grid {
        display: flex;
        grid-template-columns: none;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* A finger swipes this natively; a mouse gets dragging from
         * assets/js/trust-slider.js, and the cursor advertises it. */
        cursor: grab;
        /* Room for the hover/focus lift and for the last card to clear
         * the right edge instead of ending flush against it. */
        padding: 4px 4px 8px;
        margin: 0 -4px;
    }

    /* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
    .an-hub-trust .an-trust-card {
        flex: 0 0 auto;
        width: min(74vw, 260px);
        box-sizing: border-box;
        padding: 26px 22px;
        scroll-snap-align: start;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SCREEN-READER ONLY — text kept for SEO/assistive tech, invisible
   ═══════════════════════════════════════════════════════════════ */
.an-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-payment-help__item:last-child {
    margin-bottom: 0;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.woocommerce-error .an-payment-help,
.woocommerce-info .an-payment-help,
.woocommerce-message .an-payment-help {
    background: transparent;
    padding: 0;
    margin: 14px 0 0;
    max-width: none;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-payment-note__mark {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    border: 1px solid var(--an-gold-light);
    border-radius: 999px;
    color: var(--an-gold-dark);
    font-size: 11px;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-deposit__option input {
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--an-gold-dark);
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-deposit-summary__table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--an-sans);
    font-size: 13px;
}

/* copy of style.css: keeps its original win over the rule above (ARI-34). Edit both. */
.an-hub-filter__btn {
    color: var(--an-charcoal);
    color: color-mix(in srgb, var(--an-charcoal) 86%, #000);
}
