/******************************************************************************
*file name:product-tabs.php
*******************************************************************************/
/* Catalog Inline Link */
.product-files-inline { margin-top: 8px; }
.product-files-inline .go-to-catalog {
    margin-top: 10px; margin-bottom: 20px;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px; border: 1px solid #e0e0e2; border-radius: 8px;
    background: #fff; color: #232933; line-height: 1.2;
    text-decoration: none; font-size: 14px;
}
.product-files-inline .go-to-catalog img {
    width: 48px; height: 48px; display: block; object-fit: contain;
}
.product-files-inline .go-to-catalog:hover {
    background: #fff3f3; border-color: #f0c2c2; color: #a81010;
}

/* Catalog Tab Content */
.product-files .pf-icon { height: 48px; width: auto; flex: 0 0 auto; }
.product-files .pf-item + .pf-item { margin-top: 8px; }
.product-files .pf-link { display: inline-flex; align-items: center; gap: 12px; line-height: 1.6; text-decoration: none; color: inherit; }
.product-files .pf-link:hover,
.product-files .pf-link:focus-visible { text-decoration: underline; }
.product-files .pf-link:active { opacity: .85; }
.product-files-inline .go-to-catalog img { height: 52px; width: auto; }


/******************************************************************************
*file name:product-add-to-cart-box.php
*******************************************************************************/
/*********** افزودن واحد شمارش به زیر فیلد تعداد در صفحه محصول**************************/
.quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* ایجاد موقعیت نسبی برای افزودن متن واحد شمارش */
    }
/* استایل فیلد تعداد */
.quantity input.qty {
    height: 60px; /* 20% کاهش ارتفاع */
    font-size: 20px; /* اندازه متن عدد */
    text-align: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* تنظیم استایل دکمه‌های افزایش و کاهش تعداد */
.quantity .plus, .quantity .minus {
    width: 50px;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    box-sizing: border-box;
}
.quantity-holder:not(.hidden) .decrease-qty, .quantity-holder:not(.hidden) .increase-qty {
    height: 60px !important;
}
/* تنظیم موقعیت واحد شمارش زیر فیلد تعداد */
.quantity .unit-label {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #333;
    text-align: center;
}

/**************** اضافه کردن دکمه‌های تجهیزات جانبی و تجهیزات مکمل به کالا*****************/
 /* CORE ELEMENTS*/
.ks-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    width: 210px;
    display: flex;
    flex-direction: column;
}
.ks-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 6px;
}
.ks_MUTED,.ks-muted {
    opacity: .85;
    font-size: .9em;
    line-height: 1.6;
    margin: 6px 0 10px;
}
.ks-link {
    color: inherit;
    text-decoration: none;
}
.ks-link:hover {
    text-decoration: underline;
}
.ks-btn {
    background: #fff;
    color: #a81010;
    border: none;
    border-radius: 8px;
    padding: 8px 8px;
    cursor: pointer;
}
.ks-btn--secondary {
    background: #fff;
    color: #a81010;
    border: 1px solid #a81010;
}
.ks-btn--secondary:hover {
    background: #a81010;
    color: #fff;
}
.ks-btn--ghost {
    background: #fff;
    color: #a81010;
    border: 2px solid #a81010;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}
.ks-btn--ghost:hover {
    background: #a81010;
    color: #fff;
}
.ks-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.ks-row--mb8 {
    margin-bottom: 8px;
}
.ks-price {
    min-height: 1.6em;
}
.ks-price--m6 {
    margin: 6px 0;
}
.ks-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.ks-section-title {
    width: 100%;
    margin: 6px 0 10px;
    font-size: 1em;
    opacity: 0.85;
}
.ks-divider {
    width: 100%;
    height: 1px;
    background: #eee;
}
.ks-placeholder-120 {
    height: 120px;
}
 /* MODAL*/
.ks-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 2147483647;
    align-items: flex-start;
    justify-content: center;
    padding: 6vh 12px;
}
.ks-modal.is-open {
    display: flex;
}
.ks-modal__box {
    background: #fff;
    max-width: 960px;
    width: 100%;
    border-radius: 12px;
    padding: 16px;
    max-height: 88vh;
    overflow: auto;
}
body.ks-lock {
    overflow: hidden;
}
.ks-modal__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.ks-modal__header .ks-title {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

 /* CTA BUTTON GROUP UNDER ADD TO CART*/
.ks-rel-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
.ks-rel-actions .ks-btn {
    flex: 1 1 0;
    width: auto;
}
.ks-rel-actions.single .ks-btn {
    flex-basis: 100%;
}

 /* CATEGORY CARD*/
.ks-card--cat .ks-cat-title {
    text-align: center;
    font-weight: 500;
    margin: 6px 0 10px;
}
.ks-card--cat .ks-thumb img {
    display: block;
    margin: 0 auto 6px;
}

 /* FOCUS ACCESSIBILITY*/
.ks-btn:focus-visible,.ks-link:focus-visible {
    outline: 2px solid #a81010;
    outline-offset: 2px;
    border-radius: 8px;
}

 /* ADMIN ACF PANEL (BACK-END)*/
#acf-group_68b3d66e4cdf9 {
    display: none !important;
}
#kooshanic_rel_panel {
    padding-inline: 20px;
}
#kooshanic_rel_panel .acf-field {
    padding-inline: 8px;
    box-sizing: border-box;
}
#kooshanic_rel_panel .acf-field .acf-input > p.description {
    margin: 6px 0 0;
}


 /* MOBILE RESPONSIVE*/
@media (max-width: 640px) {
    .ks-modal {
        align-items: flex-start;
        padding: 12px;
    }
    .ks-modal__box {
        max-width: 100%;
        width: 100%;
        padding: 12px;
        border-radius: 12px;
    }
    .ks-flex {
        flex-direction: column;
        gap: 10px;
    }
    .ks-card {
        width: 100%;
    }
    .ks-card img {
        margin: 0 auto 6px;
        display: block;
    }
    .ks-row .ks-btn,.ks-modal__box .ks-row > .ks-btn {
        width: auto;
        flex: 0 0 auto;
    }
    .ks-rel-actions {
        flex-direction: column;
    }
    .ks-rel-actions .ks-btn {
        width: 100%;
        flex-basis: auto;
    }
}


/******************************************************************************
*file name:product-onepiece.php
*******************************************************************************/
