/* ========================================
   HavenSync Cart Page
======================================== */

.cart-page {
    position: relative;
    z-index: 2;
    max-width: 75rem;
    margin: 0 auto;
    padding: 30px 22px 50px;
}


/* Back to Shop */

.back-to-shop {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 24px;

    color: var(--tiffany2);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;

    padding: 10px 14px;

    border: 1px solid rgba(111, 243, 232, .25);
    border-radius: 999px;

    background: rgba(7, 27, 51, .35);
    backdrop-filter: blur(10px);

    transition: all .2s ease;
}

.back-to-shop:hover {
    color: var(--white);
    border-color: var(--tiffany);
    background: rgba(10, 186, 181, .18);
}


/* Cart Card */

.cart-card {
    max-width: 900px;
    margin: 0 auto;

    padding: 30px;

    border-radius: var(--radius);

    border: 1px solid var(--border);

    background: rgba(7, 27, 51, .55);

    backdrop-filter: blur(16px);

    box-shadow: var(--shadow);
}


/* Heading */

.cart-heading {
    margin-bottom: 28px;

    padding-bottom: 22px;

    border-bottom: 1px solid var(--border);
}

.cart-label {
    margin: 0 0 10px;

    color: var(--tiffany2);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.cart-heading h1 {
    margin: 0;

    font-size: clamp(32px, 5vw, 48px);

    line-height: 1.08;

    letter-spacing: -.02em;
}

.cart-heading p:last-child {
    margin: 12px 0 0;

    color: var(--muted);

    line-height: 1.6;
}


/* Cart Items */

.cart-item {
    display: grid;

    grid-template-columns: 110px 1fr auto;

    gap: 18px;

    align-items: center;

    padding: 18px 0;

    border-bottom: 1px solid var(--border);
}

.cart-item-image {
    width: 110px;
    height: 110px;

    border-radius: var(--radius2);

    overflow: hidden;

    border: 1px solid rgba(111, 243, 232, .20);

    background: rgba(3, 12, 24, .35);
}

.cart-item-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.cart-item-info h2 {
    margin: 0 0 7px;

    font-size: 19px;
}

.cart-item-info p {
    margin: 4px 0;

    color: var(--muted);

    font-size: 14px;
}

.cart-item-price {
    color: var(--tiffany2);

    font-weight: 800;
}


/* Quantity */

.cart-item-quantity {
    display: inline-flex;

    align-items: center;

    margin-top: 10px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: rgba(3, 12, 24, .35);

    overflow: hidden;
}

.cart-item-quantity button {
    width: 34px;
    height: 34px;

    border: none;

    background: transparent;

    color: var(--white);

    font-size: 18px;

    cursor: pointer;
}

.cart-item-quantity button:hover {
    background: rgba(10, 186, 181, .18);
}

.cart-item-quantity span {
    min-width: 38px;

    text-align: center;

    font-weight: 800;
}


/* Item Total */

.cart-item-total {
    color: var(--white);

    font-size: 17px;

    font-weight: 800;

    white-space: nowrap;
}


/* Cart Summary */

.cart-summary {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 24px;

    padding-top: 24px;

    border-top: 1px solid var(--border);
}

.cart-total-label {
    color: var(--muted);

    font-size: 14px;
}

.cart-total {
    margin-top: 4px;

    color: var(--tiffany2);

    font-size: 28px;

    font-weight: 800;
}

.checkout-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 14px 22px;

    border-radius: 16px;

    border: 1px solid rgba(255, 255, 255, .18);

    background: linear-gradient(
        135deg,
        var(--tiffany) 0%,
        var(--tiffany2) 100%
    );

    color: #062030;

    font-weight: 800;

    text-decoration: none;

    box-shadow: var(--shadow2);

    cursor: pointer;
}


/* Empty Cart */

.empty-cart {
    padding: 40px 20px;

    text-align: center;

    color: var(--muted);
}

.empty-cart h2 {
    margin: 0 0 8px;

    color: var(--white);
}


/* Mobile */

@media (max-width: 700px) {

    .cart-page {
        padding: 20px 16px 40px;
    }

    .cart-card {
        padding: 20px;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-total {
        grid-column: 2;
    }

    .cart-summary {
        align-items: stretch;

        flex-direction: column;
    }

    .checkout-button {
        width: 100%;
    }
}

.checkout-content {
    margin-top: 24px;
}

.checkout-content h2 {
    margin-bottom: 16px;
}

.checkout-form {
    display: grid;
    gap: 10px;
    margin-bottom: 32px;
}

.checkout-form label {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, .88);
    margin-top: 6px;
}

.checkout-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(7, 27, 51, .45);
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

.checkout-form input::placeholder {
    color: rgba(255, 255, 255, .55);
}

.checkout-form input:focus {
    border-color: rgba(111, 243, 232, .65);
    box-shadow: 0 0 0 3px rgba(10, 186, 181, .12);
}

.checkout-order {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.checkout-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.checkout-item p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, .65);
    font-size: 14px;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    font-size: 18px;
}

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

.payment-placeholder {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.payment-placeholder h2 {
    margin-bottom: 18px;
}

.payment-placeholder label {
    display: block;
    margin: 14px 0 7px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, .88);
}

.payment-placeholder input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(7, 27, 51, .45);
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

.payment-placeholder input::placeholder {
    color: rgba(255, 255, 255, .55);
}

.payment-placeholder input:focus {
    border-color: rgba(111, 243, 232, .65);
    box-shadow: 0 0 0 3px rgba(10, 186, 181, .12);
}

.payment-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/*success.html styles*/

.order-confirmation-details {
    margin-top: 24px;
}

.order-number-label {
    margin-top: 24px;
    margin-bottom: 6px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted2);
}

.order-number {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--tiffany2);
    letter-spacing: 1px;
}

.customer-order-details {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(7, 27, 51, .35);
    box-shadow: var(--shadow2);
}

.customer-order-details p {
    margin: 6px 0;
}

.customer-order-details strong {
    display: block;
    margin-top: 16px;
    margin-bottom: 4px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tiffany2);
}

.customer-order-details strong:first-child {
    margin-top: 0;
}

.order-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 18px;
}

.order-total strong {
    color: var(--tiffany2);
}

.order-total span {
    font-weight: 700;
    color: var(--white);
}

.order-item:last-child {
    border-bottom: none;
}