/*
 Theme Name:   OceanWP Child
 Theme URI:    https://oceanwp.org/
 Description:  OceanWP Child Theme
 Author:       Ahmed
 Template:     oceanwp
 Version:      1.0
 Text Domain:  oceanwp-child
*/

/* Global Font Size Increase */
body {
    font-size: 18px; /* Base font size increased */
}
/* Target the divider separator */
.elementor-divider-separator {
    border-top: 2px solid #C01C33; /* Change color and thickness */
    width: 50%; /* Adjust width */
    margin: 0 auto; /* Center the divider */
}
.woocommerce-loop-category__title{
        font-size: 1.3em !important;
}

/* *************    subcategories    ************** */

/* Main container for subcategories */
.woocommerce-subcategories {
    margin-bottom: 40px;
}

/* Heading for subcategories */
.woocommerce-subcategories h2 {
    font-size: 28px; /* Increased */
    margin-bottom: 20px;
    text-align: center;
}

/* Container for the subcategory list */
.woocommerce-subcategories ul.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    list-style: none;
    padding: 0;
    margin: -10px;
}

/* Individual subcategory item */
.woocommerce-subcategories ul.products li.product-category {
    flex: 0 1 20%;
    text-align: center;
    box-sizing: border-box;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for subcategory items */
.woocommerce-subcategories ul.products li.product-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Link inside subcategory items */
.woocommerce-subcategories ul.products li.product-category a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Image inside subcategory items */
.woocommerce-subcategories ul.products li.product-category img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 8px;
}

/* Title inside subcategory items */
.woocommerce-subcategories ul.products li.product-category h3 {
    margin: 8px 0 0;
    font-size: 20px; /* Increased */
    color: #333;
}

/* Responsive Design for Tablets */
@media (max-width: 1024px) {
    .woocommerce-subcategories ul.products li.product-category {
        flex: 0 1 30%;
    }
}

/* Responsive Design for Phones */
@media (max-width: 768px) {
    .woocommerce-subcategories ul.products li.product-category {
        flex: 0 1 45%;
    }
}

/* Responsive Design for Small Phones */
@media (max-width: 480px) {
    .woocommerce-subcategories ul.products li.product-category {
        flex: 0 1 45%;
    }
}

/**********  content product (product card)    ************/
/* Products Section */
.woocommerce ul.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    list-style: none;
    padding: 0;
    margin: 0 -10px;
}

/* Default desktop view: 3 columns */
.woocommerce ul.products li.product {
    flex: 0 1 calc(33.33% - 20px);
    text-align: center;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    margin: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

/* Hover effect for product items */
.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Product Inner Container */
.woocommerce ul.products li.product .product-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* Ensure the container takes full height */

}


/* Clickable Image */
.woocommerce ul.products li.product .product-image-link {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    position: relative;
}

.woocommerce ul.products li.product .product-image-link img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Stock Status */
.woocommerce ul.products li.product .stock-status {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 14px; /* Increased */
    padding: 4px 8px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

.woocommerce ul.products li.product .stock-status.instock {
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

.woocommerce ul.products li.product .stock-status.outofstock {
    color: #c62828;
    border: 1px solid #c62828;
}

/* Wishlist Icon Container */
.woocommerce ul.products li.product .add-to-wishlist {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 1 !important;
}

/* Wishlist Icon Styles */
.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.tinvwl-product-in-list:before {
    content: "\e908" !important;
    font-size: 28px !important;
    color: #C01C33 !important;
}

.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.no-txt:before,
.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt:before {
    font-size: 28px !important;
    position: absolute !important;
    top: 25% !important;
    left: -13% !important;
    margin-right: 0 !important;
}

/* Tooltip */
.woocommerce ul.products li.product .add-to-wishlist .tinvwl-tooltip {
    display: none !important;
}

/* Product Title */
.woocommerce ul.products li.product .product-title {
    font-size: 20px; /* Increased */
    margin: 8px 0;
    color: #333;
}

/* Product Price */
.woocommerce ul.products li.product .product-price {
    font-size: 22px; /* Increased */
    color: #C01C33;
    margin: 8px 0;
}

/* Buttons Container */
.woocommerce ul.products li.product .product-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: auto; /* Push buttons to the bottom */
    padding-top: 10px; 
}

/* "Voir Le Produit" Button */
.woocommerce ul.products li.product .view-product-button {
    flex: 3;
    padding: 8px;
    background-color: #C01C33;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    text-align: center;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    font-size: 16px; /* Increased */
}

.woocommerce ul.products li.product .view-product-button:hover {
    background-color: #a0172b;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .add_to_cart_button {
    flex: 1;
    padding: 8px;
    background-color: #fff;
    color: #C01C33;
    border: 1px solid #C01C33;
    border-radius: 25px;
    text-align: center;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    margin-top: 0;
    font-size: 16px; /* Increased */
}

/* Make the cart icon bigger */
.woocommerce ul.products li.product .add_to_cart_button i {
    font-size: 20px; /* Increased */
}

.woocommerce ul.products li.product .add_to_cart_button:hover {
    background-color: #f0f0f0;
}

/* Make container bigger */
.container {
    width: 1250px;
    max-width: 95%;
    margin: 0 auto;
}

/* Make sidebar smaller and main content bigger */
.content-area {
    width: 74%;
}

.widget-area {
    width: 26%;
}

.woocommerce-product-gallery__trigger {
    z-index: 9 !important;
}

#menu-item-130 > ul {
    z-index: 10;
}

