/* =========================================================
   RYNA WOMAN - CART PAGE
   Full Responsive Soft Pink Cart Theme
   ========================================================= */


/* =========================================================
   ROOT
   ========================================================= */

:root {
    --cart-bg: #fff7f9;
    --cart-surface: #fffafa;
    --cart-card: #fffaf9;

    --cart-text: #241e20;
    --cart-heading: #2b2527;
    --cart-muted: #81777a;
    --cart-light-text: #9a9093;

    --cart-border: #e5dadd;
    --cart-border-light: #eee5e7;

    --cart-dark: #241e20;
    --cart-dark-hover: #5d4850;

    --cart-pink: #d98c9d;
    --cart-pink-dark: #b86f80;
    --cart-pink-light: #f8e9ed;

    --cart-success: #54765c;
    --cart-error: #a34e58;

    --cart-container: 1180px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--cart-bg);
    color: var(--cart-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}


/* =========================================================
   CART PAGE
   ========================================================= */

.cart-page {
    width: 100%;
    min-height: 650px;
    padding: 55px 0 110px;
    background: var(--cart-bg);
}


/* =========================================================
   CONTAINER
   ========================================================= */

.cart-container {
    width: min(
        var(--cart-container),
        calc(100% - 60px)
    );

    margin: 0 auto;
}


/* =========================================================
   HEADING
   ========================================================= */

.cart-heading-row {
    width: 100%;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 38px;
    padding-bottom: 18px;

    border-bottom: 1px solid var(--cart-border);
}

.cart-heading-row h1 {
    margin: 0;

    color: var(--cart-heading);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 31px;
    line-height: 1.1;

    font-weight: 400;

    letter-spacing: -0.5px;
}

.cart-heading-row span {
    color: var(--cart-muted);

    font-size: 11px;
    line-height: 1;

    letter-spacing: 0.2px;
}


/* =========================================================
   CART LAYOUT
   ========================================================= */

.cart-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        330px;

    gap: 55px;

    align-items: start;
}


/* =========================================================
   CART ITEMS SECTION
   ========================================================= */

.cart-items-section {
    width: 100%;
    min-width: 0;
}

.cart-items {
    width: 100%;
}


/* =========================================================
   CART ITEM
   ========================================================= */

.cart-item {
    width: 100%;

    display: grid;

    grid-template-columns:
        110px
        minmax(0, 1fr);

    gap: 22px;

    padding: 0 0 30px;
    margin-bottom: 30px;

    border-bottom:
        1px solid var(--cart-border);
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.cart-item-image {
    width: 110px;
    height: 135px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #fdf0f3;

    border: 1px solid var(--cart-border-light);

    text-decoration: none;
}

.cart-item-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    transition:
        transform 0.3s ease;
}

.cart-item-image:hover img {
    transform: scale(1.03);
}


/* =========================================================
   IMAGE FALLBACK
   ========================================================= */

.cart-image-fallback {
    position: absolute;

    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    background: #fdf0f3;

    color: #b6aaae;

    font-size: 20px;
}

.cart-image-fallback.visible {
    display: flex;
}


/* =========================================================
   ITEM INFO
   ========================================================= */

.cart-item-info {
    min-width: 0;
    min-height: 135px;

    display: flex;
    flex-direction: column;

    justify-content: space-between;
}


/* =========================================================
   ITEM TOP
   ========================================================= */

.cart-item-top {
    width: 100%;

    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 25px;
}


/* =========================================================
   PRODUCT NAME
   ========================================================= */

.cart-item-name {
    display: inline-block;

    margin: 2px 0 8px;

    color: var(--cart-heading);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 16px;
    line-height: 1.3;

    font-weight: 400;

    text-decoration: none;

    transition:
        color 0.2s ease;
}

.cart-item-name:hover {
    color: var(--cart-pink-dark);
}


/* =========================================================
   VARIANT
   ========================================================= */

.cart-item-variant {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 3px;

    color: var(--cart-muted);

    font-size: 11px;
    line-height: 1.5;
}

.cart-item-variant span {
    display: inline-block;
}

.cart-item-variant span + span::before {
    content: "•";

    margin-right: 8px;

    color: #b8abad;
}


/* =========================================================
   SKU
   ========================================================= */

.cart-sku {
    display: block;

    margin-top: 7px;

    color: var(--cart-light-text);

    font-size: 9px;

    letter-spacing: 0.3px;
}


/* =========================================================
   ITEM PRICE
   ========================================================= */

