/* 
 * Maeva Electro - Modern Design System
 * Focus: Professional, Clean, Premium
 */

:root {
    /* Color Palette - Ultra Premium Luxury Tech */
    --primary: #020617;
    /* Slate 950 */
    --primary-light: #0f172a;
    --accent: #2563eb;
    /* Royal Blue 600 */
    --accent-glow: rgba(37, 99, 235, 0.4);
    --secondary: #6366f1;
    /* Indigo 500 */
    --success: #10b981;
    --danger: #f43f5e;
    /* Rose 500 */

    /* Neutral - Darker Shades for depth */
    --bg-main: #ffffff;
    --bg-alt: #f1f5f9;
    /* Slate 100 */
    --text-main: #0f172a;
    --text-muted: #475569;
    /* Slate 600 */
    --border: #e2e8f0;

    /* Advanced Shadows - Multi-layered */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 20px var(--accent-glow);

    /* Glassmorphism v2 */
    --glass: rgba(255, 255, 255, 0.75);
    --glass-dark: rgba(2, 6, 23, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);

    /* Layout Constants */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2.5rem;

    /* Refined Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-premium: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Mesh Gradient Utilities */
.mesh-gradient {
    background-color: #020617;
    background-image:
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.15) 0, transparent 50%),
        radial-gradient(at 50% 0%, rgba(99, 102, 241, 0.15) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(244, 63, 94, 0.1) 0, transparent 50%);
}

/* Base Styles */
body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--primary);
}

/* High-Fidelity Card Style */
.premium-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-premium);
    overflow: hidden;
    position: relative;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.premium-card:hover {
    box-shadow: var(--shadow-premium);
    transform: translateY(-8px);
    border-color: var(--accent);
}

.premium-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
}

/* Button Luxury Refinement */
.btn-premium {
    background: var(--primary);
    color: #ffffff;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: var(--transition-premium);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.3);
}

.btn-premium:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(37, 99, 235, 0.4);
    color: #ffffff;
    border-color: transparent;
}

.btn-premium-accent {
    background: var(--accent);
}

.btn-premium-accent:hover {
    background: var(--accent-hover);
}

/* Precise Glassmorphism */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.glass-dark-effect {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(16px) saturate(200%);
    -webkit-backdrop-filter: blur(16px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Badge System */
.badge-modern {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-new {
    background: #dcfce7;
    color: #166534;
}

.badge-sale {
    background: #fee2e2;
    color: #991b1b;
}

/* Grid Layouts */
.modern-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Header Adjustments */
.navbar-area {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Homepage Specific Interactions */
.single-product:hover .product-hover-overlay {
    opacity: 1 !important;
}

.single-product:hover .product-image img {
    transform: scale(1.1);
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: var(--radius-full);
}

.section-title.text-start h2::after {
    left: 0;
    transform: none;
}

/* Luxury Typography */
/* --- Global Micro-animations & Refinements --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.animate-fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered animation for grid items */
.col-lg-3,
.col-lg-4,
.col-lg-6 {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.col-lg-3:nth-child(1) {
    animation-delay: 0.1s;
}

.col-lg-3:nth-child(2) {
    animation-delay: 0.2s;
}

.col-lg-3:nth-child(3) {
    animation-delay: 0.3s;
}

.col-lg-3:nth-child(4) {
    animation-delay: 0.4s;
}

/* Refined Premium Button Glow */
.btn-premium-accent::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    filter: blur(8px);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-fast);
    border-radius: inherit;
}

.btn-premium-accent:hover::after {
    opacity: 0.5;
}

/* Glass Tabs Refinement */
.nav-tabs .nav-link.active {
    opacity: 1 !important;
    background: var(--accent) !important;
    color: #fff !important;
    border-radius: 12px;
    padding: 10px 25px !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Section Header Premium Accent */
.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 20px auto 0;
    border-radius: 2px;
}

.section-title.text-start h2::after {
    margin: 20px 0 0;
}

/* Section Spacing */
.section-premium {
    padding: 120px 0;
}

/* --- Header & Layout Refinements --- */
.header {
    margin: 0 !important;
    padding: 0 !important;
    top: 0 !important;
}

.topbar {
    margin-top: 0 !important;
}

.sticky-header.sticky {
    top: 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-width: 100%;
    height: auto !important;
    max-height: 45px;
    object-fit: contain;
}

/* --- Responsive Typography & Spacing --- */
.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.offer-title {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 800;
    margin: 20px 0;
    letter-spacing: -1px;
}

.section-title-premium {
    font-size: 2.5rem;
    font-weight: 800;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
        letter-spacing: -1px;
    }

    .offer-title {
        font-size: 2.5rem;
    }

    .section-title-premium {
        font-size: 2rem;
    }

    .section-premium {
        padding: 80px 0;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 1rem !important;
    }

    .offer-title {
        font-size: 1.8rem;
    }

    .section-title-premium {
        font-size: 1.75rem;
    }

    .section-premium {
        padding: 60px 0;
    }

    /* Utility for responsive padding */
    .mobile-px-3 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .mobile-mt-5 {
        margin-top: 3rem !important;
    }
}

/* Navigation Search Mobile Fix */
@media (max-width: 991px) {
    .header-middle .search-form {
        margin-top: 15px;
        width: 100%;
    }

    .header-middle .navbar-brand {
        margin-bottom: 0;
    }
}

/* --- Product Details Responsive --- */
.detail-title {
    font-size: 3.5rem;
    font-weight: 800;
}

.detail-price {
    font-size: 2.5rem;
    font-weight: 800;
}

@media (max-width: 1199px) {
    .detail-title {
        font-size: 2.8rem;
    }

    .detail-price {
        font-size: 2rem;
    }
}

@media (max-width: 991px) {
    .product-images {
        position: static !important;
        margin-bottom: 40px;
    }

    .product-info-premium {
        padding-left: 0 !important;
    }

    .detail-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 767px) {
    .product-images .main-img {
        height: 350px !important;
    }

    .detail-title {
        font-size: 1.8rem;
    }

    .detail-price {
        font-size: 1.5rem;
    }

    .price-display {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px !important;
        width: 100%;
    }

    .details-tabs {
        padding: 30px 15px !important;
    }

    .details-tabs .nav-tabs {
        gap: 20px !important;
    }

    .details-tabs .nav-link {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .product-images .main-img {
        height: 280px !important;
    }
}