/* =========================================================
   NEXORA — CART PAGE
   Premium Shopping Cart Styles
   ========================================================= */


/* =========================================================
   ROOT
   ========================================================= */

:root {
    --cart-bg: #f5f5f7;
    --cart-white: #ffffff;
    --cart-black: #111111;
    --cart-dark: #181818;
    --cart-gray: #6b6b6b;
    --cart-muted: #929292;
    --cart-light: #f2f2f3;
    --cart-border: #e4e4e7;
    --cart-red: #ff2938;
    --cart-red-dark: #e51e2d;
    --cart-green: #159447;

    --cart-radius: 22px;
    --cart-small-radius: 13px;

    --cart-shadow:
        0 18px 50px rgba(0, 0, 0, 0.07);

    --cart-transition: 0.3s ease;
}


/* =========================================================
   PAGE
   ========================================================= */

.cart-page {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 85% 8%,
            rgba(255, 41, 56, 0.07),
            transparent 25%
        ),
        var(--cart-bg);
}


/* =========================================================
   CART HERO
   ========================================================= */

.cart-hero {
    position: relative;

    padding: 150px 0 65px;

    overflow: hidden;
}

.cart-hero::before {
    content: "";

    position: absolute;

    width: 460px;
    height: 460px;

    top: -230px;
    right: -150px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 41, 56, 0.14),
            transparent 68%
        );

    pointer-events: none;

    animation: cartHeroGlow 8s ease-in-out infinite;
}

@keyframes cartHeroGlow {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(-20px, 20px, 0) scale(1.08);
    }
}


.cart-hero-content {
    position: relative;
    z-index: 2;

    animation: cartHeroReveal 0.7s ease both;
}

@keyframes cartHeroReveal {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   CART EYEBROW
   ========================================================= */

.cart-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 17px;

    color: var(--cart-red);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cart-eyebrow::before {
    content: "";

    width: 26px;
    height: 2px;

    border-radius: 20px;

    background: var(--cart-red);
}


/* =========================================================
   CART HERO TITLE
   ========================================================= */

.cart-hero h1 {
    margin: 0;

    color: var(--cart-black);

    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: clamp(44px, 6vw, 76px);

    line-height: 0.98;

    font-weight: 800;

    letter-spacing: -0.055em;
}

.cart-hero h1 span {
    color: var(--cart-red);
}


.cart-hero p {
    max-width: 580px;

    margin: 23px 0 0;

    color: var(--cart-gray);

    font-family: "DM Sans", sans-serif;

    font-size: 16px;

    line-height: 1.7;
}


/* =========================================================
   MAIN CART SECTION
   ========================================================= */

.cart-section {
    position: relative;

    padding: 0 0 110px;
}

.cart-container {
    width: min(1240px, calc(100% - 40px));

    margin: 0 auto;
}


/* =========================================================
   CART GRID
   ========================================================= */

.cart-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(330px, 0.8fr);

    gap: 30px;

    align-items: start;
}


/* =========================================================
   CART CARDS
   ========================================================= */

.cart-card {
    position: relative;

    background: var(--cart-white);

    border: 1px solid rgba(0, 0, 0, 0.045);

    border-radius: var(--cart-radius);

    box-shadow: var(--cart-shadow);

    overflow: hidden;
}


.cart-items-card {
    padding: 34px;

    animation:
        cartCardReveal 0.65s 0.08s ease both;
}


.cart-summary-card {
    position: sticky;
    top: 110px;

    padding: 30px;

    animation:
        cartCardReveal 0.65s 0.16s ease both;
}


@keyframes cartCardReveal {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   CART CARD HEADER
   ========================================================= */

.cart-card-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding-bottom: 24px;

    margin-bottom: 5px;

    border-bottom: 1px solid var(--cart-border);
}


.cart-card-title {
    display: flex;

    align-items: center;

    gap: 15px;
}


.cart-title-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 47px;
    height: 47px;

    flex-shrink: 0;

    border-radius: 14px;

    background: #fff0f1;

    color: var(--cart-red);

    font-size: 17px;
}


.cart-card-title h2 {
    margin: 0;

    color: var(--cart-black);

    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: 21px;

    line-height: 1.2;

    font-weight: 800;

    letter-spacing: -0.025em;
}


.cart-card-title p {
    margin: 6px 0 0;

    color: var(--cart-gray);

    font-family: "DM Sans", sans-serif;

    font-size: 12px;

    line-height: 1.4;
}


/* =========================================================
   CLEAR CART
   ========================================================= */

