@import url("../fonts/remixicon/remixicon.css");

/**
 * Shared Core Comprehensive Typography, Absolute Full-Width & Structural Reset
 * Token: [UI-RECOVERY-BODY]
 */

/* 📦 A. LOCAL PHYSICAL FONTS REGISTRATION */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn[wght].woff2') format('woff2-variations'),
         url('../fonts/vazirmatn/Vazirmatn[wght].woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* 📐 B. GLOBAL SEMANTIC CONTAINER RESET */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, asymmetric, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

:root {
    --base-font-size: 16px;
    --h1-size: 2.25rem;
    --h2-size: 1.85rem;
    --h3-size: 1.50rem;
    --h4-size: 1.25rem;
    --h5-size: 1.10rem;
    --h6-size: 1.00rem;
    --p-size: 1.00rem;
}

@media screen and (max-width: 768px) {
    :root {
        --base-font-size: 14px;
        --h1-size: 1.70rem;
        --h2-size: 1.45rem;
        --h3-size: 1.25rem;
        --h4-size: 1.15rem;
        --h5-size: 1.05rem;
        --h6-size: 0.95rem;
        --p-size: 0.95rem;
    }
}

/* 🗺️ C. RTL DIRECTIONALITY, TYPOGRAPHY & OVERFLOW SAFETY */
html, body, #page, .site {
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}
html, body {
    direction: rtl !important;
    unicode-bidi: embed !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: var(--base-font-size) !important;
    line-height: 1.7 !important;
    background-color: #FFFFFF;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    width: 100% !important;
}

input, select, textarea, button {
    font-family: 'Vazirmatn', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Vazirmatn', sans-serif !important;
    color: #1A1A1A !important;
    line-height: 1.4 !important;
    margin-bottom: 1rem;
}

h1 { font-size: var(--h1-size) !important; font-weight: 700 !important; }
h2 { font-size: var(--h2-size) !important; font-weight: 700 !important; }
h3 { font-size: var(--h3-size) !important; font-weight: 600 !important; }
h4 { font-size: var(--h4-size) !important; font-weight: 600 !important; }
h5 { font-size: var(--h5-size) !important; font-weight: 500 !important; }
h6 { font-size: var(--h6-size) !important; font-weight: 500 !important; }

p, a, li, span {
    font-family: 'Vazirmatn', sans-serif !important;
}

p {
    font-size: var(--p-size) !important;
    color: #4A4A4A !important;
    font-weight: 400 !important;
    margin-bottom: 1.25rem;
    text-align: justify;
}

a { 
    text-decoration: none !important; 
}

/* 🗂️ D. NAVIGATION VS. CONTENT BULLET-LIST ISOLATION */
.main-navigation-custom-bridge ul,
.bos-clean-nav-menu,
.product.type-product ul,
.woocommerce-loop-product__title,
.widget_product_categories ul,
.site-header ul,
.site-footer ul,
.woocommerce-mini-cart ul,
.cart_totals ul,
.woocommerce-checkout ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.entry-content ul,
.product-single-description-block ul,
.wp-block-post-content ul {
    list-style: disc !important;
    margin-right: 0px !important;
    margin-bottom: 1.25rem !important;
    padding-right: 2px !important;
}

.entry-content li,
.product-single-description-block li,
.wp-block-post-content li {
    margin-bottom: 0.5rem !important;
}

/* 📐 E. ABSOLUTE VIEWPORT STRIP OVERRIDES (DESKTOP / TABLET / MOBILE) */
#bos-global-header, 
#bos-global-footer,
.site-header,
.site-footer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    left: 0 !important;
    right: 0 !important;
    position: relative !important;
}
.header-inside-grid, 
.footer-inside-grid,
#bos-primary-main-runtime,
.inside-header,
.inside-footer {
    width: 100% !important;
    max-width: 1250px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 0px !important;
    left: 0 !important;
    right: 0 !important;
}
.header-inside-grid {
    position: relative !important;
}
.main-navigation-custom-bridge {
    position: static !important;
}

