@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #1e1e1e;
    --bg-card: #2b2b2b;
    --bg-card-hover: #333333;
    --accent-gold: #f4c430;
    --accent-gold-dark: #e0a800;
    --accent-blue: #29b6f6;
    --accent-blue-hover: #039be5;
    
    /* Text Colors */
    --text-main: #f5f5f5;
    --text-muted: #aaaaaa;
    --border-color: #444444;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.3);
    --shadow-gold: 0 4px 15px rgba(244, 196, 48, 0.2);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #fff;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.text-blue { color: var(--accent-blue); }
.section-padding { padding: 100px 0; }
.section-header { margin-bottom: 60px; text-align: center; }
.section-title { font-size: 2.8rem; color: var(--accent-gold); margin-bottom: 15px; }
.section-subtitle { color: var(--text-muted); font-size: 1.15rem; max-width: 700px; margin: 0 auto; }

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slider Controls */
.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}
.hero-slide.active {
    opacity: 1;
    z-index: 2;
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: 1px solid var(--accent-gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    font-size: 20px;
}
.slider-arrow:hover {
    background: var(--accent-gold);
    color: #000;
}
.slider-prev { left: 20px; }
.slider-next { right: 20px; }
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}
.slider-dot.active {
    background: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
    transform: scale(1.2);
}

/* Hero Content Styles */
.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(20,20,20,0.85) 0%, rgba(30,30,30,0.2) 100%);
    z-index: 2;
}
.hero-subtitle {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-family: var(--font-primary);
    font-weight: 700;
}
.hero-title {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 35px;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

/* Enhanced Cards */
.category-card {
    display: block; 
    background: var(--bg-dark); 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid var(--border-color); 
    position: relative;
    transition: var(--transition);
}
.category-card:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
    transform: translateY(-5px);
}

.product-card {
    background: var(--bg-card); 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid var(--border-color); 
    transition: var(--transition); 
    box-shadow: var(--shadow-sm);
}
.product-card .img-container {
    aspect-ratio: 1 / 1;
    height: auto;
    width: 100%;
    background: #1a1a1a; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative;
    overflow: hidden; /* Important for zoom effect */
}
.product-card .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
    border-color: var(--accent-gold);
}
.product-card:hover .img-container img {
    transform: scale(1.05);
}
.card-info { padding: 25px; }
.card-cat { font-size: 0.85rem; color: var(--accent-gold); text-transform: uppercase; margin-bottom: 8px; letter-spacing: 1px; font-weight: 600; }
.card-title { margin-bottom: 12px; font-size: 1.2rem; color: #fff; font-family: var(--font-primary); font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-link { display: inline-block; padding-bottom: 3px; border-bottom: 1px solid var(--accent-blue); color: var(--accent-blue); font-size: 0.95rem; font-weight: 600; transition: color 0.3s; }
.product-card:hover .card-link { color: var(--accent-gold); border-color: var(--accent-gold); }
.sku-badge { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.85); color: var(--accent-gold); font-size: 11px; padding: 5px 10px; border-radius: 4px; font-weight: bold; border: 1px solid var(--accent-gold); letter-spacing: 1px; z-index: 2; }


/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: #000 !important;
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-gold-dark) 0%, #c69400 100%);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold) !important;
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: #000 !important;
}

/* Header */
.site-header {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent-gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}
.mobile-close-btn, .mobile-only-btn {
    display: none !important;
}

/* Footer */
.site-footer {
    background: #111;
    padding: 80px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--accent-blue);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--text-main);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-gold);
    color: #000;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s;
    animation: pulse 2s infinite;
}

.whatsapp-widget:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Page Banner */
.page-banner {
    padding: 150px 0 80px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.8)), url('../images/pattern.png');
    background-color: var(--bg-card);
    text-align: center;
    border-bottom: 1px solid var(--accent-gold);
}

.page-banner h1 {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.breadcrumb {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--accent-blue);
}

/* About Grid & Excellence Badge */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.excellence-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--accent-gold);
    color: #000;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-gold);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    z-index: 5;
}

