/* =========================================================
   LUXELITE CART
   COMPACT / CENTERED / MOBILE-FIRST
   ========================================================= */


/* =========================================================
   CART PAGE
   ========================================================= */

.lux-cart-page {
    width: calc(100% - 28px);
    max-width: 680px;

    margin: 0 auto;

    padding: 92px 0 45px;

    box-sizing: border-box;

    height: auto;
    min-height: 0;

    overflow: visible;
}


/* =========================================================
   CART HEADER
   ========================================================= */

.lux-cart-header {
    width: 100%;

    margin: 0 auto 22px;

    text-align: center;
}

.lux-cart-header > span {
    display: block;

    margin-bottom: 5px;

    font-family: "Montserrat", sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;

    color: #b8860b;
}

.lux-cart-header h1 {
    margin: 0 0 6px;

    font-family: "Cormorant Garamond", serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 1;

    color: #351d39;
}

.lux-cart-header p {
    max-width: 340px;

    margin: 0 auto;

    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    line-height: 1.6;

    color: #756a76;
}


/* =========================================================
   CART LIST
   ========================================================= */

.lux-cart-list {
    display: flex;
    flex-direction: column;

    gap: 12px;

    width: 100%;

    height: auto;
    min-height: 0;

    overflow: visible;
}


/* =========================================================
   CART ITEM
   ========================================================= */

.lux-cart-item {
    display: flex;
    align-items: stretch;

    width: 100%;
    min-width: 0;
    min-height: 135px;

    box-sizing: border-box;

    background: #fffaf6;

    border: 1px solid rgba(184, 134, 11, 0.18);
    border-radius: 15px;

    box-shadow: 0 7px 22px rgba(53, 29, 57, 0.07);

    height: auto;
    max-height: none;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.lux-cart-item:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 26px rgba(53, 29, 57, 0.10);
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.lux-cart-image {
    flex: 0 0 105px;

    width: 105px;
    min-width: 105px;
    height: 135px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 9px;

    box-sizing: border-box;

    background:
        linear-gradient(
            145deg,
            #f8eee8,
            #f5e6df
        );
}

.lux-cart-image img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    transition: transform 0.2s ease;
}

.lux-cart-item:hover .lux-cart-image img {
    transform: scale(1.04);
}


/* =========================================================
   PRODUCT INFORMATION
   ========================================================= */

.lux-cart-info {
    flex: 1 1 auto;

    min-width: 0;
    width: auto;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 12px 14px 10px;

    box-sizing: border-box;

    height: auto;
    min-height: 0;

    overflow: visible;
}

.lux-cart-category {
    display: block;

    margin-bottom: 3px;

    font-family: "Montserrat", sans-serif;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    color: #b8860b;
}

.lux-cart-info h2 {
    width: 100%;

    margin: 0 0 5px;

    font-family: "Cormorant Garamond", serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.05;

    color: #351d39;

    overflow-wrap: anywhere;
}

.lux-cart-price {
    display: block;

    margin-bottom: 8px;

    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    font-weight: 600;

    color: #655867;
}


/* =========================================================
   QUANTITY
   ========================================================= */

.lux-cart-quantity {
    display: inline-flex;
    align-items: center;

    flex: 0 0 auto;

    gap: 6px;

    width: auto;

    margin: 0 0 7px;

    padding: 3px 5px;

    background: #ffffff;

    border: 1px solid rgba(184, 134, 11, 0.20);
    border-radius: 20px;

    box-shadow:
        0 2px 7px rgba(53, 29, 57, 0.04);

    box-sizing: border-box;
}

.lux-cart-quantity button {
    flex: 0 0 23px;

    width: 23px;
    height: 23px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #b8860b;
    border-radius: 50%;

    background: #fffaf6;
    color: #351d39;

    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;
}

.lux-cart-quantity button:disabled {
    opacity: 0.35;

    cursor: not-allowed;
}

