/* ==================================================================
 *  Explore Shop - Version 83.0
 *  khanoumi.com/videos style:
 *  - clean RTL, 3-col grid with staggered tall cells
 *  - 20% always-open filter sidebar (right) + 70% main (left) layout
 *  - sticky labels filter strip + category search always visible
 *  - full-bleed Reels overlay with bottom-sheet comments drawer
 *  - infinite scroll via window scroll
 *  - theme footer hidden on /videos
 * ================================================================== */

/* ------------------------------------------------------------------
 *  0. Base reset + font
 * ------------------------------------------------------------------ */
.es-wrap,
.es-reels,
.es-drawer {
    box-sizing: border-box;
    direction: rtl;
    font-family: IranSans, IRANSans, ui-sans-serif, system-ui, -apple-system,
                 "Segoe UI", Tahoma, Arial, sans-serif;
    font-feature-settings: "ss02";
}
.es-wrap *,
.es-reels *,
.es-drawer * {
    box-sizing: border-box;
}

/* ------------------------------------------------------------------
 *  1. Design tokens
 * ------------------------------------------------------------------ */
:root {
    --es-bg: #ffffff;
    --es-fg: #171717;
    --es-text-soft: #6b7280;
    --es-border: #ececec;
    --es-border-strong: #d6d6d6;
    --es-surface-50: #f7f7f7;
    --es-surface-100: #efefef;
    --es-primary: #ff2d77;
    --es-primary-end: #ff0055;
    --es-overlay-scrim: rgba(0, 0, 0, 0.55);
    --es-radius: 8px;
    --es-radius-lg: 16px;
}

/* ------------------------------------------------------------------
 *  2. Inline explore block shell (lives inside the theme page flow)
 *  Layout: full-page band below theme header, above theme footer.
 *  Sidebar = 20% (right in RTL), Main = 70% via grid, Gap ~10%.
 * ------------------------------------------------------------------ */
.es-wrap.es-inline {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: var(--es-bg);
    color: var(--es-fg);
    padding: 16px 0 40px;
    overflow-x: hidden; /* جلو گیری قطعی از اسکرول عرضی کل صفحه */
    display: flex;
    flex-direction: column;
    align-items: center; /* تراز وسط‌چین کل بلاک اکسپلور */
}

.es-inline__shell {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* وسط‌چین کردن بدنه اصلی */
    padding: 0 16px;
}

.es-inline__row {
    display: grid;
    grid-template-columns: 20% 5% 75%;
    align-items: start;
    gap: 0;
    width: 100%;
}

/* ------------------------------------------------------------------
 *  3. Desktop sidebar (categories + search) — always-open 20% panel
 * ------------------------------------------------------------------ */
.es-sidebar-column {
    grid-column: 1;
    width: 100%;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    flex-shrink: 0;
}
.es-sidebar {
    flex: 1;
    min-height: 0;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--es-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.02);
}
.es-sidebar::-webkit-scrollbar { width: 6px; }
.es-sidebar::-webkit-scrollbar-thumb { background: #e5e5e5; border-radius: 3px; }

.es-sidebar__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: var(--es-fg);
    font-family: inherit;
    text-align: right;
    font-weight: 700;
    flex-shrink: 0;
}
.es-sidebar__title svg {
    transition: transform .2s ease;
    color: var(--es-fg);
}
/* Always-open: caret stays rotated */
.es-sidebar .es-sidebar__title svg { transform: rotate(180deg); }

/* Search is always visible (panel always open) */
.es-sidebar__panel {
    display: block;
    padding: 0 10px 12px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
/* When sidebar is closed via toggle, hide the panel and reset caret */
.es-sidebar:not(.is-open) .es-sidebar__panel {
    display: none;
}
.es-sidebar:not(.is-open) .es-sidebar__title svg {
    transform: rotate(0deg);
}
/* Collapse the entire sidebar box when closed */
.es-sidebar:not(.is-open) {
    flex: 0 0 auto;
    overflow: visible;
}
.es-product-search-sidebar:not(.is-open) {
    flex: 0 0 auto;
    overflow: visible;
}

/* Product Search Sidebar Section */
.es-product-search-sidebar {
    flex: 1;
    min-height: 0;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--es-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.02);
}
.es-product-search-sidebar .es-sidebar__panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.es-product-search__list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.es-product-search__list::-webkit-scrollbar {
    width: 4px;
}
.es-product-search__list::-webkit-scrollbar-thumb {
    background: #e5e5e5;
    border-radius: 3px;
}
.es-product-search__placeholder {
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
    padding: 24px 8px;
}
.es-product-search__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.es-product-search__item:hover {
    background: #f1f5f9;
}
.es-product-search__item-img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border:1px solid rgba(255,255,255,.2);
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}
.es-product-search__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.es-product-search__noimg {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.es-product-search__noimg::after {
    content: '';
    display: block;
    width: 33px;
    height: 33px;
    background: #cbd5e1;
    border-radius: 4px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center/contain no-repeat;
}
.es-product-search__item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.es-product-search__item-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.es-product-search__item-price {
    font-size: 11px;
    color: #7c3aed;
    font-weight: 500;
}
.es-product-search__list-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    font-size: 12px;
    color: #7c3aed;
    font-weight: 600;
    text-align: center;
}
.es-product-search__list-loading::before {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid rgba(124, 58, 237, 0.2);
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: es-spin .8s linear infinite;
}

.es-sidebar__search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    margin: 0 10px 8px;
    border: 1px solid var(--es-border);
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.15s;
}
.es-sidebar__search:focus-within {
    border-color: var(--es-primary);
}
.es-sidebar__search input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--es-fg);
    font-family: inherit;
}
.es-sidebar__search input::placeholder { color: var(--es-text-soft); }
.es-sidebar__search svg { color: var(--es-text-soft); flex: none; }

.es-sidebar__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.es-cat-btn {
    appearance: none;
    border: 0;
    background: transparent;
    text-align: right;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--es-fg);
    cursor: pointer;
    border-radius: 0;
    font-family: inherit;
    transition: color .15s, background-color .15s;
}
.es-cat-btn:hover { color: var(--es-primary); }
.es-cat-btn.is-active {
    color: var(--es-primary);
    font-weight: 700;
    background: rgba(255, 45, 119, 0.07);
}

/* Spacer column (10%) — reserved between sidebar and main */
.es-inline__row > .es-gap {
    grid-column: 2;
}

/* ------------------------------------------------------------------
 *  4. Main column (labels + feed) — 70% grid column
 * ------------------------------------------------------------------ */
.es-cols {
    grid-column: 3;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    align-items: center; /* تراز وسط‌چین کانتینر اصلی محتوا */
}

/* ------------------------------------------------------------------
 *  5. Sticky labels strip (categories on mobile + scroll on desktop)
 * ------------------------------------------------------------------ */
.es-labels {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    padding: 8px 0 10px;
    margin-bottom: 8px;
    overflow: visible !important; /* مجاز کردن منو بیشتر برای باز شدن رو به پایین */
    width: 100%;
    display: flex;
    justify-content: center; /* وسط‌چین کردن کامل تب‌ها */
}
.es-labels__track {
    display: flex;
    flex-wrap: wrap; /* مجاز کردن شکستن یا ردیف منظم بدون اسکرول عرضی */
    justify-content: center; /* تراز وسط تب‌ها */
    gap: 8px;
    overflow: visible !important; /* باز شدن دراپ‌داون بدون بریدگی */
    padding-bottom: 4px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.es-label {
    appearance: none;
    border: 1px solid var(--es-border-strong);
    background: var(--es-surface-50);
    color: #4b4b4b;
    font-size: 12px;
    line-height: 1.2;
    min-height: 30px;
    height: 30px;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-sizing: border-box;
    flex: 0 0 auto;
    vertical-align: middle;
    transition: color .15s, border-color .15s, background-color .15s;
}
.es-label svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px;
    min-height: 14px;
    max-width: 14px;
    max-height: 14px;
    flex: 0 0 14px;
    display: block;
}
.es-label:hover { border-color: var(--es-primary); background: #fff; }
.es-label.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--es-primary), var(--es-primary-end));
    border-color: transparent;
    font-weight: 700;
}
.es-ai-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    padding: 5px !important;
    margin-inline: 0;
    box-sizing: border-box;
}
.es-ai-label svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    flex: 0 0 14px !important;
    display: block;
}
.es-ai-label:not(.is-active) svg { opacity: .82; }

/* Keep the category bar stable when the AI/star filter is selected. */
.es-labels, .es-labels__track {
    overflow: visible !important;
}
.es-labels__track {
    align-items: center;
}
.es-ai-label.is-active {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    flex-basis: 30px;
}

.es-mobile-filter-trigger {
    display: none;
    align-items: center;
    gap: 4px;
    margin-inline-start: 8px;
    padding: 5px 10px;
    border: 1px solid var(--es-border-strong);
    border-radius: 8px;
    background: var(--es-surface-50);
    color: var(--es-fg);
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.es-mobile-filter-trigger svg { width: 14px; height: 14px; }

/* استایل دراپ‌داون هوشمند بیشتر */
.es-more-dropdown {
    position: relative;
    display: inline-block;
}
.es-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.es-more-dropdown__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0; /* باز شدن هماهنگ راست به چپ */
    left: auto;
    z-index: 999999; /* تراز بالاتر از تمام المان‌های گرید */
    background: #ffffff;
    border: 1px solid var(--es-border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12); /* سایه نرم شیک زیر منو */
    min-width: 150px;
    max-height: 250px;
    overflow-y: auto;
    display: none; /* پنهان به صورت پیش‌فرض */
    flex-direction: column;
    padding: 4px 0;
}
.es-more-dropdown.is-open .es-more-dropdown__menu {
    display: flex; /* نمایش با کلاس جاوااسکریپت */
}
.es-dropdown-item {
    appearance: none;
    border: 0;
    background: transparent;
    text-align: right;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--es-fg);
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    transition: background .15s, color .15s;
}
.es-dropdown-item:hover {
    background: var(--es-surface-50);
    color: var(--es-primary);
}
.es-dropdown-item.is-active {
    color: var(--es-primary);
    font-weight: 700;
    background: rgba(255, 45, 119, 0.05);
}

/* ------------------------------------------------------------------
 *  6. Feed (scrollable region containing the grid)
 * ------------------------------------------------------------------ */
.es-feed {
    flex: 1;
    min-height: 0;
    padding: 12px 16px 24px;
    background: #fff;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* وسط‌چین کردن عنوان و لودر و گرید */
}

.es-feed__head {
    font-weight: 700;
    font-size: 14px;
    color: var(--es-fg);
    margin: 0 0 12px;
}

/* ------------------------------------------------------------------
 *  7. Grid (3 columns, dynamic stagger layout)
 * ------------------------------------------------------------------ */
.es-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    grid-auto-flow: row; /* Fixed 1+4 placement is assigned explicitly by JS. */
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* On large desktop windows (inline/non-standalone mode only), cap the grid so
   each of the 3 tiles renders at Instagram's own desktop size (~293px) instead
   of stretching to fill the wider column. Standalone fullscreen mode already
   adapts its own column count (3/4/5) at these breakpoints, so it's excluded.
   Gap and corners are also tightened to match Instagram's own desktop grid
   (small ~3px gaps, sharp square tiles — no rounding), same treatment as
   the mobile edge-to-edge grid above. */
@media (min-width: 1025px) {
    body:not(.es-standalone) .es-cols .es-grid {
        max-width: 895px;
        gap: 3px;
    }
    body:not(.es-standalone) .es-cols .es-grid .es-card,
    body:not(.es-standalone) .es-cols .es-grid .es-card.es-card--tall {
        border-radius: 0;
    }
}

/* ------------------------------------------------------------------
 *  Standalone Mode: Perfect Edge-to-Edge Layout Overrides
 * ------------------------------------------------------------------ */

/* ریست کردن محدودیت‌های عرض پوسته پارسکالا برای تمام‌عرض شدن واقعی در حالت مستقل */
body.es-standalone,
body.es-standalone #page,
body.es-standalone #content,
body.es-standalone #primary,
body.es-standalone .site-content,
body.es-standalone .content-area,
body.es-standalone .main-content,
body.es-standalone .es-main,
body.es-standalone .site-main,
body.es-standalone .container,
body.es-standalone .wrapper,
body.es-standalone .post-entry,
body.es-standalone article {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

/* قفل کردن تگ‌های html و body برای جلوگیری از لرزش پس‌زمینه اسکریپت پوسته پارسکالا */
body.es-standalone {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
body.es-standalone #wpadminbar {
    display: none !important;
    }
    /* Hide common WordPress theme/plugin elements in standalone mode */
    body.es-standalone .support-tab,
    body.es-standalone .support-button,
    body.es-standalone .box-widget-icon,
    body.es-standalone .support-btn,
    body.es-standalone #support-tabs,
    body.es-standalone .fadeInUp,
    body.es-standalone #box-widget-icon,
    body.es-standalone #box-widget-icon.fadeInUp,
    body.es-standalone .widget-icon,
    body.es-standalone .goftino-widget,
    body.es-standalone .goftino-open-button,
    body.es-standalone .chat-widget,
    body.es-standalone .live-chat,
    body.es-standalone .whatsapp-widget,
    body.es-standalone .telegram-widget,
    body.es-standalone .float-icon,
    body.es-standalone .float-contact,
    body.es-standalone .social-widget,
    body.es-standalone .sticky-icon,
    body.es-standalone .side-widget,
    body.es-standalone .fixed-widget,
    body.es-standalone #support_float,
    body.es-standalone .support_float,
    body.es-standalone .call-us,
    body.es-standalone .call_widget,
    body.es-standalone .contact-support,
    body.es-standalone .support-icon,
    body.es-standalone .help-icon,
    body.es-standalone .help-tab,
    body.es-standalone .help-tabs,
    body.es-standalone .widget-icon,
    body.es-standalone .online-chat,
    body.es-standalone .chat-box,
    body.es-standalone .chat-button,
    body.es-standalone .chat-icon,
    body.es-standalone .chat-support,
    body.es-standalone .messenger-widget,
    body.es-standalone .messenger-icon,
    body.es-standalone .fb-widget,
    body.es-standalone .fb-chat,
    body.es-standalone .fb-messenger,
    body.es-standalone .ig-widget,
    body.es-standalone .ig-icon,
    body.es-standalone [class*="support"],
    body.es-standalone [class*="chat"],
    body.es-standalone [class*="widget"],
    body.es-standalone [class*="float"],
    body.es-standalone [class*="sticky"],
    body.es-standalone [class*="messenger"],
    body.es-standalone [id*="support"],
    body.es-standalone [id*="chat"],
    body.es-standalone [id*="widget"],
    body.es-standalone [id*="float"],
    body.es-standalone [id*="sticky"],
    body.es-standalone [id*="box-widget-icon"] {
        display: none !important;
    }
    
    /* Hide mobile navigation when option is enabled */
    body.es-hide-mobile-nav .mobile-nav,
    body.es-hide-mobile-nav #mobile-nav,
    body.es-hide-mobile-nav .nav-mobile,
    body.es-hide-mobile-nav #nav-mobile,
    body.es-hide-mobile-nav .mobile-menu,
    body.es-hide-mobile-nav #mobile-menu,
    body.es-hide-mobile-nav .menu-mobile,
    body.es-hide-mobile-nav #menu-mobile,
    body.es-hide-mobile-nav .mobile-navigation,
    body.es-hide-mobile-nav #mobile-navigation,
    body.es-hide-mobile-nav .mob-menu,
    body.es-hide-mobile-nav .mob-nav,
    body.es-hide-mobile-nav [class*="mobile-nav"],
    body.es-hide-mobile-nav [id*="mobile-nav"],
    body.es-hide-mobile-nav [class*="mob-menu"],
    body.es-hide-mobile-nav [id*="mob-menu"],
    body.es-hide-mobile-nav .mm-menu,
    body.es-hide-mobile-nav .hamburger-menu,
    body.es-hide-mobile-nav .slide-menu,
    body.es-hide-mobile-nav .off-canvas,
    body.es-hide-mobile-nav .drawer-menu,
    body.es-hide-mobile-nav .toggle-menu,
    body.es-hide-mobile-nav .primary-mobile,
    body.es-hide-mobile-nav #primary-mobile,
    body.es-hide-mobile-nav .responsive-nav,
    body.es-hide-mobile-nav #responsive-nav,
    body.es-hide-mobile-nav .main-menu-mobile,
    body.es-hide-mobile-nav #main-menu-mobile,
    body.es-hide-mobile-nav .mobile-navbar-menu,
    body.es-hide-mobile-nav .havsecond,
    body.es-hide-mobile-nav .mobile-bottom-navabr {
        display: none !important;
    }
    
html:has(body.es-standalone) {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.es-standalone .es-wrap.es-inline {
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 0 40px !important;
    margin: 0 !important;
}

body.es-standalone .es-inline__shell {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 20px !important; /* فاصله بهینه مانیتور از دو طرف در حالت فول‌اسکرین */
    margin: 0 !important;
    align-items: stretch !important;
}

body.es-standalone .es-inline__row {
    display: grid !important;
    grid-template-columns: 15% 1fr !important; /* سایدبار ۱۵٪ و پر کردن ۸۵٪ فضا توسط فید محصولات */
    column-gap: 24px !important; /* فاصله تمیز مابین سایدبار و گرید */
    width: 100% !important;
    align-items: start !important;
}

body.es-standalone .es-sidebar-column {
    grid-column: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    height: 100% !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    position: sticky !important;
    top: 0 !important;
    margin-top: 52px !important;
    align-self: start !important;
}

body.es-standalone .es-sidebar {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    max-height: 400px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}
body.es-standalone .es-sidebar:not(.is-open) {
    flex: 0 0 auto !important;
    overflow: visible !important;
    max-height: none !important;
}

/* Product search sidebar needs flex: 1 so the panel scrolls properly */
body.es-standalone .es-product-search-sidebar {
    flex: 1 !important;
    max-height: 400px !important;
    overflow: hidden !important;
}

body.es-standalone .es-gap {
    display: none !important; /* حذف ستون فاصله‌انداز اضافی برای افزایش پهنای گرید */
}

body.es-standalone .es-cols {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.es-standalone .es-grid {
    /* KV 1.3.03 fix: the JS card-placement engine (renderCard) always assigns
       el.style.gridColumn to 1, 2, or 3 only — it has no concept of a 4th or
       5th column. A grid-template-columns value above 3 here leaves those
       extra columns permanently empty, which is exactly the "content hugs
       one side, blank gap on the other" bug reported on wide screens.
       The grid must always stay a 3-column grid; only its overall width
       (see the fluid width rule further below) should respond to viewport
       size. */
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (min-width: 1025px) and (max-width: 1444px) {
    body.es-standalone .es-inline__row {
        grid-template-columns: 250px 1fr !important; /* سایدبار ۲۵۰px ثابت، باقی فضا برای محصولات */
    }
}

@media (max-width: 1024px) {
    body.es-standalone .es-sidebar-column,
    body.es-standalone .es-gap {
        display: none !important; /* مخفی‌سازی کامل سایدبار در تبلت و لپ‌تاپ‌های کوچک */
    }
    body.es-standalone .es-inline__shell {
        padding: 0 16px !important;
    }
    body.es-standalone .es-inline__row {
        grid-template-columns: 1fr !important; /* تمام‌عرض شدن شبکه محصولات در تبلت */
    }
    body.es-standalone .es-cols {
        grid-column: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    body.es-standalone .es-grid {
        grid-template-columns: repeat(3, 1fr) !important; /* چیدمان ۳ ستونه گرید در دیوایس‌های متوسط */
    }
}

@media (max-width: 480px) {
    body.es-standalone .es-sidebar-column,
    body.es-standalone .es-gap {
        display: none !important;
    }
    body.es-standalone .es-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    /* کدهای جدید برای کاهش فاصله از لبه گوشی */
    body.es-standalone .es-inline__shell {
        padding: 0 4px !important;
    }
    .es-feed { 
        padding: 8px 4px 24px !important; 
    }
    .es-grid {
        gap: 3px !important; /* فاصله بین خود کارت‌ها هم به 3px کاهش یافت */
    }
}

/* ------------------------------------------------------------------
 *  8. Rest of the Styles (Returned to prevent layout breakage)
 * ------------------------------------------------------------------ */
.es-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--es-radius);
    background: #eaeaea;
    cursor: pointer;
    isolation: isolate;
}
.es-card--tall {
    grid-row: span 2;
    aspect-ratio: 1 / 2; /* هم‌ترازی میلی‌متری و دقیق با دو کارت مربعی انباشته شده */
}

.es-card__media,
.es-card__media img,
.es-card__media video {
    width: 100%;
    height: 100%;
    /* Instagram-style full-bleed covers: fill the entire tile. */
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: none;
    background: #000;
}
.es-card:hover .es-card__media img,
.es-card:hover .es-card__media video {
    transform: none;
}

.es-card__views {
    position: absolute;
    bottom: 6px;
    inset-inline-start: 6px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}
@media (max-width: 768px) {
    .es-card__views { padding: 0 2px; bottom: 4px; font-size: 6px; border-radius: 2px; line-height: 1; }
    .es-card__views svg { width: 4px; height: 4px; }
 }



.es-card__views svg { width: 12px; height: 12px; }

/* Buy button on card — bottom-left (reversed from views) */
.es-card__buy {
    position: absolute;
    bottom: 6px;
    inset-inline-end: 6px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    border:1px solid rgba(255,255,255,.2);
    background: linear-gradient(135deg, var(--es-primary), var(--es-primary-end));
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
    line-height: 1;
    transition: opacity .2s, transform .2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
.es-card__buy:hover {
    opacity: .9;
    transform: translateY(-1px);
    color: #fff;
}
.es-card__buy svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
.es-card__buy span {
    line-height: 1;
}

/* Loader + empty state */
.es-loader {
    display: flex;
    justify-content: center;
    padding: 32px 0;
    width: 100%;
}
.es-loader__spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 45, 119, 0.18);
    border-top-color: var(--es-primary);
    border-radius: 50%;
    animation: es-spin .8s linear infinite;
}
@keyframes es-spin { to { transform: rotate(360deg); } }

.es-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--es-text-soft);
    text-align: center;
    font-size: 14px;
    gap: 8px;
}
.es-empty svg { color: #d6d6d6; }

.es-reels {
    position: fixed;
    inset: 0;
    z-index: 100000000;
    background: #000;
    color: #fff;
    display: flex; /* همیشه فلکس باشد */
    flex-direction: column;
    visibility: hidden; /* پنهان اما آماده برای محاسبات اسکرول در پس‌زمینه */
    opacity: 0;
    transition: opacity 0.22s ease, visibility 0.22s ease; /* فید این نامحسوس و نرم */
}
.es-reels.is-open {
    visibility: visible;
    opacity: 1;
}
@keyframes es-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.es-reels__back {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: transparent !important;
    border: 0;
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 20;
    transition: background-color .2s;
}
.es-reels__back:hover { background: transparent !important; }

.es-reels__slider {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: auto !important; /* این خط را حتماً اضافه کنید تا پرش آنی شود */
}
.es-reels__slider::-webkit-scrollbar { display: none; }

.es-reel {
    height: 100%;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050505;
}

.es-reel__stage {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 480px;
    overflow: hidden;
    background: #000;
}
.es-reel__shimmer {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: #1a1a1a linear-gradient(115deg, #1a1a1a 30%, #333 50%, #1a1a1a 70%);
    background-size: 200% 100%;
    animation: es-reel-shimmer 1.2s ease-in-out infinite;
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 1;
}
.es-reel__shimmer.is-loaded {
    opacity: 0;
}
@keyframes es-reel-shimmer {
    0%   { background-position: -150% 0; }
    100% { background-position: 150% 0; }
}
.es-reel__stage video,
.es-reel__stage img.es-reel__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    display: block;
}
.es-reel__tap {
    position: absolute;
    inset: 0;
    cursor: pointer;
    z-index: 2;
}
.es-reel__flash {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    z-index: 3;
}
.es-reel__flash svg {
    width: 56px;
    height: 56px;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    padding: 12px;
    opacity: 0;
    transform: scale(.8);
    transition: opacity .25s, transform .25s;
}
.es-reel__flash.is-on svg {
    opacity: 1;
    transform: scale(1);
}

/* Sound toggle flash (center of video) */
.es-reel__sound-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    pointer-events: none;
    z-index: 6;
    opacity: 0;
    transition: opacity 0.15s, transform 0.2s;
}
.es-reel__sound-flash.is-on {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.es-reel__sound-flash svg {
    width: 42px;
    height: 42px;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    padding: 10px;
    display: block;
}

/* Action rail */
.es-reel__actions {
    position: absolute;
    inset-inline-start: 12px;
    bottom: calc(env(safe-area-inset-bottom) + 92px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    z-index: 4;
}
.es-action {
    appearance: none;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    font-family: inherit;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.es-action__btn {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    transition: transform .2s;
}
.es-action:hover .es-action__btn { transform: scale(1.1); }
.es-action.is-liked .es-action__btn {
    transform: scale(1.1);
}
.es-action.is-liked .es-action__btn svg {
    color: #ff2d77;
}
.es-action__btn svg { width: 26px; height: 26px; color: #fff; }
.es-action__label { font-size: 11px; font-weight: 600; color: #fff; }

/* Bottom meta + buy button */
.es-reel__meta {
    position: absolute;
    inset-inline-start: 14px;
    inset-inline-end: 76px;
    bottom: 18px;
    z-index: 4;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.es-reel__title { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.4; color: #ffffff !important; }
.es-reel__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.92;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Fixed Price on Reel Video */
.es-reel__price {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-top: 4px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    direction: rtl !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
    width: 100% !important;
}

.es-reel__price del {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 12px !important;
    text-decoration: line-through !important;
    font-weight: 400 !important;
}

/* Force the strikethrough through inner spans (theme reset kills del decoration) */
.es-reel__price del,
.es-reel__price del * {
    text-decoration: line-through !important;
}

.es-reel__price ins {
    text-decoration: none !important;
    color: #ffffff !important;
    font-weight: 800 !important;
}

.es-reel__price .woocommerce-Price-amount {
    display: inline-block !important;
}

.es-buy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    margin-top: 4px;
    background: linear-gradient(135deg, var(--es-primary), var(--es-primary-end));
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(255, 0, 85, 0.35);
    transition: transform .2s, box-shadow .2s;
    width: fit-content;
}
.es-buy:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(255, 0, 85, 0.5);
    color: #fff;
}
.es-buy svg { width: 18px; height: 18px; }

/* Buttons styling */
.es-reel__actions-row {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 8px !important;
    margin-top: 6px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.es-reel__actions-row .es-buy {
    padding: 10px 28px !important;
    margin: 0 !important;
}

.es-reel__actions-row .es-buy--ai {
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35) !important;
    padding: 10px 28px !important;
    margin: 0 !important; 
    cursor: pointer;
}
.es-reel__actions-row .es-buy--ai:hover {
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.5);
}
.es-buy__icon {
    display: grid;
    place-items: center;
}
.es-buy__icon svg {
    width: 18px;
    height: 18px;
}

/* Comments bottom sheet */
.es-comments {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    height: 70dvh;
    background: #fff;
    color: var(--es-fg);
    border-top-left-radius: var(--es-radius-lg);
    border-top-right-radius: var(--es-radius-lg);
    transform: translate(-50%, 100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    z-index: 30;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}
.es-comments.is-open { transform: translate(-50%, 0); }

.es-comments__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    box-shadow: 0 1px 0 var(--es-border);
    flex: none;
}
.es-comments__title {
    font-size: 14px;
    font-weight: 700;
    width: fit-content;
    position: relative;
    padding-bottom: 14px;
    margin-bottom: -14px;
}
.es-comments__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--es-primary);
    border-radius: 2px;
}
.es-comments__close {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-start: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--es-fg);
}
.es-comments__close:hover { background: var(--es-surface-50); }

.es-comments__body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px 16px;
}
.es-comment {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    padding: 14px 0 !important;
    box-shadow: 0 1px 0 var(--es-border);
    align-items: flex-start !important;
}
.es-comment__avatar-col {
    flex: none !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.es-avatar-placeholder {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #edf2f7 !important;
    border-radius: 50% !important;
}
.es-comment__content-col {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}
.es-comment__meta {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    font-size: 11px !important;
    color: #718096 !important;
    align-items: center !important;
}
.es-comment__author {
    color: #1a202c !important;
    font-weight: 700 !important;
    font-size: 13px !important;
}
.es-comment__text  {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #2b2b2b !important;
    word-break: break-word !important;
}
.es-comment__actions {
    margin-top: 4px !important;
    display: flex !important;
    gap: 16px !important;
    align-items: center !important;
}
.es-comment__reply-btn {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #718096 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}
.es-comment__reply-btn:hover {
    color: var(--es-primary) !important;
}
.es-comment--reply {
    margin-right: 36px !important;
    border-right: 2px solid #edf2f7 !important;
    padding-right: 12px !important;
    box-shadow: none !important;
}

.es-comments__empty,
.es-comments__loading {
    text-align: center;
    color: var(--es-text-soft);
    font-size: 13px;
    padding: 40px 16px;
}

.es-comments__form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px 18px;
    border-top: 1px solid var(--es-border);
    background: #fafafa;
    flex: none;
}
.es-comments__form input,
.es-comments__form textarea {
    width: 100%;
    border: 1px solid var(--es-border);
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    color: var(--es-fg);
}
.es-comments__form input:focus,
.es-comments__form textarea:focus { border-color: var(--es-primary); }
.es-comments__form textarea {
    resize: none;
    min-height: 60px;
}
.es-comments__form button {
    align-self: flex-end;
    appearance: none;
    border: 0;
    background: linear-gradient(135deg, var(--es-primary), var(--es-primary-end));
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .2s;
}
.es-comments__form button:hover:not(:disabled) { opacity: .9; }
.es-comments__form button:disabled { opacity: .5; cursor: progress; }

.es-comments__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
    z-index: 25;
}
.es-comments__backdrop.is-on {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   Full Drawer & Comments Styling (Pixel-Perfect RTL)
   ========================================================================== */
.es-details-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.es-details-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.es-details-sheet {
    position: fixed;
    left: 50%;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    height: 100vh; /* fallback for browsers without dvh */
    height: 100dvh; /* full drawer height */
    background: #ffffff;
    color: #111111;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    transform: translate(-50%, 100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    direction: rtl;
    font-family: inherit;
}

.es-details-sheet.is-open {
    transform: translate(-50%, 0);
}

.es-details-handle {
    position: relative;
    top: 5px;
    width: 36px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 8px auto 0;
    flex: none;
}

.es-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f3f4f6;
    flex: none;
}

.es-details-head-title {
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.es-details-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    cursor: pointer;
    flex: none;
    transition: background 0.2s ease;
}

.es-details-close:hover {
    background: #e5e7eb;
}

.es-details-body {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 24px;
    -webkit-overflow-scrolling: touch;
}

/* Gallery Slider */
.es-details-gallery {
    position: relative;
    width: 100%;
    background: #f9fafb;
    overflow: hidden;
}

.es-gallery-track {
    display: flex;
    transition: transform 0.3s ease;
}

.es-gallery-img {
    width: 100%;
    height: 420px;
    max-height: 420px;
    object-fit: contain;
    background: #f9fafb;
    flex: none;
}

.es-gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.es-gallery-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.es-gallery-dot.active {
    background: #ffffff;
    width: 18px;
    border-radius: 10px;
}

/* Per-product custom highlight bars */
.es-product-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 20px 2px;
    direction: rtl;
}
.es-product-highlights.is-empty {
    display: none;
}
.es-product-highlight {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.7;
}
.es-product-highlight__emoji {
    flex: 0 0 auto;
    font-size: 17px;
    line-height: 1;
    width: 24px;
    text-align: center;
}
.es-product-highlight__text {
    color: #9ca3af;
    min-width: 0;
    overflow-wrap: anywhere;
}
/* Details Main */
.es-details-main {
    padding: 20px;
}

.es-details-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 16px;
    color: #000000;
}

.es-details-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 18px 0;
}

/* Variations */
.es-var-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.es-var-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.es-var-options {
    display: flex;
    gap: 8px;
}

.es-var-opt {
    min-width: 42px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.es-var-opt.active, .es-var-opt:hover {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

/* ==========================================================================
   1. Bordered Table for Meta Specifications
   ========================================================================== */
.es-details-meta-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 14px 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    direction: rtl !important;
}

.es-details-meta-table td {
    padding: 10px 14px !important;
    font-size: 13px !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

.es-details-meta-table tr:last-child td {
    border-bottom: none !important;
}

.es-details-meta-table .es-meta-label {
    background: #f9fafb !important;
    color: #6b7280 !important;
    width: 110px !important;
    font-weight: 600 !important;
    text-align: right !important;
    border-left: 1px solid #f3f4f6 !important;
}

.es-details-meta-table .es-meta-value {
    color: #111827 !important;
    font-weight: 600 !important;
    text-align: right !important;
}

.es-stock-badge {
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.es-stock-badge.in-stock {
    color: #059669;
}

.es-stock-badge.out-stock {
    color: #dc2626;
}

/* Hiding any unwanted floating WooCommerce badges/percent tags injected by themes/plugins */
.es-details-price-wrap .onsale,
.es-details-price-wrap [class*="badge"],
.es-details-price-wrap [class*="percent"],
.es-reel__price .onsale,
.es-reel__price [class*="badge"],
.es-reel__price [class*="percent"] {
    display: none !important;
}

/* ==========================================================================
   2. Absolute Suppression of Theme's Floating Purple Discount Badge (%58)
   ========================================================================== */
#es-details-price-wrap .index-discount-pro,
#es-details-price-wrap .screen-reader-text,
.es-reel__price .index-discount-pro,
.es-reel__price .screen-reader-text {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
}

/* ==========================================================================
   3. Perfect Price Order & Formatting in Footer
   ========================================================================== */
.es-details-price-wrap {
    position: absolute !important;
    left: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    direction: rtl !important;
    text-align: right !important;
    flex-wrap: wrap !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.es-details-price-wrap del {
    color: #9ca3af !important;
    font-size: 11px !important;
    text-decoration: line-through !important;
    font-weight: 400 !important;
    order: 2 !important; /* قیمت قبلی سمت چپ قرار گیرد */
}

.es-details-price-wrap ins {
    text-decoration: none !important;
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: -.2px !important;
    order: 1 !important; /* قیمت تخفیف خورده اصلی اول قرار گیرد */
}

/* Short & Full Descriptions */
.es-details-sec-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #111827;
}

.es-short-desc, .es-details-full-desc {
    font-size: 13px;
    line-height: 1.8;
    color: #4b5563;
    margin: 0;
}

/* Product Details: short description is limited to exactly 3 visible lines */
.es-short-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

/* Read More (5-line clamp) */
.es-details-full-desc {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.es-details-full-desc.is-expanded {
    -webkit-line-clamp: unset;
}
.es-details-readmore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding: 0;
    border: none;
    background: none;
    color: #000000;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.es-details-readmore svg {
    transition: transform 0.2s ease;
}
.es-details-readmore.is-open svg {
    transform: rotate(180deg);
}

.es-details-full-desc table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 12px;
}

.es-details-full-desc table th,
.es-details-full-desc table td {
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    text-align: center;
}

.es-details-full-desc table th {
    background: #f9fafb;
    font-weight: 700;
}

/* Comments Section Styling */
.es-comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.es-comment-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.es-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
    background: #f3f4f6;
}

.es-comment-body {
    flex: 1;
    background: #f9fafb;
    padding: 10px 14px;
    border-radius: 12px;
}

.es-comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 12px;
}

.es-comment-author {
    font-weight: 700;
    color: #111827;
}

.es-comment-date {
    color: #9ca3af;
}

.es-comment-text {
    font-size: 13px;
    color: #374151;
    margin: 0;
    line-height: 1.5;
}

.es-comment-form {
    margin-top: 12px;
}

.es-comment-input-wrap {
    display: flex;
    gap: 8px;
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 20px;
    align-items: center;
}

.es-comment-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    outline: none;
    padding: 6px 0;
}

.es-comment-submit-btn {
    border: none;
    background: var(--es-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 14px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.es-comment-submit-btn:hover {
    opacity: 0.85;
}

/* Sticky Footer */
.es-details-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid #f3f4f6;
    background: #ffffff;
    flex: none;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
}

.es-details-buy-btn {
    background: var(--es-primary);
    color: #ffffff !important;
    padding: 7px 18px;
    min-height: 34px;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.es-details-buy-btn:hover {
    background: var(--es-primary-end);
}

/* AI Assistant Drawer */
.es-ai-drawer {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    height: 70dvh;
    background: #ffffff;
    color: var(--es-fg);
    border-top-left-radius: var(--es-radius-lg);
    border-top-right-radius: var(--es-radius-lg);
    transform: translate(-50%, 100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    z-index: 100000005;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    direction: rtl;
}
.es-ai-drawer.is-open {
    transform: translate(-50%, 0);
}

.es-ai-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 100000004;
}
.es-ai-drawer__backdrop.is-on {
    opacity: 1;
    pointer-events: auto;
}

.es-ai-drawer__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 16px 14px;
    border-bottom: 1px solid var(--es-border);
    flex: none;
}
.es-ai-drawer__handle {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
}
.es-ai-drawer__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--es-fg);
}
.es-ai-drawer__close {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-start: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--es-fg);
    transition: background-color .2s;
}
.es-ai-drawer__close:hover {
    background-color: var(--es-surface-50);
}

