 
/* --- WooCommerce Breadcrumb & Titles --- */
.woocommerce-breadcrumb {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;

    background: #f9f9f9;
  padding: 10px !important;
  border-radius: 10px;


}

.woocommerce-breadcrumb a {
    color: #6c757d;
    text-decoration: none;
    transition: color .2s ease;
}

.woocommerce-breadcrumb a:hover {
    color: #000;
}

.woocommerce-products-header__title {
    font-size: 36px;
    font-weight: 600;
    color: #222;
    margin: 0;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .woocommerce-products-header__title {
        font-size: 28px;
    }
    .woocommerce-breadcrumb {
        font-size: 13px;
    }
}

/* --- Shop & Archive Components --- */
.subcategory-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.subcategory-badge {
    padding: 9px 18px;
    background: #ece8fb;
    color: #4d3389;
    font-size: 15px;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    border: 1px solid #d3c8f8;
    transition: .2s;
}

.subcategory-badge:hover {
    background: #6c41c9;
    border-color: #6c41c9;
    color: #fff;
}

.product-grid-item {
    text-align: center;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.product-grid-item img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-grid-item:hover img {
    transform: scale(1.05);
}

/* --- Product Price Styling --- */
.price {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 10px;
}

.price del {
    font-size: 18px;
    color: #888;
    margin-right: 8px;
}

.price ins {
    font-size: 22px;
    font-weight: bold;
    color: var(--c-grey);
    text-decoration: none;
}

.woocommerce-Price-amount {
    font-weight: 300;
    font-size: 20px;
}

/* --- Single Product Page --- */
.product-page {
    display: flex;
    gap: 20px;
}

.product-details {
    flex: 1;
}

.sticky-slider {
    flex: 1;
    position: sticky;
    top: 10px;
    height: fit-content;
}

.out-of-stock-message {
    font-size: 14px;
    font-weight: bold;
    color: #ff0000;
}

/* --- Related Products --- */
.related-products .products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.related-products .product {
    flex: 1 1 calc(25% - 1.5rem);
    max-width: calc(25% - 1.5rem);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.related-products .product:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* --- Cart & Checkout --- */
.woocommerce-cart-form table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-cart-form th, .woocommerce-cart-form td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.cart-count {
    background: #e74c3c;
    color: white;
    font-size: 12px;
    border-radius: 50%;
    padding: 0px 7px;
    position: absolute;
    top: -8px;
    right: -13px;
}

/* --- My Account Section --- */
.woocommerce-MyAccount {
    display: flex;
    gap: 20px;
}

.woocommerce-MyAccount-navigation {
    flex: 0 0 25%;
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
}

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

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    background: #edecec;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: var(--c-primary-dark);
    color: #fff;
}

.woocommerce-MyAccount-content {
    flex: 1;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

/* --- Forms & Inputs --- */
.woocommerce-EditAccountForm, .woocommerce-Address {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

input.input-text, select.input-text {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.single_add_to_cart_button {
    background-color: var(--c-grey);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}


.product-page {
    display: flex;
    flex-wrap: wrap; /* Allows stacking on mobile */
    gap: 40px;
    margin-bottom: 50px;
}

.sticky-slider, 
.product-details {
    flex: 1 1 400px; /* Forces side-by-side on desktop, stacked on mobile */
    min-width: 300px;
}


.main-image img {
    width: 100%;    /* Change from fixed height to responsive width */
    height: auto;   /* Maintain aspect ratio */
    border: 1px solid #ddd;
    margin-bottom: 20px;
    display: block;
}

.related-products .products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.related-products .product {
    flex: none; /* Remove the old flex rules */
    max-width: 100%;
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
}



.sticky-slider {
    position: sticky;
    top: 120px; /* Increase this to clear your site header height */
    height: fit-content;
}


.woocommerce-product-details__short-description {
    margin: 20px 0;
    line-height: 1.6;
    color: #555;
}

.product-details .cart {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}


/* 
PROPER W


Ensure the single product uses the full width of your container */

/* --- Breadcrumb Styling --- */
.woocommerce-breadcrumb {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
}

.woocommerce-breadcrumb a {
    color: #6c757d;
    text-decoration: none;
    transition: color .2s ease;
}

.woocommerce-breadcrumb a:hover {
    color: #000;
}

/* --- Page Title --- */
.woocommerce-products-header__title {
    font-size: 36px;
    font-weight: 600;
    color: #222;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .woocommerce-products-header__title {
        font-size: 28px;
    }
}




/* --- Product Card Container --- */
.product-card {
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    height: 100%; /* Ensures all cards in a row are equal height */
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* --- Image Styling --- */
.product-card img {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
    transition: transform 0.3s;
}

/* --- Title & Meta --- */
.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 10px 0;
    text-decoration: none;
    flex-grow: 1; /* Pushes price to the bottom */
}

.product-title a {
    color: #333;
    text-decoration: none;
}

/* --- Price Styling --- */
.price {
    font-size: 18px;
    font-weight: bold;
    color: var(--c-grey);
    margin-bottom: 15px;
}

.price del {
    font-size: 14px;
    color: #888;
    margin-right: 5px;
}

.price ins {
    text-decoration: none;
    color: #3a7e3c; /* Sale price color */
}




/* --- Add to Cart Button --- */
.add_to_cart_button, 
.product_type_simple, 
.product_type_variable {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--c-grey);
    color: #fff !important;
    font-size: 14px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
    border: none;
}

.add_to_cart_button:hover {
    background-color: #4f755b;
    color: #fff;
}

/* Fix for "View Cart" link that appears after adding */
.added_to_cart {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}



/* --- Pagination --- */
.pagination-product {
    text-align: center;
    margin: 40px 0;
}

.pagination-product ul {
    list-style: none;
    padding: 0;
    display: inline-flex;
}

.pagination-product .page-numbers {
    padding: 10px 18px;
    text-decoration: none;
    color: #555;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.pagination-product .page-numbers.current {
    background-color: #3a7e3c;
    color: #fff;
    border-color: #3a7e3c;
}

.pagination-product .page-numbers:hover:not(.current) {
    border-color: #3a7e3c;
    color: #3a7e3c;
}

/* --- Ordering/Sorting Dropdown --- */
.woocommerce-ordering {
    margin-bottom: 30px;
    float: right;
}

.woocommerce-ordering select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}




/* Fix the WooCommerce UL to work with Bootstrap Rows */
ul.products {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px; /* Matches Bootstrap row gutter */
    margin-right: -15px;
    padding: 0;
    list-style: none;
    width: 100%;
}

/* Ensure the LI behaves as a column */
ul.products li.product {
    list-style: none; 
    position: relative;
     
    border-radius: 8px;
    transition: all 0.3s ease;


}
 

 

/* Product Images */
.woocommerce-loop-product__link img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* Sale Badge */
span.onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
    z-index: 1;
}






