/* Cart Page Styles */
.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.cart-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e7e7e7;
}

.cart-header h1 {
    color: #016699;
    margin-bottom: 10px;
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    background: #f8f8f8;
    border-radius: 10px;
    border: 1px solid #e7e7e7;
    transition: box-shadow 0.3s ease;
}

.cart-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    margin-right: 20px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
    margin-right: 20px;
}

.cart-item-details h4 {
    color: #016699;
    margin-bottom: 8px;
    font-size: 18px;
}

.cart-item-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.cart-item-price {
    color: #2596be;
    font-weight: bold;
    font-size: 16px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: #fff;
    color: #016699;
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #2596be;
    color: #fff;
    border-color: #2596be;
}

.cart-item-quantity input {
    width: 60px;
    height: 35px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 5px;
    border-radius: 4px;
    font-size: 16px;
}

.cart-item-total {
    width: 120px;
    text-align: right;
    margin-right: 20px;
    color: #016699;
    font-size: 18px;
}

.cart-item-remove {
    width: 40px;
}

.remove-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: #C81010;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: #a00;
    transform: scale(1.1);
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.empty-cart i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart h3 {
    color: #666;
    margin-bottom: 10px;
}

.empty-cart p {
    color: #999;
    margin-bottom: 30px;
}

.cart-summary {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e7e7e7;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e7e7e7;
}

.summary-row:last-child {
    border-bottom: none;
    font-size: 20px;
    font-weight: bold;
    color: #016699;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 2px solid #2596be;
}

.summary-label {
    color: #666;
}

.summary-value {
    color: #016699;
    font-weight: bold;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: #2596be;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.checkout-btn:hover {
    background: #016699;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.continue-shopping {
    text-align: center;
    margin-top: 20px;
}

.continue-shopping a {
    color: #2596be;
    text-decoration: none;
    font-weight: bold;
}

.continue-shopping a:hover {
    color: #016699;
    text-decoration: underline;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #2596be;
    color: #fff;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Cart Badge in Navbar - Consistent across all pages */
/* ONLY style cart badge, NOT other badges */
/* CRITICAL: Use very specific selectors to avoid affecting other badges */

/* First, ensure cart-badge container is positioned */
li.cart-badge {
    position: relative;
    display: inline-block;
}

li.cart-badge > a {
    position: relative;
    display: inline-block;
}

/* ONLY style #cart-count inside .cart-badge with href="cart.html", NOT other badges */
/* Be VERY specific - only target cart badge, not any other badge */
/* Use child combinator (>) to ensure direct child relationship */
li.cart-badge > a[href="cart.html"] > span#cart-count.badge,
li.cart-badge > a[title="Shopping Cart"] > span#cart-count.badge {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: #C81010 !important;
    color: #fff !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 12px !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    line-height: 20px !important;
    text-align: center !important;
    z-index: 10 !important;
}

/* Ensure cart badge works in navbar */
.main-navbar-nav li.cart-badge {
    position: relative;
    display: inline-block;
}

.main-navbar-nav li.cart-badge > a {
    position: relative;
    display: inline-block;
}

/* VERY SPECIFIC: Only target cart badge in navbar, not any other badge */
.main-navbar-nav li.cart-badge > a[href="cart.html"] > span#cart-count.badge,
.main-navbar-nav li.cart-badge > a[title="Shopping Cart"] > span#cart-count.badge {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: #C81010 !important;
    color: #fff !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 12px !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    line-height: 20px !important;
    text-align: center !important;
    z-index: 10 !important;
}

/* CRITICAL: Prevent any badge styling from affecting social media badges */
/* Hide any badge or cart-count inside social media links - MUST be at the END to override */
a[href*="tiktok"] .badge,
a[href*="tiktok"] #cart-count,
a[href*="tiktok"] span.badge,
a[href*="instagram"] .badge,
a[href*="instagram"] #cart-count,
a[href*="instagram"] span.badge,
a[href*="whatsapp"] .badge,
a[href*="whatsapp"] #cart-count,
a[href*="whatsapp"] span.badge,
a[href*="facebook"] .badge,
a[href*="facebook"] #cart-count,
a[href*="facebook"] span.badge,
a[href*="twitter"] .badge,
a[href*="twitter"] #cart-count,
a[href*="twitter"] span.badge,
a[href*="mailto"] .badge,
a[href*="mailto"] #cart-count,
a[href*="mailto"] span.badge,
a[href*="tel:"] .badge,
a[href*="tel:"] #cart-count,
a[href*="tel:"] span.badge {
    /* Do not apply cart badge styles to social media badges */
    position: static !important;
    display: none !important;
    visibility: hidden !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    top: auto !important;
    right: auto !important;
    opacity: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Add to Cart Button Styling */
.add-to-cart-btn {
    margin-top: 10px;
    font-size: 12px !important;
    padding: 8px 15px !important;
    background: none;
    border: 1px solid #2596be;
    color: #2596be;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.add-to-cart-btn:hover {
    background: #2596be;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.add-to-cart-btn i {
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-item {
        flex-wrap: wrap;
    }

    .cart-item-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .cart-item-details {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .cart-item-quantity {
        width: 100%;
        justify-content: center;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .cart-item-total {
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .cart-item-remove {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

