/**
 * Cart Sidebar Styles
 * Updated to match Prep Success Meals design
 */

/* ============================================
   SIDEBAR CONTAINER
   ============================================ */
.cart-sidebar {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: calc(100vh - 100px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: sticky;
    top: 0;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.cart-sidebar.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ============================================
   HEADER
   ============================================ */
.cart-sidebar__header {
    padding: 24px 24px 16px;
    border-bottom: none;
}

.cart-sidebar__title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    font-style: normal;
}

/* ============================================
   NUDGE BANNER - Inside scroll area, pill shape
   ============================================ */
.cart-sidebar__items-wrapper {
    flex: 1;
    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #4a7c3f transparent;
    position: relative;
}

.cart-sidebar__items-wrapper::-webkit-scrollbar {
    width: 4px;
}

.cart-sidebar__items-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.cart-sidebar__items-wrapper::-webkit-scrollbar-thumb {
    background-color: #4a7c3f;
    border-radius: 3px;
}

.cart-sidebar__nudge {
    position: sticky;
    bottom: 8px;
    background: #f87171;
    color: #fff;
    text-align: center;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 50px;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: fit-content;
    margin: 0 auto;
    display: block;
}

.cart-sidebar__nudge.is-visible {
    padding: 10px 24px;
    max-height: 50px;
    margin: 8px auto;
}

.cart-sidebar__nudge.is-warning {
    background: #f87171;
}

.cart-sidebar__nudge-text {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.cart-sidebar__items {
    padding: 0 24px;
}

/* Individual Item */
.cart-sidebar__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.cart-sidebar__item:last-child {
    border-bottom: none;
}

.cart-sidebar__item.is-removing {
    opacity: 0;
    transform: translateX(50px);
    max-height: 0;
    padding: 0;
    overflow: hidden;
}

.cart-sidebar__item.is-flash {
    animation: itemFlash 0.6s ease;
}

@keyframes itemFlash {
    0%, 100% { background-color: transparent; }
    50% { background-color: #f0fdf4; }
}

/* Item Image */
.cart-sidebar__item-image {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.cart-sidebar__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Item Details */
.cart-sidebar__item-details {
    flex: 1;
    min-width: 0;
}

.cart-sidebar__item-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Quantity Controls - Updated Style */
.cart-sidebar__item-controls {
    display: flex;
    align-items: center;
    gap: 0;
}

.cart-sidebar__qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #e8e8e8;
    color: #666;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    line-height: 1;
    padding: 0;
}

.cart-sidebar__qty-btn:first-child {
    border-radius: 6px 0 0 6px;
}

.cart-sidebar__qty-btn:hover {
    background: #d8d8d8;
}

.cart-sidebar__qty-btn:active {
    transform: scale(0.95);
}

.cart-sidebar__qty-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    min-width: 36px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
}

.cart-sidebar__qty-btn:last-of-type {
    border-radius: 0 6px 6px 0;
}

/* Remove Button - Pink/Red Trash Icon */
.cart-sidebar__remove-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #ffe4e6;
    color: #f43f5e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 8px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.cart-sidebar__remove-btn:hover {
    background: #fecdd3;
    color: #e11d48;
}

.cart-sidebar__remove-btn svg {
    width: 18px;
    height: 18px;
}

/* Item Price */
.cart-sidebar__item-price {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    flex-shrink: 0;
    min-width: 70px;
    text-align: right;
}

/* Empty Cart */
.cart-sidebar__empty {
    padding: 40px 24px;
    text-align: center;
}

.cart-sidebar__empty p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

/* ============================================
   ORDER SUMMARY
   ============================================ */
.cart-sidebar__summary {
    padding: 20px 24px 16px;
    border-top: 1px solid #f0f0f0;
}

.cart-sidebar__summary-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
}

.cart-sidebar__summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    font-size: 15px;
    color: #444;
}

.cart-sidebar__summary-row span:first-child {
    color: #666;
}

.cart-sidebar__summary-row span:last-child {
    font-weight: 600;
    color: #1a1a1a;
}

.cart-sidebar__summary-row--discount {
    color: #16a34a !important;
}