/* Shop Top Bar (Results and Ordering) */
.woocommerce-result-count {
    float: left;
    margin: 20px 0;
    color: #777;
}

.woocommerce-ordering {
    float: right;
    margin: 20px 0;
}

.woocommerce-ordering select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

/* Clearfix for the top bar */
.hd-products-grid::after {
    content: "";
    display: table;
    clear: both;
}



 section h2{
    margin-bottom: 10px;
 }

/* Re-styling the Default WooCommerce Split */
@media (min-width: 768px) {
    /* Image Gallery */
    .single-product .images {
        width: 48% !important;
        float: left;
        margin-right: 4%;
    }
    
    /* Product Summary */
    .single-product .summary {
        width: 48% !important;
        float: right;
    }
}

/* Fix for invisible images */
.woocommerce-product-gallery {
    opacity: 1 !important;
}

/* Fix for Tab/Related overlap */
.woocommerce-tabs, .related.products {
    clear: both;
    padding-top: 40px;
}


 

/* Hover & Active States */
.subcategory-badge:hover {
    background: #222; /* Or your theme's primary color */
    color: #fff;
    border-color: #222;
    transform: translateY(-2px);
}

/* Optional: Subtle animation for the bar */
 


/* --- Container Alignment --- */
.woocommerce-ordering {
    margin: 20px 0 30px;
    display: flex;
    justify-content: flex-end; /* Aligns to the right */
}

