/*
Theme Name:   فارسی‌ساز هوشمند فلوکس پرو
Theme URI:    https://themes.wpmonster.co/landing/phlox-landing
Description:  مدرن، انعطاف پذیر، قدرتمند. فلوکس بهترین قالب المنتور دنیاست...
Author:       هیولای وردپرس
Author URI:   https://wpmonster.co
Template:     phlox-pro
Version:      2.0
Text Domain:  phlox-pro-child
--------------------------------------------------------------------------------
This set of fonts are used in iDivi.ir project under the relevant licenses.
IRANSans:   (T6GT9B)
IRANSansDN: (NGGPAS)
IRANYekan:  (VEYR4W)
IRANSharp:  (B2XBWP)
IRANGerd:   (ZW423N)
IRAN:       (EAXDCW)
Dana:       (CSF6GB)
Anjoman:    (KGNYN8)
Kalameh:    (HDPDCA)
Aviny:      (93BABR)
Mahboubeh:  (3FW72N)
Hilda:      (Y2XCKY)
Farhang:    (7G7UWB)
Gohar:      (MKTQGB)
Tahamtan:   (REDFP6)
Katibeh:    (FQUDWQ)
Damavand:   (6PHQNW)
Emkan:      (RA74M4)
*/

/* =========================================================
   Custom Auxin Product Card
   ========================================================= */

.custom-product-card {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-product-card .custom-product-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #edf1f4;
    border-radius: 32px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.custom-product-card:hover .custom-product-card-inner {
    transform: translateY(-8px);
    border-color: #dce5eb;
    box-shadow: 0 20px 44px -14px rgba(0, 0, 0, 0.12);
}

.custom-product-card a {
    text-decoration: none;
}

.custom-product-card .woocommerce-loop-product__link {
    position: relative;
    display: block;
}

.custom-product-card img {
    display: block;
    width: 100%;
    padding: 14px;
    background: #f4f8f5;
    border-radius: 24px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.custom-product-card:hover img {
    transform: scale(1.03);
}

.custom-product-card .onsale {
    position: absolute;
    top: 20px;
    right: 20px;
    left: auto;
    z-index: 2;
    margin: 0;
    min-width: auto;
    min-height: auto;
    padding: 8px 14px;
    color: #16a34a;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    background: #ecfdf3;
    border: 1px solid #d8f5e2;
    border-radius: 12px;
}

.custom-product-card .custom-product-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding-top: 16px;
}

.custom-product-card .custom-product-title {
    margin: 0 0 10px;
    color: #19273c;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.8;
}

.custom-product-card .custom-product-title a {
    color: inherit;
    transition: color 0.25s ease;
}

.custom-product-card .custom-product-title a:hover {
    color: #16a34a;
}

.custom-product-card .loop-meta-wrapper {
    margin-bottom: 12px;
}

.custom-product-card .product_meta {
    color: #7b8794;
    font-size: 13px;
}

.custom-product-card .star-rating {
    margin-bottom: 8px;
}

.custom-product-card .price,
.custom-product-card .button {
    display: none !important;
}

.custom-product-card .product-features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 16px 0 20px;
    padding-top: 16px;
    border-top: 1px solid #eef0f2;
}

.custom-product-card .product-features-grid:empty {
    display: none;
}

.custom-product-card .feature-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 76px;
    padding: 8px 10px;
    text-align: center;
}

.custom-product-card .feature-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 12px;
    left: 0;
    width: 1px;
    height: calc(100% - 24px);
    background: #eef0f2;
}

.custom-product-card .feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
    color: #16a34a;
    font-size: 18px;
    line-height: 1;
}

.custom-product-card .feature-icon i {
    font-size: inherit;
    line-height: 1;
}

.custom-product-card .feature-title {
    margin: 0;
    color: #8a94a0;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.custom-product-card .feature-desc {
    margin: 0;
    color: #445164;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;
    word-break: break-word;
}

.custom-product-card .feature-item.feature-product_length,
.custom-product-card .feature-item.feature-length,
.custom-product-card .feature-item.feature-pa_product_length {
    background: #f8fcf8;
    border: 1px solid #dff1e3;
    border-radius: 14px;
    margin-inline-start: 6px;
}