.cart-sidebar__summary-row--discount span:first-child,
.cart-sidebar__summary-row--discount span:last-child {
    color: #16a34a !important;
    font-weight: 600;
}

.cart-sidebar__summary-row--total {
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid #eee;
    font-size: 16px;
}

.cart-sidebar__summary-row--total span:first-child,
.cart-sidebar__summary-row--total span:last-child {
    font-weight: 700;
    color: #1a1a1a;
}

/* ============================================
   DELIVERY FREQUENCY - Updated Radio Style
   ============================================ */
.cart-sidebar__delivery {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
}

.cart-sidebar__delivery-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
}

.cart-sidebar__delivery-options {
    display: flex;
    gap: 16px;
}

.cart-sidebar__delivery-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s ease;
    flex: 1;
}

.cart-sidebar__delivery-option:hover {
    opacity: 0.85;
}

.cart-sidebar__delivery-option input[type="radio"] {
    display: none;
}

/* Custom Radio - Circle with Check */
.cart-sidebar__delivery-radio {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: #fff;
}

.cart-sidebar__delivery-option.is-active .cart-sidebar__delivery-radio {
    border-color: #22c55e;
    background: #22c55e;
}

.cart-sidebar__delivery-option.is-active .cart-sidebar__delivery-radio::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.cart-sidebar__delivery-label {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.3;
    font-weight: 500;
}

.cart-sidebar__delivery-label em {
    font-style: normal;
    color: #22c55e;
    font-weight: 600;
}

/* ============================================
   FOOTER (UPSELL + CHECKOUT)
   ============================================ */
.cart-sidebar__footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #f0f0f0;
}

/* Upsell Message - Black Banner */
.cart-sidebar__upsell {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #1a1a1a;
    padding: 0;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 8px;
}

.cart-sidebar__upsell.is-visible {
    padding: 14px 16px;
    margin-bottom: 16px;
    max-height: 60px;
}

.cart-sidebar__upsell.is-success {
    background: #16a34a;
    color: #fff;
}

/* Checkout Button */
.cart-sidebar__checkout-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: #1a1a1a;
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-sidebar__checkout-btn:hover {
    background: #333;
    color: #ffffff;
}

.cart-sidebar__checkout-btn.is-disabled {
    background: #e5e5e5;
    color: #aaa;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   DISCOUNT UNLOCKED BANNER
   ============================================ */
.cart-sidebar__discount-banner {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    text-align: center;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    margin: 0 24px 16px;
    border-radius: 8px;
    display: none;
}

.cart-sidebar__discount-banner.is-visible {
    display: block;
}

.cart-sidebar__discount-banner span {
    margin-right: 4px;
}

.cart-sidebar__nudge-text {
    font-size: 10px;
    font-weight: 500;
}

.cart-sidebar__nudge.is-visible {
    padding: 0px 9px;
    max-height: 50px;
    margin: 8px auto;
    line-height: 23px;
}

div#cart-sidebar-nudge {
    bottom: 4;
}

.cart-sidebar__summary {
    top: -22px;
    position: relative;
}

.cart-sidebar__summary {
    padding: 40px 24px 16px;
}

div#cart-sidebar-nudge {
    background: #FCEDED;
    color: #DA2424;
    letter-spacing: 0;
    font-weight: 700 !important;
}

div#cart-sidebar-nudge span {
    font-weight: 700 !important;
}

.cart-sidebar__summary::before {
    background: #DA2424;
    width: 313px;
    content: '';
    height: 4px;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.cart-sidebar__items-wrapper {
    background: #f7f7f7;
}

.cart-sidebar__header {
    background: #f7f7f7;
}

aside#cart-sidebar {
    border: 1px solid #d9d9d9;
}

div#cart-sidebar-nudge {
    margin-right: 46px;
}

.cart-sidebar__summary {
    background: white;
}

div#cart-sidebar-nudge {
    border: 2px solid white;
}

.cart-sidebar__summary-row span:first-child {
    color: #7F8186;
    font-weight: 700 !important;
}


span#cart-sidebar-subtotal bdi * {
    color: #292D35 !important;
    font-size: 14px !important;
}