/* 🚫 ERADICATE PARENT LAYOUT MENUS & COLLIDING NAVIGATION LAYERS */
nav#site-navigation,
div.main-navigation,
.main-navigation,
#mobile-header,
.menu-toggle,
.main-nav,
.sub-menu-dropdown {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* 🏷️ UNIFIED BRAND LOGO RESPONSIVE CONTAINMENT */
.site-branding-logo img,
.custom-logo-link img,
img.custom-logo {
    max-width: 140px !important;
    height: auto !important;
    object-fit: contain !important;
    transition: all 0.3s ease !important;
}

@media screen and (max-width: 1024px) {
    .site-branding-logo img,
    .custom-logo-link img,
    img.custom-logo {
        max-width: 160px !important;
    }
}

@media screen and (max-width: 768px) {
    .site-branding-logo img,
    .custom-logo-link img,
    img.custom-logo {
        max-width: 120px !important;
    }
}

/* --- 🖥️ DESKTOP MEGA MENU SUBSYSTEM --- */
@media screen and (min-width: 993px) {
    .bos-clean-nav-menu {
        position: relative !important;
    }
    .bos-clean-nav-menu .menu-item-has-children {
        position: static !important;
    }
    .bos-clean-nav-menu .sub-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-radius: 8px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px !important;
        padding: 24px !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(10px) !important;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
        z-index: 99999 !important;
    }
    .bos-clean-nav-menu .menu-item-has-children:hover .sub-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
    .bos-clean-nav-menu .sub-menu li {
        display: block !important;
    }
    .bos-clean-nav-menu .sub-menu a {
        font-weight: 500 !important;
        color: #1A1A1A !important;
        padding: 6px 0 !important;
        display: block !important;
        transition: color 0.2s ease !important;
    }
}

