/*
Theme Name: Woodmart Child — Decomet
Theme URI: https://decomet.ir/
Description: پوستهٔ فرزند دکومت؛ فروشگاه بدون وابستگی به راست‌چین یا لایسنس فروشنده.
Author: Decomet
Template: woodmart
Version: 1.7.1
Text Domain: decomet
*/

.decomet-skip {
    position: absolute;
    right: 1rem;
    top: -100px;
    z-index: 100000;
    background: #1b3a63;
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 6px;
}
.decomet-skip:focus {
    top: 0.75rem;
}

.whb-hidden-desktop.whb-hidden-mobile {
    display: none !important;
}

.decomet-home-h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.decomet-hero {
    position: relative;
    z-index: 2;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #14233a;
    color: #fff;
    margin: 0 0 1rem;
    padding-top: 120px;
}
.decomet-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}
.decomet-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2.5rem 1.25rem;
    max-width: 820px;
}
.decomet-hero-kicker {
    margin: 0 0 0.4rem;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    opacity: 0.9;
}
.decomet-hero-title,
.decomet-hero h1 {
    margin: 0 0 0.6rem;
    font-size: clamp(1.35rem, 3vw, 2.1rem);
    font-weight: 800;
    line-height: 1.4;
    color: #fff !important;
}
.decomet-hero-kicker,
.decomet-hero-lead {
    color: #fff !important;
}
.decomet-hero-lead {
    margin: 0 0 1.1rem;
    font-size: 0.95rem;
    opacity: 0.92;
}
.decomet-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}
.decomet-hero-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.45rem 1.15rem;
    border-radius: 8px;
    background: #fff;
    color: #14233a !important;
    font-weight: 700;
    text-decoration: none !important;
}
.decomet-hero-btn.is-ghost {
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.7);
}
.rs-module-wrap,
.rev_slider_wrapper {
    display: none !important;
}

.decomet-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

:focus-visible {
    outline: 2px solid #1b3a63;
    outline-offset: 2px;
}

a.wd-info-box,
.wd-info-box.cursor-pointer[onclick*="#"] {
    cursor: default !important;
}

/* Header: hide leftover English-only labels via CSS when possible */
.whb-header .wd-tools-element a[href*="wishlist"],
.whb-header .wd-header-wishlist a,
.whb-header .wd-header-compare a,
.whb-header .wd-header-cart a {
    min-width: 44px;
    min-height: 44px;
}

@media (min-width: 1025px) {
    .whb-header .wd-header-mobile-nav,
    .whb-header a.mobile-nav[title="Open mobile menu"],
    .whb-header a[aria-label="باز کردن منو"] {
        display: none !important;
    }
}

/* Product cards: equal height, stronger CTA */
.wd-products-with-bg .wd-product,
.products .product,
.wd-carousel-item .wd-product {
    display: flex;
    flex-direction: column;
}
.wd-product .wd-product-footer,
.product-wrapper .wd-add-btn {
    margin-top: auto;
}
.wd-product .button,
.products .product .button,
.wd-product .added_to_cart {
    min-height: 42px;
    border-radius: 6px;
}

.wd-product .product-image-link,
.product-grid-item .product-image-link,
.wd-hover-tiled .product-image-link {
    display: block !important;
}
.wd-product .product-element-top,
.product-grid-item .product-element-top,
.wd-hover-tiled .product-element-top {
    height: auto !important;
    min-height: 180px;
    overflow: visible !important;
}
.wd-product .product-element-top img,
.product-grid-item .product-element-top img,
.wd-hover-tiled .product-element-top img {
    display: block !important;
    width: 100%;
    height: auto;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
}

body.home .whb-overcontent .whb-general-header,
body.home .whb-overcontent .whb-header-bottom {
    background-color: #fff;
}
.whb-header .wd-logo img,
.whb-header .site-logo img {
    visibility: visible !important;
    opacity: 1 !important;
    max-height: 64px;
    width: auto;
}

/* Shop toolbar contrast */
.shop-loop-head,
.wd-shop-tools {
    align-items: center;
}