.cart-sidebar__summary-row.cart-sidebar__summary-row--total span#cart-sidebar-total * {
    color: #292D35;
}

.cart-sidebar__delivery {
    border-top: 0;
    padding-top: 0;
}

.cart-sidebar__summary {
    padding-bottom: 0;
}


aside#cart-sidebar * {
    font-family: Onest, sans-serif !important;
}

label.cart-sidebar__delivery-option:first-child {
    flex: 1 0 20%;
}

h3.cart-sidebar__delivery-title {
    margin-bottom: 10px;
}

label.cart-sidebar__delivery-option:last-child {
    top: -2px;
    position: relative;
}

.cart-sidebar__delivery-label em {
    color: #292D35;
}

.cart-sidebar__upsell {
    font-size: 14px;
    background: #BDBEC0;
    color: #292D35;
    letter-spacing: -0.2px;
    border-radius: 80px;
    padding: 9px 16px;
}


a#cart-sidebar-checkout {
    background: #a8d852;
    color: #292D35;
    letter-spacing: -0.2px;
    border-radius: 80px;
    padding: 9px;
}

.cart-sidebar__upsell.is-visible {
    padding: 9px 16px;
}

.cart-sidebar__header {
    padding-bottom: 5px;
}

h2.cart-sidebar__title {
    font-size: 18px;
}

.order-page-layout {
    padding-top: 0 !important;
}

section.new-main-container {
    padding-top: 15px;
}

aside#cart-sidebar {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.wrap__actions_pl {
    width: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}


button.cart-sidebar__qty-btn.cart-sidebar__qty-minus {
    background: #ede9e9;
    border-radius: 50%;
    width: 22px !important;
    height: 22px;
    color: #7C9453;
    font-size: 31px !important;
    font-weight: 300 !important;
}

button.cart-sidebar__qty-btn.cart-sidebar__qty-plus{
    background: #ede9e9;
    border-radius: 50%;
    width: 22px !important;
    height: 22px;
    color: #7C9453;
    font-size: 31px !important;
    font-weight: 300 !important;
}

.wrap__actions_pl {
    border: 1px solid #EEEEEF;
    border-radius: 50px;
    padding: 5px;
}


span.cart-sidebar__qty-value {
    background: transparent;
}

button.cart-sidebar__remove-btn {
    background: transparent;
}

.cart-sidebar__summary {
    padding-top: 30px;
}


.cart-sidebar__item {
    border-bottom: 1px solid #292d3512;
}

h3.cart-sidebar__summary-title {
    margin-bottom: 10px;
}

div.product-filters .filters-list ul {
    width: 100% !important;
    overflow: initial;
}

.filter-tabs-wrapper {
    /*width: 760px;*/
    overflow-x: scroll;
}


.order-page-layout {
    margin-bottom: 200px !important;
}

.cart-sidebar-column {
    position: relative !important;
}

aside#cart-sidebar {
    position: relative;
}


aside#cart-sidebar[style*="position: fixed"],
aside#cart-sidebar[style*="position: absolute"] {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.cart-sidebar-column {
    width: 480px;
    flex-shrink: 0;
    z-index: 1;
}

input[type="range"] {
    accent-color: #557420;
}

button.btn-apply-filters {
    background: #A8D852;
    border: 0;
    height: 46px;
    border-radius: 50px;
    padding-left: 15px;
    padding-right: 15px;
    font-weight: 600;
    font-size: 14px;
}

button.btn-reset-filters {
    background: #dddddc;
    border: 0;
    height: 46px;
    border-radius: 50px;
    padding-left: 15px;
    padding-right: 15px;
    font-weight: 600;
    font-size: 14px;
}


span.range-value {
    font-size: 11px;
    display: block;
    margin-top: -7px;
}

.range-field {
    margin-bottom: 10px;
}

.filter-drawer .filter-section h5 {
    margin-bottom: 2px;
}


.order-page-layout {
    padding: 0;
}

.cart-sidebar {
    top: 5px;
}




/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
   
@media (max-width: 1600px) {
   .vc_row.wpb_row.vc_row-fluid.vc_custom_1770311496850.vc_row-has-fill {
        padding: 0 !important;
    }
}

   
   