/* 📦 F. CUSTOM VECTOR BALE APP REMIXICON MAPPING */
.ri-bale-fill::before,
.ri-bale-app::before {
    content: "";
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    background-color: currentColor;
    vertical-align: middle;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1012'><path fill='black' d='M514,1011.85q-23.87,0-49-2.42c-30.39-2.35-62.93-8.66-98.82-19.23l-22-6.47-.16-1.1C198,932.06,80.66,810.7,34.86,661,24,626.11,17.21,591.57,14.6,558.43c-2.82-25.29-2.57-50.07-2.32-74,.08-8,.16-15.94.12-23.9-.23-25.23-.23-50.7-.08-76.16-.15-25.61-.15-51.71,0-77.82-.11-16.34-.09-33.13-.08-49.9V239.94c0-8.12,0-16.15,0-24.17,0-14.3,0-28.62.15-42.9-.19-14.14-.17-28.28-.15-42.42q0-11.19,0-22.41C10.2,79.7,20.8,52.3,40.81,34.46c23-20.8,56.7-27.85,85.6-17.78,12.23,4.13,22.14,10.44,30.88,16l4.6,2.91c28.76,18.7,55.75,38.17,79.76,56.09,10.29-6.72,20.61-12.85,31.09-18.5a477.66,477.66,0,0,1,45.46-22c15.67-6.54,31.91-12.41,49.87-18l3.66-1c16.56-4.56,33.69-9.28,52.11-11.93a401.11,401.11,0,0,1,61.56-7.18,452.33,452.33,0,0,1,76.5,1.75A414.55,414.55,0,0,1,619.17,24C747.67,51.09,862.22,130.89,933.5,243A490.75,490.75,0,0,1,1000,402.84c5.46,24.22,8.56,44.62,9.72,63.9a418.71,418.71,0,0,1,.72,80.39c-.86,20-3.07,37.52-6.71,53.28-1.78,15.87-5.92,30.76-9.58,44L992.85,649c-5.36,20.35-13.31,40.5-19.68,56.69l-.45,1.07c-5.82,13.48-12.54,27.39-21.78,45.13l-.65,1.18c-8.38,14.71-16.23,27.45-24,39-9.31,13.69-19.52,27.23-30.43,40.38-10.23,12-22.19,25.66-35.56,38.34a502.07,502.07,0,0,1-50.93,43.19A453.61,453.61,0,0,1,761,945.46c-20.35,12.11-40.93,21.41-58.42,28.9a547.3,547.3,0,0,1-66.11,22l-9.19,2.09c-16.06,3.62-32.66,7.37-50.51,8.88A422.74,422.74,0,0,1,514,1011.85ZM408.37,927.42A380,380,0,0,0,471.25,938q52.22,5,95.87-1.73l2.68-.31c13.2-1,27-4.15,41.66-7.45l7.25-1.62a473.12,473.12,0,0,0,56.19-18.68c14.83-6.37,32.9-14.5,49.8-24.59l1-.56a382.18,382.18,0,0,0,41.11-26.83A428.3,428.3,0,0,0,810.65,819c11.28-10.7,21.65-22.54,30.36-32.77,9.17-11.06,18-22.78,26-34.49,6.56-9.72,13.36-20.77,20.72-33.64,8.12-15.62,14-27.79,19-39.31,5.93-15.05,12.61-32.05,16.94-48.5l1.41-5.1c3.38-12.16,6.57-23.64,7.56-34.17l.87-5.15c2.92-12,4.68-25.9,5.36-42.57l.11-1.67a347.17,347.17,0,0,0-.61-68l-.15-1.87c-.88-15.52-3.48-32.47-8.19-53.36A419.67,419.67,0,0,0,873.07,281.5C812.86,186.81,712.27,116.74,604,94l-.94-.21a345.57,345.57,0,0,0-48.23-7.67,383.17,383.17,0,0,0-65.33-1.5l-1,0a331,331,0,0,0-51.74,6.09l-2,.33c-14.19,2-28.67,6-44,10.19l-1.87.51c-15.6,4.9-29.63,10-42.87,15.49a411.55,411.55,0,0,0-38.88,18.79,361,361,0,0,0-36.39,22.44,110.18,110.18,0,0,1-13.63,8.57l-20.25,10.82L218.55,164c-27.61-21-60.5-45.43-95.08-67.93l-4.64-2.92c-5.84-3.72-11.35-7.22-15.68-8.69-4.57-1.57-10.65-.11-14.47,3.32-3.62,3.24-5.49,9.27-4.92,15.52l.15,3.13c0,8,0,16.08,0,24.13,0,13.94,0,27.87.15,41.81v1c-.19,14.09-.17,28.21-.15,42.31,0,8.14,0,16.28,0,24.4v16.6c0,16.61,0,33.21.08,49.82-.15,26.28-.15,52.1,0,77.85-.15,25.53-.15,50.63.08,75.67,0,8.47,0,16.79-.12,25.11-.24,23-.46,44.76,1.94,65.89l.12,1.28c2.16,28,8,57.47,17.35,87.6,40.53,132.48,151.57,242.73,282.94,281Z' fill='currentColor'/></svg>") no-repeat center;
    -webkit-mask-size: contain;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1012'><path fill='black' d='M514,1011.85q-23.87,0-49-2.42c-30.39-2.35-62.93-8.66-98.82-19.23l-22-6.47-.16-1.1C198,932.06,80.66,810.7,34.86,661,24,626.11,17.21,591.57,14.6,558.43c-2.82-25.29-2.57-50.07-2.32-74,.08-8,.16-15.94.12-23.9-.23-25.23-.23-50.7-.08-76.16-.15-25.61-.15-51.71,0-77.82-.11-16.34-.09-33.13-.08-49.9V239.94c0-8.12,0-16.15,0-24.17,0-14.3,0-28.62.15-42.9-.19-14.14-.17-28.28-.15-42.42q0-11.19,0-22.41C10.2,79.7,20.8,52.3,40.81,34.46c23-20.8,56.7-27.85,85.6-17.78,12.23,4.13,22.14,10.44,30.88,16l4.6,2.91c28.76,18.7,55.75,38.17,79.76,56.09,10.29-6.72,20.61-12.85,31.09-18.5a477.66,477.66,0,0,1,45.46-22c15.67-6.54,31.91-12.41,49.87-18l3.66-1c16.56-4.56,33.69-9.28,52.11-11.93a401.11,401.11,0,0,1,61.56-7.18,452.33,452.33,0,0,1,76.5,1.75A414.55,414.55,0,0,1,619.17,24C747.67,51.09,862.22,130.89,933.5,243A490.75,490.75,0,0,1,1000,402.84c5.46,24.22,8.56,44.62,9.72,63.9a418.71,418.71,0,0,1,.72,80.39c-.86,20-3.07,37.52-6.71,53.28-1.78,15.87-5.92,30.76-9.58,44L992.85,649c-5.36,20.35-13.31,40.5-19.68,56.69l-.45,1.07c-5.82,13.48-12.54,27.39-21.78,45.13l-.65,1.18c-8.38,14.71-16.23,27.45-24,39-9.31,13.69-19.52,27.23-30.43,40.38-10.23,12-22.19,25.66-35.56,38.34a502.07,502.07,0,0,1-50.93,43.19A453.61,453.61,0,0,1,761,945.46c-20.35,12.11-40.93,21.41-58.42,28.9a547.3,547.3,0,0,1-66.11,22l-9.19,2.09c-16.06,3.62-32.66,7.37-50.51,8.88A422.74,422.74,0,0,1,514,1011.85ZM408.37,927.42A380,380,0,0,0,471.25,938q52.22,5,95.87-1.73l2.68-.31c13.2-1,27-4.15,41.66-7.45l7.25-1.62a473.12,473.12,0,0,0,56.19-18.68c14.83-6.37,32.9-14.5,49.8-24.59l1-.56a382.18,382.18,0,0,0,41.11-26.83A428.3,428.3,0,0,0,810.65,819c11.28-10.7,21.65-22.54,30.36-32.77,9.17-11.06,18-22.78,26-34.49,6.56-9.72,13.36-20.77,20.72-33.64,8.12-15.62,14-27.79,19-39.31,5.93-15.05,12.61-32.05,16.94-48.5l1.41-5.1c3.38-12.16,6.57-23.64,7.56-34.17l.87-5.15c2.92-12,4.68-25.9,5.36-42.57l.11-1.67a347.17,347.17,0,0,0-.61-68l-.15-1.87c-.88-15.52-3.48-32.47-8.19-53.36A419.67,419.67,0,0,0,873.07,281.5C812.86,186.81,712.27,116.74,604,94l-.94-.21a345.57,345.57,0,0,0-48.23-7.67,383.17,383.17,0,0,0-65.33-1.5l-1,0a331,331,0,0,0-51.74,6.09l-2,.33c-14.19,2-28.67,6-44,10.19l-1.87.51c-15.6,4.9-29.63,10-42.87,15.49a411.55,411.55,0,0,0-38.88,18.79,361,361,0,0,0-36.39,22.44,110.18,110.18,0,0,1-13.63,8.57l-20.25,10.82L218.55,164c-27.61-21-60.5-45.43-95.08-67.93l-4.64-2.92c-5.84-3.72-11.35-7.22-15.68-8.69-4.57-1.57-10.65-.11-14.47,3.32-3.62,3.24-5.49,9.27-4.92,15.52l.15,3.13c0,8,0,16.08,0,24.13,0,13.94,0,27.87.15,41.81v1c-.19,14.09-.17,28.21-.15,42.31,0,8.14,0,16.28,0,24.4v16.6c0,16.61,0,33.21.08,49.82-.15,26.28-.15,52.1,0,77.85-.15,25.53-.15,50.63.08,75.67,0,8.47,0,16.79-.12,25.11-.24,23-.46,44.76,1.94,65.89l.12,1.28c2.16,28,8,57.47,17.35,87.6,40.53,132.48,151.57,242.73,282.94,281Z' fill='currentColor'/></svg>") no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* --- 🪐 BACKDROP & MINI-CART OVERLAYS BASE FRAMEWORK --- */
.bos-global-backdrop-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    background: rgba(0, 0, 0, 0.4) !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}
.bos-global-backdrop-overlay.is-active {
    opacity: 1 !important;
    visibility: visible !important;
}