/* Footer duplicate heading leftover */
.footer-column .menu-title + .menu-title {
    display: none;
}

/* Process infoboxes on home: less vertical waste */
body.home .wd-info-box {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}
body.home .info-box-subtitle {
    display: none !important;
}

/* Cart / checkout readability */
.woocommerce-cart-form th,
.woocommerce-cart-form td,
.woocommerce-checkout .form-row label {
    text-align: right;
}

.woocommerce .quantity .qty {
    min-height: 42px;
}

/* Sticky add-to-cart: keep compact */
.wd-sticky-btn .decomet-studio,
.wd-sticky-add-to-cart .decomet-studio {
    display: none !important;
}

@media (max-width: 768px) {
    .whb-header .searchform {
        max-width: 100%;
    }
    .wd-nav-product-cat {
        overflow-x: auto;
    }
    .products {
        gap: 0.75rem;
    }
}

.decomet-quote {
    border: 1px solid #e5e5e5;
    padding: 1rem 1.25rem;
    margin: 1rem 0 1.25rem;
    background: #fafafa;
}

/* Storefront fallbacks so Rastchin/Care Unit is not required */
.whb-header {
    z-index: 400;
}
.whb-main-header {
    position: relative;
    z-index: 390;
}
body.home .whb-overcontent .whb-main-header {
    background: #fff;
}
.product-grid-item .product-wrapper,
.wd-product .product-wrapper {
    display: flex;
    flex-direction: column;
    background: #fff;
    min-height: 100%;
}
.product-grid-item .wd-entities-title,
.product-grid-item .product-title,
.wd-product .wd-entities-title {
    display: block !important;
    visibility: visible !important;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0.4rem 0;
}
.product-grid-item .price,
.wd-product .price {
    display: block !important;
    visibility: visible !important;
}
.owl-carousel .owl-item {
    min-height: 1px;
}
.wd-close-side:not(.wd-opened):not(.wd-close-side-opened) {
    pointer-events: none !important;
}

.wd-header-nav,
.wd-nav-main,
.wd-nav-main > li > a {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Process steps: titles only, no English leftover, usable on mobile */
body.home .wd-info-box {
    cursor: default !important;
    pointer-events: none;
    padding: 0.6rem 0.4rem;
}
body.home .wd-info-box .info-box-inner {
    display: none;
}
body.home .info-box-subtitle {
    display: none !important;
}
body.home .info-box-title {
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
    font-weight: 700;
    margin: 0;
}
body.home .info-box-icon img {
    max-height: 48px;
    width: auto;
}
@media (max-width: 1024px) {
    body.home .elementor-hidden-mobile:has(.wd-info-box) {
        display: block !important;
    }
    body.home .elementor-widget-wd_infobox {
        margin-bottom: 0.5rem;
    }
}

/* Header leftover demo row */
.whb-top-bar.whb-hidden-desktop.whb-hidden-mobile {
    display: none !important;
}

/* Bottom toolbar: cart label */
.wd-toolbar .wd-header-cart .wd-toolbar-label {
    font-size: 0.7rem;
}

/* Leftover Woodmart demo chrome — not a new look, just less noise */
.wd-product .wd-buttons,
.wd-product .wd-buttons-wrapper,
.wd-product .wd-quick-view-btn,
.wd-product .wd-action-btn,
.product-grid-item .wd-buttons,
.product-grid-item .wd-quick-view,
.product-grid-item .wd-action-btn,
.wd-quick-view-btn,
.wd-compare-btn,
.wd-wishlist-btn,
.whb-header .wd-header-compare,
.whb-header .wd-header-wishlist,
.wd-toolbar .wd-header-compare,
.wd-toolbar .wd-header-wishlist {
    display: none !important;
}
/* Leftover widgets/strips only — hero keeps its own navy */
body.home .elementor-element-bbee553,
body.home .elementor-element-8019998,
body.home .elementor-element-158bdf3,
body.home .elementor-element-5b5cd4f,
body.home .elementor-element-bddebc7,
body.home .elementor-widget-wd_infobox {
    display: none !important;
}
body.home .elementor-element-fb0cf16 {
    padding: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
    background-image: none !important;
}
body.home .elementor-element-fb0cf16 > .elementor-shape-bottom {
    display: none !important;
}
body.home .elementor-element-fb0cf16 > .elementor-background-overlay {
    display: none !important;
}
body.home .elementor-element-fb0cf16 > .elementor-container,
body.home .elementor-element-0fc7cee > .elementor-container {
    max-width: none !important;
    width: 100% !important;
}
body.home .elementor-element-0fc7cee,
body.home .elementor-element-0fc7cee.elementor-hidden-mobile,
body.home .elementor-element-9d62b70,
body.home .elementor-element-9d62b70 .wp-block-themepunch-revslider,
body.home .elementor-element-9d62b70 .elementor-widget-container {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}
body.home .elementor-element-fb0cf16 .decomet-hero {
    width: 100%;
}
body.home .elementor-element-75e316c > .elementor-container {
    align-items: flex-start !important;
}
.price .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}
body.home .wd-title-wrapper .title,
body.home .wd-title-wrapper .woodmart-title-container {
    letter-spacing: 0 !important;
}