.cart-item-price {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 2px;

    white-space: nowrap;

    color: var(--cart-heading);

    font-size: 14px;

    font-weight: 500;
}

.cart-item-price del {
    color: #aaa0a3;

    font-size: 11px;

    font-weight: 400;
}


/* =========================================================
   ITEM BOTTOM
   ========================================================= */

.cart-item-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 15px;
}


/* =========================================================
   QUANTITY
   ========================================================= */

.cart-quantity-form {
    width: 92px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    border: 1px solid #d9ced1;

    background: #fff;

    overflow: hidden;
}

.cart-quantity-form button {
    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    background: #fff;

    color: var(--cart-text);

    font-size: 15px;
    font-weight: 400;

    line-height: 1;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.cart-quantity-form button:hover {
    background: var(--cart-pink-light);

    color: var(--cart-pink-dark);
}

.cart-quantity-form span {
    width: 30px;

    display: block;

    text-align: center;

    color: var(--cart-text);

    font-size: 11px;
}


/* =========================================================
   REMOVE
   ========================================================= */

.remove-cart-button {
    padding: 0;

    border: 0;

    background: transparent;

    color: #83797c;

    font-size: 10px;

    text-decoration: underline;

    text-decoration-thickness: 1px;

    text-underline-offset: 3px;

    transition:
        color 0.2s ease;
}

.remove-cart-button:hover {
    color: var(--cart-error);
}


/* =========================================================
   EMPTY CART
   ========================================================= */

.cart-empty {
    width: 100%;
    min-height: 430px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 50px 20px;

    border-top:
        1px solid var(--cart-border);

    border-bottom:
        1px solid var(--cart-border);

    text-align: center;
}

.cart-empty-label {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    border-radius: 50%;

    background: var(--cart-pink-light);

    color: var(--cart-pink-dark);

    font-size: 18px;
}

.cart-empty h2 {
    margin: 0 0 9px;

    color: var(--cart-heading);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 27px;

    font-weight: 400;
}

.cart-empty p {
    margin: 0;

    color: var(--cart-muted);

    font-size: 11px;

    line-height: 1.6;
}


/* =========================================================
   SHOP BUTTON
   ========================================================= */

.cart-shop-button {
    min-width: 165px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-top: 22px;

    padding: 13px 22px;

    background: var(--cart-dark);

    color: #fff;

    border: 1px solid var(--cart-dark);

    font-size: 10px;

    text-decoration: none;

    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.cart-shop-button:hover {
    background: var(--cart-dark-hover);

    border-color: var(--cart-dark-hover);
}


/* =========================================================
   SUMMARY
   ========================================================= */

.cart-summary {
    width: 330px;

    position: sticky;
    top: 25px;

    padding: 28px 22px 24px;

    background: var(--cart-card);

    border: 1px solid #e2d7da;
}


/* =========================================================
   SUMMARY HEADING
   ========================================================= */

.cart-summary h2 {
    margin: 0 0 28px;

    color: var(--cart-heading);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 20px;

    line-height: 1.2;

    font-weight: 400;
}


/* =========================================================
   SUMMARY ROW
   ========================================================= */

.summary-row {
    width: 100%;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 13px;

    color: #82787b;

    font-size: 11px;

    line-height: 1.4;
}

.summary-row strong {
    color: #393234;

    font-size: 11px;

    font-weight: 400;

    white-space: nowrap;
}


/* =========================================================
   SAVINGS
   ========================================================= */

.saving-row span,
.saving-row strong {
    color: var(--cart-success);
}


/* =========================================================
   DIVIDER
   ========================================================= */

.summary-divider {
    width: 100%;

    height: 1px;

    margin: 18px 0;

    background: var(--cart-border-light);
}


/* =========================================================
   COUPON
   ========================================================= */

.coupon-section {
    width: 100%;
}

.coupon-section label {
    display: block;

    margin-bottom: 7px;

    color: var(--cart-heading);

    font-size: 11px;
}

.coupon-input-row {
    width: 100%;

    display: flex;

    align-items: stretch;

    gap: 5px;
}

.coupon-input-row input {
    min-width: 0;
    flex: 1;

    height: 32px;

    padding: 0 9px;

    border: 1px solid #d7cccf;

    outline: none;

    background: #fff;

    color: var(--cart-text);

    font-size: 10px;

    border-radius: 0;
}

.coupon-input-row input::placeholder {
    color: #aaa0a3;
}

.coupon-input-row input:focus {
    border-color: var(--cart-pink);
}

.coupon-input-row button {
    height: 32px;

    padding: 0 12px;

    border: 1px solid #d0c3c7;

    background: #f5eef0;

    color: var(--cart-text);

    font-size: 10px;

    transition:
        background 0.2s ease;
}

.coupon-input-row button:hover {
    background: var(--cart-pink-light);
}


/* =========================================================
   COUPON MESSAGE
   ========================================================= */

#couponMessage {
    display: block;

    min-height: 14px;

    margin-top: 6px;

    font-size: 9px;
}

#couponMessage.success {
    color: var(--cart-success);
}