.lux-cart-quantity span {
    min-width: 18px;

    text-align: center;

    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    font-weight: 700;

    color: #351d39;
}


/* =========================================================
   ITEM TOTAL
   ========================================================= */

.lux-cart-item-total {
    margin: 0 0 5px;

    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 700;

    color: #351d39;
}


/* =========================================================
   REMOVE
   ========================================================= */

.lux-cart-info form:last-child {
    width: auto;

    margin: 0;
}

.lux-cart-remove {
    width: auto;

    padding: 0;

    border: none;

    background: transparent;

    font-family: "Montserrat", sans-serif;
    font-size: 7px;
    font-weight: 600;

    color: #9a4b4b;

    cursor: pointer;
}


/* =========================================================
   CART SUMMARY
   ========================================================= */

.lux-cart-summary {
    display: block;

    width: 100%;

    margin-top: 14px;

    padding: 15px 14px;

    box-sizing: border-box;

    background:
        linear-gradient(
            145deg,
            #fffaf6,
            #fffdfb
        );

    border: 1px solid rgba(184, 134, 11, 0.20);
    border-radius: 15px;

    box-shadow:
        0 8px 24px rgba(53, 29, 57, 0.07);

    height: auto;
    min-height: 0;
    max-height: none;

    overflow: visible;
}


/* =========================================================
   SUMMARY ROW
   ========================================================= */

.lux-cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding-bottom: 10px;

    border-bottom: 1px solid rgba(184, 134, 11, 0.18);
}

.lux-cart-summary-row span {
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 600;

    color: #5f5361;
}

.lux-cart-summary-row strong {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 700;

    color: #351d39;
}


/* =========================================================
   SUMMARY NOTE
   ========================================================= */

.lux-cart-summary-note {
    margin: 8px 0 13px;

    font-family: "Montserrat", sans-serif;
    font-size: 7px;
    line-height: 1.5;

    color: #756a76;
}


/* =========================================================
   ACTION LINKS
   ========================================================= */

.lux-cart-summary > a {
    box-sizing: border-box;

    max-width: 100%;

    text-decoration: none !important;
}


/* =========================================================
   CONTINUE SHOPPING
   ========================================================= */

.lux-cart-continue {
    display: flex;
    align-items: center;
    justify-content: center;

    width: fit-content;

    min-height: 34px;

    margin: 0 auto 8px;

    padding: 0 16px;

    border: 1px solid rgba(184, 134, 11, 0.65);
    border-radius: 18px;

    background: #ffffff;
    color: #351d39;

    font-family: "Montserrat", sans-serif;
    font-size: 8px;
    font-weight: 700;

    white-space: nowrap;
}


/* =========================================================
   CHECKOUT
   ========================================================= */

.lux-cart-checkout {
    display: flex;
    align-items: center;
    justify-content: center;

    width: fit-content;

    min-height: 40px;

    margin: 0 auto 9px;

    padding: 0 24px;

    border: 1px solid #351d39;
    border-radius: 21px;

    background: #351d39;
    color: #ffffff;

    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2px;

    white-space: nowrap;

    box-shadow:
        0 5px 12px rgba(53, 29, 57, 0.15);
}


/* =========================================================
   CLEAR CART
   ========================================================= */

.lux-cart-summary form {
    height: auto;
    min-height: 0;
    max-height: none;
}

.lux-cart-summary > form {
    width: fit-content;

    margin: 0 auto;
}

.lux-cart-clear {
    display: inline-block;

    width: auto;

    padding: 3px 8px;

    border: none;

    background: transparent;
    color: #9a4b4b;

    font-family: "Montserrat", sans-serif;
    font-size: 7px;
    font-weight: 600;

    cursor: pointer;
}


/* =========================================================
   EMPTY CART
   ========================================================= */

.lux-cart-empty {
    width: 100%;

    padding: 38px 18px;

    box-sizing: border-box;

    text-align: center;

    background: #fffaf5;

    border: 1px solid rgba(184, 134, 11, 0.20);
    border-radius: 18px;

    box-shadow:
        0 8px 24px rgba(53, 29, 57, 0.07);

    height: auto;
    min-height: 0;
    max-height: none;

    overflow: visible;
}

