/* =========================================================
   BORN REGAL - CART
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #111111;
    font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}


/* =========================================================
   CART PAGE
========================================================= */

.cart-page {
    width: 100%;
    min-height: 70vh;
    background: #ffffff;
    padding: 42px 0 70px;
}

.cart-container {
    width: min(1250px, 92%);
    margin: 0 auto;
}


/* =========================================================
   CART HEADER
========================================================= */

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e5e5e5;
}

.cart-header h1 {
    margin: 0;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.cart-header span {
    color: #777777;
    font-size: 13px;
}


/* =========================================================
   CART LAYOUT
========================================================= */

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 30px;
    align-items: start;
}

.cart-items-section {
    width: 100%;
}

.cart-items {
    width: 100%;
}


/* =========================================================
   CART ITEM
========================================================= */

.cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr) auto;
    column-gap: 18px;
    row-gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.cart-item:first-child {
    border-top: 1px solid #e5e5e5;
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.cart-product-image {
    width: 125px;
    height: 155px;
    overflow: hidden;
    background: #f7f7f7;
    border: 1px solid #eeeeee;
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.cart-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaaaaa;
    font-size: 25px;
}


/* =========================================================
   PRODUCT INFO
========================================================= */

.cart-product-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 2px;
}

.cart-product-info h3 {
    margin: 0 0 10px;
    color: #111111;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 600;
}

.cart-variant {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
}

.cart-variant span,
.cart-sku,
.cart-weight {
    color: #666666;
    font-size: 12px;
    line-height: 1.5;
}

.cart-sku {
    margin-bottom: 6px;
}

.cart-weight {
    margin-bottom: 16px;
    color: #777777;
}


/* =========================================================
   CART ACTIONS
========================================================= */

.cart-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.save-later-button,
.remove-cart-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #444444;
    font-size: 12px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.save-later-button:hover {
    color: #c9a227;
}

.remove-cart-button:hover {
    color: #b00020;
}


/* =========================================================
   PRODUCT PRICE
========================================================= */

.cart-product-price {
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.cart-product-price strong {
    color: #111111;
    font-size: 15px;
    font-weight: 700;
}

.cart-product-price del {
    color: #999999;
    font-size: 12px;
}


/* =========================================================
   QUANTITY
========================================================= */

.cart-quantity {
    grid-column: 2 / 4;
    justify-self: end;
    display: flex;
    align-items: center;
    border: 1px solid #d9d9d9;
    height: 36px;
    margin-top: -55px;
    margin-right: 0;
}

.cart-quantity button {
    width: 38px;
    height: 34px;
    border: 0;
    background: #ffffff;
    color: #111111;
    font-size: 17px;
    line-height: 1;
}

.cart-quantity button:hover {
    background: #f7f7f7;
}

.cart-quantity span {
    width: 38px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #eeeeee;
    border-right: 1px solid #eeeeee;
    color: #111111;
    font-size: 13px;
}


/* =========================================================
   ORDER SUMMARY
========================================================= */

.cart-summary {
    position: sticky;
    top: 95px;
    width: 100%;
    border: 1px solid #dedede;
    background: #ffffff;
    padding: 25px;
}

.cart-summary h2 {
    margin: 0 0 20px;
    padding-bottom: 17px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}


/* =========================================================
   SUMMARY ROW
========================================================= */

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
    color: #555555;
    font-size: 13px;
}

.summary-row strong {
    color: #111111;
    font-size: 13px;
}

.saving-row strong {
    color: #16803c;
}


/* =========================================================
   DIVIDER
========================================================= */

.summary-divider {
    width: 100%;
    height: 1px;
    background: #eeeeee;
    margin: 20px 0;
}


/* =========================================================
   COUPON
========================================================= */

.coupon-section label,
.delivery-section label {
    display: block;
    margin-bottom: 10px;
    color: #222222;
    font-size: 12px;
    font-weight: 600;
}

.coupon-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 62px;
    gap: 7px;
}

.coupon-input-row input {
    width: 100%;
    height: 38px;
    border: 1px solid #d5d5d5;
    padding: 0 10px;
    outline: none;
    background: #ffffff;
    color: #111111;
    font-size: 12px;
}

.coupon-input-row input:focus {
    border-color: #c9a227;
}

.coupon-input-row button,
.reward-input-row button {
    height: 38px;
    border: 1px solid #111111;
    background: #111111;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.coupon-input-row button:hover,
.reward-input-row button:hover {
    background: #c9a227;
    border-color: #c9a227;
    color: #111111;
}

#couponMessage {
    display: block;
    min-height: 17px;
    margin-top: 8px;
    font-size: 11px;
}