#couponMessage.error {
    color: var(--cart-error);
}


/* =========================================================
   REWARD
   ========================================================= */

.reward-section {
    width: 100%;
}

.reward-heading {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 7px;

    color: var(--cart-heading);

    font-size: 11px;
}

.reward-heading strong {
    color: var(--cart-text);

    font-size: 10px;

    font-weight: 400;
}

.reward-input-row {
    width: 100%;

    display: flex;

    gap: 5px;
}

.reward-input-row input {
    min-width: 0;
    flex: 1;

    height: 32px;

    padding: 0 9px;

    border: 1px solid #d7cccf;

    outline: none;

    background: #fff;

    color: var(--cart-text);

    font-size: 10px;
}

.reward-input-row input:focus {
    border-color: var(--cart-pink);
}

.reward-input-row button {
    height: 32px;

    padding: 0 11px;

    border: 1px solid #d0c3c7;

    background: #f5eef0;

    color: var(--cart-text);

    font-size: 10px;

    transition:
        background 0.2s ease;
}

.reward-input-row button:hover {
    background: var(--cart-pink-light);
}

.reward-section small {
    display: block;

    margin-top: 6px;

    color: var(--cart-muted);

    font-size: 9px;

    line-height: 1.4;
}

.reward-message {
    min-height: 14px;

    margin-top: 4px;

    font-size: 9px;
}

.reward-message.success {
    color: var(--cart-success);
}

.reward-message.error {
    color: var(--cart-error);
}


/* =========================================================
   DELIVERY
   ========================================================= */

.delivery-section {
    width: 100%;

    margin: 3px 0 13px;
}

.delivery-section label {
    display: inline-block;

    margin-right: 7px;

    color: var(--cart-heading);

    font-size: 11px;
}

.delivery-section select {
    height: 28px;

    padding: 0 24px 0 7px;

    border: 1px solid #d7cccf;

    outline: none;

    background: #fff;

    color: var(--cart-text);

    font-size: 10px;

    border-radius: 0;
}

.delivery-section select:focus {
    border-color: var(--cart-pink);
}

.delivery-section small {
    display: block;

    margin-top: 7px;

    color: var(--cart-muted);

    font-size: 9px;

    line-height: 1.5;
}


/* =========================================================
   TOTAL
   ========================================================= */

.summary-total {
    width: 100%;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding-top: 3px;

    color: var(--cart-heading);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 15px;
}