@media (max-width: 1440px) {
    .products-grid {
        width: 44% !important;
    }
    .new-main-container .products .products__grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

   
   
   
   
   
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        max-height: none;
        border-radius: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        z-index: 9999;
        max-height: 75vh;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
        transform: translateY(calc(100% - 70px));
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .cart-sidebar.is-expanded {
        transform: translateY(0);
    }

    .cart-sidebar__mobile-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        cursor: pointer;
        background: #fff;
        border-radius: 16px 16px 0 0;
    }

    .cart-sidebar__mobile-bar-total {
        font-size: 16px;
        font-weight: 700;
    }

    .cart-sidebar__mobile-bar-btn {
        background: #4a7c3f;
        color: #fff;
        padding: 10px 20px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        border: none;
    }

    .cart-sidebar__items-wrapper {
        max-height: 200px;
    }

    .cart-sidebar__header {
        padding: 20px 20px 12px;
    }

    .cart-sidebar__items {
        padding: 0 20px;
    }

    .cart-sidebar__summary {
        padding: 16px 20px;
    }

    .cart-sidebar__delivery {
        padding: 16px 20px;
    }

    .cart-sidebar__footer {
        padding: 12px 20px 20px;
    }

    .cart-sidebar__nudge {
        margin: 0 20px;
    }
}

@media (min-width: 769px) {
    /*.cart-sidebar__mobile-bar {*/
    /*    display: none;*/
    /*}*/
}

/* ============================================
   ADD TO ORDER BUTTON (for product cards)
   ============================================ */
.js-add-to-cart {
    position: relative;
    overflow: hidden;
}

.js-add-to-cart.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

.js-add-to-cart.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.cart-sidebar__mobile-bar {
    display: none;
}

button#cart-sidebar-close-btn {
    display: none;
}

.filter-drawer {
    top: 0;
    height: 100vh !important;
}

body .drawer-close {
    margin-bottom: 0;
    margin-top: 45px;
}

.cart-sidebar__item {
    padding: 10px 0;
}

.cart-sidebar__summary {
    padding-top: 12px;
}

.cart-sidebar__summary-title {
    font-size: 16px;
}

.cart-sidebar__delivery-title {
    font-size: 16px;
}

.cart-sidebar__summary-row {
    line-height: 22px;
}


.cart-sidebar__item-image {
    width: 50px;
    height: 50px;
}

button.cart-sidebar__qty-btn.cart-sidebar__qty-minus {
    width: 20px !important;
    height: 20px;
    font-size: 29px !important;
}

button.cart-sidebar__qty-btn.cart-sidebar__qty-plus {
    width: 20px !important;
    height: 20px;
    font-size: 29px !important;
}


.cart-sidebar__item-name {
    font-size: 15px;
    margin-bottom: 2px;
}

div#cart-sidebar-items {
    padding-bottom: 35px !important;
}

/* ============================================
   MOBILE CART SIDEBAR - 998px
   ============================================ */

