/* =========================================================
   Base
========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #332b35;
    background: #f4f3f5;
    font-family: Georgia, serif;
}


/* =========================================================
   Cart Hero
========================================================= */

.cart-hero {
    min-height: 260px;
    padding: 60px 24px;

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

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #2c2434,
            #6d4b70
        );
}

.cart-hero-content {
    max-width: 640px;
}

.cart-hero-content > span {
    color: rgba(255, 255, 255, 0.7);

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.cart-hero-content h1 {
    margin: 10px 0;

    color: #ffffff;

    font-size: 42px;
    font-weight: 400;
}

.cart-hero-content p {
    margin: 0;

    color: rgba(255, 255, 255, 0.72);

    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.7;
}


/* =========================================================
   Messages
========================================================= */

.cart-message {
    max-width: 1200px;

    margin: 18px auto 0;
    padding: 12px 16px;

    display: flex;
    align-items: center;
    gap: 10px;

    border-radius: 10px;

    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
}

.success-message {
    color: #42664d;
    background: #eaf4ed;
}

.error-message {
    color: #994949;
    background: #faeaea;
}


/* =========================================================
   Page
========================================================= */

.cart-page {
    width: 100%;
    max-width: 1240px;

    margin: 0 auto;
    padding: 55px 25px 80px;
}


/* =========================================================
   Cart Layout
========================================================= */

.cart-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        340px;

    gap: 28px;

    align-items: start;
}


/* =========================================================
   Items Section
========================================================= */

.cart-items-section {
    padding: 25px;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 12px 35px
        rgba(44, 36, 52, 0.07);
}

.cart-section-header {
    margin-bottom: 22px;

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

    gap: 20px;
}

.cart-section-header span {
    color: #9a919b;

    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.cart-section-header h2 {
    margin: 5px 0 0;

    color: #362d38;

    font-size: 26px;
    font-weight: 400;
}

.clear-cart-button {
    padding: 9px 13px;

    display: flex;
    align-items: center;
    gap: 7px;

    border:
        1px solid rgba(148, 63, 63, 0.15);

    border-radius: 9px;

    color: #a14d4d;
    background: #fff;

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
}

.clear-cart-button:hover {
    background: #fff2f2;
}


/* =========================================================
   Cart Item
========================================================= */

.cart-item {
    position: relative;

    padding: 18px 0;

    display: grid;

    grid-template-columns:
        115px
        minmax(180px, 1fr)
        165px
        100px
        35px;

    gap: 20px;

    align-items: center;

    border-bottom:
        1px solid rgba(44, 36, 52, 0.08);
}

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


/* Image */

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

    overflow: hidden;

    border-radius: 14px;

    background: #f1eef2;
}

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

    display: block;

    object-fit: cover;
}

.cart-no-image {
    width: 100%;
    height: 100%;

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

    color: #a69da7;

    font-size: 25px;
}


/* Information */