.clear-cart-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 9px 13px;

    border: 1px solid var(--cart-border);

    border-radius: 10px;

    background: transparent;

    color: var(--cart-gray);

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition:
        color var(--cart-transition),
        border-color var(--cart-transition),
        background var(--cart-transition),
        transform var(--cart-transition);
}


.clear-cart-btn:hover {
    border-color: rgba(255, 41, 56, 0.25);

    background: #fff5f5;

    color: var(--cart-red);

    transform: translateY(-1px);
}


/* =========================================================
   CART ITEMS
   ========================================================= */

.cart-items {
    display: flex;

    flex-direction: column;
}


/* =========================================================
   INDIVIDUAL CART ITEM
   ========================================================= */

.cart-item {
    position: relative;

    display: grid;

    grid-template-columns:
        92px
        minmax(150px, 1fr)
        auto
        auto;

    align-items: center;

    gap: 20px;

    padding: 23px 0;

    border-bottom: 1px solid var(--cart-border);

    animation:
        cartItemReveal 0.5s var(--item-delay, 0s) ease both;

    transition:
        background var(--cart-transition);
}


.cart-item:last-child {
    border-bottom: none;
}


@keyframes cartItemReveal {

    from {
        opacity: 0;
        transform: translateX(-12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.cart-item-image {
    position: relative;

    width: 92px;
    height: 92px;

    overflow: hidden;

    border-radius: 17px;

    background: #f1f1f3;

    isolation: isolate;
}


.cart-item-image::after {
    content: "";

    position: absolute;

    inset: 0;

    border: 1px solid rgba(0, 0, 0, 0.04);

    border-radius: inherit;

    pointer-events: none;
}


.cart-item-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}


.cart-item:hover .cart-item-image img {
    transform: scale(1.07);
}


/* =========================================================
   PRODUCT DETAILS
   ========================================================= */

.cart-item-details {
    min-width: 0;
}


.cart-item-category {
    display: inline-block;

    margin-bottom: 6px;

    color: var(--cart-red);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.cart-item-details h3 {
    margin: 0;

    color: var(--cart-black);

    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: 15px;

    line-height: 1.35;

    font-weight: 800;

    letter-spacing: -0.015em;
}


.cart-item-unit-price {
    display: inline-block;

    margin-top: 7px;

    color: var(--cart-gray);

    font-family: "DM Sans", sans-serif;

    font-size: 12px;

    font-weight: 500;
}


/* =========================================================
   QUANTITY CONTROLS
   ========================================================= */

.cart-item-controls {
    display: inline-flex;

    align-items: center;

    height: 39px;

    padding: 4px;

    border: 1px solid var(--cart-border);

    border-radius: 11px;

    background: #fafafa;
}


.quantity-btn {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 31px;
    height: 31px;

    padding: 0;

    border: none;

    border-radius: 8px;

    background: transparent;

    color: var(--cart-dark);

    font-size: 10px;

    cursor: pointer;

    transition:
        background var(--cart-transition),
        color var(--cart-transition),
        transform var(--cart-transition);
}


.quantity-btn:hover {
    background: var(--cart-black);

    color: #fff;

    transform: scale(1.05);
}


.quantity-input {
    width: 38px;
    height: 31px;

    padding: 0;

    border: none;

    outline: none;

    background: transparent;

    color: var(--cart-black);

    font-family: inherit;

    font-size: 12px;

    font-weight: 800;

    text-align: center;
}


/* Remove number spinner */

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    margin: 0;

    -webkit-appearance: none;
}

.quantity-input {
    appearance: textfield;
}


/* =========================================================
   ITEM TOTAL
   ========================================================= */

.cart-item-total {
    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 8px;

    min-width: 100px;
}


.cart-item-total strong {
    color: var(--cart-black);

    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: 14px;

    font-weight: 800;

    white-space: nowrap;
}


/* =========================================================
   REMOVE ITEM
   ========================================================= */

.remove-item-btn {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 0;

    border: none;

    background: transparent;

    color: #9a9a9f;

    font-family: inherit;

    font-size: 10px;

    font-weight: 700;

    cursor: pointer;

    transition:
        color var(--cart-transition);
}


.remove-item-btn:hover {
    color: var(--cart-red);
}


/* =========================================================
   CONTINUE SHOPPING
   ========================================================= */

.continue-shopping {
    padding-top: 23px;
}


.continue-shopping a {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: var(--cart-gray);

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;

    transition:
        color var(--cart-transition),
        gap var(--cart-transition);
}


.continue-shopping a:hover {
    gap: 13px;

    color: var(--cart-red);
}


/* =========================================================
   EMPTY CART
   ========================================================= */

.cart-empty {
    padding: 70px 20px;

    text-align: center;
}


.cart-empty[hidden] {
    display: none;
}


.cart-empty-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;

    margin: 0 auto 20px;

    border-radius: 22px;

    background: #f2f2f3;

    color: var(--cart-dark);

    font-size: 25px;
}


.cart-empty h3 {
    margin: 0 0 9px;

    color: var(--cart-black);

    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: 20px;

    font-weight: 800;

    letter-spacing: -0.02em;
}


.cart-empty p {
    max-width: 390px;

    margin: 0 auto 24px;

    color: var(--cart-gray);

    font-size: 13px;

    line-height: 1.65;
}


/* =========================================================
   EMPTY CART BUTTON
   ========================================================= */

.cart-shop-btn {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    min-height: 48px;

    padding: 0 20px;

    border-radius: 12px;

    background: var(--cart-black);

    color: #fff;

    font-size: 12px;

    font-weight: 800;

    text-decoration: none;

    transition:
        background var(--cart-transition),
        transform var(--cart-transition),
        box-shadow var(--cart-transition);
}


.cart-shop-btn:hover {
    background: var(--cart-red);

    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(255, 41, 56, 0.2);
}


.cart-shop-btn i {
    transition: transform 0.3s ease;
}


.cart-shop-btn:hover i {
    transform: translateX(4px);
}


/* =========================================================
   SUMMARY HEADER
   ========================================================= */

.summary-heading {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 26px;
}


.summary-eyebrow {
    display: block;

    margin-bottom: 6px;

    color: var(--cart-red);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.13em;

    text-transform: uppercase;
}


.summary-heading h2 {
    margin: 0;

    color: var(--cart-black);

    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: 21px;

    line-height: 1.2;

    font-weight: 800;

    letter-spacing: -0.025em;
}


.summary-count {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 30px;
    height: 30px;

    padding: 0 8px;

    border-radius: 50px;

    background: #f1f1f3;

    color: var(--cart-dark);

    font-size: 11px;

    font-weight: 800;
}


/* =========================================================
   SUMMARY TOTALS
   ========================================================= */

.cart-summary-totals {
    padding-bottom: 3px;
}


.cart-summary-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 15px;

    color: var(--cart-gray);

    font-size: 13px;
}


