/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Navigation */
.navbar {
    background: #2c5530;
    color: white;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: #d4edda;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.9), rgba(74, 124, 89, 0.9)),
        url('/static/images/pooja_ghosa1.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #e55a2b;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-container {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-image-placeholder {
    font-size: 3rem;
    color: #6c757d;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c5530;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 1rem;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
}

/* Cart Styles */
.cart-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.cart-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item-title {
    margin: 0;
    color: #2c5530;
    font-size: 1.2rem;
}

.cart-item-weight {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.cart-item-price {
    font-weight: bold;
    color: #2c5530;
    font-size: 1.1rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.quantity-label {
    color: #666;
    font-size: 0.9rem;
    font-weight: bold;
}

.quantity-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: #2c5530;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: #2c5530;
    color: white;
    border-color: #2c5530;
}

.quantity-display {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.cart-item-total {
    font-weight: bold;
    color: #2c5530;
    font-size: 1.1rem;
    text-align: right;
}

.cart-item-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

.remove-btn i {
    font-size: 0.9rem;
}

.cart-total {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    text-align: center;
}

.cart-total h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.cart-total-amount {
    font-size: 1.8rem;
    color: #2c5530;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.quantity-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #e9ecef;
}

/* Cart Popup Styles */
.cart-popup {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    padding: 1.5rem;
    max-width: 350px;
    width: 90%;
    border: 1px solid #e9ecef;
    animation: slideInRight 0.3s ease-out;
    display: none;
}

.cart-popup.show {
    display: block;
}

.cart-popup-content {
    text-align: center;
}

.cart-popup-icon {
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 1rem;
}

.cart-popup-title {
    color: #2c5530;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cart-popup-message {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.cart-popup-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.cart-popup-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.cart-popup-btn-primary {
    background: #2c5530;
    color: white;
}

.cart-popup-btn-secondary {
    background: #f8f9fa;
    color: #2c5530;
    border: 1px solid #ddd;
}

.cart-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cart-popup-btn-primary:hover {
    background: #1e3a23;
}

.cart-popup-btn-secondary:hover {
    background: #e9ecef;
}

/* Animation for popup */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9998;
    display: none;
    animation: fadeIn 0.3s ease;
}

.mobile-menu-overlay.show {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: #2c5530;
    z-index: 9999;
    padding: 2rem 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.show {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu-link {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    background: #2c5530;
    color: white;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #fff;
}

.footer-section p {
    margin-bottom: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #d4edda;
    text-decoration: none;
    transition: color 0.3s;
    opacity: 0.9;
}

.footer-links a:hover {
    color: white;
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

/* Form styles */
input,
textarea {
    font-family: inherit;
    font-size: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #2c5530 !important;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .nav-container {
        padding: 0 1rem;
        flex-direction: row;
        justify-content: space-between;
    }

    .logo {
        position: static;
        transform: none;
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .product-card {
        margin-bottom: 1rem;
    }

    .cart-popup {
        top: 80px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }

    .cart-popup-buttons {
        flex-direction: column;
    }

    .cart-popup-btn {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cart-container {
        padding: 1rem;
    }

    .cart-item {
        padding: 1rem;
        gap: 0.75rem;
    }

    .cart-item-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cart-item-price {
        align-self: flex-start;
    }

    .cart-item-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .quantity-control {
        justify-content: space-between;
        padding: 0.75rem;
    }

    .cart-item-total {
        text-align: center;
        font-size: 1.2rem;
        padding: 0.5rem;
        background: #f8f9fa;
        border-radius: 5px;
    }

    .cart-item-actions {
        justify-content: center;
    }

    .remove-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
    }

    .cart-total {
        padding: 1.25rem;
        margin-top: 1.5rem;
    }

    .cart-total-amount {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .nav-container {
        padding: 0 0.5rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .cart-item-title {
        font-size: 1.1rem;
    }

    .quantity-control {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .quantity-label {
        text-align: center;
    }

    .cart-total h3 {
        font-size: 1.2rem;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Ensure mobile menu is hidden on desktop */
@media (min-width: 769px) {

    .mobile-menu-overlay,
    .mobile-menu {
        display: none !important;
    }

    .hamburger-menu {
        display: none !important;
    }
}

/* Empty Cart State */
.empty-cart {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.empty-cart-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-cart h3 {
    color: #2c5530;
    margin-bottom: 0.5rem;
}

.empty-cart p {
    color: #666;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .empty-cart {
        padding: 2rem 1rem;
    }
}

/* Profile Page Styles */
.profile-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.profile-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
    align-self: start;
}

.profile-content {
    background: white;
    padding: 2rem;
    width: 875px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-section-title {
    margin-bottom: 1rem;
    color: #2c5530;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c5530;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2c5530;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.profile-btn {
    background: #2c5530;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.profile-btn:hover {
    background: #1e3a23;
}

/* Mobile Profile Layout */
@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .profile-sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }

    .profile-content {
        padding: 1.5rem;
    }

    .profile-section-title {
        font-size: 1.2rem;
    }

    .form-input,
    .form-textarea {
        padding: 0.6rem;
    }
}

/* Order History Styles */
.order-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.order-id {
    font-weight: bold;
    color: #2c5530;
    font-size: 1.1rem;
}

.order-date {
    color: #666;
    font-size: 0.9rem;
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #cce5ff;
    color: #004085;
}

.status-shipped {
    background: #d4edda;
    color: #155724;
}

.status-delivered {
    background: #d1ecf1;
    color: #0c5460;
}

.order-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.order-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.order-detail-label {
    color: #666;
}

.order-detail-value {
    font-weight: bold;
    color: #2c5530;
}

.order-total {
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c5530;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .order-details-grid {
        grid-template-columns: 1fr;
    }

    .order-total {
        text-align: left;
    }
}