@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --olive: #5a7247;
    --dark-green: #2d4a22;
    --honey: #c8943e;
    --brown: #8b6914;
    --off-white: #faf8f2;
    --cream: #f5f0e1;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --border: #e0d8c8;
    --success: #4a8c3f;
    --danger: #c0392b;
    --warning: #e67e22;
}

body {
    font-family: 'Hind Siliguri', 'Inter', sans-serif;
    background: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
    direction: ltr;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--dark-green), var(--olive));
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--honey);
    letter-spacing: 1px;
}

.logo span {
    color: white;
    font-size: 0.75rem;
    display: block;
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--honey);
}

.cart-icon {
    position: relative;
    background: var(--honey);
    color: var(--dark-green);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.cart-icon:hover {
    background: #d9a54e;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--olive) 50%, var(--honey) 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--honey);
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Sections */
.section {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 1.6rem;
    color: var(--dark-green);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--honey);
    border-radius: 2px;
}

/* Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.category-card:hover {
    border-color: var(--olive);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(90, 114, 71, 0.15);
}

.category-card h3 {
    color: var(--dark-green);
    font-size: 1rem;
}

.category-icon {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--cream);
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-prices {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
}

.price-new {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-green);
}

.btn-cart {
    width: 100%;
    padding: 10px;
    background: var(--olive);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-cart:hover {
    background: var(--dark-green);
}

.btn-buy {
    width: 100%;
    padding: 10px;
    background: var(--honey);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.3s;
}

.btn-buy:hover {
    background: var(--brown);
}

.btn-buy, .btn-buy-now {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200, 148, 62, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(200, 148, 62, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200, 148, 62, 0); }
}

/* Single Product */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
}

.product-detail-image {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    max-height: 500px;
}

.product-detail-info h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark-green);
}

.product-detail-info .product-prices {
    margin-bottom: 20px;
}

.product-detail-info .price-new {
    font-size: 1.6rem;
}

.product-detail-info .price-old {
    font-size: 1.1rem;
}

.product-description {
    margin: 20px 0;
    color: var(--text-light);
    line-height: 1.8;
}

.live-stats {
    background: var(--cream);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.live-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: var(--dark-green);
    font-weight: 500;
}

.live-stat .dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    font-weight: 700;
}

.qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.btn-add-cart {
    padding: 14px 40px;
    background: var(--honey);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add-cart:hover {
    background: var(--brown);
}

.btn-buy-now {
    padding: 14px 40px;
    background: #e67e22; /* Warning/Orange color for urgency */
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-buy-now:hover {
    background: #d35400;
}

/* Reviews */
.reviews-section {
    margin-top: 40px;
}

.review-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-author {
    font-weight: 600;
    color: var(--dark-green);
}

.review-stars {
    color: var(--honey);
}

.review-text {
    color: var(--text-light);
}

/* Cart */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.cart-table th {
    background: var(--dark-green);
    color: white;
    padding: 15px;
    text-align: right;
    font-weight: 600;
}

.cart-table th:first-child {
    text-align: left;
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    text-align: right;
}

.cart-table td:first-child {
    text-align: left;
}

.cart-item-name {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-qty {
    width: 60px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-align: center;
    font-family: inherit;
}

.btn-remove {
    background: var(--danger);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
}

.cart-summary {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    border: 1px solid var(--border);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.cart-summary-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark-green);
}

/* Checkout */
.checkout-form {
    background: white;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--dark-green);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--olive);
    outline: none;
}

