body:has(.am-cart-page) .am-search,
body:has(.am-cart-page) .am-category-strip {
    display:none !important;
}

body:has(.am-cart-page) .am-footer,
body:has(.am-cart-page) .am-catalog-mobile-footer {
    display:none !important;
}

.am-cart-page{
    background:#F7F8F5;
    min-height:100vh;
    padding:20px 0 120px;
    color:#162019;
}

.am-cart-shell{
    width:min(1180px,calc(100% - 32px));
    margin:0 auto;
}

.am-cart-back{
    display:inline-flex;
    align-items:center;
    gap:7px;
    min-height:44px;
    color:#0F5132;
    text-decoration:none;
    font-weight:700;
    margin-bottom:12px;
}

.am-cart-back i{
    font-size:20px;
}

.am-cart-intro{
    margin-bottom:22px;
}

.am-cart-kicker{
    display:block;
    color:#D6A93B;
    font-size:12px;
    font-weight:800;
    letter-spacing:.15em;
    margin-bottom:7px;
}

.am-cart-intro h1{
    margin:0;
    font-size:34px;
    line-height:1.05;
    letter-spacing:-.04em;
    font-weight:850;
}

.am-cart-intro p{
    margin:8px 0 0;
    color:#6B746E;
    font-size:16px;
}

.am-cart-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 360px;
    gap:24px;
    align-items:start;
}

.am-cart-groups{
    display:grid;
    gap:16px;
}

.am-cart-seller-card,
.am-cart-summary-card,
.am-cart-empty{
    background:#fff;
    border:1px solid #E0E5E1;
    border-radius:18px;
    box-shadow:0 8px 28px rgba(15,81,50,.04);
}

.am-cart-seller-card{
    padding:18px;
}

.am-cart-seller-head{
    display:flex;
    align-items:center;
    gap:13px;
    padding-bottom:16px;
    border-bottom:1px solid #E6E9E7;
}

.am-cart-store-avatar{
    width:52px;
    height:52px;
    flex:0 0 52px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#0F5132;
    color:#fff;
    font-weight:850;
    font-size:17px;
}

.am-cart-store-copy h2{
    margin:0;
    font-size:18px;
    font-weight:850;
    letter-spacing:-.02em;
}

.am-cart-verified{
    margin-top:3px;
    display:flex;
    align-items:center;
    gap:5px;
    color:#17915F;
    font-size:13px;
    font-weight:750;
}

.am-cart-item{
    padding:18px 0;
    border-bottom:1px solid #E8EBE9;
}

.am-cart-item:last-child{
    border-bottom:0;
    padding-bottom:0;
}

.am-cart-product-row{
    display:grid;
    grid-template-columns:112px minmax(0,1fr) auto;
    gap:16px;
    align-items:start;
}

.am-cart-thumb{
    width:112px;
    aspect-ratio:1/1;
    overflow:hidden;
    border-radius:12px;
    background:#EEF2EF;
}

.am-cart-thumb img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

.am-cart-thumb-placeholder{
    width:100%;
    height:100%;
    display:grid;
    place-items:center;
    color:#6B746E;
    font-size:30px;
}

.am-cart-product-info h3{
    margin:0;
    font-size:18px;
    font-weight:850;
}

.am-cart-unit-price{
    margin-top:3px;
    font-size:16px;
    font-weight:800;
}

.am-cart-variant{
    margin-top:5px;
    color:#6B746E;
    font-size:14px;
}

.am-cart-offer-badge{
    width:max-content;
    margin-top:8px;
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:5px 8px;
    border-radius:999px;
    background:#FFF6DB;
    color:#8C6711;
    font-size:12px;
    font-weight:750;
}

.am-cart-remove{
    min-height:44px;
    border:0;
    background:transparent;
    color:#6B746E;
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-weight:650;
}

.am-cart-remove:hover{
    color:#9D2D2D;
}

.am-cart-item-bottom{
    margin-top:14px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
}

.am-cart-stepper{
    height:44px;
    display:inline-grid;
    grid-template-columns:46px 48px 46px;
    border:1px solid #DCE2DE;
    border-radius:11px;
    overflow:hidden;
    background:#fff;
}

.am-cart-stepper button{
    border:0;
    background:#F7F8F5;
    display:grid;
    place-items:center;
    font-size:18px;
    color:#162019;
}

.am-cart-stepper button:disabled{
    opacity:.35;
}

.am-cart-qty{
    display:grid;
    place-items:center;
    font-weight:800;
    border-inline:1px solid #E4E8E5;
}

.am-cart-line-total{
    font-size:18px;
    font-weight:850;
}