@media (max-width: 992px) {
    .header-actions { display: none; }
    .mobile-menu-btn { display: block; }
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(15, 15, 15, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        display: flex;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        z-index: 9999;
        border: none;
    }
    .main-nav.show {
        opacity: 1;
        visibility: visible;
    }
    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .main-nav a {
        display: block;
        padding: 10px;
        font-size: 1.3rem;
        border: none;
    }
    .mobile-close-btn {
        display: block !important;
        position: absolute;
        top: 25px;
        right: 25px;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 40px;
        cursor: pointer;
        transition: color 0.3s;
    }
    .mobile-close-btn:hover {
        color: var(--accent-gold);
    }
    .mobile-only-btn {
        display: block !important;
    }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    
    .section-title { font-size: 2.2rem; }
    
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .excellence-badge { 
        bottom: -15px; 
        left: -10px;
        transform: none;
        padding: 15px 20px;
        min-width: 120px;
    }
    .excellence-badge h3 {
        font-size: 2.2rem !important;
    }
    .excellence-badge p {
        font-size: 0.75rem !important;
    }
    
    /* Tablet Slider Adjustments */
    .slider-container { min-height: 450px; height: 60vh; }
    .hero-title { font-size: 2.4rem; margin-bottom: 20px; line-height: 1.2; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 15px; }
    .hero-slide .container > div { max-width: 85%; padding-left: 30px; }
    .slider-prev { left: 15px; width: 40px; height: 40px; font-size: 16px; }
    .slider-next { right: 15px; width: 40px; height: 40px; font-size: 16px; }
    .slider-dots { bottom: 20px; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .whatsapp-widget { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 24px; }
    
    .section-padding { padding: 60px 0; }
    .section-header { margin-bottom: 40px; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 1rem; }
    
    .slider-container { min-height: 400px; height: 75vh; }
    .hero-title { font-size: 1.8rem !important; margin-bottom: 15px !important; line-height: 1.25 !important; }
    .hero-subtitle { font-size: 0.85rem !important; letter-spacing: 2px !important; margin-bottom: 12px !important; }
    .hero-slide .btn { padding: 12px 25px !important; font-size: 0.95rem !important; }
    .hero-overlay {
        background: linear-gradient(to top, rgba(15,15,15,0.95) 0%, rgba(30,30,30,0.3) 100%);
    }
}

@media (max-width: 576px) {
    .slider-container { min-height: 380px; height: 60vh; }
    .hero-slide .container { align-items: flex-end !important; padding-bottom: 60px !important; padding-left: 15px !important; justify-content: flex-start !important; }
    .hero-slide .container > div { max-width: 90% !important; padding-left: 0 !important; }
    .hero-title { font-size: 1.1rem !important; margin-bottom: 8px !important; line-height: 1.2 !important; text-shadow: 0 2px 5px rgba(0,0,0,0.9); }
    .hero-subtitle { font-size: 0.65rem !important; letter-spacing: 0.5px !important; margin-bottom: 6px !important; text-shadow: 0 2px 5px rgba(0,0,0,0.9); }
    .hero-slide .btn { padding: 6px 15px !important; font-size: 0.75rem !important; }
    
    .category-card { margin-bottom: 15px; }
    
    /* Hide slider arrows on very small screens to save space */
    .slider-arrow { display: none; }
    
    /* 2 Column Mobile Grid */
    .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; }
    .product-grid-layout { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; }
    .product-card .img-container { aspect-ratio: 1 / 1; height: auto; }
    .card-info { padding: 12px; }
    .card-cat { font-size: 0.65rem; margin-bottom: 4px; letter-spacing: 0.5px; }
    .card-title { font-size: 0.9rem; margin-bottom: 8px; line-height: 1.3; }
    .card-link { font-size: 0.8rem; }
    .sku-badge { font-size: 9px; padding: 3px 6px; top: 10px; right: 10px; }
    .section-padding { padding: 50px 0; }
}

/* Premium Preloader */
.premium-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

.premium-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    animation: subtle-pulse 2.5s infinite alternate ease-in-out;
}

.loader-progress-bar {
    width: 150px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
    border-radius: 2px;
    animation: loader-slide 1.5s infinite ease-in-out alternate;
    box-shadow: 0 0 10px var(--accent-gold);
}

@keyframes subtle-pulse {
    0% { transform: scale(0.95); opacity: 0.7; filter: drop-shadow(0 0 10px rgba(244,196,48,0.1)); }
    100% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 25px rgba(244,196,48,0.8)); }
}

@keyframes loader-slide {
    0% { left: -50%; width: 50%; }
    100% { left: 100%; width: 50%; }
}

/* Page Transition Loader (NProgress style at the top) */
.page-transition-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
    z-index: 9999999;
    box-shadow: 0 0 10px var(--accent-gold);
    transition: width 0.3s ease-out, opacity 0.3s ease;
    opacity: 0;
}
.page-transition-bar.active {
    opacity: 1;
}

/* Mobile Landscape Layout */
@media (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }
    .product-grid-layout {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }
}

/* Featured Products Dynamic Row Limits */
/* Default (Desktop 4 cols, Mobile Portrait 2 cols) -> 8 products (2 or 4 rows) */
.featured-products-grid .product-card:nth-child(n+9) {
    display: none !important;
}

/* Tablet & Mobile Landscape (3 cols) -> 9 products (3 rows) */
@media (min-width: 768px) and (max-width: 1100px), 
       (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
    .featured-products-grid .product-card:nth-child(9) {
        display: block !important;
    }
    .featured-products-grid .product-card:nth-child(n+10) {
        display: none !important;
    }
}
