/* =========================================================
   GATRAD KRUPA
   PROFESSIONAL CART PAGE
========================================================= */


/* =========================================================
   CART PAGE
========================================================= */

.cart-page {

    width: min(
        1250px,
        calc(100% - 40px)
    );

    margin: 0 auto;

    padding:
        72px 0 100px;

}


/* =========================================================
   HEADING
========================================================= */

.cart-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 28px;

    animation:
        cartFadeUp .65s ease both;

}


.cart-heading h1 {

    margin: 0;

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size:
        clamp(44px, 6vw, 68px);

    line-height: .95;

    letter-spacing: -2px;

    color:
        var(--green-dark);

}


.cart-subtitle {

    margin:
        14px 0 0;

    color:
        var(--muted);

    font-size:
        14px;

}


.cart-back-shop {

    flex-shrink: 0;

    color:
        var(--green-dark);

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        .8px;

    text-decoration: none;

    transition:
        transform .2s ease,
        color .2s ease;

}


.cart-back-shop:hover {

    color:
        var(--green);

    transform:
        translateX(-3px);

}


/* =========================================================
   SHIPPING PROGRESS
========================================================= */

.shipping-progress {

    padding:
        18px 20px;

    margin-bottom:
        30px;

    border:
        1px solid var(--border);

    border-radius:
        14px;

    background:
        rgba(255,255,255,.82);

    box-shadow:
        0 10px 35px rgba(40,45,30,.045);

    animation:
        cartFadeUp .65s .08s ease both;

}


.shipping-progress-top {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    margin-bottom:
        10px;

    color:
        var(--muted);

    font-size:
        11px;

}


.shipping-progress-top strong {

    color:
        var(--green-dark);

    font-size:
        11px;

    white-space:
        nowrap;

}


.shipping-progress-track {

    height:
        6px;

    overflow:
        hidden;

    border-radius:
        20px;

    background:
        #edf0e9;

}


.shipping-progress-bar {

    width:
        0%;

    height:
        100%;

    border-radius:
        inherit;

    background:
        var(--green);

    transition:
        width .45s cubic-bezier(.2,.8,.2,1);

}


/* =========================================================
   CART LAYOUT
========================================================= */

.cart-layout {

    display:
        grid;

    grid-template-columns:
        minmax(0, 1fr) 370px;

    gap:
        32px;

    align-items:
        start;

    animation:
        cartFadeUp .7s .14s ease both;

}


/* =========================================================
   ITEMS SECTION
========================================================= */

.cart-items-section {

    min-width:
        0;

}


.cart-section-header {

    display:
        flex;

    align-items:
        flex-end;

    justify-content:
        space-between;

    gap:
        20px;

    margin-bottom:
        15px;

}


.cart-section-header > div > span {

    display:
        block;

    margin-bottom:
        5px;

    color:
        var(--muted);

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        1.6px;

}


.cart-section-header h2 {

    margin:
        0;

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size:
        28px;

    font-weight:
        600;

    color:
        var(--text);

}


.cart-item-count {

    padding:
        7px 11px;

    border:
        1px solid var(--border);

    border-radius:
        30px;

    color:
        var(--muted);

    background:
        #fff;

    font-size:
        10px;

    font-weight:
        700;

}


/* =========================================================
   CART ITEMS CONTAINER
========================================================= */

.cart-items {

    overflow:
        hidden;

    border:
        1px solid var(--border);

    border-radius:
        18px;

    background:
        #fff;

    box-shadow:
        0 18px 55px rgba(40,45,30,.06);

}


/* =========================================================
   CART ITEM
========================================================= */

.cart-item {

    position:
        relative;

    display:
        grid;

    grid-template-columns:
        118px minmax(0,1fr) auto;

    gap:
        22px;

    align-items:
        center;

    padding:
        22px;

    border-bottom:
        1px solid var(--border);

    background:
        #fff;

    animation:
        cartItemIn .5s ease both;

    transition:
        background .25s ease;

}


.cart-item:last-child {

    border-bottom:
        0;

}


.cart-item:hover {

    background:
        #fcfcf9;

}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.cart-item-image {

    width:
        118px;

    height:
        118px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    overflow:
        hidden;

    border-radius:
        15px;

    background:
        #f6f7f3;

}


.cart-item-image img {

    width:
        100%;

    height:
        100%;

    object-fit:
        contain;

    transition:
        transform .45s cubic-bezier(.2,.8,.2,1);

}


.cart-item:hover
.cart-item-image img {

    transform:
        scale(1.08)
        rotate(1deg);

}


/* =========================================================
   PRODUCT INFO
========================================================= */

.cart-item-info {

    min-width:
        0;

}