/* Product cards */
.wd-product .wd-entities-title,
.product-grid-item .wd-entities-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.wd-product .product-element-top img,
.product-grid-item .product-element-top img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Loop cards: go to product, no qty */
.wd-product .quantity,
.products .quantity,
.related .quantity,
.upsells .quantity,
.wd-carousel-item .quantity,
.wd-products-holder .quantity {
    display: none !important;
}
body.single-product form.cart .quantity,
body.woocommerce-cart .woocommerce-cart-form .quantity,
.widget_shopping_cart .quantity {
    display: revert !important;
}
a.decomet-loop-config {
    white-space: nowrap;
}

/* Hide leftover Woo attribute tab and EZ TOC on shop pages */
#tab-title-additional_information,
.woocommerce-tabs li.additional_information_tab,
#tab-additional_information,
body.woocommerce-cart #ez-toc-container,
body.woocommerce-checkout #ez-toc-container,
body.woocommerce-account #ez-toc-container,
body.woocommerce-cart .ez-toc,
body.woocommerce-checkout .ez-toc,
body.post-type-archive-portfolio #ez-toc-container,
body.post-type-archive-portfolio .ez-toc {
    display: none !important;
}
body.post-type-archive-portfolio .wd-empty-grid,
body.post-type-archive-portfolio .woocommerce-info {
    margin-top: 0.5rem;
}

/* Hide Woo shipping row; freight is a cart fee */
.woocommerce-shipping-totals,
.woocommerce-shipping-calculator {
    display: none !important;
}

.decomet-page-title {
    margin: 0 0 1rem;
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    font-weight: 800;
    line-height: 1.45;
}
body.woocommerce-cart .wd-page-title,
body.woocommerce-checkout .wd-page-title,
body.woocommerce-cart .page-title,
body.woocommerce-checkout .page-title {
    display: none !important;
}

/* Checkout / cart */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-cart .input-text {
    min-height: 44px;
}
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    text-align: right;
}

.decomet-trust-note {
    background: #f4f7fb;
    border: 1px solid #d5e0ee;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    margin: 0 0 1.25rem;
    text-align: right;
}
.decomet-trust-note strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #1b3a63;
}
.decomet-trust-note p {
    margin: 0 0 0.4rem;
    line-height: 1.7;
}
.decomet-trust-links {
    margin: 0 !important;
}
.decomet-empty-cart-hint {
    text-align: right;
    margin: 0.5rem 0 1rem;
}
.decomet-fab {
    position: fixed;
    left: 1rem;
    bottom: 5.5rem;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.decomet-fab a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.85rem;
    border-radius: 999px;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}