.lux-cart-empty-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 12px;

    border: 1px solid rgba(184, 134, 11, 0.35);
    border-radius: 50%;

    background: #ffffff;
}

.lux-cart-empty-icon::after {
    content: "🛍";

    font-size: 22px;
}

.lux-cart-empty h2 {
    margin: 0 0 6px;

    font-family: "Cormorant Garamond", serif;
    font-size: 26px;
    font-weight: 600;

    color: #351d39;
}

.lux-cart-empty p {
    max-width: 280px;

    margin: 0 auto 16px;

    font-family: "Montserrat", sans-serif;
    font-size: 8px;
    line-height: 1.6;

    color: #756a76;
}

.lux-cart-shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 0 20px;

    border-radius: 20px;

    background: #351d39;
    color: #ffffff;

    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    font-weight: 700;

    text-decoration: none !important;
}


/* =========================================================
   REMOVE CART LINK UNDERLINES
   ========================================================= */

.lux-cart-page a {
    text-decoration: none !important;
    border-bottom: none !important;
}


/* =========================================================
   MOBILE CART
   ========================================================= */

@media (max-width: 700px) {

    body:has(.lux-cart-page) {
        width: 100%;
        min-width: 0;

        height: auto !important;
        min-height: 100vh !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;
    }


    /* -----------------------------------------
       CART NAVBAR
    ----------------------------------------- */

    body:has(.lux-cart-page) .site-header {
        position: fixed;

        top: 0;
        left: 0;
        right: 0;

        width: 100%;

        z-index: 1000;
    }

    body:has(.lux-cart-page) .nav-container {
        width: 100%;
        min-width: 0;
        min-height: 68px;

        padding: 10px 15px;

        box-sizing: border-box;
    }


    /* -----------------------------------------
       MAIN
    ----------------------------------------- */

    body:has(.lux-cart-page) main {
        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        overflow: visible !important;
    }


    /* -----------------------------------------
       CART PAGE
    ----------------------------------------- */

    body:has(.lux-cart-page) .lux-cart-page {
        width: calc(100% - 24px);

        max-width: 680px;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        overflow: visible !important;

        padding-top: 88px;
        padding-bottom: 40px;
    }


    /* -----------------------------------------
       FOOTER
    ----------------------------------------- */

    body:has(.lux-cart-page) .site-footer {
        position: relative !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        overflow: visible !important;

        clear: both;
    }

    body:has(.lux-cart-page) .site-footer .footer-grid {
        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        overflow: visible !important;
    }

    body:has(.lux-cart-page) .site-footer .footer-bottom {
        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        overflow: visible !important;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .lux-cart-page {
        width: calc(100% - 16px);

        padding-top: 82px;
        padding-bottom: 35px;
    }

    .lux-cart-header {
        margin-bottom: 17px;
    }

    .lux-cart-header h1 {
        font-size: 30px;
    }

    .lux-cart-header p {
        font-size: 8px;
    }

    .lux-cart-list {
        gap: 9px;
    }


    /* -----------------------------------------
       CART ITEM
    ----------------------------------------- */

    .lux-cart-item {
        min-height: 125px;

        border-radius: 13px;
    }

    .lux-cart-image {
        flex-basis: 92px;

        width: 92px;
        min-width: 92px;
        height: 125px;

        padding: 7px;
    }

    .lux-cart-info {
        padding: 10px 9px;
    }

    .lux-cart-category {
        font-size: 6px;
    }

    .lux-cart-info h2 {
        font-size: 18px;
    }

    .lux-cart-price {
        font-size: 8px;

        margin-bottom: 7px;
    }

    .lux-cart-quantity {
        gap: 5px;

        padding: 2px 4px;

        margin-bottom: 6px;
    }

    .lux-cart-quantity button {
        width: 21px;
        height: 21px;

        flex-basis: 21px;

        font-size: 12px;
    }

    .lux-cart-quantity span {
        font-size: 8px;
    }

    .lux-cart-item-total {
        font-size: 9px;
    }

    .lux-cart-remove {
        font-size: 6.5px;
    }


    /* -----------------------------------------
       SUMMARY
    ----------------------------------------- */

    .lux-cart-summary {
        margin-top: 11px;

        padding: 13px 10px;

        border-radius: 13px;
    }

    .lux-cart-summary-row span {
        font-size: 9px;
    }

    .lux-cart-summary-row strong {
        font-size: 14px;
    }

    .lux-cart-summary-note {
        font-size: 6.5px;

        margin-bottom: 11px;
    }

    .lux-cart-continue {
        min-height: 32px;

        padding: 0 13px;

        font-size: 7.5px;
    }

    .lux-cart-checkout {
        min-height: 38px;

        padding: 0 19px;

        font-size: 8px;
    }

    .lux-cart-clear {
        font-size: 6.5px;
    }


    /* -----------------------------------------
       CART NAVBAR
    ----------------------------------------- */

    body:has(.lux-cart-page) .nav-container {
        padding-left: 12px;
        padding-right: 12px;
    }
}


/* =========================================================
   EXTRA SMALL PHONES
   ========================================================= */

@media (max-width: 340px) {

    .lux-cart-page {
        width: calc(100% - 12px);

        padding-left: 0;
        padding-right: 0;

        padding-bottom: 35px;
    }

    .lux-cart-header h1 {
        font-size: 28px;
    }

    .lux-cart-image {
        flex-basis: 82px;

        width: 82px;
        min-width: 82px;

        height: 115px;
    }

    .lux-cart-item {
        min-height: 115px;
    }

    .lux-cart-info {
        padding: 8px;
    }

    .lux-cart-info h2 {
        font-size: 16px;
    }

    .lux-cart-price {
        font-size: 7.5px;
    }

    .lux-cart-quantity {
        gap: 4px;
    }

    .lux-cart-quantity button {
        width: 20px;
        height: 20px;

        flex-basis: 20px;

        font-size: 11px;
    }

    .lux-cart-item-total {
        font-size: 8px;
    }

    .lux-cart-summary {
        padding: 11px 9px;
    }

    .lux-cart-summary-row span {
        font-size: 8px;
    }

    .lux-cart-summary-row strong {
        font-size: 13px;
    }

    .lux-cart-continue {
        min-height: 30px;

        padding: 0 11px;

        font-size: 7px;
    }

    .lux-cart-checkout {
        min-height: 36px;

        padding: 0 16px;

        font-size: 7.5px;
    }
}


/* =========================================================
   DESKTOP / TABLET
   ========================================================= */

@media (min-width: 701px) {

    .lux-cart-page {
        /*
           IMPORTANT:
           Keep the cart compact on desktop.
           Do NOT stretch it across the page.
        */

        width: calc(100% - 40px);

        max-width: 680px;

        padding-top: 105px;
        padding-bottom: 50px;
    }

    .lux-cart-item {
        min-height: 145px;
    }

    .lux-cart-image {
        flex-basis: 115px;

        width: 115px;
        min-width: 115px;

        height: 145px;
    }

    .lux-cart-info {
        padding: 15px 17px;
    }

    .lux-cart-info h2 {
        font-size: 23px;
    }

    .lux-cart-summary {
        padding: 18px;
    }

    .lux-cart-continue {
        min-height: 36px;
    }

    .lux-cart-checkout {
        min-height: 42px;
    }
}

/* =========================================================
   CART WIDTH — FINAL OVERRIDE
   ========================================================= */

body:has(.lux-cart-page) .lux-cart-page {
    display: block !important;

    width: 680px !important;
    max-width: calc(100% - 40px) !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding-left: 0 !important;
    padding-right: 0 !important;

    box-sizing: border-box !important;
}