.es-ai-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
    background-color: #fafbfe;
}

/* AI card */
.es-ai-card {
    background: #ffffff;
    border: 1px solid #f0f0f3;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.03);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.es-ai-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.es-ai-card__header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.es-ai-robot-icon {
    width: 44px;
    height: 44px;
    background: #7c3aed;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
}

.es-ai-card__header-text h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--es-fg);
}

.es-ai-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f0fdf4;
    color: #16a34a;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    margin-top: 5px;
}

.es-ai-sparkle {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: #f5f3ff;
    border-radius: 50%;
    color: #7c3aed;
}

.es-ai-summary {
    margin: 0 0 4px 0;
    font-size: 13px;
    line-height: 1.8;
    color: #374151;
    font-weight: 500;
    text-align: justify;
}

/* AI features */
.es-ai-features {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.es-ai-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.es-ai-feature-icon {
    width: 30px;
    height: 30px;
    background-color: #f0fdf4;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #16a34a;
    flex-shrink: 0;
}
.es-ai-feature-text {
    font-size: 12.5px;
    font-weight: 700;
    color: #2a2a2a;
}

.es-ai-card__footer {
    border-top: 1px dashed #f1f5f9;
    padding-top: 16px;
    font-size: 11.5px;
    color: #9ca3af;
    text-align: center;
    font-weight: 500;
}

/* Mobile filter drawer */
.es-drawer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 99999999;
    display: flex;
    align-items: flex-end;
}
.es-drawer.is-open {
    opacity: 1;
    pointer-events: auto;
}
.es-drawer__panel {
    width: 100%;
    height: 80dvh;
    background: #fff;
    border-top-left-radius: var(--es-radius-lg);
    border-top-right-radius: var(--es-radius-lg);
    transform: translateY(100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.es-drawer.is-open .es-drawer__panel { transform: none; }
.es-drawer__head {
    position: relative;
    display: grid;
    place-items: center;
    padding: 14px 16px;
    box-shadow: 0 1px 0 var(--es-border);
    font-weight: 600;
    font-size: 15px;
    flex: none;
}
.es-drawer__head button {
    position: absolute;
    inset-inline-end: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: var(--es-fg);
}
.es-drawer__head button svg { width: 20px; height: 20px; }
.es-drawer__body { padding: 12px 16px; overflow-y: auto; flex: 1; }
.es-drawer__list { display: flex; flex-direction: column; gap: 4px; }

/* Body lock helper */
body.es-no-scroll {
    overflow: hidden !important;
    height: 100dvh !important;
    touch-action: none;
}

/* Misc */
.es-wrap a, .es-reels a, .es-drawer a { text-decoration: none; }
.es-wrap button, .es-reels button, .es-drawer button { font-family: inherit; }
.es-hidden { display: none !important; }

/* Responsive styles */
@media (max-width: 991px) {
    .es-inline__row {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .es-gap { display: none; }
    .es-sidebar {
        display: none;
        position: static;
        max-height: none;
    }
    .es-mobile-filter-trigger { display: inline-flex; }
    .es-feed { padding: 8px 16px 24px; }
    .es-cols {
        width: 100%;
        max-width: 100%;
        align-items: center;
    }
    .es-labels {
        width: 100%;
        display: flex;
        justify-content: center;
        overflow: visible !important;
    }
}

@media (max-width: 768px) {
    .es-grid { gap: 6px; }
    .es-card { border-radius: 4px; }
    .es-reel__actions { bottom: calc(env(safe-area-inset-bottom) + 84px); inset-inline-start: 12px; gap: 16px; }
    .es-reel__meta { bottom: 14px; inset-inline-end: 64px; }
    .es-reel__actions-row {
        width: 100% !important;
        margin-left: 0 !important;
    }
    .es-reel__actions-row .es-buy,
    .es-reel__actions-row .es-buy--ai {
        padding: 9px 24px !important; 
    }
}

@media (max-width: 480px) {
    .es-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4px;
    }
    .es-labels__track { 
        padding-inline: 12px;
        justify-content: center;
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .es-more-dropdown { display: none !important; }
    .es-mobile-filter-trigger {
        margin-inline-end: 0;
        flex-shrink: 0;
    }
    .es-label {
        flex-shrink: 0;
    }
    .es-back-button svg {
        transform: translateX(-9px);
    }
}

/* Main Content Area */
.es-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    background: #fff;
    min-height: 70vh;
}

/* AI comments custom style */
.es-comments__body .es-ai-card {
    background: #ffffff !important;
    border: 1px solid #ebdfff !important;
    border-radius: 24px !important;
    padding: 20px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    direction: rtl !important;
}
.es-comments__body .es-ai-card__header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}
.es-comments__body .es-ai-card__header-right {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}
.es-comments__body .es-ai-robot-icon {
    width: 65px !important;
    height: 65px !important;
    border-radius: 50% !important;
    background: #7c3aed !important;
    color: #ffffff !important;
    display: grid !important;
    place-items: center !important;
}
.es-comments__body .es-ai-robot-icon svg {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
}
.es-comments__body .es-ai-card__header-text h3 {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #1a202c !important;
}
.es-comments__body .es-ai-badge {
    display: inline-block !important;
    background: #f0fdf4 !important;
    color: #16a34a !important;
    padding: 2px 10px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-top: 4px !important;
}
.es-comments__body .es-ai-sparkle svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
}
.es-comments__body .es-ai-summary {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
    color: #2d3748 !important;
    text-align: justify !important;
}
.es-comments__body .es-ai-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 12px 0 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}
.es-comments__body .es-ai-feature-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.es-comments__body .es-ai-feature-icon {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: #d1fae5 !important;
    color: #10b981 !important;
    display: grid !important;
    place-items: center !important;
    flex-shrink: 0 !important;
}
.es-comments__body .es-ai-feature-icon svg {
    width: 13px !important;
    height: 13px !important;
    display: block !important;
}
.es-comments__body .es-ai-feature-text {
    font-size: 13px !important;
    color: #2d3748 !important;
    font-weight: 700 !important;
}
.es-comments__body .es-ai-card__footer {
    font-size: 11px !important;
    color: #a0aec0 !important;
    border-top: 1px dashed #edf2f7 !important;
    padding-top: 10px !important;
    margin-top: 4px !important;
    text-align: right !important;
}
.es-comments.es-comments--full-height {
    height: auto !important;
    max-height: 75vh !important;
    border-top-left-radius: 22px !important;
    border-top-right-radius: 22px !important;
}

/* Skeleton shimmer loading for AI section (RTL) */
@keyframes es-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.es-shimmer {
    background: linear-gradient(90deg, #f0f0f5 25%, #e8e8ef 37%, #f0f0f5 63%) !important;
    background-size: 200% 100% !important;
    animation: es-shimmer 1.4s ease-in-out infinite !important;
    border-radius: 6px !important;
}
.es-ai-skeleton {
    background: #ffffff;
    border: 1px solid #ebdfff;
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    direction: rtl;
}
.es-ai-skeleton__header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.es-ai-skeleton__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    flex-shrink: 0;
}
.es-ai-skeleton__header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.es-ai-skeleton__sparkle {
    width: 34px;
    height: 34px;
    border-radius: 50% !important;
    flex-shrink: 0;
}
.es-ai-skeleton__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.es-ai-skeleton__line {
    border-radius: 4px !important;
}
.es-ai-skeleton__features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}
.es-ai-skeleton__feature-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.es-ai-skeleton__feature-dot {
    width: 24px;
    height: 24px;
    border-radius: 50% !important;
    flex-shrink: 0;
}

/* Product search skeleton shimmer — 5 RTL items */
.es-product-search-skeleton {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0;
    direction: rtl;
}
.es-product-search-skeleton__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
}
.es-product-search-skeleton__img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border:1px solid rgba(255,255,255,.2);
    flex-shrink: 0;
}
.es-product-search-skeleton__line {
    height: 12px;
    border-radius: 4px;
    flex: 1;
}
.es-product-search-skeleton__line:last-child {
    width: 60%;
}

/* AI comment reply attribution & badge */
.es-comment__reply-to {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f3ff;
    border: 1px solid #ede9fe;
    border-radius: 8px;
    padding: 5px 10px;
    margin: 2px 0 4px 0;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.5;
    direction: rtl;
}
.es-comment__reply-to svg {
    flex-shrink: 0;
    color: #7c3aed;
}
.es-comment__reply-to strong {
    color: #7c3aed;
    font-weight: 700;
}
.es-comment__ai-badge {
    display: inline-flex;
    align-items: center;
    background: #f5f3ff;
    color: #7c3aed;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 999px;
    border: 1px solid #ede9fe;
}
.es-comment.is-ai {
    background: #faf8ff !important;
    border-radius: 12px !important;
    padding: 14px 12px !important;
    margin: 4px -4px !important;
}
.es-comment.is-ai .es-comment__author {
    color: #7c3aed !important;
}

.es-comments__body .es-ai-robot-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

/* Loading spinner for product search infinite scroll */
.es-product-search__loading-indicator {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 10px !important;
    width: 100% !important;
}
.es-product-search__spinner {
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #e2e8f0 !important;
    border-top-color: #ff2d77 !important;
    border-radius: 50% !important;
    animation: es-spin .8s linear infinite !important;
}

/* این تنظیم برای تراز شدن چشمی ۵۲ پیکسلی شما روی سایدبار ادمین و رفع پرش ثانیه‌ای آن است */
body.es-standalone .es-sidebar-column {
    position: sticky !important;
    top: 0 !important;
    margin-top: 52px !important; /* ۵۲px فاصله از بالا به جای top:52px برای جلوگیری از پرش */
    align-self: start !important;
}
body.es-standalone .es-sidebar {
    position: static !important;
    margin-top: 0 !important;
}
body.es-standalone .es-labels {
    margin-bottom: 0 !important; /* بهینه‌سازی فاصله‌ها */
}

/* حذف اسکرول بیرونی سایدبار محصولات و برطرف کردن مشکل اسکرول دوتایی */
.es-product-search-sidebar {
    overflow: hidden !important;
}

/* لودینگ متحرک با رنگ صورتی برند شما برای اسکرول بی‌نهایت */
.es-product-search__loading-indicator {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 10px !important;
    font-size: 12px !important;
    color: var(--es-primary) !important; /* رنگ صورتی اپلیکیشن شما */
    font-weight: 600 !important;
    text-align: center !important;
    width: 100% !important;
}
.es-product-search__spinner {
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    border: 2px solid rgba(255, 45, 119, 0.2) !important;
    border-top-color: var(--es-primary) !important; /* اسپینر صورتی متحرک */
    border-radius: 50% !important;
    animation: es-spin .8s linear infinite !important;
}

/* ==================================================================
 * FIX: Isolated Sidebar Column with Independent Scrolling (JSFiddle Logic)
 * ================================================================== */

/* ۱. نگهدارنده اصلی: ارتفاع ثابت و قفل شده */
.es-sidebar-column {
    grid-column: 1 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    height: calc(100vh - 100px) !important; /* ارتفاع ثابت کل */
    max-height: calc(100vh - 100px) !important;
    position: sticky !important;
    top: 52px !important; /* هم‌تراز با منوی بالای صفحه */
    flex-shrink: 0 !important; /* جلوگیری مطلق از تغییر اندازه */
    align-self: start !important;
}

/* ۲. باکس‌های سایدبار: تقسیم فضا و قفل کردن اسکرول */
.es-sidebar-column > aside {
    flex: 1 !important; /* هر کدام دقیقاً ۵۰٪ فضا را می‌گیرند */
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important; /* کلید طلایی: فعال‌سازی اسکرول داخلی در فلکس */
    max-height: 100% !important;
    overflow: hidden !important; /* کلید طلایی: جلوگیری از بیرون زدن محتوا و هل دادن صفحه */
    background: #fff !important;
    border: 1px solid var(--es-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.02) !important;
}

/* ۳. هدر (دکمه): هرگز کوچک نمی‌شود */
.es-sidebar__title {
    flex-shrink: 0 !important;
    padding: 12px 14px !important;
    border-bottom: 1px solid var(--es-border) !important;
    margin: 0 !important;
}

/* ۴. بخش جستجو: هرگز کوچک نمی‌شود */
.es-sidebar__search {
    flex-shrink: 0 !important;
    margin: 10px !important;
}

/* ۵. پنل‌های داخلی: تنها بخشی که اسکرول می‌خورد */
.es-sidebar__panel,
.es-product-search__list {
    flex: 1 !important; /* فضای باقیمانده را پر می‌کند */
    min-height: 0 !important; /* کلید طلایی برای فلکس */
    overflow-y: auto !important; /* اسکرول فقط و فقط داخل این بخش */
    max-height: none !important; /* حذف محدودیت‌های قبلی */
    padding: 0 10px 12px !important;
}

/* ۶. تنظیمات مخصوص حالت Standalone */
body.es-standalone .es-sidebar-column {
    height: calc(100vh - 60px) !important; /* تنظیم ارتفاع برای حالت بدون هدر */
    top: 16px !important;
}

/* ۷. پاکسازی قوانین قدیمی و تداخلی */
body.es-standalone .es-sidebar,
body.es-standalone .es-product-search-sidebar {
    height: auto !important; /* ارتفاع توسط فلکس والد کنترل می‌شود */
    max-height: none !important;
    margin-top: 0 !important;
}

/* ۱. مهار پرش ثانیه‌ای و ممانعت از بسته شدن خودکار پنل در لود اولیه */
 .es-sidebar.is-open .es-sidebar__panel {
    display: block !important;
}

/* استایل شبیه‌سازی شده و کاملاً بومی مستطیل بنر پیشنهادات جهت ممانعت از پرش یا گلیچ سایز تصویر در رفرش */
.es-suggest-banner {
    display: flex !important;
    width: 100% !important;
    max-width: 520px !important;
    height: 86px !important;
    margin: 10px auto 4px !important;
    padding: 5px !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid rgba(15, 23, 42, .07) !important;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .08) !important;
}
.es-suggest-banner picture {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}
.es-suggest-banner img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 10px !important;
}
@media (max-width: 520px) {
    .es-suggest-banner {
        height: 72px !important;
        border-radius: 12px !important;
        margin-top: 8px !important;
    }
}

/* والد مستقیم کادر ورودی و لیست نتایج جستجو - قفل کردن تراز و ممانعت از عریض شدن لیست نسبت به فیلد ورودی سرچ */
#es-product-search-panel {
    position: relative !important;
}

/* شیمر فوق‌العاده درخشان و متحرک راست‌به‌چپ روی بنر تا لحظه‌ی لود کامل تصویر */
.es-suggest-banner::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 0.375rem !important;
    background: #f1f5f9 linear-gradient(115deg, #f1f5f9 30%, #ffffff 50%, #f1f5f9 70%) !important;
    background-size: 200% 100% !important;
    animation: es-banner-shimmer 1.5s infinite linear !important;
    z-index: 5 !important;
    pointer-events: none !important;
    opacity: 1 !important;
    transition: opacity 0.5s ease !important;
    transition-delay: 0.3s !important; /* زمان تاخیر ملوتر جهت ممانعت از پرش چشمی */
}
.es-suggest-banner img {
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
}
/* محو شدن شیمر و پدیدار شدن نرم تصویر پس از لود کامل */
.es-suggest-banner.is-loaded::before {
    opacity: 0 !important;
    animation: none !important;
}
.es-suggest-banner.is-loaded img {
    opacity: 1 !important;
    z-index: 6 !important;
}
@keyframes es-banner-shimmer {
    0%   { background-position: 150% 0; }
    100% { background-position: -150% 0; }
}

/* ==================================================================
 * Share Modal & Drawer (Clean & Responsive)
 * ================================================================== */
.es-share-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 100000009;
}
.es-share-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.es-share-modal {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 100%);
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px 18px 28px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
    z-index: 100000010;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    direction: rtl;
    color: #1e293b;
}

/* در دسکتاپ به صورت مدال وسط‌چین نمایش داده شود */
@media (min-width: 640px) {
    .es-share-modal {
        top: 50%;
        bottom: auto;
        border-radius: 20px;
        transform: translate(-50%, -40%) scale(0.95);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }
    .es-share-modal.is-open {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 639px) {
    .es-share-modal.is-open {
        transform: translate(-50%, 0);
    }
}

.es-share-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.es-share-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.es-share-close {
    background: #f1f5f9;
    border: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #64748b;
    transition: background 0.2s;
}
.es-share-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.es-share-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 12px;
}

.es-share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    color: #334155;
    font-size: 11.5px;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease;
}
.es-share-item:hover {
    transform: translateY(-2px);
}

.es-share-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.es-share-icon-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* رنگ‌های اختصاصی شبکه‌های اجتماعی */
.es-share-telegram  .es-share-icon-btn { background: #229ED9; }
.es-share-whatsapp  .es-share-icon-btn { background: #25D366; }
.es-share-bale      .es-share-icon-btn { background: #00a884; }
.es-share-rubika    .es-share-icon-btn { background: #731882; }
.es-share-aparat    .es-share-icon-btn { background: #ed145b; }
.es-share-instagram .es-share-icon-btn { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.es-share-twitter   .es-share-icon-btn { background: #0f1419; }
.es-share-eitaa     .es-share-icon-btn { background: #e37600 !important; }
.es-share-system    .es-share-icon-btn { background: #64748b; }
.es-share-copy      .es-share-icon-btn { background: #475569; }

/* بخش کپی لینک مستقیم */
.es-share-copy-box {
    margin-top: 20px;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 4px 6px 4px 12px;
    gap: 8px;
}
.es-share-copy-input {
    flex: 1;
    border: 0;
    background: transparent;
    font-size: 12px;
    direction: ltr;
    text-align: left;
    color: #475569;
    outline: none;
}
.es-share-copy-btn {
    background: #ff2d77;
    color: #fff;
    border: 0;
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.es-share-copy-btn.copied {
    background: #16a34a !important;
}
/* mobile fix */
.es-wrap *, .es-reels *, .es-drawer *, .es-wrap a, .es-wrap button, .es-wrap div, .es-wrap input, .es-wrap textarea{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;outline:none!important}.es-wrap *:focus,.es-wrap *:active,.es-wrap *:focus-visible,.es-reels *:focus,.es-drawer *:focus{outline:none!important;box-shadow:none!important}

/* Final details sheet sizing: 65% viewport height */
.es-details-sheet {
    height: 65vh;
    height: 65dvh;
    max-height: 65vh;
    max-height: 65dvh;
}

/* Keep product imagery proportional and comfortably inside the half-height sheet */
.es-details-gallery {
    height: min(38vh, 360px);
    max-height: min(38vh, 360px);
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.es-gallery-track {
    width: 100%;
    height: 100%;
    align-items: center;
}

.es-gallery-img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    background: #f9fafb;
}

@media (max-width: 600px) {
    .es-details-gallery {
        height: min(38vh, 360px);
        max-height: min(38vh, 360px);
    }
}

/* Kavoshview product image full width mobile optimization */
.es-details-gallery {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #fff;
}
.es-gallery-track {
    width: 100%;
    touch-action: pan-y;
    user-select: none;
}
.es-gallery-img {
    width: 100vw;
    height: min(75vh, 620px);
    max-height: none;
    object-fit: contain;
    background: #fff;
}
@media (max-width: 768px) {
    .es-details-body { padding: 0; }
    .es-details-main { padding: 16px; }
    .es-gallery-img {
        height: 70vh;
        min-height: 320px;
    }
}


/* Kavoshview final mobile product image + comments sizing */
.es-details-gallery{
    width:100% !important;
    margin:0 !important;
    border-radius:0 !important;
}
.es-gallery-img{
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    max-height:none !important;
    object-fit:contain !important;
    display:block;
}
.es-details-main{
    padding:16px !important;
}
.es-comments{
    width:100% !important;
    max-width:100% !important;
    height:65dvh !important;
    border-radius:22px 22px 0 0 !important;
}
.es-comments__body{
    width:100%;
}
@media(max-width:600px){
 .es-comments{
    height:60dvh !important;
 }
 .es-details-main{
    padding:14px !important;
 }
}

/* Reels performance + clean UI fixes */
.es-reels__slider,
.es-reels__slider * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.es-reels__slider::-webkit-scrollbar { display:none !important; width:0 !important; height:0 !important; }
.es-reel-scroll-indicator,
.es-reels__progress,
.es-reels-progress,
.reels-scroll-line,
.scroll-indicator {
    display:none !important;
}
.es-reel__shimmer { transition:opacity .2s ease !important; }


/* ===== Kavoshview AI compact mode inside comments ===== */
.es-ai-drawer{
    height:45dvh;
    max-width:480px;
}
.es-ai-drawer__header{
    padding:10px 12px 8px;
}
.es-ai-drawer__handle{
    width:32px;
    height:3px;
}
.es-ai-drawer__title{
    font-size:14px;
}
.es-ai-drawer__body{
    padding:10px;
}
.es-ai-card{
    border-radius:16px;
    padding:12px;
    gap:10px;
    box-shadow:none;
}
.es-ai-card__header-right{
    gap:8px;
}
.es-ai-robot-icon{
    width:30px;
    height:30px;
    border-radius:10px;
}
.es-ai-card__header-text h3{
    font-size:13px;
}
.es-ai-sparkle{
    width:26px;
    height:26px;
}
.es-ai-summary{
    font-size:12px;
    line-height:1.6;
}
.es-ai-features{
    margin-top:8px;
    gap:7px;
}
.es-ai-feature-item{
    gap:8px;
}
.es-ai-feature-icon{
    width:24px;
    height:24px;
}
.es-ai-feature-text{
    font-size:11.5px;
}
.es-ai-card__footer{
    padding-top:8px;
    font-size:10.5px;
}

/* Product Details: iPhone-style bottom sheet */
.es-details-close {
    display: none !important;
}

.es-details-handle {
    width: 42px !important;
    height: 5px !important;
    background: #d1d5db !important;
    border-radius: 999px !important;
    margin: 8px auto 6px !important;
    cursor: grab;
    touch-action: none;
}

.es-details-sheet.is-dragging {
    transition: none !important;
    user-select: none;
}

.es-details-sheet.is-dragging .es-details-handle {
    background: #b8bec7 !important;
}

/* Keep the existing AI card visually matched to the comments/details sheet.
   This does not create or replace the existing AI feature. */
.es-details-sheet .es-ai-card,
.es-details-comments-wrap .es-ai-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.es-details-sheet .es-ai-card__header,
.es-details-sheet .es-ai-card__body,
.es-details-sheet .es-ai-card__footer,
.es-details-comments-wrap .es-ai-card__header,
.es-details-comments-wrap .es-ai-card__body,
.es-details-comments-wrap .es-ai-card__footer {
    box-sizing: border-box !important;
}

@media (max-width: 480px) {
    .es-details-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .es-details-sheet .es-ai-card,
    .es-details-comments-wrap .es-ai-card {
        width: 100% !important;
    }
}

/* ==========================================================================
   Kavoshview - Compact AI card inside the Comments drawer
   The existing AI feature is preserved; only its dimensions are adapted
   to the comments bottom-sheet shown on mobile.
   ========================================================================== */

.es-comments .es-comments__body .es-ai-card {
    width: calc(100% - 32px) !important;
    max-width: none !important;
    margin: 0 16px 12px !important;
    padding: 12px 14px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
    gap: 9px !important;
    overflow: hidden !important;
}

.es-comments .es-comments__body .es-ai-card__header {
    min-height: 42px !important;
    gap: 8px !important;
}

.es-comments .es-comments__body .es-ai-card__header-right {
    min-width: 0 !important;
    gap: 9px !important;
}

.es-comments .es-comments__body .es-ai-robot-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

.es-comments .es-comments__body .es-ai-robot-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

.es-comments .es-comments__body .es-ai-robot-icon svg {
    width: 18px !important;
    height: 18px !important;
}

.es-comments .es-comments__body .es-ai-card__header-text {
    min-width: 0 !important;
}

.es-comments .es-comments__body .es-ai-card__header-text h3 {
    font-size: 14px !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.es-comments .es-comments__body .es-ai-badge {
    font-size: 9.5px !important;
    padding: 2px 8px !important;
    margin-top: 3px !important;
}

.es-comments .es-comments__body .es-ai-sparkle {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    flex: 0 0 28px !important;
}

.es-comments .es-comments__body .es-ai-sparkle svg {
    width: 15px !important;
    height: 15px !important;
}

.es-comments .es-comments__body .es-ai-summary {
    margin: 0 !important;
    font-size: 11.5px !important;
    line-height: 1.55 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
}

.es-comments .es-comments__body .es-ai-features {
    margin: 5px 0 0 !important;
    gap: 6px !important;
}

.es-comments .es-comments__body .es-ai-feature-item {
    gap: 7px !important;
    min-height: 24px !important;
}

.es-comments .es-comments__body .es-ai-feature-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
}

.es-comments .es-comments__body .es-ai-feature-icon svg {
    width: 11px !important;
    height: 11px !important;
}

.es-comments .es-comments__body .es-ai-feature-text {
    font-size: 11px !important;
    line-height: 1.45 !important;
}

.es-comments .es-comments__body .es-ai-card__footer {
    padding-top: 7px !important;
    margin-top: 2px !important;
    font-size: 9.5px !important;
    line-height: 1.4 !important;
}

@media (max-width: 380px) {
    .es-comments .es-comments__body .es-ai-card {
        width: calc(100% - 24px) !important;
        margin-left: 12px !important;
        margin-right: 12px !important;
        padding: 10px 12px !important;
    }

    .es-comments .es-comments__body .es-ai-robot-icon {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }
}


/* Final mobile bottom-sheet fixes */
.es-comments__close,
.es-comments button.es-comments__close,
.es-details-close,
.es-details-sheet button.es-details-close {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.es-comments.is-dragging,
.es-details-sheet.is-dragging {
    transition: none !important;
    user-select: none !important;
}

.es-comments.is-dragging .es-comments__handle,
.es-details-sheet.is-dragging .es-details-handle {
    background: #b8bec7 !important;
}

.es-comments--instant-close {
    transition: none !important;
    transform: translate(-50%, 100%) !important;
}

.es-comments__handle,
.es-details-handle {
    touch-action: none !important;
}

/* Category drawer: iPhone-style bottom sheet */
.es-drawer__handle {
    width: 42px !important;
    height: 5px !important;
    background: #d1d5db !important;
    border-radius: 999px !important;
    margin: 8px auto 6px !important;
    flex: none !important;
    cursor: grab;
    touch-action: none;
}

.es-drawer__panel.is-dragging {
    transition: none !important;
    user-select: none;
}

/* Remove the old X close icon; drawer is dismissed by swipe-down/backdrop. */
.es-drawer__head button,
#es-drawer-close {
    display: none !important;
}

.es-comments {
    bottom: 0 !important;
    max-height: 70dvh !important;
    backface-visibility: hidden;
    will-change: transform;
}
.es-reel__sound-flash svg {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    width: 48px !important;
    height: 48px !important;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));
}

/* Compact Telegram-style comment composer */
.es-comments__form { position: relative !important; display:flex !important; flex-direction:row !important; align-items:center !important; gap:6px !important; padding:8px 10px calc(8px + env(safe-area-inset-bottom)) !important; border-top:1px solid rgba(15,23,42,.07) !important; background:rgba(255,255,255,.98) !important; }
.es-comments__form input,.es-comments__form textarea { box-sizing:border-box !important; height:38px !important; min-height:38px !important; border:1px solid #e5e7eb !important; border-radius:19px !important; padding:7px 11px !important; font-size:11px !important; line-height:1.4 !important; margin:0 !important; box-shadow:none !important; }
.es-comments__form input { flex:0 0 82px !important; max-width:82px !important; }
.es-comments__form textarea { flex:1 1 auto !important; resize:none !important; }
.es-comments__form button#es-comment-submit { width:38px !important; height:38px !important; min-width:38px !important; padding:0 !important; border-radius:50% !important; display:inline-flex !important; align-items:center !important; justify-content:center !important; flex:0 0 38px !important; }
.es-comments__form button#es-comment-submit svg { display:block !important; transform:translateX(-1px) !important; }
.es-comments__form button#es-comment-submit.is-sending svg { animation:esCommentSending .8s linear infinite !important; }
.es-comment-status { position:absolute !important; right:12px !important; bottom:2px !important; font-size:9px !important; line-height:1 !important; pointer-events:none !important; }
.es-comment-status.is-error { color:#dc2626 !important; } .es-comment-status.is-success { color:#16a34a !important; }
.es-comment__author { font-size:11px !important; } .es-comment__date { font-size:9px !important; } .es-comment__text { font-size:12px !important; }
@keyframes esCommentSending { to { transform:translateX(3px) rotate(12deg); opacity:.55; } }

/* Product Details: comments are display-only */
#es-details-comment-form {
    display: none !important;
}

/* Keep the sound/mute flash compact */
.es-reel__sound-flash svg {
    width: 42px !important;
    height: 42px !important;
    padding: 10px !important;
    box-sizing: border-box !important;
}

.es-highlight-animate {
    animation: esHighlightFade 0.6s ease both;
}
@keyframes esHighlightFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Product fullscreen image fit fix - keep fullscreen, prevent zoom crop */
.es-fullscreen img,
.es-product-gallery img,
.es-product-image img,
.es-gallery img,
.es-reel-product img {
    object-fit: contain !important;
    object-position: center center !important;
    width: 100% !important;
    height: 100% !important;
}


/* Final UI cleanup: search spacing + reels action alignment */
.es-top-search-layout{
    gap:8px !important;
}
#es-product-search-input{
    height:40px !important;
    padding-right:40px !important;
    padding-left:12px !important;
}
.es-search-icon{
    right:12px !important;
}
.es-custom-placeholder{
    right:38px !important;
}

/* Remove floating extra circle/shadow behind reel actions */
.es-reel__actions::before,
.es-reel__actions::after{
    content:none !important;
    display:none !important;
}
.es-reel__actions{
    bottom:calc(env(safe-area-inset-bottom) + 105px) !important;
    gap:16px !important;
}
.es-action__btn{
    background:transparent !important;
    box-shadow:none !important;
    border-radius:0 !important;
}
.es-action__btn::before,
.es-action__btn::after{
    display:none !important;
}


/* Final UI fixes: search spacing + reel action alignment */
#es-product-search-input{
    height:36px !important;
    padding-right:42px !important;
    padding-left:42px !important;
    line-height:36px !important;
}
.es-sidebar__search{
    min-height:36px !important;
    height:36px !important;
    padding:0 12px !important;
    gap:8px !important;
}
.es-search-icon{
    right:12px !important;
}
.es-custom-placeholder{
    right:42px !important;
}

/* Remove unwanted floating circle under reel buttons */
.es-reel__actions,
.es-reel__actions::before,
.es-reel__actions::after{
    background:transparent !important;
    box-shadow:none !important;
}
.es-action__btn{
    background:transparent !important;
    box-shadow:none !important;
}
.es-reel__actions{
    bottom:calc(env(safe-area-inset-bottom) + 90px) !important;
    gap:20px !important;
}

/* Reel mobile layout: keep action icons compact and leave the caption fully visible,
   closer to the Instagram-style visual balance. */
@media (max-width: 768px) {
    .es-reel__actions {
        inset-inline-start: 10px !important;
        bottom: calc(env(safe-area-inset-bottom) + 112px) !important;
        gap: 10px !important;
    }
    .es-action {
        gap: 2px !important;
    }
    .es-action__btn {
        width: 36px !important;
        height: 36px !important;
    }
    .es-action__btn svg {
        width: 22px !important;
        height: 22px !important;
    }
    .es-action__label {
        font-size: 10px !important;
        line-height: 12px !important;
    }
    .es-reel__meta {
        inset-inline-start: 12px !important;
        inset-inline-end: 58px !important;
        bottom: calc(env(safe-area-inset-bottom) + 18px) !important;
        gap: 5px !important;
    }
    .es-reel__title {
        font-size: 14px !important;
        line-height: 1.35 !important;
    }
    .es-reel__desc {
        font-size: 12px !important;
        line-height: 1.4 !important;
        -webkit-line-clamp: 2 !important;
    }
    .es-reel__price {
        font-size: 13px !important;
        margin-top: 2px !important;
    }
    .es-reel__actions-row {
        margin-top: 3px !important;
    }
}

@media (max-width: 480px) {
    .es-reel__actions {
        inset-inline-start: 8px !important;
        bottom: calc(env(safe-area-inset-bottom) + 108px) !important;
        gap: 8px !important;
    }
    .es-action__btn {
        width: 34px !important;
        height: 34px !important;
    }
    .es-action__btn svg {
        width: 21px !important;
        height: 21px !important;
    }
    .es-reel__meta {
        inset-inline-start: 10px !important;
        inset-inline-end: 52px !important;
        bottom: calc(env(safe-area-inset-bottom) + 16px) !important;
    }
}


/* ==========================================================================
 * UI polish v1.1.2
 * 1) Medium, balanced Reel action icons
 * 2) Loading skeletons match the real icon/text proportions and shadows
 * 3) Cleaner, more readable Reel typography
 * 4) Better-aligned search input and search result typography
 * ========================================================================== */

/* Reel action rail — medium size, no oversized visual weight */
.es-reel__actions {
    inset-inline-start: 12px !important;
    bottom: calc(env(safe-area-inset-bottom) + 104px) !important;
    gap: 12px !important;
    width: 42px !important;
}
.es-action {
    gap: 3px !important;
    min-width: 42px !important;
}
.es-action__btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.es-action__btn svg {
    width: 24px !important;
    height: 24px !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.65)) !important;
}
.es-action__label {
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.7) !important;
    white-space: nowrap !important;
}

/* Reel caption — readable without overpowering the video */
.es-reel__meta {
    inset-inline-start: 14px !important;
    inset-inline-end: 68px !important;
    bottom: calc(env(safe-area-inset-bottom) + 16px) !important;
    gap: 6px !important;
    max-width: calc(100% - 82px) !important;
}
.es-reel__title {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-wrap: balance !important;
    text-shadow: 0 1px 4px rgba(0,0,0,.72) !important;
}
.es-reel__desc {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.7) !important;
}
.es-reel__price {
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    margin-top: 1px !important;
}
.es-reel__actions-row {
    gap: 7px !important;
    margin-top: 4px !important;
}
.es-reel__actions-row .es-buy {
    min-height: 38px !important;
    padding: 8px 18px !important;
    font-size: 13px !important;
}

/* Search box — balanced icon, input and placeholder */
.es-top-search-layout {
    gap: 8px !important;
    align-items: center !important;
}
#es-product-search-input {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 42px !important;
    line-height: 38px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-align: right !important;
    vertical-align: middle !important;
}
.es-search-icon {
    right: 12px !important;
    width: 18px !important;
    height: 18px !important;
}
.es-custom-placeholder {
    right: 42px !important;
    left: 42px !important;
    font-size: 12.5px !important;
    line-height: 38px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    pointer-events: none !important;
}

/* Sidebar search + result list typography */
.es-sidebar__search {
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 11px !important;
    margin: 0 10px 9px !important;
    gap: 7px !important;
}
.es-sidebar__search input {
    height: 36px !important;
    line-height: 36px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
}
.es-product-search__list {
    gap: 4px !important;
}
.es-product-search__item {
    gap: 9px !important;
    padding: 7px 6px !important;
    min-height: 56px !important;
}
.es-product-search__item-img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
}
.es-product-search__item-info {
    gap: 3px !important;
    min-width: 0 !important;
}
.es-product-search__item-title {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    font-weight: 600 !important;
    text-align: right !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.es-product-search__item-price {
    font-size: 11px !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
}
.es-product-search__placeholder {
    font-size: 12.5px !important;
    line-height: 1.7 !important;
}

/* Popular searches generated by the search dropdown */
.es-suggest-header {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    min-height: 24px !important;
}
.es-suggest-header .es-fire-icon {
    width: 17px !important;
    height: 17px !important;
    flex: 0 0 17px !important;
}
.es-suggest-header span {
    font-size: 13px !important;
    line-height: 1.6 !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.es-popular-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
}
.es-tag-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 30px !important;
    padding: 5px 10px !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 8px !important;
    background: #fafafa !important;
    color: #334155 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: .15s ease !important;
}
.es-tag-link:hover {
    color: var(--es-primary) !important;
    border-color: var(--es-primary) !important;
    background: #fff !important;
}

/* Mobile: keep the same proportions, only slightly compact */
@media (max-width: 768px) {
    .es-reel__actions {
        inset-inline-start: 9px !important;
        bottom: calc(env(safe-area-inset-bottom) + 108px) !important;
        gap: 9px !important;
    }
    .es-action__btn,
    .ess-icon-skeleton {
        width: 35px !important;
        height: 35px !important;
        flex-basis: 35px !important;
    }
    .es-action__btn svg,
    .ess-icon-skeleton svg {
        width: 22px !important;
        height: 22px !important;
    }
    .es-action__label {
        font-size: 9.5px !important;
    }
    .ess-actions-skeleton {
        inset-inline-start: 9px !important;
        bottom: calc(env(safe-area-inset-bottom) + 108px) !important;
        gap: 9px !important;
    }
    .es-reel__meta,
    .ess-meta-skeleton {
        inset-inline-start: 11px !important;
        inset-inline-end: 54px !important;
        bottom: calc(env(safe-area-inset-bottom) + 15px) !important;
    }
    .es-reel__title {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
    .es-reel__desc {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }
}
@media (max-width: 480px) {
    .es-reel__actions {
        inset-inline-start: 7px !important;
        bottom: calc(env(safe-area-inset-bottom) + 104px) !important;
        gap: 7px !important;
    }
    .ess-actions-skeleton {
        inset-inline-start: 7px !important;
        bottom: calc(env(safe-area-inset-bottom) + 104px) !important;
        gap: 7px !important;
    }
    .es-action__btn,
    .ess-icon-skeleton {
        width: 33px !important;
        height: 33px !important;
        flex-basis: 33px !important;
    }
    .es-action__btn svg,
    .ess-icon-skeleton svg {
        width: 20px !important;
        height: 20px !important;
    }
    #es-product-search-input {
        font-size: 12px !important;
    }
    .es-custom-placeholder {
        font-size: 12px !important;
    }
}

/* UI polish v1.1.3 — Instagram-sized Reel icons + perfectly matched loading state */
.es-action__btn,
.ess-icon-skeleton {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    flex-basis: 42px !important;
}
.es-action__btn svg,
.ess-icon-skeleton svg {
    width: 28px !important;
    height: 28px !important;
}
.es-action__btn svg {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.65)) !important;
}
.ess-icon-skeleton {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.ess-icon-skeleton svg {
    color: #29292e !important;
    opacity: .9 !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.65)) !important;
}
.ess-icon-skeleton.ess-anim {
    background: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .es-action__btn,
    .ess-icon-skeleton {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        flex-basis: 40px !important;
    }
    .es-action__btn svg,
    .ess-icon-skeleton svg {
        width: 26px !important;
        height: 26px !important;
    }
}
@media (max-width: 480px) {
    .es-action__btn,
    .ess-icon-skeleton {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        flex-basis: 38px !important;
    }
    .es-action__btn svg,
    .ess-icon-skeleton svg {
        width: 25px !important;
        height: 25px !important;
    }
}