.cart-summary-row strong {
    color: var(--cart-dark);

    font-size: 13px;

    font-weight: 800;
}


.cart-summary-row .shipping-value {
    color: var(--cart-green);
}


.cart-summary-divider {
    width: 100%;
    height: 1px;

    margin: 20px 0;

    background: var(--cart-border);
}


.cart-summary-total {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


.cart-summary-total span {
    color: var(--cart-black);

    font-size: 15px;

    font-weight: 800;
}


.cart-summary-total strong {
    color: var(--cart-black);

    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: 24px;

    line-height: 1;

    font-weight: 800;

    letter-spacing: -0.035em;
}


/* =========================================================
   SHIPPING NOTE
   ========================================================= */

.cart-shipping-note {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-top: 23px;

    padding: 14px;

    border-radius: 12px;

    background: #f5fbf7;

    color: #397052;

    font-size: 11px;

    line-height: 1.55;
}


.cart-shipping-note i {
    flex-shrink: 0;

    margin-top: 1px;

    color: var(--cart-green);
}


/* =========================================================
   CHECKOUT BUTTON
   ========================================================= */

.cart-checkout-btn {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    width: 100%;

    min-height: 56px;

    margin-top: 22px;

    padding: 0 20px;

    border-radius: 14px;

    background: var(--cart-red);

    color: #fff;

    font-size: 13px;

    font-weight: 800;

    text-decoration: none;

    overflow: hidden;

    box-shadow:
        0 12px 28px rgba(255, 41, 56, 0.22);

    transition:
        background var(--cart-transition),
        transform var(--cart-transition),
        box-shadow var(--cart-transition);
}


.cart-checkout-btn::before {
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent
        );

    transform: skewX(-20deg);

    transition: left 0.65s ease;
}


.cart-checkout-btn:hover::before {
    left: 140%;
}


.cart-checkout-btn:hover {
    background: var(--cart-red-dark);

    transform: translateY(-3px);

    box-shadow:
        0 17px 35px rgba(255, 41, 56, 0.27);
}


