/* =========================================
   HOME PAGE SPECIFIC STYLES
   ========================================= */

/* --- Hero Section --- */
.hero-content {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold);
    border-radius: 50px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.text-gradient-gold {
    background: linear-gradient(to right, #D4AF37, #FDD017);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #D4AF37; /* Fallback */
}

.hero-description {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn--primary {
    background: var(--gold);
    color: #000;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
}

.btn--primary:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--surface-border);
    color: var(--text-primary);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn--outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* --- Company Info --- */
.company-info {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.company-info__main-title {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 30px;
}

.company-info__title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}

.company-info__text {
    color: #aaa;
    font-size: 1.25rem;
    line-height: 1.6;
}

/* --- Hero Visual (Floating Cards) --- */
.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icon-box {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, transparent 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--gold);
    animation: pulse 3s infinite;
}

.floating-cards {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.floating-card i { color: var(--gold); font-size: 1.2rem; }
.floating-card-1 { top: 10%; right: 10%; animation: float 6s ease-in-out infinite; }
.floating-card-2 { bottom: 20%; left: 0%; animation: float 8s ease-in-out infinite reverse; }
.floating-card-3 { top: 40%; right: -5%; animation: float 7s ease-in-out infinite 1s; }

/* --- Product Cards --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.product-card__image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card__img {
    transform: scale(1.1);
}

.product-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-card__overlay {
    opacity: 1;
}

.product-card__badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold);
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-card__actions {
    position: absolute;
    bottom: 20px;
    right: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-card__actions {
    transform: translateY(0);
    opacity: 1;
}

.product-card__action-btn {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-card__action-btn:hover {
    background: var(--gold);
    color: #fff;
}

.product-card__content {
    padding: 20px;
}

.product-card__category {
    font-size: 1.25rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-card__title {
    margin: 10px 0;
}

.product-card__title a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.product-card__title a:hover {
    color: var(--gold);
}

.product-card__stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.product-card__stock.in-stock {
    color: #2ecc71;
}

.product-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.product-card__price {
    color: var(--gold);
    font-weight: 700;
    font-size: 2rem;
}

.product-card__btn {
    font-size: 1.25rem;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.product-card__btn:hover {
    color: var(--gold);
}

/* --- Features --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-5px);
    border-color: var(--gold);
}

.feature-card__icon {
    font-size: 40px;
    color: var(--gold);
    margin-bottom: 20px;
}

.feature-card__title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 15px;
}

.feature-card__text {
    color: #aaa;
    font-size: 1.25rem;
    line-height: 1.6;
}

/* --- CTA Section --- */
.cta-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    border-radius: 20px;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
}

.cta-card__content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.cta-card__title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.cta-card__text {
    color: #ccc;
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.cta-card__buttons {
    display: flex;
    gap: 15px;
}

.cta-card__icon {
    font-size: 150px;
    color: rgba(212,175,55,0.1);
    transform: rotate(-15deg);
}

/* --- Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    .hero-visual { min-height: 400px; margin-top: 50px; }
    .cta-card { flex-direction: column; text-align: center; padding: 30px; }
    .cta-card__icon { display: none; }
    .cta-card__buttons { justify-content: center; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; }
}

/* =========================================
   DESKTOP USER DROPDOWN STYLES
   ========================================= */
@media (min-width: 992px) {
    .user-dropdown {
        position: relative;
        display: inline-block;
        margin-left: 15px;
        z-index: 1002; /* Ensure above other header elements */
    }

    .user-dropdown__toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #fff;
        text-decoration: none;
        padding: 5px 10px;
        border-radius: 5px;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .user-dropdown__toggle:hover {
        background: rgba(255,255,255,0.05);
        color: var(--gold);
    }

    .user-dropdown__toggle i {
        font-size: 24px;
        color: var(--gold);
    }

    .user-dropdown__menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: #1a1a1a;
        border: 1px solid rgba(212, 175, 55, 0.2);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        border-radius: 10px;
        padding: 10px 0;
        z-index: 1100; /* Higher z-index */
        display: none; /* Toggled by JS */
        
        /* Override components.css .nav-dropdown styles */
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-dropdown__link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 3px 20px;
        color: #ccc;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .nav-dropdown__link:hover {
        background: rgba(212, 175, 55, 0.1);
        color: var(--gold);
        padding-left: 25px;
    }

    .nav-dropdown__link i {
        font-size: 18px;
        color: var(--gold);
        width: 20px;
        text-align: center;
    }

    .user-dropdown__menu .divider {
        height: 1px;
        background: rgba(255,255,255,0.1);
        margin: 5px 0;
    }
}