/* --- Select Box Styling --- */
.woocommerce-ordering select.orderby {
    padding: 10px 15px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    appearance: none; /* Removes default browser arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%2024%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M7%2010l5%205%205-5z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding-right: 40px; /* Space for the custom arrow */
    min-width: 200px;
}

/* --- Hover & Focus States --- */
.woocommerce-ordering select.orderby:hover {
    border-color: #bbb;
    background-color: #f9f9f9;
}

.woocommerce-ordering select.orderby:focus {
    border-color: #222;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .woocommerce-ordering {
        justify-content: flex-start; /* Aligns to left on mobile */
        width: 100%;
    }
    
    .woocommerce-ordering select.orderby {
        width: 100%; /* Full width on mobile */
    }
}


/* --- WooCommerce Block Grid Container --- */
.wc-block-grid__products {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -15px !important; /* Gutter compensation */
    padding: 0;
    list-style: none;
}

/* --- Individual Product Item --- */
.wc-block-grid__product {
    padding: 0 15px 30px !important; /* Spacing between items */
    margin: 0 !important;
    box-sizing: border-box;
    text-align: center;
    list-style: none;
}

/* --- Product Inner Card --- */
.wc-block-grid__product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.wc-block-grid__product-link:hover {
    transform: translateY(-5px);
}

/* --- Product Image --- */
.wc-block-grid__product-image {
    margin-bottom: 15px !important;
    display: block;
}

.wc-block-grid__product-image img {
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.3s ease;
    width: 100%;
    height: auto;
}

.wc-block-grid__product:hover .wc-block-grid__product-image img {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* --- Product Title --- */
.wc-block-grid__product-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 10px 0 !important;
    line-height: 1.4 !important;
    color: #222 !important;
}

/* --- Price Styling --- */
.wc-block-grid__product-price {
    font-size: 16px !important;
    margin-bottom: 15px !important;
    color: #444;
}

.wc-block-grid__product-price ins {
    text-decoration: none;
    font-weight: bold;
    color: #27ae60; /* Success green for sale price */
    margin-left: 5px;
}

.wc-block-grid__product-price del {
    color: #999;
    font-size: 0.9em;
}

/* --- Add to Cart Button --- */
.wc-block-grid__product-add-to-cart .wp-block-add-to-cart-button {
    background-color: #222 !important; /* Match your theme color */
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    font-weight: 500 !important;
    transition: background 0.3s ease !important;
}

.wc-block-grid__product-add-to-cart .wp-block-add-to-cart-button:hover {
    background-color: #444 !important;
}

/* --- Responsive Grid (Forcing Bootstrap-style behavior) --- */