#app-cart-sheet {
    position: fixed;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    direction: rtl !important;
}

/* Mobile: Bottom Sheet */
@media screen and (max-width: 768px) {
    #app-cart-sheet {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 80vh;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
    }
    #app-cart-sheet.show {
        transform: translateY(0);
    }
}

/* Desktop: Right Sidebar */
@media screen and (min-width: 769px) {
    #app-cart-sheet {
        top: 0;
        right: 0;
        bottom: 0;
        width: 400px;
        height: 100vh;
        max-height: 100vh;
        left: auto;
        transform: translateX(100%);
    }
    #app-cart-sheet.show {
        transform: translateX(0);
    }
}

/* Inner Layout Elements */
.bos-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}
.bos-sheet-title {
    margin: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}
.bos-sheet-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    color: inherit;
}
.bos-sheet-close-btn svg {
    width: 20px;
    height: 20px;
}
.bos-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.bos-sheet-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

/* Cart Item Rows */
.bos-cart-item-row {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.bos-cart-item-row:last-child {
    border-bottom: none;
}
.bos-item-thumb-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f9f9f9;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.bos-item-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bos-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.bos-quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    overflow: hidden;
    background: #FFF;
}
.bos-qty-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}
.bos-qty-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
.bos-qty-input {
    width: 32px;
    height: 28px;
    border: none;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    pointer-events: none;
    -moz-appearance: textfield;
}
.bos-qty-input::-webkit-outer-spin-button,
.bos-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Call to Actions styling */
.bos-sheet-footer .bos-btn-primary,
.bos-sheet-footer .bos-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none !important;
}

