/* Font tokens inherit from global style.css :root */

/* =========================================================
   CONCEIVE LIFE - SHOPPING CART
========================================================= */

.cart-page {
    --cart-navy: #0b2c43;
    --cart-navy-light: #153e58;
    --cart-pink: #f56f99;
    --cart-pink-dark: #eb5684;
    --cart-soft-pink: #fff0f5;
    --cart-border: #f3d2dc;
    --cart-text: #74808b;
    position: relative;
    overflow: hidden;
    color: var(--cart-navy);
    background:
        radial-gradient(circle at 7% 25%, rgba(245, 111, 153, 0.13), transparent 24%),
        radial-gradient(circle at 94% 60%, rgba(11, 44, 67, 0.08), transparent 22%),
        linear-gradient(180deg, #fff8fb 0%, #ffffff 48%, #fff4f8 100%);
}

.cart-page [hidden] {
    display: none !important;
}

.cart-page button,
.cart-page a {
    transition: all 0.25s ease;
}

/* Hero */

.cart-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 68px;
    text-align: center;
    background:
        radial-gradient(circle at 14% 24%, rgba(245, 111, 153, 0.2), transparent 25%),
        radial-gradient(circle at 86% 78%, rgba(11, 44, 67, 0.1), transparent 25%),
        radial-gradient(circle, rgba(245, 111, 153, 0.13) 1px, transparent 1.5px),
        linear-gradient(135deg, #fff0f5, #ffffff 51%, #ffedf4);
    background-size: auto, auto, 22px 22px, auto;
    border-bottom: 1px solid #f7dbe4;
}

.cart-hero::before,
.cart-hero::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    pointer-events: none;
}

.cart-hero::before {
    top: -95px;
    left: -70px;
    width: 220px;
    height: 220px;
    border: 42px solid rgba(245, 111, 153, 0.07);
}

.cart-hero::after {
    right: -60px;
    bottom: -110px;
    width: 260px;
    height: 260px;
    border: 46px solid rgba(11, 44, 67, 0.05);
}

.cart-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.cart-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 17px;
    padding: 8px 16px;
    color: var(--cart-pink-dark);
    background: #ffffff;
    border: 1px solid var(--cart-border);
    border-radius: 30px;
    box-shadow: 0 8px 24px rgba(245, 111, 153, 0.14);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.cart-hero h1 {
    margin: 0 0 14px;
    color: var(--cart-navy);
    font-family: var(--font-heading);
    font-size: clamp(40px, 5vw, 60px);
    font-weight: var(--font-weight-heading);
    line-height: 1.05;
    text-shadow: 0 5px 18px rgba(11, 44, 67, 0.08);
}

.cart-hero p {
    max-width: 650px;
    margin: 0 auto 22px;
    color: #687581;
    font-size: 14px;
    line-height: 1.8;
}

.cart-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
}

.cart-breadcrumb a {
    color: var(--cart-navy);
    text-decoration: none;
}

.cart-breadcrumb a:hover,
.cart-breadcrumb span {
    color: var(--cart-pink-dark);
}

.cart-breadcrumb i {
    color: #c5a6b0;
    font-size: 8px;
}

/* Content */

.cart-section {
    padding: 66px 0 78px;
}

.cart-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
    padding: 23px 26px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(243, 210, 220, 0.9);
    border-radius: 18px;
    box-shadow: 0 13px 34px rgba(11, 44, 67, 0.07);
    backdrop-filter: blur(8px);
}

.cart-small-title {
    display: block;
    margin-bottom: 8px;
    color: var(--cart-pink-dark);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.cart-topbar h2 {
    margin: 0 0 7px;
    color: var(--cart-navy);
    font-family: var(--font-heading);
    font-size: clamp(26px, 3vw, 35px);
    font-weight: var(--font-weight-heading);
}

.cart-topbar p {
    margin: 0;
    color: #89939c;
    font-size: 12px;
}

.cart-continue-top,
.cart-continue-button,
.cart-explore-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    color: var(--cart-navy);
    background: #ffffff;
    border: 1px solid var(--cart-border);
    border-radius: 30px;
    box-shadow: 0 8px 22px rgba(11, 44, 67, 0.06);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.cart-continue-top:hover,
.cart-continue-button:hover {
    color: #ffffff;
    background: var(--cart-navy);
    border-color: var(--cart-navy);
    transform: translateY(-2px);
}

/* Notification and loading */

.cart-notification {
    margin-bottom: 22px;
    padding: 13px 18px;
    color: var(--cart-navy);
    background: #ffffff;
    border: 1px solid var(--cart-border);
    border-left: 4px solid var(--cart-pink);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(11, 44, 67, 0.06);
    font-size: 12px;
    font-weight: 600;
}

.cart-loading {
    display: flex;
    min-height: 280px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    color: #89939d;
}

.cart-loading p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.cart-loader {
    width: 42px;
    height: 42px;
    border: 4px solid #f9d8e3;
    border-top-color: var(--cart-pink);
    border-radius: 50%;
    animation: cart-spin 0.8s linear infinite;
}

@keyframes cart-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty cart */

.cart-empty {
    position: relative;
    overflow: hidden;
    max-width: 680px;
    margin: 10px auto 25px;
    padding: 60px 34px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(245, 111, 153, 0.16), transparent 38%),
        linear-gradient(145deg, #ffffff, #fff9fb);
    border: 1px solid var(--cart-border);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(11, 44, 67, 0.08);
}

.cart-empty-icon {
    display: flex;
    width: 80px;
    height: 80px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 19px;
    color: var(--cart-pink);
    background: var(--cart-soft-pink);
    border: 1px solid var(--cart-border);
    border-radius: 50%;
    font-size: 29px;
    box-shadow: 0 10px 28px rgba(245, 111, 153, 0.16);
}

.cart-empty > span {
    display: block;
    margin-bottom: 8px;
    color: var(--cart-pink-dark);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.cart-empty h2 {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 31px;
    font-weight: var(--font-weight-heading);
}

.cart-empty p {
    max-width: 480px;
    margin: 0 auto 22px;
    color: var(--cart-text);
    font-size: 13px;
    line-height: 1.7;
}

.cart-explore-button {
    color: #ffffff;
    background: var(--cart-pink);
    border-color: var(--cart-pink);
}

.cart-explore-button:hover {
    color: #ffffff;
    background: var(--cart-navy);
    border-color: var(--cart-navy);
    transform: translateY(-2px);
}

/* Main cart layout */

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.72fr);
    align-items: start;
    gap: 26px;
}

