/* =========================================================
   PERFUMESIA — CART
   Storefront / Shopping Cart
========================================================= */

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* =========================================================
   CART ITEM
========================================================= */

.cart-item {
    display: flex;
    gap: 16px;
    align-items: center;

    padding: 16px;

    background: #151515;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.cart-item:hover {
    border-color: rgba(0, 200, 150, 0.18);
}


/* =========================================================
   IMAGE
========================================================= */

.cart-img {
    width: 88px;
    height: 88px;

    flex: 0 0 auto;

    object-fit: cover;

    border-radius: 14px;
}


/* =========================================================
   PRODUCT INFORMATION
========================================================= */

.cart-info {
    flex: 1;
    min-width: 0;
}

.cart-product h4,
.cart-info h4 {
    margin: 0;

    color: #fff;

    font-size: 17px;
}

.cart-product small,
.cart-info small {
    color: #aaa;
}


/* =========================================================
   PRICE
========================================================= */

.cart-price,
.cart-qty,
.cart-subtotal {
    margin-top: 5px;

    color: #ddd;

    font-size: 14px;
}

.cart-price {
    margin-top: 8px;

    color: #fff;

    font-size: 16px;
    font-weight: 700;
}

.cart-subtotal strong {
    color: #fff;
}


/* =========================================================
   QUANTITY CONTROLS
========================================================= */

.cart-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 12px;
}

.cart-controls button {
    min-width: 36px;
    min-height: 34px;

    padding: 7px 10px;

    background: #202020;
    color: #fff;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;

    font: inherit;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.cart-controls button:hover {
    background: #292929;
    border-color: rgba(255, 255, 255, 0.12);
}

.cart-controls button:active {
    transform: translateY(1px);
}

.cart-controls button:disabled {
    opacity: 0.5;
    cursor: wait;
}

.cart-controls span,
.cart-quantity {
    min-width: 28px;

    color: #fff;

    font-weight: 700;
    text-align: center;
}


/* =========================================================
   REMOVE
========================================================= */

.removeItem {
    margin-left: 4px;

    background: #3a1111 !important;
    color: #ffb3b3 !important;
}

.removeItem:hover {
    background: #4b1717 !important;
}


/* =========================================================
   TOTAL
========================================================= */

.cart-total {
    margin-top: 18px;
    padding: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    background: #101010;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;

    color: #fff;

    font-size: 18px;
    font-weight: 700;
}

.cart-total strong {
    color: #00c896;

    font-size: 21px;
}


/* =========================================================
   EMPTY CART
========================================================= */

.cart-empty {
    padding: 28px 18px;

    background: #151515;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;

    color: #ccc;

    text-align: center;
}


/* =========================================================
   ORDER SUCCESS
========================================================= */

.order-success {
    display: flex;
    flex-direction: column;
    gap: 8px;

    margin-top: 14px;
    padding: 18px;

    background: rgba(0, 200, 150, 0.08);

    border: 1px solid rgba(0, 200, 150, 0.22);
    border-radius: 16px;

    color: #ddd;
}

.order-success strong {
    color: #00c896;
    font-size: 16px;
}

.order-success span {
    color: #ddd;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 700px) {

    .cart-item {
        align-items: flex-start;
    }

    .cart-img {
        width: 78px;
        height: 78px;
    }

}


/* =========================================================
   MOBILE — iPHONE / ANDROID
========================================================= */

@media (max-width: 520px) {

    .cart-item {
        display: grid;

        grid-template-columns: 76px minmax(0, 1fr);

        gap: 12px;

        padding: 12px;

        border-radius: 14px;
    }

    .cart-img {
        width: 76px;
        height: 76px;

        border-radius: 12px;
    }

    .cart-product h4,
    .cart-info h4 {
        font-size: 15px;
    }

    .cart-price {
        font-size: 15px;
    }

    .cart-controls {
        gap: 6px;
    }

    .cart-controls button {
        min-width: 34px;
        min-height: 34px;
    }

    .removeItem {
        margin-left: 0;
    }

    .cart-total {
        padding: 15px;

        font-size: 16px;
    }

    .cart-total strong {
        font-size: 18px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-img {
        width: 100%;
        height: 190px;
    }

    .cart-controls {
        width: 100%;
    }

}
