/*
 Theme Name: Astra Child
 Theme URI: http://example.com/astra-child
 Description: ???? ????? ?????
 Author: Mahmoud
 Template: astra
 Version: 1.0.0
 Text Domain: astra-child
*/
/* .custom-orderby-wrapper {
    margin-bottom: 20px;
}

.custom-orderby-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.custom-orderby-links .orderby-link {
    display: inline-block;
    padding: 5px 10px;
    background: #f1f1f1;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.custom-orderby-links .orderby-link.orderby-active {
    background: #333;
    color: #fff;
}

.woocommerce-ordering {
    display: none !important;
}

.woocommerce-green-full {
    position: fixed;
    inset: 0;
    background: rgb(17, 76, 68) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.woocommerce-green-box {
    background: #fff;
    padding: 30px 15px 0px;
    border-radius: 10px;
    position: relative;
    width: 400px;
    max-width: 90%;
}

.woocommerce-green-title {
    color: rgb(17, 76, 68);
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    padding-bottom: 10px;
}

.woocommerce-green-close {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #fff;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    text-align: center;
    line-height: 35px;
    cursor: pointer;
    font-size: 22px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
}

.woocommerce-LostPassword, .woocommerce-LostPassword a {
    width: 100%;
    display: block;
    margin-top: 15px;
}

.woocommerce-registration-link {
    margin-top:15px;
} */

/* === Vazirmatn Font === */
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/vazir/Vazirmatn-Regular.woff2') format('woff2'),
         url('fonts/vazir/Vazirmatn-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/vazir/Vazirmatn-Medium.woff2') format('woff2'),
         url('fonts/vazir/Vazirmatn-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/vazir/Vazirmatn-Bold.woff2') format('woff2'),
         url('fonts/vazir/Vazirmatn-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body, html, .site, * {
    font-family: 'Vazirmatn', sans-serif !important;
}

body {
    background-color: #0E3D36 !important;
    /* padding-top: 156px !important; */
}

/* #ast-desktop-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
} */

.gallery-caption {
    border: 0px !important;
}

.gallery-item a {
    text-decoration: none !important;
    font-size: 16px;    
}

.ast-builder-grid-row {
    grid-template-columns: none;
}

.site-header-primary-section-right {
    flex-direction: row-reverse;
}

.single-fabric-wrapper {
    max-width: 1100px;
    margin: 35px 15px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background-color: #CBD9D1;
}

/* تصویر سمت راست */
.single-fabric-image {
    position: relative;
    overflow: hidden;
}

/* محتوای چپ */
.single-fabric-content {
    flex: 1;
}

.single-fabric-desc {
    font-size: 18px;
    line-height: 1.9;
}

/* Lightbox */
#img-lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

#img-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.ast-archive-title {
    text-align: right;
}

.ast-blog-meta-container {
    display: none;
}

.custom-gallery-grid {
    display: grid !important;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    align-items: start;
}

.custom-gallery-grid .gallery-item {
    text-align: center;
}

.custom-gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.products-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); */
    gap: 18px;
    margin: 40px 0;
    color: #fff;
}

.product-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px; /* padding ثابت */
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    color: #b3a7a7;
    display: flex;
    flex-direction: column;
    overflow: hidden;     
}

.img-wrapper {
    width: 100%;
    height: 260px;
    overflow: hidden; 
    position: relative;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    transition: transform 0.5s ease-in-out;
    transform-origin: center center;
}

.product-info {
    flex-grow: 0;
}

.product-info h3 {
    margin: 10px 0 5px;
}

.product-info h3 a {
    color: black;
    font-size: 20px;    
}

.product-info p {
    margin: 5px 0 12px;
    color: #8a8a8a;
    font-size: 14px;
}

/* دکمه‌ها */
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-block;
    align-items: center;
    padding: 8px 7px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    color: #fff !important;
    transition: transform 0.2s ease-out, color 0.2s ease-out;
    will-change: transform, color; 
}