.cart-checkout-btn i {
    transition: transform 0.3s ease;
}


.cart-checkout-btn:hover i {
    transform: translateX(4px);
}


/* =========================================================
   SECURITY FEATURES
   ========================================================= */

.cart-security {
    display: grid;

    gap: 11px;

    margin-top: 25px;

    padding-top: 23px;

    border-top: 1px solid var(--cart-border);
}


.cart-security-item {
    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--cart-gray);

    font-size: 11px;

    line-height: 1.4;
}


.security-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 31px;

    width: 31px;
    height: 31px;

    border-radius: 9px;

    background: #f2f2f3;

    color: var(--cart-black);

    font-size: 11px;
}


/* =========================================================
   HOVER EFFECT ON SUMMARY
   ========================================================= */

.cart-summary-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--cart-red),
            transparent
        );

    opacity: 0.8;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.clear-cart-btn:focus-visible,
.quantity-btn:focus-visible,
.quantity-input:focus-visible,
.remove-item-btn:focus-visible,
.continue-shopping a:focus-visible,
.cart-shop-btn:focus-visible,
.cart-checkout-btn:focus-visible {
    outline: 3px solid rgba(255, 41, 56, 0.16);

    outline-offset: 3px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .cart-layout {
        grid-template-columns:
            minmax(0, 1.25fr)
            minmax(300px, 0.8fr);

        gap: 22px;
    }


    .cart-items-card {
        padding: 28px;
    }


    .cart-summary-card {
        padding: 26px;
    }


    .cart-item {
        grid-template-columns:
            82px
            minmax(120px, 1fr)
            auto;

        gap: 15px;
    }


    .cart-item-image {
        width: 82px;
        height: 82px;
    }


    .cart-item-total {
        grid-column: 3;

        align-items: flex-end;
    }


    .cart-item-controls {
        grid-column: 2;
        grid-row: 2;

        justify-self: start;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 820px) {

    .cart-hero {
        padding: 120px 0 55px;
    }


    .cart-hero h1 {
        font-size: clamp(42px, 12vw, 62px);
    }


    .cart-hero p {
        font-size: 15px;
    }


    .cart-layout {
        grid-template-columns: 1fr;
    }


    .cart-summary-card {
        position: static;

        order: -1;
    }


    .cart-items-card {
        padding: 25px 22px;
    }


    .cart-summary-card {
        padding: 25px 22px;
    }


    .cart-item {
        grid-template-columns: 78px minmax(0, 1fr);

        gap: 15px;
    }


    .cart-item-image {
        width: 78px;
        height: 78px;

        grid-row: span 2;
    }


    .cart-item-details {
        grid-column: 2;
    }


    .cart-item-controls {
        grid-column: 2;
        grid-row: auto;

        justify-self: start;
    }


    .cart-item-total {
        grid-column: 2;

        align-items: flex-start;

        flex-direction: row;

        justify-content: space-between;

        width: 100%;

        margin-top: 2px;
    }


    .cart-item-total strong {
        font-size: 14px;
    }


    .remove-item-btn {
        font-size: 10px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .cart-container {
        width: min(100% - 24px, 1240px);
    }


    .cart-hero {
        padding: 105px 0 45px;
    }


    .cart-section {
        padding-bottom: 70px;
    }


    .cart-hero h1 {
        font-size: 43px;
    }


    .cart-hero p {
        font-size: 14px;

        line-height: 1.65;
    }


    .cart-items-card,
    .cart-summary-card {
        border-radius: 17px;
    }


    .cart-items-card {
        padding: 21px 16px;
    }


    .cart-summary-card {
        padding: 22px 17px;
    }


    .cart-card-header {
        align-items: flex-start;

        padding-bottom: 20px;
    }


    .cart-card-title {
        gap: 11px;
    }


    .cart-title-icon {
        width: 41px;
        height: 41px;

        border-radius: 12px;
    }


    .cart-card-title h2 {
        font-size: 18px;
    }


    .cart-card-title p {
        font-size: 11px;
    }


    .clear-cart-btn {
        padding: 8px;

        border: none;
    }


    .clear-cart-btn i {
        font-size: 12px;
    }


    .clear-cart-btn {
        font-size: 0;
    }


    .clear-cart-btn i {
        font-size: 13px;
    }


    .cart-item {
        grid-template-columns: 68px minmax(0, 1fr);

        gap: 12px;

        padding: 19px 0;
    }


    .cart-item-image {
        width: 68px;
        height: 68px;

        border-radius: 13px;
    }


    .cart-item-category {
        font-size: 9px;
    }


    .cart-item-details h3 {
        font-size: 13px;
    }


    .cart-item-unit-price {
        font-size: 11px;
    }


    .cart-item-controls {
        height: 36px;
    }


    .quantity-btn {
        width: 28px;
        height: 28px;
    }


    .quantity-input {
        width: 32px;
        height: 28px;
    }


    .cart-item-total strong {
        font-size: 13px;
    }


    .cart-summary-total strong {
        font-size: 21px;
    }


    .cart-checkout-btn {
        min-height: 54px;

        font-size: 12px;
    }


    .cart-empty {
        padding: 55px 15px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .cart-hero::before,
    .cart-hero-content,
    .cart-items-card,
    .cart-summary-card,
    .cart-item {
        animation: none;
    }


    .cart-item-image img,
    .cart-checkout-btn,
    .cart-shop-btn,
    .quantity-btn,
    .clear-cart-btn {
        transition: none;
    }
}
/* =========================================================
   NEXORA SHARED HEADER + FOOTER ALIGNMENT FIX
   ========================================================= */

/* Keep the global header above all cart content */
.cart-page .site-header {
    width: 100%;
    left: 0;
    right: 0;
}

/* Header inner alignment */
.cart-page .site-header .header-container {
    width: min(1240px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;

    display: flex;
    align-items: center;
}

/* Navigation stays centered */
.cart-page .site-header .main-nav {
    display: flex;
    align-items: center;
}

/* Header action icons stay aligned */
.cart-page .site-header .header-actions {
    display: flex;
    align-items: center;
}

/* =========================================================
   MOBILE HEADER
   ========================================================= */

@media (max-width: 820px) {

    .cart-page .site-header .header-container {
        width: calc(100% - 30px);
    }

    .cart-page .site-header .main-nav {
        display: none;
    }

    .cart-page .site-header .header-actions {
        display: flex;
        align-items: center;
    }
}


/* =========================================================
   FOOTER ALIGNMENT
   ========================================================= */

.cart-page .site-footer {
    width: 100%;
    position: relative;
}

.cart-page .site-footer .footer-container {
    width: min(1240px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.cart-page .site-footer .footer-bottom {
    width: 100%;
}


/* =========================================================
   MOBILE FOOTER
   ========================================================= */

@media (max-width: 820px) {

    .cart-page .site-footer .footer-container {
        width: calc(100% - 30px);
    }
}


/* =========================================================
   PREVENT CART PAGE FROM AFFECTING GLOBAL CONTAINERS
   ========================================================= */

.cart-page .cart-container {
    width: min(1240px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 520px) {

    .cart-page .cart-container {
        width: calc(100% - 24px);
    }
}
/* =========================================================
   NEXORA SHARED HEADER + FOOTER ALIGNMENT FIX
   ========================================================= */

/* Keep the global header above all cart content */
.cart-page .site-header {
    width: 100%;
    left: 0;
    right: 0;
}

/* Header inner alignment */
.cart-page .site-header .header-container {
    width: min(1240px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;

    display: flex;
    align-items: center;
}

/* Navigation stays centered */
.cart-page .site-header .main-nav {
    display: flex;
    align-items: center;
}

/* Header action icons stay aligned */
.cart-page .site-header .header-actions {
    display: flex;
    align-items: center;
}

/* =========================================================
   MOBILE HEADER
   ========================================================= */

@media (max-width: 820px) {

    .cart-page .site-header .header-container {
        width: calc(100% - 30px);
    }

    .cart-page .site-header .main-nav {
        display: none;
    }

    .cart-page .site-header .header-actions {
        display: flex;
        align-items: center;
    }
}


/* =========================================================
   FOOTER ALIGNMENT
   ========================================================= */

.cart-page .site-footer {
    width: 100%;
    position: relative;
}

.cart-page .site-footer .footer-container {
    width: min(1240px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.cart-page .site-footer .footer-bottom {
    width: 100%;
}


/* =========================================================
   MOBILE FOOTER
   ========================================================= */

@media (max-width: 820px) {

    .cart-page .site-footer .footer-container {
        width: calc(100% - 30px);
    }
}


/* =========================================================
   PREVENT CART PAGE FROM AFFECTING GLOBAL CONTAINERS
   ========================================================= */

.cart-page .cart-container {
    width: min(1240px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 520px) {

    .cart-page .cart-container {
        width: calc(100% - 24px);
    }
}