.cart-item-label,
.cart-control-label,
.cart-item-total > span {
    color: #98909a;

    font-family: Arial, sans-serif;
    font-size: 7px;
    font-weight: 700;

    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.cart-item-info h3 {
    margin: 5px 0 10px;

    color: #382f3a;

    font-size: 19px;
    font-weight: 400;
}

.cart-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cart-item-meta span {
    color: #9a929b;

    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 600;
}

.cart-item-meta strong {
    margin-left: 3px;

    color: #605662;
}

.cart-item-price {
    margin-top: 11px;
}

.cart-item-price strong {
    color: #7b527c;

    font-size: 17px;
    font-weight: 400;
}

.cart-item-price span {
    color: #928993;

    font-family: Arial, sans-serif;
    font-size: 9px;
}


/* =========================================================
   Glass Quantity
========================================================= */

.cart-item-quantity {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 6px;
}

.cart-glass-quantity {
    width: 145px;
    height: 44px;

    padding: 4px;

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

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

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.78),
            rgba(238, 233, 240, 0.45)
        );

    box-shadow:
        0 8px 22px rgba(44, 36, 52, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

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

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

    border:
        1px solid rgba(123, 82, 124, 0.1);

    border-radius: 10px;

    color: #7b527c;
    background: rgba(255, 255, 255, 0.6);

    cursor: pointer;

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

.cart-quantity-button:hover {
    color: #ffffff;
    background: #7b527c;

    transform: translateY(-1px);
}

.cart-quantity-button:disabled {
    opacity: 0.5;

    cursor: wait;
}

.cart-glass-quantity input {
    width: 55px;

    border: 0;
    outline: 0;

    color: #443945;
    background: transparent;

    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 600;

    text-align: center;

    pointer-events: none;
}

.cart-glass-quantity input::-webkit-inner-spin-button,
.cart-glass-quantity input::-webkit-outer-spin-button {
    margin: 0;

    -webkit-appearance: none;
}

.cart-unit {
    color: #979098;

    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 600;

    letter-spacing: 0.8px;
    text-transform: uppercase;
}


/* =========================================================
   Item Total
========================================================= */

.cart-item-total {
    display: flex;
    flex-direction: column;

    gap: 5px;

    text-align: right;
}

.cart-item-total strong {
    color: #7b527c;

    font-size: 19px;
    font-weight: 400;
}


/* =========================================================
   Remove
========================================================= */

.remove-cart-form {
    margin: 0;
}

.remove-cart-button {
    width: 34px;
    height: 34px;

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

    border:
        1px solid rgba(163, 72, 72, 0.12);

    border-radius: 10px;

    color: #a24c4c;
    background: #fff;

    cursor: pointer;
}

.remove-cart-button:hover {
    color: #fff;
    background: #a24c4c;
}


/* =========================================================
   Continue Shopping
========================================================= */

.continue-shopping-link {
    margin-top: 18px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #7b527c;

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;

    text-decoration: none;

    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* =========================================================
   Summary
========================================================= */

.cart-summary {
    position: sticky;
    top: 100px;

    padding: 28px;

    background:
        rgba(255, 255, 255, 0.82);

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

    border-radius: 18px;

    box-shadow:
        0 15px 40px rgba(44, 36, 52, 0.1);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.summary-eyebrow {
    color: #9b929c;

    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.cart-summary h2 {
    margin: 5px 0 20px;

    color: #382e3a;

    font-size: 25px;
    font-weight: 400;
}

.summary-divider {
    height: 1px;

    margin: 17px 0;

    background:
        rgba(44, 36, 52, 0.08);
}

.summary-row {
    margin: 11px 0;

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

    color: #746b76;

    font-family: Arial, sans-serif;
    font-size: 10px;
}

.summary-row strong {
    color: #403641;

    font-size: 12px;
}

.summary-total {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}

.summary-total span {
    display: block;

    color: #433944;

    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
}

.summary-total small {
    max-width: 165px;

    margin-top: 4px;

    display: block;

    color: #9b939c;

    font-family: Arial, sans-serif;
    font-size: 8px;
    line-height: 1.4;
}

.summary-total > strong {
    color: #7b527c;

    font-size: 22px;
    font-weight: 400;

    white-space: nowrap;
}


/* Checkout */

.checkout-button {
    width: 100%;

    margin-top: 24px;
    padding: 14px 18px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border: 0;
    border-radius: 11px;

    color: #ffffff;
    background: #7b527c;

    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.6px;
    text-transform: uppercase;

    cursor: pointer;

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

.checkout-button:hover {
    opacity: 0.92;

    transform: translateY(-1px);
}

.secure-checkout {
    margin-top: 12px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    color: #9a929b;

    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 600;
}


/* =========================================================
   Empty Cart
========================================================= */

.empty-cart {
    max-width: 620px;

    margin: 30px auto;
    padding: 65px 30px;

    text-align: center;

    background: #ffffff;

    border-radius: 20px;

    box-shadow:
        0 12px 40px rgba(44, 36, 52, 0.07);
}

.empty-cart-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 18px;

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

    border-radius: 50%;

    color: #7b527c;
    background: #f0eaf0;

    font-size: 23px;
}

.empty-cart-eyebrow {
    color: #9a929b;

    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

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

    font-size: 30px;
    font-weight: 400;
}

.empty-cart p {
    max-width: 430px;

    margin: 0 auto 22px;

    color: #8a828b;

    font-family: Arial, sans-serif;
    font-size: 10px;
    line-height: 1.7;
}

.continue-button {
    padding: 12px 17px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    border-radius: 10px;

    color: #ffffff;
    background: #7b527c;

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;

    text-decoration: none;

    text-transform: uppercase;
}


/* =========================================================
   Notification
========================================================= */

.cart-page-notification {
    position: fixed;

    top: 90px;
    right: 25px;

    z-index: 9999;

    padding: 11px 17px;

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

    border-radius: 12px;

    color: #ffffff;
    background:
        rgba(72, 100, 80, 0.9);

    box-shadow:
        0 10px 30px rgba(44, 36, 52, 0.18);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;

    opacity: 0;
    pointer-events: none;

    transform: translateY(-8px);

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

.cart-page-notification.show {
    opacity: 1;

    transform: translateY(0);
}

.cart-page-notification.error {
    background:
        rgba(153, 67, 67, 0.92);
}


/* =========================================================
   Footer
========================================================= */

.site-footer {
    padding: 35px 20px;

    text-align: center;

    background: #ffffff;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.footer-nav a {
    color: #6d626f;

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;

    text-decoration: none;
}

.footer-copy,
.footer-credit {
    color: #aaa2ab;

    font-family: Arial, sans-serif;
    font-size: 8px;
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1050px) {

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

}


@media (max-width: 800px) {

    .cart-item {
        grid-template-columns:
            90px
            minmax(0, 1fr)
            35px;

        gap: 15px;
    }

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

    .cart-item-quantity {
        grid-column:
            1 / 3;

        align-items: flex-start;
    }

    .cart-item-total {
        grid-column:
            1 / 3;

        flex-direction: row;
        justify-content: space-between;

        text-align: left;
    }

    .remove-cart-form {
        grid-column: 3;
        grid-row: 1;
    }

}


@media (max-width: 600px) {

    .cart-page {
        padding:
            35px 14px
            60px;
    }

    .cart-hero {
        min-height: 220px;
    }

    .cart-hero-content h1 {
        font-size: 33px;
    }

    .cart-items-section {
        padding: 18px;
    }

    .cart-section-header {
        align-items: flex-start;
    }

    .clear-cart-button {
        font-size: 0;
    }

    .clear-cart-button i {
        font-size: 11px;
    }

    .cart-message {
        margin:
            14px 14px
            0;
    }

}