* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    background: white;
    padding: 0.8rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2ecc71;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo span {
    font-size: 2rem;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: #2ecc71;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.nav-link:hover {
    color: #27ae60;
    text-shadow: none;
}

.login-btn {
    background-color: #2ecc71;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    color: white;
}

.login-btn:hover {
    background-color: #27ae60;
    color: white;
    text-shadow: none;
}

.header-controls {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-shrink: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.4rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #2ecc71;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.cart-icon {
    font-size: 1.5rem;
    cursor: pointer;
    color: #2ecc71;
    position: relative;
    transition: transform 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Carousel Styles */
.carousel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    height: 500px; /* Increased from 400px */
    margin: 0;
    scroll-margin-top: 70px;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.5s;
    position: relative;
}

.carousel-slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.carousel-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.slide-content {
    flex: 1;
    color: #fff;
    position: relative;
    z-index: 2;
}

.slide-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-button {
    background-color: #e74c3c;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background-color: #c0392b;
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: white;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Section Styles */
section {
    padding: 3rem 2rem;
    max-width: 1400px; /* Increased from 1200px */
    margin: 0 auto;
    scroll-margin-top: 70px;
    width: 100%; /* Ensure full width usage */
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    border-bottom: 3px solid #2ecc71;
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Increased from 200px */
    gap: 2rem; /* Increased from 1.5rem */
    width: 100%;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 220px; /* Increased from 180px */
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.product-info {
    padding: 1.2rem; /* Increased from 1rem */
}

.product-name {
    font-size: 1.1rem; /* Increased from 1rem */
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.3rem;
    color: #2ecc71;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.product-rating {
    color: #f39c12;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.product-id {
    display: none;
}

.add-to-cart {
    width: 100%;
    padding: 0.6rem;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background-color: #27ae60;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInContent 0.3s ease;
}

.cart-modal {
    width: 90%;
    max-width: 600px;
}

.auth-modal {
    width: 90%;
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
}

.modal-header h2 {
    color: #2c3e50;
}

.close {
    font-size: 2rem;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #e74c3c;
}

@keyframes slideIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInContent {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Cart Styles */
.cart-items {
    margin-bottom: 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: #95a5a6;
    padding: 2rem;
    font-size: 1.1rem;
}

.cart-item {
    background-color: #f8f9fa;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: #2ecc71;
    font-weight: bold;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem;
}

.qty-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.qty-btn:hover {
    background-color: #27ae60;
}

.remove-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.remove-btn:hover {
    background-color: #c0392b;
}

.cart-summary {
    border-top: 2px solid #f0f0f0;
    padding-top: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2ecc71;
    border-top: 1px solid #ecf0f1;
    padding-top: 0.8rem;
}

.checkout-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background-color: #27ae60;
}

/* Auth Styles */
.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #ecf0f1;
}

.auth-tab-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-weight: bold;
    color: #7f8c8d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.auth-tab-btn.active {
    color: #2ecc71;
    border-bottom-color: #2ecc71;
}

.auth-tab-content {
    display: none;
}

.auth-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ecf0f1;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 5px rgba(46, 204, 113, 0.3);
}

.auth-submit-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-submit-btn:hover {
    background-color: #27ae60;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #2ecc71;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #2ecc71;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 0.8rem 1rem;
        flex-wrap: wrap;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #f0f0f0;
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        z-index: 999;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-link {
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hamburger {
        display: flex;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo span {
        font-size: 1.5rem;
    }

    .carousel {
        height: 300px;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    section {
        padding: 2rem 1rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .cart-modal {
        width: 95%;
    }

    .auth-modal {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 250px;
    }

    .slide-content h1 {
        font-size: 1.3rem;
    }

    .slide-content p {
        font-size: 0.85rem;
    }

    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-image {
        height: 120px;
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .cart-item-quantity {
        width: 100%;
        margin: 0;
    }

    .remove-btn {
        width: 100%;
    }
}
.product-modal-content {
    max-width: 900px;
    width: 95%;
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1.5rem 0;
}

.product-modal-images {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-modal-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.product-modal-images img.active {
    display: block;
}

.image-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.image-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.image-nav-btn:hover {
    background: white;
    transform: scale(1.1);
}

.product-modal-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.product-modal-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #e74c3c;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-modal-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
    padding-right: 100px; /* Space for badge */
}

.product-modal-rating {
    color: #f39c12;
    font-size: 1rem;
}

.product-modal-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.price-amount {
    font-size: 2rem;
    color: #2ecc71;
    font-weight: bold;
}

.price-unit {
    font-size: 1rem;
    color: #7f8c8d;
}

.product-modal-size {
    color: #7f8c8d;
    margin: 0;
}

.product-modal-description {
    margin-top: 1rem;
}

.product-modal-description h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.product-modal-description p {
    color: #7f8c8d;
    line-height: 1.6;
}

.product-modal-quantity {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.product-modal-quantity label {
    font-weight: 600;
    color: #2c3e50;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    padding: 0.3rem;
}

.quantity-selector .qty-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: #2ecc71;
    color: white;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-selector .qty-btn:hover {
    background: #27ae60;
}

.quantity-selector input {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.product-modal-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.add-to-cart-modal-btn {
    flex: 1;
    padding: 1rem 2rem;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-modal-btn:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-modal-images {
        max-height: 300px;
    }
    
    .product-modal-title {
        font-size: 1.5rem;
        padding-right: 80px;
    }
    
    .price-amount {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .product-modal-content {
        width: 98%;
        max-height: 95vh;
    }
    
    .product-modal-title {
        font-size: 1.3rem;
    }
    
    .product-modal-actions {
        flex-direction: column;
    }
}