/* --- 🔔 SHARED TOAST NOTIFICATION SYSTEM --- */
#shared-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease, visibility 0.3s;
    width: auto;
    max-width: 90%;
}

#shared-toast.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}

#shared-toast .toast-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(34, 34, 34, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50px !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    white-space: nowrap !important;
}

#shared-toast .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
}

#shared-toast .text {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap !important;
}

#shared-toast .cta {
    font-size: 0.9rem;
    font-weight: 700;
    color: #08BFED !important;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 12px;
    margin-right: 4px;
    white-space: nowrap !important;
}

/* 🛒 WOOCOMMERCE LOOP GRID OVERRIDES & TITLE CLAMPING */
.woocommerce-loop-product__title {
    font-family: 'Vazirmatn', sans-serif !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 2.8rem !important;
    line-height: 1.4rem !important; /* Forces total containment within 2 lines */
    max-height: 2.8rem !important;
}

@media screen and (max-width: 768px) {
    /* Enforce strict, uncompromised 2-column distribution matrices */
    ul.products, 
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    .woocommerce ul.products[class*="columns-"],
    .woocommerce-page ul.products[class*="columns-"] {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 8px !important;
        margin: 10px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
    }
    ul.products li.product, 
    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product,
    .woocommerce ul.products[class*="columns-"] li.product,
    .woocommerce-page ul.products[class*="columns-"] li.product {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        list-style: none !important;
        list-style-type: none !important;
    }
}

ul.products li.product,
li.product.type-product {
    list-style: none !important;
    list-style-type: none !important;
}

/* 🏷️ ABSOLUTE ISOLATION FOR MOBILE BOTTOM NAVBAR */
.mobile-bottom-navbar {
    display: none !important;
}

