/* =======================================================================
   Shop Page Enhancements
   Following the gold/cream/espresso design system (DESIGN.md):
     accent:  #B86B0B       accent-soft: #C9A573
     ink:     #231508       ink-soft:    #6b5b4a
     cream:   #FFFCF2       line:        #e9ddc9
   ======================================================================= */

/* ------------------------------------------------------------------ */
/*  1. HERO BANNER                                                    */
/* ------------------------------------------------------------------ */
.ase-hero {
    background: #231508;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 1280px;
    margin: 32px auto 0;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 24px rgba(35,21,8,.10);
}
/* Subtle ornamental gradient overlay */
.ase-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(184,107,11,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 0%,   rgba(201,165,115,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.ase-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 44px;
}
.ase-hero__icon {
    width: 40px;
    height: 40px;
    color: #B86B0B;
    margin: 0 auto 18px;
}
.ase-hero__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.ase-hero__title {
    color: #FFFCF2;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
    letter-spacing: 0.01em;
}
.ase-hero__subtitle {
    color: #C9A573;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}
/* Gold accent bar at the bottom */
.ase-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #B86B0B, transparent);
    border-radius: 2px;
}

/* Thai font override */
html[lang="th"] .ase-hero__title,
html[lang="th"] .ase-hero__subtitle {
    font-family: "IBM Plex Sans Thai", sans-serif;
}

/* Responsive */
@media (max-width: 767px) {
    /* The hero is printed straight into <main>, outside Blocksy's container,
       so on a phone it ran edge-to-edge while the pills and product cards
       below sat inside the container's gutter - the block looked like it had
       broken out of the page. Matching the container's own responsive width
       variable (90vw, 88vw under 690px) keeps it aligned at every size
       without hardcoding a gutter that would drift if the theme changes. */
    .ase-hero {
        width: var(--theme-container-edge-spacing, 88vw);
        margin-left: auto;
        margin-right: auto;
    }
    .ase-hero__inner {
        padding: 32px 16px 30px;
    }
    .ase-hero__title {
        font-size: 22px;
    }
    .ase-hero__subtitle {
        font-size: 13.5px;
    }
}

/* ------------------------------------------------------------------ */
/*  2. TRUST BAR                                                      */
/* ------------------------------------------------------------------ */
.ase-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #FFFCF2;
    border: 1px solid #e9ddc9;
    border-top: none;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 24px rgba(35,21,8,.06);
    padding: 16px 24px;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: 0 auto;
}
.ase-trust__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 20px;
    position: relative;
}
/* Vertical divider between items */
.ase-trust__item + .ase-trust__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: #e9ddc9;
}
.ase-trust__icon {
    width: 22px;
    height: 22px;
    color: #B86B0B;
    flex: none;
}
.ase-trust__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.ase-trust__label {
    color: #231508;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* Thai font override */
html[lang="th"] .ase-trust__label {
    font-family: "IBM Plex Sans Thai", sans-serif;
}

@media (max-width: 767px) {
    .ase-trust {
        /* Sits directly under .ase-hero and shares its rounded frame, so it
           must inset by exactly the same amount. */
        width: var(--theme-container-edge-spacing, 88vw);
        margin-left: auto;
        margin-right: auto;
        flex-wrap: wrap;
        gap: 4px 0;
        padding: 12px 12px;
        box-sizing: border-box;
    }
    .ase-trust__item {
        flex: 0 0 50%;
        padding: 6px 10px;
        box-sizing: border-box;
    }
    /* Hide dividers on mobile, use bottom borders instead */
    .ase-trust__item + .ase-trust__item::before {
        display: none;
    }
    .ase-trust__label {
        font-size: 11.5px;
        white-space: normal;
    }
}

/* ------------------------------------------------------------------ */
/*  3. CATEGORY QUICK-NAV                                             */
/* ------------------------------------------------------------------ */
.ase-catnav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.ase-catnav::-webkit-scrollbar {
    display: none;
}
.ase-catnav__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid #e9ddc9;
    color: #6b5b4a;
    background: #FFFCF2;
    transition: all 0.18s ease;
    flex: none;
}
.ase-catnav__pill:hover {
    border-color: #B86B0B;
    color: #B86B0B;
    background: #FFFCF2;
}
.ase-catnav__pill.is-active {
    background: #231508;
    color: #FFFCF2;
    border-color: #231508;
}
.ase-catnav__pill.is-active:hover {
    background: #B86B0B;
    border-color: #B86B0B;
    color: #fff;
}
.ase-catnav__count {
    font-size: 11px;
    font-weight: 400;
    background: rgba(0,0,0,0.08);
    padding: 2px 7px;
    border-radius: 10px;
    line-height: 1;
}
.ase-catnav__pill.is-active .ase-catnav__count {
    background: rgba(255,255,255,0.15);
}

