/**
 * Theme Name:     Woodmart Child
 * Author:         XTemos
 * Template:       woodmart
 * Text Domain:	   woodmart-child
 * Description:    ThemeForest Premium Theme
 * Version:        7.20260522
 */.cf7-inline-form .form-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  margin-bottom: 18px;
  gap: 15px;
}

/* label */
.cf7-inline-form label {
  font-weight: 500;
  font-size: 14px;
}

/* IMPORTANT: target CF7 wrapper span */
.cf7-inline-form .wpcf7-form-control-wrap {
  width: 100%;
}

/* inputs */
.cf7-inline-form input,
.cf7-inline-form select,
.cf7-inline-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* textarea height */
.cf7-inline-form textarea {
  min-height: 120px;
}

/* submit button alignment */
.cf7-inline-form .submit-row {
  grid-template-columns: 180px 1fr;
}

.cf7-inline-form .submit-row input {
  width: auto;
}

/* mobile fix */
@media (max-width: 768px) {
  .cf7-inline-form .form-row {
    grid-template-columns: 1fr;
  }
}

.counter-value {
    width: max-content;
}

.woodmart-counter .counter-value {
    float: left;
}

.woodmart-counter {
    display: flex;
    width: 100% !important;
    float: unset;
}

/* Xetrix: push Build Your PCs + Deals to the right side of the main nav */
ul.menu.wd-nav-header,
ul.menu.wd-nav-secondary,
.wd-header-nav > ul.menu,
.wd-header-nav .wd-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
}
ul.menu.wd-nav-header > li.menu-item-11838,
ul.menu.wd-nav-secondary > li.menu-item-11838,
.wd-header-nav .wd-nav > li.menu-item-11838 {
    margin-left: auto !important;
}


/* Xetrix-NAV-RIGHT-PUSH-v2 */
body .wd-header-nav ul.menu.wd-nav-main,
body ul.menu.wd-nav-main {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
}
body .wd-header-nav ul.menu.wd-nav-main > li.menu-item-11838,
body ul.menu.wd-nav-main > li.menu-item-11838 {
    margin-left: auto !important;
}


/* Xetrix: TRUE full-width site — header, topbar, every container stretches edge to edge */
body.wrapper-full-width .container,
.wd-header-cats-wrapp .container,
.whb-row .container,
.whb-header .container,
.wd-footer .container,
.main-page-wrapper .container,
.wd-page-content .container,
.wpb-content-wrapper .container,
.wd-prefooter .container,
.copyrights-wrapper .container,
.page-title .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
}

/* Stretch the WPBakery non-stretched rows to full viewport too */
body.wrapper-full-width .vc_row:not(.vc_row-no-padding):not([data-vc-full-width]) > .container,
body.wrapper-full-width .vc_column_container > .vc_column-inner {
    max-width: 100% !important;
}

/* The full-width override above also matches .container nodes nested deep inside
   header and category dropdowns — WoodMart wraps dropdown content in
   .container.wd-entry-content — which leaked a 40px blank gutter on the left
   (and right) of every nav-link dropdown and the Browse Categories dropdown.
   Restore the dropdown-internal containers to their natural sizing so the
   menu items sit flush with the dropdown's own 20px padding. */
