* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}
h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Product Discount */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
}
.discount-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    background: #e74c3c;
    color: white;
    padding: 2px 5px;
    font-size: 8px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 2;
}
/* End Product Discount */

.product-info {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card h2{
    font-size: 0.8rem;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
    font-weight: 600;
}

.price-button-wrapper {
    margin-top: auto;
    width: 100%;
}
.price-container {
    text-align: center;
}

.price-container del{
    color: #888;
    text-decoration: line-through;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 10px;
}

.price-container strong{
    color: #e74c3c;
    font-weight: bold;
    font-size: 1rem;
}

.product-button {
    display: inline-block;
    padding: 8px 15px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 0 0 5px 5px;
    text-align: center;
    width: 100%;
    margin-top: auto; /* 👈 This pushes it to bottom */
}
.product-button:hover {
    background: #2980b9;
}

/* Default: Desktop (5 columns) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Laptop and tablets: 4 columns */
@media (max-width: 1140px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablets and big phones: 2 columns */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small phones: still 2 columns */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}





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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 15px;
}
*/
.container-single-product {
    max-width: 600px;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.product-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.product-image {
    width: 100%;
    max-width: 400px;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.product-details {
    width: 100%;
    text-align: center;
}

.product-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.price-container {
    margin-bottom: 15px;
}

.regular-price {
    color: #888;
    text-decoration: line-through;
    font-size: 1rem;
    margin-right: 10px;
}

.sale-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2rem;
}

.product-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

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

.quantity-selector button {
    padding: 5px 10px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.quantity-selector button:hover {
    background: #2980b9;
}

.quantity-selector input {
    width: 50px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.summary {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.summary div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1rem;
}

.summary .total {
    font-weight: bold;
    font-size: 1.1rem;
}

.order-button {
    display: block;
    width: 100%;
    padding: 10px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    margin-top: 20px;
}

.order-button:hover {
    background: #27ae60;
}

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

    .product-title {
        font-size: 1.3rem;
    }

    .sale-price {
        font-size: 1.1rem;
    }

    .regular-price {
        font-size: 0.9rem;
    }

    .product-image {
        max-width: 100%;
    }

    .product-description {
        font-size: 0.9rem;
    }

    .quantity-selector {
        flex-direction: column;
    }

    .quantity-selector button,
    .quantity-selector input {
        width: 100%;
    }
}