/* =========================================
   MOBILE HEADER & MENU OVERRIDES
   ========================================= */
@media (min-width: 992px) {
    .menu-toggle {
        display: none !important;
    }
}

@media (max-width: 991px) {
    /* 1. Header Layout Optimization - Responsive Flex Grid */
    .header-wrapper {
        display: flex;
        flex-direction: row !important; /* Horizontal layout */
        justify-content: flex-start !important; /* Align left to group Logo + Menu */
        align-items: center;
        padding: 10px 0; /* Adequate padding */
        height: 70px; /* Fixed height for consistency */
        position: relative;
    }

    /* 2. Logo Adjustment - Prominent & Larger */
    .header-logo {
        margin-bottom: 0;
        z-index: 101;
        flex: 0 0 auto;
        padding-left: 15px; /* Spacing from edge */
    }

    .header-logo img {
        height: 48px !important; /* Increased size (~30-40% > typical 35px) */
        width: auto;
        max-height: none;
        object-fit: contain;
    }

    /* 3. Icon Implementation & Grouping */
    .header-actions {
        margin-top: 0;
        display: flex;
        align-items: center;
        gap: 12px; /* proper spacing between elements */
        flex: 0 0 auto;
        padding-right: 15px; /* Spacing from edge */
        margin-left: auto; /* Push actions to the right */
    }

    /* Common Icon Styles for Consistency */
    .header-action-btn,
    .menu-toggle,
    .user-dropdown__toggle,
    .lang-dropdown__toggle {
        width: 40px; /* Min touch target */
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        position: relative;
        border-radius: 50%; /* Circular touch area */
        transition: background 0.3s ease;
    }

    .header-action-btn:active,
    .menu-toggle:active,
    .user-dropdown__toggle:active,
    .lang-dropdown__toggle:active {
        background: rgba(212, 175, 55, 0.1) !important; /* Subtle feedback */
    }

    /* Icon Graphics - SVG look */
    .header-action-btn i,
    .user-dropdown__toggle i,
    .lang-dropdown__toggle i,
    .lang-dropdown__toggle::before {
        font-size: 24px; /* Consistent 24x24px size */
        color: var(--gold);
        line-height: 1;
    }

    /* ---------------------------------------------------------
       Icon Ordering (Left to Right):
       a) Main menu (Hamburger) - NOW MOVED BESIDE LOGO
       b) User dashboard
       c) Shopping cart
       d) Language selector
       --------------------------------------------------------- */
    
    /* a) Main Menu Icon (Hamburger) */
    .menu-toggle {
        order: 0; /* Natural order */
        position: static !important; /* Flow with others */
        flex-direction: column;
        gap: 5px;
        margin-left: 10px; /* Spacing from logo */
        display: flex;
    }
    .menu-toggle span {
        width: 24px;
        height: 2px;
        background: var(--gold);
        display: block;
        border-radius: 2px;
    }

    /* b) User Dashboard Icon */
    .user-dropdown {
        order: 0;
        margin: 0;
        display: block !important;
        background-color: #5d5d5d;
        top: 20px;
    }
    .user-dropdown__toggle .user-name,
    .user-dropdown__toggle .la-angle-down {
        display: none; /* Hide text labels for icon-only view */
    }
    .user-dropdown__toggle i {
        font-size: 26px; /* Slightly larger for visual balance */
    }

    /* c) Shopping Cart Icon */
    .cart-icon-wrapper {
        order: 3;
        margin: 0;
    }
    .cart-count {
        position: absolute;
        top: 2px;
        right: 2px;
        width: 16px;
        height: 16px;
        font-size: 10px;
        line-height: 16px;
        background: #fff;
        color: #000;
        border: 1px solid var(--gold);
    }

    /* d) Language Selector Icon */
    .lang-dropdown {
        order: 4;
        margin: 0;
        position: relative; /* Ensure parent context */
    }
    .lang-dropdown__toggle span,
    .lang-dropdown__toggle i {
        display: none; /* Hide text and default chevron */
    }
    .lang-dropdown__toggle::before {
        content: '\f0ac'; /* Globe icon (Line Awesome / Font Awesome code) */
        font-family: "Line Awesome Free";
        font-weight: 900;
        font-size: 24px;
        color: var(--gold);
    }

    /* 4. Visual Hierarchy & Dropdowns */
    .user-dropdown__menu,
    .lang-dropdown__menu {
        position: fixed; /* Changed to fixed for better mobile handling */
        top: 70px; /* Below header */
        left: 15px; /* Align to left for user menu */
        width: 200px;
        background: rgba(20, 20, 20, 0.95);
        border: 1px solid var(--gold);
        backdrop-filter: blur(10px);
        z-index: 1200; /* Higher than menu overlay */
        display: none; /* Hidden by default */
        border-radius: 10px;
        padding: 10px 0;
    }
    
    .lang-dropdown__menu {
        left: auto;
        right: 15px; /* Keep lang menu on right */
    }

    /* Mobile Menu Modal (Center Overlay) */
    .nav-menu {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.9) !important;
        width: 90% !important;
        max-width: 350px !important;
        height: auto !important;
        max-height: 80vh;
        background: rgba(20, 20, 20, 0.95) !important;
        backdrop-filter: blur(10px);
        border: 1px solid var(--gold);
        border-radius: 20px;
        padding: 30px 20px !important;
        z-index: 1100;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
        overflow-y: auto !important;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1) !important;
        right: auto !important;
    }

    .nav-menu__item {
        width: 100%;
        margin-bottom: 12px;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-menu.active .nav-menu__item {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active .nav-menu__item:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-menu__item:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active .nav-menu__item:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active .nav-menu__item:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active .nav-menu__item:nth-child(5) { transition-delay: 0.5s; }

    .nav-menu__link {
        justify-content: center;
        background: rgba(255,255,255,0.1);
        border-radius: 50px;
        padding: 12px 20px !important;
        border: 1px solid transparent;
        color: #fff !important;
        font-weight: 600;
        text-align: center;
    }

    .nav-menu__link:hover,
    .nav-menu__link.active {
        background: rgba(255,255,255,0.15);
        border-color: var(--gold);
        color: var(--gold) !important;
    }

    .nav-menu__link i {
        color: var(--gold);
        margin-left: 10px;
    }

    .nav-dropdown {
        position: absolute;
        top: 7vh;
        background: #3e3d3c !important;
        box-shadow: none !important;
        padding-left: 0 !important;
        border: none !important;
        display: none;
        text-align: center;
    }

    .nav-menu__item.active .nav-dropdown {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .nav-dropdown__link {
        color: #ccc !important;
        padding: 8px !important;
    }

    .mobile-overlay {
        display: block !important;
        background: rgba(0,0,0,0.8) !important;
        z-index: 100;
    }
}

/* =========================================
   FLOATING BUTTONS RESTORATION
   ========================================= */
/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 50%;
    z-index: 9999; /* High z-index */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    background: #fff;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}