.decomet-fab-wa {
    background: #1fa855;
}
.decomet-fab-tel {
    background: #1b3a63;
}
.decomet-archive-title {
    margin: 0 0 0.55rem;
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    font-weight: 800;
    line-height: 1.45;
}
.decomet-archive-lead,
.decomet-unique-intro {
    margin: 0 0 1rem;
    line-height: 1.85;
    max-width: 46rem;
}
.decomet-faq {
    margin: 1.25rem 0 0.5rem;
    padding: 0.9rem 1rem 1rem;
    border: 1px solid #e2e6ec;
    border-radius: 12px;
}
.decomet-faq h2 {
    margin: 0 0 0.7rem;
    font-size: 1.05rem;
}
.decomet-faq-item {
    margin: 0 0 0.45rem;
    border-bottom: 1px solid #eef1f5;
}
.decomet-faq-item summary {
    cursor: pointer;
    font-weight: 700;
    padding: 0.45rem 0;
}

@media (min-width: 769px) {
    .decomet-fab {
        bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .decomet-hero {
        min-height: 0;
        padding-top: 5.5rem;
    }
    .decomet-hero-inner {
        padding: 1.5rem 1rem;
    }
    .wd-toolbar {
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    body {
        padding-bottom: 5.25rem;
    }
    .decomet-fab {
        bottom: 6.25rem;
    }
}

/* Navy bar: only top-level main links. Dropdowns stay dark on white. */
.whb-header-bottom.whb-with-bg .wd-nav-main > li > a,
.whb-header-bottom.whb-with-bg .wd-nav-main > li > a .nav-link-text {
    color: #fff !important;
}
.whb-header-bottom.whb-with-bg .wd-nav-main > li > a:hover,
.whb-header-bottom.whb-with-bg .wd-nav-main > li.current-menu-item > a,
.whb-header-bottom.whb-with-bg .wd-nav-main > li.current-menu-ancestor > a {
    color: #fff !important;
    opacity: 0.92;
}
.whb-header .wd-dropdown a,
.whb-header .wd-dropdown-menu a,
.whb-header .wd-nav-vertical a,
.whb-header .wd-header-cats a,
.wd-dropdown-cats a,
.whb-header-bottom.whb-with-bg .wd-dropdown a,
.whb-header-bottom.whb-with-bg .wd-dropdown .woodmart-nav-link,
.whb-header-bottom.whb-with-bg .wd-nav-vertical a,
.whb-header-bottom.whb-with-bg .wd-nav-vertical .woodmart-nav-link,
.whb-header-bottom.whb-with-bg .wd-dropdown-cats a {
    color: #14233a !important;
}
body:not(.single-post) #ez-toc-container,
body:not(.single-post) .ez-toc,
body:not(.single-post) .ez-toc-v2_0_87 {
    display: none !important;
}
.wd-social-icons a[href="#"],
a.wd-social-icon[href="#"],
a.wd-facebook[href="#"],
a.wd-twitter[href="#"],
a.wd-youtube[href="#"],
a.wd-pinterest[href="#"] {
    display: none !important;
}
.footer-column .menu-title + .menu-label,
.footer-column .widget-title + .menu-label,
.footer-column .menu-label + .menu-label,
.footer-widget .menu-label {
    display: none !important;
}
.mobile-nav a[href*="compare"],
.wd-nav-mobile a[href*="compare"],
.wd-header-mobile-nav a[href*="compare"],
.wd-side-hidden a[href*="compare"] {
    display: none !important;
}
body.blog .decomet-page-title {
    margin: 1.1rem 0 0.35rem;
    padding: 0 0.25rem;
}
body.blog .decomet-archive-lead {
    margin: 0 0 1.1rem;
    padding: 0 0.25rem;
}
.woocommerce-checkout .woocommerce-shipping-fields > h3:not(:has(input)) {
    display: none !important;
}
body.blog .wd-page-title,
body.blog .page-title {
    display: none !important;
}
.decomet-skip:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.whb-header .searchform input,
.whb-header .searchform button,
.wd-search-form input,
.wd-search-form button {
    min-height: 44px;
}
