/* Global styling for the product page */
.woocommerce-page .site-content {
    background: #f4f4f9; /* Light, neutral background for a clean, modern look */
    padding: 20px; /* Adjusted padding for smaller screens */
    font-family: 'Arial', sans-serif;
}

/* Container for product details */
.woocommerce-page .single-product .product {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Reduced gap for smaller screens */
    background: #ffffff; /* White background for the product container */
    padding: 20px; /* Reduced padding for smaller screens */
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.woocommerce-page .single-product .product:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Styling for product image */
.woocommerce-page .woocommerce-product-gallery {
    flex: 1;
    max-width: 100%;
    margin-bottom: 20px; /* Added margin for better spacing on small screens */
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.woocommerce-page .woocommerce-product-gallery img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce-page .woocommerce-product-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Styling for product summary */
.woocommerce-page .summary {
    flex: 1;
    max-width: 100%;
    padding: 15px; /* Reduced padding for smaller screens */
}

.woocommerce-page .product_title {
    font-size: 1.8rem; /* Further reduced font size for better readability on mobile */
    font-weight: 700;
    color: #333333;
    margin-bottom: 10px;
    border-bottom: 2px solid #4a90e2; /* Blue accent color */
    padding-bottom: 8px;
    transition: color 0.3s ease;
}

.woocommerce-page .product_title:hover {
    color: #1c5aa4; /* Darker blue on hover */
}

.woocommerce-page .price {
  
    font-weight: 600;
    margin-bottom: 15px; /* Reduced margin for mobile */
}

.woocommerce-page .woocommerce-product-details__short-description {
    font-size: 1rem; /* Reduced font size for mobile */
    color: #666666;
    line-height: 1.6;
    margin-bottom: 15px; /* Reduced margin for mobile */
    padding: 10px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Add-to-cart button styling */
.woocommerce-page .single_add_to_cart_button {
    background: #4a90e2; /* Blue color */
    color: #ffffff;
    padding: 12px 24px; /* Adjusted padding for mobile */
    border: none;
    border-radius: 8px;
    font-size: 1rem; /* Reduced font size for mobile */
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.woocommerce-page .single_add_to_cart_button:hover {
    background: #357abd; /* Darker blue */
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Tabs and related products styling */
.woocommerce-page .woocommerce-tabs {
    margin-top: 20px; /* Reduced margin for mobile */
    padding: 15px; /* Reduced padding for mobile */
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.woocommerce-page .related.products {
    margin-top: 40px;
}

.woocommerce-page .related.products h2 {
    font-size: 1.8rem; /* Adjusted font size for mobile */
    font-weight: 700;
    color: #333333;
    margin-bottom: 15px; /* Reduced margin for mobile */
    border-bottom: 2px solid #4a90e2; /* Blue accent color */
    padding-bottom: 8px;
}

/* Responsive design for tablets */
@media only screen and (max-width: 1024px) {
    .woocommerce-page .single-product .product {
        flex-direction: column;
        padding: 20px;
    }
    .woocommerce-page .woocommerce-product-gallery, 
    .woocommerce-page .summary {
        max-width: 100%;
    }
}

/* Responsive design for mobile devices */
@media only screen and (max-width: 768px) {
    .woocommerce-page .single-product .product {
        flex-direction: column;
    }
    .woocommerce-page .woocommerce-product-gallery, 
    .woocommerce-page .summary {
        max-width: 100%;
    }
}



/* Global styling for the cart page */
.woocommerce-page .cart-page {
    background: #f9f9f9; /* Slightly lighter background for a modern feel */
    padding: 20px;
    font-family: 'Arial', sans-serif;
}

/* Cart container */
.woocommerce-page .woocommerce-cart-form {
    background: #ffffff; /* White background for cart container */
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.woocommerce-page .woocommerce-cart-form:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Cart table styling */
.woocommerce-page .shop_table.cart {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px; /* Space between table and other elements */
}

.woocommerce-page .shop_table.cart thead th {
    
    padding: 15px;
    font-size: 1.1rem;
    text-align: left;
    border-bottom: 2px solid #e0e0e0; /* Separator line */
}

.woocommerce-page .shop_table.cart tbody td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1rem;
    color: #333333;
}

.woocommerce-page .shop_table.cart tbody tr:hover {
    background: #f1f1f1; /* Slightly darker hover effect */
}

.woocommerce-page .shop_table.cart .product-name {
    font-weight: 600;
    color: #333333;
}

.woocommerce-page .shop_table.cart .product-price,
.woocommerce-page .shop_table.cart .product-subtotal {
    font-weight: 600;
}

/* Cart totals section */
.woocommerce-page .cart_totals {
    background: #ffffff; /* White background for totals section */
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.woocommerce-page .cart_totals table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-page .cart_totals th,
.woocommerce-page .cart_totals td {
    padding: 12px;
    font-size: 1rem;
    color: #333333;
}

.woocommerce-page .cart_totals .order-total {
    font-weight: 700;
    color: #333333; /* Keep color consistent with other text */
}

/* Add-to-cart button styling on cart page */
.woocommerce-page .cart_totals .button {
    background: #4a90e2; /* Blue color for button */
    color: #ffffff;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.woocommerce-page .cart_totals .button:hover {
    background: #357abd; /* Darker blue on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive design for tablets */
@media only screen and (max-width: 1024px) {
    .woocommerce-page .cart-page {
        padding: 15px; /* Adjusted padding for tablets */
    }

    .woocommerce-page .woocommerce-cart-form,
    .woocommerce-page .cart_totals {
        padding: 15px; /* Reduced padding for tablets */
    }

    .woocommerce-page .shop_table.cart thead th,
    .woocommerce-page .cart_totals th {
        font-size: 1.1rem; /* Adjusted font size for headers */
    }

    .woocommerce-page .shop_table.cart tbody td,
    .woocommerce-page .cart_totals td {
        font-size: 0.9rem; /* Adjusted font size for content */
    }
}

/* Responsive design for mobile devices */
@media only screen and (max-width: 768px) {
    .woocommerce-page .cart-page {
        padding: 10px; /* Further reduced padding for mobile */
    }

    .woocommerce-page .woocommerce-cart-form,
    .woocommerce-page .cart_totals {
        padding: 10px; /* Further reduced padding for mobile */
    }

    .woocommerce-page .shop_table.cart thead th,
    .woocommerce-page .cart_totals th {
        font-size: 1rem; /* Further reduced font size for headers */
    }

    .woocommerce-page .shop_table.cart tbody td,
    .woocommerce-page .cart_totals td {
        font-size: 0.8rem; /* Further reduced font size for content */
    }

    .woocommerce-page .shop_table.cart {
        border-collapse: separate; /* Adjust table layout for mobile */
        border-spacing: 0;
    }
}



/* Global styling for the checkout page */
.woocommerce-page .checkout-page {
    background: #f4f4f4; /* Subtle background for a refined look */
    padding: 20px;
    font-family: 'Arial', sans-serif;
}

/* Checkout container */
.woocommerce-page .woocommerce-checkout {
    background: #ffffff; /* White background for checkout container */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    position: relative;
}

/* Section headings */
.woocommerce-page .woocommerce-checkout h3 {
    font-size: 1.4rem;
    color: #2c3e50; /* Darker text color for better readability */
    border-bottom: 3px solid #3498db; /* Blue underline for section titles */
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Form rows */
.woocommerce-page .woocommerce-checkout .form-row {
    margin-bottom: 25px;
}

.woocommerce-page .woocommerce-checkout .form-row label {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 8px;
}

/* Input fields and select boxes */
.woocommerce-page .woocommerce-checkout .form-row input, 
.woocommerce-page .woocommerce-checkout .form-row select {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #bdc3c7;
    font-size: 1rem;
    color: #2c3e50;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce-page .woocommerce-checkout .form-row input:focus,
.woocommerce-page .woocommerce-checkout .form-row select:focus {
    border-color: #3498db; /* Blue border on focus */
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
    outline: none;
}

/* Order review section */
.woocommerce-page .woocommerce-checkout .order_review {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.woocommerce-page .woocommerce-checkout .order_review h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.woocommerce-page .woocommerce-checkout .order_review table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-page .woocommerce-checkout .order_review th,
.woocommerce-page .woocommerce-checkout .order_review td {
    padding: 12px;
    font-size: 1rem;
    color: #2c3e50;
    border-bottom: 1px solid #ecf0f1;
}

.woocommerce-page .woocommerce-checkout .order_review tr:nth-child(even) {
    background: #f9f9f9;
}

.woocommerce-page .woocommerce-checkout .order_review .order-total {
    font-weight: 700;
    color: #2c3e50;
}

/* Place order button styling */
.woocommerce-page .woocommerce-checkout .place-order button {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.woocommerce-page .woocommerce-checkout .place-order button:hover {
    background: #2980b9; /* Darker blue on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive design for tablets */
@media only screen and (max-width: 1024px) {
    .woocommerce-page .checkout-page {
        padding: 15px; /* Adjusted padding for tablets */
    }

    .woocommerce-page .woocommerce-checkout {
        padding: 25px; /* Reduced padding for tablets */
    }

    .woocommerce-page .woocommerce-checkout h3 {
        font-size: 1.3rem; /* Adjusted font size for section titles */
    }

    .woocommerce-page .woocommerce-checkout .form-row input,
    .woocommerce-page .woocommerce-checkout .form-row select {
        font-size: 0.9rem; /* Adjusted font size for form elements */
    }

    .woocommerce-page .woocommerce-checkout .order_review th,
    .woocommerce-page .woocommerce-checkout .order_review td {
        font-size: 0.9rem; /* Adjusted font size for order review */
    }
}

/* Responsive design for mobile devices */
@media only screen and (max-width: 768px) {
    .woocommerce-page .checkout-page {
        padding: 10px; /* Further reduced padding for mobile */
    }

    .woocommerce-page .woocommerce-checkout {
        padding: 15px; /* Further reduced padding for mobile */
    }

    .woocommerce-page .woocommerce-checkout h3 {
        font-size: 1.2rem; /* Further reduced font size for section titles */
    }

    .woocommerce-page .woocommerce-checkout .form-row input,
    .woocommerce-page .woocommerce-checkout .form-row select {
        font-size: 0.8rem; /* Further reduced font size for form elements */
    }

    .woocommerce-page .woocommerce-checkout .order_review th,
    .woocommerce-page .woocommerce-checkout .order_review td {
        font-size: 0.8rem; /* Further reduced font size for order review */
    }
}




/* Global styling for the My Account page */
.woocommerce-page .my-account-page {
    background: #eceff1; /* Light grey background for a soft look */
    padding: 20px;
    font-family: 'Roboto', sans-serif; /* Modern font */
}

/* My Account container */
.woocommerce-page .woocommerce-MyAccount-content {
    background: #ffffff; /* White background for account container */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    position: relative;
}

/* Section headings */
.woocommerce-page .woocommerce-MyAccount-content h2 {
    font-size: 1.6rem;
    color: #333333; /* Darker text color for readability */
    border-bottom: 3px solid #009688; /* Teal underline for section titles */
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Account navigation */
.woocommerce-page .woocommerce-MyAccount-navigation {
    background: #ffffff; /* White background for navigation */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.woocommerce-page .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-page .woocommerce-MyAccount-navigation li {
    margin-bottom: 15px;
}

.woocommerce-page .woocommerce-MyAccount-navigation a {
    color: #009688; /* Teal color for navigation links */
    font-weight: 600;
    text-decoration: none;
    display: block;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
}

.woocommerce-page .woocommerce-MyAccount-navigation a:hover {
    background: #009688; /* Teal background on hover */
    color: #ffffff; /* White text color on hover */
}

/* Account details and orders */
.woocommerce-page .woocommerce-MyAccount-content .woocommerce-MyAccount-orders,
.woocommerce-page .woocommerce-MyAccount-content .woocommerce-MyAccount-details {
    margin-bottom: 30px;
}

.woocommerce-page .woocommerce-MyAccount-content table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-page .woocommerce-MyAccount-content th,
.woocommerce-page .woocommerce-MyAccount-content td {
    padding: 14px;
    font-size: 1rem;
    color: #555555;
    border-bottom: 1px solid #e0e0e0;
}

.woocommerce-page .woocommerce-MyAccount-content th {
    background: #009688; /* Teal background for table headers */
    color: #ffffff;
    text-align: left;
}

.woocommerce-page .woocommerce-MyAccount-content tr:nth-child(even) {
    background: #f5f5f5; /* Alternating row color for better readability */
}

/* Account form styling */
.woocommerce-page .woocommerce-MyAccount-content .account-form {
    background: #ffffff; /* White background for form */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.woocommerce-page .woocommerce-MyAccount-content .account-form label {
    font-weight: 600;
    color: #333333;
    display: block;
    margin-bottom: 10px;
}

.woocommerce-page .woocommerce-MyAccount-content .account-form input,
.woocommerce-page .woocommerce-MyAccount-content .account-form select {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #b0bec5;
    font-size: 1rem;
    color: #333333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce-page .woocommerce-MyAccount-content .account-form input:focus,
.woocommerce-page .woocommerce-MyAccount-content .account-form select:focus {
    border-color: #009688; /* Teal border on focus */
    box-shadow: 0 0 5px rgba(0, 150, 136, 0.3);
    outline: none;
}

/* Button styling */
.woocommerce-page .woocommerce-MyAccount-content .account-form .button {
    background: #009688; /* Teal background for buttons */
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.woocommerce-page .woocommerce-MyAccount-content .account-form .button:hover {
    background: #00796b; /* Darker teal on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive design for tablets */
@media only screen and (max-width: 1024px) {
    .woocommerce-page .my-account-page {
        padding: 15px; /* Adjusted padding for tablets */
    }

    .woocommerce-page .woocommerce-MyAccount-content {
        padding: 20px; /* Reduced padding for tablets */
    }

    .woocommerce-page .woocommerce-MyAccount-content h2 {
        font-size: 1.4rem; /* Adjusted font size for section titles */
    }

    .woocommerce-page .woocommerce-MyAccount-content table {
        font-size: 0.9rem; /* Adjusted font size for table content */
    }
}

/* Responsive design for mobile devices */
@media only screen and (max-width: 768px) {
    .woocommerce-page .my-account-page {
        padding: 10px; /* Further reduced padding for mobile */
    }

    .woocommerce-page .woocommerce-MyAccount-content {
        padding: 15px; /* Further reduced padding for mobile */
    }

    .woocommerce-page .woocommerce-MyAccount-content h2 {
        font-size: 1.2rem; /* Further reduced font size for section titles */
    }

    .woocommerce-page .woocommerce-MyAccount-content table {
        font-size: 0.8rem; /* Further reduced font size for table content */
    }
}


/* Toggle button style */
.sidebar-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    background-color: #333;
    color: #fff;
    padding: 10px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    z-index: 1000;
    display: none; /* Hidden by default */
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }

    /* Hide the sidebar by default */
    .woocommerce .sidebar {
        display: none;
    }

    /* When the sidebar is active */
    .sidebar-active .woocommerce .sidebar {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        height: 100%;
        background-color: #fff;
        z-index: 999;
        overflow-y: auto;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    }

    /* When the sidebar is active, push content */
    .sidebar-active .woocommerce .site-content {
        margin-left: 250px;
    }
}