.custom-product-card .feature-item.feature-product_length::after,
.custom-product-card .feature-item.feature-length::after,
.custom-product-card .feature-item.feature-pa_product_length::after {
    display: none;
}

.custom-product-card .feature-item.feature-product_length .feature-desc,
.custom-product-card .feature-item.feature-length .feature-desc,
.custom-product-card .feature-item.feature-pa_product_length .feature-desc {
    color: #16a34a;
    font-size: 14px;
    font-weight: 900;
}

.custom-product-card .product-card-footer-action {
    margin-top: auto;
}

.custom-product-card .product-card-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #f3f4f6;
    border-radius: 18px;
}

.custom-product-card .custom-more-info-btn {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    background: #1e293b;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(30, 41, 59, 0.16);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.custom-product-card .custom-more-info-btn:hover {
    color: #fff;
    background: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

.custom-product-card .cart-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

/* Tablet */
@media (max-width: 1024px) {
    .custom-product-card .product-features-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .custom-product-card .feature-item {
        min-height: 82px;
        background: #fff;
        border: 1px solid #eef0f2;
        border-radius: 14px;
    }

    .custom-product-card .feature-item:not(:last-child)::after {
        display: none;
    }

    .custom-product-card .feature-item.feature-product_length,
    .custom-product-card .feature-item.feature-length,
    .custom-product-card .feature-item.feature-pa_product_length {
        margin-inline-start: 0;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .custom-product-card .custom-product-card-inner {
        padding: 14px;
        border-radius: 24px;
    }

    .custom-product-card img {
        padding: 12px;
        border-radius: 18px;
    }

    .custom-product-card .onsale {
        top: 16px;
        right: 16px;
        padding: 7px 12px;
        font-size: 11px;
    }

    .custom-product-card .custom-product-title {
        font-size: 17px;
        line-height: 1.7;
    }

    .custom-product-card .product-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .custom-product-card .feature-item {
        min-height: 78px;
        padding: 10px 8px;
    }

    .custom-product-card .product-card-bottom-bar {
        padding: 8px;
    }

    .custom-product-card .custom-more-info-btn {
        width: 100%;
    }
}

/*-----*/
/* Product specs - match product card look */
.single-product .product-features-grid,
.product-specs-grid,
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    direction: rtl;
    margin: 16px 0 20px;
}

.single-product .feature-item,
.product-spec-card,
.spec-card {
    min-height: 110px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.single-product .feature-item:hover,
.product-spec-card:hover,
.spec-card:hover {
    transform: translateY(-2px);
    border-color: #d7e8dc;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.single-product .feature-icon,
.product-spec-icon,
.spec-icon {
    color: #16a34a;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.single-product .feature-icon i,
.product-spec-icon i,
.spec-icon i {
    font-size: inherit;
    line-height: 1;
}

.single-product .feature-title,
.product-spec-label,
.spec-label {
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.single-product .feature-desc,
.product-spec-value,
.spec-value {
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    direction: ltr;
    unicode-bidi: plaintext;
}

.single-product .feature-desc.is-accent,
.product-spec-value.is-accent,
.spec-value.is-accent {
    color: #16a34a;
}

.single-product .feature-item.feature-product_length .feature-desc,
.single-product .feature-item.feature-length .feature-desc,
.single-product .feature-item.feature-pa_product_length .feature-desc {
    color: #16a34a;
    font-size: 16px;
    font-weight: 800;
}

/* Mobile */
@media (max-width: 767px) {
    .single-product .product-features-grid,
    .product-specs-grid,
    .specs-grid {
        gap: 10px;
    }

    .single-product .feature-item,
    .product-spec-card,
    .spec-card {
        min-height: 96px;
        padding: 14px 10px;
        border-radius: 14px;
    }

    .single-product .feature-icon,
    .product-spec-icon,
    .spec-icon {
        font-size: 22px;
    }

    .single-product .feature-title,
    .product-spec-label,
    .spec-label {
        font-size: 12px;
    }

    .single-product .feature-desc,
    .product-spec-value,
    .spec-value {
        font-size: 15px;
    }
}