.cart-products-panel,
.cart-summary {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--cart-border);
    border-radius: 20px;
    box-shadow: 0 14px 38px rgba(11, 44, 67, 0.08);
}

.cart-products-panel {
    overflow: hidden;
}

.cart-table-heading,
.cart-item {
    display: grid;
    grid-template-columns: minmax(290px, 1fr) 90px 135px 100px 44px;
    align-items: center;
    gap: 16px;
}

.cart-table-heading {
    padding: 17px 25px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cart-navy), var(--cart-navy-light));
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.cart-table-heading span:not(:first-child) {
    text-align: center;
}

/* Cart item */

.cart-item {
    position: relative;
    padding: 22px 25px;
    border-bottom: 1px solid #f4dde4;
}

.cart-item:last-child {
    border-bottom: 0;
}

.cart-item-product {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 17px;
}

.cart-item-image-link {
    display: flex;
    width: 105px;
    height: 125px;
    flex: 0 0 105px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: radial-gradient(circle, #ffffff, #ffedf3);
    border: 1px solid #f3d5df;
    border-radius: 14px;
}

.cart-item-image-link img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 105px;
    margin: auto;
    object-fit: contain;
    object-position: center;
    filter: none;
    image-rendering: auto;
}

.cart-item-details {
    min-width: 0;
}

.cart-item-category {
    display: inline-block;
    margin-bottom: 7px;
    padding: 4px 9px;
    color: var(--cart-pink-dark);
    background: var(--cart-soft-pink);
    border-radius: 20px;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.cart-item-details h3 {
    margin: 0 0 5px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: var(--font-weight-heading);
    line-height: 1.3;
}

.cart-item-title {
    color: var(--cart-navy);
    text-decoration: none;
}

.cart-item-title:hover {
    color: var(--cart-pink-dark);
}

.cart-item-author {
    margin: 0;
    color: #8c959d;
    font-size: 10px;
}

.cart-remove-button {
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    justify-self: center;
    color: #9ba3aa;
    background: #ffffff;
    border: 1px solid #f1d8e0;
    border-radius: 50%;
    font-size: 13px;
    cursor: pointer;
}

.cart-remove-button:hover {
    color: #d84d70;
    background: #fff5f8;
    border-color: #f3b8c8;
}

.cart-item-price,
.cart-item-subtotal {
    text-align: center;
    font-size: 14px;
    font-weight: 800;
}

.cart-item-price {
    color: var(--cart-navy);
}

.cart-item-subtotal {
    color: var(--cart-pink-dark);
}

/* Quantity */

.cart-item-quantity {
    display: grid;
    grid-template-columns: 34px 42px 34px;
    justify-content: center;
}

.cart-item-quantity button,
.cart-quantity-input {
    width: 100%;
    height: 36px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #eccad5;
}

.cart-item-quantity button {
    color: var(--cart-navy);
    font-size: 9px;
    cursor: pointer;
}

.cart-item-quantity button:first-child {
    border-radius: 18px 0 0 18px;
}

.cart-item-quantity button:last-child {
    border-radius: 0 18px 18px 0;
}

.cart-item-quantity button:hover {
    color: #ffffff;
    background: var(--cart-pink);
    border-color: var(--cart-pink);
}

.cart-quantity-input {
    color: var(--cart-navy);
    border-right: 0;
    border-left: 0;
    font-size: 11px;
    font-weight: 800;
    outline: none;
    appearance: textfield;
}

.cart-quantity-input::-webkit-inner-spin-button,
.cart-quantity-input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

/* Cart panel footer */

.cart-products-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 19px 25px;
    background: #fff9fb;
    border-top: 1px solid #f4dde4;
}

