/* =========================================
   STAYEXOTIC CART PAGE
========================================= */

.cart-body {
    margin: 0;
    background: #000;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
    animation: cartPageFade 0.7s ease forwards;
}


/* =========================================
   NAVBAR
========================================= */

.cart-navbar {
    width: 100%;
    height: 82px;
    padding: 0 48px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    background: #000;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.12);

    position: relative;
    z-index: 100;
}

.cart-logo {
    width: fit-content;
}

.cart-logo img {
    width: 120px;
    height: auto;
    display: block;
    filter: invert(1);

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.cart-logo:hover img {
    transform: scale(1.04);
    opacity: 0.75;
}

.cart-nav-links {
    display: flex;
    align-items: center;
    gap: 42px;
}

.cart-nav-links a,
.cart-nav-right a {
    color: #fff;
    text-decoration: none;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;

    position: relative;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.cart-nav-links a::after,
.cart-nav-right a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -8px;

    width: 0;
    height: 1px;

    background: #fff;

    transition: width 0.25s ease;
}

.cart-nav-links a:hover,
.cart-nav-right a:hover {
    opacity: 0.7;
    transform: translateY(-1px);
}

.cart-nav-links a:hover::after,
.cart-nav-right a:hover::after {
    width: 100%;
}

.cart-nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}


/* =========================================
   MAIN
========================================= */

.cart-main {
    width: 100%;
}


/* =========================================
   HERO
========================================= */

.cart-hero {
    padding: 70px 48px 60px;
}

.cart-top-line {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 55px;

    font-size: 9px;
    letter-spacing: 3px;

    opacity: 0;

    animation:
        cartFadeUp
        0.8s ease
        0.2s forwards;
}

.cart-hero h1 {
    margin: 0;

    font-size:
        clamp(
            90px,
            14vw,
            220px
        );

    line-height: 0.8;
    letter-spacing: -9px;

    opacity: 0;

    animation:
        cartTitleEnter
        1s ease
        0.35s forwards;
}

.cart-hero > p {
    margin: 38px 0 0;

    font-size: 9px;
    letter-spacing: 3px;

    opacity: 0;

    animation:
        cartFadeUp
        0.8s ease
        0.6s forwards;
}


/* =========================================
   CART CONTENT
========================================= */

.cart-content {
    padding: 0 48px 100px;

    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(300px, 0.8fr);

    gap: 50px;

    align-items: start;
}


/* =========================================
   LEFT SIDE
========================================= */

.cart-left {
    min-width: 0;
}

.cart-list-heading {
    min-height: 65px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.15);

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.15);
}

.cart-list-heading span {
    font-size: 9px;
    letter-spacing: 3px;
    opacity: 0.5;
}


/* =========================================
   CART ITEMS
========================================= */

.cart-items {
    width: 100%;
}

.cart-item {
    min-height: 220px;

    padding: 26px 0;

    display: grid;

    grid-template-columns:
        160px
        1fr;

    gap: 28px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.12);
}


/* PRODUCT IMAGE */

.cart-item img {
    width: 160px;
    height: 190px;

    object-fit: cover;

    display: block;

    background: #151515;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);
}


/* PRODUCT INFO */

.cart-item > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 6px 0;
}

.cart-item h2 {
    margin: 0 0 10px;

    color: #fff;

    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cart-item p {
    margin: 0 0 10px;

    color: #bdbdbd;

    font-size: 12px;
}

.cart-item-size {
    margin-bottom: 22px !important;

    color: #8e8e8e !important;

    font-size: 9px !important;

    letter-spacing: 2px;
}


/* =========================================
   QUANTITY CONTROL
========================================= */

.quantity-controls {
    display: inline-flex;
    align-items: center;

    height: 42px;

    margin-bottom: 22px;

    border:
        1px solid
        rgba(255, 255, 255, 0.22);

    background: #111;

    overflow: hidden;
}

.quantity-controls button {
    width: 42px;
    height: 42px;

    border: none;

    background: transparent;
    color: #fff;

    font-size: 16px;
    font-weight: 300;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.quantity-controls button:hover {
    background: #fff;
    color: #000;
}

.quantity-controls span {
    width: 54px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #151515;

    color: #fff;

    font-size: 11px;

    border-left:
        1px solid
        rgba(255, 255, 255, 0.16);

    border-right:
        1px solid
        rgba(255, 255, 255, 0.16);
}


/* =========================================
   REMOVE BUTTON
========================================= */

.cart-item > div > button {
    padding: 0 0 5px;

    border: none;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.35);

    background: transparent;

    color: #aaa;

    cursor: pointer;

    font-size: 8px;

    letter-spacing: 2px;

    transition:
        color 0.25s ease,
        border-color 0.25s ease;
}

.cart-item > div > button:hover {
    color: #fff;
    border-color: #fff;
}


/* =========================================
   EMPTY CART
========================================= */

.cart-items > p {
    min-height: 280px;

    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.12);

    color: #aaa;

    font-size: 11px;
    letter-spacing: 3px;

    text-transform: uppercase;
}


