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

body {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;

}

.header {
    position: fixed;
    z-index: 2;
    top:0;
    bottom:auto;
    width: 100%;
    background-color: #2c3e50;
    color: #dcdcdc;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #dcdcdc;
}

.logo-img {
    height: 1.5rem;
}

.cart-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: 0.3s ease;
}

.cart-btn:hover {
    background: #219a52;
}

.cart-count {
    background: #219a52;
    padding: 2px 8px;
    border-radius: 50%;
    font-size: 0.8rem;
}

.hero {
    background-color: #2c3e50e6;
    background-size: cover;
    background-position: center;
    color: #dcdcdc;
    text-align: center;
    padding: 3rem 0;
    margin-top: 71px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    opacity: 0.9;
}

.products-section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #2c3e50;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #2c3e50e6;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #2c3e50e6;
    color: white;
    border-color: #2c3e50;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 500px;
    max-width: 400px;
}

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

.product-image .imge {
    height: 235px;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #7f8c8d;
    
}

.imge {
    justify-self: center;
    margin: 0 auto;
}

.product-info {
    padding: 1.5rem;
    height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #2c3e50e6;
    color: white;
}

.product-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-category {
    color: white;
    font-size: 0.8rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.07rem;
    color: white;
}

.product-description {
    color: white;
    font-size: 1rem;
    line-height: 1.4;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.add-to-cart {
    width: 100%;
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s ease;
    justify-self: end;
}

.add-to-cart:hover {
    background: #219a52;
}

.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.cart-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: scroll;
}

.cart-items {
    margin: 1rem 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #ecf0f1;
}

.cart-item-info h4 {
    margin-bottom: 0.5rem;
}

.cart-item-price {
    /* color: #2c3e50; */
    font-weight: 600;
    transition: 0.3s ease;
}

.cart-total {
    text-align: right;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 1rem 0;
    color: #2c3e50;
}

.checkout-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    gap: 15px; 
    grid-template-columns: 2fr 2fr 3fr;
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #bdc3c7;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #2c3e50;
}

.checkout-btn {
    width: 100%;
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.checkout-btn:hover {
    background: #219a52;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background: #27ae60;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

.quantity-btn:hover {
    background: #219a52;
}

.remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

.remove-btn:hover {
    background: #c63b2b;
}

@media (width <= 600px) {
    .details {
        display: none;
    }

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

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

    .form-row {
        display: grid;
        gap: 15px; 
        grid-template-columns: 1fr 1fr 1fr;
    }

}