.contact-btn span:not(.channel) {
    display: inline-block;
}

.contact-btn span {
    white-space: nowrap;
}

.whatsapp-btn {
    background: #25D366;
}

.whatsapp-btn:hover {
    background: #1ebe5d;
}

.eta-btn {
    background: #ff8800;
}

.eta-btn:hover {
    background: #ec7f26;
}

.contact-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.contact-btn img {
    width: 20px;
    height: 20px;
}

.ast-site-identity {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-header-primary-section-right
 {
    flex-direction: row;
}

.ast-grid-section-center {    
    visibility: hidden;
}

.custom-header-phone a {
    font-weight: bold;
    font-size: 16px;
    color: #114C44;
    text-decoration: none;
}

header .custom-logo-link img {
    max-width: 60px;
    width: 60px;
    border-radius: 10px;
    filter: drop-shadow(0px 0px 6px #114C44);
}

.fabric-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.fabric-item {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}

.fabric-item img {
    width: 100%;
    border-radius: 12px;
}

.fabric-categories-section {
    background-color: #FFF;
    padding: 30px 0;
}

.main, .fabric-categories-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.fabric-category-card {
    text-align: center;
    background: #cbd9d1;
    padding: 18px;
    cursor: pointer;
    border: 1px;
    border-style: ridge;
    border-radius: 15px;
    transition: transform 0.5s;  
}

.fabric-category-card img {
    width: 250px;
    height: 250px;
    margin-bottom: 10px;
}

.fabric-category-card:hover {
    transform: translateY(-15px);
}

.fabric-category-card h3 {
    margin: 0;
    font-size: 16px;
    background-color: #1B7367;
    padding: 10px;
    color: #fff;
}

.fabric-category-card h3 a {
    text-decoration: none;
    color: #fff !important;
    transition: color 0.3s;
}

.fabric-category-card h3 a:hover {
    color: #0073aa;
}

.features {
    max-width: 1155px;
    margin: 0px auto;
    padding-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* چهار ستونه */
    gap: 18px;
}

.feature-item {
    background: #1B7367;
    padding: 15px;
    border-radius: 26px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .1);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    border: 2px solid #fff;
}

.feature-item img {
    width: 100px;
    height: 100px;
    filter: invert(1);
}

.feature-item h4 {
    margin: 8px 0;
    color: #fff;
}

.product-category {
    margin-top: 8px;
    text-align: center;
}

.product-category a {
    display: inline-block;
    background: #219988;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    margin: 3px;
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
    transition: 0.5s;
}

.product-category a:hover {
    transform: translateY(-3px);
}

.main-header-menu .sub-menu .menu-link {
    white-space: nowrap;
}

/* فرم جستجو منو همیشه باز */
.ast-search-menu-icon.slide-search {
    height: auto !important;           /* غیرفعال کردن محدودیت ارتفاع */
    overflow: visible !important;      /* نمایش کامل فرم */
    visibility: visible !important;    /* اجباری نمایش */
    opacity: 1 !important;             /* اجباری نمایش */
}

/* فرم داخل منو */
.ast-search-menu-icon.slide-search .search-form {
    top: -5px !important;
    transform: none !important;        /* جلوگیری از حرکت توسط JS */
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    border-color: #CBD9D1;
}

.ast-search-menu-icon.slide-search .search-form:focus-within {
    border-color: #1B7367;
}

.ast-icon.icon-search svg {
    margin-top: 7px;
    margin-left: 0px;
}

/* input فرم */
.ast-search-menu-icon.slide-search .search-field {
    width: 240px !important;
    padding: 6px 12px !important;
    transition: all 0.5s ease !important;
}

/* وقتی focus می‌شود */
.ast-search-menu-icon.slide-search .search-field:focus {
    outline: none !important;
    border: 0px !important;
}

.img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-frame, .image-cadr {
    display: inline-block;
    padding: 4px;
    background: url('../../uploads/images/frame.png') center center no-repeat;
    background-size: 100% 100%;
    overflow: hidden;
    border: 2px;
    border-style: groove;
    border-color: #aaa;
    width: 100%;
    height: 100%;
}

.image-cadr {
    height: 220px;
}

.image-frame img {
    display: block;
    cursor: zoom-in;
    transition: transform 0.5s ease-in-out;
}

.image-cadr img {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    transition: transform 0.5s ease-in-out;
}

.contact-btn {
    display: inline-block;
    align-items: center;
    padding: 8px 7px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    color: #fff !important;
    transition: transform 0.2s ease-out, color 0.2s ease-out;
    will-change: transform, color;
}

.channels .contact-btn {
    display: inline-block;
    align-items: center;
    padding: 19px 5px;
    border-radius: 8px;
    font-size: 18px;
    color: #fff !important;
    transition: transform 0.2s ease-out, color 0.2s ease-out;
    will-change: transform, color;
    width: 150px;
    height: 65px;
}

.contact-row {
    display: flex;
    gap: 12px;
    text-align: center;
    margin: 0 auto;
}

.products-title {
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 3px 1px 1px rgb(0 0 0 / 30%);
}

.products-title h1 {
    color: #fff;
}

.custom-header-phone i {
    font-family: "Font Awesome 7 Pro" !important;
}

.ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
    fill: #114C44 !important;
}

