/* Base Styles */
:root {
    --primary-color: #d4a762;
    --primary-dark: #b88b4a;
    --secondary-color: #333333;
    --light-color: #f8f8f8;
    --dark-color: #222222;
    --text-color: #444444;
    --light-text: #777777;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --error-color: #f44336;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-color);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-outline {
    display: inline-block;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Top Bar */
.top-bar {
    background-color: var(--dark-color);
    color: white;
    padding: 1px 0;
    text-align: center;
    font-size: 0.6rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 2px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.desktop-nav ul {
    display: flex;
    gap: 30px;
}

.desktop-nav ul li a {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.desktop-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.desktop-nav ul li a:hover::after {
    width: 100%;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icons div {
    cursor: pointer;
    font-size: 1.2rem;
    position: relative;
    transition: var(--transition);
}

.header-icons div:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--primary-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 1100;
    transition: var(--transition);
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-header .logo img {
    height: 30px;
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

.mobile-menu nav ul {
    padding: 20px;
}

.mobile-menu nav ul li {
    margin-bottom: 15px;
}

.mobile-menu nav ul li a {
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    display: block;
    padding: 10px 0;
}

.mobile-menu nav ul li a:hover {
    color: var(--primary-color);
}

.mobile-menu-footer {
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    font-size: 1.2rem;
    color: var(--dark-color);
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 100%;
    max-width: 600px;
    position: relative;
    padding: 0 20px;
}

.search-container input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    outline: none;
}

.search-close {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

.search-results {
    width: 100%;
    max-width: 600px;
    max-height: 60vh;
    overflow-y: auto;
    background-color: white;
    margin-top: 20px;
    border-radius: 8px;
    padding: 20px;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.search-result-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.search-result-item .price {
    color: var(--primary-color);
    font-weight: 600;
}

.search-result-item .description {
    font-size: 0.8rem;
    color: var(--light-text);
}

.no-results {
    padding: 20px;
    text-align: center;
}

/* Account Modal */
.account-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1300;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.account-modal.active {
    opacity: 1;
    visibility: visible;
}

.account-container {
    background-color: white;
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
    transform: translateY(-50px);
    transition: var(--transition);
}

.account-modal.active .account-container {
    transform: translateY(0);
}

.account-header {
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-header h3 {
    margin: 0;
    color: white;
}

.account-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.account-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.account-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.forgot-password {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--light-text);
}

.forgot-password:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: auto cover;
}

/* Banner Controls */
.slider-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 30px;
}

.slider-controls button {
    background: none;
    border: none;
    color: rgb(255, 255, 255);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.slide-dots {
    display: flex;
    gap: 8px;
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slide-dot.active {
    background-color: white;
}

.pause-slide {
    position: static;
    background: none;
    color: rgb(255, 255, 255);
    border: none;
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .hero {
        min-height: 400px;
    }
    
    .slide-content {
        left: 10%;
        max-width: 500px;
        padding: 20px;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
}

@media (min-width: 992px) {
    .hero {
        min-height: 500px;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
}

/* Products Section */
/* Products Section */
.products {
    padding: 20px 0;
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 12px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sale-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #ff4757;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.product-img-box {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Creates a square aspect ratio */
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f0f0f0;
    margin-bottom: 10px;
}

.product-img-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}

.product-link:hover .product-img-box img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
    height: 36px;
    overflow: hidden;
}

.price-box {
    margin-bottom: 12px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
    margin-right: 5px;
}

.new-price {
    color: #d4a762;
    font-weight: 700;
    font-size: 16px;
}

.cart-btn {
    width: 100%;
    padding: 8px;
    border-radius: 20px;
    background-color: #d4a762;
    color: white;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-btn:hover {
    background-color: #c09555;
}

/* Responsive adjustments */
@media (min-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .product-img-box {
        padding-bottom: 90%; /* Slightly less than square for larger screens */
    }
    
    .product-card h3 {
        font-size: 15px;
    }
    
    .new-price {
        font-size: 18px;
    }
    
    .cart-btn {
        padding: 10px;
        font-size: 14px;
    }
}

@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* Remove the odd/even margin adjustments - they're causing issues */
.product-card:nth-child(odd),
.product-card:nth-child(even) {
    margin-left: 0;
    margin-right: 0;
}

/* Product Link Styles */
.product-link {
    display: block;
    color: inherit;
    text-decoration: none;
    margin-bottom: 10px;
}

.product-link:hover h3 {
    color: var(--primary-color);
    transition: var(--transition);
}

/* Product Image Hover Effect */
.product-img-box {
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-link:hover .product-img-box {
    transform: translateY(-5px);
}

.product-link:hover .product-img-box img {
    transform: scale(1.05);
}

.product-img-box img {
    transition: var(--transition);
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Ensure cart button stays clickable */
.cart-btn {
    position: relative;
    z-index: 2;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 1.5rem 1rem;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: column;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.feature-card {
    scroll-snap-align: start;
    min-width: 10rem;
    background: #f9f9f9;
    border-radius: 0.6rem;
    padding: 1.2rem 0.8rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 1.5rem;
    color: #d4a762;
    margin-bottom: 0.6rem;
}

.feature-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: #333;
}

.feature-card p {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

/* Shipping Policy */
.shipping-policy {
    padding: 1rem 0.5rem;
    background: #fafafa;
    overflow-x: auto;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(3, 110px);
    grid-template-rows: auto;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.5rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.policy-card {
    scroll-snap-align: start;
    background: white;
    border-radius: 0.5rem;
    padding: 0.8rem 0.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.policy-icon {
    font-size: 1.2rem;
    color: #d4a762;
    margin-bottom: 0.3rem;
}

.policy-content h3 {
    font-size: 0.75rem;
    color: #333;
    margin-bottom: 0.3rem;
    text-align: center;
}

.policy-content p {
    color: #666;
    font-size: 0.65rem;
    line-height: 1.2;
    text-align: center;
}

/* FSSAI Certification */
.fssai-certification {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid #eee;
}

.fssai-certification img {
    height: 30px;
    width: auto;
    margin-bottom: 0.3rem;
}

.fssai-certification p {
    color: #666;
    font-size: 0.6rem;
    text-align: center;
    max-width: 90%;
    line-height: 1.2;
}

/* Instagram Follow Section */
.instagram-follow {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    padding: 2.5rem 0;
    color: white;
}

.instagram-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.instagram-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.instagram-text p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    opacity: 0.9;
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: white;
    color: #dc2743;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.instagram-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    color: #bc1888;
}

.instagram-btn i {
    font-size: 1.3rem;
}

/* Shopping Cart */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1400;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-container {
    width: 100%;
    max-width: 500px;
    height: 100%;
    background-color: white;
    transform: translateX(100%);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-overlay.active .cart-container {
    transform: translateX(0);
}

.cart-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.empty-cart {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.empty-cart i {
    font-size: 2.5rem;
    color: var(--border-color);
    margin-bottom: 15px;
}

.empty-cart p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.cart-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.quantity-control button {
    background: none;
    border: none;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.quantity-control input {
    width: 30px;
    height: 25px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.remove-item {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    font-size: 1rem;
}

.cart-footer {
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

.cart-totals {
    margin-bottom: 15px;
}

.cart-subtotal, .cart-shipping, .cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.cart-total {
    font-weight: 600;
    font-size: 1rem;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

.btn-checkout {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

/* Checkout Modal */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.checkout-modal.active {
    opacity: 1;
    visibility: visible;
}

.checkout-container {
    background-color: white;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 8px;
    overflow: hidden;
    transform: translateY(-50px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.checkout-modal.active .checkout-container {
    transform: translateY(0);
}

.checkout-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.checkout-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 2;
}

.step span {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--light-text);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.step p {
    font-size: 0.8rem;
    color: var(--light-text);
    transition: var(--transition);
}

.step.active span {
    background-color: var(--primary-color);
    color: white;
}

.step.active p {
    color: var(--dark-color);
    font-weight: 500;
}

.checkout-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.checkout-step {
    display: none;
}

.checkout-step.active {
    display: block;
}

#shippingForm .form-group {
    margin-bottom: 15px;
}

#shippingForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

#shippingForm input,
#shippingForm textarea,
#shippingForm select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

#shippingForm input:focus,
#shippingForm textarea:focus,
#shippingForm select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-row .form-group {
    flex: 1;
}

.btn-next {
    margin-top: 15px;
    padding: 10px 15px;
    font-size: 0.9rem;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-method {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.payment-method.active {
    border-color: var(--primary-color);
    background-color: rgba(212, 167, 98, 0.05);
}

.payment-method input {
    position: absolute;
    opacity: 0;
}

.payment-method label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.payment-method i {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 3px;
}

.payment-details {
    margin-left: 25px;
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--light-text);
}

.payment-method small {
    display: block;
    color: var(--light-text);
    font-size: 0.8rem;
}

.order-summary {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.order-summary h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.summary-items {
    margin-bottom: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.summary-item-name {
    color: var(--light-text);
}

.summary-totals {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.summary-row.total {
    font-weight: 600;
    font-size: 1rem;
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
}

.confirmation-content {
    text-align: center;
    padding: 15px 0;
}

.confirmation-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 15px;
}

.confirmation-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.confirmation-content p {
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9rem;
}

.confirmation-details {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 20px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.detail-row {
    margin-bottom: 10px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row span {
    font-weight: 500;
    color: var(--light-text);
    display: block;
    margin-bottom: 3px;
    font-size: 0.8rem;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.confirmation-actions .btn,
.confirmation-actions .btn-outline {
    padding: 10px 15px;
    font-size: 0.9rem;
}

/* Chatbot */
.chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.chatbot-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background-color: #ff4757;
    border-radius: 50%;
    color: white;
    font-size: 0.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
}

.chatbot-container {
    position: absolute;
    bottom: 65px;
    right: 0;
    width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    max-height: 400px;
}

.chatbot.active .chatbot-container {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chatbot-header {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px 10px 0 0;
}

.chatbot-header h4 {
    margin: 0;
    font-size: 1rem;
    color: white;
}

.chatbot-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: white;
}

.chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    max-height: 250px;
}

.chatbot-welcome {
    background-color: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.chatbot-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chatbot-option {
    background-color: #f5f5f5;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
}

.chatbot-option:hover {
    background-color: var(--primary-color);
    color: white;
}

.chatbot-input {
    display: flex;
    padding: 12px;
    border-top: 1px solid var(--border-color);
}

.chatbot-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
    font-size: 0.8rem;
}

.chatbot-input button {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--primary-color);
    cursor: pointer;
    margin-left: 8px;
}

.chatbot-message {
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 0.8rem;
    line-height: 1.4;
}

.chatbot-message.user {
    background-color: var(--primary-color);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.chatbot-message.bot {
    background-color: #f1f1f1;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary-color);
}

.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--primary-color);
    font-size: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* Coupon Section */
.coupon-section {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.coupon-section h4 {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--dark-color);
}

.coupon-input-group {
    display: flex;
    gap: 10px;
}

.coupon-input-group input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

.coupon-message {
    font-size: 0.8rem;
    padding: 5px;
    border-radius: 4px;
    margin-top: 5px;
}

.coupon-message.success {
    color: var(--success-color);
    background-color: rgba(76, 175, 80, 0.1);
}

.coupon-message.error {
    color: var(--error-color);
    background-color: rgba(244, 67, 54, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .checkout-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .checkout-steps::before {
        display: none;
    }
    
    .step {
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 40vh;
        min-height: 300px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .chatbot-container {
        width: 280px;
    }
}

/* Animation for cart count */
.animate-bounce {
    animation: bounce 0.5s;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Track Order Page Specific Styles */
.track-order-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    min-height: 70vh;
}

.track-order-form {
    max-width: 600px;
    margin: 0 auto 40px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.order-status {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.status-badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.status-badge.processing {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.shipped {
    background-color: #cce5ff;
    color: #004085;
}

.status-badge.delivered {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.status-timeline {
    position: relative;
    padding: 20px 0;
    margin-bottom: 30px;
}

.status-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    height: 100%;
    width: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.timeline-step {
    position: relative;
    padding-left: 40px;
    margin-bottom: 30px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.timeline-dot::after {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: white;
}

.timeline-step.active .timeline-dot {
    background-color: var(--primary-color);
}

.timeline-step.active .timeline-dot::after {
    background-color: var(--primary-color);
}

.timeline-content h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.timeline-content p {
    color: var(--light-text);
    font-size: 0.9rem;
}

.order-details {
    margin-top: 30px;
}

.details-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.details-col {
    flex: 1;
}

.details-col h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.details-col p {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.order-items {
    margin-bottom: 30px;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

.order-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-details {
    flex: 1;
}

.order-item-details h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.order-item-details p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.order-item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.order-summary {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

.support-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.support-section h4 {
    margin-bottom: 15px;
}

.support-contacts {
    margin-top: 15px;
}

.support-contacts p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--light-text);
}

.support-contacts i {
    color: var(--primary-color);
}

.order-not-found {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.order-not-found i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 20px;
}

.order-not-found h3 {
    margin-bottom: 15px;
}

.order-not-found p {
    margin-bottom: 20px;
    color: var(--light-text);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .track-order-form,
    .order-status {
        padding: 20px;
    }
    
    .details-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-not-found {
        padding: 30px 20px;
    }
}



/* Ensure checkout modal is properly displayed */
.checkout-modal.active .checkout-container {
    transform: translateY(0);
    opacity: 1;
}

/* Make sure cart overlay is visible when active */
.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Fix button z-index issues */
.btn-checkout {
    position: relative;
    z-index: 1;
}

/* Ensure cart items are visible */
.cart-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}





