/**
 * megamenu.css
 * HORIZONTAL mega-menu - Categories side by side
 * Simple grid layout
 */

/* ========================================
   MEGA-MENU CONTAINER
   ======================================== */

.megamenu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    z-index: 999;
    /* Apply padding directly here - no container */
    max-width: none;
    padding: 0;
}

.has-megamenu.open .megamenu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

/* Remove container - not needed */
.megamenu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* ========================================
   GRID - START FROM LOGO POSITION
   Same padding as navbar: max-width 1400px, padding 0 40px
   ======================================== */

.megamenu-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 60px;
    padding: 40px;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
}

/* ========================================
   CATEGORY COLUMN
   ======================================== */

.megamenu-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 200px;
    flex: 0 0 auto;
}

.megamenu-category-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #86868b;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 2px solid #c5a059;
}

/* ========================================
   SUBCATEGORY LINKS
   ======================================== */

.megamenu-subcategory {
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1d1d1f;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.megamenu-subcategory:hover {
    background: rgba(197, 160, 89, 0.1);
    color: #c5a059;
    transform: translateX(3px);
}

/* ========================================
   DARK MODE
   ======================================== */

[data-theme="dark"] .megamenu {
    background: rgba(26, 26, 29, 0.98);
    backdrop-filter: blur(40px);
}

[data-theme="dark"] .megamenu-category-title {
    color: #d4af6a;
}

[data-theme="dark"] .megamenu-subcategory {
    color: #f5f5f7;
}

[data-theme="dark"] .megamenu-subcategory:hover {
    background: rgba(212, 175, 106, 0.15);
    color: #d4af6a;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
    .megamenu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .megamenu-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}