/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #ffffff;
}

body.menu-open {
    overflow: hidden;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: #fff;
}

.search-bar {
    flex: 1;
    max-width: 300px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

.search-bar button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: #000;
    text-align: center;
    flex: 1;
    font-weight: 500;
}

.auth-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.auth-buttons a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.2s ease;
}

.auth-buttons a:hover {
    color: #FF7B7B;
}

.auth-buttons .icon-link {
    font-size: 18px;
    color: #000;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.auth-buttons .icon-link:hover {
    color: #FF7B7B;
}

/* Navigation Styles */
nav {
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    background: #fff;
    position: relative;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    position: relative;
    padding: 15px 0;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff6b6b;
}

nav ul li.dropdown {
    position: relative;
}

nav ul li.dropdown .dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 10px 0;
}

nav ul li.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav ul li.dropdown .dropdown-content a {
    display: block;
    padding: 8px 20px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
}

nav ul li.dropdown .dropdown-content a:hover {
    background: #f8f8f8;
    color: #ff6b6b;
}

nav ul li.dropdown a i {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

nav ul li.dropdown:hover a i {
    transform: rotate(180deg);
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background: url('assets/hero.png') center 25% / cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    overflow: hidden;
    padding-left: 100px;
}

.hero-content {
    z-index: 1;
    color: #fff;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 64px;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.shop-now {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
}

.shop-now:hover {
    background: #ff5252;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background: #fff;
}

/* Featured Categories & Recommended Sections */
.featured-categories,
.recommended {
    padding: 50px;
    background: #fff;
}

.featured-categories h2,
.recommended h2 {
    text-align: left;
    margin-bottom: 30px;
    font-size: 22px;
    color: #000;
    font-family: 'Arial', sans-serif;
    font-weight: normal;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    align-items: stretch;
}

.product-card {
    text-align: left;
    background: #f8f8f8;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.image-container {
    overflow: hidden;
    background: #f8f8f8;
    margin-bottom: 15px;
    position: relative;
    aspect-ratio: 1;
    width: 100%;
}

@supports not (aspect-ratio: 1) {
    /* Fallback for browsers that don't support aspect-ratio */
    .image-container::before {
        content: "";
        display: block;
        padding-top: 100%;
    }
    
    .image-container img {
        position: absolute;
        top: 0;
        left: 0;
    }
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    display: block;
}

.product-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.product-info {
    padding: 0 15px 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card h3 {
    font-size: 14px;
    color: #000;
    margin-bottom: 4px;
    font-weight: normal;
}

.ratings-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.rating.gold {
    color: #ffd700;
    font-size: 12px;
    letter-spacing: 2px;
}

.rating.gray {
    color: #e0e0e0;
    font-size: 12px;
    letter-spacing: 2px;
}

.special-text {
    color: #ff6b6b;
    font-size: 13px;
    margin-left: 8px;
}

.product-card h4 {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    font-weight: normal;
}

.price {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.original-price {
    color: #666;
    text-decoration: line-through;
    font-size: 13px;
    margin-bottom: 4px;
}

.sale-price {
    color: #ff6b6b;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
}

.add-to-cart {
    background: #FF7B7B;
    color: white;
    border: none;
    padding: 10px 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    text-align: center;
    transition: background-color 0.2s ease;
    font-weight: normal;
}

.add-to-cart:hover {
    background: #ff6b6b;
}

/* Footer Styles */
footer {
    background: #fff;
    padding: 60px 50px 30px;
    border-top: 1px solid #eee;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.footer-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: #ff6b6b;
}

.newsletter input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.newsletter input:focus {
    outline: none;
    border-color: #ff6b6b;
}

.newsletter button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.newsletter button:hover {
    background: #ff5252;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: #666;
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    text-decoration: none;
}

.social-icons a:hover {
    color: #fff;
    background: #ff6b6b;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    color: #666;
    font-size: 13px;
}

.footer-bottom a {
    color: #ff6b6b;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Mobile Navigation Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px;
    z-index: 150; /* Increased z-index to ensure it's above everything */
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active {
    position: fixed;
    top: 15px;
    right: 15px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    100% {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive Styles */
@media screen and (max-width: 1200px) {
    /* Adjust grid for larger tablets */
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
        gap: 30px;
    }
}

@media screen and (max-width: 992px) {
    /* Header adjustments */
    header {
        padding: 20px 30px;
    }
    
    .logo h1 {
        font-size: 30px;
    }
    
    /* Hero section adjustments */
    .hero {
        padding-left: 50px;
    }
    
    .hero-content h2 {
        font-size: 50px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    /* Product grid adjustments */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer adjustments */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        row-gap: 40px;
    }
}

@media screen and (max-width: 768px) {
    /* Header becomes more compact */
    header {
        padding: 15px 20px;
    }
    
    .search-bar {
        max-width: 200px;
    }
    
    .auth-buttons .register,
    .auth-buttons .sign-in {
        display: none;
    }
    
    /* Mobile navigation */
    .mobile-menu-toggle {
        display: block;
    }
    
    nav {
        padding: 0;
    }
      nav ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        flex-direction: column;
        background: white;
        padding: 80px 20px 20px;
        z-index: 100;
        transition: all 0.3s ease;
        gap: 10px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }
    
    nav ul li.dropdown .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }
    
    nav ul li.dropdown.active .dropdown-content {
        max-height: 500px;
        padding: 10px 0;
    }
    
    nav ul li.dropdown .dropdown-content a {
        padding-left: 20px;
    }
    
    /* Hero section */
    .hero {
        height: 500px;
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .hero-content h2 {
        font-size: 40px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    /* Featured & Recommended Sections */
    .featured-categories,
    .recommended {
        padding: 30px 20px;
    }
}

@media screen and (max-width: 576px) {
    /* Header becomes more compact */
    header {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .search-bar {
        order: 3;
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    .logo {
        order: 1;
        flex: 1;
    }
    
    .auth-buttons {
        order: 2;
    }
    
    /* Hero section */
    .hero {
        height: 400px;
        padding: 0 20px;
        justify-content: center;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .shop-now {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    /* Product grid - single column */
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    footer {
        padding: 40px 20px 20px;
    }
}

@media screen and (max-width: 375px) {
    /* Ultra small devices */
    .logo h1 {
        font-size: 24px;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .featured-categories h2,
    .recommended h2 {
        font-size: 20px;
    }
}