/* ===================================================================================

* Theme Name: Lexend Child
* Theme URI: https://lexend.themegenix.com/
* Author: ThemeGenix
* Author URI: https://themeforest.net/user/themegenix/
* Description: Lexend - Software, SaaS & Startup WordPress Theme
* Version: 1.3
* Template: lexend
* License: GNU General Public License version 3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
* Tags: one-column, right-sidebar, left-sidebar, custom-menu, featured-images, post-formats, sticky-post, translation-ready

* We encourage you to create Child theme for any modifications you will want to do.

* Why use Child theme?

* Because of future updates we may provide for this theme that will overwrite your
* modifications and all your custom work.

* If you are not familiar with Child Themes, you can read about it here:
* http://codex.wordpress.org/Child_Themes
* http://wp.tutsplus.com/tutorials/theme-development/child-themes-basics-and-creating-child-themes-in-wordpress/

====================================================================================== */

/* Enhanced Product Page Layout */
.single-product .woocommerce div.product {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 991px) {
    .single-product .woocommerce div.product {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.single-product .left-content {
    position: sticky;
    top: 2rem;
}

.single-product .right-content {
    min-height: 100vh;
}

/* Theme Statistics Section - Clean Horizontal Layout */
.theme-stats-wrapper {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.theme-stats-row {
    display: flex;
    width: 100%;
}

.stat-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 1rem;
    border-right: 1px solid #e9ecef;
}

.stat-block:last-child {
    border-right: none;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 16px;
    color: #212529;
}

/* Mobile layout */
@media (max-width: 768px) {
    .theme-stats-row {
        flex-direction: column;
    }
    
    .stat-block {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 1rem 1.25rem;
    }
    
    .stat-block:last-child {
        border-bottom: none;
    }
    
    .stat-label {
        margin-bottom: 0;
    }
}

/* Dark mode for theme stats */
.dark .theme-stats-wrapper {
    background: #1a1a1a;
    border-color: #404040;
}

.dark .stat-block {
    border-right-color: #404040;
}

.dark .stat-label {
    color: #adb5bd;
}

.dark .stat-value {
    color: #fff;
}

@media (max-width: 768px) {
    .dark .stat-block {
        border-bottom-color: #404040;
        border-right: none;
    }
}

.details-rating.shop-single-rating {
    display: none;
}

/* Single Product Page Improvements */
.single-product .product-details {
    padding: 2rem 0;
}

/* Product Meta (Taxonomies) Styling */
.single-product .product_meta {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}

/* Product Tabs Styling - Now positioned under taxonomies */
.single-product .woocommerce-tabs {
    margin-top: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.single-product .woocommerce-tabs .wc-tabs {
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}

.single-product .woocommerce-tabs .wc-tabs li {
    margin-right: 2rem;
    margin-bottom: 0;
}

.single-product .woocommerce-tabs .wc-tabs li a {
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    color: #666;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
}

.single-product .woocommerce-tabs .wc-tabs li.active a,
.single-product .woocommerce-tabs .wc-tabs li a:hover {
    background: #fff;
    color: #333;
    border-bottom: 2px solid #007cba;
}

.single-product .woocommerce-tabs .wc-tab {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0 8px 8px 8px;
    margin-top: -1px;
}

/* Product Title Spacing */
.single-product .product_title {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    line-height: 1.3;
}

/* Product Excerpt Spacing */
.single-product .woocommerce-product-details__short-description {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

/* Overall Product Summary Spacing */
.single-product .summary.entry-summary {
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* WooCommerce Breadcrumb Styling */
.woocommerce-breadcrumb-wrapper {
    margin-bottom: 2rem;
}

.woocommerce .woocommerce-breadcrumb {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

.woocommerce .woocommerce-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.woocommerce .woocommerce-breadcrumb .breadcrumb-separator {
    margin: 0 0.5rem;
    color: #999;
}

/* Dark mode adjustments */
.dark .woocommerce .woocommerce-breadcrumb,
.dark .woocommerce .woocommerce-breadcrumb a {
    color: #999;
}

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

/* Mobile adjustments */
@media (max-width: 768px) {
    .woocommerce-breadcrumb-wrapper {
        margin-bottom: 1.5rem;
    }
    
    .woocommerce .woocommerce-breadcrumb {
        font-size: 0.875rem;
    }
}

/* Product Breadcrumb Styles */
.product-breadcrumb {
    margin-bottom: 2rem;
}

.woocommerce-breadcrumb {
    color: #666;
    font-size: 14px;
}

.woocommerce-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.wd-breadcrumbs span.wd-delimiter {
    padding: 0 5px 0 5px;
    color: #555;
}

.product-breadcrumb.mb-4 {
    margin-bottom: 0 !important;
}

.woocommerce .woocommerce-breadcrumb {
    font-family: cursive;
}

.woocommerce div.product .product_title {
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 34px !important;
    line-height: 1.2 !important;
}

/* Product Image Hover Scroll Effect */
.woocommerce-product-gallery__image {
    position: relative;
    overflow: hidden;
    max-height: 500px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
}

.woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    transition: transform 15s ease-out;
    transform-origin: top;
    object-fit: cover;
}

.woocommerce-product-gallery__image:hover img {
    transform: translateY(max(-100%, calc(-100% + 500px)));
    /* Stop at the end of image or at container height, whichever is smaller */
}

/* Ensure wrapper maintains aspect ratio */
.woocommerce-product-gallery__wrapper {
    width: 100%;
}

.woocommerce div.product div.summary {
    min-height: 250px;
}

/* Shop Loop Product Image Hover Scroll Effect */
.lexend-product-main .featured-image {
    position: relative;
    overflow: hidden;
    max-height: 300px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
}

.lexend-product-main .featured-image img {
    width: 100%;
    height: auto;
    transition: transform 10s ease-out;
    transform-origin: top;
    object-fit: cover;
}

.lexend-product-main .featured-image:hover img {
    transform: translateY(max(-100%, calc(-100% + 300px)));
}

/* Ensure consistent height in grid */
.lexend-product-main {
    display: flex;
    flex-direction: column;
}

.panel.position-relative {
    flex: 1;
}


p {
     margin-bottom: 0px !important;
}

.mt-6 {
    margin-top: 0!important;
}