.cart-update-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    color: #ffffff;
    background: var(--cart-pink);
    border: 1px solid var(--cart-pink);
    border-radius: 25px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.cart-update-button:hover {
    background: var(--cart-navy);
    border-color: var(--cart-navy);
    transform: translateY(-2px);
}

/* Cart summary */

.cart-summary {
    position: sticky;
    top: 120px;
    padding: 27px 25px;
}

.cart-summary-label {
    display: block;
    margin-bottom: 7px;
    color: var(--cart-pink-dark);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

.cart-summary h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 27px;
    font-weight: var(--font-weight-heading);
}

.cart-summary-divider {
    width: 42px;
    height: 3px;
    margin: 14px 0 20px;
    background: var(--cart-pink);
    border-radius: 5px;
}

.cart-summary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    color: #77828c;
    border-bottom: 1px solid #f3e0e6;
    font-size: 11px;
}

.cart-summary-row strong {
    color: var(--cart-navy);
    text-align: right;
    font-size: 11px;
}

.cart-summary-row .cart-free {
    color: #39a56b;
}

.cart-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    color: var(--cart-navy);
    font-size: 15px;
    font-weight: 800;
}

.cart-summary-total strong {
    color: var(--cart-pink-dark);
    font-size: 24px;
}

.cart-checkout-button {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cart-pink), var(--cart-pink-dark));
    border: 0;
    border-radius: 28px;
    box-shadow: 0 10px 24px rgba(235, 86, 132, 0.24);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.cart-checkout-button:hover {
    background: linear-gradient(135deg, var(--cart-navy), var(--cart-navy-light));
    box-shadow: 0 12px 28px rgba(11, 44, 67, 0.2);
    transform: translateY(-2px);
}

.cart-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 15px;
    color: #84909a;
    font-size: 9px;
}

.cart-secure-note i {
    color: #4eaa78;
}

.cart-payment-icons {
    display: flex;
    justify-content: center;
    gap: 11px;
    margin-top: 15px;
    color: #97a0a8;
    font-size: 22px;
}

/* Benefits */

.cart-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 52px;
    padding: 22px;
    background:
        radial-gradient(circle at 0% 50%, rgba(245, 111, 153, 0.16), transparent 30%),
        linear-gradient(135deg, var(--cart-navy), var(--cart-navy-light));
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(11, 44, 67, 0.16);
}

.cart-benefits > div {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 18px;
}

.cart-benefits > div:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.cart-benefits > div > span {
    display: flex;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    align-items: center;
    justify-content: center;
    color: var(--cart-pink);
    background: rgba(255, 255, 255, 0.09);
    border-radius: 12px;
}

.cart-benefits h3 {
    margin: 0 0 3px;
    color: #ffffff;
    font-size: 12px;
    font-weight: var(--font-weight-heading);
}

.cart-benefits p {
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 10px;
}

/* Tablet */

@media (max-width: 1199.98px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 991.98px) {
    .cart-table-heading,
    .cart-item {
        grid-template-columns: minmax(260px, 1fr) 80px 125px 95px 40px;
        gap: 12px;
    }

    .cart-benefits {
        grid-template-columns: 1fr;
    }

    .cart-benefits > div:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
}

/* Mobile */

@media (max-width: 767.98px) {
    .cart-hero {
        padding: 51px 0 47px;
    }

    .cart-hero h1 {
        font-size: 39px;
    }

    .cart-section {
        padding: 44px 0 55px;
    }

    .cart-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
        padding: 21px 19px;
    }

    .cart-continue-top {
        width: 100%;
    }

    .cart-table-heading {
        display: none;
    }

    .cart-item {
        display: grid;
        grid-template-columns: 1fr 1fr auto;
        gap: 16px 12px;
        padding: 20px;
    }

    .cart-item-product {
        grid-column: 1 / -1;
        align-items: flex-start;
    }

    .cart-item-price,
    .cart-item-quantity,
    .cart-item-subtotal {
        position: relative;
        padding-top: 20px;
    }

    .cart-item-price::before,
    .cart-item-quantity::before,
    .cart-item-subtotal::before {
        position: absolute;
        top: 0;
        left: 50%;
        color: #9a7f88;
        content: attr(data-label);
        font-size: 8px;
        font-weight: 800;
        letter-spacing: 0.6px;
        text-transform: uppercase;
        transform: translateX(-50%);
    }

    .cart-item-subtotal {
        grid-column: 1 / 3;
        padding: 18px 0 0;
        border-top: 1px solid #f3e0e6;
    }

    .cart-remove-button {
        grid-column: 3;
        grid-row: 3;
        align-self: center;
        justify-self: end;
    }

    .cart-products-footer {
        align-items: stretch;
        flex-direction: column;
        padding: 18px 20px;
    }

    .cart-continue-button,
    .cart-update-button {
        width: 100%;
    }

    .cart-summary {
        padding: 25px 20px;
    }
}

@media (max-width: 430px) {
    .cart-item-product {
        flex-direction: column;
    }

    .cart-item-image-link {
        width: 100%;
        height: 185px;
        flex-basis: 185px;
    }

    .cart-item-image-link img {
        max-height: 160px;
    }
}