/* Single Product Page Styles */
.woocommerce-breadcrumb {
    font-size: 14px !important; /* Increased */
    margin-bottom: 10px !important;
}

.woocommerce div.product .product_title {
    font-size: 32px; /* Increased */
    margin-bottom: 15px;
}

.woocommerce div.product p.price {
    color: #C01C33;
    font-size: 28px; /* Increased */
    margin-bottom: 15px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    margin-bottom: 20px;
    font-size: 18px; /* Increased */
}

.woocommerce div.product .cart {
    margin-bottom: 20px;
}

.wishlist-button {
    margin-bottom: 20px;
}

.wishlist-button .tinvwl_add_to_wishlist_button {
    background-color: #C01C33;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-size: 16px; /* Increased */
}

.wishlist-button .tinvwl_add_to_wishlist_button:hover {
    background-color: #a0172b;
}

/* Add border to the short description */
.woocommerce div.product .woocommerce-product-details__short-description {
    margin-bottom: 20px;
    font-size: 18px; /* Increased */
    border: 3px solid #C01C33; /* Add a border */
    border-radius: 11px; /* Add border radius */
    padding-left: 6px; /* Add left padding */
}

/* Style the "Ajouter au panier" button */
.single_add_to_cart_button {
    background-color: #C01C33 !important;
    color: #fff !important;
    border-radius: 25px !important;
    padding: 10px 20px !important;
    font-size: 18px !important; /* Increased */
    border: none !important;
    transition: background-color 0.3s ease;
}

.single_add_to_cart_button:hover {
    background-color: #a0172b !important;
}

/* Style the quantity input */
.quantity input.qty {
    border-radius: 5px !important;
    padding: 10px !important;
    text-align: center !important;
    border: 1px solid #e0e0e0 !important;
    font-size: 16px !important; /* Increased */
    width: 80px !important;
    margin-right: 10px !important;
}

/* Style the sale badge */
span.onsale {
    background-color: #C01C33 !important;
}

/* Cart Page Layout */
.cart-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cart-left-column {
    flex: 2;
}

.cart-right-column {
    flex: 1;
}

/* Cart Table Styling */
.woocommerce-cart table.cart {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.woocommerce-cart table.cart th,
.woocommerce-cart table.cart td {
    padding: 15px;
    border: 1px solid #e0e0e0;
    text-align: center;
    font-size: 16px; /* Increased */
}

.woocommerce-cart table.cart th {
    background-color: #f9f9f9;
    font-weight: bold;
}

.woocommerce-cart table.cart td.product-name a {
    color: #333;
    text-decoration: none;
}

.woocommerce-cart table.cart td.product-name a:hover {
    color: #C01C33;
}

.woocommerce-cart table.cart td.product-thumbnail img {
    width: 80px;
    height: auto;
    border-radius: 8px;
}

/* Quantity Input */
.woocommerce-cart table.cart .quantity input.qty {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px; /* Increased */
}

/* Buttons */
.woocommerce-cart .button {
    background-color: #C01C33;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 18px; /* Increased */
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.woocommerce-cart .button:hover {
    background-color: #a0172b;
}

/* Cart Totals */
.cart-collaterals {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
}

.cart-collaterals h2 {
    font-size: 28px; /* Increased */
    margin-bottom: 20px;
    color: #333;
}

#content > article > div > div > div.cart-container > div.cart-right-column > div > div {
    width: 100%;
}

/* Base button style */
a.checkout-button.button.alt.wc-forward {
    background-color: #C01C33;
    font-size: 18px; /* Increased */
}

/* Hover effect */
a.checkout-button.button.alt.wc-forward:hover {
    background-color: #cc0000;
}

/* Hide the "Update Cart" button */
#last-ligne-cart-btn {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-container {
        flex-direction: column;
    }

    .cart-left-column,
    .cart-right-column {
        flex: 1;
    }

    .woocommerce-cart table.cart td.product-thumbnail img {
        width: 60px;
    }
}