/* Thai font override */
html[lang="th"] .ase-catnav__pill {
    font-family: "IBM Plex Sans Thai", sans-serif;
}

@media (max-width: 767px) {
    .ase-catnav {
        padding: 10px 0 14px;
        gap: 6px;
        /* Trailing space so the final pill clears the container edge when the
           strip is scrolled to the end, instead of stopping flush against it
           and looking clipped. */
        padding-right: 16px;
        scroll-padding-right: 16px;
    }
    .ase-catnav__pill {
        padding: 7px 14px;
        font-size: 12px;
    }
}

/* ------------------------------------------------------------------ */
/*  4. PRODUCT BADGES (New / Low Stock / Bestseller)                  */
/* ------------------------------------------------------------------ */
.ase-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}
/* Ensure the product card figure is the positioning context */
body.woocommerce-shop ul.products li.product > figure,
body.tax-product_cat ul.products li.product > figure {
    position: relative;
}
.ase-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-transform: uppercase;
}
.ase-badge--new {
    background: #B86B0B;
    color: #fff;
}
.ase-badge--low {
    background: #231508;
    color: #FFFCF2;
}
.ase-badge--best {
    background: linear-gradient(135deg, #C9A573, #B86B0B);
    color: #fff;
}

/* Thai font override */
html[lang="th"] .ase-badge {
    font-family: "IBM Plex Sans Thai", sans-serif;
    text-transform: none;
}

/* ------------------------------------------------------------------ */
/*  5. FOLLOW US — SOCIAL MEDIA STRIP                                 */
/* ------------------------------------------------------------------ */
.ase-follow {
    background: #231508;
    max-width: 1280px;
    margin: 40px auto 48px;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 24px rgba(35,21,8,.10);
    overflow: hidden;
}
.ase-follow__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    text-align: center;
}
.ase-follow__heading {
    color: #C9A573;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 28px;
}
.ase-follow__channels {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.ase-follow__channel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: rgba(255,252,242,0.06);
    border: 1px solid rgba(255,252,242,0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 160px;
}
.ase-follow__channel:hover {
    background: rgba(184,107,11,0.15);
    border-color: rgba(184,107,11,0.4);
    transform: translateY(-2px);
}
.ase-follow__icon {
    width: 28px;
    height: 28px;
    color: #C9A573;
    flex: none;
    transition: color 0.2s ease;
}
.ase-follow__channel:hover .ase-follow__icon {
    color: #B86B0B;
}
.ase-follow__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.ase-follow__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.ase-follow__name {
    color: #FFFCF2;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}
.ase-follow__stat {
    color: #C9A573;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    opacity: 0.85;
}

/* Thai font overrides */
html[lang="th"] .ase-follow__heading,
html[lang="th"] .ase-follow__name,
html[lang="th"] .ase-follow__stat {
    font-family: "IBM Plex Sans Thai", sans-serif;
}
html[lang="th"] .ase-follow__heading {
    text-transform: none;
    letter-spacing: normal;
}

@media (max-width: 767px) {
    .ase-follow {
        padding: 32px 16px;
        margin-top: 28px;
    }
    .ase-follow__channels {
        flex-direction: column;
        gap: 8px;
    }
    .ase-follow__channel {
        min-width: 0;
        padding: 12px 16px;
    }
}