.am-cart-fixed-qty{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.am-cart-fixed-qty span{
    color:#6B746E;
    font-size:12px;
}

.am-cart-offer-note{
    margin-top:14px;
    display:flex;
    align-items:center;
    gap:9px;
    padding:11px 13px;
    border-radius:11px;
    background:#FFF7DF;
    color:#7A5A10;
    font-size:13px;
    font-weight:650;
}

.am-cart-stock-note{
    margin-top:9px;
    color:#9A5A00;
    font-size:12px;
}

.am-cart-seller-subtotal{
    margin-top:15px;
    padding-top:15px;
    border-top:1px solid #E4E8E5;
    display:flex;
    justify-content:space-between;
    gap:12px;
}

.am-cart-seller-subtotal span{
    color:#6B746E;
}

.am-cart-summary{
    position:sticky;
    top:20px;
}

.am-cart-summary-card{
    padding:22px;
}

.am-cart-summary-card h2{
    margin:0 0 20px;
    font-size:22px;
    font-weight:850;
}

.am-cart-summary-row,
.am-cart-summary-total{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:flex-start;
}

.am-cart-summary-row{
    padding:9px 0;
    font-size:15px;
}

.am-cart-summary-muted{
    color:#6B746E;
    text-align:right;
}

.am-cart-summary-divider{
    height:1px;
    background:#E5E9E6;
    margin:13px 0;
}

.am-cart-summary-total{
    font-size:21px;
    font-weight:850;
}

.am-cart-secure{
    margin:18px 0 12px;
    display:flex;
    align-items:center;
    gap:7px;
    color:#55605A;
    font-size:13px;
}

.am-cart-secure i{
    color:#0F5132;
}

.am-cart-primary-btn,
.am-cart-secondary-btn{
    min-height:50px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-weight:800;
    border-radius:12px;
}

.am-cart-primary-btn{
    background:#0F6B50;
    color:#fff;
}

.am-cart-secondary-btn{
    background:#EEF5F1;
    color:#0F5132;
}

.am-cart-checkout-btn{
    width:100%;
}

.am-cart-continue{
    min-height:44px;
    margin-top:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#0F5132;
    text-decoration:none;
    font-weight:750;
}

.am-cart-empty{
    max-width:620px;
    margin:0 auto;
    padding:48px 28px;
    text-align:center;
}

.am-cart-empty-icon{
    width:74px;
    height:74px;
    margin:0 auto 16px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#E9F4EE;
    color:#0F5132;
    font-size:32px;
}

.am-cart-empty h2{
    margin:0;
    font-size:25px;
}

.am-cart-empty p{
    max-width:440px;
    margin:10px auto 20px;
    color:#6B746E;
}

.am-cart-empty-actions{
    max-width:330px;
    margin:0 auto;
    display:grid;
    gap:10px;
}

.am-cart-alert{
    margin-bottom:14px;
    padding:12px 14px;
    border-radius:10px;
}

.am-cart-alert-success{
    background:#E9F4EE;
    color:#0F5132;
}

.am-cart-alert-error{
    background:#FFF0F0;
    color:#8E2B2B;
}

.am-cart-alert ul{
    margin:0;
    padding-left:18px;
}

@media(max-width:767px){

    .am-cart-page{
        padding-top:14px;
        padding-bottom:120px;
    }

    .am-cart-shell{
        width:min(100% - 28px,680px);
    }

    .am-cart-layout{
        grid-template-columns:1fr;
        gap:16px;
    }

    .am-cart-summary{
        position:static;
    }

    .am-cart-intro h1{
        font-size:32px;
    }

    .am-cart-seller-card{
        padding:16px;
    }

    .am-cart-product-row{
        grid-template-columns:96px minmax(0,1fr);
        gap:14px;
    }

    .am-cart-thumb{
        width:96px;
    }

    .am-cart-remove-form{
        grid-column:2;
    }

    .am-cart-remove{
        padding:0;
        min-height:36px;
    }

    .am-cart-item-bottom{
        padding-left:110px;
        margin-top:6px;
    }

    .am-cart-summary-card{
        padding:20px;
    }

    .am-cart-summary-card h2{
        font-size:21px;
    }
}

@media(max-width:390px){

    .am-cart-shell{
        width:min(100% - 22px,680px);
    }

    .am-cart-product-row{
        grid-template-columns:84px minmax(0,1fr);
        gap:12px;
    }

    .am-cart-thumb{
        width:84px;
    }

    .am-cart-product-info h3{
        font-size:16px;
    }

    .am-cart-item-bottom{
        padding-left:96px;
    }

    .am-cart-stepper{
        grid-template-columns:42px 44px 42px;
    }

    .am-cart-line-total{
        font-size:16px;
    }
}