@media screen and (max-width: 768px) {
    .mobile-bottom-navbar {
        display: flex !important;
    }
}

/* 📱 OFF-CANVAS MOBILE MENU DRAWER STYLING & ISOLATION */
#shared-mobile-menu,
.mobile-menu-drawer,
.mobile-menu-inner,
.mobile-menu-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media screen and (max-width: 768px) {
    #shared-mobile-menu,
    .mobile-menu-drawer {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        width: 320px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        background: #FFFFFF !important;
        z-index: 99999 !important;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15) !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
        flex-direction: column !important;
        direction: rtl !important;
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    #shared-mobile-menu.is-open,
    #shared-mobile-menu.is-active,
    .mobile-menu-drawer.is-open,
    .mobile-menu-drawer.is-active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateX(0) !important;
    }

    #shared-mobile-menu.is-open .mobile-menu-inner,
    #shared-mobile-menu.is-active .mobile-menu-inner,
    .mobile-menu-drawer.is-open .mobile-menu-inner,
    .mobile-menu-drawer.is-active .mobile-menu-inner {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        flex-direction: column !important;
        flex: 1 !important;
        height: 100% !important;
    }

    .mobile-menu-overlay {
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 99998 !important;
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
    }
    
    #shared-mobile-menu.is-open .mobile-menu-overlay,
    #shared-mobile-menu.is-active .mobile-menu-overlay,
    .mobile-menu-drawer.is-open .mobile-menu-overlay,
    .mobile-menu-drawer.is-active .mobile-menu-overlay,
    .mobile-menu-overlay.is-active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

@media screen and (min-width: 769px) {
    #shared-mobile-menu,
    .mobile-menu-drawer,
    .mobile-menu-inner,
    .mobile-menu-overlay {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* 🪐 DIRECT VIEWPORT STABILIZATION (KILL HORIZONTAL SCROLL) */
html, body, #page, .site, #bos-monorepo-site-wrapper {
    max-width: 100% !important;
    overflow-x: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 🏁 ERADICATE PAGINATION BULLET DEFECT */
.woocommerce-pagination ul.page-numbers,
ul.page-numbers,
.woocommerce-pagination ul.page-numbers li,
ul.page-numbers li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    gap: 8px !important;
}

/* 🏷️ RESULTS COUNTER TYPOGRAPHY OVERHAUL */
.woocommerce-result-count {
    padding-right: 16px !important;
    margin-left: auto !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 0.9rem !important;
}

/* 🪐 STICKY ATC FLOAT WRAPPER FOUNDATION */
#sticky-atc-bar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99990 !important;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.35s ease !important;
    bottom: 0 !important;
    top: auto !important;
    transform: translateY(100%) !important;
}
#sticky-atc-bar.is-active {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}
@media screen and (min-width: 769px) {
    #sticky-atc-bar {
        bottom: 0 !important;
        top: auto !important;
        transform: translateY(100%) !important;
    }
    #sticky-atc-bar.is-active {
        transform: translateY(0) !important;
    }
}
@media screen and (max-width: 768px) {
    #sticky-atc-bar {
        bottom: 64px !important; /* Stack neatly directly above custom bottom navbar (64px) */
        top: auto !important;
        transform: translateY(100%) !important;
    }
    #sticky-atc-bar.is-active {
        transform: translateY(0) !important;
    }
    .product_meta {
        display: none !important;
    }
}

/* 🌟 STAR RATING REGRESSION OVERRIDES */
.star-rating {
    font-family: sans-serif !important;
    position: relative;
    display: inline-block;
    width: 80px;
    height: 16px;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 2px;
    direction: ltr !important;
    text-align: left !important;
    overflow: hidden;
    white-space: nowrap;
    color: #e2e8f0 !important; /* empty stars color */
}
.star-rating::before {
    content: "\2605\2605\2605\2605\2605" !important; /* Unicode ★ character */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #e2e8f0 !important;
}
.star-rating span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    color: #fbbf24 !important; /* Gold */
}
.star-rating span::before {
    content: "\2605\2605\2605\2605\2605" !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 100%;
    color: #fbbf24 !important;
}

