:root {
    --primary-color: #5D4037; /* Coffee Brown */
    --secondary-color: #D7CCC8; /* Light Brown */
    --accent-color: #FF7043; /* Deep Orange */
    --text-color: #333333;
    --light-bg: #F9F9F9;
    --marquee-bg: #004D40; /* Dark Teal */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;700&display=swap');

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.container {
    flex: 1;
}

/* Marquee Bar */
.marquee-container {
    background-color: var(--marquee-bg);
    color: white;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 1050;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    padding-left: 100%;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Navbar */
.navbar {
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    margin: 0 5px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Category Circles */
.category-scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.category-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.category-item {
    display: inline-block;
    text-align: center;
    margin-right: 20px;
    width: 100px;
    cursor: pointer;
}

.category-img-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.category-item:hover .category-img-wrapper {
    border-color: var(--accent-color);
}

.category-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    height: 400px;
    width: 100%;
    position: relative;
    border-radius: 0;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero-section {
        height: 250px;
    }
}

/* Product Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: #f8f8f8;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed to contain to show full product */
    padding: 10px;
    transition: transform 0.5s;
}

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

/* Product Badges */
.product-badge-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

.product-badge-overlay span {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fixed Tags Grid */
.product-tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 10px;
}

.tag-pill {
    background-color: #F1F8E9; /* Light Green */
    color: #558B2F; /* Dark Green */
    font-size: 0.65rem;
    padding: 3px 5px;
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Rating */
.rating-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.rating-box {
    background-color: #4CAF50; /* Green */
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 3px;
}

.verified-badge {
    color: #4CAF50;
}

/* Variant Selector */
.variant-selector {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.85rem;
    background-color: #fff;
    cursor: pointer;
}

/* Price */
.price-container {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

.original-price {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #999;
}

.discount-text {
    font-size: 0.8rem;
    color: #D32F2F; /* Red */
    font-weight: 700;
}

/* Add to Cart Button */
.add-btn {
    width: 100%;
    background-color: #F39C12 !important; /* Updated to match reference image */
    color: white !important;
    border: none;
    padding: 10px 0;
    border-radius: 50px; /* Pill shape */
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-btn:hover {
    background-color: #E67E22 !important;
    color: white !important;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    color: #6c757d;
}

footer h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.2rem;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-color);
}

/* Featured Slider Styles */
.featured-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 20px;
    padding-bottom: 20px;
    scrollbar-width: none;
}

.featured-slider::-webkit-scrollbar {
    display: none;
}

.featured-item {
    flex: 0 0 auto;
    width: 300px;
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .featured-item {
        width: 85vw;
    }
}

/* Testimonials Slider */
.testimonials-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 20px;
    padding-bottom: 20px;
    scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 auto;
    width: 350px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.testimonial-user-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

@media (max-width: 768px) {
    .testimonial-card {
        width: 85vw;
    }
}

/* Blog Cards */
.blog-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 5px;
    display: block;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.4;
}

.read-more-link {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.read-more-link:hover {
    text-decoration: underline;
}
