   :root {
    font-feature-settings: "ss01";
    --e-global-color-primary: #E5AA08;
    --e-global-color-secondary: #818080;
    --e-global-color-text: #111827;
    --e-global-color-accent: #d3a410;
    --font-vazir: 'Vazir', Tahoma, Arial, sans-serif;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --scrollbar-width: 6px;
    --scrollbar-track: #f3f4f6;
    --scrollbar-thumb: #d1d5db;
    --scrollbar-thumb-hover: #E5AA08;
}
html::-webkit-scrollbar,
.scrollbar-custom::-webkit-scrollbar,
#mobile-menu-panel::-webkit-scrollbar {
    width: var(--scrollbar-width);
    height: var(--scrollbar-width);
}
html::-webkit-scrollbar-track,
.scrollbar-custom::-webkit-scrollbar-track,
#mobile-menu-panel::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 3px;
}
html::-webkit-scrollbar-thumb,
.scrollbar-custom::-webkit-scrollbar-thumb,
#mobile-menu-panel::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}
html::-webkit-scrollbar-thumb:hover,
.scrollbar-custom::-webkit-scrollbar-thumb:hover,
#mobile-menu-panel::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}
html,
.scrollbar-custom,
#mobile-menu-panel {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
input{
    font-feature-settings: "ss01";
}
body {
    font-family: var(--font-vazir);
    color: #111827;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a, button, [role="button"], input, select, textarea, [tabindex]:not([tabindex="-1"]) {
    -webkit-tap-highlight-color: rgba(229, 170, 8, 0.2);
    tap-highlight-color: rgba(229, 170, 8, 0.2);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0.5rem;
    z-index: 9999;
    padding: 0.75rem 1rem;
    background: var(--e-global-color-primary, #E5AA08);
    color: #000;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm, 8px);
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0.5rem;
    outline: 2px solid #000;
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--e-global-color-primary, #E5AA08);
    outline-offset: 2px;
}

.touch-target {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
@media (pointer: fine) {
    .touch-target {
        min-width: auto;
        min-height: auto;
    }
}

.hero-reference {
    margin-top: 0;
    background: #fff;
}

.hero-reference-title {
    letter-spacing: -0.02em;
}
.hero-search-minimal .hero-search-category-minimal {
    min-width: 110px;
}
[dir="rtl"] .hero-search-minimal .hero-search-category-minimal {
    background-position: left 0.5rem center;
}

.hero-section {
    margin-top: 0;
    background: linear-gradient(165deg, #b78806 0%, #956f05 50%, #735504 100%);
}
.hero-dots-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.08) 1px, transparent 0);
    background-size: 32px 32px;
}
.hero-title { font-weight: 800; letter-spacing: -0.02em; }
.hero-subtitle { opacity: 0.92; }
.hero-search-input { box-shadow: var(--shadow-sm); }
.hero-search-input:focus { box-shadow: var(--shadow-sm), 0 0 0 3px rgba(229, 170, 8, 0.2); }
.hero-search-btn { box-shadow: var(--shadow-xs); }

.product-card {
    border-radius: var(--radius-lg);
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #f5dd9c;
    transform: translateY(-2px);
}
.product-card-image-wrap {
    height: 240px;
    background: #f9fafb;
}
.product-preview-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    color: white;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    backdrop-filter: blur(4px);
}
.product-card:hover .product-preview-overlay {
    display: flex;
}
.img-placeholder-watermark {
    font-size: 0.8125rem;
    color: #9ca3af;
}