/* Comment Form Star selector */
.stars {
    display: inline-block;
    direction: ltr;
}
.stars a {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    text-indent: -9999px;
    color: transparent !important;
    margin-right: 2px;
}
.stars {
    display: none !important;
}

/* 🌟 CUSTOM STARS RATING SELECTOR */
.bos-custom-stars {
    display: inline-flex !important;
    gap: 6px !important;
    direction: ltr !important;
    margin: 8px 0 !important;
}
.bos-custom-stars .bos-star-btn {
    font-size: 1.5rem !important;
    color: #cbd5e1 !important;
    cursor: pointer !important;
    transition: color 0.2s ease, transform 0.1s ease !important;
}
.bos-custom-stars .bos-star-btn.hover,
.bos-custom-stars .bos-star-btn.active {
    color: #fbbf24 !important;
}
.bos-custom-stars .bos-star-btn:active {
    transform: scale(0.9) !important;
}

/* 📂 DRAG-AND-DROP FILE UPLOADER CELL */
.uploader {
    display: block !important;
    clear: both !important;
    width: 100% !important;
}
.uploader #file-drag {
    border: 2px dashed rgba(0, 0, 0, 0.15) !important;
    background: rgba(0, 0, 0, 0.02) !important;
    border-radius: 8px !important;
    padding: 30px 20px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}
.uploader #file-drag.hover,
.uploader #file-drag:hover {
    border-color: #9d3a8f !important;
    background: rgba(157, 58, 143, 0.03) !important;
}
.uploader #start i {
    font-size: 2.5rem !important;
    color: #9d3a8f !important;
    margin-bottom: 12px !important;
    display: block !important;
}
.uploader #file-upload-btn {
    background: #9d3a8f !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    display: inline-block !important;
    margin-top: 12px !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}
.uploader #file-upload-btn:hover {
    background: #7a2b6e !important;
    transform: translateY(-1px) !important;
}
.uploader #file-drag img {
    max-width: 120px !important;
    max-height: 120px !important;
    object-fit: cover !important;
    margin-top: 15px !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}
.uploader #file-drag img.hidden {
    display: none !important;
}
.uploader #messages {
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 0.85rem !important;
    margin-top: 10px !important;
}

/* 🏷️ PRICE TYPOGRAPHY SYNCHRONIZATION */
.price .amount {
    font-weight: 900 !important;
}
.price .amount .woocommerce-Price-currencySymbol {
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    color: #888888 !important;
    opacity: 0.85 !important;
    margin-right: 6px !important;
    display: inline-block !important;
}

/* 🚀 RELATED PRODUCTS DOWNSCALING & SYMMETRY */
.related.products > h2 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
}
.related.products ul.products li.product .woocommerce-loop-product__title,
.related.products ul.products li.product h3,
.related.products ul.products li.product .shadi-product-title,
.related.products ul.products li.product .shadi-product-title a,
.related.products ul.products li.product .intex-product-title,
.related.products ul.products li.product .intex-product-title a {
    font-size: 0.85rem !important;
    line-height: 1.4rem !important;
    max-height: 2.8rem !important;
    height: 2.8rem !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    text-overflow: ellipsis !important;
    font-weight: 600 !important;
}

