/* Global Variables */
:root {
    --primary-color: #8A5A2B; /* Brownish-orange for dry fruits theme */
    --secondary-color: #FFA500; /* Orange for accents */
    --tertiary-color: #4CAF50; /* Green for freshness, sales */
    --text-color: #333;
    --light-text-color: #777;
    --bg-color: #f9f9f9;
    --white: #fff;
    --border-color: #ddd;
    --font-family: 'Poppins', sans-serif;
    --gradient-primary: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    --gradient-warm: linear-gradient(to right, #ff8c00, #ffa500); /* Example warm gradient */
    --header-top-bg: #6B4F22; /* Darker brown for top bar */
    --footer-bg: #333;
    --footer-text-color: #ccc;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
}
a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Header Top */
.header-top {
    background-color: var(--header-top-bg);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}
.header-top .contact-info i {
    color: var(--secondary-color);
}
.header-top .top-links a {
    color: var(--white);
    transition: color 0.3s ease;
}
.header-top .top-links a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Main Header */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo-section {
    display: flex;
    align-items: center;
}
.logo-img {
    max-height: 60px; /* Increased size */
    margin-right: 15px;
}
.brand-name {
    font-size: 1.8rem; /* Increased size */
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}
.search-bar .search-input {
    border-radius: 50px;
    padding-left: 20px;
    padding-right: 50px; /* Space for button */
    border: 1px solid var(--border-color);
    height: 45px;
}
.search-bar .search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-bar .search-btn:hover {
    background: var(--secondary-color);
}
.header-actions .action-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    margin-left: 20px;
    position: relative;
}
.header-actions .action-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 8px;
}
.header-actions .action-text {
    font-size: 0.9rem;
}
.header-actions .action-item:hover .action-icon,
.header-actions .action-item:hover .action-text {
    color: var(--secondary-color);
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--tertiary-color);
    color: var(--white);
    border-radius: 50%;
    padding: 0.2em 0.5em;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Navigation / Mega Menu */
.navbar {
    background: var(--gradient-primary); /* Primary gradient for navbar */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.mega-menu-item.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 1rem 1.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
.mega-menu-item.nav-link i {
    margin-right: 8px;
}
.mega-menu-item.nav-link:hover,
.mega-menu-item.nav-link.active {
    background-color: rgba(255,255,255,0.1);
    color: var(--white) !important; /* Ensure text remains white on hover */
}
.navbar .dropdown-menu {
    border-radius: 0;
    border: none;
    margin-top: 0; /* Align with bottom of navbar */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.navbar .dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    transition: background-color 0.2s ease, color 0.2s ease;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Main Content Area */
main {
    background-color: var(--white); /* Light background for content */
}

/* Hero Section */
.hero-section {
    background: url('../admin/uploads/hero-bg.jpg') no-repeat center center/cover; /* Replace with a relevant hero image */
    background-color: var(--primary-color); /* Fallback color */
    padding: 100px 0;
    color: var(--white);
    position: relative;
}
.hero-section::before { /* Overlay for better text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}
.hero-content {
    position: relative; /* To be above the overlay */
    z-index: 1;
    text-align: left; /* Text aligned to the left */
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 600px;
}
.hero-cta {
    background: var(--secondary-color);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    border: none;
}
.hero-cta:hover {
    background: var(--tertiary-color);
    color: var(--white);
    transform: translateY(-3px);
    text-decoration: none;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}
.section-title p {
    font-size: 1.1rem;
    color: var(--light-text-color);
}

/* Product Card */
.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards in a row have same height */
}
.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}
.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* Aspect ratio 1:1 */
}
.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--tertiary-color);
    color: var(--white);
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 5px;
    z-index: 2;
}
.product-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1; /* Allows this section to grow and push actions down */
    display: flex;
    flex-direction: column;
}
.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    min-height: 44px; /* Ensure consistent height for titles */
}
.product-price {
    margin-bottom: 10px;
}
.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}
.original-price {
    font-size: 0.9rem;
    color: var(--light-text-color);
    text-decoration: line-through;
    margin-left: 8px;
}
.product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
}
.product-rating .stars {
    color: #FFD700; /* Gold for stars */
    margin-right: 5px;
}
.product-rating .rating-text {
    color: var(--light-text-color);
}
.product-actions {
    margin-top: auto; /* Pushes actions to the bottom of product-info */
    display: flex;
    gap: 10px;
    justify-content: center;
}
.btn-add-cart, .btn-quick-view {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-grow: 1; /* Allow buttons to take available space */
}
.btn-add-cart:hover {
    background: var(--secondary-color);
}
.btn-quick-view {
    background: var(--light-text-color);
}
.btn-quick-view:hover {
    background: var(--text-color);
}

