/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* ==========================================================================
   TURKISH PREMIUM E-COMMERCE DESIGN CUSTOMIZATIONS
   ========================================================================== */

/* 1. PRODUCT IMAGES GRID & CAROUSEL ALIGNMENT (1:1 Aspect Ratio) */
.product-grid-item .product-image-link,
.wd-product .product-image-link,
.products .product-image-link,
.owl-carousel .product-image-link,
.slider-type-product .product-image-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    aspect-ratio: 1 / 1 !important;
    background-color: #ffffff !important;
    overflow: hidden !important;
    position: relative !important;
    border-radius: 6px;
    border: 1px solid #f3f3f3 !important; /* Subtle border for clean modern grid */
}

.product-grid-item .product-image-link img,
.wd-product .product-image-link img,
.products .product-image-link img,
.owl-carousel .product-image-link img,
.slider-type-product .product-image-link img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Center and fit image completely without cropping caps/bottoms */
    padding: 10px !important;
    transition: transform 0.3s ease !important;
}

/* Hover Zoom Effect for Premium Aesthetic */
.product-grid-item:hover .product-image-link img,
.wd-product:hover .product-image-link img,
.products .product-grid-item:hover .product-image-link img {
    transform: scale(1.06) !important;
}

/* 2. PRODUCT TITLES ALIGNMENT (Consistent height across rows) */
.product-grid-item .wd-entities-title,
.product-grid-item .product-title,
.wd-product .wd-entities-title,
.products .wd-entities-title,
.products .product-title,
.owl-carousel .wd-entities-title {
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    color: #1e1e1e !important;
    text-align: center !important;
    margin-top: 12px !important;
    margin-bottom: 8px !important;
    min-height: 42px !important; /* Force title boxes to be identical height for grid alignment */
    max-height: 42px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 3. LOGO BLACK & WHITE COLOR SCHEME ALIGNMENT */
.wd-logo img,
.site-logo img,
.header-logo img {
    filter: grayscale(100%) contrast(1.1) !important; /* Grayscale black/white styling matching pages */
    transition: filter 0.3s ease !important;
}

.wd-logo img:hover,
.site-logo img:hover {
    filter: grayscale(0%) !important; /* Subtle interactive behavior */
}

/* 4. SINGLE PRODUCT PAGE PREMIUM TYPOGRAPHY AND READABILITY */
.single-product .product_title {
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    line-height: 1.3 !important;
    margin-bottom: 15px !important;
    letter-spacing: -0.5px !important;
}

/* Single product pricing */
.single-product .price,
.single-product p.price {
    font-size: 26px !important;
    font-weight: 600 !important;
    color: #03a9f4 !important; /* Premium brand accent color */
    margin-bottom: 20px !important;
}

/* Tab descriptions and body texts */
.single-product .entry-content,
.single-product .woocommerce-product-details__short-description,
.single-product .tab-content,
.single-product .wc-tab {
    font-family: 'Hind', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: #3f3f3f !important;
    max-width: 800px !important; /* Optimal line-length for reading */
}

/* Make headings inside description stand out professionally */
.single-product .entry-content h2,
.single-product .entry-content h3,
.single-product .entry-content h4,
.single-product .tab-content h2,
.single-product .tab-content h3 {
    font-family: 'Ubuntu', sans-serif !important;
    color: #111111 !important;
    font-weight: 600 !important;
    margin-top: 1.6em !important;
    margin-bottom: 0.6em !important;
    line-height: 1.35 !important;
}

.single-product .entry-content p,
.single-product .woocommerce-product-details__short-description p {
    margin-bottom: 1.25em !important;
}

/* Premium styling for WooCommerce tabs navigation */
.single-product .wd-nav-tabs .nav-link-text {
    font-family: 'Ubuntu', sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Button enhancements */
.product-grid-item .add_to_cart_button,
.product-grid-item .wd-add-btn a,
.wd-product .wd-add-btn a,
.single-product .single_add_to_cart_button {
    border-radius: 30px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    font-size: 12px !important;
    transition: all 0.25s ease !important;
}