/* ➕ MINUS / PLUS QUANTITY LAYOUT */
.quantity {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    padding: 2px !important;
    background: #f8fafc !important;
    overflow: hidden !important;
}
.quantity button {
    width: 32px !important;
    height: 32px !important;
    background: none !important;
    border: none !important;
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s, color 0.2s !important;
    padding: 0 !important;
}
.quantity button:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #0f172a !important;
}
.quantity input.qty {
    width: 45px !important;
    height: 32px !important;
    border: none !important;
    background: none !important;
    text-align: center !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield !important;
}
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Force absolute horizontal inline flex alignment on all pagination chains post-AJAX */
.woocommerce-pagination ul.page-numbers,
ul.page-numbers,
.generate-sections-container .page-numbers,
div.nav-links .page-numbers {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    list-style-type: none !important;
    margin: 24px auto !important;
    padding: 0 !important;
    gap: 8px !important;
    justify-content: center !important;
}

.woocommerce-pagination ul.page-numbers li,
ul.page-numbers li {
    list-style: none !important;
    list-style-type: none !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-pagination ul.page-numbers li .page-numbers,
ul.page-numbers li a,
ul.page-numbers li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    text-decoration: none !important;
}


/* Force absolute vertical stacking block separation on summary tabs */
.single-product .custom-accordion-item,
.woocommerce-tabs .custom-accordion-item {
    display: block !important;
    position: relative !important;
    clear: both !important;
    width: 100% !important;
    margin-bottom: 16px !important;
}

/* Ensure title trigger tracks occupy their own distinct independent block height */
.single-product .custom-accordion-trigger,
.woocommerce-tabs .custom-accordion-trigger {
    display: flex !important;
    position: relative !important;
    width: 100% !important;
    padding: 16px 20px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Isolate the body content box layer from bleeding underneath headers with smooth transition */
.single-product .custom-accordion-content,
.woocommerce-tabs .custom-accordion-content {
    display: block !important;
    position: relative !important;
    clear: both !important;
    width: 100% !important;
    padding: 0 20px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    max-height: 0 !important;
    opacity: 0 !important;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.single-product .custom-accordion-item.is-active .custom-accordion-content,
.woocommerce-tabs .custom-accordion-item.is-active .custom-accordion-content {
    max-height: 2000px !important;
    padding: 20px !important;
    margin-top: 4px !important;
    opacity: 1 !important;
}

/* FAQ Accordion Transitions */
.bos-faq-content {
    display: block !important;
    max-height: 0 !important;
    overflow: hidden !important;
    padding: 0 16px !important;
    opacity: 0 !important;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
}

.bos-faq-item.is-active .bos-faq-content {
    max-height: 1000px !important;
    padding: 12px 16px !important;
    opacity: 1 !important;
}

/* ---------------------------------------------------- */
/* 📝 CLIENT FEEDBACK & PAPERCLIP ATTACHMENT OVERHAUL   */
/* ---------------------------------------------------- */

/* Scale down review titles on desktop and mobile viewports */
h2.woocommerce-Reviews-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    line-height: 1.4 !important;
    color: #1a1a1a !important;
}
@media (max-width: 768px) {
    h2.woocommerce-Reviews-title {
        font-size: 1rem !important;
    }
}

/* Comment Form Textarea Wrapper & Actions Box */
.bos-comment-textarea-wrapper {
    position: relative !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.bos-comment-textarea-wrapper textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 16px 48px 16px !important; /* Extra bottom padding so text doesn't overlap action buttons */
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    resize: vertical !important;
}

.bos-comment-actions {
    position: absolute !important;
    bottom: 12px !important;
    left: 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    z-index: 10 !important;
}

.bos-attach-btn {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.bos-attach-btn i {
    font-size: 1.35rem !important;
}

/* Staged Thumbnails list and badges */
.bos-staged-thumbnails {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-top: 12px !important;
    margin-bottom: 12px !important;
}

.bos-thumbnail-badge {
    position: relative !important;
    width: 60px !important;
    height: 60px !important;
    display: block !important;
    box-sizing: border-box !important;
}

.bos-thumbnail-badge img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 6px !important;
}

.bos-remove-badge {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #dc3545 !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 12px !important;
    line-height: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15) !important;
}

.bos-remove-badge:hover {
    background: #bd2130 !important;
}