.product-card-home {
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.product-card-home:hover {
    transform: translateY(-4px);
}
.product-card-home-image {
    min-height: 200px;
}
.product-card-home-title {
    letter-spacing: -0.01em;
}
.home-hero-select {
    appearance: none;
    background-repeat: no-repeat;
    background-size: 12px;
    background-position: right 0.75rem center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}
[dir="rtl"] .home-hero-select {
    background-position: left 0.75rem center;
}

@media (max-width: 640px) {
    .hero-search-category-wrap {
        width: 44px;
    }
    .hero-search-category-select {
        position: absolute;
        inset: 0;
        opacity: 0;
        width: 100%;
        height: 100%;
        min-width: 44px;
        padding: 0;
        background-image: none !important;
    }
    .hero-search-category-icon {
        width: 44px;
    }
}

.hero-search-wrap {
    position: relative;
}
.hero-search-preview-dropdown {
    max-height: min(85vh, 420px);
    overflow-y: auto;
}
.hero-search-preview-dropdown:not(.hidden) .hero-search-preview-loading:not(.hidden) {
    display: flex !important;
}
.hero-search-preview .scrollbar-thin {
    scrollbar-width: thin;
}
.hero-search-preview a:hover {
    text-decoration: none;
}
.hero-search-preview .hero-search-preview-products {
    display: flex;
    flex-direction: column;
}
.hero-search-preview .hero-search-products-list {
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.hero-search-preview .hero-search-products-list::-webkit-scrollbar {
    width: 6px;
}

.hero-search-preview .hero-search-scroll {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.hero-search-preview .hero-search-scroll::-webkit-scrollbar {
    width: 6px;
}
.hero-search-preview .hero-search-scroll::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}
.hero-search-preview .hero-search-products-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}
.hero-search-preview .hero-search-products-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
.hero-search-preview .grid.grid-cols-2 {
    flex-shrink: 0;
}

.home-products-header-one {
    flex-wrap: wrap;
}
.home-products-title {
    letter-spacing: -0.02em;
}
.home-products-view-all-btn {
    margin-inline-start: auto;
}
.home-products-view-all-btn:hover {
    color: #fff;
}
.home-toolbar-select {
    min-width: 140px;
}
.home-filter-btn.home-filter-active {
    border-color: var(--e-global-color-primary);
    background: var(--e-global-color-primary);
    color: #fff;
}
.home-filter-btn.home-filter-active:hover {
    background: #b78806;
    border-color: #b78806;
    color: #fff;
}
.home-cta-btn {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.home-cta-btn:hover {
    transform: translateY(-1px);
}
.home-categories-track {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.home-categories-track::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

[dir="rtl"] .home-quick-prev svg,
[dir="rtl"] .home-quick-next svg,
[dir="rtl"] .home-calendar-prev svg,
[dir="rtl"] .home-calendar-next svg {
    transform: scaleX(-1);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
}
.section-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}
.link-arrow {
    font-size: 0.875rem;
    font-weight: 600;
    color: #b78806;
}
.link-arrow:hover {
    color: #956f05;
}

.section-header-ref-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #374151;
    margin: 0;
}
.section-header-ref-icon-box {
    flex-shrink: 0;
}
.btn-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #b78806;
    background: #fff;
    border: 2px solid #f5dd9c;
    border-radius: 9999px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-view-all:hover {
    background: #fefbf3;
    color: #735504;
    border-color: #E5AA08;
}
.section-header-ref-arrows .section-header-arrow {
    flex-shrink: 0;
}

.btn-outline-minimal {
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    background: #fff;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.btn-outline-minimal:hover,
.btn-outline-minimal.active {
    border-color: #f5dd9c;
    background: #fefbf3;
    color: #735504;
}

.header-two-rows {
    box-shadow: var(--shadow-xs);
    border-bottom: 1px solid #f3f4f6;
}
.header-menu-bar {
    background: #fafafa;
    border-top: 1px solid #f3f4f6;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}
.header-menu-bar .nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4b5563;
}
.header-future-features .flex.items-center.rounded-xl {
    max-width: 100%;
}
.header-future-features > div > div:hover {
    color: #111827;
}

.admin-nav-bar {
    top: 6.25rem;
}

.category-card-minimal {
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.category-card-minimal:hover {
    box-shadow: var(--shadow-sm);
    border-color: #f5dd9c;
    transform: translateY(-1px);
}

.banner-card-minimal {
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.2s;
}
.banner-card-minimal:hover {
    box-shadow: var(--shadow-sm);
}

.footer-minimal {
    background: #111827;
    border-top: 1px solid #1f2937;
}
.footer-minimal .text-gray-300:hover {
    color: #f5dd9c;
}
.footer-minimal h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #f3f4f6;
}

.site-footer {
    border-top: 1px solid #e5e7eb;
}
.site-footer .footer-guarantee-item--has-divider {
    border-right: 1px solid #e5e7eb;
}
[dir="rtl"] .site-footer .footer-guarantee-item--has-divider {
    border-right: none;
    border-left: 1px solid #e5e7eb;
}
.site-footer .footer-support-cta {
    box-shadow: var(--shadow-xs);
}
.site-footer .footer-stat-item {
    transition: background-color 0.15s ease;
}
.site-footer .footer-stat-item:hover {
    background-color: #fefbf3;
}
[dir="rtl"] .site-footer .footer-stat-item > div {
    text-align: right;
}
.site-footer .footer-copyright {
    background: #111827;
}
.site-footer a:hover {
    text-decoration: none;
}

.seo-content-section {
    overflow: hidden;
}
.seo-content-prose {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}
.seo-content-prose p,
.seo-content-prose li,
.seo-content-prose a {
    overflow-wrap: break-word;
    word-break: break-word;
}
@media (max-width: 640px) {
    .seo-content-prose {
        font-size: 0.875rem;
        line-height: 1.65;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.nav-dropdown-menu {
    animation: slideDown 0.2s ease-out;
}
.user-menu-dropdown {
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.group:hover .user-menu-dropdown {
    transform: translateY(0);
}

@keyframes product-img-skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.product-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: #f3f4f6;
}
.product-img-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
    background-size: 200% 100%;
    animation: product-img-skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: inherit;
}
.product-img-wrap img.product-img-loadable {
    opacity: 0;
    transition: opacity 0.25s ease-out;
}
img.product-img-loadable,
.fj-gallery-img.product-img-loadable,
.product-card-home-image img[class*="object-cover"],
.product-img-wrap img[class*="object-cover"] {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-img-wrap.loaded img.product-img-loadable {
    opacity: 1;
}
.product-img-wrap.loaded .product-img-skeleton {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-out;
}

.products-justified-gallery-wrapper.fj-gallery,
.fj-gallery.products-justified-gallery-wrapper {
    direction: ltr;
    text-align: left;
    position: relative;
    min-height: 120px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.fj-gallery-item {
    box-sizing: border-box;
}
.fj-gallery-item .product-card-justified-content {
    transform: translateY(14px);
    opacity: 0;
    transition: transform 0.35s ease-out, opacity 0.3s ease-out;
}
.fj-gallery-item.group:hover .product-card-justified-content {
    transform: translateY(0);
    opacity: 1;
}
.fj-gallery-item.group:hover .product-card-justified-top {
    transform: translateY(0);
    opacity: 1;
}
.fj-gallery-item a {
    display: block;
    height: 100%;
    direction: rtl;
    text-align: right;
}
.fj-gallery-item .fj-gallery-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-hero {
    margin-bottom: 0;
}
.listing-hero-filters .listing-select:focus {
    outline: none;
}
.listing-type-chip {
    transition: background-color 0.2s ease, color 0.2s ease;
}
.listing-hero-submit:focus {
    outline: none;
}

.category-tree-section .category-tree-wrapper {
    box-shadow: var(--shadow-xs);
}
.category-tree-card {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.category-tree-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
[dir="rtl"] .category-tree-prev svg,
[dir="rtl"] .category-tree-next svg {
    transform: scaleX(-1);
}
.content-visibility-auto {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

.contain-layout {
    contain: layout style;
}

.fj-gallery,
.products-justified-gallery-wrapper {
    contain: layout;
}
#mobile-menu-panel{
    z-index: 1000 !important;
}

[dir="rtl"] { direction: rtl; }
body {
    font-family: 'Vazir', Tahoma, Arial, sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
}
.header-top .header-search-wrap input { font-size: 0.8125rem; }
.header-top a, .header-top button { font-size: 0.8125rem; }
@keyframes megaSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1024px) {
    .header-menu-bar .nav-mega-container {
        left: 0 !important;
        right: 0 !important;
        margin-left: auto;
        margin-right: auto;
        transform: none !important;
    }

    .header-menu-bar .category-item:hover .nav-mega-container,
    .header-menu-bar .category-item.is-mega-open .nav-mega-container,
    .header-menu-bar .category-item:focus-within .nav-mega-container {
        display: block !important;
        animation: megaSlideDown 140ms ease-out both;
    }

    .header-menu-bar .category-item:hover > .category-item-link,
    .header-menu-bar .category-item.is-mega-open > .category-item-link,
    .header-menu-bar .category-item:focus-within > .category-item-link {
        background: #ffffff;
        color: #e5ac22 !important;
    }
}
.header-two-rows .header-top {
    max-height: 3.5rem;
    overflow: visible;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, border-width 0.25s ease, padding 0.25s ease;
}
.header-two-rows.header-scrolled .header-top {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    border-width: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
}
.header-menu-bar {
    transition: box-shadow 0.35s ease, background-color 0.3s ease, padding 0.35s ease;
}
.header-menu-bar .max-w-7xl { transition: padding 0.35s ease; }
.header-two-rows.header-scrolled .header-menu-bar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: #fff;
    border-top-color: transparent;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.header-two-rows.header-scrolled .header-menu-bar .max-w-7xl {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}
.header-cta-scrolled {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    width: 0;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
}
.header-two-rows.header-scrolled .header-cta-scrolled {
    display: inline-flex !important;
    opacity: 1;
    visibility: visible;
    width: auto;
    min-width: auto;
    overflow: visible;
    padding: 0.5rem 1rem;
    margin: 0;
}
@media (max-width: 768px) {
    .header-two-rows.header-scrolled .header-cta-scrolled {
        display: none !important;
    }
}
.header-future-features-scroll-wrap { transition: opacity 0.3s ease, transform 0.3s ease; }
.header-two-rows.header-scrolled .header-future-features-scroll-wrap {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    visibility: hidden;
    position: absolute;
    width: 0;
    overflow: hidden;
}
.header-two-rows .nav-mega-container {
    transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.has-announcement-bar .header-two-rows { top: 2.75rem; }

.has-announcement-bar #main-content {
    padding-top: calc(7rem + 2.75rem);
}

#marketing-popup-wrap .popup-anim-in { animation: popupFadeIn 0.25s ease forwards; }
#marketing-popup-wrap .popup-anim-out { animation: popupFadeOut 0.25s ease forwards; }
@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes popupFadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

/* ========== Welcome coupon banner ========== */
@keyframes welcome-coupon-pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(229, 170, 8, 0.2);
    }
    50% {
        box-shadow: 0 8px 36px rgba(229, 170, 8, 0.18), 0 0 0 3px rgba(229, 170, 8, 0.12);
    }
}
@keyframes welcome-coupon-shine-move {
    0% { transform: translateX(-120%) skewX(-12deg); }
    100% { transform: translateX(220%) skewX(-12deg); }
}
@keyframes welcome-coupon-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.welcome-coupon-banner .welcome-coupon-banner__surface {
    animation: welcome-coupon-enter 0.52s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

.welcome-coupon-banner--hiding {
    opacity: 0 !important;
    transform: translateY(10px) !important;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.welcome-coupon-banner--product-page.welcome-coupon-banner--hiding {
    transform: translateX(-50%) translateY(10px) !important;
}

/* موبایل صفحه محصول: بالای نوار شناور خرید (وسط‌چین، فاصله امن) */
@media (max-width: 639px) {
    .welcome-coupon-banner--product-page {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: calc(5.85rem + env(safe-area-inset-bottom, 0px));
        width: min(calc(100vw - 1rem), 28rem);
        max-width: 28rem;
    }
}

@media (min-width: 640px) {
    .welcome-coupon-banner--product-page {
        left: auto;
        right: 1.25rem;
        transform: none;
        bottom: 1.25rem;
        width: min(26rem, calc(100vw - 2rem));
    }
}

@media (min-width: 640px) {
    .welcome-coupon-banner .welcome-coupon-banner__surface {
        animation:
            welcome-coupon-enter 0.52s cubic-bezier(0.34, 1.2, 0.64, 1) both,
            welcome-coupon-pulse-glow 2.8s 0.55s ease-in-out infinite;
    }
    .welcome-coupon-banner__shine {
        background: linear-gradient(
            105deg,
            transparent 0%,
            transparent 40%,
            rgba(255, 255, 255, 0.65) 50%,
            transparent 60%,
            transparent 100%
        );
        animation: welcome-coupon-shine-move 4.5s ease-in-out infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .welcome-coupon-banner .welcome-coupon-banner__surface,
    .welcome-coupon-banner__shine {
        animation: none !important;
    }
}