.delivery-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.delivery-option {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.delivery-option.selected {
    border-color: var(--olive);
    background: rgba(90, 114, 71, 0.05);
}

.delivery-option input {
    display: none;
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    background: var(--dark-green);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-checkout:hover {
    background: var(--olive);
}

/* Order Confirmation */
.order-confirm {
    text-align: center;
    padding: 60px 20px;
}

.order-confirm .check-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

.order-confirm h1 {
    color: var(--dark-green);
    margin-bottom: 10px;
}

.order-id {
    font-size: 1.3rem;
    color: var(--honey);
    font-weight: 700;
}

/* Footer */
.footer {
    background: var(--dark-green);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
}

.footer p {
    opacity: 0.8;
}

/* Flash Messages */
.flash {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Status Badges */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-available {
    background: #d4edda;
    color: #155724;
}

.badge-outofstock {
    background: #f8d7da;
    color: #721c24;
}

.badge-coming {
    background: #fff3cd;
    color: #856404;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

.badge-confirmed {
    background: #cce5ff;
    color: #004085;
}

.badge-delivered {
    background: #d4edda;
    color: #155724;
}

.badge-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state h2 {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-green);
        padding: 15px;
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .cart-table {
        font-size: 0.85rem;
    }

    .cart-table th,
    .cart-table td {
        padding: 10px 5px;
    }

    .cart-item-img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Product status badge on card */
.product-card .status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card {
    position: relative;
}

/* Product Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.btn-buy-now {
    flex: 1;
    padding: 14px 20px;
    background: var(--dark-green);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s;
}

.btn-buy-now:hover {
    background: var(--olive);
}

.btn-add-cart {
    flex: 1;
    text-align: center;
    /* Keeps honey background */
}

@media (max-width: 600px) {
    .action-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn-buy-now,
    .btn-add-cart {
        width: 100%;
    }
}

/* 
================================
  PREMIUM FOOTER STYLES
================================
*/
.new-footer {
    background: #1a472a;
    /* Dark Green */
    color: #E6F2E6;
    /* Soft White */
    padding: 60px 0 20px;
    margin-top: 50px;
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
}

/* 1. Brand Section */
.footer-brand {
    flex: 1 1 250px;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.brand-tagline {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
    font-style: italic;
    color: #c8943e;
    /* Honey/Gold */
}

.brand-underline {
    width: 50px;
    height: 3px;
    background: #c8943e;
    border-radius: 2px;
}

/* 2. Contact Section */
.footer-contact {
    flex: 1 1 250px;
}

.footer-contact h3,
.footer-links h3,
.footer-social h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h3::after,
.footer-links h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #c8943e;
}

.footer-contact ul {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: #c8943e;
    font-size: 1.1rem;
    margin-top: 4px;
}

.footer-contact a {
    color: #E6F2E6;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: #c8943e;
}

/* 3. Links Section */
.footer-links {
    flex: 1 1 150px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #E6F2E6;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: #c8943e;
    transform: translateX(5px);
}

/* 4. Social Section */
.footer-social {
    flex: 1 1 200px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.social-icon.facebook {
    background: #3b5998;
}

.social-icon.instagram {
    background: #E1306C;
}

.social-icon.x-twitter {
    background: #000000;
}

.social-icon.tiktok {
    background: #000000;
}

.social-icon.whatsapp {
    background: #25D366;
}

.social-icon:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}

/* Bottom Section */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #b0c4b1;
}

.footer-bottom p {
    margin-bottom: 5px;
}

.footer-bottom .subtext {
    color: #6c8a70;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .new-footer {
        text-align: center;
        padding-top: 40px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-brand,
    .footer-contact,
    .footer-links,
    .footer-social {
        flex: 1 1 100%;
        align-items: center;
    }

    .brand-underline,
    .footer-contact h3::after,
    .footer-links h3::after,
    .footer-social h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact li {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    /* Mobile adjustments for product page visibility */
    .product-detail-image {
        max-height: 280px;
        /* Reduced height */
        width: auto;
        /* Allow width to shrink */
        max-width: 100%;
        /* But not grow past container */
        margin: 0 auto;
        /* Center */
        display: block;
        object-fit: contain;
    }

    .product-detail {
        padding-top: 15px;
        gap: 15px;
    }

    .product-detail-info h1 {
        font-size: 1.3rem;
        margin-bottom: 5px;
        text-align: center;
    }

    .product-prices {
        justify-content: center;
        margin-bottom: 10px;
    }

    .qty-selector {
        justify-content: center;
        margin: 10px 0;
    }
}