/* Variables */
:root {
    --kerala-green: #006B3F;
    --kerala-gold: #D4AF37;
    --ivory-white: #FFFFF0;
    --wood-brown: #8B4513;
    --text-color: #333333;
    --light-bg: #F5F5F5;
    --border-color: #E0E0E0;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, var(--kerala-green), #004D2F);
    --gradient-gold: linear-gradient(135deg, var(--kerala-gold), #B38F2A);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Serif Malayalam', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--ivory-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header & Navigation */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: center;
    margin-right: 2rem;
}

.logo-img {
    height: 180px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    object-fit: contain;
}

.logo-img:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex: 2;
    justify-content: center;
}

.nav-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--kerala-green);
}

.nav-link:hover::after {
    width: 100%;
}

.cart-btn {
    background: var(--gradient-primary);
    border: none;
    font-size: 1.2rem;
    color: var(--white);
    cursor: pointer;
    position: relative;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 107, 63, 0.2);
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 107, 63, 0.3);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gradient-gold);
    color: var(--white);
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('images/hero-bg.jpg') center/cover fixed;
    height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 90px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--ivory-white), transparent);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    font-weight: 700;
    background: linear-gradient(to right, var(--white), var(--kerala-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: var(--gradient-gold);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Categories Section */
.categories {
    padding: 4rem 0;
    background: var(--light-bg);
}

.categories h2 {
    text-align: center;
    color: var(--kerala-green);
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.category-card {
    text-decoration: none;
    color: var(--text-color);
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-card h3 {
    padding: 1rem;
    text-align: center;
    color: var(--kerala-green);
}

/* Products Section */
.products {
    padding: 4rem 0;
}

.products h2 {
    text-align: center;
    color: var(--kerala-green);
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    color: var(--kerala-green);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-price {
    color: var(--kerala-gold);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.add-to-cart {
    width: 100%;
    padding: 0.8rem;
    background: var(--kerala-green);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart:hover {
    background: var(--kerala-gold);
}

.product-weights {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.weight-option {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.weight-option:hover {
    border-color: var(--kerala-green);
    background: var(--light-bg);
}

.weight-option.selected {
    background: var(--kerala-green);
    border-color: var(--kerala-green);
    color: var(--white);
}

.weight-amount {
    font-weight: 600;
    font-size: 0.9rem;
}

.weight-price {
    font-size: 0.8rem;
    color: var(--kerala-gold);
}

.weight-option.selected .weight-price {
    color: var(--white);
}

/* Special Offers */
.offers {
    padding: 2rem 0;
    background: var(--kerala-green);
    color: var(--white);
}

.offer-banner {
    text-align: center;
}

.offer-banner h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.countdown {
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.cart-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.cart-items {
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 1rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--kerala-gold);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    background: var(--light-bg);
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    cursor: pointer;
}

.cart-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: #25D366;
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.checkout-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.checkout-note {
    text-align: center;
    color: var(--text-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--kerala-green);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.powered-by p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.tomson-logo {
    height: 30px;
    width: auto;
    opacity: 0.8;
    transition: var(--transition);
}

.tomson-logo:hover {
    opacity: 1;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: var(--light-bg);
}

.contact h2 {
    text-align: center;
    color: var(--kerala-green);
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-card i {
    font-size: 2rem;
    color: var(--kerala-green);
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-card a {
    color: var(--kerala-gold);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--kerala-green);
}

.qr-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.qr-section h3 {
    color: var(--kerala-green);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.qr-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.qr-code img {
    width: 400px;
    height: 400px;
    object-fit: contain;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1rem;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.qr-code img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--kerala-gold);
}

.qr-code p {
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-contact {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-contact p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: var(--kerala-gold);
}

/* Responsive Contact Section */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .qr-code img {
        width: 280px;
        height: 280px;
    }
}

/* Responsive Design */
@media (max-width: 1400px) {
    .logo-img {
        height: 160px;
    }
    .qr-code img {
        width: 380px;
        height: 380px;
    }
}

@media (max-width: 1200px) {
    .logo-img {
        height: 140px;
    }
    .qr-code img {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 992px) {
    .logo-img {
        height: 120px;
    }
    .qr-code img {
        width: 300px;
        height: 300px;
    }
    
    .nav-links {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.3rem 0;
    }

    .nav {
        padding: 0.3rem 0;
    }

    .logo {
        margin-right: 0;
        justify-content: flex-start;
    }

    .logo-img {
        height: 100px;
    }

    .mobile-menu-btn {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        position: fixed;
        top: 140px; /* Adjusted for larger logo */
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .cart-btn {
        padding: 0.6rem 1rem;
    }

    .hero {
        height: 70vh;
        margin-top: 80px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .cart-content {
        width: 95%;
        padding: 1rem;
    }

    .qr-code img {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 90px;
    }

    .nav-links {
        top: 120px; /* Adjusted for smaller logo */
    }

    .qr-code img {
        width: 250px;
        height: 250px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
} 