/* ==========================================================================
   1. Base & Reset Styles
   ========================================================================== */
html {
    scroll-behavior: smooth; /* 🎯 Smooth scrolling animation when clicking banner */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #fafaf8;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Premium Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c5a028;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a472a;
}

/* Main Layout Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   2. Header & Navigation (Dynamic Fixes)
   ========================================================================== */
.cart-count {
    background: #FFD700;
    color: #1a472a;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
}

.user-name {
    color: #FFD700;
    font-size: 0.9rem;
}

/* ==========================================================================
   3. Hero Section with Clickable Slider & Bottom Content
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 500px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide1 { background: linear-gradient(135deg, #1a472a 0%, #2d5a3b 50%, #c5a028 100%); }
.slide2 { background: linear-gradient(135deg, #8B0000 0%, #c5a028 50%, #1a472a 100%); }
.slide3 { background: linear-gradient(135deg, #2d5a3b 0%, #1a472a 50%, #FFD700 100%); }

/* 🎯 Full Clickable Slide Link & Bottom Shift Styles */
.slide-clickable-link {
    display: flex !important;
    align-items: flex-end !important; /* Shifts text content to the bottom */
    justify-content: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-content-bottom {
    padding: 30px 20px 45px 20px !important; /* Bottom spacing */
    width: 100%;
    text-align: center;
}

.hero-content-bottom h1 {
    font-size: 2.2rem;
    margin-bottom: 0.4rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
    animation: fadeInUp 0.8s ease;
}

.hero-content-bottom p {
    font-size: 1rem;
    opacity: 0.95;
    color: #e2e8f0;
    margin-bottom: 0;
}

.hero-content-bottom .company-tag {
    font-size: 0.85rem;
    color: #FFD700;
    font-weight: 700;
    letter-spacing: 2px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #FFD700;
    width: 30px;
    border-radius: 6px;
}

/* ==========================================================================
   4. Products Grid Section & Action Buttons
   ========================================================================== */
.featured-products, .new-arrivals, .best-sellers {
    padding: 60px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 1rem;
    color: #1a472a;
    margin: 8px 0;
    font-weight: 600;
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
}

.current-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a472a;
}
.original-price {
    font-size: 0.9rem;
    color: #888;
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: normal;
}

.weight-options {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.weight-option {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.weight-option:hover, .weight-option.active {
    background: #c5a028;
    color: white;
    border-color: #c5a028;
}

.add-to-cart {
    width: 100%;
    background: #1a472a;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.add-to-cart:hover {
    background: #c5a028;
    color: white;
    transform: translateY(-2px);
}

/* Premium Buy Now Button Style */
.btn-buy-now {
    background: #FFD700 !important;
    color: #1a472a !important;
    border: 1px solid #c5a028 !important;
    padding: 10px 0;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
}

.btn-buy-now:hover {
    background: #c5a028 !important;
    color: white !important;
}

/* ==========================================================================
   5. Clean & Robust Footer Layout
   ========================================================================== */
.footer {
    background: #0a1f12;
    color: #ccc;
    padding: 60px 0 0 0;
    margin-top: 60px;
    border-top: 4px solid #c5a028;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    padding: 0 24px;
}

.footer-section h3 {
    color: #c5a028;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #FFD700;
    transform: translateX(5px);
}

.newsletter input {
    width: 100%;
    padding: 10px;
    border: 1px solid #c5a028;
    border-radius: 4px;
    margin-bottom: 10px;
    background: #fff;
    color: #333;
}

.newsletter button {
    background: #c5a028;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter button:hover {
    background: #FFD700;
    color: #1a472a;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding: 25px;
    border-top: 1px solid #2d5a3b;
    margin-top: 50px;
    background: #051009;
}

/* ==========================================================================
   6. 1000% Responsive Media Queries
   ========================================================================== */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hero-slider {
        height: 360px;
    }
    .hero-content-bottom h1 {
        font-size: 1.5rem;
    }
    .hero-content-bottom p {
        font-size: 0.85rem;
    }
    .hero-content-bottom {
        padding: 20px 15px 35px 15px !important;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .hero-content-bottom h1 {
        font-size: 1.3rem;
    }
    .container {
        padding: 0 15px;
    }
}

/* Premium Floating Red Cart Badge */
.badge-cart-red {
    position: absolute;
    top: -2px;
    right: 5px;
    background: #ff3333;
    color: white !important;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid #0a1f12;
    transition: all 0.3s ease;
}

.badge-cart-red:empty {
    display: none;
}
