* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 5px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(45deg, #ffd700, #fff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

/* Navigation Styles */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: #ffd700;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 250px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-radius: 10px;
    top: 100%;
    left: 0;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    display: block;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding-left: 30px;
}

/* Mobile Menu - Consolidated Styles */
.mobile-menu {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu i {
    transition: transform 0.3s ease;
}

.mobile-menu.active i {
    transform: rotate(90deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 800px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: flashText 2s infinite;
}

.hero-content p {
    font-size: 1.5rem;
    opacity: 0;
    animation: flashText 2s infinite 1s;
}

@keyframes flashText {
    0%, 100% { 
        opacity: 1;
        text-shadow: 0 0 10px rgba(255,215,0,0.5);
    }
    50% { 
        opacity: 0.7;
        text-shadow: 0 0 20px rgba(255,215,0,0.8);
    }
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 20px;
}

.slider-controls button {
    background: rgba(255,255,255,0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.slider-controls button:hover {
    background: #ffd700;
    transform: scale(1.1);
}

/* Product Sections */
.product-section {
    padding: 80px 0;
}

.product-section.bg-light {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .overlay {
    opacity: 1;
}

.view-btn {
    padding: 12px 30px;
    background: #ffd700;
    border: none;
    border-radius: 25px;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(20px);
    transition: all 0.3s;
}

.product-card:hover .view-btn {
    transform: translateY(0);
}

.view-btn:hover {
    background: white;
    color: #1e3c72;
}

.product-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.2rem;
}

.price {
    padding: 0 20px 20px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3c72;
}

.view-all {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
    margin-top: 20px;
}

.view-all:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Categories Preview */
.categories-preview {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.categories-preview .section-title {
    color: white;
    -webkit-text-fill-color: white;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.category-item {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.category-item:hover {
    transform: scale(1.05);
    background: rgba(255,255,255,0.2);
    border-color: #ffd700;
}

.category-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ffd700;
}

.category-item h4 {
    font-size: 1rem;
}

/* Auth Pages */
.auth-section {
    min-height: calc(100vh - 80px - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 50px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.auth-container {
    width: 100%;
    max-width: 500px;
}

.auth-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 2rem;
    color: #1e3c72;
    margin-bottom: 10px;
}

.auth-header p {
    color: #666;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.auth-form label i {
    margin-right: 8px;
    color: #1e3c72;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30,60,114,0.1);
}

.form-group.checkbox,
.form-group.remember {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group.checkbox input,
.form-group.remember input {
    width: auto;
}

.form-group.remember {
    justify-content: space-between;
}

.forgot-link {
    color: #1e3c72;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(30,60,114,0.4);
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-footer a {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #ffd700;
}

.footer-section p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ffd700;
    padding-left: 5px;
}

.footer-section i {
    margin-right: 10px;
    color: #ffd700;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #ffd700;
    color: #1a1a1a;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    /* Show mobile menu button */
    .mobile-menu {
        display: flex !important;
    }
    
    /* Hide desktop nav by default */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
        padding: 80px 20px 30px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }
    
    nav.active {
        right: 0;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateX(20px);
        animation: slideInLinks 0.4s ease forwards;
    }
    
    @keyframes slideInLinks {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .nav-links li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links li:nth-child(2) { animation-delay: 0.2s; }
    .nav-links li:nth-child(3) { animation-delay: 0.3s; }
    .nav-links li:nth-child(4) { animation-delay: 0.4s; }
    
    .nav-links a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        border-radius: 10px;
        transition: all 0.3s ease;
        color: white;
    }
    
    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(255, 255, 255, 0.15);
        padding-left: 30px;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    /* Dropdown in mobile */
    .dropdown {
        width: 100%;
    }
    
    .dropdown .dropbtn {
        width: 100%;
        text-align: left;
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown .dropbtn i {
        transition: transform 0.3s ease;
    }
    
    .dropdown.active .dropbtn i {
        transform: rotate(180deg);
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        margin-top: 5px;
        box-shadow: none;
        animation: none;
        padding: 5px 0;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
        animation: fadeIn 0.3s ease;
    }
    
    .dropdown-content a {
        padding: 12px 20px 12px 40px;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.9);
    }
    
    .dropdown-content a:last-child {
        border-bottom: none;
    }
    
    .dropdown-content a:hover {
        background: rgba(255, 255, 255, 0.2);
        padding-left: 50px;
    }
    
    /* Overlay when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        backdrop-filter: blur(3px);
        animation: fadeIn 0.3s ease;
    }
    
    /* Hero mobile */
    .hero {
        height: 70vh;
        margin-top: 70px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .product-grid {
        gap: 20px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    nav {
        width: 90%;
    }
    
    .nav-links a {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .dropdown-content a {
        padding: 10px 15px 10px 35px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}