#couponMessage.success {
    color: #16803c;
}

#couponMessage.error {
    color: #b00020;
}


/* =========================================================
   REWARD POINTS
========================================================= */

.reward-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
}

.reward-heading > span {
    color: #333333;
    font-size: 12px;
    font-weight: 600;
}

.reward-heading strong {
    color: #c9a227;
    font-size: 11px;
}

.reward-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 75px;
    gap: 8px;
}

.reward-input-row input {
    width: 100%;
    height: 38px;
    border: 1px solid #d5d5d5;
    padding: 0 10px;
    outline: none;
    font-size: 12px;
}

.reward-input-row input:focus {
    border-color: #c9a227;
}

.reward-section > small {
    display: block;
    margin-top: 8px;
    color: #999999;
    font-size: 10px;
}

.reward-message {
    min-height: 16px;
    margin-top: 7px;
    font-size: 11px;
}

.reward-message.success {
    color: #16803c;
}


/* =========================================================
   DELIVERY LOCATION
========================================================= */

.delivery-section select {
    width: 100%;
    height: 40px;
    border: 1px solid #d5d5d5;
    background: #ffffff;
    padding: 0 10px;
    outline: none;
    color: #222222;
    font-size: 12px;
    cursor: pointer;
}

.delivery-section select:focus {
    border-color: #c9a227;
}

.delivery-section small {
    display: block;
    margin-top: 8px;
    color: #999999;
    font-size: 10px;
    line-height: 1.5;
}


/* =========================================================
   SHIPPING
========================================================= */

#shipping {
    font-weight: 700;
}


/* =========================================================
   GRAND TOTAL
========================================================= */

.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 18px;
    margin-top: 5px;
    border-top: 1px solid #111111;
}

.summary-total span {
    color: #111111;
    font-size: 14px;
    font-weight: 700;
}

.summary-total strong {
    color: #111111;
    font-size: 18px;
    font-weight: 700;
}


/* =========================================================
   CHECKOUT BUTTON
========================================================= */

.checkout-button {
    width: 100%;
    height: 47px;
    margin-top: 20px;
    border: 1px solid #111111;
    background: #111111;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: 0.25s ease;
}

.checkout-button:hover {
    background: #c9a227;
    border-color: #c9a227;
    color: #111111;
}

.checkout-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* =========================================================
   EMPTY CART
========================================================= */

.empty-cart {
    min-height: 430px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.empty-cart-icon {
    width: 65px;
    height: 65px;
    border: 1px solid #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.empty-cart-icon i {
    color: #c9a227;
    font-size: 25px;
}

.empty-cart h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.empty-cart p {
    margin: 0 0 22px;
    color: #777777;
    font-size: 13px;
}

.continue-shopping {
    min-width: 155px;
    height: 43px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111111;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.continue-shopping:hover {
    background: #c9a227;
    color: #111111;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1000px) {

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 700px) {

    .cart-page {
        padding: 25px 0 50px;
    }

    .cart-container {
        width: 94%;
    }

    .cart-header h1 {
        font-size: 23px;
    }

    .cart-item {
        grid-template-columns: 90px minmax(0, 1fr);
        column-gap: 14px;
        padding: 18px 0;
    }

    .cart-product-image {
        width: 90px;
        height: 115px;
    }

    .cart-product-info h3 {
        font-size: 15px;
    }

    .cart-product-price {
        position: absolute;
        top: 18px;
        right: 0;
    }

    .cart-product-price strong {
        font-size: 14px;
    }

    .cart-quantity {
        grid-column: 2;
        justify-self: start;
        margin-top: 2px;
    }

    .cart-actions {
        flex-wrap: wrap;
        gap: 12px;
    }

    .cart-summary {
        padding: 20px;
    }

}


/* =========================================================
   RESPONSIVE - SMALL MOBILE
========================================================= */

@media (max-width: 450px) {

    .cart-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .cart-header h1 {
        font-size: 21px;
    }

    .cart-item {
        grid-template-columns: 75px minmax(0, 1fr);
        column-gap: 12px;
    }

    .cart-product-image {
        width: 75px;
        height: 100px;
    }

    .cart-product-info h3 {
        font-size: 14px;
    }

    .cart-variant {
        gap: 7px;
        flex-direction: column;
    }

    .cart-product-price {
        position: static;
        grid-column: 2;
        align-items: flex-start;
    }

    .cart-quantity {
        grid-column: 2;
        margin-top: 0;
    }

    .coupon-input-row {
        grid-template-columns: 1fr 60px;
    }

    .reward-input-row {
        grid-template-columns: 1fr 70px;
    }

}