/* =========================================
   ORDER SUMMARY
========================================= */

.cart-summary {
    position: sticky;

    top: 25px;

    padding: 0 28px 30px;

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    background: #0a0a0a;
}

.summary-top {
    min-height: 65px;

    display: flex;
    align-items: center;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.15);
}

.summary-top span {
    color: #fff;

    font-size: 9px;
    letter-spacing: 3px;
}

.summary-row {
    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.1);
}

.summary-row span {
    color: #777;

    font-size: 8px;
    letter-spacing: 2px;
}

.summary-row strong {
    color: #fff;

    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1px;
}

.summary-total {
    padding: 28px 0;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.summary-total span {
    color: #aaa;

    font-size: 9px;
    letter-spacing: 2px;
}

.summary-total strong {
    color: #fff;

    font-size: 30px;
    font-weight: 600;
    letter-spacing: -1px;
}


/* =========================================
   CHECKOUT
========================================= */

.checkout-button {
    width: 100%;

    padding: 18px 20px;

    border:
        1px solid #fff;

    background: #fff;

    color: #000;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.checkout-button:hover {
    background: #171717;
    color: #fff;

    transform: translateY(-3px);
}

.checkout-button span {
    font-size: 16px;
}

.checkout-note {
    margin: 16px 0 0;

    color: #707070;

    font-size: 7px;

    letter-spacing: 2px;

    text-align: center;
}


/* =========================================
   BOTTOM
========================================= */

.cart-bottom {
    min-height: 120px;

    padding: 0 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.12);
}

.cart-bottom a {
    color: #fff;

    text-decoration: none;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.cart-bottom a:hover {
    opacity: 0.5;

    transform: translateX(-4px);
}

.cart-bottom span {
    color: #777;

    font-size: 8px;
    letter-spacing: 3px;
}


/* =========================================
   ANIMATIONS
========================================= */

@keyframes cartPageFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

@keyframes cartFadeUp {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@keyframes cartTitleEnter {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 950px) {

    .cart-navbar {
        padding: 0 25px;
    }

    .cart-nav-links {
        gap: 22px;
    }

    .cart-nav-right {
        gap: 15px;
    }

    .cart-hero {
        padding:
            60px
            25px
            50px;
    }

    .cart-content {
        padding:
            0
            25px
            80px;

        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .cart-bottom {
        padding:
            0
            25px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .cart-navbar {
        height: auto;
        min-height: 90px;

        padding: 18px;

        display: flex;
        flex-wrap: wrap;

        gap: 18px;
    }

    .cart-logo {
        margin-right: auto;
    }

    .cart-logo img {
        width: 110px;
    }

    .cart-nav-links {
        order: 3;

        width: 100%;

        justify-content: space-between;

        padding-top: 15px;

        border-top:
            1px solid
            rgba(255, 255, 255, 0.12);
    }

    .cart-hero {
        padding:
            50px
            18px
            40px;
    }

    .cart-top-line span:last-child {
        display: none;
    }

    .cart-hero h1 {
        font-size: 82px;

        letter-spacing: -5px;
    }

    .cart-content {
        padding:
            0
            18px
            65px;

        gap: 30px;
    }

    .cart-list-heading span:last-child {
        display: none;
    }

    .cart-item {
        min-height: 170px;

        grid-template-columns:
            105px
            1fr;

        gap: 17px;
    }

    .cart-item img {
        width: 105px;
        height: 135px;
    }

    .cart-item h2 {
        font-size: 13px;
    }

    .cart-item p {
        font-size: 10px;
    }

    .quantity-controls {
        height: 36px;
        margin-bottom: 14px;
    }

    .quantity-controls button {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .quantity-controls span {
        width: 42px;
        height: 36px;
        font-size: 10px;
    }

    .cart-summary {
        padding:
            0
            20px
            25px;
    }

    .cart-bottom {
        min-height: 100px;

        padding:
            0
            18px;
    }

    .cart-bottom span {
        display: none;
    }

}