/* Basic Reset & Typography */
body {
    font-family: 'Georgia', serif; /* More traditional font */
    margin: 0;
    padding: 0;
    background-color: #F8F5F0; /* Off-white, warm background */
    color: #3F3C3A; /* Dark brown/charcoal for text */
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #B28E63; /* Bronze-like hover */
}

/* Header */
.main-header {
    background-color: #6B2D2B; /* Deep reddish-brown from logo */
    color: #F8F5F0; /* Light cream for text */
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.main-header .container {
    display: flex;
    justify-content: space-between; /* Distribute items: left, middle, right */
    align-items: center;
    gap: 20px; /* Gap between logo, nav, and icons */
}

/* Left Section: Logo Image */
.company-logo {
    height: 50px; /* Adjust as needed - this will control the logo's height */
    width: auto; /* Maintain aspect ratio */
    display: block; /* Ensures it behaves correctly within flexbox */
    padding: 5px 0; /* Optional: Add some vertical padding if logo touches edges */
}

/* Middle Section: Main Navigation */
.main-nav {
    flex-grow: 1; /* Allows nav to take up available space */
    display: flex; /* Ensures nav items are aligned */
    justify-content: center; /* Centers navigation links */
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    margin: 0 18px; /* Spacing between nav items */
}

.main-nav ul li a {
    color: #F8F5F0; /* Adjusted text color */
    font-weight: 500;
    font-size: 1.05rem;
    padding: 5px 0; /* Add padding for click area */
    position: relative; /* For potential underline effect */
}

.main-nav ul li a:hover {
    color: #D4AF37; /* Gold/Bronze accent on hover */
}

/* Right Section: Utility Icons */
.header-right {
    display: flex;
    align-items: center;
    gap: 25px; /* Spacing between icon buttons */
}

.nav-icon {
    color: #F8F5F0; /* Adjusted icon color */
    font-size: 1.15rem; /* Icon size */
    display: flex; /* For aligning icon and text */
    align-items: center;
    gap: 6px; /* Space between icon and text (e.g., 'Sign In') */
    white-space: nowrap; /* Prevent text from wrapping */
}

.nav-icon:hover {
    color: #D4AF37;
}

.cart-icon {
    font-size: 1.15rem; /* Maintain consistent size */
}

#cart-count {
    background-color: #D4AF37; /* Bronze accent for cart count */
    color: #6B2D2B; /* Dark text on bronze */
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 6px;
    margin-left: 5px;
    vertical-align: super;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex; /* Use flexbox for centering content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    text-align: center; /* Center text within content box */
    color: #F8F5F0; /* Light text color for contrast */
    overflow: hidden; /* Important for video */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1; /* Place video behind overlay and content */
    transform: translate(-50%, -50%); /* Centering the video */
    object-fit: cover; /* Ensures video covers the area */
}

/* Overlay for better text readability */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Darker overlay for video */
    z-index: 0; /* Place overlay above video */
}

.hero-content {
    position: relative; /* Position above the overlay */
    z-index: 1; /* Ensure content is above overlay */
    max-width: 900px; /* Wider content for impactful tagline */
    padding: 30px;
    opacity: 0; /* Start invisible for animation */
    transform: translateY(20px); /* Start slightly below for animation */
    animation: fadeInSlideUp 1.5s ease-out forwards; /* Apply animation */
    animation-delay: 0.8s; /* Longer delay for video to load */
}

.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem; /* Even larger and more impactful */
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.6); /* More prominent text shadow */
}

.hero-cta-btn {
    display: inline-block;
    background-color: #D4AF37; /* Gold/Bronze accent from logo */
    color: #6B2D2B; /* Deep reddish-brown for text */
    padding: 18px 40px; /* Larger button */
    border-radius: 8px; /* Slightly more rounded */
    font-size: 1.25rem; /* Larger font */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Deeper shadow */
}

.hero-cta-btn:hover {
    background-color: #B28E63; /* Slightly darker gold on hover */
    transform: translateY(-5px) scale(1.02); /* Lift and slightly scale */
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Keyframe Animation for Tagline */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* General Section Title Styling */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #3F3C3A; /* Dark brown for section titles */
    text-align: center;
    margin-bottom: 3.5rem;
    padding-top: 2rem; /* Spacing from previous section */
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: #D4AF37; /* Gold accent line */
    border-radius: 2px;
}

/* Featured Categories Section */
.featured-categories {
    background-color: #F8F5F0; /* Match body background */
    padding: 2rem 0 4rem; /* Padding for the section */
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; /* Spacing between cards */
}

.category-card {
    display: block; /* Make the whole card clickable */
    background-color: #fff;
    border: 1px solid #E0DED7;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Remove underline from links */
    color: #3F3C3A; /* Dark text for categories */
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.category-card img {
    width: 100%;
    height: 200px; /* Consistent image height */
    object-fit: cover;
    display: block;
}

.category-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin: 15px 0 20px;
    color: #5A4A42; /* Deep brown for category names */
}