@media (max-width: 998px) {
    .cart-sidebar__mobile-bar {
        display: block;
    }
    button#cart-sidebar-close-btn {
        display: block;
    }
    /* Hide desktop sidebar column */
    .cart-sidebar-column {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto !important;
        width: 100% !important;
        z-index: 9999;
        height: auto;
    }
    
    /* Sidebar base - collapsed state */
    aside#cart-sidebar {
        position: relative !important;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        max-height: none;
        border: none;
        overflow: visible;
    }
    
    /* Hide main content when collapsed */
    aside#cart-sidebar:not(.is-expanded) .cart-sidebar__header,
    aside#cart-sidebar:not(.is-expanded) .cart-sidebar__items-wrapper,
    aside#cart-sidebar:not(.is-expanded) .cart-sidebar__summary,
    aside#cart-sidebar:not(.is-expanded) .cart-sidebar__delivery,
    aside#cart-sidebar:not(.is-expanded) .cart-sidebar__footer {
        display: none !important;
    }
    
    /* Mobile collapsed bar - always visible */
    .cart-sidebar__mobile-bar {
        display: flex !important;
        flex-direction: column;
        padding: 0;
        background: #fff;
        border-radius: 20px 20px 0 0;
    }
    
    /* Nudge banner in mobile bar */
    .cart-sidebar__mobile-nudge {
        background: #FCEDED;
        color: #DA2424;
        text-align: center;
        padding: 8px 16px;
        font-size: 12px;
        font-weight: 700;
        border-radius: 20px 20px 0 0;
        display: none;
    }
    
    .cart-sidebar__mobile-nudge.is-visible {
        display: block;
    }
    
    /* Mobile bar content row */
    .cart-sidebar__mobile-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
    }
    
    .cart-sidebar__mobile-total {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .cart-sidebar__mobile-total-label {
        font-size: 13px;
        color: #7F8186;
        font-weight: 600;
    }
    
    .cart-sidebar__mobile-total-value {
        font-size: 20px;
        font-weight: 700;
        color: #292D35;
    }
    
    .cart-sidebar__mobile-btn {
        background: #A8D852;
        color: #292D35;
        border: none;
        padding: 14px 28px;
        border-radius: 50px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: -0.2px;
    }
    
    .cart-sidebar__mobile-btn:active {
        transform: scale(0.98);
    }
    
    /* ===== EXPANDED STATE ===== */
    aside#cart-sidebar.is-expanded {
        position: fixed !important;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        max-height: 83vh;
        border-radius: 0;
        z-index: 10000;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    aside#cart-sidebar.is-expanded .cart-sidebar__mobile-bar {
        display: none !important;
    }
    
    aside#cart-sidebar.is-expanded .cart-sidebar__header,
    aside#cart-sidebar.is-expanded .cart-sidebar__items-wrapper,
    aside#cart-sidebar.is-expanded .cart-sidebar__summary,
    aside#cart-sidebar.is-expanded .cart-sidebar__delivery,
    aside#cart-sidebar.is-expanded .cart-sidebar__footer {
        display: block !important;
    }
    
    /* Header with close button */
    aside#cart-sidebar.is-expanded .cart-sidebar__header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #f0f0f0;
        background: #fff;
        flex-shrink: 0;
    }
    
    .cart-sidebar__close-btn {
        display: none;
        width: 32px;
        height: 32px;
        border: none;
        background: transparent;
        font-size: 24px;
        color: #666;
        cursor: pointer;
        padding: 0;
        line-height: 1;
    }
    
    aside#cart-sidebar.is-expanded .cart-sidebar__close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Items wrapper - scrollable */
    aside#cart-sidebar.is-expanded .cart-sidebar__items-wrapper {
        flex: 1;
        overflow-y: auto;
        max-height: none;
        background: #fff;
    }
    
    /* Nudge inside items */
    aside#cart-sidebar.is-expanded #cart-sidebar-nudge {
        position: sticky;
        bottom: 10px;
    }
    
    /* Summary section */
    aside#cart-sidebar.is-expanded .cart-sidebar__summary {
        padding: 20px;
        background: #fff;
        flex-shrink: 0;
        position: relative;
        top: 0;
    }
    
    aside#cart-sidebar.is-expanded .cart-sidebar__summary::before {
        width: 100%;
    }
    
    /* Delivery section */
    aside#cart-sidebar.is-expanded .cart-sidebar__delivery {
        padding: 16px 20px;
        background: #fff;
        flex-shrink: 0;
    }
    
    aside#cart-sidebar.is-expanded .cart-sidebar__delivery-options {
        flex-direction: column;
        gap: 12px;
    }
    
    /* Footer */
    aside#cart-sidebar.is-expanded .cart-sidebar__footer {
        padding: 16px 20px 24px;
        background: #fff;
        flex-shrink: 0;
    }
    
    aside#cart-sidebar.is-expanded .cart-sidebar__upsell {
        display: none !important;
    }
    
    aside#cart-sidebar.is-expanded a#cart-sidebar-checkout {
        background: #A8D852;
        padding: 16px;
        font-size: 16px;
    }
    
    /* Overlay behind expanded sidebar */
    .cart-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
    }
    
    .cart-sidebar-overlay.is-visible {
        display: block;
    }
    
    /* Products grid adjustment */
    .products-grid {
        width: 100% !important;
        padding-bottom: 140px;
    }
    
    .order-page-layout {
        margin-bottom: 0 !important;
    }
    .page.page-id-38267 .footer-widget-area {
        display: none;
    }
    .cart-sidebar.is-loading {
        opacity: 0.9;
    }
    .order-page-layout {
        padding: 0 !important;
    }   
    .new-main-container .products .products__grid .product-card__title {
        padding-left: 4px;
    }
    .new-main-container .products .products__grid .product-card__content {
        padding: 8px 6px;
    }
    .new-main-container .products .products__grid .product-tooltip .tooltip-message {
        left: 0 !important;
        z-index: 1000000000000;
    }
    .new-main-container .products .products__grid .product-tooltip .tooltip-message p {
        font-size: 10px;
    }
    .filter-drawer {
        top: 0;
        height: 100vh !important;
    }   
    ul.modal-product-card__meta * {
        text-align: left;
    }
}

