/* =========================================
   GD COLLECTIONS - CART PAGE
========================================= */

.gd-cart-page {
    background: #ffffff;
}


/* =========================================
   CART HERO
========================================= */

.gd-cart-hero {
    padding: 65px 0 55px;

    background: var(--light);
}

.gd-cart-hero .section-eyebrow {
    display: block;

    margin-bottom: 10px;

    color: var(--primary);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;
}

.gd-cart-hero h1 {
    margin: 0 0 12px;

    color: var(--dark);

    font-size: 42px;
    line-height: 1.15;
}

.gd-cart-hero p {
    max-width: 650px;

    margin: 0;

    color: #666666;

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================
   CART SECTION
========================================= */

.gd-cart-section {
    padding: 65px 0 90px;
}

.gd-cart-layout {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 360px;

    gap: 45px;

    align-items: start;
}


/* =========================================
   CART PRODUCTS
========================================= */

.gd-cart-products {
    min-width: 0;
}

.gd-cart-header {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 100px 130px 110px;

    gap: 15px;

    padding: 0 0 15px;

    border-bottom: 1px solid var(--border);

    color: #888888;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.gd-cart-header span:nth-child(2),
.gd-cart-header span:nth-child(3),
.gd-cart-header span:nth-child(4) {
    text-align: right;
}


/* =========================================
   CART ITEM
========================================= */

.gd-cart-item {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 100px 130px 110px;

    gap: 15px;

    align-items: center;

    padding: 25px 0;

    border-bottom: 1px solid var(--border);
}


/* =========================================
   PRODUCT
========================================= */

.gd-cart-product {
    display: flex;

    align-items: center;

    gap: 18px;

    min-width: 0;
}

.gd-cart-product-image {
    width: 105px;
    height: 105px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 12px;

    background: var(--light);
}

.gd-cart-product-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.gd-cart-product-info {
    min-width: 0;
}

.gd-cart-product-info > a,
.gd-cart-product-info > span {
    display: block;

    margin-bottom: 7px;

    color: var(--dark);

    font-size: 16px;

    font-weight: 600;

    line-height: 1.4;

    text-decoration: none;
}

.gd-cart-product-info > a:hover {
    color: var(--primary);
}


/* PRODUCT META */

.gd-cart-product-meta {
    margin-bottom: 8px;

    color: #888888;

    font-size: 12px;
}

.gd-cart-product-meta dl {
    margin: 0;
}


/* REMOVE */

.gd-cart-remove .remove {
    color: #999999 !important;

    font-size: 12px;

    text-decoration: none;
}

.gd-cart-remove .remove:hover {
    color: #b23b2b !important;
}


/* =========================================
   PRICE
========================================= */

.gd-cart-price {
    color: #555555;

    font-size: 14px;

    text-align: right;
}


/* =========================================
   QUANTITY
========================================= */

.gd-cart-quantity {
    text-align: right;
}

.gd-cart-quantity .quantity {
    display: inline-flex;

    margin: 0 !important;
}

.gd-cart-quantity .quantity input {
    width: 70px;
    height: 42px;

    padding: 0 8px;

    border: 1px solid var(--border);

    border-radius: 22px;

    background: #ffffff;

    color: var(--dark);

    font-size: 14px;

    text-align: center;

    outline: none;
}

.gd-cart-quantity .quantity input:focus {
    border-color: var(--primary);
}


/* =========================================
   SUBTOTAL
========================================= */

.gd-cart-subtotal {
    color: var(--dark);

    font-size: 15px;

    font-weight: 700;

    text-align: right;
}


/* =========================================
   CART ACTIONS
========================================= */

.gd-cart-actions {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding-top: 25px;
}


/* COUPON */

.gd-cart-coupon {
    display: flex;

    gap: 10px;
}

.gd-cart-coupon .input-text {
    width: 180px;

    height: 44px;

    padding: 0 14px;

    border: 1px solid var(--border);

    border-radius: 22px;

    outline: none;

    box-sizing: border-box;
}

.gd-cart-coupon .input-text:focus {
    border-color: var(--primary);
}


/* BUTTON */

.gd-cart-actions .button {
    min-height: 44px;

    padding: 0 20px;

    border: 0;

    border-radius: 22px;

    background: var(--dark);

    color: #ffffff;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;
}

.gd-cart-actions .button:hover {
    background: var(--primary);

    color: #ffffff;
}


/* =========================================
   CART TOTALS
========================================= */

.gd-cart-totals {
    padding: 28px;

    border: 1px solid var(--border);

    border-radius: 16px;

    background: var(--light);
}

.gd-cart-totals h2 {
    margin: 0 0 25px;

    color: var(--dark);

    font-size: 24px;
}


/* TOTAL ROW */

.gd-cart-total-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 14px 0;

    border-bottom: 1px solid var(--border);

    color: #666666;

    font-size: 14px;
}

.gd-cart-total-row strong {
    color: var(--dark);

    font-weight: 600;
}


/* SHIPPING */

.gd-cart-shipping {
    padding: 14px 0;

    border-bottom: 1px solid var(--border);

    color: #666666;

    font-size: 13px;
}


/* =========================================
   FINAL TOTAL
========================================= */

.gd-cart-total-final {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 22px 0;

    color: var(--dark);

    font-size: 17px;

    font-weight: 600;
}

.gd-cart-total-final strong {
    color: var(--primary);

    font-size: 22px;

    font-weight: 700;
}


/* =========================================
   CHECKOUT BUTTON
========================================= */

.gd-cart-checkout {
    margin-top: 5px;
}

.gd-cart-checkout .checkout-button {
    display: flex !important;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 50px;

    padding: 0 20px;

    border: 0 !important;

    border-radius: 26px;

    background: var(--primary) !important;

    color: #ffffff !important;

    font-size: 14px;

    font-weight: 600;

    text-align: center;

    text-decoration: none;

    transition:
        background 0.25s ease,
        transform 0.2s ease;
}

.gd-cart-checkout .checkout-button:hover {
    background: var(--dark) !important;

    color: #ffffff !important;

    transform: translateY(-1px);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

    .gd-cart-layout {
        grid-template-columns: 1fr;
    }

    .gd-cart-totals {
        max-width: 500px;
    }

}


@media (max-width: 700px) {

    .gd-cart-hero {
        padding: 45px 0;
    }

    .gd-cart-hero h1 {
        font-size: 32px;
    }

    .gd-cart-section {
        padding: 45px 0 65px;
    }

    .gd-cart-header {
        display: none;
    }

    .gd-cart-item {
        grid-template-columns: 1fr;

        gap: 15px;

        padding: 20px 0;
    }

    .gd-cart-product {
        align-items: flex-start;
    }

    .gd-cart-product-image {
        width: 85px;
        height: 85px;
    }

    .gd-cart-price,
    .gd-cart-quantity,
    .gd-cart-subtotal {
        text-align: left;
    }

    .gd-cart-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .gd-cart-coupon {
        width: 100%;
    }

    .gd-cart-coupon .input-text {
        flex: 1;

        width: auto;
    }

    .gd-cart-actions .button {
        width: 100%;
    }

}

/* =========================================
   CART QUANTITY INPUT
========================================= */

.gd-cart-quantity {
    text-align: right;
}

.gd-cart-qty {
    display: inline-block !important;

    width: 70px !important;
    height: 42px !important;

    margin: 0 !important;
    padding: 0 10px !important;

    border: 1px solid var(--border) !important;
    border-radius: 22px !important;

    background: #ffffff !important;
    color: var(--dark) !important;

    font-family: inherit !important;
    font-size: 14px !important;

    text-align: center !important;

    outline: none !important;

    box-sizing: border-box !important;

    appearance: auto !important;
    -webkit-appearance: auto !important;
}

.gd-cart-qty:focus {
    border-color: var(--primary) !important;
}