/* ========== CUSTOM STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
}

.font-sora {
    font-family: 'Sora', serif;
}

.font-poppins {
    font-family: 'Poppins', sans-serif;
}

/* ========== HEADER STYLES ========== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ========== CART COUNT BADGE ========== */
.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #FF8C42;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

/* ========== PRODUCT CARD ========== */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    cursor: pointer;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.btn-quick-view {
    flex: 1;
    background: #f3f4f6;
    color: #374151;
    padding: 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-quick-view:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.btn-add-cart {
    flex: 1;
    background: #16a34a;
    color: white;
    padding: 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: #15803d;
    transform: translateY(-2px);
}

/* Quantity Controls on Card */
.card-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.card-quantity-controls button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.card-quantity-controls button:hover {
    background: #16a34a;
    color: white;
    border-color: #16a34a;
}

.card-quantity-controls span {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* ========== CART SIDEBAR ========== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-sidebar-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-sidebar-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-sidebar-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

/* ========== NOTIFICATION ========== */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

.notification.error {
    background: #e74c3c;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========== BRAND SLIDER ========== */
.brand-slider-container {
    overflow: hidden;
    background: linear-gradient(135deg, #f8faf6 0%, #ffffff 100%);
    padding: 40px 0;
}

.brand-slider {
    display: flex;
    gap: 50px;
    animation: slideBrands 20s linear infinite;
}

.brand-slider:hover {
    animation-play-state: paused;
}

.brand-item {
    flex-shrink: 0;
    min-width: 150px;
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.brand-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.brand-item p {
    font-weight: 600;
    color: #374151;
}

@keyframes slideBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== HERO BUTTONS ========== */
.btn-shop-now {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-shop-now:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.3);
    gap: 15px;
}

/* ========== TIMELINE STYLES ========== */
.timeline-item {
    position: relative;
    padding-left: 30px;
    padding-bottom: 35px;
    border-left: 3px solid #e5e7eb;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    border-left-color: #16a34a;
    transform: translateX(5px);
}

.timeline-item:last-child {
    border-left: 3px solid transparent;
}

.timeline-dot {
    position: absolute;
    left: -11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #16a34a;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: #16a34a;
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.2);
}

/* ========== STAT CARDS HOVER ========== */
.stat-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.stat-card:hover i {
    transform: scale(1.1);
}

/* ========== VALUE CARDS ========== */
.value-card {
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card:hover .value-icon {
    background: #16a34a;
}

.value-card:hover .value-icon i {
    color: white;
}

/* ========== SHOP HERO ========== */
.shop-hero {
    background: linear-gradient(135deg, #0a3d1a 0%, #16a34a 50%, #22c55e 100%);
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='rgba(255,255,255,0.05)' d='M100 0L120 40H160L130 70L140 110L100 90L60 110L70 70L40 40H80L100 0Z'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 60px;
    opacity: 0.3;
}

/* ========== FILTER SIDEBAR ========== */
.filter-sidebar {
    transition: all 0.3s ease;
}

.filter-section {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.filter-section:last-child {
    border-bottom: none;
}

.category-filter-item {
    transition: all 0.2s ease;
}

.category-filter-item:hover {
    background: #f0fdf4;
    padding-left: 8px;
}

/* ========== QUICK VIEW MODAL ========== */
.quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2500;
    justify-content: center;
    align-items: center;
}

.quick-view-modal.active {
    display: flex;
}

.quick-view-content {
    background: white;
    border-radius: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalZoom 0.3s ease;
}

@keyframes modalZoom {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========== FOOTER STYLES ========== */
.footer-modern {
    background: linear-gradient(135deg, #0f3b1a 0%, #0a2e14 100%);
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff8c42, #16a34a, #ff8c42);
}

.footer-logo {
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.social-icon-footer {
    transition: all 0.3s ease;
}

.social-icon-footer:hover {
    transform: translateY(-3px);
    background: #16a34a !important;
    color: white !important;
}

/* ========== PRINT BILL STYLES ========== */
@media print {
    .no-print {
        display: none !important;
    }
    .print-bill {
        padding: 20px;
        font-size: 12px;
    }
    .print-bill h2 {
        font-size: 18px;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .brand-item {
        min-width: 120px;
    }
    
    .brand-item img {
        width: 60px;
        height: 60px;
    }
    
    .btn-shop-now {
        padding: 10px 24px;
        font-size: 1rem;
    }
    
    .quick-view-content {
        width: 95%;
    }
}

/* ========== BRAND SLIDER ========== */
.brand-slider-container {
    overflow: hidden;
    background: linear-gradient(135deg, #f8faf6 0%, #ffffff 100%);
    padding: 40px 0;
}

.brand-slider {
    display: flex;
    gap: 50px;
    animation: slideBrands 25s linear infinite;
}

.brand-slider:hover {
    animation-play-state: paused;
}

.brand-item {
    flex-shrink: 0;
    min-width: 150px;
    text-align: center;
    padding: 20px 15px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.brand-logo-wrapper {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    background: #f8faf6;
    border-radius: 50%;
    padding: 12px;
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.brand-item p {
    font-weight: 600;
    color: #374151;
    margin-top: 8px;
    font-size: 14px;
}

@keyframes slideBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Mobile responsive for brand slider */
@media (max-width: 768px) {
    .brand-item {
        min-width: 120px;
        padding: 15px 10px;
    }
    
    .brand-logo-wrapper {
        width: 60px;
        height: 60px;
        padding: 8px;
    }
    
    .brand-item p {
        font-size: 12px;
    }
    
    .brand-slider {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .brand-item {
        min-width: 100px;
        padding: 12px 8px;
    }
    
    .brand-logo-wrapper {
        width: 50px;
        height: 50px;
        padding: 6px;
    }
}