/* Product detail title + automatic rating */
.es-details-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.es-details-rating{display:inline-flex;align-items:center;gap:5px;direction:ltr;white-space:nowrap;font-size:14px;font-weight:700;line-height:1;}
.es-rating-star{font-size:18px;line-height:1;color:#f5b301;text-shadow:0 2px 6px rgba(245,179,1,.22);}
.es-rating-value{font-variant-numeric:tabular-nums;}
.es-rating-count{font-size:12px;font-weight:500;opacity:.62;direction:rtl;}
@media (max-width:480px){.es-details-title-row{align-items:flex-start}.es-details-rating{margin-top:3px;font-size:13px}.es-rating-star{font-size:17px}}


/* v1.1.5 — Product promotional highlight overlay on the product image */
.es-details-gallery {
    position: relative !important;
}

.es-product-highlights {
    position: absolute !important;
    right: 14px !important;
    left: auto !important;
    bottom: 14px !important;
    z-index: 8 !important;
    display: block !important;
    width: min(78%, 330px) !important;
    max-width: calc(100% - 28px) !important;
    padding: 0 !important;
    margin: 0 !important;
    direction: rtl !important;
    pointer-events: none !important;
}

.es-product-highlight {
    width: 100% !important;
    min-height: 38px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 8px 11px !important;
    border: 1px solid rgba(255,255,255,.28) !important;
    border-radius: 12px !important;
    background: rgba(70, 70, 70, .58) !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.18) !important;
    -webkit-backdrop-filter: blur(12px) saturate(125%) !important;
    backdrop-filter: blur(12px) saturate(125%) !important;
    overflow: hidden !important;
}

.es-product-highlight__emoji {
    width: auto !important;
    min-width: 22px !important;
    flex: 0 0 auto !important;
    font-size: 18px !important;
    line-height: 1 !important;
    text-align: center !important;
}

.es-product-highlight__text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.55 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.2) !important;
}

@media (max-width: 600px) {
    .es-product-highlights {
        right: 10px !important;
        bottom: 10px !important;
        width: min(82%, 300px) !important;
        max-width: calc(100% - 20px) !important;
    }
    .es-product-highlight {
        min-height: 36px !important;
        padding: 7px 10px !important;
        border-radius: 11px !important;
    }
    .es-product-highlight__emoji {
        font-size: 17px !important;
    }
    .es-product-highlight__text {
        font-size: 11.5px !important;
    }
}

/* v1.1.7 — Compact promotional badge; shown only on the first gallery image */
.es-product-highlights {
    right: 10px !important;
    bottom: 10px !important;
    left: auto !important;
    width: auto !important;
    max-width: 180px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.es-product-highlight {
    width: fit-content !important;
    max-width: 180px !important;
    min-height: 30px !important;
    height: 30px !important;
    box-sizing: border-box !important;
    padding: 3px 5px 3px 8px !important;
    gap: 5px !important;
    border: 1px solid rgba(255,255,255,.28) !important;
    border-radius: 15px !important;
    background: rgba(82,82,82,.62) !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.08) !important;
    -webkit-backdrop-filter: blur(8px) saturate(110%) !important;
    backdrop-filter: blur(8px) saturate(110%) !important;
    overflow: hidden !important;
}

.es-product-highlight__emoji {
    order: 0 !important;
    width: 21px !important;
    height: 21px !important;
    min-width: 21px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.92) !important;
    font-size: 13px !important;
    line-height: 1 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.12) !important;
}

.es-product-highlight__text {
    order: 1 !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 145px !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.22) !important;
}

.es-product-highlights.is-hidden-first {
    display: none !important;
}

@media (max-width: 600px) {
    .es-product-highlights {
        right: 8px !important;
        bottom: 8px !important;
        max-width: 165px !important;
    }
    .es-product-highlight {
        max-width: 165px !important;
        min-height: 28px !important;
        height: 28px !important;
        padding: 3px 4px 3px 7px !important;
        gap: 4px !important;
        border-radius: 14px !important;
    }
    .es-product-highlight__emoji {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        font-size: 12px !important;
    }
    .es-product-highlight__text {
        max-width: 132px !important;
        font-size: 10px !important;
    }
}

/* Product thumbnail overlay — intentionally isolated from reel/grid layout. */
.es-reel .es-reel-product-thumb{
    position:absolute !important;
    left:16px !important;
    bottom:18px !important;
    width:52px !important;
    height:52px !important;
    padding:0 !important;
    margin:0 !important;
    display:none;
    z-index:80 !important;
    border:1px solid rgba(255,255,255,.45) !important;
    border-radius:14px !important;
    overflow:hidden !important;
    background:rgba(45,45,45,.42) !important;
    box-shadow:0 8px 24px rgba(0,0,0,.24) !important;
    backdrop-filter:blur(10px) !important;
    -webkit-backdrop-filter:blur(10px) !important;
    opacity:0;
    transform:translateX(-10px) scale(.96);
    transition:opacity .22s ease,transform .22s ease;
    text-decoration:none !important;
}
.es-reel .es-reel-product-thumb.is-visible{opacity:1;transform:translateX(0) scale(1);}
.es-reel .es-reel-product-thumb img{width:100% !important;height:100% !important;object-fit:cover !important;display:block !important;margin:0 !important;}
@media(max-width:600px){.es-reel .es-reel-product-thumb{left:12px !important;bottom:16px !important;width:48px !important;height:48px !important;border-radius:13px !important;}}


/* v1.1.9 — Product-style vertical thumbnail */
.es-reel .es-reel-product-thumb{
    left:16px !important;
    bottom:20px !important;
    width:76px !important;
    height:104px !important;
    border-radius:16px !important;
    padding:4px !important;
    background:rgba(255,255,255,.86) !important;
    border:1px solid rgba(255,255,255,.72) !important;
    box-shadow:0 10px 28px rgba(0,0,0,.28), 0 1px 0 rgba(255,255,255,.65) inset !important;
    backdrop-filter:blur(12px) saturate(120%) !important;
    -webkit-backdrop-filter:blur(12px) saturate(120%) !important;
    overflow:hidden !important;
}
.es-reel .es-reel-product-thumb img{
    width:100% !important; height:100% !important;
    object-fit:contain !important;
    object-position:center !important;
    background:transparent !important;
    border-radius:12px !important;
}
.es-reel .es-reel-product-thumb::after{
    content:'مشاهده محصول';
    position:absolute; left:4px; right:4px; bottom:4px;
    padding:3px 2px; border-radius:8px;
    background:rgba(30,30,30,.62); color:#fff;
    font-size:8px; font-weight:700; text-align:center;
    line-height:1.2; pointer-events:none;
    backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px);
}
@media(max-width:600px){
    .es-reel .es-reel-product-thumb{left:12px !important;bottom:18px !important;width:66px !important;height:90px !important;border-radius:14px !important;padding:3px !important;}
    .es-reel .es-reel-product-thumb::after{font-size:7.5px;bottom:3px;left:3px;right:3px;border-radius:7px;}
}
.explore-highlight-row{display:grid;grid-template-columns:55px minmax(160px,1fr) minmax(180px,1fr) auto;gap:8px;align-items:center;}
@media(max-width:800px){.explore-highlight-row{grid-template-columns:48px 1fr;}.explore-highlight-row .explore-highlight-url{grid-column:1 / -1;}.explore-highlight-row .explore-remove-highlight{grid-column:1 / -1;justify-self:start;}}
.es-product-highlight{text-decoration:none !important;color:inherit !important;cursor:pointer;}

/* Visual product search — camera control in the free left side of the search field. */
#es-product-search .es-visual-search-button {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--es-visual-search-color, var(--es-primary));
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--es-visual-search-color, var(--es-primary));
    cursor: pointer;
    z-index: 5;
    box-shadow: none;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
#es-product-search .es-visual-search-button:hover,
#es-product-search .es-visual-search-button:focus-visible {
    color: var(--es-visual-search-color, var(--es-primary));
    background: color-mix(in srgb, var(--es-visual-search-color, var(--es-primary)) 8%, transparent);
    outline: none;
    box-shadow: 0 3px 10px color-mix(in srgb, var(--es-visual-search-color, var(--es-primary)) 18%, transparent);
}
#es-product-search .es-visual-search-button:active { transform: translateY(-50%) scale(.96); }
#es-product-search .es-visual-search-sheet {
    position: absolute;
    left: 6px;
    top: calc(100% + 7px);
    z-index: 50;
    display: flex;
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(148,163,184,.25);
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 28px rgba(15,23,42,.14);
    backdrop-filter: blur(12px);
}
#es-product-search .es-visual-search-sheet[hidden] { display:none; }
#es-product-search .es-visual-search-sheet button {
    border: 0; border-radius: 10px; background: #f1f5f9; color: #334155;
    padding: 7px 10px; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap;
}
#es-product-search .es-visual-search-sheet button:hover { background:#e2e8f0; }
#es-product-search .es-visual-search-loading { min-height: 130px; display:flex; align-items:center; justify-content:center; gap:8px; color:#64748b; font-size:12px; }
#es-product-search .es-visual-search-heading { padding: 8px 4px 6px; color:#64748b; font-size:12px; font-weight:700; }
#es-product-search .es-visual-result-source {
    display:inline-flex; align-items:center; justify-content:center;
    margin-right:6px; padding:2px 6px; border-radius:999px;
    background: color-mix(in srgb, var(--es-visual-search-color, var(--es-primary)) 10%, transparent);
    color: var(--es-visual-search-color, var(--es-primary));
    font-size:10px; font-weight:700; white-space:nowrap;
}
#es-product-search .es-visual-result-source.is-explore {
    background: color-mix(in srgb, #7c3aed 10%, transparent); color:#7c3aed;
}

#es-product-search .es-search-tools{
    position:absolute;
    left:8px;
    top:50%;
    transform:translateY(-50%);
    z-index:6;
    display:flex;
    align-items:center;
    gap:7px;
    direction:ltr;
    pointer-events:none;
}
#es-product-search .es-search-tools .es-search-tool-button{
    position:relative !important;
    left:auto !important;
    top:auto !important;
    transform:none !important;
    flex:0 0 34px;
    width:34px !important;
    height:34px !important;
    min-width:34px;
    min-height:34px;
    margin:0 !important;
    padding:0 !important;
    border:1.5px solid var(--es-visual-search-color, var(--es-primary)) !important;
    border-radius:10px !important;
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    background:transparent !important;
    color:var(--es-visual-search-color, var(--es-primary)) !important;
    cursor:pointer;
    pointer-events:auto;
    box-sizing:border-box;
    box-shadow:none !important;
    transition:transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
#es-product-search .es-search-tools .es-search-tool-button:hover,
#es-product-search .es-search-tools .es-search-tool-button:focus-visible{
    transform:translateY(-1px) !important;
    background:transparent !important;
    outline:none;
    box-shadow:none !important;
}
#es-product-search .es-search-tools .es-search-tool-button:active{
    transform:scale(.95) !important;
}
#es-product-search .es-search-tools .es-search-tool-button svg{
    width:19px;
    height:19px;
    display:block;
}
#es-product-search .es-search-tools .es-voice-search-button.is-listening{
    background:transparent !important;
    box-shadow:none !important;
}
#es-product-search .es-search-tools .es-search-tool-button:hover{background:transparent !important;box-shadow:none !important;}

#es-product-search .es-search-tools.visual_voice .es-visual-search-button{order:1;}
#es-product-search .es-search-tools.visual_voice .es-voice-search-button{order:2;}
#es-product-search .es-search-tools.voice_visual .es-voice-search-button{order:1;}
#es-product-search .es-search-tools.voice_visual .es-visual-search-button{order:2;}
#es-product-search .es-visual-search-sheet{
    left:0;
    top:calc(100% + 8px);
}
#es-product-search-input { padding-left: 96px !important; }
@media(max-width:600px){
    #es-product-search .es-search-tools{left:7px;gap:5px;}
    #es-product-search .es-search-tools .es-search-tool-button{flex-basis:32px;width:32px !important;height:32px !important;min-width:32px;min-height:32px;border-radius:9px !important;}
    #es-product-search .es-search-tools .es-search-tool-button svg{width:18px;height:18px;}
    #es-product-search-input { padding-left: 78px !important; }
}



/* Search tools final layout fix: two independent hit areas, never touching. */
#es-product-search .es-search-tools{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:10px !important;
    width:max-content !important;
    max-width:calc(100% - 12px) !important;
    isolation:isolate;
}
#es-product-search .es-search-tools .es-search-tool-button{
    flex:0 0 36px !important;
    width:36px !important;
    height:36px !important;
    min-width:36px !important;
    max-width:36px !important;
    margin:0 !important;
    position:relative !important;
    inset:auto !important;
    box-sizing:border-box !important;
}
#es-product-search .es-search-tools .es-search-tool-button + .es-search-tool-button{
    margin-left:10px !important;
}
#es-product-search .es-search-tools.visual_voice .es-visual-search-button{order:1 !important;}
#es-product-search .es-search-tools.visual_voice .es-voice-search-button{order:2 !important;}
#es-product-search .es-search-tools.voice_visual .es-voice-search-button{order:1 !important;}
#es-product-search .es-search-tools.voice_visual .es-visual-search-button{order:2 !important;}
#es-product-search-input{padding-left:108px !important;}
@media(max-width:600px){
    #es-product-search .es-search-tools{left:7px !important;gap:8px !important;}
    #es-product-search .es-search-tools .es-search-tool-button{
        flex-basis:32px !important;width:32px !important;height:32px !important;
        min-width:32px !important;max-width:32px !important;
    }
    #es-product-search .es-search-tools .es-search-tool-button + .es-search-tool-button{margin-left:8px !important;}
    #es-product-search-input{padding-left:88px !important;}
}


/* Virtual Try-On (legacy trigger/modal — restored selectors, kept for compatibility) */
.es-tryon-trigger {
    width:100%;
    margin:10px 0 14px;
    min-height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    border:1px solid color-mix(in srgb, var(--es-primary) 24%, #e5e7eb);
    border-radius:12px;
    background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.92));
    color:var(--es-primary);
    font:700 14px/1.2 inherit;
    cursor:pointer;
    box-shadow:0 5px 18px rgba(15,23,42,.06);
    transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.es-tryon-modal {
    position:fixed; inset:0; z-index:100000; display:none; align-items:flex-end; justify-content:center;
    background:rgba(15,23,42,.42); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
    padding:18px;
}
.es-tryon-dialog {
    width:min(100%,520px); max-height:min(88vh,760px); overflow:auto; position:relative;
    border:1px solid rgba(255,255,255,.72); border-radius:24px; background:rgba(255,255,255,.96);
    box-shadow:0 24px 70px rgba(15,23,42,.24); padding:22px;
    direction:rtl;
}
.es-tryon-close {
    position:absolute; top:12px; left:12px; width:34px; height:34px; border:0; border-radius:50%;
    background:#f1f5f9; color:#334155; font-size:24px; line-height:1; cursor:pointer;
}
.es-tryon-choice-icon { width:48px; height:48px; display:grid; place-items:center; border-radius:15px; background:#f8fafc; color:var(--es-primary); }
.es-tryon-choice-icon svg { width:27px; height:27px; }
@media (max-width:600px) {
}


/* 1.2.6 — Product voice + functional Virtual Try-On modal */
.es-details-title-row{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap}
.es-details-rating{display:inline-flex;align-items:center}
.es-product-voice-trigger{appearance:none;border:1px solid rgba(15,23,42,.08);background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);color:#1f2937;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:40px;height:40px;padding:0 11px;border-radius:13px;cursor:pointer;font:inherit;font-size:12px;font-weight:600;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease;box-shadow:0 5px 18px rgba(15,23,42,.08)}
.es-product-voice-trigger:hover{transform:translateY(-1px);border-color:rgba(15,23,42,.14);box-shadow:0 8px 24px rgba(15,23,42,.12)}
.es-product-voice-trigger:active{transform:translateY(0) scale(.97)}
.es-product-voice-trigger.is-speaking{background:linear-gradient(180deg,#f8fafc 0%,#eef2f7 100%);box-shadow:0 0 0 4px rgba(15,23,42,.06),0 8px 24px rgba(15,23,42,.1)}
.es-product-voice-icon{display:inline-flex;width:20px;height:20px;align-items:center;justify-content:center;position:relative}
.es-product-voice-icon svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.75;transition:transform .2s ease}
.es-product-voice-trigger.is-speaking .es-product-voice-icon svg{animation:esVoicePulse 1.1s ease-in-out infinite}
.es-product-voice-trigger.is-speaking .es-product-voice-icon:after{content:"";position:absolute;inset:-4px;border:1px solid currentColor;border-radius:50%;opacity:.16;animation:esVoiceRing 1.1s ease-out infinite}
@keyframes esVoicePulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
@keyframes esVoiceRing{0%{transform:scale(.7);opacity:.2}70%,100%{transform:scale(1.35);opacity:0}}

/* KAVOSHVIEW 1.2.7: voice + try-on compact controls */
.kv-voice-upload-wrap{display:inline-flex!important;align-items:center;gap:8px!important;margin-inline-start:8px!important;vertical-align:middle}
.kv-voice-upload-btn{width:38px;height:38px;min-width:38px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;padding:0;box-sizing:border-box}
@media(max-width:600px){
 .kv-voice-upload-wrap{gap:7px!important;margin-inline-start:7px!important}
}

/* KAVOSHVIEW 1.2.8 product voice controls */
#kv_product_voice_panel_1_2_8{border-top:1px solid #e7e7e7}
.kv-product-voice-controls{display:inline-flex!important;align-items:center!important;gap:8px!important}
.kv-product-voice-controls .is-playing{opacity:.8}

/* KAVOSHVIEW 1.3.0: iPhone-style Try-On */
.kv-tryon-iphone-modal{position:fixed!important;inset:0!important;z-index:999999!important;display:flex!important;align-items:center!important;justify-content:center!important;background:rgba(8,12,20,.42)!important;backdrop-filter:blur(10px)!important}
.kv-tryon-iphone-modal .kv-tryon-dialog,.kv-tryon-iphone-modal .kv-tryon-content{width:min(92vw,420px)!important;max-height:88vh!important;border-radius:28px!important;overflow:hidden!important;background:rgba(255,255,255,.96)!important;box-shadow:0 24px 80px rgba(0,0,0,.22)!important}
.kv-tryon-modal [class*="delete"],.kv-tryon-modal [class*="trash"],.kv-tryon-modal .kv-tryon-delete,.kv-tryon-modal .kv-tryon-trash{display:none!important}
@media(max-width:600px){.kv-tryon-iphone-modal .kv-tryon-dialog,.kv-tryon-iphone-modal .kv-tryon-content{width:calc(100vw - 20px)!important;max-height:92vh!important;border-radius:30px!important}}

/* KAVOSHVIEW 1.3.1 FINAL — iPhone grab handle */
.kv-tryon-iphone-modal .kv-tryon-dialog::before,
.kv-tryon-iphone-modal .kv-tryon-content::before{
  content:"";
  display:block;
  width:42px;
  height:4px;
  margin:9px auto 5px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  box-shadow:0 1px 3px rgba(0,0,0,.08);
}

/* KAVOSHVIEW 1.3.2 FINAL — modern WooCommerce product attributes */
.kv-product-details table.woocommerce-product-attributes,
.product .woocommerce-product-attributes,
.woocommerce-product-attributes{
  width:100%;
  border:0!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  margin:14px 0!important;
  overflow:hidden;
  border-radius:18px!important;
  background:rgba(255,255,255,.72);
  box-shadow:0 8px 30px rgba(0,0,0,.055);
}
.woocommerce-product-attributes tr{
  display:grid;
  grid-template-columns:minmax(110px,.72fr) minmax(0,1.28fr);
  align-items:center;
  min-height:48px;
  border:0!important;
}
.woocommerce-product-attributes tr+tr{
  border-top:1px solid rgba(20,20,30,.075)!important;
}
.woocommerce-product-attributes th,
.woocommerce-product-attributes td{
  border:0!important;
  padding:12px 15px!important;
  vertical-align:middle!important;
  background:transparent!important;
  text-align:right!important;
  font-size:13px!important;
  line-height:1.75!important;
}
.woocommerce-product-attributes th{
  font-weight:700!important;
  color:inherit!important;
  opacity:.68;
}
.woocommerce-product-attributes td{
  font-weight:500!important;
}
.woocommerce-product-attributes td p{
  margin:0!important;
}
.woocommerce-product-attributes a{
  text-decoration:none!important;
}
.woocommerce-product-attributes tr:first-child th{
  border-top-right-radius:18px;
}
.woocommerce-product-attributes tr:first-child td{
  border-top-left-radius:18px;
}
.woocommerce-product-attributes tr:last-child th{
  border-bottom-right-radius:18px;
}
.woocommerce-product-attributes tr:last-child td{
  border-bottom-left-radius:18px;
}
@media(max-width:600px){
  .woocommerce-product-attributes{
    border-radius:16px!important;
  }
  .woocommerce-product-attributes tr{
    grid-template-columns:42% 58%;
    min-height:45px;
  }
  .woocommerce-product-attributes th,
  .woocommerce-product-attributes td{
    padding:10px 12px!important;
    font-size:12px!important;
  }
}

/* KAVOSHVIEW 1.3.3 FINAL — actual iPhone Try-On sheet */
.kv-tryon-iphone-modal .kv-tryon-dialog,
.kv-tryon-iphone-modal .kv-tryon-content{
  position:relative!important;
  border-radius:30px!important;
}
.kv-tryon-iphone-modal .kv-tryon-dialog::before,
.kv-tryon-iphone-modal .kv-tryon-content::before{
  content:""!important;
  display:block!important;
  width:42px!important;
  height:4px!important;
  margin:7px auto 2px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 1px 4px rgba(0,0,0,.10)!important;
}
@media(max-width:600px){
  .kv-tryon-iphone-modal .kv-tryon-dialog,
  .kv-tryon-iphone-modal .kv-tryon-content{
    border-radius:30px 30px 0 0!important;
  }
}

.kv-google-video-watch video{aspect-ratio:9/16;object-fit:cover;max-height:80vh}
@media(max-width:600px){.kv-google-video-watch{margin:12px auto!important}.kv-google-video-watch video{border-radius:16px!important}}


/* KAVOSHVIEW 1.3.5 — Product quick-info row matching the compact reference layout */
.es-product-quick-row{
    width:100%;
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:5px;
    direction:ltr;
    padding:7px 12px 0;
    min-height:40px;
}
.es-product-quick-row button,
.es-product-quick-row .es-details-rating{box-sizing:border-box;flex:0 0 auto;}

/* Audio stays genuinely interactive and visually sits at the far-left of this row. */
.es-product-quick-row .es-product-voice-trigger{
    order:1;
    width:34px;
    min-width:34px;
    height:34px;
    padding:0;
    border:1px solid rgba(15,23,42,.07);
    border-radius:12px;
    background:#fff;
    color:#374151;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:0 3px 12px rgba(15,23,42,.055);
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease;
}
.es-product-quick-row .es-product-voice-trigger:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(15,23,42,.09);}
.es-product-quick-row .es-product-voice-trigger:active{transform:scale(.95);}
.es-product-quick-row .es-product-voice-trigger.is-speaking{
    background:#f6f7f9;
    border-color:rgba(15,23,42,.12);
    box-shadow:0 0 0 3px rgba(15,23,42,.045),0 6px 16px rgba(15,23,42,.09);
}
.es-product-quick-row .es-product-voice-icon{width:17px;height:17px;display:inline-flex;align-items:center;justify-content:center;position:relative;}
.es-product-quick-row .es-product-voice-icon svg{width:17px;height:17px;display:block;stroke:currentColor;stroke-width:1.9;}
.es-product-quick-row .es-product-voice-trigger.is-speaking .es-product-voice-icon svg{animation:kvProductAudioPulse 1s ease-in-out infinite;}
.es-product-quick-row .es-product-voice-trigger.is-speaking .es-product-voice-icon:after{content:"";position:absolute;inset:-5px;border:1px solid currentColor;border-radius:50%;opacity:.16;animation:kvProductAudioRing 1.05s ease-out infinite;}
.es-product-quick-row .es-product-voice-label{display:none;}

/* Real comment count pill. */
.es-product-quick-row .es-details-comments-count{
    order:2;
    height:34px;
    min-width:68px;
    padding:0 8px;
    border:1px solid rgba(15,23,42,.055);
    border-radius:12px;
    background:#f7f8fa;
    color:#6b7280;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    direction:rtl;
    white-space:nowrap;
    font:500 10.5px/1 inherit;
    cursor:pointer;
    box-shadow:none;
    transition:background .18s ease,transform .18s ease;
}
.es-product-quick-row .es-details-comments-count:hover{background:#f0f2f5;transform:translateY(-1px);}
.es-comments-count-value{font-variant-numeric:tabular-nums;}

/* AI summary pill with the same compact visual language as the reference. */
.es-product-quick-row .es-details-summary-btn{
    order:3;
    height:34px;
    min-width:106px;
    padding:0 8px;
    border:1px solid rgba(99,102,241,.08);
    border-radius:12px;
    background:linear-gradient(180deg,#f4f4ff 0%,#eef0ff 100%);
    color:#70759a;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    direction:rtl;
    white-space:nowrap;
    font:600 10.5px/1 inherit;
    cursor:pointer;
    box-shadow:none;
    transition:transform .18s ease,background .18s ease;
}
.es-product-quick-row .es-details-summary-btn:hover{transform:translateY(-1px);background:linear-gradient(180deg,#efefff 0%,#e9ebff 100%);}
.es-summary-sparkles{width:17px;height:17px;display:inline-flex;align-items:center;justify-content:center;color:#6875e8;}
.es-summary-sparkles svg{width:17px;height:17px;display:block;}

/* Real WooCommerce rating stays on the right, as in the supplied reference. */
.es-product-quick-row .es-details-rating{
    order:4;
    min-height:34px;
    padding:0 2px 0 0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:4px;
    direction:ltr;
    background:transparent;
    border:0;
    box-shadow:none;
    white-space:nowrap;
    font-size:11px;
    font-weight:700;
}
.es-product-quick-row .es-rating-star{font-size:17px;line-height:1;color:#f3a51a;text-shadow:0 1px 3px rgba(243,165,26,.18);}
.es-product-quick-row .es-rating-value{font-variant-numeric:tabular-nums;color:#4b5563;}
.es-product-quick-row .es-rating-count{font-size:9px;font-weight:500;color:#9ca3af;direction:rtl;}

@keyframes kvProductAudioPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
@keyframes kvProductAudioRing{0%{transform:scale(.72);opacity:.16}70%,100%{transform:scale(1.28);opacity:0}}

@media(max-width:600px){
    .es-product-quick-row{gap:4px;padding:6px 10px 0;min-height:38px;}
    .es-product-quick-row .es-product-voice-trigger{width:32px;min-width:32px;height:32px;border-radius:9px;}
    .es-product-quick-row .es-product-voice-icon,.es-product-quick-row .es-product-voice-icon svg{width:16px;height:16px;}
    .es-product-quick-row .es-details-comments-count{height:32px;min-width:62px;padding:0 7px;border-radius:9px;font-size:10px;}
    .es-product-quick-row .es-details-summary-btn{height:32px;min-width:96px;padding:0 7px;border-radius:9px;font-size:10px;gap:4px;}
    .es-summary-sparkles,.es-summary-sparkles svg{width:16px;height:16px;}
    .es-product-quick-row .es-details-rating{min-height:32px;font-size:10px;}
    .es-product-quick-row .es-rating-star{font-size:16px;}
    .es-product-quick-row .es-rating-count{display:none;}
}


/* v1.4.1 — final comment composer + visual search popup positioning */
.es-comments__form button#es-comment-submit {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--es-primary, #ff2d77) !important;
    border-radius: 0 !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    outline: none !important;
}
.es-comments__form button#es-comment-submit:hover,
.es-comments__form button#es-comment-submit:focus-visible,
.es-comments__form button#es-comment-submit:active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}
.es-comments__form button#es-comment-submit svg {
    width: 20px !important;
    height: 20px !important;
    color: currentColor !important;
    stroke: currentColor !important;
    transform: rotate(180deg) translateX(0) !important;
}
.es-comments__form button#es-comment-submit.is-sending svg {
    animation: esCommentSendingLeft .8s linear infinite !important;
}
@keyframes esCommentSendingLeft {
    0% { transform: rotate(180deg) translateX(0); opacity: 1; }
    50% { transform: rotate(180deg) translateX(-3px); opacity: .55; }
    100% { transform: rotate(180deg) translateX(0); opacity: 1; }
}


/* Kavoshview 1.4.1 mobile stability patch */
@media (max-width:600px){
    #es-product-search .es-visual-search-sheet{
        position:fixed !important;
        z-index:99999 !important;
        max-width:none !important;
        border-radius:16px !important;
    }

    /* Comments sheet stays above mobile keyboard */
    .es-comments{
        height: min(72dvh, 620px) !important;
        max-height: calc(100dvh - 20px) !important;
        overflow:hidden !important;
    }
    .es-comments__body{
        padding-bottom:90px !important;
        overflow-y:auto !important;
        -webkit-overflow-scrolling:touch !important;
    }
    .es-comments__form,
    .es-comment-form{
        position:sticky !important;
        bottom:0 !important;
        z-index:10 !important;
        display:flex !important;
        align-items:center !important;
        direction:rtl !important;
        padding:8px !important;
        background:#fff !important;
    }
    .es-comments__form button,
    .es-comment-form button,
    .es-comment-send{
        order:1 !important;
        margin-left:0 !important;
        margin-right:8px !important;
        flex-shrink:0 !important;
        transform:none !important;
    }
    .es-comments__form input,
    .es-comments__form textarea,
    .es-comment-form input,
    .es-comment-form textarea{
        order:2 !important;
        min-height:42px !important;
        max-height:90px !important;
        overflow:auto !important;
    }

    /* AI analysis card cleanup */
    .es-ai-card{
        width:100% !important;
        margin:0 !important;
        box-sizing:border-box !important;
        overflow:hidden !important;
    }
    .es-ai-card__header,
    .es-ai-card__body,
    .es-ai-card__footer{
        display:flex !important;
        align-items:center !important;
        flex-wrap:wrap !important;
        box-sizing:border-box !important;
    }
}


/* FINAL MOBILE FIX - search visual menu, comments keyboard, AI card */
@media (max-width:600px){
  #es-product-search .es-visual-search-sheet{
    position: fixed !important;
    top: 90px !important;
    left: 12px !important;
    right: auto !important;
    bottom: auto !important;
    transform:none !important;
  }
  #es-product-search .es-visual-search-sheet button{
    min-width:105px !important;
    height:48px !important;
  }

  .es-details-sheet{
    height:100dvh !important;
    max-height:100dvh !important;
    overflow:hidden !important;
    padding-bottom:env(safe-area-inset-bottom) !important;
  }
  .es-details-content,
  .es-comments-wrap,
  .es-details-scroll{
    overflow-y:auto !important;
    height:calc(100dvh - 120px) !important;
    -webkit-overflow-scrolling:touch !important;
  }

  .es-ai-analysis,
  .es-analysis-box,
  [class*="analysis"]{
    margin:12px !important;
    padding:16px !important;
    border-radius:18px !important;
    overflow:hidden !important;
  }

  .es-comment-form,
  .es-comment-input-wrap{
    position:fixed !important;
    bottom:0 !important;
    left:0 !important;
    right:0 !important;
    z-index:10020 !important;
    background:#fff !important;
    padding:10px !important;
    padding-bottom:calc(10px + env(safe-area-inset-bottom)) !important;
  }

  .es-comment-form button,
  .es-comment-send{
    position:absolute !important;
    left:12px !important;
    right:auto !important;
    bottom:12px !important;
    transform:none !important;
  }
}


/* FINAL MOBILE FIX */
.es-visual-search-sheet{display:none!important;}
.es-comments__input-row,.es-comment-form{position:relative!important;}
.es-comment-submit,.es-comments__submit,.es-comment-form button[type="submit"]{
 position:absolute!important;
 left:8px!important;
 top:50%!important;
 transform:translateY(-50%)!important;
 z-index:20!important;
}
.es-ai-card{
 width:100%!important;
 box-sizing:border-box!important;
 overflow:hidden!important;
}
.es-ai-card__header{align-items:center!important;}
.es-ai-card__body{padding:14px!important;}
.es-ai-features{margin:12px 0 0!important;padding:0!important;display:flex;flex-direction:column;gap:10px;}
@media(max-width:600px){
 .es-comments{padding-bottom:env(safe-area-inset-bottom)!important;}
 .es-ai-card{border-radius:18px!important;}
 .es-ai-card__header-text h3{font-size:16px!important;}
}


/* Final mobile fixes - only targeted */
@media (max-width:600px){
  .es-comment-form,
  .es-comments-form,
  .es-comment-input-wrap { position:relative !important; }
  #es-comment-submit,
  .es-comment-submit-btn,
  .es-comments-submit {
    position:absolute !important;
    left:10px !important;
    top:8px !important;
    bottom:auto !important;
    z-index:20 !important;
  }
  .es-details-sheet,
  .es-comments-sheet,
  .es-comment-sheet {
    max-height:90vh !important;
    height:90vh !important;
    border-radius:22px 22px 0 0 !important;
  }
  .es-details-sheet .es-ai-card,
  .es-details-comments-wrap .es-ai-card {
    overflow:hidden !important;
    padding:14px !important;
    margin:10px !important;
    border-radius:16px !important;
  }
}

.kv-visual-camera-backdrop{position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.46);opacity:0;pointer-events:none;transition:opacity .25s ease}
.kv-visual-camera-backdrop.is-open{opacity:1;pointer-events:auto}
.kv-visual-camera-sheet{position:fixed;left:50%;bottom:0;z-index:100001;width:min(100%,620px);height:min(88dvh,760px);max-height:calc(100dvh - 10px);transform:translate(-50%,105%);display:flex;flex-direction:column;overflow:hidden;background:#050505;color:#fff;border-radius:26px 26px 0 0;box-shadow:0 -16px 50px rgba(0,0,0,.32);transition:transform .32s cubic-bezier(.22,.8,.24,1);overscroll-behavior:contain}
.kv-visual-camera-sheet.is-open{transform:translate(-50%,0)}
.kv-visual-camera-handle{flex:0 0 auto;width:42px;height:5px;margin:9px auto 5px;border-radius:999px;background:#fff;opacity:.95}
.kv-visual-camera-header{flex:0 0 48px;display:grid;grid-template-columns:48px 1fr 48px;align-items:center;text-align:center;padding:0 8px;font-size:14px}
.kv-visual-camera-close{width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:27px;line-height:1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.kv-visual-camera-preview{position:relative;flex:1 1 auto;min-height:0;margin:0 10px;border-radius:20px;overflow:hidden;background:#111}
.kv-visual-camera-preview video{display:block;width:100%;height:100%;object-fit:cover;background:#111}
.kv-visual-camera-frame{position:absolute;inset:13% 10%;pointer-events:none}
.kv-visual-camera-frame span{position:absolute;width:28px;height:28px;border-color:#fff;border-style:solid;opacity:.92}
.kv-visual-camera-frame span:nth-child(1){top:0;left:0;border-width:3px 0 0 3px;border-radius:7px 0 0 0}
.kv-visual-camera-frame span:nth-child(2){top:0;right:0;border-width:3px 3px 0 0;border-radius:0 7px 0 0}
.kv-visual-camera-frame span:nth-child(3){bottom:0;left:0;border-width:0 0 3px 3px;border-radius:0 0 0 7px}
.kv-visual-camera-frame span:nth-child(4){bottom:0;right:0;border-width:0 3px 3px 0;border-radius:0 0 7px 0}
.kv-visual-camera-message{position:absolute;left:16px;right:16px;top:50%;transform:translateY(-50%);text-align:center;color:#fff;font-size:12px;text-shadow:0 1px 5px #000;pointer-events:none}
.kv-visual-camera-actions{flex:0 0 92px;display:grid;grid-template-columns:1fr 82px 1fr;align-items:center;padding:8px 20px calc(10px + env(safe-area-inset-bottom))}
.kv-visual-camera-capture{width:68px;height:68px;padding:4px;margin:auto;border:3px solid #fff;border-radius:50%;background:transparent;cursor:pointer}
.kv-visual-camera-capture span{display:block;width:100%;height:100%;border-radius:50%;background:#fff}
.kv-visual-camera-gallery{justify-self:start;display:flex;flex-direction:column;align-items:center;gap:3px;border:0;background:transparent;color:#fff;font:inherit;font-size:10px;cursor:pointer}
.kv-visual-camera-gallery svg{width:25px;height:25px}
html.kv-visual-camera-open,body.kv-visual-camera-open{overflow:hidden !important}
@media(max-width:600px){.kv-visual-camera-sheet{width:100%;height:88dvh;border-radius:24px 24px 0 0}}

/* Details and comments use exactly the same iPhone-sheet footprint. */
.es-details-sheet,.es-comments{height:72dvh !important;max-height:72dvh !important;border-radius:22px 22px 0 0 !important}
@media(max-width:600px){.es-details-sheet,.es-comments{height:72dvh !important;max-height:72dvh !important}}

/* Straight, inline send icon — never rotated or pinned to the bottom. */
.es-comments__form{position:relative !important;display:flex !important;flex-direction:row !important;align-items:center !important;gap:6px !important}
.es-comments__form #es-comment-submit{position:static !important;left:auto !important;right:auto !important;top:auto !important;bottom:auto !important;transform:none !important;margin:0 !important;order:3 !important;flex:0 0 38px !important}
.es-comments__form #es-comment-submit svg{transform:none !important}
@media(max-width:600px){.es-comments__form{position:sticky !important;bottom:0 !important;direction:rtl !important}.es-comments__form #es-comment-submit{position:static !important;transform:none !important;order:3 !important}}

/* KAVOSHVIEW 1.4.1 — final native visual search + compact AI + straight comment send */

/* Visual search: no custom sheet/popup. The button opens the device's native picker. */
#es-product-search .es-visual-search-sheet,
.kv-visual-camera-backdrop,
.kv-visual-camera-sheet{
    display:none !important;
}

/* Keep the search field compact and proportional to the sidebar/window. */
#es-product-search .es-sidebar__search{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    min-height:46px !important;
    height:46px !important;
    border-radius:14px !important;
    overflow:hidden !important;
}
#es-product-search .es-sidebar__search input{
    height:46px !important;
    min-height:46px !important;
    max-height:46px !important;
    box-sizing:border-box !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
}
#es-product-search .es-search-tools{
    height:46px !important;
    align-items:center !important;
}

/* Comment composer is a single horizontal row; send button is never bottom/absolute. */
.es-comments__form{
    position:relative !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    gap:7px !important;
    width:100% !important;
    box-sizing:border-box !important;
}
.es-comments__form input{
    flex:0 0 82px !important;
    width:82px !important;
    min-width:0 !important;
}
.es-comments__form textarea{
    flex:1 1 auto !important;
    width:auto !important;
    min-width:0 !important;
    min-height:38px !important;
    height:38px !important;
    max-height:80px !important;
    resize:none !important;
}
.es-comments__form #es-comment-submit{
    position:static !important;
    inset:auto !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    transform:none !important;
    order:3 !important;
    flex:0 0 38px !important;
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    margin:0 !important;
    padding:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    align-self:center !important;
    border:0 !important;
    border-radius:50% !important;
    background:transparent !important;
    color:var(--es-primary,#ff2d77) !important;
}
.es-comments__form #es-comment-submit svg{
    width:20px !important;
    height:20px !important;
    display:block !important;
    transform:none !important;
    rotate:0deg !important;
}
.es-comments__form #es-comment-submit.is-sending svg{
    animation:none !important;
}

/* Product details/comments share one footprint. */
.es-details-sheet,
.es-comments{
    width:min(100%,620px) !important;
    height:72dvh !important;
    max-height:72dvh !important;
    border-radius:22px 22px 0 0 !important;
    box-sizing:border-box !important;
}
@media(max-width:600px){
    .es-details-sheet,
    .es-comments{
        width:100% !important;
        height:72dvh !important;
        max-height:72dvh !important;
        border-radius:22px 22px 0 0 !important;
    }
}

/* Compact AI analysis card: contained inside the same sheet instead of oversized. */
.es-comments .es-ai-card,
.es-details-sheet .es-ai-card,
.es-details-comments-wrap .es-ai-card{
    width:calc(100% - 20px) !important;
    max-width:100% !important;
    margin:8px 10px !important;
    padding:0 !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
    border-radius:14px !important;
}
.es-comments .es-ai-card__header,
.es-details-sheet .es-ai-card__header,
.es-details-comments-wrap .es-ai-card__header{
    min-height:48px !important;
    padding:8px 12px !important;
    box-sizing:border-box !important;
}
.es-comments .es-ai-card__header-text h3,
.es-details-sheet .es-ai-card__header-text h3,
.es-details-comments-wrap .es-ai-card__header-text h3{
    font-size:14px !important;
    line-height:1.35 !important;
    margin:0 !important;
}
.es-comments .es-ai-card__body,
.es-details-sheet .es-ai-card__body,
.es-details-comments-wrap .es-ai-card__body{
    padding:10px 12px !important;
    box-sizing:border-box !important;
}
.es-comments .es-ai-summary,
.es-details-sheet .es-ai-summary,
.es-details-comments-wrap .es-ai-summary{
    margin:0 !important;
    font-size:12px !important;
    line-height:1.8 !important;
}
.es-comments .es-ai-features,
.es-details-sheet .es-ai-features,
.es-details-comments-wrap .es-ai-features{
    margin:8px 0 0 !important;
    gap:6px !important;
}
.es-comments .es-ai-card__footer,
.es-details-sheet .es-ai-card__footer,
.es-details-comments-wrap .es-ai-card__footer{
    padding:7px 12px !important;
    font-size:10px !important;
}


/* ===== KAVOSHVIEW 1.4.1 FINAL CLEAN UI OVERRIDE ===== */
/* Comment send: real inline button, never absolute/fixed/bottom/rotated. */
#es-comments .es-comments__form,
#es-comment-form {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    direction: ltr !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
#es-comments .es-comments__form #es-comment-submit,
#es-comment-form #es-comment-submit {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    float: none !important;
    transform: none !important;
    rotate: 0deg !important;
    order: 3 !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
}
#es-comments .es-comments__form #es-comment-submit svg,
#es-comment-form #es-comment-submit svg {
    width: 21px !important;
    height: 21px !important;
    display: block !important;
    transform: none !important;
    rotate: 0deg !important;
}
#es-comments .es-comments__form #es-comment-author { order: 1 !important; flex: 0 0 82px !important; width: 82px !important; }
#es-comments .es-comments__form #es-comment-content { order: 2 !important; flex: 1 1 auto !important; min-width: 0 !important; }

/* Compact, orderly AI analysis card. */
#es-comments .es-ai-card,
.es-details-sheet .es-ai-card,
.es-details-comments-wrap .es-ai-card {
    width: calc(100% - 20px) !important;
    max-width: 100% !important;
    margin: 10px !important;
    padding: 0 !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    gap: 0 !important;
}
#es-comments .es-ai-card__header,
.es-details-sheet .es-ai-card__header,
.es-details-comments-wrap .es-ai-card__header {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-height: 52px !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
}
#es-comments .es-ai-card__header-right,
.es-details-sheet .es-ai-card__header-right,
.es-details-comments-wrap .es-ai-card__header-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    min-width: 0 !important;
    gap: 8px !important;
}
#es-comments .es-ai-robot-icon,
.es-details-sheet .es-ai-robot-icon,
.es-details-comments-wrap .es-ai-robot-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 10px !important;
}
#es-comments .es-ai-card__header-text,
.es-details-sheet .es-ai-card__header-text,
.es-details-comments-wrap .es-ai-card__header-text { min-width: 0 !important; }
#es-comments .es-ai-card__header-text h3,
.es-details-sheet .es-ai-card__header-text h3,
.es-details-comments-wrap .es-ai-card__header-text h3 {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
#es-comments .es-ai-badge,
.es-details-sheet .es-ai-badge,
.es-details-comments-wrap .es-ai-badge {
    margin-top: 3px !important;
    padding: 1px 7px !important;
    font-size: 9px !important;
    line-height: 1.5 !important;
}
#es-comments .es-ai-sparkle,
.es-details-sheet .es-ai-sparkle,
.es-details-comments-wrap .es-ai-sparkle { width: 28px !important; height: 28px !important; min-width: 28px !important; }
#es-comments .es-ai-card__body,
.es-details-sheet .es-ai-card__body,
.es-details-comments-wrap .es-ai-card__body {
    padding: 10px 12px !important;
    box-sizing: border-box !important;
}
#es-comments .es-ai-summary,
.es-details-sheet .es-ai-summary,
.es-details-comments-wrap .es-ai-summary {
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.75 !important;
    text-align: right !important;
}
#es-comments .es-ai-features,
.es-details-sheet .es-ai-features,
.es-details-comments-wrap .es-ai-features {
    margin: 8px 0 0 !important;
    gap: 5px !important;
}
#es-comments .es-ai-feature-item,
.es-details-sheet .es-ai-feature-item,
.es-details-comments-wrap .es-ai-feature-item { gap: 7px !important; align-items: center !important; }
#es-comments .es-ai-feature-icon,
.es-details-sheet .es-ai-feature-icon,
.es-details-comments-wrap .es-ai-feature-icon { width: 24px !important; height: 24px !important; min-width: 24px !important; }
#es-comments .es-ai-feature-text,
.es-details-sheet .es-ai-feature-text,
.es-details-comments-wrap .es-ai-feature-text { font-size: 10.5px !important; line-height: 1.55 !important; }
#es-comments .es-ai-card__footer,
.es-details-sheet .es-ai-card__footer,
.es-details-comments-wrap .es-ai-card__footer {
    padding: 7px 12px !important;
    font-size: 9px !important;
    line-height: 1.5 !important;
}

/* 1.4.1 FINAL PATCH — send button must be on the visual LEFT. */
#es-comments .es-comments__form,
#es-comment-form{
    direction:ltr !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
    width:100% !important;
    box-sizing:border-box !important;
}
#es-comment-form #es-comment-submit{
    order:1 !important;
    position:static !important;
    inset:auto !important;
    transform:none !important;
    rotate:0deg !important;
    flex:0 0 40px !important;
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
    margin:0 !important;
    align-self:center !important;
}
#es-comment-form #es-comment-submit svg{
    transform:none !important;
    rotate:0deg !important;
}
#es-comment-form #es-comment-content{
    order:2 !important;
    direction:rtl !important;
    text-align:right !important;
    flex:1 1 auto !important;
    min-width:0 !important;
}
#es-comment-form #es-comment-author{
    order:3 !important;
    direction:rtl !important;
    text-align:right !important;
    flex:0 0 82px !important;
    width:82px !important;
}

