/*
Theme Name: Sangeeta's Kitchen
Theme URI: https://sangeetaskitchen.com
Author: Sangeeta's Kitchen Team
Author URI: https://sangeetaskitchen.com
Description: A custom eCommerce theme for Sangeeta's Kitchen - Authentic Bihari homemade food
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sangeeta-kitchen
Tags: ecommerce, food, woocommerce, responsive
*/

/* ===========================
   CSS Variables
   =========================== */
:root {
    --primary-brown: #4A2517;
    --secondary-brown: #8B4513;
    --accent-orange: #D97D3E;
    --light-beige: #F5EBE0;
    --cream: #FFF8F0;
    --dark-text: #2C1810;
    --light-text: #6B4423;
    --white: #FFFFFF;
    --success-green: #28a745;
    --warning-orange: #fd7e14;
}

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

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--cream);
}

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

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

ul {
    list-style: none;
}

/* ===========================
   Container & Layout
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

/* ===========================
   Header Styles
   =========================== */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-brown);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

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

.header-main {
    padding: 15px 0;
}

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

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo img {
    max-height: 80px;
    max-width: 120px;
    width: auto;
    height: auto;
}

.custom-logo-link img {
    max-height: 80px;
    max-width: 120px;
    width: auto;
    height: auto;
}

.site-branding h1 {
    color: var(--primary-brown);
    font-size: 28px;
    margin: 0;
}

.site-branding h1 a {
    color: var(--primary-brown);
}

.site-text {
    display: none;
}

/* Show site text only when no custom logo */
body:not(.has-custom-logo) .site-text {
    display: block;
}

.site-tagline {
    color: var(--light-text);
    font-size: 14px;
    margin-top: 5px;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.menu {
    display: flex;
    gap: 25px;
}

.menu a {
    color: var(--primary-brown);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
}

.menu a:hover {
    background-color: var(--light-beige);
    color: var(--accent-orange);
}

.header-cart {
    position: relative;
}

.cart-link {
    position: relative;
    display: inline-block;
}

.cart-icon {
    font-size: 24px;
    color: var(--primary-brown);
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-orange);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Cart Dropdown */
.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 15px;
    width: 350px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.cart-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white);
}

.header-cart:hover .cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-dropdown-header {
    padding: 20px;
    border-bottom: 1px solid var(--light-beige);
}

.cart-dropdown-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--primary-brown);
}

.cart-dropdown-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
}

.cart-dropdown-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-beige);
    position: relative;
}

.cart-dropdown-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

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

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: var(--primary-brown);
    font-weight: 600;
}

.cart-item-price {
    margin: 0;
    font-size: 13px;
    color: var(--light-text);
}

.cart-item-total {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: var(--primary-brown);
}

.cart-item-remove {
    position: absolute;
    top: 10px;
    right: 0;
    width: 24px;
    height: 24px;
    background-color: var(--light-beige);
    color: var(--primary-brown);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    background-color: var(--accent-orange);
    color: var(--white);
}

.cart-dropdown-footer {
    padding: 15px 20px;
    border-top: 2px solid var(--light-beige);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.cart-subtotal strong {
    color: var(--primary-brown);
    font-size: 18px;
}

.cart-dropdown-buttons {
    display: flex;
    gap: 10px;
}

.cart-dropdown-buttons .btn {
    flex: 1;
    text-align: center;
    padding: 10px 15px;
    font-size: 14px;
}

.cart-dropdown-empty {
    padding: 40px 20px;
    text-align: center;
}

.cart-dropdown-empty p {
    margin: 0 0 20px 0;
    color: var(--light-text);
    font-size: 16px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary-brown);
    cursor: pointer;
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    background: linear-gradient(135deg, var(--light-beige) 0%, var(--cream) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h2 {
    font-size: 48px;
    color: var(--primary-brown);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text .subtitle {
    font-size: 20px;
    color: var(--light-text);
    margin-bottom: 30px;
}

.hero-features {
    list-style: none;
    margin: 30px 0;
}

.hero-features li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--dark-text);
    font-size: 16px;
}

.hero-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
    font-size: 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--accent-orange);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-brown);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-brown);
    color: var(--primary-brown);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--primary-brown);
    color: var(--white);
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ===========================
   Quality Highlights
   =========================== */
.quality-section {
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary-brown);
    margin-bottom: 50px;
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.quality-card {
    background: linear-gradient(135deg, var(--light-beige) 0%, var(--white) 100%);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.quality-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.quality-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.quality-card h3 {
    color: var(--primary-brown);
    font-size: 22px;
    margin-bottom: 15px;
}

.quality-card p {
    color: var(--light-text);
    line-height: 1.6;
}

/* ===========================
   Products Section
   =========================== */
.products-section {
    background-color: var(--light-beige);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

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

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--warning-orange);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--accent-orange);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.product-title {
    font-size: 20px;
    color: var(--primary-brown);
    margin: 10px 0;
}

.product-description {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-brown);
}

.original-price {
    font-size: 18px;
    color: var(--light-text);
    text-decoration: line-through;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-orange);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: var(--secondary-brown);
}

/* ===========================
   Target Audience Section
   =========================== */
.target-audience {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--secondary-brown) 100%);
    color: var(--white);
    text-align: center;
}

.target-audience .section-title {
    color: var(--white);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.audience-card {
    background-color: rgba(255,255,255,0.1);
    padding: 40px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.audience-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
    background-color: var(--primary-brown);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: var(--accent-orange);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
    }

    .main-navigation.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .menu {
        flex-direction: column;
        gap: 10px;
    }

    /* Cart Dropdown Mobile */
    .cart-dropdown {
        width: 300px;
        right: -20px;
    }

    .cart-dropdown::before {
        right: 30px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-text h2 {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   WooCommerce Compatibility
   =========================== */
.woocommerce-message,
.woocommerce-info {
    background-color: var(--light-beige);
    color: var(--dark-text);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.woocommerce .button {
    background-color: var(--accent-orange);
    color: var(--white);
}

.woocommerce .button:hover {
    background-color: var(--secondary-brown);
}