@media (max-width: 768px) {
    div#cart-sidebar-mobile-nudge {
        position: absolute;
        top: -26px;
    }
    .cart-sidebar__mobile-content {
        width: 100%;
        flex-direction: column;
    }
    .cart-sidebar__mobile-content .cart-sidebar__mobile-total {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }   
    span#cart-sidebar-mobile-total * {
        font-size: 16px;
    }
    .cart-sidebar-column {
        bottom: 41px;
    }
    button#cart-sidebar-review-btn {
        width: 100%;
    }
    div#cart-sidebar-mobile-nudge {
        font-size: 10px;
        border-radius: 20px;
        right: 20px;
        top: -24px;
        border: 2px solid white;
    }
    .cart-sidebar__mobile-bar::before {
        background: #DA2424;
        width: 313px;
        content: '';
        height: 4px;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
    }
    button#cart-sidebar-review-btn {
        height: 46px;
        margin-top: 8px;
        line-height: 16px;
    }
    span.cart-sidebar__mobile-total-label {
        font-size: 16px;
        font-weight: 500;
    }
    aside#cart-sidebar.is-expanded .cart-sidebar__close-btn {
        color: #7F8186;
    }
    aside#cart-sidebar.is-expanded .cart-sidebar__header {
        border: 0;
        padding-bottom: 0;
    }
    .cart-sidebar__item-name {
        font-size: 14px;
    }
    .cart-sidebar__qty-value {
        font-size: 12px;
    }
    .cart-sidebar__item-price {
        font-size: 14px;
        font-weight: 600;
    }
    aside#cart-sidebar.is-expanded .cart-sidebar__items-wrapper {
        top: 14px;
    }
    aside#cart-sidebar.is-expanded #cart-sidebar-nudge {
        bottom: 3px;
    }
    aside#cart-sidebar.is-expanded .cart-sidebar__summary {
        padding-bottom: 0;
    }
    .cart-sidebar__summary-title {
        font-size: 16px;
        font-weight: 600;
    }
    .cart-sidebar__summary-row {
        font-size: 14px;
    }
    .cart-sidebar__summary-row span:first-child {
        font-weight: 600 !important;
    }
    .cart-sidebar__summary-row--total {
        font-size: 14px;
    }
    .cart-sidebar__delivery-title {
        font-size: 16px;
        font-weight: 600;
    }
    aside#cart-sidebar.is-expanded a#cart-sidebar-checkout {
        padding: 9px;
        font-size: 14px;
    }
    aside#cart-sidebar.is-expanded #cart-sidebar-nudge {
        margin-right: -2px;
    }
    .filter-drawer {
        padding-left: 35px;
    }
}








/* Smaller mobile adjustments */
@media (max-width: 480px) {
    .cart-sidebar__mobile-content {
        padding: 14px 16px;
    }
    
    .cart-sidebar__mobile-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .cart-sidebar__mobile-total-value {
        font-size: 18px;
    }
    
    aside#cart-sidebar.is-expanded .cart-sidebar__item {
        gap: 12px;
    }
    
    aside#cart-sidebar.is-expanded .cart-sidebar__item-image {
        width: 60px;
        height: 60px;
    }
}


