/* Stable AI card: one compact RTL layout, no inherited flex/grid surprises. */
#es-comments .es-ai-card,
.es-details-sheet .es-ai-card,
.es-details-comments-wrap .es-ai-card{
    direction:rtl !important;
    display:block !important;
    width:calc(100% - 20px) !important;
    max-width:none !important;
    margin:10px !important;
    padding:0 !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
    border-radius:16px !important;
}
#es-comments .es-ai-card__header,
.es-details-sheet .es-ai-card__header,
.es-details-comments-wrap .es-ai-card__header{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
    flex-wrap:nowrap !important;
    width:100% !important;
    min-height:48px !important;
    padding:8px 12px !important;
    margin:0 !important;
    box-sizing:border-box !important;
}
#es-comments .es-ai-card__header-right,
.es-details-sheet .es-ai-card__header-right,
.es-details-comments-wrap .es-ai-card__header-right{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    gap:8px !important;
    min-width:0 !important;
    flex:1 1 auto !important;
}
#es-comments .es-ai-robot-icon,
.es-details-sheet .es-ai-robot-icon,
.es-details-comments-wrap .es-ai-robot-icon{
    flex:0 0 34px !important;
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
    border-radius:10px !important;
    overflow:hidden !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}
#es-comments .es-ai-card__header-text,
.es-details-sheet .es-ai-card__header-text,
.es-details-comments-wrap .es-ai-card__header-text{
    min-width:0 !important;
    flex:1 1 auto !important;
    display:block !important;
}
#es-comments .es-ai-card__header-text h3,
.es-details-sheet .es-ai-card__header-text h3,
.es-details-comments-wrap .es-ai-card__header-text h3{
    display:block !important;
    margin:0 !important;
    padding:0 !important;
    font-size:13px !important;
    line-height:1.45 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
}
#es-comments .es-ai-badge,
.es-details-sheet .es-ai-badge,
.es-details-comments-wrap .es-ai-badge{
    display:inline-block !important;
    margin:2px 0 0 !important;
    padding:1px 6px !important;
    font-size:9px !important;
    line-height:1.5 !important;
}
#es-comments .es-ai-sparkle,
.es-details-sheet .es-ai-sparkle,
.es-details-comments-wrap .es-ai-sparkle{
    flex:0 0 28px !important;
    width:28px !important;
    height:28px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}
#es-comments .es-ai-card__body,
.es-details-sheet .es-ai-card__body,
.es-details-comments-wrap .es-ai-card__body{
    display:block !important;
    width:100% !important;
    padding:10px 12px !important;
    margin:0 !important;
    box-sizing:border-box !important;
}
#es-comments .es-ai-summary,
.es-details-sheet .es-ai-summary,
.es-details-comments-wrap .es-ai-summary{
    display:block !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    font-size:11px !important;
    line-height:1.8 !important;
    text-align:right !important;
    overflow-wrap:anywhere !important;
}
#es-comments .es-ai-features,
.es-details-sheet .es-ai-features,
.es-details-comments-wrap .es-ai-features{
    display:flex !important;
    flex-direction:column !important;
    width:100% !important;
    margin:8px 0 0 !important;
    padding:0 !important;
    gap:5px !important;
    list-style:none !important;
}
#es-comments .es-ai-feature-item,
.es-details-sheet .es-ai-feature-item,
.es-details-comments-wrap .es-ai-feature-item{
    display:flex !important;
    flex-direction:row !important;
    align-items:flex-start !important;
    gap:7px !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
}
#es-comments .es-ai-feature-icon,
.es-details-sheet .es-ai-feature-icon,
.es-details-comments-wrap .es-ai-feature-icon{
    flex:0 0 24px !important;
    width:24px !important;
    height:24px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}
#es-comments .es-ai-feature-text,
.es-details-sheet .es-ai-feature-text,
.es-details-comments-wrap .es-ai-feature-text{
    flex:1 1 auto !important;
    min-width:0 !important;
    font-size:10.5px !important;
    line-height:1.6 !important;
    text-align:right !important;
    overflow-wrap:anywhere !important;
}
#es-comments .es-ai-card__footer,
.es-details-sheet .es-ai-card__footer,
.es-details-comments-wrap .es-ai-card__footer{
    display:block !important;
    width:100% !important;
    margin:0 !important;
    padding:7px 12px !important;
    box-sizing:border-box !important;
    font-size:9px !important;
    line-height:1.5 !important;
    text-align:right !important;
}


/* ===== KAVOSHVIEW 1.4.2 — FINAL COMMENT + AI CLEANUP ===== */

/* Send arrow: LEFT side of the comment row, never bottom/right/rotated. */
#es-comments #es-comment-form,
#es-comments .es-comments__form {
    direction: ltr !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
#es-comments #es-comment-submit {
    order: 1 !important;
    position: static !important;
    inset: auto !important;
    float: none !important;
    transform: none !important;
    rotate: 0deg !important;
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
#es-comments #es-comment-submit svg {
    width: 21px !important;
    height: 21px !important;
    transform: none !important;
    rotate: 0deg !important;
    direction: ltr !important;
}
#es-comments #es-comment-content {
    order: 2 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
#es-comments #es-comment-author {
    order: 3 !important;
    flex: 0 0 110px !important;
    width: 110px !important;
    box-sizing: border-box !important;
}

/* AI card: clean, flat icon with NO colored background/circle. */
#es-comments .es-ai-robot-icon,
.es-details-sheet .es-ai-robot-icon,
.es-details-comments-wrap .es-ai-robot-icon {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--es-primary) !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    overflow: visible !important;
}
#es-comments .es-ai-robot-icon svg,
.es-details-sheet .es-ai-robot-icon svg,
.es-details-comments-wrap .es-ai-robot-icon svg {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
    color: currentColor !important;
    background: transparent !important;
    filter: none !important;
}
#es-comments .es-ai-sparkle,
.es-details-sheet .es-ai-sparkle,
.es-details-comments-wrap .es-ai-sparkle {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* AI analysis: compact, stable layout; no inherited flex/grid distortion. */
#es-comments .es-ai-card,
.es-details-sheet .es-ai-card,
.es-details-comments-wrap .es-ai-card {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}
#es-comments .es-ai-card__header,
.es-details-sheet .es-ai-card__header,
.es-details-comments-wrap .es-ai-card__header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 7px 10px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
#es-comments .es-ai-card__header-right,
.es-details-sheet .es-ai-card__header-right,
.es-details-comments-wrap .es-ai-card__header-right {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}
#es-comments .es-ai-card__header-text h3,
.es-details-sheet .es-ai-card__header-text h3,
.es-details-comments-wrap .es-ai-card__header-text h3 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
#es-comments .es-ai-card__body,
.es-details-sheet .es-ai-card__body,
.es-details-comments-wrap .es-ai-card__body {
    display: block !important;
    width: 100% !important;
    padding: 8px 10px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
#es-comments .es-ai-summary,
.es-details-sheet .es-ai-summary,
.es-details-comments-wrap .es-ai-summary {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 11px !important;
    line-height: 1.75 !important;
    text-align: right !important;
    overflow-wrap: anywhere !important;
}
#es-comments .es-ai-features,
.es-details-sheet .es-ai-features,
.es-details-comments-wrap .es-ai-features {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    width: 100% !important;
    margin: 7px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
#es-comments .es-ai-feature-item,
.es-details-sheet .es-ai-feature-item,
.es-details-comments-wrap .es-ai-feature-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
#es-comments .es-ai-feature-icon,
.es-details-sheet .es-ai-feature-icon,
.es-details-comments-wrap .es-ai-feature-icon {
    flex: 0 0 20px !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
#es-comments .es-ai-feature-text,
.es-details-sheet .es-ai-feature-text,
.es-details-comments-wrap .es-ai-feature-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 10.5px !important;
    line-height: 1.6 !important;
    text-align: right !important;
    overflow-wrap: anywhere !important;
}
#es-comments .es-ai-card__footer,
.es-details-sheet .es-ai-card__footer,
.es-details-comments-wrap .es-ai-card__footer {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    box-sizing: border-box !important;
    font-size: 9px !important;
    line-height: 1.5 !important;
    text-align: right !important;
}

@media (max-width: 600px) {
    #es-comments #es-comment-author {
        flex-basis: 92px !important;
        width: 92px !important;
    }
}


/* KAVOSHVIEW 1.4.3 — send arrow RIGHT + stable comment composer */
#es-comments #es-comment-form,
#es-comments .es-comments__form{
    direction:rtl !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 42px !important;
    grid-template-areas:
        "content send"
        "author author"
        "status status" !important;
    align-items:center !important;
    gap:8px !important;
    width:100% !important;
    box-sizing:border-box !important;
}
#es-comments #es-comment-content{
    grid-area:content !important;
    order:initial !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
}
#es-comments #es-comment-submit{
    grid-area:send !important;
    order:initial !important;
    position:static !important;
    inset:auto !important;
    float:none !important;
    transform:none !important;
    rotate:0deg !important;
    width:42px !important;
    min-width:42px !important;
    height:42px !important;
    margin:0 !important;
    padding:0 !important;
    align-self:center !important;
    justify-self:end !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}
#es-comments #es-comment-submit svg,
#es-comments #es-comment-submit svg path{
    transform:none !important;
    rotate:0deg !important;
}
#es-comments #es-comment-author{
    grid-area:author !important;
    order:initial !important;
    width:100% !important;
    min-width:0 !important;
    flex:none !important;
    margin:0 !important;
}
#es-comments #es-comment-form .es-comment-status{
    grid-area:status !important;
    width:100% !important;
    min-height:18px !important;
    margin:0 !important;
    text-align:right !important;
}


/* KAVOSHVIEW 1.4.4 — simple name-first comment composer */
#es-comments #es-comment-form,
#es-comments .es-comments__form {
    direction: rtl !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 10px 12px 12px !important;
    box-sizing: border-box !important;
    background: #fff !important;
}
#es-comments #es-comment-form .es-comment-name-row,
#es-comments #es-comment-form .es-comment-message-row {
    width: 100% !important;
    box-sizing: border-box !important;
}
#es-comments #es-comment-form #es-comment-author {
    display: block !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 13px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: #f9fafb !important;
    color: #111827 !important;
    font: inherit !important;
    font-size: 13px !important;
    line-height: 42px !important;
    text-align: right !important;
    direction: rtl !important;
    outline: none !important;
    box-sizing: border-box !important;
}
#es-comments #es-comment-form #es-comment-author:focus {
    border-color: var(--es-primary) !important;
    background: #fff !important;
}
#es-comments #es-comment-form .es-comment-message-row {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    direction: rtl !important;
}
#es-comments #es-comment-form #es-comment-content {
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 110px !important;
    margin: 0 !important;
    padding: 11px 13px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: #f9fafb !important;
    color: #111827 !important;
    font: inherit !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    text-align: right !important;
    direction: rtl !important;
    resize: none !important;
    outline: none !important;
    box-sizing: border-box !important;
}
#es-comments #es-comment-form #es-comment-content:focus {
    border-color: var(--es-primary) !important;
    background: #fff !important;
}
#es-comments #es-comment-form #es-comment-submit {
    position: static !important;
    inset: auto !important;
    order: initial !important;
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    transform: none !important;
    rotate: 0deg !important;
}
#es-comments #es-comment-form #es-comment-submit svg {
    width: 20px !important;
    height: 20px !important;
    transform: none !important;
    rotate: 0deg !important;
}
#es-comments #es-comment-form .es-comment-status {
    display: block !important;
    width: 100% !important;
    min-height: 18px !important;
    margin: 0 !important;
    text-align: right !important;
    direction: rtl !important;
    font-size: 11px !important;
}


/* ==========================================================================
   KAVOSHVIEW — Modern Single-Line Comment Composer
   RTL visual order: [ نام ] | [ دیدگاه... ] | [ ارسال ]
   ========================================================================== */
.es-comments__form{
    direction: rtl !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
    background: rgba(255,255,255,.94) !important;
    border-top: 1px solid rgba(15,23,42,.07) !important;
    box-shadow: 0 -8px 24px rgba(15,23,42,.06) !important;
    backdrop-filter: blur(18px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
    flex: none !important;
}

.es-comments__form .es-comment-name-row{
    order: 1 !important;
    flex: 0 0 96px !important;
    min-width: 0 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.es-comments__form .es-comment-message-row{
    order: 2 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.es-comments__form .es-comment-name-row::after{
    content: "" !important;
    position: absolute !important;
    inset-inline-end: 0 !important;
    top: 8px !important;
    bottom: 8px !important;
    width: 1px !important;
    background: rgba(15,23,42,.10) !important;
}

.es-comments__form .es-comment-message-row::after{
    content: "" !important;
    position: absolute !important;
    inset-inline-end: 0 !important;
    top: 8px !important;
    bottom: 8px !important;
    width: 1px !important;
    background: rgba(15,23,42,.10) !important;
}

.es-comments__form input#es-comment-author,
.es-comments__form textarea#es-comment-content{
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 14px !important;
    margin: 0 !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--es-fg) !important;
    direction: rtl !important;
    resize: none !important;
}

.es-comments__form input#es-comment-author::placeholder,
.es-comments__form textarea#es-comment-content::placeholder{
    color: #98a2b3 !important;
    opacity: 1 !important;
    font-weight: 500 !important;
}

.es-comments__form input#es-comment-author:focus,
.es-comments__form textarea#es-comment-content:focus{
    border: 0 !important;
    box-shadow: none !important;
}

.es-comments__form #es-comment-submit{
    order: 3 !important;
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    margin: 0 0 0 2px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 14px !important;
    display: grid !important;
    place-items: center !important;
    align-self: center !important;
    background: linear-gradient(135deg, var(--es-primary), var(--es-primary-end)) !important;
    color: #fff !important;
    box-shadow: 0 7px 16px rgba(124,58,237,.20) !important;
    cursor: pointer !important;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease !important;
}

.es-comments__form #es-comment-submit:hover:not(:disabled){
    transform: translateY(-1px) !important;
    box-shadow: 0 9px 20px rgba(124,58,237,.27) !important;
    opacity: 1 !important;
}

.es-comments__form #es-comment-submit:active:not(:disabled){
    transform: scale(.94) !important;
}

.es-comments__form #es-comment-submit svg{
    width: 18px !important;
    height: 18px !important;
    display: block !important;
}

.es-comments__form .es-comment-status{
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 600px){
    .es-comments__form{
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
        min-height: 62px !important;
    }

    .es-comments__form .es-comment-name-row{
        flex-basis: 82px !important;
    }

    .es-comments__form input#es-comment-author,
    .es-comments__form textarea#es-comment-content{
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
    }

    .es-comments__form #es-comment-submit{
        flex-basis: 40px !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        border-radius: 13px !important;
        margin-left: 2px !important;
    }
}

/* Compact messenger-style comment composer */
#es-comments #es-comment-form { padding: 8px 12px 10px !important; background:#fff !important; position:relative !important; }
#es-comments #es-comment-form .es-comment-unified-row { width:100% !important; height:42px !important; min-height:42px !important; display:flex !important; align-items:center !important; direction:rtl !important; gap:0 !important; padding:0 4px !important; border:1px solid #e5e7eb !important; border-radius:22px !important; background:#f8f9fa !important; box-sizing:border-box !important; overflow:hidden !important; }
#es-comments #es-comment-form #es-comment-author { flex:0 0 62px !important; width:62px !important; height:36px !important; min-height:36px !important; border:0 !important; border-left:1px solid #e5e7eb !important; border-radius:0 !important; background:transparent !important; padding:0 8px !important; margin:0 !important; font:inherit !important; font-size:12px !important; line-height:36px !important; text-align:right !important; direction:rtl !important; outline:none !important; box-sizing:border-box !important; }
#es-comments #es-comment-form #es-comment-content { flex:1 1 auto !important; width:auto !important; min-width:0 !important; height:36px !important; min-height:36px !important; max-height:36px !important; border:0 !important; border-radius:0 !important; background:transparent !important; padding:8px 9px !important; margin:0 !important; font:inherit !important; font-size:12px !important; line-height:20px !important; text-align:right !important; direction:rtl !important; resize:none !important; outline:none !important; box-sizing:border-box !important; }
#es-comments #es-comment-form #es-comment-submit { order:3 !important; flex:0 0 32px !important; width:32px !important; min-width:32px !important; height:32px !important; margin:0 2px 0 0 !important; padding:0 !important; border:0 !important; border-radius:50% !important; display:inline-flex !important; align-items:center !important; justify-content:center !important; background:transparent !important; color:var(--es-primary) !important; box-shadow:none !important; }
#es-comments #es-comment-form #es-comment-submit svg { width:16px !important; height:16px !important; display:block !important; transform:translateX(-1px) !important; color:var(--es-primary) !important; stroke:currentColor !important; fill:none !important; }


/* ===== FINAL COMMENT SEND ICON + WP COMMENT SAFETY UI ===== */
#es-comments .es-comments__form #es-comment-submit,
#es-comment-form #es-comment-submit {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--es-primary, #ff2d77) !important;
    border-radius: 0 !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
}
#es-comments .es-comments__form #es-comment-submit:hover,
#es-comments .es-comments__form #es-comment-submit:focus,
#es-comments .es-comments__form #es-comment-submit:active,
#es-comment-form #es-comment-submit:hover,
#es-comment-form #es-comment-submit:focus,
#es-comment-form #es-comment-submit:active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--es-primary, #ff2d77) !important;
}
#es-comments .es-comments__form #es-comment-submit svg,
#es-comment-form #es-comment-submit svg {
    width: 20px !important;
    height: 20px !important;
    color: currentColor !important;
    stroke: currentColor !important;
    fill: none !important;
    display: block !important;
}

/* Keep the compact messenger-like composer footprint. */
#es-comments .es-comment-unified-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 38px !important;
}
#es-comments .es-comments__form #es-comment-author {
    flex: 0 0 76px !important;
    width: 76px !important;
}
#es-comments .es-comments__form #es-comment-content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 36px !important;
    max-height: 72px !important;
}

/* Search icons: no colored square/circle, only the glyph takes the selected color. */
#es-product-search .es-search-tools .es-search-tool-button,
#es-product-search .es-search-tools .es-search-tool-button:hover,
#es-product-search .es-search-tools .es-search-tool-button:focus-visible,
#es-product-search .es-search-tools .es-search-tool-button:active {
    border: 0 !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}
