/* ==========================================================================
   CHURI MARKET - Premium Stylesheet
   Fonts: Playfair Display (Headings), Lato (Body)
   ========================================================================== */

/* --- CSS Variables (Color Palette & Spacing) --- */
:root {
    --primary-color: #1a1a1a;        /* Deep Charcoal (almost black) */
    --accent-color: #d4af37;         /* Metallic Gold */
    --accent-hover: #b5952f;         /* Darker Gold for hover states */
    --text-color: #4a4a4a;           /* Soft Dark Grey for reading comfort */
    --bg-color: #fdfcf9;             /* Very soft warm white */
    --border-color: #e5e5e5;         /* Light Grey for subtle dividers */
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    --transition: all 0.3s ease-in-out;
}

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

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

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

ul {
    list-style: none;
}

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

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

/* --- Top Announcement Bar --- */
.top-announcement-bar {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 8px 15px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Main Header --- */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Logo */
.logo h1 {
    font-size: 28px;
    letter-spacing: 1.5px;
    color: var(--primary-color);
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: 35px;
}

.main-nav a {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

.main-nav a:hover {
    color: var(--accent-color);
}

/* Header Actions (Icons) */
.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-link {
    font-size: 18px;
    color: var(--primary-color);
    position: relative;
}

.icon-link:hover {
    color: var(--accent-color);
}

/* Cart Counter Badge */
.cart-icon .cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Main Content Area --- */
.main-content {
    min-height: 60vh;
}

/* ==========================================================================
   HOMEPAGE SPECIFIC STYLES
   ========================================================================== */

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-color: var(--primary-color);
    background-image: url('../images/banners/hero-bg.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 26, 26, 0.6); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-content h2 {
    color: #fff;
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #eee;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 15px 35px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #fff;
}

/* --- Section Titles --- */
.section-title {
    text-align: center;
    font-size: 32px;
    margin: 60px 0 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

/* --- Category Grid --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.category-card {
    text-align: center;
    display: block;
}

.category-card .cat-image {
    width: 140px; 
    height: 140px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f9f9f9;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 2px solid #fff;
    transition: var(--transition);
}

.category-card .cat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .cat-image img {
    transform: scale(1.1);
}

.category-card:hover .cat-image {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.category-card h4 {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-image img {
    width: 100%;
    height: 280px; 
    aspect-ratio: 1 / 1; 
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 16px;
    margin: 5px 0 15px;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Pricing Updates --- */
.price-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.compare-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    font-weight: 400;
}

.product-price {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 18px;
}

.btn-cart {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.btn-cart:hover {
    color: var(--accent-color);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 40px 0;
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */
.main-footer {
    background-color: var(--primary-color);
    color: #f1f1f1;
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3, 
.footer-column h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer-column h3 {
    font-size: 24px;
}

.footer-column p {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cccccc;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px; 
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #ffffff;
    font-size: 18px;
    background: rgba(255,255,255,0.1);
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.social-links a:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-family: var(--font-body);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.newsletter-form button {
    padding: 12px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--accent-hover);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.payment-methods {
    display: flex;
    gap: 10px;
    font-size: 20px;
    color: #888;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile & Tablet fixes)
   ========================================================================== */
@media (max-width: 992px) {
    .category-grid, .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-card .cat-image {
        width: 100px;
        height: 100px;
    }
    
    .product-image img {
        height: 200px;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .category-grid, .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-image img {
        height: 150px;
    }
    
    .category-card .cat-image {
        width: 80px;
        height: 80px;
    }
}