/* ==========================================================================
   GoS Package — module stylesheet

   Only what the module itself renders or injects lives here: its text blocks,
   the mobile sidebar trigger, the sold-out badge/button and the WhatsApp
   button. Site theming belongs to the child theme (themes/child_hummingbird/
   assets/css/custom.css), which defines the --gos-* tokens used below; every
   var() carries a fallback so this file also stands alone.
   ========================================================================== */


/* --------------------------------------------------------------------------
   Module text blocks
   -------------------------------------------------------------------------- */

.gospackage-home-text {
    max-width: 83em;
    margin-inline: auto;
    padding: 1em;
}

.gospackage-nav1-text {
    font-size: 0.87em;
    padding: 1em;
    max-width: 37em;
    color: var(--gos-muted, #5f5952);
}


/* --------------------------------------------------------------------------
   Mobile sidebar trigger — injected by this module's front.js
   --------------------------------------------------------------------------
   Restyled onto the brand palette. The previous version was near-black with an
   amber accent (#212121 / #ffc107), left over from the earlier colour scheme. */

.gos-sidebar-trigger {
    display: none;
}

@media screen and (max-width: 991px) {
    #left-column {
        display: none;
        width: 100%;
        flex: 0 0 100%;
    }

    #left-column.gos-sidebar-open {
        display: block;
    }

    .gos-sidebar-trigger {
        display: flex;
        align-items: center;
        gap: 0.5em;
        width: 100%;
        flex: 0 0 100%;
        padding: 0.75em 1em;
        margin-bottom: 0.75em;
        background: var(--gos-sand-soft, #f2ece1);
        border: 1px solid var(--gos-rule, #ded2be);
        border-radius: var(--gos-radius, 3px);
        color: var(--gos-ink, #3e3a35);
        cursor: pointer;
        font-family: inherit;
        font-size: 0.875em;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        text-align: left;
        transition: border-color 220ms ease, color 220ms ease;
    }

    .gos-sidebar-trigger:hover,
    .gos-sidebar-trigger[aria-expanded="true"] {
        border-color: var(--gos-gold, #bfa274);
        color: var(--gos-gold-text, #6b5426);
    }

    .gos-sidebar-trigger:focus-visible {
        outline: 2px solid var(--gos-gold-text, #6b5426);
        outline-offset: 2px;
    }

    .gos-sidebar-trigger .material-icons {
        font-size: 1.2em;
        color: inherit;
    }
}


/* --------------------------------------------------------------------------
   Sold-out products
   --------------------------------------------------------------------------
   Badge added by hookActionProductFlagsModifier, drawn by the theme's own
   product-flags template on cards and on the product page cover. Ink on sand
   reads as information, not alarm, which suits a shop of one-off pieces. */

.product-flags .badge.sold {
    background: var(--gos-ink, #3e3a35);
    color: var(--gos-sand, #e9e0d1);
}

/* hookDisplayProductActions renders the sold button right after the theme's
   add-to-cart button; the body class comes from hookDisplayHeader. */
body.product-sold .product__add-to-cart-button {
    display: none !important;
}

.gos-sold-btn,
.gos-sold-btn:hover,
.gos-sold-btn:focus,
.gos-sold-btn:active,
.gos-sold-btn[disabled],
.gos-sold-btn:disabled {
    --bs-btn-bg: var(--gos-ink, #3e3a35);
    --bs-btn-border-color: var(--gos-ink, #3e3a35);
    --bs-btn-color: var(--gos-sand, #e9e0d1);
    --bs-btn-disabled-bg: var(--gos-ink, #3e3a35);
    --bs-btn-disabled-border-color: var(--gos-ink, #3e3a35);
    --bs-btn-disabled-color: var(--gos-sand, #e9e0d1);
    --bs-btn-disabled-opacity: 1;
    width: 100%;
    cursor: not-allowed;
}


/* --------------------------------------------------------------------------
   WhatsApp button — injected by front.js when a number is configured
   --------------------------------------------------------------------------
   Kept on WhatsApp green: it is a recognised mark, and recoloured to gold it
   would read as one of the site's own buttons. */

.gos-whatsapp-btn {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: #25d366;
    box-shadow: 0 4px 14px rgba(62, 58, 53, 0.3);
    transition: background-color 220ms ease, transform 220ms ease;
}

.gos-whatsapp-btn:hover,
.gos-whatsapp-btn:focus-visible {
    background-color: #1ebe5d;
    transform: scale(1.08);
}

.gos-whatsapp-btn svg {
    width: 2rem;
    height: 2rem;
    fill: #fff;
}

/* Keep it clear of the sticky add-to-cart bar on mobile product pages. */
@media (max-width: 767.98px) {
    body.page-product .gos-whatsapp-btn { bottom: 6rem; }
}

@media print {
    .gos-whatsapp-btn { display: none; }
}
