/* --- Theme Variables --- */
:root {
    --theme-pink: #FF4F81;
    --text-dark: #333;
    --bg-light: #f9f9f9;
}

/* --- Header --- */
header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 0 5%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease-out;
}

.header-hidden { transform: translateY(-100%); }

.logo-container { display: flex; align-items: center; gap: 10px; justify-content: center; }
.brand-name { font-size: 1.5rem; font-weight: 700; color: var(--theme-pink) !important; }

/* Target the brand name text specifically on the Fashion page */
.brand-name {
    /* Define the pink gradient: Dark magenta -> Theme Pink -> Light Pink */
    background: linear-gradient(to right, #C2185B 0%, var(--theme-pink) 50%, #FFC1E3 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

/* --- Nav & Mega Menu --- */
.nav-links { display: none; }

@media(min-width: 768px) {
    .nav-links { display: flex; gap: 30px; align-items: center; flex: 1; height: 100%; }
    
    .nav-item { position: static; height: 100%; display: flex; align-items: center; }
    
    /* Nav Links Styling */
    .nav-links > a, .nav-item .menu-text-trigger { 
        font-weight: 500; 
        color: var(--text-dark); 
        cursor: pointer; 
        text-decoration: none; 
        height: auto; 
        display: flex; 
        align-items: center; 
        transition: 0.3s; 
        position: relative; 
    }

    /* Hover Text Color */
    .nav-links > a:hover, .nav-item:hover .menu-text-trigger { 
        color: var(--theme-pink); 
    }

    /* Underline Animation (Pink) */
    .nav-links > a::after,
    .nav-item .menu-text-trigger::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -4px; 
        left: 0;
        background: var(--theme-pink); 
        transition: width 0.3s ease;
    }

    .nav-links > a:hover::after,
    .nav-item:hover .menu-text-trigger::after {
        width: 100%;
    }
}

/* --- Mega Menu Container --- */
.mega-menu { 
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%; 
    background-color: #fff; 
    border-top: 1px solid #eee; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    padding: 40px 5%; /* Aligns with header padding */
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(10px); 
    transition: all 0.3s ease; 
    z-index: 999; 
}

.nav-item:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* Mega Menu Content Width */
.mega-menu-content { 
    display: flex; 
    justify-content: space-between; 
    gap: 40px; 
    width: 100%; 
    margin: 0 auto; 
}

/* Mega Menu Column Headers */
.menu-column h3 { 
    font-size: 14px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 20px; 
    color: var(--theme-pink); 
    font-weight: 700; 
    border-bottom: none; /* No underline on headers */
    display: inline-block; 
    padding-bottom: 5px; 
}

.menu-column ul { list-style: none; padding: 0; }
.menu-column ul li { margin-bottom: 12px; }

/* Mega Menu Links */
.menu-column ul li a { 
    color: #666; 
    font-size: 15px; 
    transition: 0.2s; 
    text-decoration: none; 
    position: relative;
    display: inline-block;
}

/* --- Mega Menu Links Hover State --- */
.menu-column ul li a:hover { 
    color: var(--theme-pink); 
    padding-left: 5px; 
    
    /* UPDATED: COMPLETELY REMOVED UNDERLINE ON HOVER */
    text-decoration: none; 
}

/* --- Icons --- */
.header-icons { display: flex; gap: 20px; align-items: center; flex: 1; justify-content: flex-end; }

/* Icons Hover Effect */
.icon-btn { 
    font-size: 1.2rem; 
    color: var(--text-dark); 
    position: relative; 
    text-decoration: none; 
    transition: color 0.3s ease; 
}

.icon-btn:hover {
    color: var(--theme-pink); 
}

/* --- Search Bar Symbol Color --- */
.header-icons .fa-search:hover,
.header-icons button:hover i,
.search-btn:hover {
    color: var(--theme-pink) !important;
    cursor: pointer;
}

.cart-count { position: absolute; top: -8px; right: -8px; background: var(--theme-pink); color: white; font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }

/* --- Hero Carousel --- */
.carousel-container { position: relative; width: 100%; height: 500px; overflow: hidden; background-color: #f0f0f0; }
.carousel-track { position: relative; width: 100%; height: 100%; }
.carousel-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out; z-index: 1; }
.carousel-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-background { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); display: flex; align-items: center; justify-content: center; }
.hero-text-content { text-align: center; color: white; opacity: 0; }
.carousel-slide.active .hero-text-content { animation: fadeUp 1s ease-out forwards; opacity: 1; }
.season-tag { background-color: var(--theme-pink); padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; display: inline-block; margin-bottom: 15px; }
.hero-text-content h1 { font-size: 4rem; font-weight: 700; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-text-content p { font-size: 1.5rem; font-weight: 300; margin-bottom: 30px; }
.hero-text-content button { padding: 15px 40px; background-color: white; color: var(--text-dark); border: none; font-weight: 700; cursor: pointer; transition: 0.3s; }
.hero-text-content button:hover { transform: scale(1.05); background-color: var(--theme-pink); color: white; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.2); color: white; border: none; font-size: 1.5rem; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; transition: 0.3s; z-index: 10; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.carousel-btn:hover { background: rgba(255, 255, 255, 0.5); color: var(--theme-pink); }
.prev-btn { left: 20px; } .next-btn { right: 20px; }
.carousel-nav { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.carousel-indicator { width: 12px; height: 12px; border-radius: 50%; border: 2px solid white; background: transparent; cursor: pointer; transition: 0.3s; padding: 0; }
.carousel-indicator.active { background: var(--theme-pink); border-color: var(--theme-pink); }

/* --- Filters --- */
.filters { padding: 2rem 5%; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; border-bottom: 1px solid #eee; background: white; gap: 20px; }
.filter-controls { display: flex; align-items: center; gap: 20px; }
.filter-tags button { background: none; border: 1px solid #ddd; padding: 8px 20px; border-radius: 20px; cursor: pointer; font-family: 'Inter', sans-serif; margin-right: 10px; transition: 0.3s; font-size: 0.9rem; }
.filter-tags button.active, .filter-tags button:hover { background-color: var(--theme-pink); color: white; border-color: var(--theme-pink); }
.sort-option h3 { margin: 0; font-size: 1.1rem; color: #555; border-left: 4px solid var(--theme-pink); padding-left: 10px; }

/* Brand Filter Dropdown */
.brand-filter-wrapper { position: relative; }
.filter-btn { padding: 8px 15px; border: 1px solid #ccc; background: white; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: #333; transition: 0.3s; }
.filter-btn:hover { border-color: var(--theme-pink); color: var(--theme-pink); }
.brand-dropdown { position: absolute; top: 100%; right: 0; background: white; border: 1px solid #eee; box-shadow: 0 5px 15px rgba(0,0,0,0.1); width: 160px; border-radius: 8px; margin-top: 8px; display: none; z-index: 100; overflow: hidden; }
.brand-dropdown.active { display: block; animation: fadeIn 0.2s ease; }
.brand-item { padding: 10px 15px; cursor: pointer; font-size: 0.9rem; color: #555; transition: background 0.2s; }
.brand-item:hover { background-color: #f9f9f9; color: var(--theme-pink); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* --- Products Grid --- */
.products-section { padding: 4rem 5%; background-color: #fcfcfc; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.product-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; position: relative; border: 1px solid #f0f0f0; cursor: pointer; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.product-image { height: 320px; width: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.product-card:hover .product-image { transform: scale(1.05); }
.wishlist-btn { position: absolute; top: 15px; right: 15px; background: white; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15); color: #555; transition: 0.3s; z-index: 2; }
.wishlist-btn:hover { color: var(--theme-pink); transform: scale(1.1); }
.product-info { padding: 1.2rem; }
.product-category { font-size: 0.75rem; color: #999; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 5px; }
.product-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rating { color: #FFD700; font-size: 0.85rem; margin-bottom: 12px; }
.price-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid #eee; }
.price { font-size: 1.3rem; font-weight: 700; color: var(--theme-pink); }
.add-cart-btn { background-color: var(--text-dark); color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 500; transition: 0.3s; display: flex; align-items: center; gap: 5px; }
.add-cart-btn:hover { background-color: var(--theme-pink); }

/* --- Footer --- */
footer { background-color: #0f172a; color: #cbd5e1; padding: 4rem 5% 1rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #f8fafc; margin-bottom: 25px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #94a3b8; transition: 0.3s; text-decoration: none; }
.footer-col ul li a:hover { color: var(--theme-pink); padding-left: 5px; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.05); color: #f8fafc; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; border: 1px solid rgba(255, 255, 255, 0.1); text-decoration: none; }
.social-links a:hover { background: var(--theme-pink); transform: translateY(-3px); }
.copyright { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; color: #64748b; }

@media (max-width: 768px) {
    .mega-menu { position: fixed; top: 60px; left: 0; width: 100%; height: calc(100vh - 60px); overflow-y: auto; }
    .mega-menu-content { flex-direction: column; gap: 30px; }
    .hero-text-content h1 { font-size: 2.5rem; }
    .filters { flex-direction: column; align-items: flex-start; }
    .filter-controls { width: 100%; justify-content: space-between; }
    .carousel-btn { width: 40px; height: 40px; font-size: 1.2rem; }
}