/* ==========================
   CSS Variables & Typography
   ========================== */
   :root {
    /* Color Palette */
    --clr-bg: #FCFBF9; /* Very light beige/off-white */
    --clr-bg-alt: #F3F1EC; /* Light beige for alternating sections */
    --clr-text: #1C1917; /* Dark stone */
    --clr-text-light: #57534E; /* Lighter text for paragraphs */
    --clr-primary: #1C1917; /* Main dark */
    --clr-primary-hover: #44403C;
    --clr-accent: #D6C5B3; /* Warm pastel beige/tan */
    --clr-white: #FFFFFF;
    --clr-border: #E7E5E4;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --max-width: 1280px;
    --nav-height: 80px;
    
    /* Animations */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================
   Reset & Base Styles
   ========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for navigation */
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--clr-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
}

.alternate-bg {
    background-color: var(--clr-bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--clr-text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================
   Buttons
   ========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

.btn-primary:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-white);
    border-color: var(--clr-white);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background-color: var(--clr-white);
    color: var(--clr-primary);
}

/* ==========================
   Navigation
   ========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    height: 70px;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--clr-primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-icons a {
    font-size: 1.5rem;
}

.nav-icons a:hover {
    color: var(--clr-text-light);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--clr-primary);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--clr-white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    flex-direction: column;
    padding: 20px 5%;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--clr-border);
    font-weight: 500;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

/* ==========================
   Hero Section
   ========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    z-index: -1;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--clr-bg) 0%, rgba(252, 251, 249, 0.4) 40%, transparent 100%);
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.hero-content {
    max-width: 600px;
    padding-left: 5%;
    z-index: 10;
}

.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--clr-text-light);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--clr-text-light);
    margin-bottom: 40px;
    max-width: 450px;
}

/* ==========================
   Products Grid Structure
   ========================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1px) /* Wait, actually repeat(3, 1fr) */;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Wait replacing mistake */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    group: item;
}

.category-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/5;
    margin-bottom: 20px;
}

.category-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-img-container img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.category-info p {
    color: var(--clr-text-light);
}

/* ==========================
   Featured Products Grid
   ========================== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    cursor: pointer;
}

.product-img {
    position: relative;
    background-color: var(--clr-white);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1/1.2;
    margin-bottom: 16px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--clr-white);
    color: var(--clr-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.badge.new {
    background-color: #000;
    color: #fff;
}

.product-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    transition: color 0.2s;
}

.product-card:hover .product-details h4 {
    color: var(--clr-text-light);
}

.price {
    font-weight: 600;
    color: var(--clr-text);
}

/* ==========================
   About Us Section
   ========================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.about-content .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--clr-primary);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--clr-text-light);
    margin-bottom: 20px;
}

.reviews-mini {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--clr-white);
    border-radius: 8px;
    border-left: 4px solid var(--clr-accent);
}

.stars {
    color: #F59E0B;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.review-text {
    font-style: italic;
    font-size: 1.05rem;
    color: var(--clr-primary) !important;
}

.author {
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 10px;
    margin-bottom: 0 !important;
}

/* ==========================
   Contact Section
   ========================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--clr-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.contact-details {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.icon-box {
    width: 48px;
    height: 48px;
    background-color: var(--clr-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--clr-primary);
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--clr-text-light);
    font-size: 0.95rem;
}

.map-container {
    height: 100%;
    min-height: 400px;
}

/* ==========================
   Footer
   ========================== */
.footer {
    background-color: var(--clr-primary);
    color: var(--clr-bg);
    padding: 80px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h2 {
    color: var(--clr-white);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--clr-border);
    margin-bottom: 30px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: var(--clr-white);
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--clr-white);
    color: var(--clr-primary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.link-group h3 {
    color: var(--clr-white);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.link-group a {
    display: block;
    color: var(--clr-border);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.link-group a:hover {
    color: var(--clr-white);
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #A8A29E;
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 20px;
}

/* ==========================
   Responsive Design
   ========================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .about-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-icons > a:not(.mobile-menu-btn) {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .hero-image-wrapper {
        width: 100%;
        height: 60%;
        top: 0;
        z-index: 0;
    }
    
    .hero-image-wrapper::after {
        background: linear-gradient(to bottom, transparent 0%, var(--clr-bg) 90%);
    }
    
    .hero-content {
        padding: 0 5%;
        margin-top: 40vh;
        max-width: 100%;
        z-index: 10;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .about-grid, .contact-grid, .footer-top {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        display: flex;
        flex-direction: column-reverse; /* Map on top in mobile */
    }
    
    .map-container {
        min-height: 300px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .categories-grid, .featured-grid, .footer-links {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}
