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

/* --- Single Product Page: Compact & Clean Title (Above-the-Fold Optimization) --- */
.single-product .product_title,
.single-product h1.product_title,
h1.product_title.entry-title {
    font-size: 21px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    letter-spacing: -0.01em !important;
}

@media (max-width: 1024px) {
    .single-product .product_title,
    .single-product h1.product_title,
    h1.product_title.entry-title {
        font-size: 19px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }
}

@media (max-width: 768.98px) {
    .single-product .product_title,
    .single-product h1.product_title,
    h1.product_title.entry-title {
        font-size: 17.5px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }
}

/* --- Hide Author from Blog Posts (Cards, Grids & Single Posts) --- */
.wd-post-author,
.wd-meta-author,
.meta-author,
.wd-entry-meta .author,
.single-post .author-bio,
.single-post .wd-author-box,
.post-author-box {
    display: none !important;
}

/* ==========================================================================
   LARGE IMAGE VARIATION SWATCHES (Repairland Design System)
   ========================================================================== */

/* Single Product Page Swatches Container */
.single-product .wd-swatches-product,
.wd-swatches-single {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 10px 0 16px !important;
    max-height: 280px;
    overflow-y: auto;
    padding: 6px 2px;
}

/* Custom Scrollbar for products with 20+ variations */
.single-product .wd-swatches-product::-webkit-scrollbar {
    width: 6px;
}
.single-product .wd-swatches-product::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.single-product .wd-swatches-product::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.single-product .wd-swatches-product::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Large Swatch Card */
.single-product .wd-swatches-product .wd-swatch,
.wd-swatches-single .wd-swatch {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    border-radius: 8px !important;
    border: 2px solid #e2e8f0 !important;
    background-color: #ffffff !important;
    padding: 3px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

/* Swatch Inner Image */
.single-product .wd-swatches-product .wd-swatch img,
.single-product .wd-swatches-product .wd-swatch-bg img,
.wd-swatches-single .wd-swatch img,
.wd-swatches-single .wd-swatch .wd-swatch-bg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 5px !important;
    display: block !important;
}

/* Swatch Hover State */
.single-product .wd-swatches-product .wd-swatch:hover:not(.wd-disabled),
.wd-swatches-single .wd-swatch:hover:not(.wd-disabled) {
    border-color: #0088cc !important;
    transform: translateY(-2px) scale(1.06) !important;
    box-shadow: 0 6px 14px rgba(0, 136, 204, 0.2) !important;
    z-index: 2 !important;
}

/* Swatch Active State */
.single-product .wd-swatches-product .wd-swatch.active-swatch,
.single-product .wd-swatches-product .wd-swatch.wd-active,
.wd-swatches-single .wd-swatch.active-swatch,
.wd-swatches-single .wd-swatch.wd-active {
    border-color: #0088cc !important;
    box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.3), 0 4px 10px rgba(0, 0, 0, 0.12) !important;
    transform: scale(1.05) !important;
    background-color: #f0f9ff !important;
}

/* Catalog / Grid Cards Swatches: Suppressed for uniform, clean card heights across the store */
.wd-swatches-grid,
.wrapp-swatches,
.product-grid-item .wd-swatches-grid,
.product-grid-item .wd-swatches-product,
.product-grid-item .wrapp-swatches,
.wd-carousel-item .wd-swatches-grid,
.wd-carousel-item .wd-swatches-product,
.wd-carousel-item .wrapp-swatches,
.related-and-upsells .wd-swatches-grid,
.related-and-upsells .wd-swatches-product {
    display: none !important;
}

/* Ensure the standard select dropdown is always hidden when swatches are active */
.variations td.with-swatches select,
.single-product .variations td.with-swatches select,
.wd-swatches-product + select {
    display: none !important;
}

/* --- Footer Logo: Naturally Proportioned & Elegant --- */
.footer-container .elementor-element-d1f663a,
.footer-container .elementor-element-d1f663a .wd-image,
.footer-container .elementor-element-d1f663a img {
    max-width: 240px !important;
    width: 240px !important;
    height: auto !important;
    margin-bottom: 22px !important;
}

/* Ensure right copyright payment/logo widget is completely removed */
.footer-container .elementor-element-54b041f {
    display: none !important;
}



