/* Import the same font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}
body {
    line-height: 1.6;
    color: #374151;
    background-color: #f3f4f6;
}

/* Header and Navigation */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 1.25rem;
}

nav {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem;
    transition: color 0.15s;
}

.nav-links a:hover {
    color: #111827;
}

.cart-icon {
    color: #6b7280;
    text-decoration: none;
    font-size: 1.25rem;
}

/* Main Content Container */
main {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.8)),
                url('Images/banner.png');
    border-radius: 0.5rem;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #ffffff;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1rem;
    color: #e5e7eb;
    margin-bottom: 2rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: #2563eb;
    color: #ffffff;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s;
}

.cta-button:hover {
    background-color: #1d4ed8;
}

/* Featured Products Section with Horizontal Scroll */
.featured-products {
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    position: relative;
}

.featured-products h2 {
    font-size: 1.5rem;
    font-weight: 600;   
    color: #111827;
    margin-bottom: 1.5rem;
}

.product-container {
    position: relative;
    padding: 0 20px;
    overflow: hidden;
}

.product-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.product-grid::-webkit-scrollbar {
    height: 8px;
}

.product-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.product-grid::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.product-grid::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

.product-card {
    min-width: 280px; /* Fixed width for cards */
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.15s;
}

.product-card:hover {
    border-color: #2563eb;
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.product-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.product-card p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.price {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #2563eb;
    margin: 0.75rem 0;
}

.add-to-cart-btn {
    width: 100%;
    background-color: #2563eb;
    color: #ffffff;
    padding: 0.625rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s;
}

.add-to-cart-btn:hover {
    background-color: #1d4ed8;
}

/* Scroll Arrows */
.scroll-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    color: #4b5563;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.scroll-left {
    left: -20px;
}

.scroll-right {
    right: -20px;
}

/* Arrow icons - Centered */
.scroll-arrow::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    position: absolute;
    top: 50%;
    left: 50%;
}

.scroll-left::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.scroll-right::before {
    transform: translate(-65%, -50%) rotate(45deg);
    left: 47%;
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.why-choose-us h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
    text-align: center;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.feature {
    text-align: center;
    padding: 1rem;
}

.feature .icon {
    font-size: 1.5rem;
    color: #2563eb;
    margin-bottom: 0.75rem;
}

.feature h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.feature p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Footer */
footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 2rem 1.25rem 1rem;
}

.footer-content {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    text-decoration: none;
    transition: color 0.15s;
}

.footer-section a:hover {
    color: #2563eb;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    max-width: 80rem;
    margin: 1.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 1rem;
        border-bottom: 1px solid #e5e7eb;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    main {
        padding: 1rem;
    }
}

.checkout-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ccc;
}

.checkout-button.disabled:hover {
    background-color: #ccc;
}
    