/* ==================== GLOBAL VARIABLES ==================== */
:root {
    --primary-pink: #e91e63;
    --primary-dark: #c2185b;
    --secondary-purple: #9c27b0;
    --gradient-purple: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%);
    --hot-deals-bg: linear-gradient(90deg, #F3E5F5 0%, #CE93D8 100%);
    --gold-accent: #C9A96A;
    --bg-grey: #f8f8f8;
    --text-dark: #333333;
    --text-grey: #666666;
    --white: #ffffff;
    --shadow-soft: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 20px rgba(233, 30, 99, 0.15);
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --border-radius: 16px;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-grey);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ==================== TOP PROMO BAR ==================== */
.top-promo-bar {
    background-color: var(--gold-accent);
    color: var(--white);
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ==================== HEADER ==================== */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.logo { font-size: 1.8rem; font-weight: 700; display: flex; }
.logo-nanaz { color: var(--text-dark); }
.logo-glow { color: var(--primary-pink); }

/* Search Bar */
.header-search-form {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
    position: relative;
}

.header-search-input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #eee;
    background: var(--bg-grey);
    border-radius: 50px;
    font-size: 0.95rem;
    outline: none;
    transition: box-shadow 0.3s;
}

.header-search-input:focus {
    box-shadow: 0 0 0 2px var(--primary-pink);
}

.header-search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-pink);
    font-size: 1.2rem;
    cursor: pointer;
}

/* Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-icon-item {
    position: relative;
    color: var(--text-dark);
    font-size: 1.4rem;
    cursor: pointer;
}

.header-icon-item:hover { color: var(--primary-pink); }

.icon-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-pink);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop Nav */
.desktop-nav {
    display: flex;
    justify-content: center;
    background: var(--white);
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
}

.nav-link {
    color: var(--text-grey);
    font-weight: 500;
    margin: 0 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-link:hover, .nav-link.active { color: var(--primary-pink); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-pink);
    transition: width 0.3s;
}

.nav-link:hover::after { width: 100%; }

/* ==================== MOBILE SIDEBAR ==================== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-sidebar.active { left: 0; }

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active { opacity: 1; visibility: visible; }

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.sidebar-search { padding: 15px; }
.sidebar-search input { width: 100%; padding: 10px; border: 1px solid #eee; border-radius: 5px; }

/* Sidebar Menu Accordion */
.sidebar-nav { padding: 10px 0; }
.sidebar-menu-item { border-bottom: 1px solid #f5f5f5; }
.sidebar-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-weight: 500;
    color: var(--text-dark);
    width: 100%;
    text-align: left;
}
.sidebar-link:hover { background: #fff5f7; color: var(--primary-pink); }

/* Active State */
.sidebar-menu-item.active .sidebar-link {
    background: var(--primary-pink);
    color: white;
    border-radius: 0;
}

.submenu { max-height: 0; overflow: hidden; background: #fafafa; }
.submenu-link { display: block; padding: 12px 20px 12px 40px; color: var(--text-grey); font-size: 0.9rem; }
.submenu-link:hover { color: var(--primary-pink); }

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: linear-gradient(135deg, #fff8fa 0%, #fce4ec 100%);
    margin-bottom: 40px;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text { flex: 1; padding-right: 40px; }
.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero-text p { font-size: 1.1rem; color: var(--text-grey); margin-bottom: 30px; }

.hero-btn {
    background: var(--primary-pink);
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}
.hero-btn:hover { background: var(--primary-dark); transform: translateY(-2px); color: white; }

.hero-image { flex: 1; text-align: right; }
.hero-image img { max-height: 450px; object-fit: contain; }

/* ==================== CATEGORY ICONS ==================== */
.category-icons-section { margin: 40px 0; }
.category-scroll-wrapper {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.category-item { text-align: center; cursor: pointer; min-width: 80px; }
.cat-icon-circle {
    width: 70px;
    height: 70px;
    background: #FFF5F7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 10px;
    transition: transform 0.3s;
}
.category-item:hover .cat-icon-circle { transform: translateY(-5px); background: #FCE4EC; }
.category-item span { font-size: 0.85rem; font-weight: 500; color: var(--text-dark); }

/* ==================== HOT DEALS SECTION ==================== */
.hot-deals-section {
    background: var(--hot-deals-bg);
    padding: 50px 20px;
    margin: 40px 0;
}

.hot-deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    max-width: 1300px;
    margin: 0 auto 30px;
}

.deals-title h2 { font-size: 2rem; color: var(--text-dark); margin-bottom: 5px; }
.deals-title p { color: var(--text-grey); }

.deals-countdown { display: flex; gap: 10px; }
.time-box {
    background: var(--white);
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
}
.time-box span { display: block; font-size: 1.2rem; font-weight: 700; color: var(--primary-pink); }
.time-box small { font-size: 0.7rem; color: var(--text-grey); }

/* ==================== PRODUCT GRID ==================== */
.product-grid-container { max-width: 1300px; margin: 0 auto; }
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

/* ==================== PRODUCT CARD (Beauty Style) ==================== */
.product-card-beauty {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product-card-beauty:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image-box { position: relative; height: 250px; overflow: hidden; }
.product-image-box img { width: 100%; height: 100%; object-fit: cover; }

.discount-badge-pill {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-pink);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-actions-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card-beauty:hover .product-actions-overlay { opacity: 1; }

.action-btn {
    width: 36px;
    height: 36px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.action-btn:hover { background: var(--primary-pink); color: white; }

.product-details { padding: 20px; }
.product-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-rating .current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-pink);
}
.price-rating .old-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

/* ==================== TRUST SECTION ==================== */
.trust-section { padding: 60px 20px; background: white; }
.trust-grid { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 15px; }
.trust-item i { font-size: 2rem; color: var(--primary-pink); }
.trust-item h4 { font-size: 1rem; margin-bottom: 2px; }
.trust-item p { font-size: 0.85rem; color: var(--text-grey); margin: 0; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .header-search-form { display: none; }
    .desktop-nav { display: none; }
    .hamburger-menu { display: block; }
    
    .hero-content-wrapper { padding: 20px; flex-direction: column-reverse; text-align: center; }
    .hero-text { padding-right: 0; margin-top: 30px; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-image img { max-height: 300px; }
}

@media (max-width: 768px) {
    .hot-deals-header { justify-content: center; gap: 20px; text-align: center; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

/* Mobile Sidebar Hamburger */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 992px) {
    .hamburger-menu { display: block; }
}