/*
Theme Name: Padidar Steel
Theme URI: https://test.lir98.ir
Description: قالب اختصاصی پدیدار فولاد آذرخش بر پایه Astra
Author: Padidar Development
Template: astra
Version: 1.0.0
Text Domain: padidar-steel
*/

/*
Brand Colors

Orange: #ff6a00
Navy:   #062744
White:  #ffffff
*/


/* =========================================
   PADIDAR PRICE INQUIRY UI FIX V1
   ========================================= */

body.page-template-page-price-inquiry .pf-inquiry-hero-title,
body.page-template-default .pf-inquiry-hero-title,
body.page .pf-inquiry-hero-title {
    font-size: clamp(28px, 3vw, 44px) !important;
    line-height: 1.45 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px;
    margin-bottom: 18px !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.22);
    max-width: 720px;
}

body.page-template-page-price-inquiry .pf-inquiry-hero-subtitle,
body.page-template-default .pf-inquiry-hero-subtitle,
body.page .pf-inquiry-hero-subtitle {
    color: rgba(255,255,255,0.92) !important;
    font-size: 18px !important;
    line-height: 2 !important;
    max-width: 820px;
}

body.page-template-page-price-inquiry .pf-inquiry-hero-badge,
body.page-template-default .pf-inquiry-hero-badge,
body.page .pf-inquiry-hero-badge {
    color: #fff !important;
    border-color: rgba(255,255,255,0.22) !important;
    background: rgba(255,255,255,0.08) !important;
}

body.page-template-page-price-inquiry .pf-inquiry-form-card,
body.page-template-default .pf-inquiry-form-card,
body.page .pf-inquiry-form-card {
    border-radius: 24px !important;
}

body.page-template-page-price-inquiry .pf-inquiry-form-card h2,
body.page-template-default .pf-inquiry-form-card h2,
body.page .pf-inquiry-form-card h2 {
    font-size: clamp(28px, 2.5vw, 46px) !important;
    line-height: 1.6 !important;
}

/* فیلد انتخاب محصول */
body.page-template-page-price-inquiry .pf-product-select,
body.page-template-page-price-inquiry select[name="product_id"],
body.page-template-page-price-inquiry select[name="pf_product_id"],
body.page-template-default .pf-product-select,
body.page-template-default select[name="product_id"],
body.page-template-default select[name="pf_product_id"] {
    width: 100% !important;
    min-height: 62px !important;
    height: 62px !important;
    border: 2px solid #d7dee8 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    color: #0c2d57 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 0 18px !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

body.page-template-page-price-inquiry .pf-product-select:focus,
body.page-template-page-price-inquiry select[name="product_id"]:focus,
body.page-template-page-price-inquiry select[name="pf_product_id"]:focus,
body.page-template-default .pf-product-select:focus,
body.page-template-default select[name="product_id"]:focus,
body.page-template-default select[name="pf_product_id"]:focus {
    outline: none !important;
    border-color: #f04438 !important;
    box-shadow: 0 0 0 4px rgba(240,68,56,0.12) !important;
}

/* اگر select2 فعال شده باشد */
body.page-template-page-price-inquiry .select2-container,
body.page-template-default .select2-container {
    width: 100% !important;
}

body.page-template-page-price-inquiry .select2-container .select2-selection--single,
body.page-template-default .select2-container .select2-selection--single {
    min-height: 62px !important;
    height: 62px !important;
    border-radius: 16px !important;
    border: 2px solid #d7dee8 !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 14px !important;
}

body.page-template-page-price-inquiry .select2-container .select2-selection__rendered,
body.page-template-default .select2-container .select2-selection__rendered {
    color: #0c2d57 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 58px !important;
    padding-right: 0 !important;
    padding-left: 34px !important;
}

body.page-template-page-price-inquiry .select2-container .select2-selection__arrow,
body.page-template-default .select2-container .select2-selection__arrow {
    height: 62px !important;
    left: 12px !important;
    right: auto !important;
}

body.page-template-page-price-inquiry .select2-dropdown,
body.page-template-default .select2-dropdown {
    border: 2px solid #d7dee8 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 18px 40px rgba(15,23,42,0.12) !important;
}

body.page-template-page-price-inquiry .select2-results__option,
body.page-template-default .select2-results__option {
    font-size: 16px !important;
    padding: 12px 16px !important;
    color: #17324d !important;
}

body.page-template-page-price-inquiry .select2-results__option--highlighted,
body.page-template-default .select2-results__option--highlighted {
    background: #0f3a68 !important;
    color: #ffffff !important;
}

/* موبایل */
@media (max-width: 768px) {
    body.page-template-page-price-inquiry .pf-inquiry-hero-title,
    body.page-template-default .pf-inquiry-hero-title,
    body.page .pf-inquiry-hero-title {
        font-size: 28px !important;
        line-height: 1.6 !important;
    }

    body.page-template-page-price-inquiry .pf-inquiry-hero-subtitle,
    body.page-template-default .pf-inquiry-hero-subtitle,
    body.page .pf-inquiry-hero-subtitle {
        font-size: 15px !important;
        line-height: 1.9 !important;
    }

    body.page-template-page-price-inquiry .pf-product-select,
    body.page-template-page-price-inquiry select[name="product_id"],
    body.page-template-page-price-inquiry select[name="pf_product_id"],
    body.page-template-default .pf-product-select,
    body.page-template-default select[name="product_id"],
    body.page-template-default select[name="pf_product_id"] {
        min-height: 56px !important;
        height: 56px !important;
        font-size: 16px !important;
    }

    body.page-template-page-price-inquiry .select2-container .select2-selection--single,
    body.page-template-default .select2-container .select2-selection--single {
        min-height: 56px !important;
        height: 56px !important;
    }

    body.page-template-page-price-inquiry .select2-container .select2-selection__rendered,
    body.page-template-default .select2-container .select2-selection__rendered {
        line-height: 52px !important;
        font-size: 15px !important;
    }
}

/* ===== Padidar showcase single-image fit fix ===== */
[data-pf-showcase]{
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    min-height: 320px !important;
    border-radius: 28px !important;
}

[data-pf-showcase] .pf-showcase-slide{
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: none !important;
    transition: opacity .75s ease, visibility .75s ease !important;
    overflow: hidden !important;
    border-radius: 28px !important;
}

[data-pf-showcase] .pf-showcase-slide.is-active{
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 2 !important;
}

[data-pf-showcase] .pf-showcase-slide img{
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 28px !important;
}

/* قاب حرفه‌ای‌تر */
[data-pf-showcase]{
    background: #fff !important;
    box-shadow: 0 16px 40px rgba(15, 35, 65, 0.12) !important;
    padding: 0 !important;
}

@media (max-width: 991px){
    [data-pf-showcase]{
        min-height: 240px !important;
        border-radius: 22px !important;
    }

    [data-pf-showcase] .pf-showcase-slide,
    [data-pf-showcase] .pf-showcase-slide img{
        border-radius: 22px !important;
    }
}
