/*
Theme Name: Single Product Theme
Author: Your Name
Description: A custom theme to showcase a single WooCommerce product.
Version: 1.0
*/

body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

.navbar {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.navbar img {
    height: 60px;
    margin: 0 auto;
    display: block;
}

.product-details .product-images {
    position: relative;
}

.product-details .product-images img {
    max-width: 100%;
    border-radius: 10px;
}

.woocommerce-product-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.woocommerce-product-gallery__wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.woocommerce-product-gallery__image {
    margin: 10px;
    width: 100%;
    max-width: 300px;
}

.product-info h1 {
    margin-bottom: 20px;
    color: #333;
}

.product-info p {
    margin-bottom: 20px;
    color: #555;
}

.price, .sale-price {
    margin-bottom: 20px;
}

.price-badge {
    display: inline-block;
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 24px;
    font-weight: bold;
    max-width: 100%;
}

.normal-price {
    background-color: #ffc107;
    color: #333;
}

.sale-price .price-badge {
    background-color: #dc3545;
    color: #fff;
}

.strikethrough {
    text-decoration: line-through;
    color: #888;
}

.buy-now {
    background-color: #007bff;
    color: white;
    padding: 20px 40px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.buy-now:hover {
    background-color: #0056b3;
}

.full-description {
    width: 100%;
    text-align: left;
    margin-top: 40px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.full-description h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.full-description p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

/* Apply Bootstrap styling to WooCommerce checkout fields */
.woocommerce form .form-row .input-text,
.woocommerce form .form-row input[type="email"],
.woocommerce form .form-row input[type="text"],
.woocommerce form .form-row input[type="password"],
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
    width: 100%;
    display: block;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* Align labels and inputs properly */
.woocommerce form .form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Style the order button */
.woocommerce .woocommerce-checkout-review-order .button,
.woocommerce .checkout_coupon .button,
.woocommerce button.button.alt {
    background-color: #007bff;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.woocommerce .woocommerce-checkout-review-order .button:hover,
.woocommerce .checkout_coupon .button:hover,
.woocommerce button.button.alt:hover {
    background-color: #0056b3;
}

/* Adjust margins and padding for a cleaner layout */
.woocommerce form .form-row {
    margin-bottom: 15px;
}

.woocommerce form .form-row-wide {
    width: 100%;
}

.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
    width: 48%;
    float: left;
}

.woocommerce form .form-row-first {
    margin-right: 4%;
}

/* Clearfix for floating elements */
.woocommerce form .form-row:after {
    content: "";
    display: table;
    clear: both;
}

/* Ensure proper layout for payment options */
.woocommerce-checkout-payment {
    margin-top: 30px;
}

.woocommerce-checkout-payment ul.payment_methods {
    display: flex;
    flex-direction: column;
}

.woocommerce-checkout-payment ul.payment_methods li {
    margin-bottom: 15px;
}
@media (max-width: 768px) {
    .product-details {
        flex-direction: column;
        align-items: center;
    }

    .product-images,
    .product-info {
        margin-right: 0;
        max-width: 100%;
    }

    .product-info {
        text-align: center;
    }

    .product-info h1 {
        font-size: 28px;
    }

    .full-description {
        text-align: center;
    }

    .full-description h2 {
        font-size: 24px;
    }
}