.cart-item-category {

    display:
        inline-flex;

    margin-bottom:
        8px;

    color:
        var(--muted);

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        1.5px;

}


.cart-item-info h3 {

    margin:
        0 0 4px;

    color:
        var(--text);

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size:
        24px;

    line-height:
        1.15;

    font-weight:
        600;

}


.cart-item-info p {

    margin:
        0;

    color:
        var(--muted);

    font-size:
        10px;

    font-weight:
        600;

    letter-spacing:
        1.1px;

}


.cart-item-price {

    display:
        block;

    margin-top:
        14px;

    color:
        var(--green-dark);

    font-size:
        15px;

    font-weight:
        800;

}


/* =========================================================
   ACTIONS
========================================================= */

.cart-item-actions {

    display:
        flex;

    flex-direction:
        column;

    align-items:
        flex-end;

    justify-content:
        center;

    gap:
        12px;

}


.quantity-control {

    display:
        flex;

    align-items:
        center;

    height:
        38px;

    overflow:
        hidden;

    border:
        1px solid var(--border);

    border-radius:
        10px;

    background:
        #fff;

}


.quantity-button {

    width:
        37px;

    height:
        100%;

    padding:
        0;

    border:
        0;

    background:
        transparent;

    color:
        var(--text);

    font-size:
        17px;

    cursor:
        pointer;

    transition:
        background .2s ease,
        color .2s ease;

}


.quantity-button:hover {

    background:
        #eef2e9;

    color:
        var(--green-dark);

}


.quantity-value {

    min-width:
        32px;

    color:
        var(--text);

    text-align:
        center;

    font-size:
        12px;

    font-weight:
        800;

}


.cart-item-total {

    color:
        var(--green-dark);

    font-size:
        17px;

    font-weight:
        800;

    white-space:
        nowrap;

}


.remove-cart-item {

    padding:
        0;

    border:
        0;

    background:
        transparent;

    color:
        #a17a74;

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        1.2px;

    cursor:
        pointer;

    transition:
        color .2s ease;

}


.remove-cart-item:hover {

    color:
        #7b4038;

}


/* =========================================================
   TRUST
========================================================= */

.cart-trust {

    display:
        grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        12px;

    margin-top:
        15px;

}


.cart-trust > div {

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    min-width:
        0;

    padding:
        13px;

    border:
        1px solid var(--border);

    border-radius:
        12px;

    background:
        rgba(255,255,255,.72);

}


.trust-icon {

    width:
        34px;

    height:
        34px;

    flex-shrink:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        #eef2e9;

    font-size:
        15px;

}


.cart-trust strong {

    display:
        block;

    margin-bottom:
        2px;

    color:
        var(--text);

    font-size:
        9px;

}


.cart-trust small {

    display:
        block;

    color:
        var(--muted);

    font-size:
        8px;

    line-height:
        1.35;

}


/* =========================================================
   SUMMARY
========================================================= */

.summary {

    position:
        sticky;

    top:
        95px;

    padding:
        28px;

    border:
        1px solid var(--border);

    border-radius:
        18px;

    background:
        #fff;

    box-shadow:
        0 20px 60px rgba(40,45,30,.08);

}


.summary-heading > span {

    display:
        block;

    margin-bottom:
        6px;

    color:
        var(--muted);

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        1.7px;

}


.summary h2 {

    margin:
        0;

    color:
        var(--text);

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size:
        29px;

    font-weight:
        600;

}


.summary-rows {

    margin-top:
        24px;

}


.summary-row {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        15px;

    padding:
        12px 0;

    color:
        var(--muted);

    font-size:
        12px;

}


.summary-row strong {

    color:
        var(--text);

    font-size:
        12px;

    text-align:
        right;

}


.summary-total {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    margin-top:
        10px;

    padding:
        19px 0;

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);

}


.summary-total span {

    color:
        var(--text);

    font-size:
        15px;

    font-weight:
        700;

}


.summary-total strong {

    color:
        var(--green-dark);

    font-size:
        24px;

    font-weight:
        800;

}


.summary-note {

    margin:
        14px 0 0;

    color:
        var(--muted);

    font-size:
        9px;

    line-height:
        1.55;

}


/* =========================================================
   CHECKOUT
========================================================= */

.checkout-button {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    width:
        100%;

    min-height:
        55px;

    margin-top:
        20px;

    padding:
        0 18px;

    border-radius:
        11px;

    background:
        var(--green);

    color:
        #fff;

    text-decoration:
        none;

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        1px;

    box-shadow:
        0 10px 25px rgba(50,65,40,.12);

    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease;

}


.checkout-button:hover {

    background:
        var(--green-dark);

    transform:
        translateY(-2px);

    box-shadow:
        0 14px 30px rgba(50,65,40,.19);

}


