/* ---------- BLACK + SILVER + ROYAL BLUE THEME ---------- */
:root {
    /* --dark-bg: #0a0a0a; */
    --dark-card-bg: #ffffff;
    --text-light: #000000;
    --accent-silver: #C0C0C0;
    --glow-shadow: 0 0 8px #C0C0C0, 0 0 16px #C0C0C0, 0 0 24px #C0C0C0;
}

/* Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
body {
    background: var(--dark-bg);
    color: var(--text-light);
    scroll-behavior: smooth;
    line-height: 1.6;
    overflow-x: hidden;   /* FIXED */
}

/* 🔸 Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #66996f;
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 5px rgba(192, 192, 192, 0.25);
}
nav .logo img {
    height: 80px;
    width: auto;
    border-radius: 14px;
    object-fit: cover;
    padding: 4px;
    transition: all 0.35s ease-in-out;
}
nav .logo img:hover {
    transform: scale(1.1) rotate(-2deg);
    border-radius: 18px;
}
.nav-links a {
    color: white;
    padding: 8px 14px;
    border-radius: 25px;
    font-weight: 500;
    transition: 0.3s;
}
.nav-links a:hover {
    background: rgba(30, 58, 138, 0.15);
    color: var(--text-light);
}

/* Buttons */
.buttons {
    background-color: var(--dark-bg);
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.buttons:hover {
    background-color: var(--highlight-blue);
    color: #ffffff;
    transform: translateY(-2px);
}

/* 🔸 Cart Section */
.cart-container {
    max-width: 1000px;
    margin: 60px auto;
    background: #0F3D2E;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    padding: 30px;
}
h2 {
    text-align: center;
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #ffffff;
}

.cart-item img {
    width: 80px;
    aspect-ratio: 9/11;
    object-fit: cover;
    border-radius: 12px;
}

.cart-details {
    flex: 1;
    margin-left: 20px;
}
.cart-details h3 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 1.1rem;
}
.cart-details p {
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Base quantity styling */
.cart-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart-quantity button {
    padding: 8px 12px;
    font-size: 1rem;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}
.cart-quantity span {
    font-size: 1rem;
    font-weight: 600;
    min-width: 26px;
    text-align: center;
    color: #ffffff;
}

.remove-btn {
    border: none;
    background: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.9rem;
}

.cart-summary {
    text-align: right;
    margin-top: 25px;
    font-size: 1.1rem;
    color: #ffffff;
}

.checkout-btn {
    margin-left: 700px;
    margin-top: 20px;
    padding: 12px 30px;
    background: white;
    color: rgb(3, 0, 0);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: linear-gradient(135deg, #137c54, #163a24);
    color: white;
    transform: translateY(-3px);
}

/* ---------- Footer ---------- */
footer {
    background: #0F3D2E;
    padding: 10px 10px;
    color: white;
    text-align: center;
}

.footer-container {
    padding: 15px 15px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.footer-container h3 {
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-container a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}

.footer-container a:hover {
    color: #76d7b1;
}

.footer-container p {
    color: white;
    font-size: 0.95rem;
    text-align: center;
}

/* ---------- Responsive Navbar ---------- */
@media(max-width: 900px) {
    nav {
        padding: 10px 15px;
    }
    .nav-links {
        display: flex;
        gap: 0px;
        overflow-x: auto;
        white-space: nowrap;
    }
    .buttons {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    nav .logo img {
        height: 60px;
    }
}

/* =============================
   📌 RESPONSIVE CART FIX MERGED
============================= */

/* 🟦 Reduce container width on tablets */
@media(max-width: 900px) {
    .cart-container {
        max-width: 95%;
        padding: 20px;
    }
}

/* 🟦 Cart item stacks vertically on mobile */
@media(max-width: 700px) {
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .cart-details {
        margin-left: 0;
    }
    .cart-item img {
        width: 100px;
    }
}
@media (max-width: 992px) {
    .footer-container {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
    .footer-container .social-column {
        text-align: center;
    }
}
/* Small devices */
@media (max-width: 576px) {
    .footer-container {
        gap: 15px;
    }
    footer p {
        font-size: 0.85rem;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .footer-container {
        gap: 10px;
    }
    footer p {
        font-size: 0.75rem;
    }
}

/* Extra extra small devices */
@media (max-width: 375px) {
    .footer-container {
        gap: 8px;
        padding: 10px 8px;
    }
    footer p {
        font-size: 0.7rem;
    }
}
/* ---------- SMALL DEVICE FIX ---------- */
@media(max-width: 500px) {
    footer p {
        font-size: 0.8rem;
    }
    .footer-container {
        text-align: center;
    }
    .social-column {
        text-align: center;
    }
}
/* 🟦 Checkout button fully responsive */
@media(max-width: 700px) {
    .checkout-btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

/* Extra mobile polishing */
@media(max-width: 480px) {
    .cart-container {
        padding: 15px;
    }
    h2 {
        font-size: 1.6rem;
    }
    .cart-details h3 {
        font-size: 1rem;
    }
}

/* Quantity button breakpoints (your original kept) */
@media (max-width: 768px) {
    .cart-quantity {
        gap: 8px;
    }

    .cart-quantity button {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .cart-quantity span {
        font-size: 0.9rem;
        min-width: 22px;
    }
}

/* Mobile screens (max-width: 480px) */
@media (max-width: 480px) {
    .cart-quantity {
        gap: 6px;
    }

    .cart-quantity button {
        padding: 5px 8px;
        font-size: 0.8rem;
        border-radius: 5px;
    }

    .cart-quantity span {
        font-size: 0.8rem;
        min-width: 20px;
    }
}

/* Very small devices (max-width: 375px) */
@media (max-width: 375px) {
    .cart-quantity {
        gap: 5px;
    }

    .cart-quantity button {
        padding: 5px 7px;
        font-size: 0.75rem;
    }

    .cart-quantity span {
        font-size: 0.75rem;
        min-width: 18px;
    }
}

/* Ultra-small screens (max-width: 320px — iPhone SE old / Mini) */
@media (max-width: 320px) {
    .cart-quantity {
        gap: 4px;
    }

    .cart-quantity button {
        padding: 4px 6px;
        font-size: 0.7rem;
    }

    .cart-quantity span {
        font-size: 0.7rem;
        min-width: 16px;
    }
}