/* =========================================================================
 * Free shipping progress bar (cart page)
 * ========================================================================= */
.shipping-progress {
    margin: 16px 0 24px;
    padding: 16px;
    background: #F8F6F0;
    border-radius: 12px;
}

.shipping-progress__msg {
    font-size: 14px;
    color: #243F2F;
    margin-bottom: 10px;
    line-height: 1.35;
}

.shipping-progress__bar {
    height: 6px;
    background: rgba(36, 63, 47, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.shipping-progress__fill {
    height: 100%;
    background: #243F2F;
    transition: width 0.3s ease;
    width: 0%;
}

.shipping-progress.is-qualified .shipping-progress__fill {
    background: #2D8060;
}

/* =========================================================================
 * Shop drawer (mobile filter drawer for /shop/)
 * ========================================================================= */

/* Toggle button — visible only on mobile */
.shop-drawer__toggle {
    display: none;
    margin: 0 0 16px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #243F2F;
    background: #F8F6F0;
    border: 1px solid rgba(36, 63, 47, 0.2);
    border-radius: 8px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.shop-drawer__toggle:hover {
    background: #efece2;
}

.shop-drawer__close {
    display: none;
}

/* Desktop: drawer acts as a regular inline wrapper for the sidebar */
@media (min-width: 769px) {
    .shop-drawer {
        display: contents;
    }
    .shop-drawer__overlay {
        display: none;
    }
    .shop-drawer__title {
        /* keep original sidebar heading style on desktop */
    }
}

/* Mobile: drawer slides in from the left */
@media (max-width: 768px) {
    .shop-drawer__toggle {
        display: inline-block;
    }

    .shop-drawer {
        position: fixed;
        inset: 0;
        z-index: 1000;
        visibility: hidden;
    }

    .shop-drawer.is-open {
        visibility: visible;
    }

    .shop-drawer__overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        transition: opacity 0.25s ease;
    }

    .shop-drawer.is-open .shop-drawer__overlay {
        opacity: 1;
    }

    .shop-drawer__panel {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 85%;
        max-width: 380px;
        background: #fff;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        padding: 24px;
        box-shadow: 0 0 24px rgba(0, 0, 0, 0.15);
        box-sizing: border-box;
    }

    .shop-drawer.is-open .shop-drawer__panel {
        transform: translateX(0);
    }

    .shop-drawer__close {
        display: block;
        float: right;
        font-size: 28px;
        line-height: 1;
        background: none;
        border: 0;
        cursor: pointer;
        color: #243F2F;
        padding: 0 4px;
    }

    .shop-drawer__title {
        margin-top: 0;
        margin-bottom: 16px;
        font-size: 18px;
        color: #243F2F;
    }
}