.continue-shopping {

    display:
        block;

    margin-top:
        17px;

    color:
        var(--green);

    text-align:
        center;

    text-decoration:
        none;

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        .8px;

    transition:
        color .2s ease;

}


.continue-shopping:hover {

    color:
        var(--green-dark);

}


.clear-cart-button {

    display:
        block;

    width:
        100%;

    margin-top:
        18px;

    padding:
        7px;

    border:
        0;

    background:
        transparent;

    color:
        #aaa;

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        1.1px;

    cursor:
        pointer;

    transition:
        color .2s ease;

}


.clear-cart-button:hover {

    color:
        #7b4038;

}


/* =========================================================
   SECURE CHECKOUT
========================================================= */

.secure-checkout {

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    margin-top:
        20px;

    padding:
        13px;

    border-radius:
        10px;

    background:
        #f7f8f5;

}


.secure-checkout > span {

    font-size:
        17px;

}


.secure-checkout strong {

    display:
        block;

    margin-bottom:
        2px;

    color:
        var(--text);

    font-size:
        9px;

}


.secure-checkout small {

    color:
        var(--muted);

    font-size:
        8px;

}


/* =========================================================
   EMPTY CART
========================================================= */

.empty-cart {

    padding:
        90px 25px;

    text-align:
        center;

    border:
        1px solid var(--border);

    border-radius:
        20px;

    background:
        #fff;

    box-shadow:
        0 20px 60px rgba(40,45,30,.07);

    animation:
        cartFadeUp .7s ease both;

}


.empty-cart-icon {

    width:
        78px;

    height:
        78px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin:
        0 auto 18px;

    border-radius:
        50%;

    background:
        #eef2e9;

    font-size:
        30px;

}


.empty-cart-label {

    display:
        block;

    margin-bottom:
        9px;

    color:
        var(--muted);

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        1.7px;

}


.empty-cart h2 {

    margin:
        0;

    color:
        var(--text);

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size:
        34px;

    font-weight:
        600;

}


.empty-cart p {

    max-width:
        450px;

    margin:
        12px auto 27px;

    color:
        var(--muted);

    font-size:
        13px;

    line-height:
        1.7;

}


.empty-cart .primary-button {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        10px;

}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes cartFadeUp {

    from {

        opacity:
            0;

        transform:
            translateY(20px);

    }

    to {

        opacity:
            1;

        transform:
            translateY(0);

    }

}


@keyframes cartItemIn {

    from {

        opacity:
            0;

        transform:
            translateX(-10px);

    }

    to {

        opacity:
            1;

        transform:
            translateX(0);

    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .cart-layout {

        grid-template-columns:
            1fr;

    }


    .summary {

        position:
            static;

    }


    .cart-trust {

        grid-template-columns:
            1fr;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .cart-page {

        width:
            min(
                calc(100% - 28px),
                1250px
            );

        padding:
            45px 0 70px;

    }


    .cart-heading {

        display:
            block;

        margin-bottom:
            22px;

    }


    .cart-heading h1 {

        font-size:
            44px;

        letter-spacing:
            -1.5px;

    }


    .cart-back-shop {

        display:
            inline-block;

        margin-top:
            16px;

    }


    .shipping-progress {

        padding:
            15px;

        margin-bottom:
            22px;

    }


    .shipping-progress-top {

        align-items:
            flex-start;

    }


    .cart-section-header {

        align-items:
            center;

    }


    .cart-section-header h2 {

        font-size:
            24px;

    }


    .cart-item {

        grid-template-columns:
            82px minmax(0,1fr);

        gap:
            14px;

        padding:
            16px;

        align-items:
            start;

    }


    .cart-item-image {

        width:
            82px;

        height:
            82px;

    }


    .cart-item-info h3 {

        font-size:
            19px;

    }


    .cart-item-price {

        margin-top:
            9px;

        font-size:
            13px;

    }


    .cart-item-actions {

        grid-column:
            2;

        display:
            grid;

        grid-template-columns:
            auto 1fr;

        align-items:
            center;

        justify-content:
            start;

        gap:
            10px 14px;

        width:
            100%;

    }


    .cart-item-total {

        justify-self:
            end;

        font-size:
            15px;

    }


    .remove-cart-item {

        grid-column:
            1 / -1;

        justify-self:
            start;

    }


    .cart-trust {

        display:
            grid;

        grid-template-columns:
            1fr;

    }


    .summary {

        padding:
            22px;

    }


    .summary h2 {

        font-size:
            26px;

    }


    .empty-cart {

        padding:
            65px 18px;

    }


    .empty-cart h2 {

        font-size:
            28px;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;

        scroll-behavior:
            auto !important;

    }

}