/* 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;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 50px;
    height: 50px;
}

.nav-brand h1 {
    font-size: 1.8rem;
    color: #4F46E5;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #4F46E5;
    background-color: #f3f4f6;
}

.nav-link.active {
    color: #4F46E5;
    background-color: #EEF2FF;
}

.cart-link {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #EF4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Hero Large (Home Page) */
.hero-large {
    padding: 100px 20px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Products Section */
.products {
    padding: 60px 20px;
}

.products h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: #1F2937;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.product-quantity-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #10B981;
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    animation: badge-pulse 0.3s ease;
}

@keyframes badge-pulse {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1F2937;
}

.product-description {
    color: #6B7280;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4F46E5;
}

/* Product Quantity Controls */
.product-quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f3f4f6;
    padding: 6px 10px;
    border-radius: 8px;
}

.qty-control-btn {
    background-color: #4F46E5;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty-control-btn:hover {
    background-color: #4338CA;
    transform: scale(1.05);
}

.qty-control-btn:active {
    transform: scale(0.95);
}

.qty-control-btn:disabled {
    background-color: #9CA3AF;
    cursor: not-allowed;
    transform: none;
}

.qty-display {
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
    color: #1F2937;
}

/* Buttons */
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #4F46E5;
    color: white;
}

.btn-primary:hover {
    background-color: #4338CA;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6B7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4B5563;
}

.btn-link {
    background-color: transparent;
    color: #EF4444;
    padding: 8px 16px;
}

.btn-link:hover {
    background-color: #FEE2E2;
}

.btn-block {
    width: 100%;
    margin-bottom: 10px;
}

/* Cart Section */
.cart-section {
    padding: 40px 20px;
    min-height: 70vh;
}

.cart-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #1F2937;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart p {
    font-size: 1.3rem;
    color: #6B7280;
    margin-bottom: 20px;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: 120px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.item-details h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #1F2937;
}

.item-price {
    color: #6B7280;
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f3f4f6;
    padding: 8px 12px;
    border-radius: 8px;
}

.qty-btn {
    background-color: #4F46E5;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.qty-btn:hover {
    background-color: #4338CA;
}

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

.item-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4F46E5;
}

.remove-btn {
    background-color: #FEE2E2;
    color: #EF4444;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background-color: #EF4444;
    color: white;
}

/* Cart Summary */
.cart-summary {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1F2937;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #E5E7EB;
}

.summary-row.total {
    border-bottom: none;
    border-top: 2px solid #1F2937;
    font-size: 1.3rem;
    font-weight: 700;
    color: #4F46E5;
    margin-top: 10px;
    padding-top: 20px;
}

/* Footer */
footer {
    background-color: #1F2937;
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .cart-content {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .cart-item {
        grid-template-columns: 100px 1fr;
        gap: 15px;
    }

    .item-details {
        grid-column: 2;
    }

    .quantity-controls {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .item-total {
        grid-column: 1 / -1;
        text-align: center;
    }

    .item-remove {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .cart-item {
        position: relative;
    }
}

@media (max-width: 768px) {
    .nav-brand h1 {
        font-size: 1.3rem;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Home Page Sections */
.content-section {
    padding: 80px 20px;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #1F2937;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.about-card {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1F2937;
}

.about-card p {
    color: #6B7280;
    line-height: 1.8;
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
}

.feature-number {
    font-size: 3rem;
    font-weight: 700;
    color: #4F46E5;
    opacity: 0.2;
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #1F2937;
}

.feature-item p {
    color: #6B7280;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}