/* Mobile (1 Column) */
@media (max-width: 575px) {
    .wc-block-grid__product {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Tablet (2 Columns) */
@media (min-width: 576px) and (max-width: 991px) {
    .wc-block-grid__product {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* Desktop (4 Columns) */
@media (min-width: 992px) {
    .wc-block-grid__product {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}



/* --- Cart Page Layout --- */
.woocommerce-cart-form {
    margin-bottom: 50px;
}

.shop_table.cart {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.shop_table.cart thead {
    background-color: #f8f9fa;
}

.shop_table.cart th {
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    border-bottom: 2px solid #eee;
}

.shop_table.cart td {
    padding: 20px 15px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

/* Product Thumbnail */
.cart td.product-thumbnail img {
    width: 80px;
    height: auto;
    border-radius: 5px;
}

/* Product Name */
.cart td.product-name a {
    font-weight: 600;
    color: #222;
    text-decoration: none;
}

/* Remove Button */
.cart td.product-remove a {
    color: #e74c3c !important;
    font-size: 20px;
    text-decoration: none;
}

/* Quantity Input */
.cart td.product-quantity .quantity input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

/* Coupon & Update Button Row */
.cart .actions {
    padding: 20px !important;
    background: #fdfdfd;
}

.cart .coupon {
    float: left;
}

.cart .coupon input[type="text"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    width: 200px;
}

.cart .button {
    padding: 12px 25px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.cart .button[name="update_cart"] {
    background: #777;
    float: right;
}





/* --- Cart Totals Section --- */
.cart-collaterals {
    display: flex;
    justify-content: flex-end;
}

.cart_totals {
    width: 100%;
    max-width: 450px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.cart_totals h2 {
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 2px solid #222;
    display: inline-block;
    padding-bottom: 5px;
}

.shop_table_responsive tr th, 
.shop_table_responsive tr td {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.cart-subtotal td, 
.order-total td {
    text-align: right;
    font-weight: bold;
}

.order-total {
    font-size: 20px;
    color: #222;
}

/* Checkout Button */
.wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    background: #27ae60; /* Success Green */
    color: #fff !important;
    padding: 18px;
    font-size: 18px;
    border-radius: 8px;
    margin-top: 20px;
    text-decoration: none;
    transition: background 0.3s;
}

.wc-proceed-to-checkout .checkout-button:hover {
    background: #219150;
}





/* --- Responsive Cart (Mobile) --- */
@media (max-width: 768px) {
    /* Force table to behave like a list */
    table.shop_table_responsive thead {
        display: none;
    }

    table.shop_table_responsive tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #eee;
        padding: 10px;
        position: relative;
    }

    table.shop_table_responsive td {
        display: block;
        text-align: right !important;
        border: none !important;
        padding: 10px 5px !important;
    }

    table.shop_table_responsive td::before {
        content: attr(data-title);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }

    .cart .coupon {
        width: 100%;
        margin-bottom: 15px;
    }

    .cart .coupon input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
    }

    .cart .button[name="update_cart"] {
        width: 100%;
        float: none;
    }
}



.woocommerce ul.products li.product .button {
     text-align: center;
  margin-top: 1em;
  display: block;
  background: #222;
  color: white;
  width: 100%;
   
  line-height: 42px;
  font-size: 18px;
  font-weight: normal;
  padding: 0px;

}

 



 
 
/* Remove clear:both that Woo adds every few items which breaks rows */
ul.products li.first, 
ul.products li.last {
    clear: none !important;
}



 

ul.products li.product .woocommerce-LoopProduct-link:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Push the button/price to the bottom */
.woocommerce-loop-product__title {
    flex-grow: 1; 
    font-size: 16px;
    margin-bottom: 10px;
}



 

 

/* Responsive: 2 Columns on Tablet */
@media (max-width: 991px) {
    section.related.products ul.products li.product {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* Responsive: 1 Column on Mobile */
@media (max-width: 575px) {
    section.related.products ul.products li.product {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}





/* --- Single Product Layout Wrapper --- */
.single-product div.product {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
    position: relative;
}

/* 1. Left Side: Product Image/Gallery */
.single-product .woocommerce-product-gallery {
    flex: 0 0 calc(50% - 20px);
    max-width: 50%;
    opacity: 1 !important; /* Fixes the 'hidden' gallery issue */
}

.single-product .woocommerce-product-gallery img {
    border-radius: 8px;
    border: 1px solid #eee;
    width: 100%;
    height: auto;
}

/* 2. Right Side: Product Details */
.single-product .summary {
    flex: 0 0 calc(50% - 20px);
    max-width: 50%;
}

.product_title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.single-product .price {
    font-size: 24px;
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

/* --- Add to Cart Area --- */
.single-product form.cart {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 20px 0;
}

.single-product .quantity input {
    width: 60px;
    height: 45px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.single-product .single_add_to_cart_button {
    height: 45px;
    padding: 0 30px;
    background-color: #222;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.3s;
}

.single-product .single_add_to_cart_button:hover {
    background-color: #444;
}

/* --- Tabs & Related Section (Full Width) --- */
.woocommerce-tabs, 
section.related.products {
    flex: 0 0 100%;
    margin-top: 50px;
}

.wc-tabs {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    border-bottom: 1px solid #eee;
}

.wc-tabs li a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    color: #777;
    font-weight: 600;
}

.wc-tabs li.active a {
    color: #222;
    border-bottom: 2px solid #222;
}

/* --- Responsive Fix --- */
@media (max-width: 768px) {
    .single-product .woocommerce-product-gallery,
    .single-product .summary {
        flex: 0 0 100%;
        max-width: 100%;
    }
}



/* --- Single Product Layout --- */
.single-product div.product {
    display: flex;
    flex-wrap: wrap;
    gap: 5%; /* Provides professional whitespace between columns */
    margin-top: 40px;
    align-items: flex-start;
}

/* 1. Left Side: Image Gallery */
.single-product .woocommerce-product-gallery {
    flex: 0 0 45% !important;
    max-width: 45% !important;
    opacity: 1 !important; /* Forces visibility if JS is slow */
    margin: 0 !important;
}

.single-product .woocommerce-product-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

/* 2. Right Side: Product Details & Form */
.single-product .summary.entry-summary {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    margin: 0 !important;
}



/* --- Content Styling --- */
.single-product .product_title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #222;
}

.single-product .price {
    font-size: 24px;
    font-weight: 600;
    color: #c0392b; /* Or your brand color */
    margin-bottom: 25px;
    display: block;
}

/* --- Add to Cart Form --- */
.single-product form.cart {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    padding: 25px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.single-product .quantity input.qty {
    width: 170px;
    height: 48px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
}

.single-product .single_add_to_cart_button {
    height: 48px;
    padding: 0 40px;
    background-color: #222;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.single-product .single_add_to_cart_button:hover {
    background-color: #444;
}


@media (max-width: 991px) {
    .single-product div.product {
        flex-direction: column;
    }

    .single-product .woocommerce-product-gallery,
    .single-product .summary.entry-summary {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .single-product .product_title {
        font-size: 28px;
        margin-top: 20px;
    }
}





/* Toolbar Container */
.sunrise-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9f9f9; /* Light grey or your brand color */
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid #eee;
}

/* Result Count Text */
.woocommerce-result-count {
    margin: 0 !important;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ordering Dropdown Container */
.woocommerce-ordering {
    margin: 0 !important;
}

/* The actual Select Box */
.woocommerce-ordering select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 35px 8px 15px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    
    /* Custom Arrow */
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23333' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.woocommerce-ordering select:hover {
    border-color: #333; /* Darker on hover */
}

.woocommerce-ordering select:focus {
    border-color: #333;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sunrise-shop-toolbar {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        text-align: center;
    }
    
    .woocommerce-ordering select {
        width: 100%; /* Full width on mobile for easier tapping */
    }
}


@media (min-width: 769px) {
    .woocommerce-ordering {
        position: relative;
        display: flex;
        align-items: center;
    }

    .woocommerce-ordering::before {
        content: "Sort by:";
        font-size: 13px;
        font-weight: 600;
        margin-right: 10px;
        color: #888;
        text-transform: uppercase;
    }
}



/* Ensure the container allows 5 columns */
.woocommerce ul.products.columns-5 li.product, 
.woocommerce-page ul.products.columns-5 li.product {
    width: 17.6%; /* (100% - total margins) / 5 */
    margin-right: 3%;
    float: left;
    clear: none;
}

/* Remove margin from every 5th product to prevent breaking the row */
.woocommerce ul.products.columns-5 li.product:nth-child(5n),
.woocommerce-page ul.products.columns-5 li.product:nth-child(5n) {
    margin-right: 0;
}

/* Clearfix for every 6th product */
.woocommerce ul.products.columns-5 li.product:nth-child(5n+1),
.woocommerce-page ul.products.columns-5 li.product:nth-child(5n+1) {
    clear: both;
}


.my-custom-product-wrapper {
 
  border: 1px solid #f1f1f1;
  padding: 15px;
}

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{
    width: 25% !important;
    margin: 0 0 2.992em 0 !important;
    padding: 10px !important;
}
