/* CART_PAGE_V1 */

.cart-page{
    width:100%;
    height:100%;
    min-height:0;
    display:grid;
    grid-template-rows:auto minmax(0,1fr) auto;
    overflow:hidden;
    padding:0;
    background:#f6f6f6;
}

.cart-header{
    position:relative;
    display:flex;
    align-items:center;
    min-height:78px;
    padding:16px 18px 14px 52px;
    background:#fff;
    border-bottom:1px solid #eee;
}

.cart-back{
    position:absolute;
    left:16px;
    top:50%;
    transform:translateY(-50%);
    color:#111;
    font-size:32px;
    text-decoration:none;
}

.cart-header h1{
    margin:0;
    font-size:25px;
    font-weight:900;
}

.cart-header p{
    margin:3px 0 0;
    color:#999;
    font-size:12px;
}

.cart-scroll{
    min-height:0;
    overflow-y:auto;
    padding:12px 0 24px;
    background:#f6f6f6;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
}

.cart-scroll::-webkit-scrollbar{
    display:none;
}

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

.cart-brand-group{
    background:#fff;
    padding:0 14px;
}

.cart-brand-head{
    min-height:52px;
    display:flex;
    align-items:center;
    gap:10px;
    border-bottom:1px solid #f1f1f1;
}

.cart-brand-head strong{
    font-size:16px;
    font-weight:900;
}

.cart-item{
    position:relative;
    display:grid;
    grid-template-columns:28px 92px minmax(0,1fr);
    gap:10px;
    padding:15px 0;
    border-bottom:1px solid #f1f1f1;
}

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

.cart-check{
    display:flex;
    align-items:center;
    justify-content:center;
}

.cart-check input,
.cart-select-all input{
    appearance:none;
    -webkit-appearance:none;
    width:22px;
    height:22px;
    margin:0;
    border:2px solid #ccc;
    border-radius:50%;
    background:#fff;
}

.cart-check input:checked,
.cart-select-all input:checked{
    border-color:#111;
    background:#ffd900;
    box-shadow:inset 0 0 0 5px #ffd900;
}

.cart-check input:checked::after,
.cart-select-all input:checked::after{
    content:"✓";
    display:grid;
    place-items:center;
    width:100%;
    height:100%;
    color:#111;
    font-size:14px;
    font-weight:900;
}

.cart-item-image{
    width:92px;
    aspect-ratio:3/4;
    overflow:hidden;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:#f3f3f3;
    color:#aaa;
    font-size:10px;
    text-decoration:none;
}

.cart-item-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.cart-item-copy{
    min-width:0;
}

.cart-item-name{
    display:-webkit-box;
    overflow:hidden;
    color:#111;
    font-size:13px;
    line-height:1.35;
    font-weight:750;
    text-decoration:none;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}

.cart-item-option{
    margin-top:7px;
    padding:6px 8px;
    display:inline-block;
    border-radius:7px;
    background:#f3f3f3;
    color:#777;
    font-size:11px;
}

.cart-item-unavailable{
    margin-top:6px;
    color:#999;
    font-size:11px;
}

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

.cart-item-price{
    color:#111;
    font-size:17px;
    font-weight:900;
}

.cart-stepper{
    display:grid;
    grid-template-columns:30px 32px 30px;
    border:1px solid #ddd;
    border-radius:8px;
    overflow:hidden;
}

.cart-stepper button{
    height:30px;
    border:0;
    background:#f7f7f7;
    color:#111;
    font-size:15px;
}

.cart-stepper span{
    display:grid;
    place-items:center;
    height:30px;
    background:#fff;
    font-size:11px;
    font-weight:800;
}



.cart-item.is-unavailable{
    opacity:.55;
}

.cart-checkout-bar{
    min-height:68px;
    display:grid;
    grid-template-columns:auto minmax(0,1fr) 112px;
    align-items:center;
    gap:12px;
    padding:8px 12px calc(8px + env(safe-area-inset-bottom));
    background:#fff;
    border-top:1px solid #eee;
    z-index:20;
}

.cart-select-all{
    display:flex;
    align-items:center;
    gap:7px;
    font-size:12px;
}

.cart-total{
    min-width:0;
    display:flex;
    align-items:baseline;
    justify-content:flex-end;
    gap:5px;
}

.cart-total small{
    color:#777;
    font-size:11px;
}

.cart-total strong{
    color:#111;
    font-size:18px;
    font-weight:900;
}

.cart-checkout{
    height:48px;
    border:0;
    border-radius:12px;
    background:#ffd900;
    color:#111;
    font:inherit;
    font-size:15px;
    font-weight:900;
}

.cart-checkout:disabled{
    opacity:.4;
}

.cart-loading,
.cart-empty{
    min-height:55vh;
    display:grid;
    place-items:center;
    align-content:center;
    text-align:center;
    color:#aaa;
    font-size:13px;
}

.cart-empty strong{
    color:#111;
    font-size:19px;
    font-weight:900;
}

.cart-empty p{
    margin:9px 0 20px;
}

.cart-primary-action{
    width:150px;
    height:44px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:#111;
    color:#fff;
    font-weight:800;
    text-decoration:none;
}


/* CART_SWIPE_DELETE_V1 */

.cart-item{
    display:block;
    padding:0;
    overflow:hidden;
}

.cart-swipe-track{
    position:relative;
    z-index:2;

    display:grid;
    grid-template-columns:
        28px
        92px
        minmax(0,1fr);

    gap:10px;

    padding:15px 0;

    background:#fff;

    transform:translateX(0);

    transition:
        transform .18s ease;

    will-change:transform;

    touch-action:pan-y;
}

.cart-item.is-swipe-open
.cart-swipe-track{
    transform:translateX(-82px);
}

.cart-swipe-delete{
    position:absolute;

    top:0;
    right:0;
    bottom:0;

    z-index:1;

    width:82px;

    border:0;

    background:#e53935;
    color:#fff;

    font:inherit;
    font-size:14px;
    font-weight:900;

    -webkit-tap-highlight-color:
        transparent;
}

.cart-swipe-delete:active{
    background:#c62828;
}



/* CART_HEADER_SWIPE_HINT_V1 */

.cart-header-hint{
    margin-left:auto;
    margin-right:20px;

    color:#555;

    font-size:14px;
    line-height:1;

    font-weight:750;

    white-space:nowrap;
}