.ast-builder-menu-1 .menu-item.current-menu-item > .menu-link, .ast-builder-menu-1 .menu-item:hover > .menu-link,  .ast-builder-menu-1 .current-menu-ancestor > .menu-link {
    color: #1B7367 !important;
}

.ast-builder-menu-1 .menu-item.current-menu-item > .menu-link,  .ast-builder-menu-1 .current-menu-ancestor > .menu-link {
    font-weight: bold;
}

.ast-icon.icon-search svg {           
    color: #114C44;
}

.ast-builder-grid-row>.site-header-section {
    padding-left: 34px;
}

/* دسکتاپ: ۴ ستون ثابت */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (min-width: 922px) {
    .site-content .ast-container {
        display: block;
    }
}

/* تبلت */
@media (min-width: 768px) and (max-width: 1023px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .image-cadr {
        height: 120px;
        padding: 2px;
    }
    .image-frame img {
        width: 100% !important;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .single-fabric-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .single-fabric-image {
        width: 100%;
    }    
    /* .contact-buttons {
        flex-wrap: nowrap;
    } */
    .contact-btn {
        /* width: 50%; */
        justify-content: center;
    }

    .fabric-categories-wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
        padding: 0 15px;
    }

    .fabric-category-card {
        width: 100%;
        padding: 12px;
    }

    .fabric-category-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }

    .fabric-category-card h3 {
        display: grid;
        height: 48px;
        padding: 0 10px;
    }    

    .fabric-category-card h3 a {
        font-size: 12px;
        font-weight: bold;
        margin: auto;
    }
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-item img {
        width: 70px;
        height: 70px;
    }
    .feature-item h4 {
        margin-bottom: auto !important;
        font-size: 12px;
    }
    .ast-icon.icon-search svg {       
        margin-left: 10px;
    }
    .ast-builder-grid-row {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-column-gap: 0;
    }
    .site-title {
        font-size: 1.2rem;
        padding-bottom: 5px;
    }
    .site-header-below-section-center { 
        display: none;
    }
    .ast-builder-grid-row>.site-header-section {
        padding-left: 0;
    }
    .ast-logo-title-inline .site-logo-img {
        padding-right: 0;
    }
    .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-item > .menu-link, .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-ancestor > .menu-link, .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item:hover > .menu-link {
        color: #1B7367 !important;
    }

    .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-item > .menu-link, .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-ancestor > .menu-link {
        font-weight: bold;
    }
}