/* Reset body margin and padding */
body {
    margin: 0;
    padding: 0;
    background-color: #1a1a1a; /* Darker background color */
}

/* Fix navigation bar positioning */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #000000 !important;
    z-index: 1000;
}

/* Adjust main content to account for fixed nav */
.cart-page {
    padding: 80px 0 40px;
    min-height: 100vh; /* Make it full height */
    background-color: #1a1a1a; /* Match body background */
}

.cart-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: #1a1a1a; /* Match body background */
}

.cart-page h1 {
    color: #fff;
    margin-bottom: 30px;
    text-align: center;
}

/* Cart items container */
.cart-items {
    background: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.empty-cart {
    text-align: center;
    color: #ccc;
    padding: 40px 20px;
    font-size: 1.2rem;
}

.continue-shopping {
    display: inline-block;
    margin-top: 20px;
    color: #ff4444;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 20px;
    border: 1px solid #ff4444;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.continue-shopping:hover {
    background-color: #ff4444;
    color: #fff;
}

.cart-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.cancel-btn, .checkout-btn {
    padding: 12px 30px;
    border-radius: 5px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.cancel-btn {
    background: #444;
    color: #fff;
}

.checkout-btn {
    background: #fff;
    color: #000;
}

.cancel-btn:hover {
    background: #555;
}

.checkout-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Ensure navigation bar matches other pages */
.cart-page .nav-bar,
.cart-page .nav-container,
.cart-page .main-nav,
.cart-page .main-nav ul,
.cart-page .main-nav ul li {
    background-color: #000000 !important;
}

/* Ensure navigation buttons match home page */
.cart-page .nav-button {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid transparent !important;
}

.cart-page .nav-button:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.cart-page .nav-button.active {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
}

/* Ensure cart icon and count match home page */
.cart-page .cart-icon {
    position: relative;
    color: #fff !important;
    background-color: transparent !important;
}

.cart-page .cart-icon a {
    color: #fff !important;
    background-color: transparent !important;
}

.cart-page .cart-icon i {
    background-color: transparent !important;
}

/* Adjust cart icon position on mobile */
@media (max-width: 768px) {
    .cart-page .cart-icon {
        margin-right: 15px !important;
        margin-left: 15px !important;
    }
}

@media (max-width: 480px) {
    .cart-page .cart-icon {
        margin-right: 20px !important;
        margin-left: 10px !important;
    }
}

.cart-page .cart-count {
    background: #ff4444 !important;
    color: white !important;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

/* Cart item styling */
.cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s;
}

.cart-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.cart-item:last-child {
    border-bottom: none;
}

/* Cart item image container */
.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-details h3 {
    color: #fff;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

.item-details p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0;
}

.item-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    background: #333;
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.quantity-btn:hover {
    background: #444;
}

.quantity {
    color: #fff;
    min-width: 24px;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
}

.remove-item {
    color: #ff4444;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 1rem;
}

/* Item variants styling */
.item-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 5px 0 8px;
}

.variant-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
}

.flavor-tag {
    background-color: #ff4444;
    background-image: linear-gradient(45deg, #ff4444, #ff6b6b);
}

.size-tag {
    background-color: #2196F3;
    background-image: linear-gradient(45deg, #2196F3, #42a5f5);
}

.variant-tag i {
    margin-right: 5px;
    font-size: 0.7rem;
}

.item-price {
    font-weight: 600;
    color: #fff;
    margin-top: 5px;
}

/* Cart total section */
.cart-total {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
}

.cart-total h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

/* Cart actions */
.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
    padding: 0 15px;
    background-color: #1a1a1a; /* Match body background */
}

.cancel-btn, .checkout-btn {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cancel-btn {
    background: #444;
    color: #fff;
}

.cancel-btn:hover {
    background: #555;
    transform: translateY(-2px);
}

.checkout-btn {
    background: #fff;
    color: #000;
}

.checkout-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.empty-cart {
    text-align: center;
    padding: 40px 0;
}

.empty-cart p {
    color: #ccc;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.continue-shopping {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: transform 0.2s;
}

.continue-shopping:hover {
    transform: translateY(-2px);
}

/* Footer styling for cart page */
footer {
    background-color: #121212 !important;
    padding: 60px 0 0 !important;
    margin-top: 60px !important;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .container {
    background-color: #121212 !important;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
    background-color: #121212 !important;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    background-color: #121212 !important;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    background-color: transparent !important;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    background-color: #121212 !important;
}

.footer-nav, .footer-contact {
    background-color: #121212 !important;
}

.footer-nav h3, .footer-contact h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #fff;
    background-color: #121212 !important;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #121212 !important;
}

.footer-nav ul li {
    margin-bottom: 10px;
    background-color: #121212 !important;
}

.footer-nav ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    background-color: #121212 !important;
}

.footer-nav ul li a:hover {
    color: #fff;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #ccc;
    background-color: #121212 !important;
}

.whatsapp-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    background-color: #121212 !important;
}

.whatsapp-link:hover {
    color: #25D366;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #0a0a0a !important;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    background-color: transparent !important;
}

/* Responsive styles */
@media (max-width: 768px) {
    .cart-page {
        padding: 70px 0 30px;
    }
    
    .cart-item {
        grid-template-columns: 70px 1fr auto;
        gap: 15px;
        padding: 15px;
    }
    
    .cart-item img {
        width: 70px;
        height: 70px;
    }
    
    .item-details h3 {
        font-size: 1.1rem;
    }
    
    .item-details p {
        font-size: 1rem;
    }
    
    .quantity-btn {
        width: 32px;
        height: 32px;
    }
    
    .quantity {
        min-width: 32px;
    }
    
    .cart-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cancel-btn, .checkout-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 480px) {
    .cart-page {
        padding: 60px 0 20px;
    }
    
    .cart-page .container {
        padding: 0 10px;
    }
    
    .cart-page h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .cart-items {
        border-radius: 8px;
    }
    
    .cart-item {
        grid-template-columns: 50px 1fr auto;
        gap: 10px;
        padding: 12px;
    }
    
    .cart-item-image {
        width: 50px;
        height: 50px;
    }
    
    .item-details h3 {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }
    
    .variant-tag {
        padding: 3px 6px;
        font-size: 0.7rem;
    }
    
    .item-price {
        font-size: 0.9rem;
    }
    
    .quantity-controls {
        display: flex;
        align-items: center;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
        padding: 2px;
    }
    
    .quantity-btn {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .quantity {
        min-width: 24px;
        font-size: 0.9rem;
    }
    
    .remove-item {
        font-size: 0.9rem;
        margin-top: 5px;
    }
}

/* Make sure html and body are full height with the same background */
html, body {
    height: 100%;
    background-color: #1a1a1a;
}