.wd-dropdown-menu .container,
.wd-dropdown-menu .container.wd-entry-content,
.wd-dropdown .container,
.wd-dropdown .container.wd-entry-content {
    max-width: none !important;
    width: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* === Catalog-list-only mode (paired with WoodMart catalog_mode = 1) ===
   WoodMart's catalog_mode kills add-to-cart and redirects /cart and /checkout
   but it leaves the header cart icon and WooCommerce's native "Sale" badge
   in place. Hide both for a clean catalog presentation. The price flattening
   is handled in functions.php via woocommerce_get_price_html. */

/* Header cart icon: re-enabled for the PC Builder flow.
   Previously hidden as part of the catalog-only mode treatment. */

/* Hide the WooCommerce native "Sale" word badge on product cards and product
   pages. The WoodMart -N% percentage variant is already off via the
   percentage_label theme setting. Hot/New/Featured labels stay. */
.products .product-label.onsale,
.product .product-label.onsale,
.summary .onsale,
span.onsale,
.wd-product .product-label.onsale {
    display: none !important;
}

/* On smaller screens reduce side padding so content doesn't get squeezed */
@media (max-width: 1024px) {
    body.wrapper-full-width .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}
@media (max-width: 576px) {
    body.wrapper-full-width .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}


/* Xetrix: control product image height in single-product sidebar carousels.
   Moderate height that doesn't dominate the column. */
.wd-products-element.wd-carousel-container .wd-product.product-grid-item .product-image-link,
.wd-highlighted-products.wd-carousel-container .wd-product .product-image-link {
    display: block !important;
    height: 340px !important;
    overflow: hidden !important;
    background-color: #f5f5f7;
}
.wd-products-element.wd-carousel-container .wd-product.product-grid-item .product-image-link img,
.wd-highlighted-products.wd-carousel-container .wd-product .product-image-link img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Tablet */
@media (max-width: 1024px) {
    .wd-products-element.wd-carousel-container .wd-product.product-grid-item .product-image-link,
    .wd-highlighted-products.wd-carousel-container .wd-product .product-image-link {
        height: 280px !important;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .wd-products-element.wd-carousel-container .wd-product.product-grid-item .product-image-link,
    .wd-highlighted-products.wd-carousel-container .wd-product .product-image-link {
        height: 240px !important;
    }
}


/* (category card height now handled by woodmart_categories img_size="600x600" param) */


/* === Xetrix multifix v1 :: start === */

/* Hero slider — defensive: always reserve height + cover bg even if WoodMart JS is late */
.wd-slider, .wd-slider .wd-carousel-inner, .wd-slider .wd-slide {
    min-height: 480px;
}
.wd-slider .wd-slide-bg.wd-fill {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
@media (max-width: 768px) {
    .wd-slider, .wd-slider .wd-carousel-inner, .wd-slider .wd-slide { min-height: 320px; }
}

/* Shop grid — equal-height product card images regardless of source orientation */
.products .product-grid-item .product-image-link,
.wd-products .product-grid-item .product-image-link,
ul.products li.product .product-image-link {
    display: block !important;
    aspect-ratio: 4 / 3;
    height: auto !important;
    overflow: hidden;
    background-color: #f5f5f7;
}
.products .product-grid-item .product-image-link img,
.wd-products .product-grid-item .product-image-link img,
ul.products li.product .product-image-link img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}
.wd-products-element .product-wrapper { height: auto; }

/* Build Your PC configurator — card grid redesign */
.xtx-build-form { color: #1f2030; }
.xtx-build-intro {
    margin: 30px 0 20px;
    padding-left: 14px;
    border-left: 4px solid #0F52BA;
}
.xtx-build-intro:first-child { margin-top: 0; }
.xtx-build-step-tag {
    display: inline-block;
    background: #0F52BA;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 99px;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.xtx-build-intro h3 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #1f2030;
}
.xtx-build-intro p { margin: 0; color: #6b6f80; font-size: 14px; }

.xtx-build-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 10px;
}
@media (min-width: 992px) {
    .xtx-build-grid { grid-template-columns: repeat(3, 1fr); }
}

.xtx-field, .xtx-component-card {
    background: #fff;
    border: 1px solid #e5e7ee;
    border-radius: 10px;
    padding: 16px 16px 14px;
    position: relative;
    transition: border-color .15s, box-shadow .15s;
}
.xtx-field:focus-within, .xtx-component-card:focus-within {
    border-color: #0F52BA;
    box-shadow: 0 0 0 3px rgba(15,82,186,0.10);
}
.xtx-field label, .xtx-component-card label {
    display: block;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2030;
}
.xtx-component-card label.xtx-sub-label {
    margin-top: 12px;
    color: #6b6f80;
    font-size: 12px;
    font-weight: 500;
}
.xtx-build-form .xtx-field input,
.xtx-build-form .xtx-field select,
.xtx-build-form .xtx-component-card input,
.xtx-build-form .xtx-component-card select,
.xtx-build-form textarea {
    width: 100% !important;
    border: 1px solid #d8dbe6 !important;
    border-radius: 6px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    background: #fafbfd !important;
    color: #1f2030 !important;
    box-shadow: none !important;
}
.xtx-build-form .xtx-field input:focus,
.xtx-build-form .xtx-field select:focus,
.xtx-build-form .xtx-component-card input:focus,
.xtx-build-form .xtx-component-card select:focus,
.xtx-build-form textarea:focus {
    border-color: #0F52BA !important;
    background: #fff !important;
}
.xtx-component-num {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 12px;
    font-weight: 700;
    color: #b9bdcc;
    letter-spacing: 0.06em;
}
.xtx-component-wide { grid-column: 1 / -1; }
.xtx-component-wide span.wpcf7-form-control-wrap { display: block; }
.xtx-component-wide .wpcf7-list-item {
    display: inline-flex;
    align-items: center;
    margin: 6px 14px 4px 0;
    font-size: 13px;
    color: #1f2030;
}
.xtx-field-wide {
    margin-bottom: 20px;
}
.xtx-build-submit {
    text-align: center;
    margin-top: 30px;
}
.xtx-build-submit .wpcf7-submit {
    background: #0F52BA;
    color: #fff !important;
    border: 0;
    padding: 14px 36px !important;
    font-size: 15px !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.xtx-build-submit .wpcf7-submit:hover {
    background: #0a3d8f;
    transform: translateY(-1px);
}
.xtx-build-disclaimer {
    margin-top: 14px;
    color: #6b6f80;
    font-size: 13px;
}

/* Testimonials section on home */
.xtx-testimonials-row {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.xtx-testimonials-title {
    font-size: 28px;
    font-weight: 700;
    color: #0F52BA;
    margin: 0 0 6px;
    border-bottom: 2px solid #0F52BA;
    padding-bottom: 10px;
    display: inline-block;
}
.xtx-testimonials-sub {
    color: #6b6f80;
    margin: 0 0 32px;
    font-size: 15px;
}
.xtx-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
@media (max-width: 992px) { .xtx-testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .xtx-testimonials-grid { grid-template-columns: 1fr; } }

.xtx-testimonial {
    background: #fff;
    border: 1px solid #e5e7ee;
    border-radius: 12px;
    padding: 22px 22px 18px;
    box-shadow: 0 1px 3px rgba(15,30,60,0.04);
    display: flex;
    flex-direction: column;
}
.xtx-testimonial .xtx-stars {
    color: #f4a51c;
    font-size: 15px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.xtx-testimonial blockquote {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    color: #1f2030;
    font-size: 14.5px;
    line-height: 1.55;
    font-style: normal;
    flex: 1;
}
.xtx-testimonial footer {
    border-top: 1px solid #eef0f5;
    padding-top: 10px;
    font-size: 13px;
}
.xtx-testimonial footer strong {
    display: block;
    color: #1f2030;
    font-weight: 600;
}
.xtx-testimonial footer span {
    color: #6b6f80;
    font-size: 12.5px;
}

/* === Xetrix multifix v1 :: end === */