/* Bestsellers Section (reusing .products-grid from initial setup but with specific context) */
.bestsellers-section {
    background-color: #EFE9D7; /* Light cream background for this section */
    padding: 2rem 0 4rem;
}

/* This is the same as the initial .products-grid, ensures consistency */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 2rem; /* Spacing from title */
}

/* Product Card Styling (Adjusted from initial setup to fit the new aesthetic) */
.product-card {
    background-color: #fff;
    border: 1px solid #E0DED7;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative; /* For the bestseller tag */
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 220px; /* Consistent image height */
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin: 10px 0 15px;
    color: #3F3C3A;
}

.product-info p.price {
    font-size: 1.6rem;
    font-weight: bold;
    color: #D4AF37; /* Gold/Bronze for price */
    margin-bottom: 20px;
}

.add-to-cart-btn {
    background-color: #B28E63; /* Bronze-like button */
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    letter-spacing: 0.5px;
}

.add-to-cart-btn:hover {
    background-color: #D4AF37; /* Slightly brighter bronze on hover */
    transform: translateY(-2px);
}

/* Bestseller Tag Styling */
.bestseller-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #6B2D2B; /* Deep reddish-brown */
    color: #F8F5F0;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

/* "View All Products" Button below Bestsellers */
.view-all-products-wrapper {
    text-align: center;
    margin-top: 4rem; /* Spacing from the product grid */
}

/* Blog Preview Section */
.blog-preview-section {
    background-color: #F8F5F0; /* Match body background */
    padding: 2rem 0 5rem;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Adjusted for fewer, larger cards */
    gap: 30px;
    margin-top: 2rem;
}

.blog-post-card {
    background-color: #fff;
    border: 1px solid #E0DED7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.blog-post-card img {
    width: 100%;
    height: 250px; /* Taller images for blog posts */
    object-fit: cover;
    display: block;
}

.blog-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin: 0 0 10px;
    color: #3F3C3A;
    line-height: 1.3;
}

.blog-info p {
    font-size: 1rem;
    color: #5A4A42;
    margin-bottom: 20px;
}

.read-more-btn {
    display: inline-flex; /* Use flex for icon alignment */
    align-items: center;
    color: #B28E63; /* Bronze-like color for link */
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: #D4AF37; /* Brighter gold on hover */
}

.read-more-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

/* Footer */
.main-footer {
    background-color: #6B2D2B; /* Deep reddish-brown from logo */
    color: #F8F5F0; /* Adjusted text color */
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hero-tagline {
        font-size: 4rem;
    }
}

@media (max-width: 1024px) {
    /* Header/Navbar */
    .main-header .container {
        flex-wrap: wrap; /* Allow items to wrap */
        justify-content: center;
        text-align: center;
        gap: 15px;
    }
    .header-left, .main-nav, .header-right {
        width: 100%; /* Take full width on smaller screens */
        justify-content: center; /* Center content within their sections */
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }
    .main-nav ul li {
        margin: 5px 10px;
    }
    .header-right {
        margin-top: 10px;
        gap: 20px;
    }

    /* Hero Section */
    .hero-tagline {
        font-size: 3.5rem;
    }
    .hero-cta-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    /* Featured Categories */
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    /* Bestsellers */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    /* Blog Preview */
    .blog-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .blog-info h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .hero-tagline {
        font-size: 2.8rem;
        margin-bottom: 20px;
    }
    .hero-cta-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .hero-section::before {
        background-color: rgba(0, 0, 0, 0.6);
    }

    /* Section Titles */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    /* Featured Categories */
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
    .category-card h3 {
        font-size: 1.5rem;
    }

    /* Bestsellers */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
    .product-card img {
        height: 180px;
    }
    .product-info h3 {
        font-size: 1.2rem;
    }
    .product-info p.price {
        font-size: 1.4rem;
    }
    .add-to-cart-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    .bestseller-tag {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    /* Blog Preview */
    .blog-posts-grid {
        grid-template-columns: 1fr; /* Single column on tablets and mobile */
    }
    .blog-post-card img {
        height: 200px;
    }
    .blog-info h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    /* Hero Section */
    .hero-tagline {
        font-size: 2.2rem;
    }
    .hero-content {
        padding: 15px;
    }
    .hero-cta-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    /* Featured Categories */
    .categories-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
        gap: 15px;
    }
    .category-card img {
        height: 180px;
    }

    /* Bestsellers */
    .products-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
        gap: 15px;
    }

    /* Blog Preview */
    .blog-info h3 {
        font-size: 1.2rem;
    }
    .blog-info p {
        font-size: 0.9rem;
    }
}




