
*{box-sizing:border-box}body{font-family:Arial,Helvetica,sans-serif;margin:0;background:#f6f9fb;color:#0b2b36}
.container{max-width:1200px;margin:0 auto;padding:0 18px}
header.site-header{background:#408fc1;padding:12px 0;position:relative}
.header-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.logo-group{display:flex;align-items:center;gap:12px}
.logo-img{width:64px;height:64px;object-fit:contain;background:#fff;border-radius:8px;padding:6px}
.logo-x{color:#fff;font-size:34px;margin:0}
.right-side{display:flex;align-items:center;gap:12px;flex:1;justify-content:flex-end;min-width:0}
.search-wrapper{position:relative;flex:1;max-width:520px}
.search-box{width:100%;padding:10px 44px 10px 14px;border-radius:24px;border:1px solid #e1eef6}
.search-icon{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#6b7b82}
.hamburger{font-size:30px;color:#fff;cursor:pointer;padding:6px 10px;border-radius:6px}
.dropdown-menu{position:absolute;right:18px;top:78px;display:none;flex-direction:column;width:320px;background:#324a52;border-radius:8px;padding:8px;box-shadow:0 8px 24px rgba(0,0,0,0.35);z-index:9999}
.menu-link{color:#cfeefe;text-decoration:none;padding:10px 14px;display:block;font-weight:700}
.menu-link:hover{background:#3d87db;color:#fff}
.main{padding:28px 0}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.product-card{background:#fff;border-radius:12px;padding:14px;text-align:center;box-shadow:0 6px 18px rgba(10,30,50,0.06);cursor:pointer}
.product-img{height:160px;display:flex;align-items:center;justify-content:center;background:#f6fbff;border-radius:8px;overflow:hidden;margin-bottom:10px}
.product-img img{max-width:100%;max-height:100%;object-fit:contain}
.card-bottom{display:flex;justify-content:center;gap:12px;margin-top:10px}
.cart-btn,.price-btn{width:44px;height:44px;border-radius:50%;border:none;background:#0b4f79;color:#fff;cursor:pointer}
@media(max-width:992px){.product-grid{grid-template-columns:repeat(3,1fr)}.logo-img{width:58px;height:58px}.logo-x{font-size:28px}}
@media(max-width:600px){.product-grid{grid-template-columns:repeat(2,1fr)}.search-wrapper{max-width:none}.dropdown-menu{right:12px;top:72px;width:260px}.logo-img{width:48px;height:48px}.logo-x{font-size:22px}.hamburger{font-size:28px}}
/* Enhanced cart button styles */
.cart-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-btn:active {
    transform: scale(0.95);
}

.cart-btn.adding {
    background-color: #28a745 !important;
    color: white !important;
}

/* Debug info styles */
.debug-info {
    position: fixed;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 10000;
    display: none;
}/* Floating cart for mobile */
@media (max-width: 768px) {
    .yns-header-cart {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
        animation: float 3s ease-in-out infinite;
    }
    
    @keyframes float {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-5px);
        }
    }
    
    /* Ensure cart is visible over other content */
    .yns-header-cart .cart-icon-link {
        box-shadow: 0 4px 25px rgba(0,0,0,0.4);
    }
}

/* Ensure cart stays visible in dropdown menu on mobile */
@media (max-width: 768px) {
    .dropdown-menu .yns-header-cart {
        position: static;
        margin: 10px 15px;
    }
    
    .dropdown-menu .cart-icon-link {
        border-radius: 8px;
        width: auto;
        height: auto;
        padding: 12px 20px;
        justify-content: flex-start;
    }
    
    .dropdown-menu .cart-text {
        display: inline;
    }
    
    .dropdown-menu .cart-count {
        position: static;
        margin-right: 8px;
    }
}/* Header Cart Styles */
.yns-header-cart {
    margin-left: auto;
    padding: 0 15px;
}

.cart-icon-link {
    display: flex;
    align-items: center;
    background: #0d2345;
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cart-icon-link:hover {
    background: #1a3a6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cart-icon-link i {
    font-size: 1.2em;
    margin-right: 8px;
}

.cart-count {
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.cart-text {
    font-weight: 500;
    font-size: 0.9em;
}

/* Pulse animation for cart count */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Cart count animation when item added */
.cart-count.added {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.3);
    }
    80% {
        transform: scale(1.1);
    }
}

/* Mobile responsive for header cart */
@media (max-width: 768px) {
    .yns-header-cart {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
        padding: 0;
    }
    
    .cart-icon-link {
        padding: 12px;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        justify-content: center;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    }
    
    .cart-text {
        display: none;
    }
    
    .cart-count {
        position: absolute;
        top: -5px;
        right: -5px;
        margin-right: 0;
    }
    
    .cart-icon-link i {
        margin-right: 0;
        font-size: 1.4em;
    }
}

/* Desktop specific styles */
@media (min-width: 769px) {
    .yns-header-cart {
        order: 999; /* Ensure it stays on the right */
    }
    
    .dropdown-menu .yns-header-cart {
        margin: 10px 0;
        padding: 0;
    }
    
    .dropdown-menu .cart-icon-link {
        justify-content: center;
        border-radius: 8px;
    }
}