* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



:root {
    /* Colors */
    --primary-green: #10b981;
    --light-bg: #f9fafb;
    --white: #ffffff;
    --gray-dark: #374151;
    --gray-light: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--gray-dark);
    line-height: 1.6;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-green);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--gray-dark);
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    color: var(--primary-green);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
    border-bottom: 2px solid var(--primary-green);
}

.header-right {
    display: flex;
    align-items: center;
}

.cart-link {
    position: relative;
    text-decoration: none;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.cart-link:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Main Section */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Slider Section */
.slider-section {
    margin-bottom: 3rem;
    height: 85vh;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--light-bg);
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slider-image.active {
    opacity: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--gray-dark);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-weight: bold;
}

.slider-btn:hover {
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn-prev {
    left: 20px;
}

.slider-btn-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: var(--white);
    transform: scale(1.3);
}

/* Categories Section */
.categories-section {
    margin-bottom: 3rem;
}

.categories-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--gray-dark);
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.category-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    position: relative;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-info {
    padding: 1.5rem;
    text-align: center;
}

.category-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-dark);
}

/* Skeleton Loader */
.skeleton-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 280px;
    animation: skeleton-loading 1s linear infinite alternate;
}

.skeleton-product {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 350px;
    animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
    0% {
        background-color: var(--light-bg);
    }
    100% {
        background-color: var(--gray-light);
    }
}

/* Featured Products Section */
.featured-section {
    margin-bottom: 3rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.featured-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    z-index: 0;
}

.featured-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--gray-dark);
    position: relative;
    z-index: 1;
}

.featured-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: var(--light-bg);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    color: var(--primary-green);
    font-weight: bold;
    margin-bottom: 1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    width: fit-content;
}

.qty-btn {
    background-color: transparent;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    color: var(--primary-green);
}

.qty-btn:hover {
    background-color: var(--light-bg);
}

.qty-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.add-to-cart-btn {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-top: auto;
}

.add-to-cart-btn:hover {
    background-color: #059669;
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Contact Section */
.contact-section {
    margin-bottom: 3rem;
    padding: 3rem;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.contact-container {
    text-align: center;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

.contact-section > p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2.5rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    background-color: rgba(16, 185, 129, 0.1);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
}

.contact-card p {
    color: #6b7280;
}

.contact-card a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--gray-dark);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    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 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4b5563;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.9rem;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #059669;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
        gap: 1rem;
    }

    .logo-link {
        font-size: 1.2rem;
    }

    .nav-menu {
        gap: 1rem;
        flex-basis: 100%;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .slider-section {
        height: 35vh;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .slider-btn-prev {
        left: 10px;
    }

    .slider-btn-next {
        right: 10px;
    }

    main {
        padding: 1rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .featured-products {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .featured-section {
        padding: 1.5rem;
    }

    .contact-section {
        padding: 1.5rem;
    }

    .contact-section h2 {
        font-size: 1.5rem;
    }

    .featured-section h2,
    .categories-section h2 {
        font-size: 1.5rem;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.75rem;
    }

    .logo-text {
        display: none;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.25rem;
    }

    .slider-section {
        height: 30vh;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-products {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