#es-product-search .es-search-tools .es-search-tool-button svg {
    color: var(--es-visual-search-color, var(--es-primary)) !important;
    stroke: currentColor !important;
}
#es-product-search .es-search-tools .es-voice-search-button.is-listening {
    background: transparent !important;
    box-shadow: none !important;
    animation: esVoiceIconGlow 1s ease-in-out infinite;
}
@keyframes esVoiceIconGlow {
    0%,100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
    50% { transform: scale(1.13); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--es-visual-search-color, var(--es-primary)) 65%, transparent)); }
}
.es-barcode-scanner-modal{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(8,15,30,.55);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.es-barcode-scanner-card{position:relative;width:min(390px,94vw);background:#fff;border-radius:22px;padding:14px;box-shadow:0 24px 70px rgba(0,0,0,.28);direction:rtl}
.es-barcode-title{text-align:center;font-weight:800;font-size:14px;margin:4px 0 10px;color:#17202a}
.es-barcode-close{position:absolute;left:10px;top:8px;border:0;background:transparent;color:#64748b;font-size:25px;line-height:1;cursor:pointer}
.es-barcode-preview{position:relative;overflow:hidden;border-radius:16px;background:#080b12;aspect-ratio:4/5;display:flex;align-items:center;justify-content:center}
.es-barcode-preview video{width:100%;height:100%;object-fit:cover;display:block}
.es-barcode-frame{position:absolute;width:68%;height:26%;border:2px solid rgba(255,255,255,.9);border-radius:16px;box-shadow:0 0 0 999px rgba(0,0,0,.16);pointer-events:none}
.es-barcode-frame:after{content:'';position:absolute;left:8%;right:8%;top:50%;height:2px;background:#fff;box-shadow:0 0 8px rgba(255,255,255,.9);animation:esBarcodeLine 1.7s ease-in-out infinite}
@keyframes esBarcodeLine{0%,100%{transform:translateY(-45px);opacity:.45}50%{transform:translateY(45px);opacity:1}}
.es-barcode-status{position:absolute;bottom:12px;left:10px;right:10px;text-align:center;color:#fff;font-size:11px;text-shadow:0 1px 4px #000}
.es-barcode-actions{display:flex;gap:8px;margin-top:10px}.es-barcode-actions button{flex:1;border:0;border-radius:12px;padding:10px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;background:#f1f5f9;color:#334155}.es-barcode-actions button:last-child{background:var(--es-visual-search-color,var(--es-primary));color:#fff}
@media(max-width:600px){.es-barcode-scanner-card{width:min(360px,94vw);padding:12px}.es-barcode-preview{aspect-ratio:3/4}}

/* Kavoshview 1.4.12 — compact product details and text-only promo bars */
.es-details-main{padding-top:10px}
.es-details-title-row{min-height:0;margin:0 0 10px}
.es-details-title{margin:0 0 10px!important}
.es-product-highlight{pointer-events:none!important;text-decoration:none!important}
.es-product-highlight__emoji{display:none!important}

/* Kavoshview 1.4.12 — compact product name and promo media */
.es-gallery-product-title{padding:9px 16px 5px;font-size:13px;font-weight:700;color:#1f2937;line-height:1.5;text-align:right;background:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.es-product-highlight__image{width:22px;height:22px;object-fit:cover;border-radius:7px;flex:0 0 22px;display:block;}
.es-product-highlight__emoji{font-size:17px;width:22px;flex:0 0 22px;}
.es-product-highlights{padding:8px 16px 2px;}
.es-details-main{padding-top:12px;}
.es-product-highlight__emoji{display:inline-flex!important;align-items:center;justify-content:center;}


/* =====================================================================
 * Shortcode Reels Rail — compact horizontal reel shelf inspired by the
 * storefront screenshot. It is rendered only in shortcode mode.
 * =================================================================== */
/* Animated star field for the standalone Reels rail */
.es-reels-rail{position:relative;overflow:hidden;isolation:isolate;}
.es-reels-rail__stars{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;}
.es-reels-rail__stars span{position:absolute;display:block;color:var(--es-primary,#ff2d77);font-size:18px;line-height:1;opacity:.14;filter:drop-shadow(0 0 5px rgba(255,45,119,.18));animation:es-reels-star-pulse 3.8s ease-in-out infinite;will-change:opacity,transform;}
.es-reels-rail__stars span:nth-child(1){right:5%;top:12%;font-size:22px;animation-delay:-.4s;}
.es-reels-rail__stars span:nth-child(2){right:14%;top:58%;font-size:13px;animation-delay:-2.1s;}
.es-reels-rail__stars span:nth-child(3){right:27%;top:20%;font-size:15px;animation-delay:-1.2s;}
.es-reels-rail__stars span:nth-child(4){right:39%;top:70%;font-size:20px;animation-delay:-3s;}
.es-reels-rail__stars span:nth-child(5){right:51%;top:14%;font-size:12px;animation-delay:-1.8s;}
.es-reels-rail__stars span:nth-child(6){right:63%;top:55%;font-size:24px;animation-delay:-.9s;}
.es-reels-rail__stars span:nth-child(7){right:73%;top:27%;font-size:14px;animation-delay:-2.7s;}
.es-reels-rail__stars span:nth-child(8){right:82%;top:67%;font-size:19px;animation-delay:-1.5s;}
.es-reels-rail__stars span:nth-child(9){right:91%;top:18%;font-size:13px;animation-delay:-3.4s;}
.es-reels-rail__stars span:nth-child(10){left:3%;top:76%;font-size:17px;animation-delay:-2.4s;}
.es-reels-rail__stars span:nth-child(11){left:22%;top:43%;font-size:12px;animation-delay:-.7s;}
.es-reels-rail__stars span:nth-child(12){left:46%;top:82%;font-size:16px;animation-delay:-3.2s;}
.es-reels-rail__head,.es-reels-rail__viewport{position:relative;z-index:1;}
@keyframes es-reels-star-pulse{0%,100%{opacity:.10;transform:scale(.78) rotate(0deg);}50%{opacity:.62;transform:scale(1.22) rotate(14deg);}}
@media (prefers-reduced-motion:reduce){.es-reels-rail__stars span{animation:none;opacity:.24;}}

.es-reels-rail{
    --es-reels-rail-bg:#fff4f8;
    width:100%;
    box-sizing:border-box;
    margin:0 0 14px;
    padding:12px 14px 14px;
    background:var(--es-reels-rail-bg);
    border-radius:18px;
    overflow:hidden;
    color:var(--es-text,#111827);
}
.es-reels-rail__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;}
.es-reels-rail__title{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:800;}
.es-reels-rail__icon{width:30px;height:30px;display:grid;place-items:center;color:var(--es-primary,#ff2d77);}
.es-reels-rail__icon svg{width:24px;height:24px;display:block;}
.es-reels-rail__all{border:0;background:transparent;color:var(--es-primary,#ff2d77);font:inherit;font-size:14px;font-weight:700;cursor:pointer;padding:5px 2px;display:inline-flex;align-items:center;gap:4px;}
.es-reels-rail__all span{font-size:22px;line-height:1;transform:translateY(-1px);}
.es-reels-rail__viewport{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x;cursor:grab;}
.es-reels-rail__viewport:active{cursor:grabbing;}
.es-reels-rail__viewport::-webkit-scrollbar{display:none;}
.es-reels-rail__track{display:flex;flex-direction:row;gap:9px;width:max-content;min-width:100%;direction:rtl;}
.es-reels-rail__item{position:relative;flex:0 0 105px;width:105px;height:150px;padding:0;border:0;border-radius:14px;overflow:hidden;background:#eee;cursor:pointer;box-shadow:0 3px 12px rgba(15,23,42,.08);}
.es-reels-rail__media,.es-reels-rail__media img{display:block;width:100%;height:100%;}
.es-reels-rail__media img{object-fit:cover;object-position:center;background:transparent;}
.es-reels-rail__item::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 55%,rgba(0,0,0,.18));pointer-events:none;}
.es-reels-rail__play{position:absolute;z-index:3;left:50%;top:50%;width:42px;height:42px;transform:translate(-50%,-50%);display:grid;place-items:center;border-radius:0 !important;background:transparent !important;background-color:transparent !important;border:0 !important;color:#fff;backdrop-filter:none !important;-webkit-backdrop-filter:none !important;box-shadow:none !important;padding:0 !important;outline:0 !important;pointer-events:none;appearance:none;-webkit-appearance:none;}
.es-reels-rail__play span{font-size:0;line-height:0;display:block;width:0;height:0;border-top:10px solid transparent;border-bottom:10px solid transparent;border-left:15px solid #fff;filter:drop-shadow(0 2px 5px rgba(0,0,0,.55));transform:translateX(2px);}
/* Final Elementor Reels preview fix: the play glyph is a truly transparent
 * overlay. Do not inherit any button/theme background, border, shadow or
 * pseudo-element behind it. */
.es-kavosh-reels-shortcode[data-reels-preview="1"] .es-reels-rail__play,
.es-kavosh-reels-shortcode[data-reels-preview="1"] .es-reels-rail__play:hover,
.es-kavosh-reels-shortcode[data-reels-preview="1"] .es-reels-rail__play:active,
.es-kavosh-reels-shortcode[data-reels-preview="1"] .es-reels-rail__play:focus {
    background: transparent !important;
    background-color: rgba(0,0,0,0) !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
}
.es-kavosh-reels-shortcode[data-reels-preview="1"] .es-reels-rail__play::before,
.es-kavosh-reels-shortcode[data-reels-preview="1"] .es-reels-rail__play::after {
    content: none !important;
    display: none !important;
}

/* Elementor Reels rail: stable muted touch/hover preview. The card itself
 * never moves; only the video layer fades in and out. */
.es-kavosh-reels-shortcode[data-reels-preview="1"] .es-reels-rail__preview-video{
    position:absolute;inset:0;z-index:1;display:block;width:100%;height:100%;
    object-fit:cover;object-position:center center;opacity:0;
    transition:opacity .18s ease;pointer-events:none;
    background:transparent;
}
.es-kavosh-reels-shortcode[data-reels-preview="1"] .es-reels-rail__item.is-previewing .es-reels-rail__preview-video{opacity:1;}
.es-kavosh-reels-shortcode[data-reels-preview="1"] .es-reels-rail__item.is-previewing .es-reels-rail__play{opacity:0;transform:translate(-50%,-50%) scale(.92);}
.es-reels-rail__item:focus-visible{outline:2px solid var(--es-primary,#ff2d77);outline-offset:2px;}
@media(max-width:700px){
    .es-reels-rail{border-radius:15px;margin-bottom:10px;padding:10px 10px 12px;}
    .es-reels-rail__title{font-size:16px;}
    .es-reels-rail__item{flex-basis:88px;width:88px;height:126px;border-radius:12px;}
    .es-reels-rail__play{width:32px;height:32px;}
}

/* Dedicated [kavosh_reels] / Elementor rail: full-bleed and isolated from Explore markup. */
.es-kavosh-reels-shortcode{width:100%;max-width:100%;box-sizing:border-box;position:relative;isolation:isolate;}
.es-kavosh-reels-shortcode .es-reels-rail{width:100%;max-width:100%;box-sizing:border-box;}
.es-reels-rail--fullbleed{width:100vw !important;max-width:100vw !important;margin-left:calc(50% - 50vw) !important;margin-right:calc(50% - 50vw) !important;border-radius:0 !important;}
@media(max-width:700px){.es-reels-rail--fullbleed{margin-left:calc(50% - 50vw) !important;margin-right:calc(50% - 50vw) !important;}}


/* Kavoshview 1.4.19 — Final Instagram-style full-bleed covers */
.es-card__media,
.es-card__media img,
.es-card__media video,
.es-reels-rail__media,
.es-reels-rail__media img {
    background: transparent !important;
}

.es-card__media,
.es-reels-rail__media {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    width: 100%;
    height: 100%;
}

/* No blurred filler, no contain: the media itself owns the full tile. */
.es-card__media::before,
.es-reels-rail__media::before {
    display: none !important;
    content: none !important;
}

.es-card__media img,
.es-card__media video,
.es-reels-rail__media img {
    position: relative;
    z-index: 1;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    margin: 0 !important;
    border: 0 !important;
}

/* Reels rail cards are full-bleed too. */
.es-reels-rail__media {
    background: transparent !important;
}
.es-reels-rail__item:hover,
.es-reels-rail__item:active,
.es-reels-rail__item:focus {
    outline: none !important;
    transform: none !important;
    filter: none !important;
}
.es-reels-rail__item:hover .es-reels-rail__media img,
.es-reels-rail__item:active .es-reels-rail__media img {
    transform: none !important;
    filter: none !important;
}

/* Keep stars behind the rail surface and never over the reel thumbnails. */
.es-reels-rail__stars { z-index: 0 !important; }
.es-reels-rail__head,
.es-reels-rail__viewport { z-index: 2 !important; }
.es-reels-rail__item { z-index: 3; }
.es-reels-rail__stars span {
    color: #111 !important;
    opacity: .10 !important;
    filter: none !important;
}

.es-reels-rail__all,
.es-reels-rail__all:hover,
.es-reels-rail__all:focus,
.es-reels-rail__all:active {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    color: var(--es-primary,#ff2d77) !important;
    transform: none !important;
    filter: none !important;
}

/* Final mobile interaction polish for the standalone Reels rail.
 * Prevent the browser/WordPress theme tap highlight and focus ring from
 * painting a blue rectangle over a tapped reel card. */
.es-kavosh-reels-shortcode .es-reels-rail__item,
.es-kavosh-reels-shortcode .es-reels-rail__item:hover,
.es-kavosh-reels-shortcode .es-reels-rail__item:active,
.es-kavosh-reels-shortcode .es-reels-rail__item:focus,
.es-kavosh-reels-shortcode .es-reels-rail__item:focus-visible {
    -webkit-tap-highlight-color: transparent !important;
    tap-highlight-color: transparent !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}
.es-kavosh-reels-shortcode .es-reels-rail__media,
.es-kavosh-reels-shortcode .es-reels-rail__media img {
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
}
.es-kavosh-reels-shortcode .es-reels-rail__all,
.es-kavosh-reels-shortcode .es-reels-rail__all:hover,
.es-kavosh-reels-shortcode .es-reels-rail__all:active,
.es-kavosh-reels-shortcode .es-reels-rail__all:focus,
.es-kavosh-reels-shortcode .es-reels-rail__all:focus-visible {
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}
.es-kavosh-reels-shortcode .es-reels-rail__all span {
    display: inline-block;
    transform: translateY(-1px) !important;
}


/* 1.4.21 final: reels rail button/cover polish */
.es-reels-rail__all,
.es-reels-rail__all:hover,
.es-reels-rail__all:focus,
.es-reels-rail__all:active,
.es-reels-rail__all:visited {
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
.es-reels-rail__all::after, .es-reels-rail__all::before { content: none !important; }
.es-kavosh-reels-shortcode .es-reels-rail__item,
.es-kavosh-reels-shortcode .es-reels-rail__item:hover,
.es-kavosh-reels-shortcode .es-reels-rail__item:active,
.es-kavosh-reels-shortcode .es-reels-rail__item:focus {
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
    box-shadow: 0 3px 12px rgba(15,23,42,.08) !important;
}
.es-kavosh-reels-shortcode .es-reels-rail__media img {
    width:100% !important; height:100% !important; object-fit:cover !important; object-position:center !important;
}
.es-buy {
    background: rgba(255,255,255,.16) !important;
    border: 1px solid rgba(255,255,255,.38) !important;
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
    box-shadow: 0 6px 22px rgba(0,0,0,.18) !important;
}
@media (hover:hover) { .es-buy:hover { transform:none !important; } }
.es-card__buy { -webkit-tap-highlight-color: transparent; }

/* 1.4.22 final fixes */
.es-reels-all, .es-reels-all a, .es-reel__all, .es-reel__all a {text-decoration:none!important;border-bottom:0!important;box-shadow:none!important;}
.es-reel__actions-row .es-buy svg {display:none!important;}
.es-reel__actions-row .es-buy { -webkit-tap-highlight-color: transparent; }
/* 1.4.24 mobile comments typing fix */
.es-comments.is-open ~ *,
.es-comments.is-open { }
.es-comment-content,
#es-comment-content,
#es-comment-author,
.es-comments textarea,
.es-comments input { -webkit-user-select:text!important; user-select:text!important; touch-action:manipulation!important; }
.es-comments { overscroll-behavior:contain; }
.es-comments-lock-reel .es-reels-rail,
.es-comments-lock-reel .es-reels-track { touch-action:none!important; }

/* 1.4.25 mobile comments interaction fix */
.es-comments { touch-action: pan-y; overscroll-behavior: contain; }
.es-comments input,
.es-comments textarea,
.es-comments select,
.es-comments button { touch-action: manipulation; -webkit-user-select: text; user-select: text; }
.es-reels-slider.es-comments-lock-reels { touch-action: none; overscroll-behavior: none; }

/* Kavoshview 1.4.27 — compact comments sheet + Elementor Reels Rail fix */
.es-comments{
    height:50dvh !important;
    max-height:50dvh !important;
    min-height:0 !important;
}
.es-comments__body{
    min-height:0 !important;
    overflow-y:auto !important;
    overscroll-behavior:contain !important;
}
.es-comments__form{
    flex-shrink:0 !important;
}
@media (max-width:600px){
    .es-comments{
        height:48dvh !important;
        max-height:48dvh !important;
    }
}

/* Elementor: keep the dedicated Reels widget inside its own container.
   Full-bleed remains available only when explicitly enabled in the widget. */
.elementor-widget-kavosh_reels_rail .es-kavosh-reels-shortcode{
    width:100%;
    max-width:100%;
    overflow:visible;
}
.elementor-widget-kavosh_reels_rail .es-reels-rail:not(.es-reels-rail--fullbleed){
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
}


/* v1.4.29 — Product gallery image fills the image panel without top whitespace.
 * Use cover for the actual product photo area so mismatched aspect ratios do not
 * leave a blank strip above the image. The gallery itself keeps the existing size. */
.es-details-gallery {
    overflow: hidden !important;
    align-items: stretch !important;
    justify-content: stretch !important;
}
.es-gallery-track {
    height: 100% !important;
    min-height: 100% !important;
    align-items: stretch !important;
}
.es-gallery-img {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    background: #fff !important;
}

/* v1.4.29 — Never reintroduce the taxonomy default «همه» term when a user
 * explicitly chooses another category. */

/* Elementor Explore Search Widget — v1.4.32 */
.explore-widget-search-container{position:relative;width:100%;margin:0 auto;direction:rtl;font-family:Vazir,IRANSans,ui-sans-serif,system-ui,sans-serif;z-index:20}
.explore-widget-search-box{position:relative;display:flex;align-items:center;gap:8px;width:100%;min-height:48px;margin:0;padding:0 10px;box-sizing:border-box;background:#f2f2f2;border:1px solid transparent;border-radius:24px;overflow:hidden}
.explore-widget-search-icon{order:3;display:inline-flex;color:#a0a0a0;flex:0 0 auto;position:relative;z-index:2}
.explore-widget-search-icon svg{display:block;stroke:currentColor}
.explore-widget-search-stars{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:0}
.explore-widget-search-stars i{position:absolute;display:block;font-style:normal;color:var(--es-primary,#ff2d77);opacity:0;filter:drop-shadow(0 0 5px rgba(255,45,119,.18));animation:es-widget-star-fade 3.8s ease-in-out infinite}
.explore-widget-search-stars i:nth-child(1){right:10%;top:16%;font-size:13px;animation-delay:-.4s}.explore-widget-search-stars i:nth-child(2){right:24%;top:62%;font-size:9px;animation-delay:-2.1s}.explore-widget-search-stars i:nth-child(3){right:43%;top:23%;font-size:11px;animation-delay:-1.2s}.explore-widget-search-stars i:nth-child(4){left:31%;top:65%;font-size:9px;animation-delay:-2.8s}.explore-widget-search-stars i:nth-child(5){left:15%;top:18%;font-size:12px;animation-delay:-1.8s}.explore-widget-search-stars i:nth-child(6){left:6%;top:64%;font-size:8px;animation-delay:-3.1s}
@keyframes es-widget-star-fade{0%,100%{opacity:0;transform:scale(.7)}45%{opacity:.55;transform:scale(1)}65%{opacity:.12;transform:scale(.82)}}
.explore-widget-search-input{order:1;min-width:0;flex:1 1 auto;height:44px;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;padding:0 4px!important;margin:0!important;font-size:14px;color:#2d2d2d;text-align:right;position:relative;z-index:2;transition:opacity .22s ease,transform .22s ease}
.explore-widget-search-input.es-placeholder-out{opacity:0;transform:translateY(-3px)}
.explore-widget-search-input.es-placeholder-in{animation:es-widget-placeholder-in .45s ease both}
@keyframes es-widget-placeholder-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.explore-widget-search-results{display:none;position:absolute;top:calc(100% + 8px);right:0;left:0;padding:10px;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:16px;box-shadow:0 16px 45px rgba(15,23,42,.13);overflow-x:auto;overflow-y:hidden;white-space:nowrap;-webkit-overflow-scrolling:touch}
.explore-widget-search-results.is-visible{display:block}.explore-widget-search-results__row{display:flex;flex-direction:row;gap:10px;width:max-content;min-width:100%}.explore-widget-search-result{display:flex;flex-direction:column;width:88px;flex:0 0 88px;text-decoration:none;color:#1e293b;white-space:normal}.explore-widget-search-result__image{width:88px;height:88px;border-radius:12px;overflow:hidden;background:#f1f5f9}.explore-widget-search-result__image img{width:100%;height:100%;display:block;object-fit:cover}.explore-widget-search-result__title{margin-top:5px;font-size:11px;line-height:1.45;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.explore-widget-search-results__message{width:100%;padding:12px 8px;color:#94a3b8;font-size:12px;text-align:center;white-space:normal}
@media(max-width:767px){.explore-widget-search-result,.explore-widget-search-result__image{width:76px}.explore-widget-search-result__image{height:76px}}

/* v1.4.35 — Keep the "همه" filter neutral when active. */
.es-cat-btn[data-category="all"].is-active,
.es-cat-btn[data-category="all"].is-active:hover,
.es-cat-btn[data-category="all"].is-active:focus {
    color: var(--es-fg);
    background: transparent;
    font-weight: 700;
}
.es-label[data-category="all"].is-active,
.es-label[data-category="all"].is-active:hover,
.es-label[data-category="all"].is-active:focus {
    color: var(--es-fg);
    background: #fff;
    border-color: #e2e8f0;
    font-weight: 700;
}

/* v1.4.35 — Keep ordinary category filters neutral when active.
 * The AI/smart category with the star icon remains highlighted. */
.es-label.is-active:not(.es-ai-label) {
    color: var(--es-fg);
    background: #fff;
    border-color: #e2e8f0;
    font-weight: 700;
}
.es-label.is-active:not(.es-ai-label):hover,
.es-label.is-active:not(.es-ai-label):focus {
    color: var(--es-fg);
    background: #fff;
    border-color: #e2e8f0;
}

/* The virtual "همه" filter in the sidebar is also neutral. */
.es-cat-btn.is-active:not([data-category="ai"]):not([data-category="star"]):not([data-category="favorites"]) {
    color: var(--es-fg);
    background: transparent;
}

/* v1.4.36 — App-style save button replaces the rating star in product details. */
.es-product-quick-row .es-details-save{
    order:4;
    width:34px;
    min-width:34px;
    height:34px;
    padding:0;
    margin:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(15,23,42,.055);
    border-radius:12px;
    background:#f7f8fa;
    color:#667085;
    box-shadow:none;
    cursor:pointer;
    transition:transform .18s ease,background .18s ease,color .18s ease,border-color .18s ease;
}
.es-product-quick-row .es-details-save:hover{transform:translateY(-1px);background:#f0f2f5;color:#374151;}
.es-product-quick-row .es-details-save:active{transform:scale(.94);}
.es-product-quick-row .es-details-save.is-saved{
    background:#111827;
    color:#fff;
    border-color:#111827;
}
.es-product-quick-row .es-details-save .es-save-icon,
.es-product-quick-row .es-details-save .es-save-icon svg{
    width:17px;
    height:17px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}
.es-product-quick-row .es-details-save .es-save-icon svg{display:block;}
@media(max-width:600px){
    .es-product-quick-row .es-details-save{width:32px;min-width:32px;height:32px;border-radius:9px;}
    .es-product-quick-row .es-details-save .es-save-icon,
    .es-product-quick-row .es-details-save .es-save-icon svg{width:16px;height:16px;}
}


/* Last opened timestamp in product details */
.es-details-last-opened{display:block;margin-top:2px;font-size:10px;line-height:1.4;color:#9ca3af;font-weight:400;white-space:nowrap;direction:rtl;opacity:.9}
.es-details-header{position:relative}


/* v1.4.42 — visit/device/city/interest hints rotate and fade */
.es-details-last-opened{transition:opacity .45s ease,visibility .45s ease;}
.es-details-last-opened.is-fading{opacity:0!important;visibility:hidden;}

/* v1.4.45: keep only the AI author name; remove duplicate badge in replies/comments. */
.es-comment__meta .es-comment__ai-badge { display:none !important; }
.es-reel__stage > video { width:100%; height:100%; object-fit:cover; object-position:center; }
.es-reels-rail__media img { width:100%; height:100%; object-fit:cover; object-position:center; display:block; }


/* ================================================================
 * Kavoshview 1.1.1 — Mobile layout stabilization
 * Only the large/tall Explore tile gets automatic muted playback.
 * Keep the Reels viewer independent from Explore tile sizing.
 * ================================================================ */

/* Never let the Explore block inherit a large theme font on phones. */
@media (max-width: 768px) {
    .es-wrap.es-inline {
        font-size: 13px !important;
        line-height: 1.45 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .es-inline__shell {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
        margin: 0 !important;
    }

    .es-inline__row,
    .es-cols,
    .es-feed {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .es-feed {
        padding: 6px 4px 20px !important;
    }

    /* Stable 3-column Explore grid; only the programmed tall tile spans 2 rows. */
    .es-grid {
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 4px !important;
    }

    .es-card {
        min-width: 0 !important;
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 5px !important;
    }

    .es-card.es-card--tall {
        aspect-ratio: 1 / 2 !important;
        grid-row: span 2 !important;
    }

    /* Do not allow theme rules to enlarge media or text inside tiles. */
    .es-card__media,
    .es-card__media img,
    .es-card__media video {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
    }

    .es-card__views {
        font-size: 7px !important;
        line-height: 1 !important;
    }

    .es-feed__head {
        font-size: 13px !important;
    }

    /* Compact Explore labels/buttons without touching the full-screen Reels UI. */
    .es-label,
    .es-mobile-filter-trigger,
    .es-more-dropdown,
    .es-sidebar__title,
    .es-product-search__input {
        font-size: 12px !important;
    }
}

/* Extra-small phones: use every available pixel without oversized cards. */
@media (max-width: 380px) {
    .es-inline__shell,
    .es-feed {
        padding-left: 3px !important;
        padding-right: 3px !important;
    }

    .es-grid {
        gap: 3px !important;
    }

    .es-card {
        border-radius: 4px !important;
    }
}

/* ------------------------------------------------------------------
 *  Instagram-exact edge-to-edge Explore grid on mobile.
 *  Instagram's own grid has zero side padding, ~1px gaps, and sharp
 *  square corners. .es-inline__shell + .es-feed each carry their own
 *  side padding (kept for the header/labels above the grid), so the
 *  grid is pulled flush to the screen edge with a negative margin
 *  that exactly cancels both paddings, rather than removing padding
 *  everywhere (which would also push labels/buttons to the edge).
 * ------------------------------------------------------------------ */
@media (max-width: 768px) {
    .es-grid {
        gap: 1px !important;
        margin-left: -8px !important;
        margin-right: -8px !important;
        width: calc(100% + 16px) !important;
        max-width: calc(100% + 16px) !important;
    }
    .es-card,
    .es-card.es-card--tall {
        border-radius: 0 !important;
    }
}

@media (max-width: 380px) {
    .es-grid {
        gap: 1px !important;
        margin-left: -6px !important;
        margin-right: -6px !important;
        width: calc(100% + 12px) !important;
        max-width: calc(100% + 12px) !important;
    }
    .es-card {
        border-radius: 0 !important;
    }
}

/* Reels rail thumbnails stay compact; they must not inherit tile dimensions. */
@media (max-width: 700px) {
    .es-reels-rail__title {
        font-size: 14px !important;
    }

    .es-reels-rail__all {
        font-size: 12px !important;
    }

    .es-reels-rail__item {
        flex: 0 0 82px !important;
        width: 82px !important;
        height: 118px !important;
    }

    .es-reels-rail__play {
        width: 30px !important;
        height: 30px !important;
    }
}

/* Full-screen Reels: preserve its own 9:16-like stage and compact typography. */
@media (max-width: 768px) {
    .es-reels {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
    }

    .es-reels__slider,
    .es-reel {
        width: 100% !important;
        height: 100dvh !important;
        min-height: 0 !important;
    }

    .es-reel__stage {
        width: 100% !important;
        height: 100% !important;
        max-width: 480px !important;
    }

    .es-reel__title {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    .es-reel__desc {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }

    .es-reel__price {
        font-size: 12px !important;
    }

    .es-action__label {
        font-size: 9px !important;
    }
}

/* Kavoshview final responsive tile calibration */
.es-grid {
    gap: 1px !important;
    align-items: stretch;
}
.es-card,
.es-card--tall {
    border-radius: 0 !important;
}
/* first large tile starts from left side and pattern remains balanced */
.es-card--tall {
    min-height: 0;
}
@media (min-width: 1025px) {
    .es-grid {
        gap: 3px !important;
    }
    .es-card,
    .es-card--tall {
        border-radius: 0 !important;
    }
}
@media (max-width: 1024px) {
    .es-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 1px !important;
    }
    .es-card,
    .es-card--tall {
        border-radius: 0 !important;
    }
}
@media (max-width: 600px) {
    .es-inline__shell,
    body.es-standalone .es-inline__shell {
        padding-left: 3px !important;
        padding-right: 3px !important;
    }
    .es-grid {
        gap: 1px !important;
    }
}
@media (max-width: 360px) {
    .es-grid {
        gap: 1px !important;
    }
    .es-card,
    .es-card--tall {
        border-radius: 0 !important;
    }
}


/* v1.1.2-final — small Explore tiles: touch feedback only. */
@media (hover: none) and (pointer: coarse) {
    .es-grid .es-card:not(.es-card--tall) {
        transition: transform .14s ease, filter .14s ease;
        transform-origin: center;
        -webkit-tap-highlight-color: transparent;
    }
    .es-grid .es-card:not(.es-card--tall):active {
        transform: scale(.975);
        filter: brightness(.94);
    }
}

/* v1.1.2-final — wider Elementor search widget by default. */
.elementor-widget-explore_shop_search_box .explore-widget-search-container {
    width: 100%;
    max-width: 600px;
}

/* v1.1.2-final — cleaner Reels rail height and orderly decorative stars. */
.es-reels-rail {
    min-height: 186px;
}
.es-reels-rail__stars span { opacity: .22; }
.es-reels-rail__stars span:nth-child(1){right:7%;top:18%;font-size:12px;}
.es-reels-rail__stars span:nth-child(2){right:22%;top:10%;font-size:9px;}
.es-reels-rail__stars span:nth-child(3){right:38%;top:20%;font-size:11px;}
.es-reels-rail__stars span:nth-child(4){right:55%;top:11%;font-size:10px;}
.es-reels-rail__stars span:nth-child(5){right:72%;top:21%;font-size:9px;}
.es-reels-rail__stars span:nth-child(6){left:7%;top:16%;font-size:12px;}
.es-reels-rail__stars span:nth-child(7){left:22%;top:76%;font-size:9px;}
.es-reels-rail__stars span:nth-child(8){left:39%;top:80%;font-size:11px;}
.es-reels-rail__stars span:nth-child(9){left:56%;top:74%;font-size:10px;}
.es-reels-rail__stars span:nth-child(10){left:73%;top:82%;font-size:9px;}
.es-reels-rail__stars span:nth-child(11){right:30%;top:79%;font-size:8px;}
.es-reels-rail__stars span:nth-child(12){right:12%;top:72%;font-size:11px;}
@media (max-width: 700px) {
    .es-reels-rail { min-height: 158px; }
}
@media (max-width: 480px) {
    .es-reels-rail { min-height: 148px; }
}

/* v1.1.2-final-touch-polish — small tiles: stable card, subtle media zoom only. */
@media (hover: none) and (pointer: coarse) {
    .es-grid .es-card:not(.es-card--tall) {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        user-select: none;
        -webkit-user-select: none;
    }
    .es-grid .es-card:not(.es-card--tall) .es-card__media,
    .es-grid .es-card:not(.es-card--tall) .es-card__media img,
    .es-grid .es-card:not(.es-card--tall) .es-card__media video {
        -webkit-touch-callout: none;
        user-select: none;
        -webkit-user-select: none;
    }
    /* Never move the tile itself; only the media gently scales in place. */
    .es-grid .es-card:not(.es-card--tall):active {
        transform: none !important;
        filter: none !important;
    }
    .es-grid .es-card:not(.es-card--tall) .es-card__media img,
    .es-grid .es-card:not(.es-card--tall) .es-card__media video {
        transform: scale(1);
        transform-origin: center center;
        transition: transform 180ms cubic-bezier(.22,.61,.36,1);
        will-change: transform;
    }
    .es-grid .es-card:not(.es-card--tall):active .es-card__media img,
    .es-grid .es-card:not(.es-card--tall):active .es-card__media video {
        transform: scale(1.025);
    }
}

/* Protect Explore tiles from long-press browser actions (save/download/share). */
.es-grid .es-card,
.es-grid .es-card__media,
.es-grid .es-card__media img,
.es-grid .es-card__media video {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
.es-grid .es-card__media img,
.es-grid .es-card__media video {
    -webkit-user-drag: none;
    user-drag: none;
}

/* v1.1.2-final — refined Explore small-tile touch: media-only, stable card. */
@media (hover: none) and (pointer: coarse) {
    .es-grid .es-card:not(.es-card--tall) {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        user-select: none;
        -webkit-user-select: none;
    }
    .es-grid .es-card:not(.es-card--tall) .es-card__media {
        overflow: hidden;
        isolation: isolate;
    }
    .es-grid .es-card:not(.es-card--tall) .es-card__media img,
    .es-grid .es-card:not(.es-card--tall) .es-card__media video {
        transform: scale(1);
        transform-origin: center center;
        transition: transform 260ms cubic-bezier(.22,.61,.36,1), filter 220ms ease;
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    .es-grid .es-card:not(.es-card--tall):active .es-card__media img,
    .es-grid .es-card:not(.es-card--tall):active .es-card__media video {
        transform: scale(1.035);
        filter: brightness(.985) saturate(1.015);
    }
}

/* Elementor Reels: subtle in-place preview feedback; never moves the card. */
.es-reels-rail__item .es-reels-rail__preview-video {
    transform: scale(1);
    transform-origin: center center;
    transition: transform 260ms cubic-bezier(.22,.61,.36,1), opacity 180ms ease;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.es-reels-rail__item.is-previewing .es-reels-rail__preview-video {
    transform: scale(1.025);
}

/* ================================================================
 * Reels creator profile + author row
 * ================================================================ */
.es-reel__author{
    display:flex;
    align-items:center;
    gap:9px;
    margin-bottom:3px;
    direction:ltr;
    justify-content:flex-start;
    width:max-content;
    max-width:100%;
}
.es-reel__author-profile{
    appearance:none;
    border:0;
    background:transparent;
    color:#fff;
    display:flex;
    align-items:center;
    gap:8px;
    padding:0;
    cursor:pointer;
    font-family:inherit;
    min-width:0;
    text-shadow:0 1px 4px rgba(0,0,0,.65);
    direction:ltr;
}
.es-reel__author-avatar{
    width:42px;
    height:42px;
    border-radius:50%;
    object-fit:cover;
    display:block;
    border:2px solid rgba(255,255,255,.95);
    box-shadow:0 2px 12px rgba(0,0,0,.35);
    flex:none;
}
.es-reel__author-name{
    max-width:150px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:13px;
    font-weight:800;
    direction:rtl;
    unicode-bidi:plaintext;
    color:#fff;
}
.es-reel__follow{
    appearance:none;
    border:1px solid rgba(255,255,255,.78);
    background:rgba(255,255,255,.14);
    color:#fff;
    border-radius:999px;
    min-height:34px;
    padding:0 13px;
    font:700 11px/1 Vazir,IRANSans,system-ui,sans-serif;
    cursor:pointer;
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    box-shadow:0 4px 16px rgba(0,0,0,.18);
    transition:transform .18s ease,background .18s ease,border-color .18s ease;
    white-space:nowrap;
}
.es-reel__follow:hover{transform:translateY(-1px);background:rgba(255,255,255,.23)}
.es-reel__follow.is-following{background:#fff;color:#111;border-color:#fff}

.es-reel-profile{
    position:fixed;
    inset:0;
    z-index:100000002;
    background:#fff;
    color:#111;
    direction:rtl;
    visibility:hidden;
    opacity:0;
    transform:translateY(12px);
    pointer-events:none;
    transition:opacity .2s ease,transform .24s ease,visibility .2s ease;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
}
.es-reel-profile.is-open{
    visibility:visible;
    opacity:1;
    transform:none;
    pointer-events:auto;
}
.es-reel-profile__topbar{
    position:sticky;
    top:0;
    z-index:2;
    min-height:58px;
    display:grid;
    grid-template-columns:44px 1fr 44px;
    align-items:center;
    padding:calc(env(safe-area-inset-top) + 7px) 14px 7px;
    background:rgba(255,255,255,.92);
    border-bottom:1px solid #eee;
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
}
.es-reel-profile__heading{text-align:center;font-size:16px;font-weight:900;color:#111}
.es-reel-profile__spacer{display:block}
.es-reel-profile__close{
    width:40px;height:40px;border:0;background:transparent;border-radius:50%;display:grid;place-items:center;color:#111;cursor:pointer;
}
.es-reel-profile__body{max-width:720px;margin:0 auto;padding:34px 20px 60px;text-align:center}
.es-reel-profile__identity{display:flex;flex-direction:column;align-items:center;gap:13px}
.es-reel-profile__avatar{width:108px;height:108px;border-radius:50%;object-fit:cover;display:block;border:4px solid #fff;box-shadow:0 5px 25px rgba(0,0,0,.13);background:#f1f1f1}
.es-reel-profile__name{font-size:20px;font-weight:900;color:#111;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.es-reel-profile__stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:28px auto 18px;max-width:520px}
.es-reel-profile__stat{border:0;background:transparent;padding:10px 5px;color:#111;display:flex;flex-direction:column;gap:5px;align-items:center;font-family:inherit}
.es-reel-profile__stat--button{cursor:pointer}
.es-reel-profile__stat strong{font-size:20px;font-weight:900;line-height:1.1}
.es-reel-profile__stat span{font-size:12px;color:#737373;font-weight:600}
.es-reel-profile__follow{width:min(100%,340px);height:46px;border:0;border-radius:14px;background:linear-gradient(135deg,var(--es-primary),var(--es-primary-end));color:#fff;font:800 14px Vazir,IRANSans,system-ui,sans-serif;cursor:pointer;box-shadow:0 8px 24px rgba(255,45,119,.22);transition:transform .18s ease,opacity .18s ease}
.es-reel-profile__follow:active{transform:scale(.98)}
.es-reel-profile__follow.is-following{background:#f1f1f1;color:#111;box-shadow:none}
.es-reel-profile__follow:disabled{opacity:.65;cursor:default}
.es-reel-profile__message{min-height:22px;margin-top:12px;font-size:12px;color:#777}
.es-reel-profile-open .es-reels__back{visibility:hidden;pointer-events:none}

@media(max-width:600px){
    .es-reel__author-avatar{width:40px;height:40px}
    .es-reel__author-name{max-width:125px}
    .es-reel__follow{min-height:32px;padding:0 11px}
    .es-reel-profile__body{padding:28px 16px 50px}
    .es-reel-profile__avatar{width:96px;height:96px}
}


/* Reels creator row + standalone profile screen final alignment */
.es-reel__author{
    direction:ltr !important;
    justify-content:flex-start !important;
    align-items:center !important;
}
.es-reel__author-profile{
    direction:ltr !important;
    flex-direction:row !important;
}
.es-reel__author-name{
    direction:rtl !important;
    unicode-bidi:plaintext !important;
}
.es-reel-profile{
    position:fixed !important;
    inset:0 !important;
    z-index:100000002 !important;
    width:100vw !important;
    height:100dvh !important;
    max-width:none !important;
    border-radius:0 !important;
}
.es-reel-profile__topbar{
    grid-template-columns:44px 1fr 44px !important;
}
.es-reel-profile__close{
    justify-self:start !important;
}
@media(max-width:600px){
    .es-reel__author{max-width:calc(100vw - 82px) !important;}
    .es-reel__author-name{max-width:120px !important;}
}


/* FINAL REELS POSITION FIX — physical left side from viewer perspective */
.es-reel__actions {
    left: 12px !important;
    right: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
}
@media (max-width: 768px) {
    .es-reel__actions {
        left: 9px !important;
        right: auto !important;
        inset-inline-start: auto !important;
        inset-inline-end: auto !important;
    }
}

/* Profile screen must be a real full-screen layer above the Reel viewer. */
.es-reel-profile {
    display: none;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 2147483000 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.es-reel-profile.is-open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
}

/* ================================================================
 * v1.1.4 — Instagram-like creator profile + side balancing
 * Icons stay on the physical left; creator row stays on the opposite side.
 * ================================================================ */
.es-reel__meta{
    left:76px !important;
    right:14px !important;
    inset-inline-start:auto !important;
    inset-inline-end:auto !important;
    max-width:calc(100% - 90px) !important;
}
.es-reel__author{
    direction:rtl !important;
    justify-content:flex-start !important;
    width:100% !important;
    max-width:100% !important;
}
.es-reel__author-profile{
    direction:rtl !important;
    flex-direction:row !important;
}
.es-reel__follow{flex:none !important;}

.es-reel-profile__topbar{
    grid-template-columns:48px 1fr 48px !important;
    min-height:60px !important;
    border-bottom:1px solid #efefef !important;
}
.es-reel-profile__more{
    width:40px;height:40px;border:0;background:transparent;display:flex;align-items:center;justify-content:center;gap:3px;cursor:pointer;
}
.es-reel-profile__more span{width:4px;height:4px;border-radius:50%;background:#111;display:block}
.es-reel-profile__body{max-width:720px !important;padding:22px 0 70px !important;text-align:initial !important;overflow-y:auto !important;-webkit-overflow-scrolling:touch !important;touch-action:pan-y !important;flex:1 1 auto !important;}
.es-reel-profile__hero{display:flex;direction:rtl;align-items:center;gap:24px;padding:8px 18px 0}
.es-reel-profile__avatar{width:92px !important;height:92px !important;border:2px solid #111 !important;box-shadow:none !important;flex:none}
.es-reel-profile__summary{flex:1;min-width:0}
.es-reel-profile__name{font-size:18px !important;font-weight:800 !important;margin-bottom:14px;text-align:right}
.es-reel-profile__stats{display:grid !important;grid-template-columns:repeat(3,1fr) !important;gap:0 !important;margin:0 !important;max-width:none !important}
.es-reel-profile__stat{padding:0 !important;gap:3px !important;align-items:center !important}
.es-reel-profile__stat strong{font-size:16px !important;font-weight:800 !important}
.es-reel-profile__stat span{font-size:11px !important;color:#555 !important}
.es-reel-profile__bio{direction:rtl;text-align:right;padding:16px 18px 10px;font-size:12px;color:#333;line-height:1.8}
.es-reel-profile__follow{display:block !important;width:calc(100% - 36px) !important;height:38px !important;margin:4px 18px 8px !important;border-radius:8px !important;background:#111 !important;color:#fff !important;box-shadow:none !important;font-size:13px !important}
.es-reel-profile__follow.is-following{background:#efefef !important;color:#111 !important}
.es-reel-profile__message{margin:0 18px 8px !important;text-align:center}
.es-reel-profile__tabs{height:48px;border-top:1px solid #eee;border-bottom:1px solid #eee;display:flex;align-items:center;justify-content:center;margin-top:8px}
.es-reel-profile__tabs button{height:48px;min-width:120px;border:0;border-bottom:2px solid #111;background:transparent;color:#111;font:700 11px Vazir,IRANSans,system-ui,sans-serif;display:flex;align-items:center;justify-content:center;gap:7px}
.es-reel-profile__tabs svg{width:18px;height:18px}
.es-reel-profile__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;margin-top:2px}
.es-reel-profile__grid-item{position:relative;border:0;padding:0;background:#f2f2f2;aspect-ratio:1/1;overflow:hidden;cursor:pointer}
.es-reel-profile__grid-item img,.es-reel-profile__grid-item video{width:100%;height:100%;object-fit:cover;display:block}
.es-reel-profile__grid-item span{position:absolute;inset:auto 0 0;padding:22px 6px 5px;background:linear-gradient(transparent,rgba(0,0,0,.65));color:#fff;font:600 9px Vazir,IRANSans,sans-serif;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.es-reel-profile__empty{grid-column:1/-1;text-align:center;color:#777;padding:60px 20px;font-size:13px}
@media(max-width:600px){
  .es-reel__meta{left:64px !important;right:10px !important;max-width:calc(100% - 74px) !important}
  .es-reel__author-avatar{width:40px !important;height:40px !important}
  .es-reel__author-name{max-width:105px !important}
  .es-reel-profile__hero{gap:16px;padding-left:16px;padding-right:16px}
  .es-reel-profile__avatar{width:88px !important;height:88px !important}
  .es-reel-profile__name{font-size:17px !important}
  .es-reel-profile__bio{padding-left:16px;padding-right:16px}
  .es-reel-profile__follow{width:calc(100% - 32px) !important;margin-left:16px !important;margin-right:16px !important}
}


/* ================================================================
 * v1.1.5 — Reels side layout: physical left/right, independent of RTL
 * From the viewer's perspective: action icons LEFT, creator profile RIGHT.
 * This block intentionally uses physical left/right so RTL cannot flip it.
 * ================================================================ */
.es-reels .es-reel__stage .es-reel__actions {
    position: absolute !important;
    left: 12px !important;
    right: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    bottom: calc(env(safe-area-inset-bottom) + 104px) !important;
    z-index: 20 !important;
    width: 42px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.es-reels .es-reel__stage .es-reel__meta {
    position: absolute !important;
    left: 76px !important;
    right: 14px !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    bottom: calc(env(safe-area-inset-bottom) + 16px) !important;
    max-width: calc(100% - 90px) !important;
    z-index: 19 !important;
    direction: rtl !important;
}

.es-reels .es-reel__stage .es-reel__author {
    direction: rtl !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

.es-reels .es-reel__stage .es-reel__author-profile {
    direction: rtl !important;
    flex-direction: row !important;
}

@media (max-width: 768px) {
    .es-reels .es-reel__stage .es-reel__actions {
        left: 9px !important;
        right: auto !important;
        inset-inline-start: auto !important;
        inset-inline-end: auto !important;
        bottom: calc(env(safe-area-inset-bottom) + 104px) !important;
    }
    .es-reels .es-reel__stage .es-reel__meta {
        left: 64px !important;
        right: 10px !important;
        inset-inline-start: auto !important;
        inset-inline-end: auto !important;
        max-width: calc(100% - 74px) !important;
        bottom: calc(env(safe-area-inset-bottom) + 16px) !important;
    }
}

@media (max-width: 480px) {
    .es-reels .es-reel__stage .es-reel__actions {
        left: 8px !important;
    }
    .es-reels .es-reel__stage .es-reel__meta {
        left: 58px !important;
        right: 8px !important;
        max-width: calc(100% - 66px) !important;
    }
}

/* ================================================================
 * v1.1.6 — Reels creator row + iPhone profile sheet
 * Profile is on the physical RIGHT; action icons stay on the opposite side.
 * Profile opens as a compact bottom sheet with the same 72dvh footprint
 * as Product Details, including the iPhone grab handle.
 * ================================================================ */
.es-reels .es-reel__stage .es-reel__actions{
    left:12px !important;
    right:auto !important;
}
.es-reels .es-reel__stage .es-reel__meta{
    left:auto !important;
    right:14px !important;
    width:auto !important;
    max-width:calc(100% - 90px) !important;
    direction:rtl !important;
}
.es-reels .es-reel__stage .es-reel__author{
    direction:rtl !important;
    width:max-content !important;
    max-width:100% !important;
    margin-left:auto !important;
    margin-right:0 !important;
    justify-content:flex-end !important;
    gap:8px !important;
}
.es-reels .es-reel__stage .es-reel__author-profile{
    direction:rtl !important;
    flex-direction:row !important;
    justify-content:flex-end !important;
    text-align:right !important;
}
.es-reels .es-reel__stage .es-reel__author-name{
    text-align:right !important;
    direction:rtl !important;
    unicode-bidi:plaintext !important;
}
.es-reels .es-reel__stage .es-reel__follow{flex:0 0 auto !important;}

.es-reel-profile{
    position:fixed !important;
    inset:0 !important;
    width:100vw !important;
    height:100dvh !important;
    z-index:2147483000 !important;
    display:block !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
    background:transparent !important;
    overflow:hidden !important;
    transition:opacity .24s ease, visibility .24s ease !important;
}
.es-reel-profile.is-open{
    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;
}
.es-reel-profile__backdrop{
    position:absolute !important;
    inset:0 !important;
    background:rgba(0,0,0,.48) !important;
    backdrop-filter:blur(3px) !important;
    -webkit-backdrop-filter:blur(3px) !important;
}
.es-reel-profile__sheet{
    position:absolute !important;
    left:50% !important;
    bottom:0 !important;
    width:100% !important;
    max-width:480px !important;
    height:72dvh !important;
    max-height:72dvh !important;
    transform:translate(-50%,105%) !important;
    background:#fff !important;
    color:#111 !important;
    border-radius:22px 22px 0 0 !important;
    overflow:hidden !important;
    touch-action:none !important;
    box-shadow:0 -14px 45px rgba(0,0,0,.25) !important;
    direction:rtl !important;
    display:flex !important;
    flex-direction:column !important;
    transition:transform .34s cubic-bezier(.32,.72,0,1) !important;
}
.es-reel-profile.is-open .es-reel-profile__sheet{transform:translate(-50%,0) !important;}
.es-reel-profile__handle{
    flex:0 0 auto !important;
    width:38px !important;
    height:4px !important;
    margin:9px auto 4px !important;
    border-radius:999px !important;
    background:#cfd2d6 !important;
}
.es-reel-profile__topbar{
    flex:0 0 48px !important;
    min-height:48px !important;
    display:grid !important;
    grid-template-columns:44px 1fr 44px !important;
    align-items:center !important;
    padding:0 12px !important;
    background:#fff !important;
    border-bottom:1px solid #f0f0f0 !important;
}
.es-reel-profile__heading{
    text-align:center !important;
    font-size:14px !important;
    font-weight:850 !important;
    color:#111 !important;
}
.es-reel-profile__close{
    width:32px !important;height:32px !important;border:0 !important;border-radius:50% !important;
    background:#f2f3f5 !important;color:#111 !important;display:flex !important;align-items:center !important;justify-content:center !important;
    cursor:pointer !important;
}
.es-reel-profile__top-spacer{display:block !important;width:32px;height:32px;}
.es-reel-profile__body{
    flex:1 1 auto !important;
    min-height:0 !important;
    max-width:none !important;
    width:100% !important;
    margin:0 !important;
    padding:18px 0 0 !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch !important;
    text-align:initial !important;
}
.es-reel-profile__hero{
    display:flex !important;
    direction:rtl !important;
    align-items:center !important;
    gap:16px !important;
    padding:4px 18px 0 !important;
}
.es-reel-profile__avatar{
    width:78px !important;height:78px !important;flex:0 0 78px !important;
    border:2px solid #fff !important;box-shadow:0 2px 12px rgba(0,0,0,.12) !important;
}
.es-reel-profile__summary{flex:1 !important;min-width:0 !important;text-align:right !important;}
.es-reel-profile__name{
    font-size:17px !important;font-weight:850 !important;margin:0 0 12px !important;
    text-align:right !important;direction:rtl !important;
}
.es-reel-profile__stats{display:grid !important;grid-template-columns:repeat(3,1fr) !important;gap:0 !important;margin:0 !important;max-width:none !important;}
.es-reel-profile__stat{padding:0 !important;gap:3px !important;align-items:center !important;}
.es-reel-profile__stat strong{font-size:15px !important;font-weight:850 !important;}
.es-reel-profile__stat span{font-size:10px !important;color:#777 !important;}
.es-reel-profile__bio{padding:13px 18px 8px !important;font-size:11px !important;color:#555 !important;line-height:1.8 !important;text-align:right !important;}
.es-reel-profile__profile-actions{
    display:flex !important;flex-direction:row !important;direction:rtl !important;align-items:center !important;gap:8px !important;padding:0 18px 10px !important;
}
.es-reel-profile__message-btn{
    width:44px !important;height:38px !important;flex:0 0 44px !important;border:1px solid #e3e3e3 !important;border-radius:10px !important;
    background:#fff !important;color:#222 !important;display:flex !important;align-items:center !important;justify-content:center !important;cursor:pointer !important;
}
.es-reel-profile__message-btn svg{width:17px !important;height:17px !important;}
.es-reel-profile__message-btn span{display:none !important;}
.es-reel-profile__follow{
    flex:1 !important;width:auto !important;height:38px !important;margin:0 !important;border:0 !important;border-radius:10px !important;
    background:#111 !important;color:#fff !important;box-shadow:none !important;font-size:12px !important;font-weight:800 !important;
}
.es-reel-profile__follow.is-following{background:#eee !important;color:#111 !important;}
.es-reel-profile__message{min-height:18px !important;margin:0 18px 5px !important;text-align:center !important;font-size:10px !important;color:#777 !important;}
.es-reel-profile__tabs{height:44px !important;margin-top:0 !important;border-top:1px solid #eee !important;border-bottom:1px solid #eee !important;display:flex !important;align-items:center !important;justify-content:center !important;}
.es-reel-profile__tabs button{height:44px !important;min-width:110px !important;border:0 !important;border-bottom:2px solid #111 !important;background:transparent !important;color:#111 !important;font-size:10px !important;}
.es-reel-profile__grid{grid-template-columns:repeat(3,1fr) !important;gap:2px !important;margin-top:2px !important;}
@media(max-width:600px){
  .es-reels .es-reel__stage .es-reel__actions{left:8px !important;right:auto !important;}
  .es-reels .es-reel__stage .es-reel__meta{left:auto !important;right:8px !important;max-width:calc(100% - 66px) !important;}
  .es-reel-profile__sheet{width:100% !important;height:72dvh !important;max-height:72dvh !important;border-radius:22px 22px 0 0 !important;}
  .es-reel-profile__hero{padding-right:16px !important;padding-left:16px !important;}
  .es-reel-profile__avatar{width:72px !important;height:72px !important;flex-basis:72px !important;}
  .es-reel-profile__profile-actions{padding-right:16px !important;padding-left:16px !important;}
}


/* ================================================================
 * v1.1.7 — Reels social profile final layout
 * Physical sides are intentionally independent of RTL:
 * profile/creator LEFT, Reels actions RIGHT.
 * ================================================================ */
.es-reels .es-reel__stage .es-reel__actions{
    right:12px !important;
    left:auto !important;
    inset-inline-start:auto !important;
    inset-inline-end:auto !important;
}
.es-reels .es-reel__stage .es-reel__meta{
    left:14px !important;
    right:auto !important;
    inset-inline-start:auto !important;
    inset-inline-end:auto !important;
    width:auto !important;
    max-width:calc(100% - 90px) !important;
    direction:rtl !important;
}
.es-reels .es-reel__stage .es-reel__author{
    width:max-content !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:auto !important;
    justify-content:flex-start !important;
    direction:rtl !important;
}
.es-reels .es-reel__stage .es-reel__author-profile{
    direction:rtl !important;
    flex-direction:row !important;
    justify-content:flex-start !important;
}
.es-reels .es-reel__stage .es-reel__author-name{text-align:right !important;}
.es-reel-profile__topbar{
    display:flex !important;
    justify-content:center !important;
    min-height:48px !important;
    padding:0 16px !important;
}
.es-reel-profile__heading{font-size:15px !important;font-weight:900 !important;}
.es-reel-profile__top-spacer,.es-reel-profile__close{display:none !important;}
.es-reel-profile__stat span{font-size:11px !important;}
.es-reel-profile__grid-item span{font-size:10px !important;}
@media(max-width:768px){
  .es-reels .es-reel__stage .es-reel__actions{right:9px !important;left:auto !important;}
  .es-reels .es-reel__stage .es-reel__meta{left:10px !important;right:auto !important;max-width:calc(100% - 74px) !important;}
}
@media(max-width:480px){
  .es-reels .es-reel__stage .es-reel__actions{right:8px !important;left:auto !important;}
  .es-reels .es-reel__stage .es-reel__meta{left:8px !important;right:auto !important;max-width:calc(100% - 66px) !important;}
}

/* Shortcode profile card */
.kv-social-profile-card{max-width:720px;margin:24px auto;background:#fff;border:1px solid #eee;border-radius:22px;overflow:hidden;box-shadow:0 10px 35px rgba(0,0,0,.08);font-family:Vazir,IRANSans,system-ui,sans-serif;color:#111}
.kv-social-profile-card__head{display:flex;direction:rtl;align-items:center;gap:18px;padding:22px}
.kv-social-profile-card__head>img{width:92px;height:92px;border-radius:50%;object-fit:cover;flex:0 0 92px}
.kv-social-profile-card__identity{min-width:0;flex:1;text-align:right}
.kv-social-profile-card__identity>strong{font-size:18px;font-weight:900;display:block;margin-bottom:14px}
.kv-social-profile-card__stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.kv-social-profile-card__stats span{font-size:11px;color:#666;text-align:center}.kv-social-profile-card__stats b{display:block;font-size:16px;color:#111}
.kv-social-profile-card__actions{display:flex;direction:rtl;gap:8px;padding:0 22px 16px}
.kv-social-profile-card__actions>*{flex:1;min-height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;text-decoration:none;font:700 12px Vazir,IRANSans,sans-serif}
.kv-social-profile-card__follow{background:#111;color:#fff}.kv-social-profile-card__message{background:#f2f2f2;color:#111}
.kv-social-profile-card__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px}.kv-social-profile-card__post{position:relative;aspect-ratio:1;text-decoration:none;background:#f2f2f2}.kv-social-profile-card__post img{width:100%;height:100%;object-fit:cover;display:block}.kv-social-profile-card__post span{position:absolute;bottom:7px;right:7px;color:#fff;font-size:10px;text-shadow:0 1px 5px #000}


/* v1.1.8 — compact creator identity + glass follow control */
.es-reels .es-reel__stage .es-reel__meta{
    right:auto !important;
    left:14px !important;
    bottom:76px !important;
    width:auto !important;
    max-width:calc(100% - 88px) !important;
    direction:rtl !important;
    text-align:right !important;
}
.es-reels .es-reel__stage .es-reel__author{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:7px !important;
    width:auto !important;
    max-width:100% !important;
    margin:0 !important;
}
.es-reels .es-reel__stage .es-reel__author-profile{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    gap:7px !important;
    min-width:0 !important;
    width:auto !important;
    max-width:180px !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    color:#fff !important;
    box-shadow:none !important;
}
.es-reels .es-reel__stage .es-reel__author-avatar{
    width:38px !important;height:38px !important;flex:0 0 38px !important;
    border-radius:50% !important;border:2px solid rgba(255,255,255,.92) !important;
    object-fit:cover !important;box-shadow:0 3px 14px rgba(0,0,0,.25) !important;
}
.es-reels .es-reel__stage .es-reel__author-name{
    display:block !important;max-width:92px !important;overflow:hidden !important;text-overflow:ellipsis !important;white-space:nowrap !important;
    font-size:13px !important;font-weight:850 !important;color:#fff !important;text-shadow:0 1px 6px rgba(0,0,0,.55) !important;
}
.es-reels .es-reel__stage .es-reel__follow{
    flex:0 0 auto !important;
    min-width:76px !important;height:32px !important;padding:0 12px !important;
    border:1px solid rgba(255,255,255,.78) !important;border-radius:999px !important;
    background:rgba(255,255,255,.18) !important;
    color:#fff !important;
    box-shadow:0 5px 18px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.35) !important;
    backdrop-filter:blur(12px) saturate(135%) !important;-webkit-backdrop-filter:blur(12px) saturate(135%) !important;
    font:800 11px Vazir,IRANSans,system-ui,sans-serif !important;
    white-space:nowrap !important;cursor:pointer !important;
}
.es-reels .es-reel__stage .es-reel__follow.is-following{
    background:rgba(255,255,255,.82) !important;color:#222 !important;border-color:rgba(255,255,255,.95) !important;
}

/* Profile sheet header: username is on the right of the iPhone handle, not underneath it. */
.es-reel-profile__topbar{
    grid-template-columns:1fr !important;
    justify-items:end !important;
    height:38px !important;min-height:38px !important;
    padding:0 18px !important;
    border-bottom:0 !important;
}
.es-reel-profile__heading{
    width:100% !important;text-align:right !important;font-size:14px !important;font-weight:900 !important;
}
.es-reel-profile__handle{margin:9px auto 0 !important;}

/* Reel covers in the profile grid. */
.es-reel-profile__grid{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:2px !important;}
.es-reel-profile__grid-item{position:relative !important;aspect-ratio:3/4 !important;overflow:hidden !important;border:0 !important;padding:0 !important;background:#f3f3f3 !important;cursor:pointer !important;}
.es-reel-profile__grid-item img,.es-reel-profile__grid-item video{width:100% !important;height:100% !important;display:block !important;object-fit:cover !important;}
.es-reel-profile__grid-badge{position:absolute !important;right:7px !important;top:7px !important;width:22px !important;height:22px !important;border-radius:50% !important;display:flex !important;align-items:center !important;justify-content:center !important;background:rgba(0,0,0,.48) !important;color:#fff !important;font-size:9px !important;}
.es-reel-profile__grid-placeholder{display:flex !important;width:100% !important;height:100% !important;align-items:center !important;justify-content:center !important;color:#999 !important;font-size:11px !important;}
@media(max-width:600px){
  .es-reels .es-reel__stage .es-reel__meta{left:10px !important;bottom:70px !important;max-width:calc(100% - 82px) !important;}
  .es-reels .es-reel__stage .es-reel__author-avatar{width:34px !important;height:34px !important;flex-basis:34px !important;}
  .es-reels .es-reel__stage .es-reel__author-name{font-size:12px !important;max-width:78px !important;}
  .es-reels .es-reel__stage .es-reel__follow{min-width:70px !important;height:30px !important;padding:0 10px !important;font-size:10px !important;}
}


/* ================================================================
 * v1.1.9 — Instagram compact profile grid + lower creator controls
 * ================================================================ */
.es-reel-profile__grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:2px !important;
    margin-top:2px !important;
}
.es-reel-profile__grid-item{
    aspect-ratio:1 / 1 !important;
    width:100% !important;
    border:0 !important;
    border-radius:0 !important;
    overflow:hidden !important;
    padding:0 !important;
    background:#f2f2f2 !important;
}
.es-reel-profile__grid-item img,
.es-reel-profile__grid-item video{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
}
.es-reel-profile__grid-item span,
.es-reel-profile__grid-badge,
.es-reel-profile__grid-placeholder{
    display:none !important;
}
.es-reel-profile__tabs button{
    min-width:110px !important;
}

/* Move the creator row lower in the Reel and keep profile/name before follow. */
.es-reels .es-reel__stage .es-reel__meta{
    bottom:30px !important;
}
.es-reels .es-reel__stage .es-reel__author{
    direction:rtl !important;
    flex-direction:row !important;
    justify-content:flex-start !important;
    align-items:center !important;
}
.es-reels .es-reel__stage .es-reel__author-profile{
    order:1 !important;
    direction:rtl !important;
    flex-direction:row !important;
}
.es-reels .es-reel__stage .es-reel__follow{
    order:2 !important;
}
@media(max-width:768px){
    .es-reels .es-reel__stage .es-reel__meta{bottom:28px !important;}
}


/* v1.2.0 — compact corner creator profile: avatar + name + glass follow */
.es-reels .es-reel__stage .es-reel__actions{
    position:absolute !important; left:10px !important; right:auto !important;
    inset-inline-start:auto !important; inset-inline-end:auto !important;
}
.es-reels .es-reel__stage .es-reel__meta{
    position:absolute !important; right:12px !important; left:auto !important;
    bottom:72px !important; width:auto !important; max-width:calc(100% - 92px) !important;
    direction:rtl !important; text-align:right !important;
}
.es-reels .es-reel__stage .es-reel__author{
    display:flex !important; flex-direction:row !important; align-items:center !important;
    justify-content:flex-start !important; gap:7px !important; width:max-content !important;
    max-width:100% !important; margin:0 !important; direction:rtl !important;
}
.es-reels .es-reel__stage .es-reel__author-profile{
    display:flex !important; flex-direction:row !important; align-items:center !important;
    gap:7px !important; width:auto !important; max-width:170px !important;
    padding:0 !important; border:0 !important; background:transparent !important;
}
.es-reels .es-reel__stage .es-reel__author-name{
    order:1 !important; max-width:100px !important; font-size:12px !important; font-weight:850 !important;
    color:#fff !important; text-align:right !important; text-shadow:0 1px 6px rgba(0,0,0,.55) !important;
}
.es-reels .es-reel__stage .es-reel__author-avatar{
    order:2 !important; width:34px !important; height:34px !important; flex:0 0 34px !important;
    border-radius:50% !important; object-fit:cover !important;
}
.es-reels .es-reel__stage .es-reel__follow{
    order:0 !important; min-width:70px !important; height:30px !important; padding:0 10px !important;
    border:1px solid rgba(255,255,255,.75) !important; border-radius:999px !important;
    background:rgba(255,255,255,.18) !important; color:#fff !important;
    backdrop-filter:blur(12px) saturate(135%) !important; -webkit-backdrop-filter:blur(12px) saturate(135%) !important;
    font:800 10px Vazir,IRANSans,system-ui,sans-serif !important;
}
.es-reel-profile__topbar{justify-content:flex-start !important; padding-right:18px !important; padding-left:18px !important;}
.es-reel-profile__heading{text-align:right !important; width:auto !important; margin-right:auto !important;}
@media(max-width:600px){
 .es-reels .es-reel__stage .es-reel__meta{right:10px !important; left:auto !important; max-width:calc(100% - 78px) !important;}
 .es-reels .es-reel__stage .es-reel__actions{left:8px !important; right:auto !important;}
}

/* v1.2.1 — Reels creator row matches the supplied reference: profile on the physical left, actions on physical right. */
.es-reels .es-reel__stage .es-reel__actions{
    position:absolute !important;
    right:10px !important;
    left:auto !important;
    inset-inline-start:auto !important;
    inset-inline-end:auto !important;
}
.es-reels .es-reel__stage .es-reel__meta{
    position:absolute !important;
    left:12px !important;
    right:auto !important;
    bottom:72px !important;
    width:auto !important;
    max-width:calc(100% - 92px) !important;
    direction:ltr !important;
    text-align:left !important;
}
.es-reels .es-reel__stage .es-reel__author{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
    width:max-content !important;
    max-width:100% !important;
    margin:0 !important;
    direction:ltr !important;
}
.es-reels .es-reel__stage .es-reel__author-profile{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    gap:8px !important;
    width:auto !important;
    max-width:170px !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    background:transparent !important;
    color:#fff !important;
    direction:ltr !important;
}
.es-reels .es-reel__stage .es-reel__author-avatar{
    order:1 !important;
    width:40px !important;
    height:40px !important;
    flex:0 0 40px !important;
    border-radius:50% !important;
    object-fit:cover !important;
    border:1.5px solid rgba(255,255,255,.92) !important;
    box-shadow:0 2px 10px rgba(0,0,0,.28) !important;
}
.es-reels .es-reel__stage .es-reel__author-name{
    order:2 !important;
    max-width:105px !important;
    font-size:13px !important;
    line-height:1.2 !important;
    font-weight:850 !important;
    color:#fff !important;
    text-align:left !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    text-shadow:0 1px 7px rgba(0,0,0,.65) !important;
}
.es-reels .es-reel__stage .es-reel__follow{
    order:3 !important;
    min-width:78px !important;
    width:auto !important;
    height:32px !important;
    padding:0 12px !important;
    margin:0 !important;
    border:1px solid rgba(255,255,255,.82) !important;
    border-radius:999px !important;
    background:rgba(255,255,255,.16) !important;
    color:#fff !important;
    backdrop-filter:blur(12px) saturate(135%) !important;
    -webkit-backdrop-filter:blur(12px) saturate(135%) !important;
    box-shadow:0 2px 12px rgba(0,0,0,.18) !important;
    font:800 11px Vazir,IRANSans,system-ui,sans-serif !important;
    white-space:nowrap !important;
}
.es-reels .es-reel__stage .es-reel__follow.is-following{
    background:rgba(255,255,255,.28) !important;
    color:#fff !important;
}
@media(max-width:600px){
    .es-reels .es-reel__stage .es-reel__actions{
        right:8px !important;
        left:auto !important;
    }
    .es-reels .es-reel__stage .es-reel__meta{
        left:10px !important;
        right:auto !important;
        bottom:72px !important;
        max-width:calc(100% - 78px) !important;
    }
    .es-reels .es-reel__stage .es-reel__author-avatar{
        width:38px !important;
        height:38px !important;
        flex-basis:38px !important;
    }
    .es-reels .es-reel__stage .es-reel__author-name{max-width:92px !important;font-size:12px !important;}
    .es-reels .es-reel__stage .es-reel__follow{min-width:72px !important;height:30px !important;padding:0 10px !important;font-size:10px !important;}
}

/* v1.2.3 — verified profile + reliable profile opening + lower creator row */
.es-reel-profile{display:block !important;visibility:hidden !important;opacity:0 !important;pointer-events:none !important;}
.es-reel-profile.is-open{display:block !important;visibility:visible !important;opacity:1 !important;pointer-events:auto !important;}
.es-profile-verified{
    display:inline-flex !important;
    width:15px !important;height:15px !important;
    align-items:center !important;justify-content:center !important;
    border-radius:50% !important;
    background:#1d9bf0 !important;color:#fff !important;
    font:900 10px/15px Arial,sans-serif !important;
    vertical-align:middle !important;
    box-shadow:0 1px 4px rgba(0,0,0,.18) !important;
    margin-inline-start:4px !important;
}
.es-profile-verified[hidden]{display:none !important;}
.es-profile-verified--reel{width:14px !important;height:14px !important;font-size:9px !important;line-height:14px !important;margin-left:3px !important;margin-right:0 !important;}
.es-reels .es-reel__stage .es-reel__meta{bottom:48px !important;}
.es-reels .es-reel__stage .es-reel__author{margin-bottom:0 !important;}
@media(max-width:600px){.es-reels .es-reel__stage .es-reel__meta{bottom:44px !important;}}

/* ================================================================
 * v1.2.4 — clean Reel profile separation + per-user verified image
 * ================================================================ */
.es-reels .es-reel__stage .es-reel__meta{
    bottom:24px !important;
    left:10px !important;
    right:auto !important;
    max-width:calc(100% - 84px) !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:8px !important;
}
.es-reels .es-reel__stage .es-reel__author{
    order:2 !important;
    margin:0 !important;
    position:relative !important;
    z-index:5 !important;
}
.es-reels .es-reel__stage .es-reel__post-copy{
    order:1 !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
}
.es-reels .es-reel__stage .es-reel__title,
.es-reels .es-reel__stage .es-reel__desc,
.es-reels .es-reel__stage .es-reel__price,
.es-reels .es-reel__stage .es-reel__actions-row{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
}
.es-reels .es-reel__stage .es-reel__desc{
    margin-top:5px !important;
    line-height:1.65 !important;
}
.es-reels .es-reel__stage .es-reel__author-name{
    display:inline-flex !important;
    align-items:center !important;
    gap:4px !important;
}
.es-profile-verified--image{
    width:15px !important;
    height:15px !important;
    min-width:15px !important;
    object-fit:contain !important;
    display:inline-block !important;
    vertical-align:middle !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    border-radius:0 !important;
}
.es-profile-verified--reel.es-profile-verified--image{
    width:14px !important;
    height:14px !important;
    min-width:14px !important;
    margin:0 !important;
}
/* The iPhone handle is enough; the duplicate username header is intentionally removed. */
.es-reel-profile__topbar,
.es-reel-profile__heading{display:none !important;}
.es-reel-profile__handle{margin-top:10px !important;margin-bottom:7px !important;}
.es-reel-profile__body{padding-top:10px !important;}
@media(max-width:600px){
    .es-reels .es-reel__stage .es-reel__meta{
        bottom:22px !important;
        left:8px !important;
        max-width:calc(100% - 76px) !important;
        gap:7px !important;
    }
}

/* ================================================================
 * v1.2.6 — Instagram-style suggested users under Reels actions
 * ================================================================ */
.es-reels .es-reel__stage .es-reel__post-copy .es-reel__title,
.es-reels .es-reel__stage .es-reel__post-copy .es-reel__desc,
.es-reels .es-reel__stage .es-reel__post-copy .es-reel__price {
    display:none !important;
}
.es-reels .es-reel__stage .es-reel__post-copy { pointer-events:none !important; }
.es-reels .es-reel__stage .es-reel__post-copy .es-reel__actions-row { pointer-events:auto !important; }

.es-reel__suggestions {
    position:absolute !important;
    right:8px !important;
    left:auto !important;
    bottom:calc(env(safe-area-inset-bottom) + 158px) !important;
    width:auto !important;
    max-width:min(86vw, 310px) !important;
    z-index:28 !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-end !important;
    gap:5px !important;
    direction:rtl !important;
    pointer-events:auto !important;
}
.es-reel__suggestions-title {
    color:#fff !important;
    font:700 9px Vazir,IRANSans,system-ui,sans-serif !important;
    text-align:right !important;
    text-shadow:0 1px 5px rgba(0,0,0,.7) !important;
    white-space:nowrap !important;
    margin-right:2px !important;
}
.es-reel__suggestions-list {
    display:flex !important;
    flex-direction:row !important;
    align-items:flex-start !important;
    justify-content:flex-end !important;
    gap:7px !important;
    max-width:86vw !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    scrollbar-width:none !important;
    padding:2px 1px 3px !important;
    direction:rtl !important;
}
.es-reel__suggestions-list::-webkit-scrollbar { display:none !important; }
.es-reel__suggested-user {
    flex:0 0 50px !important;
    width:50px !important;
    min-width:50px !important;
    height:61px !important;
    padding:0 !important;
    margin:0 !important;
    appearance:none !important;
    border:0 !important;
    background:transparent !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:4px !important;
    cursor:pointer !important;
    box-shadow:none !important;
}
.es-reel__suggested-user img {
    width:43px !important;
    height:43px !important;
    border-radius:50% !important;
    object-fit:cover !important;
    display:block !important;
    border:1.5px solid rgba(255,255,255,.95) !important;
    box-shadow:0 3px 12px rgba(0,0,0,.3) !important;
}
.es-reel__suggested-user span {
    display:block !important;
    width:50px !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    direction:ltr !important;
    text-align:center !important;
    color:#fff !important;
    font:600 7px Arial,system-ui,sans-serif !important;
    text-shadow:0 1px 4px rgba(0,0,0,.8) !important;
}
.es-reel__suggested-user:active { transform:scale(.94) !important; }
.es-reel__suggestions-all {
    appearance:none !important;
    border:1px solid rgba(255,255,255,.45) !important;
    background:rgba(0,0,0,.28) !important;
    color:#fff !important;
    backdrop-filter:blur(9px) !important;
    -webkit-backdrop-filter:blur(9px) !important;
    border-radius:999px !important;
    padding:3px 9px !important;
    min-height:22px !important;
    font:700 8px Vazir,IRANSans,system-ui,sans-serif !important;
    line-height:1 !important;
    cursor:pointer !important;
    box-shadow:0 3px 12px rgba(0,0,0,.18) !important;
}
.es-reel__suggestions-all:active { transform:scale(.95) !important; }
.es-reel__suggestions.is-expanded .es-reel__suggestions-list {
    max-width:86vw !important;
    padding-bottom:5px !important;
}
@media (max-width:480px){
    .es-reel__suggestions {
        right:7px !important;
        bottom:calc(env(safe-area-inset-bottom) + 150px) !important;
        max-width:84vw !important;
    }
    .es-reel__suggested-user { flex-basis:47px !important; width:47px !important; min-width:47px !important; }
    .es-reel__suggested-user img { width:40px !important; height:40px !important; }
    .es-reel__suggested-user span { width:47px !important; font-size:6.5px !important; }
}


/* v1.2.7 — English username on Reels + verified badge before Follow + compact suggested users */
.es-reels .es-reel__stage .es-reel__author{
    direction:ltr !important;
    flex-direction:row !important;
    align-items:center !important;
    gap:6px !important;
}
.es-reels .es-reel__stage .es-reel__author-profile{
    direction:ltr !important;
    flex-direction:row !important;
    align-items:center !important;
    gap:7px !important;
}
.es-reels .es-reel__stage .es-reel__author-name{
    direction:ltr !important;
    unicode-bidi:isolate !important;
    text-align:left !important;
    font-family:Arial,system-ui,sans-serif !important;
    font-weight:800 !important;
}
.es-reels .es-reel__stage .es-reel__author-verified{
    order:2 !important;
    flex:0 0 auto !important;
    margin:0 1px !important;
}
.es-reels .es-reel__stage .es-reel__follow{order:3 !important;}
.es-reel-profile__name{
    direction:ltr !important;
    text-align:right !important;
    unicode-bidi:isolate !important;
    font-family:Arial,system-ui,sans-serif !important;
}
.es-reel-profile__display-name{
    margin-top:-10px !important;
    margin-bottom:12px !important;
    color:#777 !important;
    font-size:11px !important;
    font-weight:700 !important;
    direction:rtl !important;
    text-align:right !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
}
.es-reel__suggestions{
    right:7px !important;
    left:auto !important;
    bottom:calc(env(safe-area-inset-bottom) + 22px) !important;
    width:185px !important;
    max-width:calc(100vw - 14px) !important;
    align-items:flex-end !important;
    gap:4px !important;
    direction:ltr !important;
    z-index:35 !important;
}
.es-reel__suggestions-title{display:none !important;}
.es-reel__suggestions-list{
    width:100% !important;
    max-width:100% !important;
    justify-content:flex-end !important;
    gap:5px !important;
    padding:1px 0 2px !important;
    direction:ltr !important;
}
.es-reel__suggested-user{
    flex:0 0 40px !important;
    width:40px !important;
    min-width:40px !important;
    height:55px !important;
}
.es-reel__suggested-user img{width:36px !important;height:36px !important;border-width:1px !important;}
.es-reel__suggested-user span{
    width:40px !important;
    font-size:6px !important;
    font-family:Arial,system-ui,sans-serif !important;
    direction:ltr !important;
}
.es-reel__suggestions-all{
    min-height:20px !important;
    padding:2px 8px !important;
    font-size:7px !important;
    align-self:flex-end !important;
}
.es-reel__suggestions.is-expanded{width:min(92vw,520px) !important;}
.es-reel__suggestions.is-expanded .es-reel__suggestions-list{overflow-x:auto !important;}
@media(max-width:480px){
  .es-reel__suggestions{right:6px !important;bottom:calc(env(safe-area-inset-bottom) + 18px) !important;width:180px !important;}
  .es-reel__suggested-user{flex-basis:39px !important;width:39px !important;min-width:39px !important;}
  .es-reel__suggested-user img{width:35px !important;height:35px !important;}
  .es-reel__suggested-user span{width:39px !important;font-size:5.8px !important;}
}

/* v1.2.8 — Suggested users fixed under the Reels action icons */
.es-reels .es-reel__stage .es-reel__suggestions.es-reel__suggestions--under-actions{
    position:absolute !important;
    right:72px !important;
    left:auto !important;
    bottom:92px !important;
    width:210px !important;
    max-width:calc(100vw - 92px) !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:6px !important;
    direction:ltr !important;
    z-index:60 !important;
    pointer-events:auto !important;
}
.es-reels .es-reel__stage .es-reel__suggestions--under-actions .es-reel__suggestions-list{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-end !important;
    width:auto !important;
    max-width:168px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    direction:ltr !important;
    gap:6px !important;
    padding:0 !important;
}
.es-reels .es-reel__stage .es-reel__suggestions--under-actions .es-reel__suggested-user{
    flex:0 0 38px !important; width:38px !important; min-width:38px !important; height:48px !important;
}
.es-reels .es-reel__stage .es-reel__suggestions--under-actions .es-reel__suggested-user img{
    width:34px !important; height:34px !important; border-radius:50% !important;
}
.es-reels .es-reel__stage .es-reel__suggestions--under-actions .es-reel__suggested-user span{
    width:38px !important; font-size:6px !important; direction:ltr !important;
}
.es-reels .es-reel__stage .es-reel__suggestions--under-actions .es-reel__suggestions-all{
    flex:0 0 auto !important; display:block !important; min-height:20px !important;
    padding:3px 7px !important; font-size:7px !important;
}
.es-reels .es-reel__stage .es-reel__suggestions--under-actions.is-expanded{
    width:min(92vw,520px) !important; max-width:calc(100vw - 24px) !important; right:12px !important;
}
.es-reels .es-reel__stage .es-reel__suggestions--under-actions.is-expanded .es-reel__suggestions-list{
    max-width:calc(100% - 42px) !important; overflow-x:auto !important;
}
@media(max-width:480px){
 .es-reels .es-reel__stage .es-reel__suggestions.es-reel__suggestions--under-actions{right:58px !important; bottom:88px !important; width:190px !important; max-width:calc(100vw - 70px) !important;}
 .es-reels .es-reel__stage .es-reel__suggestions--under-actions .es-reel__suggestions-list{max-width:148px !important;}
 .es-reels .es-reel__stage .es-reel__suggestions--under-actions .es-reel__suggested-user{flex-basis:36px !important;width:36px !important;min-width:36px !important;}
 .es-reels .es-reel__stage .es-reel__suggestions--under-actions .es-reel__suggested-user img{width:32px !important;height:32px !important;}
 .es-reels .es-reel__stage .es-reel__suggestions--under-actions .es-reel__suggested-user span{width:36px !important;font-size:5.5px !important;}
}
/* In the Reel itself username is plain English; the @ prefix belongs only to the profile sheet. */
.es-reels .es-reel__stage .es-reel__author-name{unicode-bidi:isolate !important;}


/* v1.2.10 — final social profile/suggestions correction */
.es-reels-rail__head .es-reels-rail__all{display:none !important;}
/* Username inside profile sheet: English @username, physically on the LEFT */
.es-reel-profile__summary{position:relative !important;}
.es-reel-profile__name{
    position:absolute !important;
    left:0 !important;
    right:auto !important;
    top:0 !important;
    margin:0 !important;
    direction:ltr !important;
    text-align:left !important;
    unicode-bidi:isolate !important;
    font-size:15px !important;
    font-weight:800 !important;
    white-space:nowrap !important;
}
.es-reel-profile__name .es-profile-verified{margin-left:5px !important;margin-right:0 !important;vertical-align:middle !important;}
/* Suggestions belong UNDER the Reels action icons on the physical LEFT. */
.es-reels .es-reel__stage .es-reel__suggestions.es-reel__suggestions--under-actions{
    position:absolute !important;
    left:7px !important; right:auto !important;
    bottom:calc(env(safe-area-inset-bottom) + 48px) !important;
    width:150px !important; max-width:150px !important;
    height:auto !important; min-height:50px !important;
    padding:5px 4px !important;
    display:flex !important; flex-direction:row !important; align-items:flex-end !important;
    justify-content:flex-start !important; gap:4px !important;
    direction:ltr !important; z-index:80 !important;
    pointer-events:auto !important; visibility:visible !important; opacity:1 !important;
}
.es-reels .es-reel__stage .es-reel__suggestions--under-actions .es-reel__suggestions-list{
    display:flex !important; flex-direction:row !important; align-items:flex-start !important;
    justify-content:flex-start !important; gap:5px !important; width:116px !important; max-width:116px !important;
    overflow:hidden !important; padding:0 !important; margin:0 !important; direction:ltr !important;
}
.es-reels .es-reel__stage .es-reel__suggestions--under-actions .es-reel__suggested-user{
    flex:0 0 34px !important; width:34px !important; min-width:34px !important; height:47px !important;
    padding:0 !important; margin:0 !important; border:0 !important; background:transparent !important;
    display:flex !important; flex-direction:column !important; align-items:center !important; gap:2px !important;
}
.es-reels .es-reel__stage .es-reel__suggestions--under-actions .es-reel__suggested-user img{
    width:31px !important; height:31px !important; border-radius:50% !important; object-fit:cover !important;
    border:1px solid rgba(255,255,255,.9) !important; box-shadow:0 2px 8px rgba(0,0,0,.35) !important; display:block !important;
}
.es-reels .es-reel__stage .es-reel__suggestions--under-actions .es-reel__suggested-user span{
    width:34px !important; color:#fff !important; font-size:5.5px !important; line-height:1.1 !important;
    font-weight:700 !important; text-align:center !important; overflow:hidden !important; text-overflow:ellipsis !important;
    white-space:nowrap !important; direction:ltr !important; text-shadow:0 1px 3px #000 !important;
}
.es-reels .es-reel__stage .es-reel__suggestions--under-actions .es-reel__suggestions-all{
    flex:0 0 28px !important; width:28px !important; height:28px !important; min-height:28px !important;
    padding:0 !important; margin:0 0 8px !important; border:1px solid rgba(255,255,255,.7) !important;
    border-radius:50% !important; background:rgba(255,255,255,.16) !important; color:#fff !important;
    font-size:6px !important; font-weight:800 !important; backdrop-filter:blur(8px) !important;
}
.es-reels .es-reel__stage .es-reel__suggestions--under-actions.is-expanded{
    left:7px !important; right:auto !important; width:calc(100% - 14px) !important; max-width:none !important;
    bottom:calc(env(safe-area-inset-bottom) + 48px) !important;
}
.es-reels .es-reel__stage .es-reel__suggestions--under-actions.is-expanded .es-reel__suggestions-list{
    width:100% !important; max-width:none !important; overflow-x:auto !important; overflow-y:hidden !important;
}
@media(max-width:480px){
 .es-reels .es-reel__stage .es-reel__suggestions.es-reel__suggestions--under-actions{left:6px !important;bottom:calc(env(safe-area-inset-bottom) + 46px) !important;width:145px !important;max-width:145px !important;}
 .es-reels .es-reel__stage .es-reel__suggestions--under-actions.is-expanded{left:6px !important;width:calc(100% - 12px) !important;max-width:none !important;}
}


/* v1.2.10 — Suggested users live inside the iPhone profile sheet, directly below Follow/Message. */
.es-reel-profile__suggestions{
  position:relative !important; display:flex !important; align-items:center !important; gap:8px !important;
  margin:0 16px 10px !important; padding:9px 8px !important; min-height:78px !important;
  border:1px solid rgba(0,0,0,.07) !important; border-radius:16px !important;
  background:rgba(248,248,250,.92) !important; box-sizing:border-box !important;
  direction:ltr !important; overflow:hidden !important;
}
.es-reel-profile__suggestions-title{
  position:absolute !important; top:6px !important; right:10px !important; direction:rtl !important;
  font-size:9px !important; font-weight:800 !important; color:#777 !important;
}
.es-reel-profile__suggestions-list{
  display:flex !important; align-items:flex-end !important; gap:10px !important; width:100% !important;
  overflow:hidden !important; padding:14px 0 0 !important; margin:0 !important;
}
.es-reel-profile__suggestions-list .es-reel__suggested-user{
  flex:0 0 48px !important; width:48px !important; min-width:48px !important;
  border:0 !important; background:transparent !important; padding:0 !important; margin:0 !important;
  display:flex !important; flex-direction:column !important; align-items:center !important; gap:4px !important;
  color:#222 !important; cursor:pointer !important;
}
.es-reel-profile__suggestions-list .es-reel__suggested-user img{
  width:42px !important; height:42px !important; border-radius:50% !important; object-fit:cover !important;
  border:1px solid #eee !important; display:block !important;
}
.es-reel-profile__suggestions-list .es-reel__suggested-user span{
  display:block !important; width:48px !important; overflow:hidden !important; text-overflow:ellipsis !important;
  white-space:nowrap !important; direction:ltr !important; text-align:center !important; font-size:7px !important; line-height:1.2 !important;
}
.es-reel-profile__suggestions-all{
  flex:0 0 36px !important; width:36px !important; height:28px !important; margin-top:14px !important;
  border:1px solid #ddd !important; border-radius:10px !important; background:#fff !important; color:#222 !important;
  font-size:8px !important; font-weight:800 !important; cursor:pointer !important;
}
.es-reel-profile__suggestions.is-expanded{min-height:86px !important; overflow:visible !important;}
.es-reel-profile__suggestions.is-expanded .es-reel-profile__suggestions-list{overflow-x:auto !important; scrollbar-width:none !important;}
.es-reel-profile__suggestions.is-expanded .es-reel-profile__suggestions-list::-webkit-scrollbar{display:none !important;}

/* v1.2.12 — Instagram-style profile header + compact follow icon + real in-profile suggestions */
.es-reel-profile__topbar{display:flex !important;align-items:center !important;justify-content:center !important;height:30px !important;position:relative !important;direction:ltr !important;}
.es-reel-profile__topbar-username{font-size:14px !important;font-weight:800 !important;color:#111 !important;direction:ltr !important;unicode-bidi:isolate !important;line-height:1 !important;}
.es-reel-profile__summary .es-reel-profile__name{display:none !important;}
.es-reels .es-reel__stage .es-reel__follow{width:34px !important;min-width:34px !important;max-width:34px !important;height:34px !important;padding:0 !important;border-radius:10px !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;gap:0 !important;font-size:0 !important;line-height:0 !important;background:rgba(255,255,255,.16) !important;border:1px solid rgba(255,255,255,.55) !important;box-shadow:0 5px 18px rgba(0,0,0,.22) !important;backdrop-filter:blur(12px) !important;-webkit-backdrop-filter:blur(12px) !important;}
.es-reels .es-reel__stage .es-reel__follow svg{width:17px !important;height:17px !important;display:block !important;color:#fff !important;}
.es-reels .es-reel__stage .es-reel__follow .es-reel__follow-label{display:none !important;}
.es-reels .es-reel__stage .es-reel__follow.is-following{background:rgba(255,255,255,.28) !important;}
.es-reel-profile__suggestions{display:flex !important;position:relative !important;flex-wrap:wrap !important;align-items:center !important;gap:6px !important;margin:10px 16px 12px !important;padding:10px !important;min-height:82px !important;border:1px solid rgba(0,0,0,.07) !important;border-radius:16px !important;background:rgba(248,248,250,.96) !important;direction:ltr !important;overflow:hidden !important;}
.es-reel-profile__suggestions-head{width:100% !important;direction:rtl !important;text-align:right !important;font-size:10px !important;font-weight:800 !important;color:#555 !important;margin:0 2px 2px !important;}
.es-reel-profile__suggestions-list{flex:1 1 auto !important;width:auto !important;min-width:0 !important;display:flex !important;align-items:flex-start !important;gap:8px !important;overflow:hidden !important;padding:0 !important;}
.es-reel-profile__suggestions-list .es-reel__suggested-user{flex:0 0 48px !important;width:48px !important;min-width:48px !important;}
.es-reel-profile__suggestions-list .es-reel__suggested-user img{width:40px !important;height:40px !important;}
.es-reel-profile__suggestions-list .es-reel__suggested-user span{font-size:7px !important;color:#222 !important;}
.es-reel-profile__suggestions-all{flex:0 0 34px !important;width:34px !important;height:28px !important;margin:13px 0 0 !important;border-radius:9px !important;font-size:8px !important;}
.es-reel-profile__suggestions.is-expanded .es-reel-profile__suggestions-list{overflow-x:auto !important;max-width:100% !important;}


/* v1.2.12 — final compact Instagram-like profile controls and symbolic suggestions. */
.es-reel-profile__handle{margin:5px auto 2px !important;}
.es-reel-profile__topbar{
    flex:0 0 38px !important;
    min-height:38px !important;
    height:38px !important;
    margin-top:-2px !important;
    justify-content:center !important;
    align-items:center !important;
    padding:0 12px !important;
    border-bottom:1px solid rgba(0,0,0,.055) !important;
}
.es-reel-profile__topbar-username{
    transform:translateY(-3px) !important;
    font-size:13px !important;
    font-weight:850 !important;
    letter-spacing:-.1px !important;
}
/* Reel follow: tiny text-only modern button. */
.es-reels .es-reel__stage .es-reel__follow{
    width:auto !important;
    min-width:58px !important;
    max-width:68px !important;
    height:24px !important;
    min-height:24px !important;
    padding:0 8px !important;
    border-radius:8px !important;
    font-size:8px !important;
    line-height:24px !important;
    gap:0 !important;
}
.es-reels .es-reel__stage .es-reel__follow svg{display:none !important;}
.es-reels .es-reel__stage .es-reel__follow .es-reel__follow-label{
    display:block !important;
    font-size:8px !important;
    line-height:24px !important;
    white-space:nowrap !important;
}
/* Suggestions are only inside the profile sheet for now. */
.es-reels .es-reel__stage .es-reel__suggestions{display:none !important;}
.es-reel-profile__suggestions{
    display:flex !important;
    align-items:center !important;
    flex-wrap:nowrap !important;
    gap:7px !important;
    margin:8px 14px 10px !important;
    padding:8px 8px !important;
    min-height:72px !important;
    border:1px solid rgba(0,0,0,.055) !important;
    border-radius:17px !important;
    background:linear-gradient(180deg,rgba(250,250,252,.98),rgba(244,245,248,.94)) !important;
    box-shadow:0 5px 18px rgba(0,0,0,.045) !important;
}
.es-reel-profile__suggestions-head{
    flex:0 0 auto !important;
    width:auto !important;
    margin:0 2px 0 0 !important;
    font-size:9px !important;
    color:#6b7280 !important;
    white-space:nowrap !important;
}
.es-reel-profile__suggestions-list{
    flex:1 1 auto !important;
    display:flex !important;
    align-items:center !important;
    gap:9px !important;
    overflow:hidden !important;
    padding:0 !important;
}
.es-reel-profile__suggestions-list .es-reel__suggested-user{
    flex:0 0 50px !important;
    width:50px !important;
    min-width:50px !important;
    height:57px !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    background:transparent !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:4px !important;
}
.es-reel-profile__suggestions-list .es-reel__suggested-user img{
    width:39px !important;
    height:39px !important;
    border-radius:50% !important;
    object-fit:cover !important;
    border:2px solid #fff !important;
    box-shadow:0 2px 9px rgba(0,0,0,.12) !important;
}
.es-reel-profile__suggestions-list .es-reel__suggested-user span{
    width:50px !important;
    font-size:7px !important;
    font-weight:750 !important;
    color:#222 !important;
    text-align:center !important;
    direction:ltr !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
}
.es-reel-profile__suggestions-all{
    flex:0 0 32px !important;
    width:32px !important;
    height:26px !important;
    min-height:26px !important;
    margin:0 !important;
    padding:0 !important;
    border:1px solid rgba(0,0,0,.09) !important;
    border-radius:9px !important;
    background:#fff !important;
    color:#222 !important;
    font-size:7px !important;
    font-weight:850 !important;
}
.es-reel-profile__suggestions.is-expanded .es-reel-profile__suggestions-list{
    overflow-x:auto !important;
    scrollbar-width:none !important;
}
.es-reel-profile__suggestions.is-expanded .es-reel-profile__suggestions-list::-webkit-scrollbar{display:none !important;}

/* v1.2.15 profile polish */
.es-reel-profile__topbar-username{display:inline-flex!important;align-items:center!important;gap:5px!important;}
.es-reel-profile__topbar-username .es-profile-verified{display:inline-flex!important;vertical-align:middle!important;width:16px!important;height:16px!important;flex:0 0 16px!important;align-items:center!important;justify-content:center!important;}
.es-reel-profile__topbar-username .es-profile-verified--image{object-fit:contain!important;border-radius:0!important;background:transparent!important;mix-blend-mode:normal!important;}
.es-reel-profile__grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:2px!important;}
.es-reel-profile__grid-item{aspect-ratio:1/1!important;overflow:hidden!important;}
.es-reel-profile__grid-item video,.es-reel-profile__grid-item img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;}
.es-reel-profile__suggestions{display:flex!important;visibility:visible!important;opacity:1!important;}
.es-reel-profile__suggestions-list{display:flex!important;overflow:hidden!important;}
.es-reel-profile__suggestions.is-expanded .es-reel-profile__suggestions-list{overflow-x:auto!important;flex-wrap:nowrap!important;}
.es-reel-profile__suggestions-all{display:inline-flex!important;align-items:center!important;justify-content:center!important;}


/* v1.2.17 — AI comment analysis inside product details */
.es-details-comment-ai{margin:14px 0 18px;padding:14px;border:1px solid rgba(99,102,241,.10);border-radius:16px;background:linear-gradient(180deg,#fafaff 0%,#f5f6ff 100%);box-shadow:0 5px 18px rgba(30,41,59,.05)}
.es-details-comment-ai__head{display:flex;align-items:center;gap:8px;font-size:13px;color:#374151;margin-bottom:9px}.es-details-comment-ai__icon{display:inline-flex;width:28px;height:28px;border-radius:9px;align-items:center;justify-content:center;background:#eef0ff;color:#6875e8;font-size:17px}.es-details-comment-ai__body{font-size:11.5px;line-height:1.9;color:#5b6472}.es-details-comment-ai__summary{margin:0 0 7px}.es-details-comment-ai__list{margin:0;padding:0 18px 0 0}.es-details-comment-ai__list li{margin:3px 0}

/* v1.2.25 — compact modern Vazir profile UI */
.es-reel-profile,
.es-reel-profile *{
    font-family:Vazir,IRANSans,system-ui,sans-serif !important;
}
.es-reel-profile__sheet{
    background:rgba(255,255,255,.88) !important;
    border:1px solid rgba(255,255,255,.72) !important;
    box-shadow:0 18px 55px rgba(0,0,0,.18) !important;
    backdrop-filter:blur(22px) saturate(135%) !important;
    -webkit-backdrop-filter:blur(22px) saturate(135%) !important;
}
.es-reel-profile__topbar-username{
    font-family:Vazir,IRANSans,system-ui,sans-serif !important;
    font-size:11px !important;
    font-weight:700 !important;
    opacity:.82 !important;
}
.es-reel-profile__display-name{
    font-family:Vazir,IRANSans,system-ui,sans-serif !important;
    font-size:9px !important;
    font-weight:500 !important;
    opacity:.62 !important;
}
.es-reel-profile__stat strong{
    font-family:Vazir,IRANSans,system-ui,sans-serif !important;
    font-size:13px !important;
    font-weight:750 !important;
}
.es-reel-profile__stat span{
    font-family:Vazir,IRANSans,system-ui,sans-serif !important;
    font-size:8px !important;
    font-weight:400 !important;
    opacity:.62 !important;
}
.es-reel-profile__bio{
    font-family:Vazir,IRANSans,system-ui,sans-serif !important;
    font-size:9px !important;
    line-height:1.8 !important;
    opacity:.66 !important;
}
.es-reel-profile__profile-actions button{
    font-family:Vazir,IRANSans,system-ui,sans-serif !important;
    font-size:8px !important;
    font-weight:600 !important;
    background:rgba(255,255,255,.52) !important;
    border:1px solid rgba(0,0,0,.07) !important;
    box-shadow:0 5px 18px rgba(0,0,0,.06) !important;
    backdrop-filter:blur(12px) !important;
    -webkit-backdrop-filter:blur(12px) !important;
}
.es-reel-profile__suggestions{
    background:rgba(255,255,255,.46) !important;
    border-color:rgba(0,0,0,.055) !important;
    box-shadow:0 7px 24px rgba(0,0,0,.045) !important;
    backdrop-filter:blur(16px) saturate(125%) !important;
    -webkit-backdrop-filter:blur(16px) saturate(125%) !important;
}
.es-reel-profile__suggestions-head,
.es-reel-profile__suggestions-title{
    font-family:Vazir,IRANSans,system-ui,sans-serif !important;
    font-size:8px !important;
    font-weight:600 !important;
    opacity:.58 !important;
}
.es-reel-profile__suggestions-list .es-reel__suggested-user span{
    font-family:Arial,system-ui,sans-serif !important;
    font-size:6px !important;
    opacity:.68 !important;
}
.es-reel-profile__suggestions-all{
    font-family:Vazir,IRANSans,system-ui,sans-serif !important;
    font-size:7px !important;
    font-weight:600 !important;
    background:rgba(255,255,255,.48) !important;
    border-color:rgba(0,0,0,.06) !important;
}

/* Rail previews: quiet, continuous, muted motion like a polished social feed. */
.es-reels-rail__preview-video{opacity:0;transition:opacity .35s ease;}
.es-reels-rail__item.is-previewing .es-reels-rail__preview-video{opacity:1;}
@media(prefers-reduced-motion:reduce){.es-reels-rail__preview-video{transition:none !important;}}

/* 1.2.28 — refined profile glass + media tabs/upload */
.es-reel-profile__sheet{background:rgba(20,20,22,.96)!important;color:#fff!important;border:1px solid rgba(255,255,255,.08)!important;box-shadow:0 24px 80px rgba(0,0,0,.55)!important;font-family:Vazir,system-ui,sans-serif!important;}
.es-reel-profile__topbar{color:#fff!important;border-bottom:1px solid rgba(255,255,255,.06)!important;}
.es-reel-profile__topbar-username,.es-reel-profile__name{font-size:13px!important;font-weight:800!important;color:#fff!important;}
.es-reel-profile__display-name,.es-reel-profile__bio{color:rgba(255,255,255,.62)!important;font-size:11px!important;}
.es-reel-profile__stat strong{font-size:14px!important;color:#fff!important}.es-reel-profile__stat span{color:rgba(255,255,255,.55)!important;font-size:10px!important;}
.es-reel-profile__profile-actions button{border:1px solid rgba(255,255,255,.10)!important;background:rgba(255,255,255,.07)!important;color:#fff!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);}
.es-reel-profile__follow{background:rgba(255,255,255,.12)!important;}
.es-reel-profile__tabs{display:flex!important;gap:6px!important;padding:10px 14px!important;border-top:1px solid rgba(255,255,255,.06)!important;}
.es-reel-profile__tabs button{flex:1;border:0!important;background:transparent!important;color:rgba(255,255,255,.48)!important;font:700 11px Vazir,sans-serif!important;padding:9px 6px!important;border-radius:10px!important;cursor:pointer;}
.es-reel-profile__tabs button.is-active{background:rgba(255,255,255,.09)!important;color:#fff!important;}
.es-reel-profile__upload{display:flex;align-items:center;gap:8px;padding:0 14px 10px;}
.es-reel-profile__upload button{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.08);color:#fff;border-radius:10px;padding:7px 12px;font:700 10px Vazir,sans-serif;cursor:pointer;}
.es-reel-profile__upload button:disabled{opacity:.5}.es-reel-profile__upload span{font-size:9px;color:rgba(255,255,255,.55);}
.es-reel-profile__grid{background:#111!important;gap:2px!important;}
.es-reel-profile__grid-item{background:#18181a!important;border:0!important;padding:0!important;overflow:hidden!important;cursor:pointer!important;}
.es-reel-profile__grid-item img,.es-reel-profile__grid-item video{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;transition:transform .25s ease,opacity .25s ease!important;}
.es-reel-profile__grid-item:hover img,.es-reel-profile__grid-item:hover video{transform:scale(1.025);opacity:.92;}
.es-reel-profile-image-lightbox{position:fixed;inset:0;z-index:2147483000;background:rgba(0,0,0,.92);display:none;align-items:center;justify-content:center;padding:20px;}
.es-reel-profile-image-lightbox.is-open{display:flex;animation:kvProfileLightboxIn .22s ease both;}
.es-reel-profile-image-lightbox img{max-width:94vw;max-height:88vh;object-fit:contain;border-radius:14px;box-shadow:0 20px 80px rgba(0,0,0,.65);}
.es-reel-profile-image-lightbox button{position:absolute;top:18px;right:18px;width:36px;height:36px;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:24px;line-height:1;cursor:pointer;}
@keyframes kvProfileLightboxIn{from{opacity:0}to{opacity:1}}
@media(max-width:480px){.es-reel-profile__sheet{border-radius:22px 22px 0 0!important}.es-reel-profile__topbar{min-height:42px!important}.es-reel-profile__grid-item{min-width:0!important;}}
@media(prefers-reduced-motion:reduce){.es-reel-profile__grid-item img,.es-reel-profile__grid-item video{transition:none!important}.es-reel-profile-image-lightbox.is-open{animation:none!important}}


/* v1.2.29 — profile media UX cleanup */
.es-reel-profile__tabs{position:relative!important;display:flex!important;gap:0!important;padding:0!important;margin:0!important;height:48px!important;border-top:1px solid rgba(0,0,0,.06)!important;border-bottom:1px solid rgba(0,0,0,.06)!important;background:transparent!important;}
.es-reel-profile__tabs button{position:relative!important;flex:1 1 50%!important;height:48px!important;min-width:0!important;border:0!important;border-bottom:0!important;background:transparent!important;color:rgba(0,0,0,.45)!important;border-radius:0!important;font:700 10px Vazir,IRANSans,system-ui,sans-serif!important;padding:0 8px!important;box-shadow:none!important;}
.es-reel-profile__tabs button::after{content:""!important;position:absolute!important;left:18%!important;right:18%!important;bottom:0!important;height:2px!important;border-radius:999px!important;background:transparent!important;transform:scaleX(.35)!important;opacity:0!important;transition:opacity .22s ease,transform .22s ease,background .22s ease!important;}
.es-reel-profile__tabs button.is-active{color:#111!important;background:transparent!important;}
.es-reel-profile__tabs button.is-active::after{background:#111!important;opacity:1!important;transform:scaleX(1)!important;}
.es-reel-profile__upload{display:none!important;}
@media(prefers-reduced-motion:reduce){.es-reel-profile__tabs button::after{transition:none!important;}}


/* v1.2.29 — final profile window visual repair */
.es-reel-profile__sheet{background:rgba(250,250,251,.97)!important;color:#111!important;border:1px solid rgba(255,255,255,.9)!important;box-shadow:0 -18px 60px rgba(0,0,0,.22)!important;backdrop-filter:blur(24px) saturate(125%)!important;-webkit-backdrop-filter:blur(24px) saturate(125%)!important;}
.es-reel-profile__topbar{display:flex!important;justify-content:center!important;align-items:center!important;min-height:48px!important;height:48px!important;padding:0 16px!important;background:rgba(255,255,255,.72)!important;border-bottom:1px solid rgba(0,0,0,.055)!important;}
.es-reel-profile__topbar-username{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;color:#111!important;font:800 12px Vazir,IRANSans,system-ui,sans-serif!important;direction:ltr!important;}
.es-reel-profile__name{display:none!important;}
.es-reel-profile__display-name{color:rgba(17,17,17,.58)!important;font:500 10px Vazir,IRANSans,system-ui,sans-serif!important;margin-bottom:8px!important;}
.es-reel-profile__stats{color:#111!important;}
.es-reel-profile__stat strong{color:#111!important;font:800 14px Vazir,IRANSans,system-ui,sans-serif!important;}
.es-reel-profile__stat span{color:rgba(17,17,17,.52)!important;font:500 9px Vazir,IRANSans,system-ui,sans-serif!important;}
.es-reel-profile__bio{color:rgba(17,17,17,.58)!important;font:500 10px/1.9 Vazir,IRANSans,system-ui,sans-serif!important;}
.es-reel-profile__profile-actions button{color:#111!important;background:rgba(255,255,255,.68)!important;border:1px solid rgba(0,0,0,.075)!important;box-shadow:0 7px 22px rgba(0,0,0,.055)!important;}
.es-reel-profile__follow{background:rgba(17,17,17,.92)!important;color:#fff!important;}
.es-reel-profile__follow.is-following{background:rgba(0,0,0,.07)!important;color:#111!important;}
.es-reel-profile__suggestions{background:rgba(255,255,255,.56)!important;border:1px solid rgba(0,0,0,.055)!important;color:#111!important;box-shadow:0 8px 28px rgba(0,0,0,.045)!important;}
.es-reel-profile__suggestions-head,.es-reel-profile__suggestions-title{color:rgba(17,17,17,.56)!important;}
.es-reel-profile__suggestions-all{color:#111!important;background:rgba(255,255,255,.72)!important;border:1px solid rgba(0,0,0,.07)!important;}
.es-reel-profile__tabs button{color:rgba(17,17,17,.42)!important;}
.es-reel-profile__tabs button.is-active{color:#111!important;}
.es-reel-profile__tabs button.is-active::after{background:#111!important;}
.es-reel-profile__grid{background:#ececef!important;}
.es-reel-profile__grid-item{background:#e4e4e7!important;}
.es-profile-verified--top{width:18px!important;height:18px!important;object-fit:contain!important;display:inline-block!important;vertical-align:middle!important;}


/* v1.2.30 — profile sheet uniform white background */
.es-reel-profile__sheet,
.es-reel-profile__body,
.es-reel-profile__hero,
.es-reel-profile__topbar,
.es-reel-profile__tabs,
.es-reel-profile__suggestions{
    background:#fff !important;
    background-image:none !important;
}
.es-reel-profile__body{color:#111 !important;}
.es-reel-profile__grid{background:#fff !important;}
.es-reel-profile__grid-item{background:#fff !important;}


/* v1.2.31 — profile visual language aligned with the product details window */
.es-reel-profile__sheet{
    background:#fff!important;
    color:#151515!important;
    border:1px solid #f0f0f0!important;
    box-shadow:0 -14px 45px rgba(0,0,0,.18)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
}
.es-reel-profile__topbar,
.es-reel-profile__body,
.es-reel-profile__hero,
.es-reel-profile__tabs,
.es-reel-profile__suggestions{background:#fff!important;background-image:none!important;}
.es-reel-profile__topbar{border-bottom:1px solid #f2f2f2!important;}
.es-reel-profile__display-name,.es-reel-profile__bio{color:#6f6f6f!important;}
.es-reel-profile__stat span,.es-reel-profile__suggestions-head{color:#8a8a8a!important;}
.es-reel-profile__profile-actions button,.es-reel-profile__suggestions-all{background:#fff!important;border:1px solid #e9e9e9!important;box-shadow:0 5px 18px rgba(0,0,0,.05)!important;}
.es-reel-profile__suggestions{border:1px solid #f0f0f0!important;box-shadow:0 6px 22px rgba(0,0,0,.04)!important;}
.es-reel-profile__tabs{border-top:1px solid #f2f2f2!important;border-bottom:1px solid #f2f2f2!important;}
.es-reel-profile__grid{background:#fff!important;}
.es-reel-profile__grid-item{background:#f7f7f7!important;}

/* v1.2.31 — WooCommerce checkout stays inside the product details sheet */
.kv-inline-checkout{position:absolute;inset:0;background:#fff;z-index:60;display:flex;flex-direction:column;transform:translateY(100%);opacity:0;pointer-events:none;transition:transform .28s cubic-bezier(.32,.72,0,1),opacity .2s ease;}
.kv-inline-checkout.is-open{transform:translateY(0);opacity:1;pointer-events:auto;}
.kv-inline-checkout__head{height:48px;min-height:48px;display:grid;grid-template-columns:42px 1fr 42px;align-items:center;padding:0 10px;border-bottom:1px solid #f1f1f1;background:#fff;position:sticky;top:0;z-index:2;text-align:center;color:#151515;font:800 13px Vazir,system-ui,sans-serif;}
.kv-inline-checkout__back{width:32px;height:32px;border:0;border-radius:10px;background:#f6f6f6;color:#222;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.kv-inline-checkout__body{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:14px 16px 32px;background:#fff;color:#222;font-family:Vazir,system-ui,sans-serif;}
.kv-inline-checkout__inner{max-width:640px;margin:0 auto;}
.kv-inline-checkout__product{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 14px;margin-bottom:14px;border:1px solid #ededed;border-radius:14px;background:#fafafa;font-size:12px;}
.kv-inline-checkout__product span{font-weight:800;white-space:nowrap;}
.kv-inline-checkout__loading,.kv-inline-checkout__error{padding:28px 16px;text-align:center;color:#777;font-size:12px;}
.kv-inline-checkout__error{color:#b42318;background:#fff5f5;border:1px solid #f1d0d0;border-radius:14px;}
.kv-inline-checkout .woocommerce form .form-row{padding:0;margin:0 0 12px;}
.kv-inline-checkout .woocommerce form .form-row label{font:700 11px Vazir,system-ui,sans-serif;margin-bottom:6px;display:block;color:#444;}
.kv-inline-checkout .woocommerce form .form-row input.input-text,.kv-inline-checkout .woocommerce form .form-row select,.kv-inline-checkout .woocommerce form .form-row textarea{width:100%;box-sizing:border-box;border:1px solid #e4e4e4;border-radius:12px;background:#fff;min-height:42px;padding:9px 11px;font:500 12px Vazir,system-ui,sans-serif;outline:none;}
.kv-inline-checkout .woocommerce form .form-row input:focus,.kv-inline-checkout .woocommerce form .form-row select:focus,.kv-inline-checkout .woocommerce form .form-row textarea:focus{border-color:#bcbcbc;box-shadow:0 0 0 3px rgba(0,0,0,.035);}
.kv-inline-checkout #payment,.kv-inline-checkout .woocommerce-checkout-review-order{border:1px solid #ededed;border-radius:14px;background:#fff;padding:12px;margin-top:14px;}
.kv-inline-checkout #payment .payment_methods{padding:0;margin:0;}
.kv-inline-checkout #place_order{width:100%;border:0;border-radius:13px;background:#111;color:#fff;padding:12px 16px;font:800 12px Vazir,system-ui,sans-serif;cursor:pointer;}
.kv-inline-checkout .woocommerce-checkout-review-order-table{font-size:11px;}
@media(max-width:480px){.kv-inline-checkout__body{padding:12px 12px 28px}.kv-inline-checkout__head{height:46px;min-height:46px;}}

/* 1.2.55 — follow button interaction guard */
.es-reels .es-reel__stage .es-reel__follow{pointer-events:auto!important;position:relative!important;z-index:20!important;cursor:pointer!important;touch-action:manipulation!important;}
.es-reels .es-reel__stage .es-reel__follow:disabled{pointer-events:auto!important;opacity:.7!important;}


/* v1.2.56 — Reel purchase CTA belongs below the action rail, never inside the creator/caption block. */
.es-reel .es-reel__buy-below-actions{
    position:absolute !important;
    right:12px !important;
    left:auto !important;
    bottom:calc(env(safe-area-inset-bottom) + 22px) !important;
    z-index:22 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:74px !important;
    min-height:34px !important;
    padding:7px 13px !important;
    box-sizing:border-box !important;
    border:1px solid rgba(255,255,255,.42) !important;
    border-radius:12px !important;
    background:rgba(35,35,38,.56) !important;
    color:#fff !important;
    text-decoration:none !important;
    font-size:11px !important;
    font-weight:700 !important;
    line-height:1 !important;
    white-space:nowrap !important;
    -webkit-backdrop-filter:blur(10px) saturate(120%) !important;
    backdrop-filter:blur(10px) saturate(120%) !important;
    box-shadow:0 5px 16px rgba(0,0,0,.18) !important;
    transition:transform .18s ease, background .18s ease, opacity .18s ease !important;
}
.es-reel .es-reel__buy-below-actions:hover{transform:translateY(-1px) !important;background:rgba(55,55,58,.68) !important;}
.es-reel .es-reel__buy-below-actions:active{transform:scale(.96) !important;}

/* Product image notification: top-left, opposite the Reel back arrow. */
.es-reel .es-reel-product-thumb{
    left:12px !important;
    right:auto !important;
    top:16px !important;
    bottom:auto !important;
    z-index:25 !important;
    width:60px !important;
    height:82px !important;
    border-radius:14px !important;
}
@media(max-width:600px){
    .es-reel .es-reel__buy-below-actions{
        right:9px !important;
        bottom:calc(env(safe-area-inset-bottom) + 18px) !important;
        min-width:70px !important;
        min-height:32px !important;
        padding:6px 11px !important;
        border-radius:11px !important;
        font-size:10.5px !important;
    }
    .es-reel .es-reel-product-thumb{
        left:10px !important;
        top:12px !important;
        width:54px !important;
        height:74px !important;
        border-radius:13px !important;
    }
}
\n/* Reel title: longer captions + native color emoji support. */\n.es-reels .es-reel__stage .es-reel__title,\n.es-reels .es-reel__stage .es-reel__post-copy .es-reel__title {\n    font-family: Vazir, IRANSans, Tahoma, system-ui, -apple-system, "Segoe UI", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;\n    font-size: 16px !important;\n    line-height: 1.55 !important;\n    font-weight: 800 !important;\n    display: -webkit-box !important;\n    -webkit-box-orient: vertical !important;\n    -webkit-line-clamp: 3 !important;\n    overflow: hidden !important;\n    white-space: normal !important;\n    overflow-wrap: anywhere !important;\n    word-break: normal !important;\n    unicode-bidi: plaintext;\n    text-rendering: optimizeLegibility;\n}\n.es-reels .es-reel__stage .es-reel__desc {\n    font-family: Vazir, IRANSans, Tahoma, system-ui, -apple-system, "Segoe UI", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;\n    -webkit-line-clamp: 2 !important;\n    white-space: normal !important;\n    overflow-wrap: anywhere !important;\n}\n

/* v1.2.58 — compact WooCommerce checkout inside the product sheet.
 * Keep the native WooCommerce fields/validation, but make the form visually
 * proportional to the small iPhone-style details window. */
.kv-inline-checkout__body{padding:10px 12px 22px!important;font-size:11px!important;}
.kv-inline-checkout__inner{max-width:520px!important;width:100%;}
.kv-inline-checkout__product{gap:8px!important;padding:8px 10px!important;margin-bottom:9px!important;border-radius:11px!important;font-size:10.5px!important;min-height:34px!important;}
.kv-inline-checkout__loading,.kv-inline-checkout__error{padding:18px 10px!important;font-size:10.5px!important;border-radius:11px!important;}
.kv-inline-checkout .woocommerce form .form-row{padding:0!important;margin:0 0 7px!important;}
.kv-inline-checkout .woocommerce form .form-row label{font:700 9.5px/1.5 Vazir,system-ui,sans-serif!important;margin:0 0 3px!important;color:#555!important;}
.kv-inline-checkout .woocommerce form .form-row input.input-text,
.kv-inline-checkout .woocommerce form .form-row select,
.kv-inline-checkout .woocommerce form .form-row textarea{min-height:34px!important;height:34px!important;padding:6px 8px!important;border-radius:9px!important;font:500 10.5px/1.4 Vazir,system-ui,sans-serif!important;}
.kv-inline-checkout .woocommerce form .form-row textarea{height:54px!important;min-height:54px!important;resize:none!important;}
.kv-inline-checkout #payment,
.kv-inline-checkout .woocommerce-checkout-review-order{padding:8px!important;margin-top:9px!important;border-radius:10px!important;font-size:10px!important;}
.kv-inline-checkout #payment ul.payment_methods{padding:0!important;margin:0!important;}
.kv-inline-checkout #payment .payment_box{padding:7px!important;margin:6px 0!important;font-size:9.5px!important;line-height:1.6!important;}
.kv-inline-checkout .woocommerce-checkout-review-order-table{font-size:9.5px!important;margin:0!important;}
.kv-inline-checkout .woocommerce-checkout-review-order-table th,
.kv-inline-checkout .woocommerce-checkout-review-order-table td{padding:5px 3px!important;}
.kv-inline-checkout .woocommerce #order_review_heading{font-size:11px!important;margin:8px 0 5px!important;}
.kv-inline-checkout .woocommerce-checkout-review-order .woocommerce-Price-amount{font-size:10px!important;}
.kv-inline-checkout #place_order{border-radius:10px!important;padding:9px 12px!important;font:800 10.5px Vazir,system-ui,sans-serif!important;min-height:36px!important;}
@media (min-width:520px){
  .kv-inline-checkout .woocommerce form .form-row.form-row-first,
  .kv-inline-checkout .woocommerce form .form-row.form-row-last{width:48.5%!important;}
  .kv-inline-checkout .woocommerce form .form-row.form-row-first{float:right!important;margin-left:1.5%!important;}
  .kv-inline-checkout .woocommerce form .form-row.form-row-last{float:left!important;margin-left:0!important;}
}
@media (max-width:480px){
  .kv-inline-checkout__body{padding:9px 10px 20px!important;}
  .kv-inline-checkout__head{height:44px!important;min-height:44px!important;}
  .kv-inline-checkout .woocommerce form .form-row{margin-bottom:6px!important;}
  .kv-inline-checkout .woocommerce form .form-row input.input-text,
  .kv-inline-checkout .woocommerce form .form-row select{height:32px!important;min-height:32px!important;font-size:10px!important;}
}

/* v1.2.58 — profile product thumbnails are native WooCommerce/Dokan items. */
.es-reel-profile__grid-item img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;}
\n\n/* v1.2.60 — final compact typography for inline WooCommerce checkout */
.kv-inline-checkout .woocommerce,
.kv-inline-checkout .woocommerce *{font-family:Vazir,system-ui,sans-serif!important;}
.kv-inline-checkout .woocommerce h1,
.kv-inline-checkout .woocommerce h2,
.kv-inline-checkout .woocommerce h3,
.kv-inline-checkout .woocommerce h4,
.kv-inline-checkout .woocommerce h5,
.kv-inline-checkout .woocommerce h6,
.kv-inline-checkout .woocommerce #order_review_heading{font-size:11px!important;line-height:1.45!important;margin:6px 0 4px!important;}
.kv-inline-checkout .woocommerce label,
.kv-inline-checkout .woocommerce .form-row label{font-size:9px!important;line-height:1.45!important;margin-bottom:2px!important;}
.kv-inline-checkout .woocommerce input.input-text,
.kv-inline-checkout .woocommerce select,
.kv-inline-checkout .woocommerce textarea,
.kv-inline-checkout .woocommerce .select2-container .select2-selection--single{font-size:9.5px!important;line-height:1.35!important;min-height:30px!important;height:30px!important;padding:5px 7px!important;border-radius:8px!important;}
.kv-inline-checkout .woocommerce textarea{height:46px!important;min-height:46px!important;}
.kv-inline-checkout .woocommerce .form-row{margin-bottom:5px!important;padding:0!important;}
.kv-inline-checkout .woocommerce .woocommerce-checkout-review-order,
.kv-inline-checkout .woocommerce #payment{font-size:9px!important;padding:7px!important;margin-top:7px!important;border-radius:9px!important;}
.kv-inline-checkout .woocommerce .shop_table{font-size:8.5px!important;}
.kv-inline-checkout .woocommerce .shop_table th,
.kv-inline-checkout .woocommerce .shop_table td{font-size:8.5px!important;padding:4px 3px!important;}
.kv-inline-checkout .woocommerce .payment_methods label,
.kv-inline-checkout .woocommerce .payment_box{font-size:8.5px!important;line-height:1.5!important;}
.kv-inline-checkout .woocommerce #place_order{font-size:10px!important;line-height:1.3!important;min-height:34px!important;padding:8px 10px!important;border-radius:9px!important;}
.kv-inline-checkout .woocommerce .woocommerce-Price-amount,
.kv-inline-checkout .woocommerce .amount{font-size:9px!important;}


/* v1.2.61 — compact WooCommerce coupon controls inside product details */
.kv-inline-checkout .woocommerce form.checkout_coupon,
.kv-inline-checkout .woocommerce .checkout_coupon{
    padding:10px !important;
    margin:8px 0 12px !important;
    border:1px solid #ededed !important;
    border-radius:10px !important;
    background:#fafafa !important;
}
.kv-inline-checkout .woocommerce .checkout_coupon p{
    margin:0 0 7px !important;
    font:500 10px Vazir,system-ui,sans-serif !important;
}
.kv-inline-checkout .woocommerce .checkout_coupon .form-row{
    margin:0 0 6px !important;
    padding:0 !important;
}
.kv-inline-checkout .woocommerce .checkout_coupon input.input-text{
    min-height:34px !important;
    height:34px !important;
    padding:6px 9px !important;
    border-radius:9px !important;
    font:500 10px Vazir,system-ui,sans-serif !important;
}
.kv-inline-checkout .woocommerce .checkout_coupon button{
    min-height:34px !important;
    padding:7px 11px !important;
    border-radius:9px !important;
    font:800 10px Vazir,system-ui,sans-serif !important;
}

/* v1.2.65 — Elementor rail: visible All action with outward arrow */
.es-kavosh-reels-shortcode .es-reels-rail__head .es-reels-rail__all{
    display:inline-flex !important; align-items:center !important; justify-content:center !important;
    gap:5px !important; direction:rtl !important; white-space:nowrap !important;
    text-decoration:none !important; font-size:12px !important; font-weight:800 !important;
    padding:5px 8px !important; border-radius:10px !important;
}
.es-kavosh-reels-shortcode .es-reels-rail__all svg{display:block !important; flex:0 0 auto !important;}
.es-kavosh-reels-shortcode .es-reels-rail__all:hover{transform:translateX(-2px);}

/* v1.2.65 — compact WooCommerce coupon prompt */
.es-details-sheet .kv-inline-checkout .woocommerce .checkout_coupon,
.es-details-sheet .kv-inline-checkout .woocommerce form.checkout_coupon{padding:7px !important;margin:5px 0 8px !important;border-radius:8px !important;}
.es-details-sheet .kv-inline-checkout .woocommerce .checkout_coupon p{font-size:8px !important;line-height:1.35 !important;margin:0 0 4px !important;}
.es-details-sheet .kv-inline-checkout .woocommerce .checkout_coupon .form-row{margin:0 0 4px !important;}
.es-details-sheet .kv-inline-checkout .woocommerce .checkout_coupon input.input-text{height:29px !important;min-height:29px !important;padding:4px 7px !important;font-size:8px !important;border-radius:7px !important;}
.es-details-sheet .kv-inline-checkout .woocommerce .checkout_coupon button{height:29px !important;min-height:29px !important;padding:4px 8px !important;font-size:8px !important;border-radius:7px !important;}

/* v1.2.65 — small glass Follow button */
.es-reel__follow, .es-reel-profile__follow{backdrop-filter:blur(10px) !important;-webkit-backdrop-filter:blur(10px) !important;}
.es-reel__follow.is-following, .es-reel-profile__follow.is-following{background:rgba(255,255,255,.16) !important;}


/* v1.2.66 — Elementor Reels rail: compact Explore-matched "همه" button. */
.es-kavosh-reels-shortcode .es-reels-rail__all,
.es-kavosh-reels-shortcode .es-reels-rail__all:hover,
.es-kavosh-reels-shortcode .es-reels-rail__all:focus,
.es-kavosh-reels-shortcode .es-reels-rail__all:active,
.es-kavosh-reels-shortcode .es-reels-rail__all:visited {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    min-width:0 !important;
    height:28px !important;
    padding:0 9px !important;
    margin:0 !important;
    border:1px solid rgba(23,23,23,.10) !important;
    border-radius:9px !important;
    background:rgba(255,255,255,.78) !important;
    color:var(--es-fg,#171717) !important;
    font-size:11px !important;
    line-height:1 !important;
    font-weight:700 !important;
    box-shadow:0 2px 8px rgba(23,23,23,.06) !important;
    text-decoration:none !important;
    outline:none !important;
    -webkit-tap-highlight-color:transparent !important;
    transform:none !important;
}
.es-kavosh-reels-shortcode .es-reels-rail__all span {
    display:block !important;
    margin:0 !important;
    padding:0 !important;
    font-size:11px !important;
    line-height:1 !important;
    transform:none !important;
}
.es-kavosh-reels-shortcode .es-reels-rail__all svg { display:none !important; }
.es-kavosh-reels-shortcode .es-reels-rail__all:hover {
    border-color:rgba(23,23,23,.16) !important;
    background:#fff !important;
}
@media(max-width:700px){
    .es-kavosh-reels-shortcode .es-reels-rail__all { height:26px !important; padding:0 8px !important; font-size:10px !important; border-radius:8px !important; }
    .es-kavosh-reels-shortcode .es-reels-rail__all span { font-size:10px !important; }
}

/* v1.2.67 — final rail performance + compact Explore icon + no blue tap effect */
.es-kavosh-reels-shortcode .es-reels-rail__head .es-reels-rail__all{
    width:28px !important;height:28px !important;min-width:28px !important;
    padding:0 !important;border-radius:9px !important;display:inline-flex !important;
    align-items:center !important;justify-content:center !important;
    background:rgba(255,255,255,.72) !important;color:var(--es-fg,#171717) !important;
    border:1px solid rgba(23,23,23,.10) !important;box-shadow:0 2px 8px rgba(23,23,23,.06) !important;
    -webkit-tap-highlight-color:transparent !important;outline:none !important;
}
.es-kavosh-reels-shortcode .es-reels-rail__head .es-reels-rail__all span{display:none !important;}
.es-kavosh-reels-shortcode .es-reels-rail__head .es-reels-rail__all svg{display:block !important;width:15px !important;height:15px !important;}
.es-kavosh-reels-shortcode .es-reels-rail__head .es-reels-rail__all:hover{transform:none !important;background:rgba(255,255,255,.9) !important;}
.es-reels-rail__preview-video{opacity:0 !important;transition:opacity .18s ease !important;}
.es-reels-rail__item.is-previewing .es-reels-rail__preview-video{opacity:1 !important;}
.es-reels-rail__item,.es-reel__follow,.es-reel-profile__follow,.kv-social-profile-card__follow{
    -webkit-tap-highlight-color:transparent !important;
}
.es-reel__follow:focus,.es-reel__follow:active,.es-reel-profile__follow:focus,.es-reel-profile__follow:active,.kv-social-profile-card__follow:focus,.kv-social-profile-card__follow:active{
    outline:none !important;
}
@media(max-width:700px){.es-kavosh-reels-shortcode .es-reels-rail__head .es-reels-rail__all{width:26px !important;height:26px !important;min-width:26px !important;}}

/* v1.2.69 — compact Elementor/shortcode Explore action */
.es-kavosh-reels-shortcode .es-reels-rail__all,
.es-kavosh-reels-shortcode .es-reels-rail__all:hover,
.es-kavosh-reels-shortcode .es-reels-rail__all:focus,
.es-kavosh-reels-shortcode .es-reels-rail__all:active {
  width:auto !important; min-width:0 !important; height:26px !important;
  padding:0 6px !important; gap:3px !important; border:0 !important;
  border-radius:8px !important; background:transparent !important;
  color:var(--es-primary,#ff2d77) !important; box-shadow:none !important;
  font-size:10px !important; font-weight:800 !important;
  -webkit-tap-highlight-color:transparent !important; outline:0 !important;
}
.es-kavosh-reels-shortcode .es-reels-rail__all span { display:inline !important; font-size:10px !important; line-height:1 !important; }
.es-kavosh-reels-shortcode .es-reels-rail__all svg { display:block !important; width:13px !important; height:13px !important; flex:0 0 13px !important; }
.es-kavosh-reels-shortcode .es-reels-rail__all:active { transform:none !important; opacity:.78 !important; }
.es-reel-profile__follow, .kv-social-profile-card__follow {
  -webkit-tap-highlight-color:transparent !important; outline:none !important;
  box-shadow:none !important;
}
.es-reel-profile__follow:focus, .es-reel-profile__follow:focus-visible,
.es-reel-profile__follow:active, .kv-social-profile-card__follow:focus,
.kv-social-profile-card__follow:focus-visible, .kv-social-profile-card__follow:active {
  outline:none !important; box-shadow:none !important; background:inherit !important;
}

/* v1.2.70 — compact Explore outward-arrow action and touch-safe follow */
.es-kavosh-reels-shortcode .es-reels-rail__head .es-reels-rail__all {
  width:28px !important; height:28px !important; min-width:28px !important;
  padding:0 !important; margin:0 !important; display:inline-flex !important;
  align-items:center !important; justify-content:center !important;
  border:0 !important; border-radius:8px !important;
  background:transparent !important; color:inherit !important;
  box-shadow:none !important; -webkit-tap-highlight-color:transparent !important;
  touch-action:manipulation !important;
}
.es-kavosh-reels-shortcode .es-reels-rail__head .es-reels-rail__all span { display:inline !important; font-size:10px !important; line-height:1 !important; margin-inline-end:2px !important; }
.es-kavosh-reels-shortcode .es-reels-rail__head .es-reels-rail__all .es-reels-rail__all-icon {
  display:block !important; width:13px !important; height:13px !important;
  transform:translateX(1px) !important;
}
.es-kavosh-reels-shortcode .es-reels-rail__head .es-reels-rail__all:hover,
.es-kavosh-reels-shortcode .es-reels-rail__head .es-reels-rail__all:focus,
.es-kavosh-reels-shortcode .es-reels-rail__head .es-reels-rail__all:active {
  background:transparent !important; box-shadow:none !important; outline:none !important;
  color:inherit !important; transform:none !important; opacity:.72 !important;
}
.es-reel-profile__follow, .kv-social-profile-card__follow,
.es-reel-profile__follow:hover, .kv-social-profile-card__follow:hover,
.es-reel-profile__follow:focus, .kv-social-profile-card__follow:focus,
.es-reel-profile__follow:focus-visible, .kv-social-profile-card__follow:focus-visible,
.es-reel-profile__follow:active, .kv-social-profile-card__follow:active {
  -webkit-tap-highlight-color:transparent !important; outline:none !important;
  box-shadow:none !important; filter:none !important; text-shadow:none !important;
}
.es-reel-profile__follow::-moz-focus-inner, .kv-social-profile-card__follow::-moz-focus-inner { border:0 !important; }
@media(max-width:700px){
  .es-kavosh-reels-shortcode .es-reels-rail__head .es-reels-rail__all { width:28px !important; height:28px !important; min-width:28px !important; }
}


/* v1.2.72 — RTL outward arrow for both shortcode and Elementor Reels boxes */
.es-kavosh-reels-shortcode .es-reels-rail__all .es-reels-rail__all-icon,
.es-kavosh-reels-shortcode[data-reels-preview="1"] .es-reels-rail__all .es-reels-rail__all-icon {
  transform:none !important;
  direction:ltr !important;
}

/* v1.2.71 — profile symbolic follow fix + storefront icon */
.es-reel-profile__follow,
.es-reel-profile__follow:hover,
.es-reel-profile__follow:focus,
.es-reel-profile__follow:focus-visible,
.es-reel-profile__follow:active {
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  filter: none !important;
}
.es-reel-profile__message-btn svg {
  width:18px !important; height:18px !important;
  stroke-width:1.7 !important;
}
.es-reel-profile__message-btn {
  -webkit-tap-highlight-color:transparent !important;
  touch-action:manipulation !important;
}

/* Profile image fullscreen viewer: image + native-looking purchase CTA */
.es-reel-profile-image-lightbox__content{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:min(94vw,760px);max-height:94vh;}
.es-reel-profile-image-lightbox__content img{max-width:94vw;max-height:78vh;object-fit:contain;border-radius:14px;box-shadow:0 20px 80px rgba(0,0,0,.65);}
.es-reel-profile-image-lightbox__title{max-width:90%;color:#fff;font-size:13px;text-align:center;line-height:1.6;}
.es-reel-profile-image-lightbox__buy{display:inline-flex;align-items:center;justify-content:center;min-width:130px;height:38px;padding:0 18px;border-radius:12px;text-decoration:none;background:#fff;color:#111;font-size:13px;font-weight:700;box-shadow:0 8px 28px rgba(0,0,0,.28);}
.es-reel-profile-image-lightbox__buy:focus,.es-reel-profile-image-lightbox__buy:active{outline:none;box-shadow:0 8px 28px rgba(0,0,0,.28);}

/* Reel caption: allow the selected Reel's description to occupy two clean paragraphs. */
.es-reel__desc--two{display:block;max-width:100%;}
.es-reel__desc--two p{margin:0 0 3px;padding:0;}
.es-reel__desc--two p:last-child{margin-bottom:0;}


/* v1.2.79 — Plain Reel text, no background or glass panel. */
.es-reels .es-reel__stage .es-reel__caption{
    position:absolute !important;
    right:68px !important;
    left:12px !important;
    bottom:78px !important;
    width:auto !important;
    max-width:calc(100% - 82px) !important;
    z-index:21 !important;
    margin:0 !important;
    padding:0 !important;
    background:transparent !important;
    color:#fff !important;
    font-family:Vazir,IRANSans,Tahoma,system-ui,-apple-system,"Segoe UI","Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif !important;
    font-size:12px !important;
    line-height:1.65 !important;
    text-align:right !important;
    direction:rtl !important;
    unicode-bidi:plaintext !important;
    pointer-events:none !important;
    box-sizing:border-box !important;
    text-shadow:0 1px 3px rgba(0,0,0,.55) !important;
}
.es-reels .es-reel__stage .es-reel__caption p{
    margin:0 !important;
    padding:0 !important;
    display:block !important;
    overflow:hidden !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
}
.es-reels .es-reel__stage .es-reel__caption p + p{margin-top:2px !important;}
@media(max-width:600px){
    .es-reels .es-reel__stage .es-reel__caption{
        right:58px !important;
        left:10px !important;
        bottom:72px !important;
        max-width:calc(100% - 68px) !important;
        font-size:11px !important;
        line-height:1.6 !important;
        text-shadow:0 1px 3px rgba(0,0,0,.55) !important;
    }
}


/* v1.2.82 — Final Reel caption placement: below the action rail, never under the profile. */
.es-reels .es-reel__stage .es-reel__caption{
    position:absolute !important;
    left:8px !important;
    right:auto !important;
    bottom:24px !important;
    top:auto !important;
    width:min(220px,42vw) !important;
    max-width:min(220px,42vw) !important;
    margin:0 !important;
    padding:0 !important;
    background:transparent !important;
    background-color:transparent !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    filter:none !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
    color:#fff !important;
    font-size:11px !important;
    line-height:1.55 !important;
    text-align:left !important;
    direction:auto !important;
    unicode-bidi:plaintext !important;
    pointer-events:none !important;
    z-index:18 !important;
    box-sizing:border-box !important;
    text-shadow:0 1px 3px rgba(0,0,0,.55) !important;
}
.es-reels .es-reel__stage .es-reel__caption p{
    margin:0 !important;
    padding:0 !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
}
.es-reels .es-reel__stage .es-reel__caption p + p{margin-top:2px !important;}
@media(max-width:600px){
    .es-reels .es-reel__stage .es-reel__caption{
        left:7px !important;
        right:auto !important;
        bottom:22px !important;
        width:min(190px,48vw) !important;
        max-width:min(190px,48vw) !important;
        font-size:10px !important;
        line-height:1.5 !important;
    }
}


/* v1.2.83 — Reel caption: directly BELOW the complete action rail, never in the profile area. */
.es-reels .es-reel__stage .es-reel__caption{
    position:absolute !important;
    top:auto !important;
    left:auto !important;
    right:10px !important;
    bottom:34px !important;
    width:min(190px,46vw) !important;
    max-width:min(190px,46vw) !important;
    margin:0 !important;
    padding:0 !important;
    background:none !important;
    background-color:transparent !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    filter:none !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
    color:#fff !important;
    font-size:11px !important;
    line-height:1.55 !important;
    text-align:right !important;
    pointer-events:none !important;
    z-index:19 !important;
    box-sizing:border-box !important;
    text-shadow:0 1px 3px rgba(0,0,0,.55) !important;
}
.es-reels .es-reel__stage .es-reel__caption p{
    margin:0 !important;
    padding:0 !important;
    background:none !important;
    border:0 !important;
    box-shadow:none !important;
}
.es-reels .es-reel__stage .es-reel__caption p + p{margin-top:2px !important;}
@media(max-width:600px){
    .es-reels .es-reel__stage .es-reel__caption{
        left:auto !important;
        right:8px !important;
        bottom:32px !important;
        width:min(170px,48vw) !important;
        max-width:min(170px,48vw) !important;
        font-size:10px !important;
        line-height:1.5 !important;
        text-align:right !important;
    }
}

/* v1.2.86 — compact WooCommerce coupon prompt/link inside product details. */
.es-details-sheet .kv-inline-checkout .woocommerce .woocommerce-info,
.es-details-sheet .kv-inline-checkout .woocommerce .woocommerce-info a.showcoupon,
.es-details-sheet .kv-inline-checkout .woocommerce .showcoupon{
    font-size:9px !important;
    line-height:1.35 !important;
}
.es-details-sheet .kv-inline-checkout .woocommerce .woocommerce-info{
    padding:6px 8px !important;
    margin:5px 0 7px !important;
    min-height:0 !important;
}
.es-details-sheet .kv-inline-checkout .woocommerce .woocommerce-info a.showcoupon{
    display:inline !important;
    padding:0 !important;
    margin:0 !important;
    font-weight:600 !important;
}
.es-details-sheet .kv-inline-checkout .woocommerce form.checkout_coupon{
    padding:6px !important;
    margin:4px 0 7px !important;
}
.es-details-sheet .kv-inline-checkout .woocommerce form.checkout_coupon p{
    font-size:8.5px !important;
    line-height:1.3 !important;
    margin:0 0 3px !important;
}

/* v1.2.86 — verified badge in suggestions only for explicitly verified users. */
.es-reel-profile__suggested-verified{
    width:14px !important; height:14px !important; min-width:14px !important;
    object-fit:contain !important; display:inline-block !important;
    background:transparent !important; border:0 !important; box-shadow:none !important;
}


/* v1.2.86 — Consistent profile avatar fallback for users without a custom image. */
.es-profile-avatar-placeholder,
.es-reel-profile__avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 50%;
    color: #64748b;
    background: #f1f5f9;
    overflow: hidden;
}
.es-profile-avatar-placeholder-icon { width: 100%; height: 100%; display: block; }
.es-reel-profile__suggested-user .es-profile-avatar-placeholder { width: 42px; height: 42px; flex-basis: 42px; }
.es-reel-profile__avatar-placeholder { width: 88px; height: 88px; flex-basis: 88px; }
.kv-profile-avatar-remove.is-removed { opacity: .85; }
/* Profile-image fullscreen delete action */
.es-reel-profile-image-lightbox__delete{position:absolute;top:18px;left:18px;z-index:5;border:0;border-radius:10px;padding:8px 12px;background:rgba(220,38,38,.92);color:#fff;font:inherit;cursor:pointer}.es-reel-profile-image-lightbox__delete[hidden]{display:none!important}
.es-reel-profile-image-lightbox__delete{position:absolute;top:18px;left:18px;z-index:5;border:0;border-radius:10px;padding:8px 12px;background:rgba(220,38,38,.92);color:#fff;font:inherit;cursor:pointer}.es-reel-profile-image-lightbox__delete[hidden]{display:none!important}


/* v1.2.89 — store name + verified badge stay together on the same account line. */
.es-reel__suggested-user,
.es-reel-profile__suggestions-list .es-reel__suggested-user{
    direction:rtl !important;
}
.es-reel-profile__suggested-name{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:3px !important;
    width:50px !important;
    max-width:50px !important;
    font-family:Vazir,IRANSans,Tahoma,Arial,sans-serif !important;
    direction:rtl !important;
    text-align:center !important;
    unicode-bidi:plaintext !important;
    line-height:1.35 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    font-size:7px !important;
    color:#222 !important;
}
.es-reel-profile__suggested-name .es-profile-verified{
    position:static !important;
    display:inline-block !important;
    flex:0 0 9px !important;
    width:9px !important;
    height:9px !important;
    min-width:9px !important;
    min-height:9px !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    background:transparent !important;
    object-fit:contain !important;
    vertical-align:middle !important;
}

/* v1.2.90 — profile identity below stats: store name first, biography second. */
.es-reel-profile__identity-bottom{direction:rtl;text-align:right;padding:4px 18px 8px!important;margin:0!important;}
.es-reel-profile__identity-bottom .es-reel-profile__display-name{display:block!important;color:#111!important;font-size:14px!important;font-weight:700!important;line-height:1.6!important;margin:0 0 2px!important;}
.es-reel-profile__identity-bottom .es-reel-profile__bio{display:block!important;color:#777!important;font-size:11px!important;font-weight:400!important;line-height:1.8!important;margin:0!important;padding:0!important;}
.es-reel-profile__name{display:none!important;}

/* v1.2.90 — compact verified badge beside store name in suggestions. */
.es-reel-profile__suggested-name{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:3px!important;direction:rtl!important;}
.es-reel-profile__suggested-name .es-profile-verified{width:11px!important;height:11px!important;min-width:11px!important;object-fit:contain!important;vertical-align:middle!important;margin:0!important;}


/* v1.2.91 — clean profile identity: no username in top bar; Persian display name + small verified badge below avatar/stats. */
.es-reel-profile__topbar-username{display:none!important;}
.es-reel-profile__identity-bottom{direction:rtl!important;text-align:right!important;padding:5px 18px 9px!important;margin:0!important;}
.es-reel-profile__identity-bottom .es-reel-profile__display-name{display:flex!important;align-items:center!important;justify-content:flex-start!important;direction:rtl!important;gap:4px!important;color:#111!important;font-size:14px!important;font-weight:800!important;line-height:1.7!important;margin:0 0 2px!important;}
.es-reel-profile__identity-bottom .es-reel-profile__display-name .es-reel-profile__identity-verified{width:12px!important;height:12px!important;min-width:12px!important;flex:0 0 12px!important;object-fit:contain!important;display:inline-block!important;vertical-align:middle!important;margin:0!important;}
.es-reel-profile__identity-bottom .es-reel-profile__bio{display:block!important;color:#777!important;font-size:11px!important;font-weight:400!important;line-height:1.85!important;margin:0!important;padding:0!important;direction:rtl!important;text-align:right!important;}

/* v1.2.92 — Hard limit Reel caption to exactly two visual lines. */
.es-reels .es-reel__stage .es-reel__caption{
    display:-webkit-box !important;
    -webkit-box-orient:vertical !important;
    -webkit-line-clamp:2 !important;
    overflow:hidden !important;
    white-space:pre-line !important;
    max-height:3.1em !important;
    line-height:1.55 !important;
    text-overflow:ellipsis !important;
}


/* Kavosh View — iPhone-style touch scrolling */
.kv-modal,.kavosh-modal,.kv-product-details,.kv-profile-modal,
.kv-profile-window,.kavosh-profile-window,.kv-reels-modal{
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    touch-action:pan-y;
}
.kv-modal__body,.kavosh-modal__body,.kv-product-details__body,
.kv-profile-modal__body,.kv-profile-window__body{
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-y:contain;
    touch-action:pan-y;
}


/* Kavosh View 1.3.01 — profile/gallery touch behavior */
.kv-profile-gallery-modal,
.kv-profile-image-viewer,
.kv-gallery-modal,
.kavosh-gallery-modal {
    touch-action: pan-y;
    overscroll-behavior: contain;
}
.kv-profile-gallery-modal .kv-gallery-track,
.kv-profile-image-viewer .kv-gallery-track,
.kv-gallery-modal .kv-gallery-track,
.kavosh-gallery-modal .kv-gallery-track {
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
}


/* KV 1.3.02 — touch scrolling for existing profile/product gallery containers */
[class*="gallery"],[class*="image-viewer"],[class*="profile"]{
    -webkit-overflow-scrolling:touch;
}

/* KV FINAL PROFILE UX FIX */
.es-reel-profile.is-open{
    overflow:hidden;
}
.es-reel-profile__body{
    height:100%;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    touch-action:pan-y;
}
.es-reel-profile-image-lightbox__close{
    display:flex !important;
    position:fixed;
    top:18px;
    right:18px;
    z-index:99999;
    width:40px !important;
    height:40px !important;
    padding:0 !important;
    align-items:center;
    justify-content:center;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    color:#fff !important;
    font-size:32px !important;
    line-height:1 !important;
    text-shadow:0 1px 5px rgba(0,0,0,.55);
}
.es-reel-profile-image-lightbox__close:hover,
.es-reel-profile-image-lightbox__close:focus,
.es-reel-profile-image-lightbox__close:active{
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    color:#fff !important;
    outline:none !important;
}
.es-reel-profile-image-lightbox{
    touch-action:none;
}

/* iPhone style profile/details scrolling fix */
.es-drawer__panel,
.es-profile-panel,
.es-profile-modal,
.es-details-sheet {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    overflow-y: auto;
    max-height: 100dvh;
}

.es-profile-image-lightbox,
.es-reel-profile-image-lightbox {
    touch-action: pan-y;
}

.es-gallery-track,
.es-profile-gallery-track {
    will-change: transform;
    backface-visibility: hidden;
}

/* iOS style profile sheet */
.es-reel-profile__sheet{
    min-height:100%;
    display:flex;
    flex-direction:column;
    touch-action:pan-y;
    -webkit-overflow-scrolling:touch;
}
.es-reel-profile__handle{
    width:44px;height:5px;border-radius:10px;background:#bbb;
    margin:10px auto 0;
    flex:none;
}
.es-reel-profile__body{
    flex:1 1 auto;
    overflow-y:auto !important;
    touch-action:pan-y !important;
    -webkit-overflow-scrolling:touch !important;
}


/* KV 1.3.02 — profile window size + precise handle drag */
.es-reel-profile__sheet{
  width:100% !important;
  height:72dvh !important;
  max-height:72dvh !important;
  min-height:0 !important;
  overflow:hidden !important;
  transform:translate3d(-50%,0,0);
  will-change:transform;
}
.es-reel-profile__handle{
  touch-action:none !important;
  -webkit-user-select:none !important;
  user-select:none !important;
  -webkit-touch-callout:none !important;
  -webkit-tap-highlight-color:transparent !important;
  cursor:grab !important;
}
.es-reel-profile button,
.es-reel-profile a,
.es-reel-profile [role="button"]{
  -webkit-tap-highlight-color:transparent !important;
  outline:none !important;
}
.es-reel-profile button:focus,
.es-reel-profile button:focus-visible,
.es-reel-profile a:focus,
.es-reel-profile a:focus-visible,
.es-reel-profile [role="button"]:focus,
.es-reel-profile [role="button"]:focus-visible{
  outline:none !important;
  box-shadow:none !important;
}
/* KV 1.3.02 — profile handle touch hit-zone: visual line stays unchanged */
.es-reel-profile__handle{
  position:relative!important;
  z-index:20!important;
  pointer-events:auto!important;
  -webkit-tap-highlight-color:transparent!important;
}
.es-reel-profile__sheet.is-profile-dragging{
  user-select:none!important;
  -webkit-user-select:none!important;
}


@media (min-width: 1025px) {
    body.es-standalone .es-feed {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    body.es-standalone .es-card {
        box-sizing: border-box !important;
        background: #fff !important;
    }
}
/* Full desktop/wide-screen width + centering rules for .es-standalone live in
   the single consolidated "Fully responsive wide-screen layout" block near
   the end of this file — search for KV 1.3.04 below. Keeping just one place
   that sets width/max-width for .es-grid & friends avoids the cascade of
   conflicting "final fix" patches that used to live here across versions. */

/* ------------------------------------------------------------------
 * KV 1.3.02 — manual/auto cover tile separation fix.
 * Root cause: manual covers (any user-uploaded dimension) and the
 * standalone "contain" rule above used to fight each other — cropped
 * covers filled the tile edge-to-edge with only a hairline gap
 * (invisible once the image itself has busy content near its edges,
 * making tiles on Windows/desktop LOOK stuck together), while the old
 * contain rule shrank manual covers to tiny inconsistent boxes instead
 * of filling the tile. Fix: every cover (manual or automatic) always
 * fills its tile edge-to-edge (object-fit: cover, already set above).
 * The gap itself stays tight/Instagram-style (unchanged from before);
 * the actual fix is the crisp inset separator ring below, which keeps
 * the boundary between tiles visible even at a hairline gap, no matter
 * what dimensions were uploaded or what the image content looks like
 * near its edges. Applies everywhere: standalone page, Elementor
 * widget, and shortcode.
 * ------------------------------------------------------------------ */
.es-card,
.es-card--tall {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07);
}

/* FINAL FIX — outward arrow for RTL Reels rail in both shortcode and Elementor */

/* FINAL FIX — outward arrow for RTL Reels rail in both shortcode and Elementor.
 * The action sits at the outer edge of the rail; force the glyph to point outward
 * and prevent theme/Elementor RTL rules from flipping it back. */
.es-kavosh-reels-shortcode .es-reels-rail__head .es-reels-rail__all .es-reels-rail__all-icon,
.es-kavosh-reels-shortcode[data-reels-preview="1"] .es-reels-rail__head .es-reels-rail__all .es-reels-rail__all-icon {
    display:block !important;
    width:14px !important;
    height:14px !important;
    flex:0 0 14px !important;
    direction:ltr !important;
    transform:none !important;
    transform-origin:center !important;
    margin:0 !important;
}


/* ==================================================================
 * KV 1.3.04 — Fully responsive wide-screen layout (all pages)
 * ------------------------------------------------------------------
 * Single, consolidated source of truth for how the Explore layout
 * behaves from tablet width up through ultra-wide monitors. This
 * replaces several earlier "final fix" patches (KV 1.3.02 / 1.3.03 /
 * "smart ultra-wide" / "smart wide-desktop shared container") that had
 * accumulated over time and were fighting each other in the cascade —
 * some of them were fully dead code (silently overridden by a later
 * !important rule), and the survivors still left a breakpoint gap
 * between 1025px and 1600px where the grid's width jumped instead of
 * scaling smoothly. That inconsistency, combined with the grid column
 * count bug fixed above (search "renderCard" reference), is what
 * produced the reported bug: on wide monitors the content hugged one
 * side and left a blank strip on the other, or in general did not
 * adapt correctly to very wide viewports.
 *
 * Rules:
 * 1. The Explore grid is ALWAYS 3 columns (renderCard() in
 *    explore-shop.js only ever places tiles in columns 1–3), no
 *    matter how wide the screen is — only the overall width of that
 *    3-column grid changes.
 * 2. The content column (.es-inline__shell) grows fluidly with the
 *    viewport via clamp(), instead of jumping between fixed
 *    breakpoints, so there is no "in-between" width that looks broken.
 * 3. Everything is centered with `margin-inline: auto`, so any leftover
 *    space past the max width is split evenly on both sides — never
 *    left entirely on one side.
 * ================================================================== */
@media (min-width: 1025px) {
    /* Sidebar becomes a full-width strip above the feed rather than a
       side column — this is what frees up the full row width for the
       grid on desktop/wide screens. */
    .es-inline__row,
    body.es-standalone .es-inline__row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    .es-sidebar-column,
    body.es-standalone .es-sidebar-column {
        grid-column: unset !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 0 16px 0 !important;
        position: relative !important;
        top: 0 !important;
    }

    .es-gap,
    body.es-standalone .es-gap {
        display: none !important;
    }

    .es-cols,
    body.es-standalone .es-cols {
        grid-column: unset !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .es-feed,
    body.es-standalone .es-feed {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* The shell is the one place that owns the "how wide can the whole
       Explore block get" decision. It grows smoothly with the viewport
       (via clamp) instead of snapping between fixed breakpoints, and is
       always centered — so extra space on ultra-wide monitors is split
       evenly left/right instead of collecting on one side. */
    body.es-standalone .es-inline__shell {
        width: 100% !important;
        max-width: clamp(920px, 82vw, 1600px) !important;
        margin-inline: auto !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    /* Product grid: always 3 columns (see rule above), fills the shell
       it lives in, and stays symmetrically centered — equal gutters on
       both sides — instead of hugging one edge. */
    .es-grid,
    body.es-standalone .es-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-inline: auto !important;
        gap: 10px !important;
    }
}