.summary-total strong {
    color: var(--cart-heading);
    font-size: 15px;
    font-weight: 400;
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================================
   CHECKOUT BUTTON
   ========================================================= */

.checkout-button {
    width: 100%;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-top: 22px;

    padding: 0;

    border: 1px solid var(--cart-dark);

    outline: none;

    background: var(--cart-dark);

    color: #fff;

    font-size: 10px;

    letter-spacing: 0.2px;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        opacity 0.25s ease;
}

.checkout-button:hover {
    background: var(--cart-dark-hover);

    border-color: var(--cart-dark-hover);
}

.checkout-button:disabled {
    opacity: 0.45;

    cursor: not-allowed;
}


/* =========================================================
   CONTINUE SHOPPING
   ========================================================= */

.continue-button {
    display: block;

    margin-top: 16px;

    color: #81777a;

    text-align: center;

    font-size: 10px;

    text-decoration: underline;

    text-underline-offset: 3px;

    transition:
        color 0.2s ease;
}

.continue-button:hover {
    color: var(--cart-pink-dark);
}


/* =========================================================
   ALERT
   ========================================================= */

.cart-alert {
    width: 100%;

    margin-bottom: 20px;

    padding: 11px 14px;

    border: 1px solid #e6d8dc;

    background: #fffafa;

    color: #6e6266;

    font-size: 10px;

    line-height: 1.5;
}


/* =========================================================
   RESPONSIVE - 1100px
   ========================================================= */

@media (max-width: 1100px) {

    .cart-container {
        width: min(
            940px,
            calc(100% - 40px)
        );
    }

    .cart-layout {
        grid-template-columns:
            minmax(0, 1fr)
            310px;

        gap: 35px;
    }

    .cart-summary {
        width: 310px;
    }

    .cart-item-image {
        width: 100px;
        height: 125px;
    }

    .cart-item {
        grid-template-columns:
            100px
            minmax(0, 1fr);

        gap: 18px;
    }

}


/* =========================================================
   RESPONSIVE - 900px
   ========================================================= */

@media (max-width: 900px) {

    .cart-page {
        padding-top: 40px;
    }

    .cart-container {
        width: calc(100% - 36px);
    }

    .cart-layout {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .cart-summary {
        width: 100%;

        position: static;
    }

    .cart-items-section {
        width: 100%;
    }

}


/* =========================================================
   RESPONSIVE - 650px
   ========================================================= */

@media (max-width: 650px) {

    .cart-page {
        padding: 30px 0 70px;
    }

    .cart-container {
        width: calc(100% - 28px);
    }

    .cart-heading-row {
        align-items: center;

        margin-bottom: 25px;

        padding-bottom: 14px;
    }

    .cart-heading-row h1 {
        font-size: 27px;
    }

    .cart-heading-row span {
        font-size: 10px;
    }

    .cart-item {
        grid-template-columns:
            82px
            minmax(0, 1fr);

        gap: 14px;

        padding-bottom: 25px;

        margin-bottom: 25px;
    }

    .cart-item-image {
        width: 82px;
        height: 105px;
    }

    .cart-item-info {
        min-height: 105px;
    }

    .cart-item-top {
        gap: 10px;
    }

    .cart-item-name {
        font-size: 14px;
    }

    .cart-item-price {
        font-size: 12px;
    }

    .cart-item-price del {
        font-size: 10px;
    }

    .cart-item-bottom {
        margin-top: 10px;
    }

    .cart-quantity-form {
        width: 84px;
        height: 30px;
    }

    .cart-quantity-form button {
        width: 27px;
        height: 28px;
    }

    .cart-quantity-form span {
        width: 28px;
    }

    .cart-summary {
        padding: 23px 17px 20px;
    }

    .cart-summary h2 {
        font-size: 19px;

        margin-bottom: 24px;
    }

}


/* =========================================================
   RESPONSIVE - 480px
   ========================================================= */

@media (max-width: 480px) {

    .cart-container {
        width: calc(100% - 22px);
    }

    .cart-heading-row h1 {
        font-size: 25px;
    }

    .cart-heading-row span {
        font-size: 9px;
    }

    .cart-item {
        grid-template-columns:
            70px
            minmax(0, 1fr);

        gap: 11px;
    }

    .cart-item-image {
        width: 70px;
        height: 90px;
    }

    .cart-item-info {
        min-height: 90px;
    }

    .cart-item-top {
        flex-direction: column;

        gap: 3px;
    }

    .cart-item-name {
        margin-top: 0;

        font-size: 13px;
    }

    .cart-item-price {
        margin-top: 2px;

        font-size: 12px;
    }

    .cart-item-variant {
        font-size: 9px;

        gap: 5px;
    }

    .cart-item-variant span + span::before {
        margin-right: 5px;
    }

    .cart-sku {
        font-size: 8px;
    }

    .cart-item-bottom {
        margin-top: 8px;
    }

    .cart-quantity-form {
        width: 78px;
        height: 28px;
    }

    .cart-quantity-form button {
        width: 25px;
        height: 26px;

        font-size: 13px;
    }

    .cart-quantity-form span {
        width: 26px;

        font-size: 10px;
    }

    .remove-cart-button {
        font-size: 9px;
    }

    .cart-empty {
        min-height: 390px;
    }

    .cart-empty h2 {
        font-size: 23px;
    }

    .cart-empty p {
        max-width: 270px;

        font-size: 10px;
    }

    .coupon-input-row,
    .reward-input-row {
        gap: 4px;
    }

    .coupon-input-row button,
    .reward-input-row button {
        padding-left: 9px;
        padding-right: 9px;
    }

}


/* =========================================================
   VERY SMALL DEVICES
   ========================================================= */

@media (max-width: 360px) {

    .cart-container {
        width: calc(100% - 18px);
    }

    .cart-item {
        grid-template-columns:
            62px
            minmax(0, 1fr);

        gap: 9px;
    }

    .cart-item-image {
        width: 62px;
        height: 82px;
    }

    .cart-item-name {
        font-size: 12px;
    }

    .cart-item-price {
        font-size: 11px;
    }

    .cart-summary {
        padding-left: 14px;
        padding-right: 14px;
    }

}