/* Flash Sale Section */
.flash-sale {
    background: var(--bg-color); /* Light gray background */
}
.flash-sale .section-title h2 i {
    color: var(--secondary-color);
}

/* Value Proposition Section */
.value-prop {
    background: var(--gradient-warm); /* Warm gradient background */
    padding: 60px 0;
    color: var(--white);
}
.value-item {
    text-align: center;
    padding: 20px;
}
.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.8;
}
.value-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.value-text {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Categories Section */
.categories {
    background-color: var(--white);
}
.category-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    padding: 20px; /* Standardized padding */
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.category-card i {
    color: var(--primary-color);
    transition: color 0.3s ease;
}
.category-card:hover i {
    color: var(--secondary-color);
}
.category-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

/* Testimonials Section */
.testimonials {
    background: var(--bg-color);
}
.testimonial-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}
.testimonial-card .stars {
    margin-bottom: 15px;
}
.testimonial-text {
    font-style: italic;
    color: var(--light-text-color);
    margin-bottom: 20px;
    font-size: 1.05rem;
}
.testimonial-author strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
}
.testimonial-author small {
    font-size: 0.9rem;
}

/* Newsletter Section */
.newsletter {
    background: var(--primary-color);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}
.newsletter h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
}
.newsletter p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.newsletter-form {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}
.newsletter-input {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
}
.newsletter-btn {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 0 50px 50px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.newsletter-btn:hover {
    background: var(--tertiary-color);
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text-color);
    padding: 50px 0 0;
    font-size: 0.95rem;
}
.footer-section {
    margin-bottom: 30px;
}
.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}
.footer-links {
    list-style: none;
    padding-left: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--footer-text-color);
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-links a:hover {
    color: var(--secondary-color);
    text-decoration: none;
    padding-left: 5px;
}
.footer-links i {
    margin-right: 8px;
    color: var(--primary-color); /* Icon color in contact info */
}
.social-links {
    margin-top: 20px;
}
.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    margin-right: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.social-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}
.social-link.facebook:hover { background-color: #3b5998; }
.social-link.instagram:hover { background-color: #e4405f; }
.social-link.twitter:hover { background-color: #1da1f2; }
.social-link.linkedin:hover { background-color: #0077b5; }

.footer-bottom {
    border-top: 1px solid #444;
    padding: 20px 0;
    margin-top: 20px;
}
.payment-methods .payment-icon {
    font-size: 2rem;
    margin-left: 10px;
    color: #aaa;
    transition: color 0.3s ease;
}
.payment-methods .payment-icon:hover {
    color: var(--white);
}

/* Additional styles from homepage HTML */
.offers-bar {
    background: var(--gradient-warm);
}
.offers-bar .coupon-item {
    animation: pulse 2s infinite;
}
.coupon-item {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.copy-coupon {
    transition: background-color 0.2s, color 0.2s;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px; /* Reduced gap */
    margin-top: 20px;
}
.time-unit {
    text-align: center;
    background: rgba(0,0,0,0.2); /* Darker for contrast on light flash sale bg */
    padding: 10px 15px; /* Adjusted padding */
    border-radius: 8px;
    min-width: 70px; /* Reduced min-width */
    color: var(--text-color); /* Text color for countdown if on light bg */
}
.flash-sale .time-unit { /* Specific for flash sale section if it's dark */
    background: rgba(255,255,255,0.1);
    color: var(--white);
}
.time-value {
    display: block;
    font-size: 1.8rem; /* Reduced font size */
    font-weight: 700;
}
.flash-sale .time-value {
    color: var(--white);
}
.time-label {
    font-size: 0.8rem; /* Reduced font size */
    opacity: 0.8;
}
.flash-sale .time-label {
     color: rgba(255,255,255,0.8);
}


@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); } /* Reduced scale */
    100% { transform: scale(1); }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .main-header {
        padding-bottom: 15px; /* Space for toggler */
    }
    .search-bar {
        margin-top: 10px;
        width: 100%;
        order: 3; /* Push search bar below logo and actions on small screens */
    }
    .header-actions {
        margin-top: 0; /* Reset margin for smaller screens */
    }
    .navbar-nav {
        width: 100%;
        text-align: center;
    }
    .mega-menu-item.nav-link {
        padding: 0.8rem 1rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .header-top .contact-info {
        text-align: center;
        width: 100%;
        margin-bottom: 5px;
    }
    .header-top .top-links {
        text-align: center;
        width: 100%;
    }
    .main-header .container-fluid, .logo-section {
        flex-direction: column;
        align-items: center; /* Center items in column */
    }
    .logo-img { margin-right: 0; margin-bottom: 5px; }
    .brand-name { text-align: center; }
    .header-actions {
        margin-top: 15px;
        justify-content: center; /* Center action icons */
        width: 100%;
    }
    .header-actions .action-item { margin-left: 10px; margin-right: 10px; }

    .value-prop .col-md-3 { /* Stack value prop items */
        margin-bottom: 20px;
    }
    .footer-section {
        text-align: center;
    }
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links { text-align: center; }
    .footer-bottom .col-md-6 {
        text-align: center !important;
        margin-bottom: 10px;
    }
    .payment-methods { text-align: center !important; }

    .countdown-timer {
        flex-wrap: wrap; /* Allow timer units to wrap */
        gap: 10px;
    }
    .time-unit {
        min-width: 60px;
        padding: 8px 10px;
    }
    .time-value { font-size: 1.5rem; }
    .time-label { font-size: 0.7rem; }

    .product-card {
        margin-left: auto;
        margin-right: auto;
        max-width: 300px; /* Limit card width on small screens */
    }
}

@media (max-width: 575.98px) {
    .header-actions .action-text {
        display: none; /* Hide text for icons on very small screens */
    }
    .header-actions .action-icon {
        margin-right: 0;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-cta {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    .newsletter-input, .newsletter-btn {
        border-radius: 25px; /* Full border radius when stacked */
    }
    .newsletter-input { border-radius: 25px !important; } /* Ensure specificity */
    .newsletter-btn { border-radius: 25px !important; }
}

/* Ensure a placeholder hero background if image fails to load or is not set */
.hero-section {
    background-image: url('admin/uploads/hero-bg.jpg'); /* Make sure this path is correct or use a generic one */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* If you want a fallback gradient if the image fails: */
    /* background: var(--gradient-primary); */
}

/* Specificity for flash sale countdown text color if it has a light background */
.flash-sale .countdown-timer .time-value,
.flash-sale .countdown-timer .time-label {
    /* color: var(--text-color); /* Or a specific dark color if flash-sale bg is light */
    /* If flash-sale has dark bg like in example, then white is fine */
     color: var(--white);
}

/* Ensure product image path is relative to CSS or absolute from web root */
.product-image img[src="admin/uploads/1751025979_spicesnnuts.jpg"] {
    /* No specific style needed here unless for debugging */
}

/* Ensure logo path is relative to CSS or absolute from web root */
.logo-img[src="admin/uploads/1751025979_spicesnnuts.jpg"] {
     /* No specific style needed here unless for debugging */
}

/* Fallback for image if path is broken, can be styled further */
img[alt]:after {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f0f0f0;
  content: attr(alt) "\A (Image not found)"; /* Show alt text and message */
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  white-space: pre-wrap;
  color: #777;
  font-size: 0.8em;
}
```
