:root {
    --primary-color: #A7D8F0; 
    --primary-dark: #82C4E5;
    --text-color: #333;
    --bg-color: #F8FDFF;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-dark);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    background: var(--primary-color);
    padding: 8px;
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-icon:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff5252;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--white));
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #2c5282;
}

.hero p {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto 30px;
}

section {
    padding: 100px 0;
}


h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: #2c5282;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(167, 216, 240, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-dark);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

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

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

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

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.about-section {
    margin-top: 60px;
    display: flex;
    align-items: center;
    gap: 50px;
}


.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    display: block;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    position: relative;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal, .close-cart-modal, .close-payment-modal, .close-success-modal, .close-order-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}


.modal-body {
    display: flex;
    gap: 40px;
}

.modal-image {
    flex: 1;
}

.modal-image img {
    width: 100%;
    border-radius: 15px;
}

.modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-info h2 {
    text-align: left;
    margin-bottom: 10px;
}

.modal-stock {
    color: #718096;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.modal-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 25px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: var(--white);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qty-input {
    width: 60px;
    text-align: center;
    font-size: 1.1rem;
    border: none;
    background: #f1f1f1;
    padding: 8px;
    border-radius: 8px;
}

#cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.cart-item-info {
    flex: 1;
}

.cart-total {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: right;
    margin-bottom: 20px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:hover {
    border-color: var(--primary-color);
    background: #f0f9ff;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.success-content {
    max-width: 500px;
}


footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        padding: 10px;
    }
    .about-section {
        flex-direction: column;
        text-align: center;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .nav-links {
        display: none;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 40px 10px;
    }
    .section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
}