/* Tablet view: 2 columns */
@media (max-width: 1024px) {
    .woocommerce ul.products li.product {
        flex: 0 1 calc(50% - 20px);
    }
}

/* Mobile view: 2 columns */
@media (max-width: 768px) {
    .woocommerce ul.products li.product {
        flex: 0 1 calc(50% - 20px);
    }

    /* Stack buttons vertically on mobile */
    .woocommerce ul.products li.product .product-buttons {
        flex-direction: column;
    }

    .woocommerce ul.products li.product .view-product-button,
    .woocommerce ul.products li.product .add_to_cart_button {
        flex: 1;
        width: 100%;
    }
}

/* Small phone view: 2 columns */
@media (max-width: 480px) {
    .woocommerce ul.products li.product {
        flex: 0 1 calc(50% - 20px);
    }
}

/* Checkout Page Layout */
.checkout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
}

.checkout-column {
    flex: 1;
    min-width: 300px;
}

.checkout-column-left {
    flex: 2;
}

.checkout-column-right {
    flex: 1;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Form Fields Layout */
#customer_details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
    width: 100%;
}

/* Inline First Name and Last Name Fields */
.form-row.form-row-first,
.form-row.form-row-last {
    display: inline-block;
    width: 48%;
    vertical-align: top;
}

.form-row.form-row-first {
    margin-right: 4%;
}

/* Ensure other fields remain in a single column */
.form-row.form-row-wide {
    width: 100%;
    display: block;
}

/* Payment Section Colors */
#payment {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
}

#payment .payment_box {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
}

/* "Commander" Button Colors */
#payment .button.alt {
    background-color: #C01C33;
    color: #fff;
    font-size: 18px; /* Increased */
}

#payment .button.alt:hover {
    background-color: #a0172b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .checkout-container {
        flex-direction: column;
    }

    .checkout-column-left,
    .checkout-column-right {
        flex: 1;
    }

    /* Stack First Name and Last Name Fields on Mobile */
    .form-row.form-row-first,
    .form-row.form-row-last {
        width: 100%;
        display: block;
        margin-right: 0;
    }
}



/* Reset WooCommerce My Account default styles */
.woocommerce-account .woocommerce-MyAccount-navigation {
    float: none !important; /* Remove any floats */
}
.woocommerce-MyAccount-navigation nav {
    width:100% !important;
}
.woocommerce-account .woocommerce-MyAccount-content{
    float:none !important;
    width:80%  !important;
}

.content-left-sidebar .content-area{
padding-left:0;
}

.woocommerce-MyAccount-navigation ul {
    float: none !important; /* Remove floats from the navigation list */
}

/* Main container for My Account page */
.myaccount-container {
    display: flex;
    flex-direction: row; /* Content on the left, navigation on the right */
    justify-content: space-between;
    gap: 40px; /* Space between content and navigation */
    padding: 10px; /* Add padding for spacing */
    max-width: 1200px; /* Limit the maximum width of the container */
    margin: 0 auto; /* Center the container */
}

/* Content container (left) */
.woocommerce-MyAccount-content {
    width: 70%; /* Adjust width as needed */
    order: 1; /* Ensure content is on the left */
}

/* Navigation container (right) */
.woocommerce-MyAccount-navigation {
    width: 25%; /* Adjust width as needed */
    order: 2; /* Ensure navigation is on the right */
}

/* Style the navigation menu */
.woocommerce-MyAccount-navigation ul {
    list-style: none; /* Remove bullet points */
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 10px; /* Space between menu items */
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 10px;
    background-color: #f8f9fa; /* Background color for menu items */
    color: #333; /* Text color */
    text-decoration: none;
    border-radius: 4px; /* Rounded corners */
    transition: background-color 0.3s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #e9ecef; /* Hover background color */
}

.woocommerce button.button.alt {
    background-color:#C01C33 ;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .myaccount-container {
        flex-direction: column-reverse; /* Stack content and navigation vertically on small screens */
        gap: 20px; /* Reduce gap for smaller screens */
    }

    .woocommerce-MyAccount-content,
    .woocommerce-MyAccount-navigation {
        width: 100%; /* Full width on small screens */
    }

    .woocommerce-MyAccount-navigation ul li {
        margin-bottom: 5px; /* Reduce space between menu items */
    }
}