/* =========================
   FLOATING CART
========================= */

.floating-cart {
    position: fixed;
    bottom: 25px;
    right: 25px;

    background: linear-gradient(
        135deg,
        #FF1A1A,
        #FF4D00
    );

    color: white;

    padding: 14px 18px;

    border-radius: 18px;

    display: flex;
    align-items: center;
    gap: 14px;

    cursor: pointer;

    z-index: 9999;

    box-shadow:
        0 10px 30px rgba(255, 77, 0, 0.45),
        0 0 20px rgba(255, 77, 0, 0.25);

    transition: 0.3s ease;

    backdrop-filter: blur(10px);
}

.floating-cart:hover {
    transform: translateY(-4px) scale(1.02);
}

.cart-icon {
    font-size: 26px;
}

.cart-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.cart-info span {
    font-size: 13px;
    opacity: 0.85;
}

.cart-info strong {
    font-size: 18px;
}

/* =========================
   CART SIDEBAR
========================= */

.cart-sidebar {
    position: fixed;

    top: 0;
    right: -450px;

    width: 420px;
    max-width: 100%;

    height: 100vh;

    background: #111;

    z-index: 10000;

    display: flex;
    flex-direction: column;

    transition: right 0.35s ease;

    box-shadow:
        -10px 0 40px rgba(0,0,0,0.45);
}

.cart-sidebar.active {
    right: 0;
}

/* =========================
   OVERLAY
========================= */

.cart-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.6);

    backdrop-filter: blur(4px);

    opacity: 0;
    visibility: hidden;

    transition: 0.3s ease;

    z-index: 9998;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================
   CART HEADER
========================= */

.cart-header {
    padding: 24px;

    border-bottom: 1px solid rgba(255,255,255,0.08);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h2 {
    color: white;
    font-size: 26px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.cart-header button {
    background: transparent;
    border: none;

    color: white;

    font-size: 26px;

    cursor: pointer;

    transition: 0.3s;
}

.cart-header button:hover {
    transform: rotate(90deg);
    color: #FF4D00;
}

/* =========================
   CART ITEMS
========================= */

.cart-items {
    flex: 1;

    overflow-y: auto;

    padding: 20px;
}

/* SCROLLBAR */

.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: #FF4D00;
    border-radius: 10px;
}

/* =========================
   CART ITEM
========================= */

.cart-item {
    background: #1A1A1A;

    border-radius: 16px;

    padding: 16px;

    margin-bottom: 16px;

    border: 1px solid rgba(255,255,255,0.05);

    transition: 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(255, 77, 0, 0.15);
}

/* =========================
   CART ITEM TOP
========================= */

.cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 10px;
}

.cart-item-top h4 {
    color: white;

    font-size: 17px;
    font-weight: 600;

    line-height: 1.3;
}

.cart-item-top button {
    background: transparent;
    border: none;

    color: #999;

    font-size: 18px;

    cursor: pointer;

    transition: 0.3s ease;
}

.cart-item-top button:hover {
    color: #FF4D00;
    transform: scale(1.1);
}

/* =========================
   CART CONFIG TEXT
========================= */

.cart-item p {
    color: rgba(255,255,255,0.65);

    font-size: 13px;

    margin-bottom: 14px;

    line-height: 1.5;
}

/* =========================
   CART ITEM BOTTOM
========================= */

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-bottom strong {
    color: #FFC300;

    font-size: 18px;
}

/* =========================
   QTY CONTROLS
========================= */

.qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;

    background: rgba(255,255,255,0.04);

    padding: 6px 10px;

    border-radius: 999px;
}

.qty-controls button {
    width: 28px;
    height: 28px;

    border-radius: 50%;

    border: none;

    background: linear-gradient(
        135deg,
        #FF1A1A,
        #FF4D00
    );

    color: white;

    font-size: 18px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.25s ease;
}

.qty-controls button:hover {
    transform: scale(1.08);

    box-shadow:
        0 0 12px rgba(255, 77, 0, 0.5);
}

.qty-controls span {
    color: white;

    min-width: 18px;

    text-align: center;

    font-weight: 600;
}

/* =========================
   CART FOOTER
========================= */

.cart-footer {
    padding: 22px;

    border-top: 1px solid rgba(255,255,255,0.08);

    background: #141414;
}

/* =========================
   SUMMARY
========================= */

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 18px;
}

.cart-summary span {
    color: rgba(255,255,255,0.7);

    font-size: 15px;
}

.cart-summary strong {
    color: white;

    font-size: 24px;
}

/* =========================
   CHECKOUT BUTTON
========================= */

.checkout-btn {
    width: 100%;

    border: none;

    padding: 18px;

    border-radius: 16px;

    background: linear-gradient(
        135deg,
        #FFC300,
        #FF8C00,
        #FF4D00
    );

    color: black;

    font-size: 17px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.3s ease;

    box-shadow:
        0 10px 25px rgba(255, 140, 0, 0.25);
}

.checkout-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 15px 35px rgba(255, 77, 0, 0.35);
}

/* =========================
   EMPTY CART
========================= */

.empty-cart {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    text-align: center;

    color: rgba(255,255,255,0.5);

    gap: 12px;
}

.empty-cart .emoji {
    font-size: 60px;
}

.empty-cart h3 {
    color: white;

    font-size: 22px;
}

.empty-cart p {
    font-size: 14px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .floating-cart {
        left: 15px;
        right: 15px;
        bottom: 15px;

        justify-content: center;

        border-radius: 16px;
    }

    .cart-sidebar {
        width: 100%;
    }

    .cart-header {
        padding-top: 60px;
    }

    .checkout-btn {
        padding: 16px;
    }
}