
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f8f8;
    color: #333;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.product-container {
    display: flex;
    flex-direction: row;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    transition: all 0.3s ease;
}

.product-image-section {
    flex: 1;
    background-color: #f1f1f1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

#product-image {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    transition: transform 0.4s ease, opacity 0.3s ease;
    transform: scale(1);
}

#product-image:hover {
    transform: scale(1.05);
}

.product-details-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

#product-name {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0 0 5px 0;
}

#product-style-name {
    font-size: 1rem;
    font-weight: 300;
    color: #777;
    margin: 0 0 20px 0;
    min-height: 1.2em;
}

.product-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.discount-banner {
    background: linear-gradient(135deg, #ff8c00, #d35400);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.3);
}

.product-price {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 25px;
}

.quantity-selector {
    margin-bottom: 25px;
}

.quantity-selector p {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 50px;
    width: fit-content;
}

.quantity-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px 15px;
}

#quantity-value {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 1rem;
}

.style-selector p {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.style-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.style-option {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 50px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.style-option:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
}

.style-option.active {
    border-color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
}

.buy-button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto; /* Pushes the button to the bottom */
}

.buy-button:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}


/* Responsive Design */
@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
        margin: 20px;
    }

    .product-details-section {
        padding: 30px;
    }

    #product-name {
        font-size: 2rem;
    }

    .buy-button {
        margin-top: 20px;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.visible {
    display: flex; /* Shown when active */
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.modal-content h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #28a745;
}

.modal-content p {
    margin-bottom: 25px;
    color: #555;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-buttons button {
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

#checkout-btn {
    background-color: #333;
    color: #fff;
}

#checkout-btn:hover {
    background-color: #555;
}

.button-secondary {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.button-secondary:hover {
    background-color: #e0e0e0;
}

/* Checkout Page Styles */
.checkout-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 100%;
    margin-top: 20px;
}

.order-summary {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.order-summary h3 {
    margin-top: 0;
}

.summary-item, .summary-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.summary-total {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 1.1rem;
}


#checkout-form fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

#checkout-form legend {
    font-weight: 600;
    padding: 0 10px;
}

#checkout-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

#checkout-form input[type="text"],
#checkout-form input[type="email"],
#checkout-form input[type="tel"],
#checkout-form textarea,
#checkout-form select {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background-color: #fcfcfc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#checkout-form input:focus,
#checkout-form textarea:focus,
#checkout-form select:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
}

#checkout-form textarea {
    resize: vertical;
}

#checkout-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: #fff;
    cursor: pointer;
}

#checkout-form select:disabled {
    background-color: #f8f8f8;
    cursor: not-allowed;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
}

.radio-label input {
    margin-right: 10px;
}

.submit-button {
    width: 100%;
    background-color: #333;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

.submit-button:hover {
    background-color: #555;
}

#success-message a {
    color: #333;
    font-weight: 500;
}
