/* Global mobile layout fixes */
html {
    overflow-x: clip;
}

/* Desktop site scale ≈ browser zoom 112.5%; mobile stays at 100% */
@media (min-width: 768px) {
    html.front-site {
        zoom: 1.125;
    }

    @supports not (zoom: 1) {
        html.front-site {
            font-size: 112.5%;
        }
    }
}

body.front-page {
    overflow-x: clip;
    max-width: 100vw;
    font-family: YekanBakh, Tahoma, sans-serif;
}

/* Product short description (Summernote HTML) — force designed type styles */
.product-short-desc,
.product-short-desc p,
.product-short-desc span,
.product-short-desc li,
.product-short-desc div,
.product-short-desc strong,
.product-short-desc b,
.product-short-desc em,
.product-short-desc i,
.product-short-desc a {
    font-family: YekanBakh, Tahoma, sans-serif !important;
    font-size: 0.75rem !important;
    line-height: 1.5rem !important;
    color: #67788E !important;
}

.product-short-desc p {
    margin: 0;
}

.product-short-desc p + p {
    margin-top: 0.5rem;
}

body.front-page img,
body.front-page video,
body.front-page iframe {
    max-width: 100%;
}

body.front-page .swiper {
    max-width: 100%;
}

/* Lock page scroll while mobile menu drawer is open */
html.mobile-menu-open,
body.mobile-menu-open {
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
    height: 100%;
}

body.mobile-menu-open {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
}

/* Allow scrolling inside the open mobile drawer */
body.mobile-menu-open .mobile-menu-drawer {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

body.mobile-menu-open .mobile-menu-drawer * {
    overscroll-behavior: contain;
    touch-action: pan-y;
}

/* Improve muted text contrast for accessibility (light mode only) */
html:not(.dark) body.front-page .text-\[\#67788E\],
html:not(.dark) body.front-page .text-gray-400,
html:not(.dark) body.front-page .product-short-desc,
html:not(.dark) body.front-page .product-short-desc p,
html:not(.dark) body.front-page .product-short-desc span,
html:not(.dark) body.front-page .product-short-desc li,
html:not(.dark) body.front-page .product-short-desc div,
html:not(.dark) body.front-page .product-short-desc a {
    color: #4B5C6E !important;
}

/* Mobile drawer: readable text & icons in dark mode */
html.dark .mobile-menu-drawer,
html.dark .mobile-menu-drawer a,
html.dark .mobile-menu-drawer button,
html.dark .mobile-menu-drawer p,
html.dark .mobile-menu-drawer span,
html.dark .mobile-menu-drawer li {
    color: #ffffff;
}

html.dark .mobile-menu-drawer [class*="text-[#67788E]"],
html.dark .mobile-menu-drawer [class*="text-[#181E25]"],
html.dark .mobile-menu-drawer [class*="text-[#0C2D5B]"],
html.dark .mobile-menu-drawer [class*="text-[#0c2d5b]"],
html.dark .mobile-menu-drawer [class*="text-[#4B5C6E]"],
html.dark .mobile-menu-drawer [class*="text-[#ACB8C4]"],
html.dark .mobile-menu-drawer [class*="text-[#384656]"],
html.dark .mobile-menu-drawer [class*="text-[#FA5C64]"],
html.dark .mobile-menu-drawer .text-\[\#FA5C64\] {
    color: #ffffff !important;
}

html.dark .mobile-menu-drawer svg {
    color: #ffffff !important;
}

html.dark .mobile-menu-drawer svg [stroke]:not([stroke="none"]) {
    stroke: #ffffff !important;
}

html.dark .mobile-menu-drawer svg [fill]:not([fill="none"]) {
    fill: #ffffff !important;
}

html.dark .mobile-menu-drawer [class*="text-white\/70"],
html.dark .mobile-menu-drawer .text-white\/70 {
    color: rgba(255, 255, 255, 0.7) !important;
}

html.dark .mobile-menu-drawer .text-white {
    color: #ffffff !important;
}

.site-header {
    max-width: 100vw;
}

.sticky-under-header {
    top: 2.5rem;
}

/* Desktop: keep header + nav pinned to top while scrolling */
@media (min-width: 768px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 70;
        margin-top: 0;
        padding-top: 15px;
        background-color: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: box-shadow 0.25s ease, padding 0.25s ease;
    }

    .site-header.is-sticky {
        padding-top: 10px;
        padding-bottom: 12px;
        box-shadow: 0 8px 28px rgba(12, 45, 91, 0.1);
    }

    .site-header.is-sticky .header-desktop-nav {
        margin-top: 14px;
    }

    .sticky-under-header {
        top: calc(var(--site-header-height, 140px) + 16px);
    }
}

@media (max-width: 767.98px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 70;
        max-width: none;
        margin: 0;
        padding: 0 !important;
        border-bottom: 0 !important;
        background: transparent;
    }

    .site-header-bar {
        margin: max(8px, env(safe-area-inset-top, 0px)) 12px 8px;
        padding: 8px 10px;
        border: 1px solid #E7EAF0;
        border-radius: 18px;
        background-color: rgba(255, 255, 255, 0.97);
        box-shadow: 0 8px 28px rgba(12, 45, 91, 0.1);
    }

    .site-header.is-sticky .site-header-bar {
        box-shadow: 0 10px 32px rgba(12, 45, 91, 0.14);
    }

    .site-header .header-logo {
        height: 36px;
        max-height: 36px;
        max-width: 104px;
    }

    .site-header .header-icon-label {
        display: none;
    }

    .site-header .header-actions {
        align-items: center;
        gap: 6px;
        justify-content: flex-start;
        /* RTL + reverse → visual order right-to-left: منو، سبد، علاقه‌مندی، تم */
        flex-direction: row-reverse;
    }

    .site-header .header-icon-btn,
    .site-header .header-menu-toggle__btn {
        width: 40px;
        height: 40px;
    }

    .sticky-under-header {
        top: calc(var(--site-header-height, 72px) + 12px);
    }
}

.header-nav-divider {
    display: inline-block;
    flex-shrink: 0;
    width: 1px;
    height: 24px;
    margin-inline: 24px;
    background-color: #E7EAF0;
    align-self: center;
}

.header-nav-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
}

.header-cat-trigger {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px !important;
    margin: 0;
    border: 0;
    border-radius: 12px;
    background-color: #BF2222;
    color: #fff;
    box-shadow: 0 4px 14px rgba(191, 34, 34, 0.28);
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.header-cat-trigger:hover,
.header-cat-trigger.is-open {
    background-color: #A81E1E;
}

.header-cat-trigger__icon,
.header-cat-trigger__chevron {
    display: block;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.header-cat-trigger__chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}

.header-cat-trigger__chevron.is-open {
    transform: rotate(180deg);
}

.header-cat-trigger__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    color: inherit;
}

@media (min-width: 1024px) {
    .header-cat-trigger__label {
        font-size: 14px;
    }
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Header dropdowns — fit narrow viewports */
.header-cart-dropdown,
.header-wishlist-dropdown {
    width: min(380px, calc(100vw - 1.25rem));
    max-width: calc(100vw - 1.25rem);
}

/* Desktop zoom:1.125 scales layout — compensate dropdown width */
@media (min-width: 768px) {
    html.front-site .header-cart-dropdown,
    html.front-site .header-wishlist-dropdown {
        width: min(280px, calc((100vw - 2rem) / 1.125));
        max-width: calc((100vw - 2rem) / 1.125) !important;
    }
}

/* RTL header icons sit on the left — anchor panels to grow toward the right */
@media (min-width: 640px) {
    .header-cart-dropdown,
    .header-wishlist-dropdown {
        right: auto !important;
        left: 0 !important;
    }
}

.site-header,
.site-header .max-w-7xl,
.site-header-bar,
.site-header .header-actions,
.header-icon-action {
    overflow: visible;
}

@media (max-width: 639px) {
    .header-cart-dropdown,
    .header-wishlist-dropdown {
        position: fixed;
        left: 0.625rem;
        right: 0.625rem;
        width: auto !important;
        max-width: none !important;
    }
}

/* Search suggest panel */
.header-search-dropdown {
    max-height: min(60vh, 420px);
    overflow-y: auto;
}

/* Custom-device product badge */
.product-custom-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #FA5C64, #FB7185);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 6px 14px rgba(250, 92, 100, 0.35);
    pointer-events: none;
}

.product-custom-badge--lg {
    top: 14px;
    left: 14px;
    font-size: 11px;
    padding: 0.3rem 0.7rem;
}

/* Skeleton loading */
.sk-block {
    background: linear-gradient(90deg, #EEF1F5 0%, #F7F8FA 45%, #EEF1F5 90%);
    background-size: 200% 100%;
    animation: sk-shimmer 1.25s ease-in-out infinite;
    border-radius: 10px;
}

html.dark .sk-block {
    background: linear-gradient(90deg, #334155 0%, #475569 45%, #334155 90%);
    background-size: 200% 100%;
}

@keyframes sk-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.sk-line {
    height: 12px;
    width: 100%;
}

.sk-line--xs { height: 8px; width: 40%; }
.sk-line--sm { height: 10px; width: 55%; }
.sk-line--md { height: 12px; width: 80%; }
.sk-line--price { height: 14px; width: 45%; }

.sk-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
}

.sk-avatar--lg {
    width: 60px;
    height: 60px;
}

.sk-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sk-row--panel {
    padding: 0.75rem;
    background: #F9FAFB;
    border-radius: 16px;
}

html.dark .sk-row--panel {
    background: #1e293b;
}

.sk-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: inset 0 4px 6px -1px rgb(0 0 0 / 0.06);
    min-height: 320px;
}

html.dark .sk-card {
    background: #1e293b;
}

.sk-card__media {
    width: 100%;
    height: 200px;
    border-radius: 14px;
}

@media (min-width: 768px) {
    .sk-card__media { height: 180px; }
}

.sk-card__badge {
    width: 35%;
    height: 22px;
    border-radius: 999px;
}

.sk-card__title { width: 90%; }
.sk-card__title-2 { width: 65%; }

.sk-card__footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.sk-btn {
    height: 40px;
    width: 100%;
    border-radius: 12px;
}

.sk-panel-busy {
    position: relative;
}

.sk-panel-busy::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
}

html.dark .sk-panel-busy::after {
    background: rgba(15, 23, 42, 0.45);
}

@media (prefers-reduced-motion: reduce) {
    .sk-block {
        animation: none;
    }
}

/* Global submit / action button loading */
.btn-is-loading,
button.is-loading,
[type="submit"].is-loading {
    position: relative;
    opacity: 0.75 !important;
    cursor: wait !important;
    pointer-events: none !important;
}

.btn-is-loading::before,
button.is-loading:not(.checkout-btn)::before,
[type="submit"].is-loading:not(.checkout-btn)::before {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-inline-end: 0.45rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: currentColor;
    animation: site-btn-spin 0.7s linear infinite;
    vertical-align: -0.15em;
    flex-shrink: 0;
}

@keyframes site-btn-spin {
    to { transform: rotate(360deg); }
}

/* Rotating red glow border around search */
.header-search-glow {
    --search-radius: 14px;
    position: relative;
    border-radius: var(--search-radius);
    padding: 1.5px;
    overflow: hidden;
    isolation: isolate;
}

.header-search-glow--compact {
    --search-radius: 12px;
}

.header-search-glow__spin {
    position: absolute;
    inset: -40%;
    z-index: 0;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        transparent 55%,
        rgba(250, 92, 100, 0.15) 65%,
        #FA5C64 78%,
        #FF8A90 88%,
        rgba(250, 92, 100, 0.2) 94%,
        transparent 100%
    );
    animation: header-search-spin 2.4s linear infinite;
    opacity: 0.85;
}

.header-search-glow.is-focused .header-search-glow__spin {
    opacity: 1;
    animation-duration: 1.4s;
}

.header-search-glow__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: calc(var(--search-radius) - 1px);
    background: #fff;
    /* RTL: icon sits on the right — keep clear space from the box edge */
    padding-inline-start: 28px !important;
    padding-inline-end: 18px;
}

.header-search-glow--compact .header-search-glow__inner {
    padding-inline-start: 24px !important;
    padding-inline-end: 16px;
}

.header-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline-end: 4px;
}

@keyframes header-search-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .header-search-glow__spin {
        animation: none;
        background: #FA5C64;
        inset: 0;
        opacity: 1;
    }
}

/* Logo height matches search box */
.header-logo {
    width: auto;
    height: 48px;
    max-height: 48px;
}

@media (min-width: 1024px) {
    .header-logo {
        height: 52px;
        max-height: 52px;
    }
}

/* Digikala-like mega menu theme (light) */
.dk-mega__aside {
    background: #F8F9FB;
    border-left: 1px solid #E7EAF0;
}

.dk-mega__panel {
    background: #fff;
}

.dk-mega__root-btn {
    color: #4B5C6E;
}

.dk-mega__root-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

.dk-mega__root-btn.is-active {
    background: #fff;
    color: #BF2222;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.category-menu-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
    overflow: hidden;
    border-radius: 0.375rem;
    background: rgba(191, 34, 34, 0.1);
    color: #BF2222;
}

.category-menu-icon img,
.category-menu-icon svg {
    display: block !important;
    width: 62% !important;
    height: 62% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: contain;
    object-position: center;
}

.dk-mega__thumb {
    background: #fff;
    border: 1px solid #E7EAF0;
}

.dk-mega__all-link {
    color: #181E25;
}

.dk-mega__all-link:hover {
    color: #BF2222;
}

.dk-mega__child {
    background: #fff;
    border-color: #EEF1F5;
}

.dk-mega__child-btn {
    color: #181E25;
}

.dk-mega__child-btn:hover {
    background: #FAFBFC;
    color: #BF2222;
}

.dk-mega__grand-wrap {
    background: #FAFBFC;
    border-color: #EEF1F5;
}

.dk-mega__grand-link {
    color: #67788E;
}

.dk-mega__grand-link:hover {
    color: #BF2222;
    background: rgba(191, 34, 34, 0.08);
}

/* Swiper carousels — prevent horizontal page scroll */
.front-page section:has(.swiper) {
    overflow-x: clip;
}

.swiper {
    overflow: hidden;
}

/* Equal-height product cards in Swiper: slides must be height:auto for stretch */
.swiper-wrapper {
    align-items: stretch !important;
}

.swiper-slide.product-card {
    height: auto !important;
    display: flex !important;
    flex-direction: column;
    box-sizing: border-box;
}

.product-card,
.shop-card-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.product-card-media {
    width: 100%;
    height: 168px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-card-media {
    width: 100%;
    height: 260px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .shop-card-media {
        height: 220px;
    }
}

@media (min-width: 768px) {
    .product-card-media {
        height: 200px;
    }

    .shop-card-media {
        height: 200px;
    }
}

/* یکسان‌سازی ارتفاع کارت‌ها در گرید فروشگاه */
[x-ref="productGrid"],
.grid:has(> .shop-card-item) {
    align-items: stretch;
}

[x-ref="productGrid"] > .shop-card-item,
.grid > .shop-card-item {
    height: 100%;
}

.product-card-title,
.shop-card-title,
.blog-product-card__title {
    margin: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Header icon buttons — cart, wishlist, theme */
.header-actions {
    align-items: flex-start;
}

.header-icon-action {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem;
    flex-shrink: 0;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.header-menu-toggle__btn {
    flex-shrink: 0;
}

.header-icon-label {
    display: block;
    max-width: 4.4rem;
    font-family: YekanBakh, Tahoma, sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.25;
    color: #67788E;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-icon-label__dark {
    display: none;
}

html.dark .header-icon-label__light {
    display: none;
}

html.dark .header-icon-label__dark {
    display: inline;
}

.header-theme-label {
    position: relative;
    min-height: 1.25em;
}

.header-theme-label .header-icon-label__light,
.header-theme-label .header-icon-label__dark {
    display: inline-block;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

html:not(.dark) .header-theme-label .header-icon-label__dark {
    display: none;
}

html.dark .header-theme-label .header-icon-label__light {
    display: none;
}

html.dark .header-theme-label .header-icon-label__dark {
    display: inline-block;
}

.header-theme-btn {
    overflow: hidden;
}

.header-theme-btn__icons {
    position: relative;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
}

.header-theme-btn .theme-icon {
    grid-area: 1 / 1;
    width: 20px;
    height: 20px;
    transition:
        opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.3s ease;
    will-change: transform, opacity;
}

@media (min-width: 768px) {
    .header-theme-btn__icons {
        width: 24px;
        height: 24px;
    }

    .header-theme-btn .theme-icon {
        width: 22px;
        height: 22px;
    }
}

.header-theme-btn .theme-icon-light {
    color: #7C3AED;
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.header-theme-btn .theme-icon-dark {
    color: #A78BFA;
    opacity: 0;
    transform: rotate(-90deg) scale(0.55);
    pointer-events: none;
}

html.dark .header-theme-btn .theme-icon-light {
    opacity: 0;
    transform: rotate(90deg) scale(0.55);
    pointer-events: none;
}

html.dark .header-theme-btn .theme-icon-dark {
    opacity: 1;
    color: #C4B5FD;
    transform: rotate(0deg) scale(1);
}

.header-theme-btn.is-toggling {
    animation: header-theme-btn-pulse 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.header-theme-btn.is-toggling .theme-icon {
    animation: header-theme-icon-spin 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes header-theme-btn-pulse {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes header-theme-icon-spin {
    0% {
        filter: blur(0);
    }
    45% {
        filter: blur(0.4px);
    }
    100% {
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-theme-btn .theme-icon,
    .header-theme-label .header-icon-label__light,
    .header-theme-label .header-icon-label__dark {
        transition: none !important;
    }

    .header-theme-btn.is-toggling,
    .header-theme-btn.is-toggling .theme-icon {
        animation: none !important;
    }
}

@media (min-width: 768px) {
    .header-icon-label {
        max-width: 5rem;
        font-size: 0.6875rem;
    }
}

.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

.header-icon-btn--neutral {
    background-color: #F9FAFB;
    border-color: #E7EAF0;
}

.header-icon-btn--neutral:hover {
    background-color: rgba(250, 92, 100, 0.1);
    border-color: rgba(250, 92, 100, 0.2);
}

@media (min-width: 768px) {
    .header-menu-toggle {
        display: none !important;
    }
}

.header-icon-btn--rose {
    background-color: #FFF1F2;
    border-color: rgba(250, 92, 100, 0.22);
    color: #FA5C64;
}

.header-icon-btn--rose:hover {
    background-color: #FFE4E6;
    border-color: rgba(250, 92, 100, 0.35);
    color: #E11D48;
}

.header-icon-btn--violet {
    background: linear-gradient(145deg, #F5F3FF 0%, #EDE9FE 100%);
    border-color: rgba(124, 58, 237, 0.28);
    color: #7C3AED;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.12);
}

.header-icon-btn--violet:hover {
    background: linear-gradient(145deg, #EDE9FE 0%, #DDD6FE 100%);
    border-color: rgba(124, 58, 237, 0.42);
    color: #6D28D9;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.18);
}

.header-icon-btn--sky {
    background-color: #F0F9FF;
    border-color: rgba(14, 165, 233, 0.24);
    color: #0EA5E9;
}

.header-icon-btn--sky:hover {
    background-color: #E0F2FE;
    border-color: rgba(14, 165, 233, 0.4);
    color: #0284C7;
}

.header-icon-btn--accent {
    background-color: rgba(250, 92, 100, 0.12);
    border-color: rgba(250, 92, 100, 0.2);
}

.header-icon-btn--accent:hover {
    background-color: rgba(250, 92, 100, 0.2);
    border-color: rgba(250, 92, 100, 0.35);
}

.header-icon-btn--green {
    background-color: #ECFDF5;
    border-color: rgba(5, 150, 105, 0.22);
    color: #059669;
}

.header-icon-btn--green:hover {
    background-color: #D1FAE5;
    border-color: rgba(5, 150, 105, 0.35);
    color: #047857;
}

.header-cart-view-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
    border-radius: 0.875rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff !important;
    background: linear-gradient(to left, #059669, #23DB90);
    box-shadow: 0 8px 20px rgba(35, 219, 144, 0.3);
    transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.header-cart-view-btn:hover {
    color: #ffffff !important;
    filter: brightness(1.05);
    box-shadow: 0 10px 24px rgba(35, 219, 144, 0.4);
}

.product-show-add-cart-btn {
    color: #fff !important;
    background: #23DB90 !important;
    box-shadow: 0 8px 20px rgba(35, 219, 144, 0.25);
}

.product-show-add-cart-btn:hover:not(:disabled) {
    background: #1fc882 !important;
    box-shadow: 0 12px 24px rgba(35, 219, 144, 0.35);
}

.product-show-add-cart-btn.is-added {
    background: #059669 !important;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.28);
}

.cart-checkout-btn {
    color: #fff !important;
    background: #23DB90 !important;
}

.cart-checkout-btn:hover {
    background: #1fc882 !important;
}

.header-icon-badge--green {
    background-color: #059669;
}

.header-icon-badge {
    position: absolute;
    right: -4px;
    top: -4px;
    bottom: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background-color: #FA5C64;
    border-radius: 9999px;
    border: 2px solid #fff;
}

/* Product / shop card category — pill like blog cards */
.product-card-category,
.shop-card-category {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.375rem !important;
    width: fit-content !important;
    max-width: 100% !important;
    align-self: center !important;
    padding: 0.25rem 0.625rem !important;
    margin: 0 !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    color: #FA5C64 !important;
    background: rgba(250, 92, 100, 0.1) !important;
    background-color: rgba(250, 92, 100, 0.1) !important;
    border: 0 !important;
    border-radius: 9999px !important;
    box-shadow: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.product-card-category:hover,
.shop-card-category:hover {
    background: #FA5C64 !important;
    background-color: #FA5C64 !important;
    color: #ffffff !important;
}

.product-card-category svg,
.shop-card-category svg {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
    display: block;
}

.product-card-category span,
.shop-card-category span {
    display: inline-block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit !important;
}

html.dark .product-card-category,
html.dark .shop-card-category,
html.dark .product-card .product-card-category {
    background: rgba(250, 92, 100, 0.2) !important;
    background-color: rgba(250, 92, 100, 0.2) !important;
    color: #FB7185 !important;
}

html.dark .product-card-category:hover,
html.dark .shop-card-category:hover,
html.dark .product-card .product-card-category:hover {
    background: #FA5C64 !important;
    background-color: #FA5C64 !important;
    color: #ffffff !important;
}

.shop-card-badges,
.product-card-badges {
    display: flex;
    align-items: center;
    min-height: 1.75rem;
}

.shop-card-installment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1.625rem;
    padding: 0 0.5rem;
    line-height: 1;
    white-space: nowrap;
}

.shop-card-badges .shop-card-category,
.product-card-badges .product-card-category {
    height: 1.625rem;
    margin: 0 !important;
    align-self: center !important;
}

.home-products-swiper.swiper,
.home-products-carousel .swiper {
    overflow: visible !important;
}

.home-products-carousel--gray {
    background-color: #D3D3D3;
    background-image:
        radial-gradient(ellipse 90% 70% at 8% 0%, rgba(255, 255, 255, 0.78) 0%, transparent 55%),
        radial-gradient(ellipse 80% 60% at 100% 100%, rgba(160, 160, 160, 0.5) 0%, transparent 58%),
        linear-gradient(145deg, #EFEFEF 0%, #D3D3D3 48%, #C2C2C2 100%);
    border-radius: 1.5rem;
    padding: 1.25rem 1rem 0.35rem !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

@media (min-width: 768px) {
    .home-products-carousel--gray {
        padding: 1.5rem 1.5rem 0.5rem !important;
    }
}

.home-categories-swiper.swiper {
    overflow: hidden !important;
}

.home-categories-swiper .swiper-slide.home-cat-card {
    height: auto;
    box-sizing: border-box;
}

.home-categories-swiper .swiper-wrapper {
    box-sizing: border-box;
}

@media (hover: hover) and (pointer: fine) {
    .product-card:hover {
        transform: translateY(-6px) !important;
    }
}

/* Floating action cluster (call + back-to-top) */
.floating-actions {
    position: fixed;
    left: max(1rem, env(safe-area-inset-left, 0px));
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    z-index: 61;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.floating-actions > * {
    pointer-events: auto;
}

.mobile-call-btn {
    position: relative;
    width: 56px;
    height: 56px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.45);
    text-decoration: none;
}

.mobile-call-btn__icon {
    width: 26px;
    height: 26px;
    transform: rotate(-20deg);
}

.mobile-call-btn::before,
.mobile-call-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #22c55e;
    z-index: -1;
    animation: mobile-call-pulse 2s ease-out infinite;
    pointer-events: none;
}

.mobile-call-btn::after {
    animation-delay: 1s;
}

@keyframes mobile-call-pulse {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }
    100% {
        transform: scale(1.75);
        opacity: 0;
    }
}

@media (max-width: 767px) {
    .mobile-call-btn {
        display: flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-call-btn::before,
    .mobile-call-btn::after {
        animation: none;
        display: none;
    }
}

/* Keep Goftino on the right so it does not cover the green call button on the left. */
@media (max-width: 767.98px) {
    #goftino_w {
        left: auto !important;
        right: 12px !important;
        bottom: max(1.25rem, env(safe-area-inset-bottom, 0px)) !important;
    }
}

.back-to-top {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(135deg, #FA5C64, #FB7185);
    color: #fff;
    box-shadow: 0 8px 24px rgba(250, 92, 100, 0.35);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.back-to-top[hidden] {
    display: none !important;
}

.back-to-top__icon {
    width: 26px;
    height: 26px;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    filter: brightness(1.05);
}

@media (min-width: 768px) {
    .floating-actions {
        left: 1.5rem;
        bottom: 1.5rem;
    }
}

/* Product card hover — desktop only */
@media (hover: hover) and (pointer: fine) {
    .product-card:hover {
        transform: translateY(-8px) !important;
    }
}

@media (hover: none), (pointer: coarse) {
    .product-card:hover {
        transform: none !important;
    }

    .blog-carousel-card:hover,
    .blog-post-card .group:hover {
        transform: none !important;
    }
}

/* Blog / shop grids on very small screens */
@media (max-width: 399px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Equal-height blog cards */
.swiper-slide.blog-carousel-card {
    height: auto !important;
    display: flex !important;
    flex-direction: column;
    box-sizing: border-box;
}

.blog-carousel-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.blog-carousel-card__footer {
    margin-top: auto;
}

.blog-posts-grid {
    align-items: stretch;
}

.blog-post-card {
    display: flex;
    height: 100%;
}

.blog-post-card__inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.blog-post-card__content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.blog-post-card__footer {
    margin-top: auto;
}

.blog-carousel-card__title,
.blog-post-card__title {
    min-height: 2.75em;
}

.blog-carousel-card__excerpt,
.blog-post-card__excerpt {
    min-height: 2.5em;
}

.site-footer {
    background-color: #E1E1E1 !important;
}

.footer-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-trust__item {
    display: block;
    flex: 0 0 auto;
    width: 125px;
    min-width: 125px;
    line-height: 0;
}

.footer-trust__item img {
    display: block;
    width: 125px !important;
    height: 137px !important;
    max-width: none !important;
    object-fit: contain;
}

/* Footer stats wrap */
.footer-stats {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
}

@media (max-width: 359px) {
    .footer-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        text-align: center;
    }

    .footer-stats .footer-stat-divider {
        display: none;
    }
}

/* Blog show meta row */
@media (max-width: 767px) {
    .blog-show-meta {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem 1.25rem;
    }

    .blog-show-title-block {
        text-align: center;
    }
}

/* Comment form — textarea first on mobile */
@media (max-width: 767px) {
    .blog-comment-form {
        flex-direction: column-reverse;
    }
}

/* Cart — coupon ticket */
.cart-coupon__notch {
    position: absolute;
    top: 50%;
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 9999px;
    background: inherit;
    transform: translateY(-50%);
    box-shadow: inset 0 0 0 1px rgba(250, 92, 100, 0.35);
}

.cart-coupon__notch--start,
.cart-coupon__notch--end {
    background: linear-gradient(135deg, rgba(250, 92, 100, 0.07) 0%, #fff 55%, rgba(12, 45, 91, 0.04) 100%);
}

.cart-coupon__notch--start {
    right: -0.4375rem;
}

.cart-coupon__notch--end {
    left: -0.4375rem;
}

/* FAQ answers */
.faq-answer {
    font-family: YekanBakh, sans-serif;
    font-size: 14px;
    line-height: 1.9;
    color: #67788E;
    font-weight: 500;
}

.faq-answer p {
    margin: 0;
}

.faq-answer p + p {
    margin-top: 0.75rem;
}

html.dark .faq-answer {
    color: #94a3b8 !important;
}

/* Homepage — چرا AG + مشاوره (قرمز سازمانی، light/dark) */
.home-consult-showcase .home-accent-panel,
.home-why-section .home-accent-panel {
    background-color: #FA5C64 !important;
    background-image:
        radial-gradient(ellipse 90% 70% at 5% -10%, rgba(255, 255, 255, 0.32) 0%, transparent 55%),
        radial-gradient(ellipse 80% 60% at 100% 110%, rgba(159, 18, 57, 0.5) 0%, transparent 55%),
        radial-gradient(circle at 60% 35%, rgba(251, 113, 133, 0.5) 0%, transparent 45%),
        linear-gradient(145deg, #FB7185 0%, #FA5C64 45%, #E11D48 100%) !important;
    box-shadow: 0 24px 60px rgba(225, 29, 72, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

html.dark .home-consult-showcase .home-accent-panel,
html.dark .home-why-section .home-accent-panel {
    background-color: #3f0a14 !important;
    background-image:
        radial-gradient(ellipse 90% 70% at 5% -10%, rgba(250, 92, 100, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 80% 60% at 100% 110%, rgba(244, 63, 94, 0.3) 0%, transparent 55%),
        radial-gradient(circle at 60% 35%, rgba(190, 24, 93, 0.4) 0%, transparent 45%),
        linear-gradient(145deg, #3f0a14 0%, #9f1239 48%, #7f1d1d 100%) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(251, 113, 133, 0.32);
}

.home-consult-showcase .home-accent-panel > .relative,
.home-why-section .home-accent-panel > .relative {
    position: relative;
    z-index: 1;
}

/* Why AG + consult only: keep chip icons visible in dark mode */
html.dark .home-consult-showcase .home-accent-icon,
html.dark .home-why-section .home-accent-icon {
    background-color: #ffffff !important;
}

html.dark .home-consult-showcase .home-accent-icon svg,
html.dark .home-why-section .home-accent-icon svg,
html.dark .home-consult-showcase .home-accent-icon svg path,
html.dark .home-why-section .home-accent-icon svg path {
    color: #E11D48 !important;
    stroke: currentColor !important;
}

html.dark .home-consult-showcase a.home-on-accent-btn,
html.dark .home-consult-showcase a.home-on-accent-btn svg {
    color: #be123c !important;
}

html.dark .home-consult-showcase a.home-on-accent-btn:hover,
html.dark .home-consult-showcase a.home-on-accent-btn:hover svg {
    color: #ffffff !important;
}

html.dark .home-promo-banner .home-promo-consult-btn {
    background-color: #ffffff !important;
    color: #0C2D5B !important;
}

html.dark .home-promo-banner a.group:hover .home-promo-consult-btn {
    background-color: #FA5C64 !important;
    color: #ffffff !important;
}

/* Packaging promo banner — desktop keeps 1600/240; mobile taller + contained */
@media (max-width: 767.98px) {
    .home-promo-banner--packaging {
        width: 100%;
        max-width: 100%;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        margin-left: auto;
        margin-right: auto;
        overflow: hidden;
        box-sizing: border-box;
    }

    .home-promo-banner--packaging .home-promo-banner__packaging-link {
        position: relative;
        display: block;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
        border-radius: 16px;
        aspect-ratio: 2 / 1 !important;
        min-height: 160px;
        max-height: 220px;
    }

    .home-promo-banner--packaging .home-promo-banner__img {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center;
        box-sizing: border-box;
    }
}

/* Home main slider — desktop wide / mobile 16:9 */
.home-main-swiper .home-main-slide {
    display: block;
    overflow: hidden;
    border: 0;
    border-radius: 0;
}

.home-main-swiper .home-main-slide__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 767.98px) {
    .home-main-swiper--mobile .home-main-slide {
        aspect-ratio: 16 / 9;
        min-height: 180px;
        border-radius: 14px;
        border: 0;
    }

    .home-main-swiper--mobile .home-main-slide__img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    section.home-hero-sliders {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .home-main-swiper--mobile {
        border-radius: 14px;
        overflow: hidden;
    }
}

@media (min-width: 768px) {
    .home-main-swiper--desktop {
        border-radius: 26px;
        overflow: hidden;
    }

    .home-main-swiper--desktop .home-main-slide {
        border-radius: 26px;
        aspect-ratio: auto;
        min-height: 0;
    }

    .home-main-swiper--desktop .home-main-slide__img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}

/* Top strip banner */
.site-top-banner {
    display: block;
    width: 100%;
    line-height: 0;
    background: #0C2D5B;
}

.site-top-banner img {
    width: 100%;
    height: auto;
    max-height: 72px;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (min-width: 768px) {
    .site-top-banner img {
        max-height: 100px;
    }
}

html.dark .site-top-banner {
    background: #0f172a;
}



/* Home team experts slider - compact asymmetric cards */
.home-team-swiper {
    overflow: hidden;
}

.home-team-swiper .swiper-slide {
    height: auto;
}

.home-team-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 28px 0 28px 0;
    box-shadow: 0 12px 28px rgba(12, 45, 91, 0.1);
    transition: transform 0.4s ease;
}

.home-team-card:hover {
    transform: translateY(-4px);
}

.home-team-card--rose {
    background: linear-gradient(160deg, #FFF5F6 0%, #FFE8EA 100%);
}

.home-team-card--navy {
    background: linear-gradient(160deg, #EEF3FA 0%, #E4ECF7 100%);
}

.home-team-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: inherit;
}

.home-team-card__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: transform 0.6s ease;
}

.home-team-card:hover .home-team-card__photo {
    transform: scale(1.03) translateZ(0);
}

.home-team-card__fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 700;
    color: rgba(12, 45, 91, 0.25);
}

.home-team-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(191, 34, 34, 0.5) 0%, rgba(191, 34, 34, 0.1) 45%, transparent 72%);
    pointer-events: none;
}

.home-team-card__info {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 2;
    padding: 0.85rem 0.9rem 1rem;
    text-align: right;
    color: #fff;
}

.home-team-card__name {
    margin: 0;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.home-team-card__role {
    margin: 0.2rem 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.7rem;
    font-weight: 500;
}

.home-team-card__meta {
    margin-top: 0.55rem;
    display: grid;
    gap: 0.28rem;
}

.home-team-card__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-team-card__phone:hover {
    color: #FA5C64;
}

.home-team-card__ext {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.65rem;
}

.home-team-card__ext > span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.1rem;
    padding: 0 0.35rem;
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.58rem;
    font-weight: 700;
}

html.dark .home-team-card--rose {
    background: linear-gradient(160deg, #3f1d24 0%, #2a1519 100%);
}

html.dark .home-team-card--navy {
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
}

html.dark .home-team-experts h2 {
    color: #e2e8f0 !important;
}


/* Product add-to-cart button (green) */
.product-add-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff !important;
    background: linear-gradient(90deg, #047857 0%, #059669 45%, #10B981 100%) !important;
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.product-add-cart-btn--sm {
    height: 2.25rem;
    font-size: 11px;
    border-radius: 0.65rem;
}

.product-add-cart-btn__icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.product-add-cart-btn:hover:not(:disabled):not(.product-add-cart-btn--oos):not(.product-add-cart-btn--soon):not(.product-add-cart-btn--notify) {
    filter: brightness(1.06);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.38);
    transform: translateY(-1px);
}

.product-add-cart-btn:active:not(:disabled) {
    transform: translateY(0);
    filter: brightness(0.98);
}

.product-add-cart-btn:disabled,
.product-add-cart-btn.is-loading {
    opacity: 0.65;
    cursor: wait;
    pointer-events: none;
}

.product-add-cart-btn--oos,
.product-add-cart-btn--soon {
    cursor: default;
    box-shadow: none;
    pointer-events: none;
    font-family: YekanBakh, Tahoma, sans-serif;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
    white-space: nowrap;
}

.product-add-cart-btn--oos {
    color: #6B7280 !important;
    background: #F3F4F6 !important;
    border: 1px solid #E5E7EB;
}

.product-add-cart-btn--notify {
    cursor: pointer;
    pointer-events: auto;
    box-shadow: none;
    font-family: YekanBakh, Tahoma, sans-serif;
    font-weight: 600;
    color: #fff !important;
    background: #BF2222 !important;
    border: 1px solid #BF2222;
    white-space: normal;
    line-height: 1.25;
    height: auto;
    min-height: 2.75rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.product-add-cart-btn--notify.product-add-cart-btn--sm {
    min-height: 2.25rem;
    font-size: 10px;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

.product-add-cart-btn--notify:hover {
    filter: brightness(1.05);
    box-shadow: 0 8px 18px rgba(191, 34, 34, 0.28);
    transform: translateY(-1px);
}

.product-add-cart-btn--soon {
    color: #B45309 !important;
    background: #FFFBEB !important;
    border: 1px solid #FDE68A;
}

html.dark .product-add-cart-btn--oos {
    color: #94a3b8 !important;
    background: #1e293b !important;
    border-color: #334155;
}

html.dark .product-add-cart-btn--notify {
    color: #fff !important;
    background: #BF2222 !important;
    border-color: #BF2222;
}

html.dark .product-add-cart-btn--soon {
    color: #fbbf24 !important;
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.35);
}

/* Custom product price inquiry */
.product-price-inquiry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff !important;
    background: #f57129 !important;
    box-shadow: 0 6px 16px rgba(245, 113, 41, 0.32);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.product-price-inquiry-btn--sm {
    height: 2.25rem;
    font-size: 11px;
    border-radius: 0.65rem;
}

.product-price-inquiry-btn--lg {
    height: 3.5rem;
    font-size: 15px;
    border-radius: 1rem;
    gap: 0.5rem;
}

.product-price-inquiry-btn__icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.product-price-inquiry-btn--lg .product-price-inquiry-btn__icon {
    width: 1.25rem;
    height: 1.25rem;
}

.product-price-inquiry-btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 8px 20px rgba(245, 113, 41, 0.42);
}

.product-price-inquiry-btn:active {
    transform: scale(0.98);
}

.price-inquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

@media (min-width: 640px) {
    .price-inquiry-modal {
        align-items: center;
        padding: 1.5rem;
    }
}

.price-inquiry-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.price-inquiry-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 28rem;
    max-height: min(86vh, 640px);
    overflow-y: auto;
    background: #fff;
    border-radius: 1.25rem 1.25rem 0 0;
    padding: 1.25rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

@media (min-width: 640px) {
    .price-inquiry-modal__panel {
        border-radius: 1.25rem;
        padding: 1.5rem;
    }
}

.price-inquiry-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.price-inquiry-modal__heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: #181E25;
}

.price-inquiry-modal__sub {
    margin-top: 0.25rem;
    font-size: 12px;
    color: #67788E;
    line-height: 1.6;
}

.price-inquiry-modal__close {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    background: #F3F4F6;
    color: #67788E;
}

.price-inquiry-modal__hint {
    font-size: 13px;
    color: #4B5C6E;
    margin-bottom: 0.85rem;
}

.price-inquiry-modal__form {
    display: grid;
    gap: 0.85rem;
}

.price-inquiry-modal__field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 12px;
    font-weight: 600;
    color: #181E25;
}

.price-inquiry-modal__field label span {
    color: #FA5C64;
}

.price-inquiry-modal__field input,
.price-inquiry-modal__field textarea {
    width: 100%;
    border: 1px solid #E7EAF0;
    background: #F9FAFB;
    border-radius: 0.85rem;
    padding: 0.75rem 0.9rem;
    font-size: 13px;
    color: #181E25;
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.price-inquiry-modal__field textarea {
    resize: vertical;
    min-height: 5rem;
}

.price-inquiry-modal__field input:focus,
.price-inquiry-modal__field textarea:focus {
    border-color: #FA5C64;
    background: #fff;
}

.price-inquiry-modal__input--readonly {
    background: #EEF1F5 !important;
    color: #4B5C6E !important;
    cursor: default;
    pointer-events: none;
}

.price-inquiry-modal__msg {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
}

.price-inquiry-modal__msg--error {
    color: #BF2222;
}

.price-inquiry-modal__msg--success {
    color: #059669;
}

.price-inquiry-modal__submit {
    width: 100%;
    border: 0;
    border-radius: 0.9rem;
    background: #FA5C64;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.price-inquiry-modal__submit:hover:not(:disabled) {
    background: #FB7185;
}

.price-inquiry-modal__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.price-inquiry-modal__alt-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.9rem;
    font-size: 12px;
    color: #67788E;
    text-decoration: none;
}

.price-inquiry-modal__alt-call span {
    color: #0C2D5B;
    font-weight: 700;
}

.price-inquiry-modal__alt-call:hover span {
    color: #FA5C64;
}

.price-inquiry-modal__otp-input {
    text-align: center;
    letter-spacing: 0.35em;
    font-size: 1.1rem !important;
}

.price-inquiry-modal__otp-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.price-inquiry-modal__link-btn {
    border: 0;
    background: transparent;
    color: #FA5C64;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.price-inquiry-modal__link-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

html.dark .price-inquiry-modal__panel {
    background: #0f172a;
}

html.dark .price-inquiry-modal__heading {
    color: #e2e8f0;
}

html.dark .price-inquiry-modal__sub,
html.dark .price-inquiry-modal__alt-call {
    color: #94a3b8;
}

html.dark .price-inquiry-modal__close {
    background: #1e293b;
    color: #cbd5e1;
}

html.dark .price-inquiry-modal__field label {
    color: #e2e8f0;
}

html.dark .price-inquiry-modal__field input,
html.dark .price-inquiry-modal__field textarea {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

html.dark .price-inquiry-modal__alt-call span {
    color: #f8fafc;
}

.shop-card-stock {
    font-family: YekanBakh, Tahoma, sans-serif;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
}

.shop-subcats-swiper .swiper-wrapper {
    align-items: stretch;
}

.shop-subcats-swiper .swiper-slide,
.shop-subcats-swiper .shop-subcat-slide {
    height: auto;
    display: flex;
}

.shop-subcats-swiper .shop-subcat-card {
    flex: 1;
    height: 100%;
}

.shop-subcats .shop-subcat-media {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    box-shadow:
        0 2px 4px rgba(12, 45, 91, 0.04),
        0 10px 24px rgba(12, 45, 91, 0.1),
        0 18px 40px rgba(200, 16, 46, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.shop-subcats .shop-subcat-card:hover .shop-subcat-media {
    box-shadow:
        0 4px 8px rgba(12, 45, 91, 0.06),
        0 14px 32px rgba(12, 45, 91, 0.12),
        0 22px 48px rgba(200, 16, 46, 0.14);
}

.shop-subcats .shop-subcat-media::before,
.shop-subcats .shop-subcat-media::after {
    display: none;
}

.shop-subcats .shop-subcat-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

html.dark .shop-subcats .shop-subcat-media {
    background: #1e293b !important;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 12px 28px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(250, 92, 100, 0.12);
}

html.dark .shop-subcats .shop-subcat-card span {
    color: #e2e8f0 !important;
}

html.dark .shop-subcats .shop-subcat-card:hover span {
    color: #FB7185 !important;
}

/* Product gallery: keep one slide visible and arrows usable on desktop */
.product-gallery-main.swiper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    cursor: grab;
}

.product-gallery-main.swiper-initialized:active {
    cursor: grabbing;
}

.product-gallery-main .swiper-wrapper {
    align-items: stretch !important;
}

.product-gallery-main .swiper-slide {
    height: auto;
    box-sizing: border-box;
}

.product-gallery-image {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.product-gallery-wrap .product-gal-next,
.product-gallery-wrap .product-gal-prev {
    pointer-events: auto;
}

.product-gallery-wrap .product-gal-dots.swiper-pagination {
    position: relative !important;
    inset: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 1;
}

.product-gallery-wrap .product-gal-dots .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    background: #ACB8C4;
    opacity: 1;
}

.product-gallery-wrap .product-gal-dots .swiper-pagination-bullet-active {
    background: #FA5C64;
    width: 18px;
    border-radius: 999px;
}

.product-gallery-main .swiper-slide[data-gallery-video] {
    touch-action: pan-y;
}

.product-gallery-video {
    z-index: 2;
    pointer-events: auto;
    -webkit-user-drag: none;
    user-select: none;
}

.product-gallery-video-swipe {
    position: absolute;
    inset: 0 0 56px 0;
    z-index: 3;
    cursor: grab;
    touch-action: pan-y;
    background: transparent;
}

.product-gallery-video-swipe:active {
    cursor: grabbing;
}

.product-gallery-wrap:has([data-gallery-video].swiper-slide-active) .product-gal-next,
.product-gallery-wrap:has([data-gallery-video].swiper-slide-active) .product-gal-prev {
    top: 42%;
}

.product-gallery-thumbs-swiper.swiper {
    width: 100%;
    overflow: hidden;
    padding-bottom: 2px;
}

.product-gallery-thumbs-swiper .swiper-slide.product-gallery-thumb-slide {
    width: auto !important;
    height: auto;
}

.product-gallery-thumbs-swiper .product-gallery-thumb {
    -webkit-user-drag: none;
    user-select: none;
}

.product-gallery-thumbs-swiper .product-gallery-thumb img {
    -webkit-user-drag: none;
    pointer-events: none;
}

.shop-rich-text {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.shop-rich-text img,
.shop-rich-text video,
.shop-rich-text iframe,
.shop-rich-text embed,
.shop-rich-text object,
.shop-rich-text svg {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

.shop-rich-text img.img-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.shop-rich-text table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
}

.shop-rich-text td,
.shop-rich-text th {
    word-break: break-word;
}

.desc-title,
.shop-rich-text h1,
.shop-rich-text h2,
.shop-rich-text h3,
.shop-rich-text h4,
.shop-rich-text h5,
.shop-rich-text h6,
.product-description-content h1,
.product-description-content h2,
.product-description-content h3,
.product-description-content h4,
.product-description-content h5,
.product-description-content h6 {
    color: #0C2D5B;
    font-weight: 800;
    line-height: 1.7;
    margin: 1.6rem 0 0.85rem;
    padding: 0 0 0.55rem;
    border: 0 !important;
    border-bottom: 1px solid #E7EAF0 !important;
    background: none !important;
}

.desc-title:first-child,
.shop-rich-text h1:first-child,
.shop-rich-text h2:first-child,
.shop-rich-text h3:first-child,
.shop-rich-text h4:first-child,
.shop-rich-text h5:first-child,
.shop-rich-text h6:first-child,
.product-description-content h1:first-child,
.product-description-content h2:first-child,
.product-description-content h3:first-child,
.product-description-content h4:first-child {
    margin-top: 0;
}

.shop-rich-text p,
.shop-rich-text ul,
.shop-rich-text ol,
.shop-rich-text blockquote,
.product-description-content p,
.product-description-content ul,
.product-description-content ol,
.product-description-content blockquote {
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0;
    margin: 0;
    box-shadow: none !important;
}

.shop-rich-text p,
.product-description-content p {
    margin-bottom: 0.85rem;
    line-height: 1.9;
}

.shop-rich-text p:empty,
.shop-rich-text p:has(> br:only-child),
.product-description-content p:empty {
    display: none;
}

.shop-rich-text ul,
.shop-rich-text ol,
.product-description-content ul,
.product-description-content ol {
    padding-right: 1.35rem;
    margin-bottom: 0.85rem;
}

.shop-rich-text li + li,
.product-description-content li + li {
    margin-top: 0.4rem;
}

.shop-rich-text blockquote,
.product-description-content blockquote {
    padding-right: 1rem;
    border-right: 3px solid #E7EAF0 !important;
    color: #4B5C6E;
}

.stock-alert-dialog:not([open]) {
    display: none !important;
}

.stock-alert-dialog {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: calc(100vw - 2rem);
    width: 32rem;
    margin: auto;
}

.stock-alert-dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.stock-alert-dialog__panel {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 640px) {
    .stock-alert-dialog__panel {
        border-radius: 1.5rem;
        padding: 2rem;
    }
}

html.dark .stock-alert-dialog__panel {
    background: #0f172a;
}

/* Installment calculator — light mode accent */
html:not(.dark) .installment-calculator {
    background: linear-gradient(160deg, #d7eeff 0%, #ffffff 42%, #eaf6ff 100%);
    border: 2px solid #008AF2;
    box-shadow: 0 10px 28px rgba(0, 138, 242, 0.18);
}

html:not(.dark) .installment-calculator__icon {
    background: #008AF2;
    color: #ffffff;
}

html:not(.dark) .installment-calculator__heading,
html:not(.dark) .installment-calculator__accent,
html:not(.dark) .installment-calculator__cta {
    color: #008AF2 !important;
}

html:not(.dark) .installment-calculator__cta:hover {
    color: #006fc4 !important;
}

html:not(.dark) .installment-calculator__submit {
    background: #008AF2;
    color: #ffffff;
}

html:not(.dark) .installment-calculator__submit:hover {
    background: #006fc4;
}

html:not(.dark) .installment-calculator__select:focus,
html:not(.dark) .installment-calculator__input:focus {
    border-color: #008AF2;
    box-shadow: 0 0 0 3px rgba(0, 138, 242, 0.2);
}

html:not(.dark) .installment-calculator input[type="range"] {
    accent-color: #008AF2;
}

/* Brand red utilities — not present in compiled output.css */
.text-\[\#BF2222\] {
    color: #BF2222;
}

.bg-\[\#BF2222\] {
    background-color: #BF2222;
}

.bg-\[\#BF2222\]\/10 {
    background-color: color-mix(in oklab, #BF2222 10%, transparent);
}

.hover\:bg-\[\#A61D1D\]:hover {
    background-color: #A61D1D;
}

.hover\:text-\[\#BF2222\]:hover {
    color: #BF2222;
}

.group:hover .group-hover\:text-\[\#BF2222\] {
    color: #BF2222;
}

.bg-\[\#008AF2\] {
    background-color: #008AF2;
}

.product-in-stock-badge {
    background-color: color-mix(in oklab, #BF2222 10%, transparent);
    color: #BF2222;
}

.group:hover .group-hover\:border-\[\#BF2222\]\/40 {
    border-color: color-mix(in oklab, #BF2222 40%, transparent);
}

/* Jobs listing — circular photo inside a card */
.job-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    border: 1px solid #E7EAF0;
    border-radius: 1.5rem;
    padding: 1.15rem 0.9rem 1.25rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.job-tile:hover {
    transform: translateY(-4px);
    border-color: color-mix(in oklab, #BF2222 28%, #E7EAF0);
    box-shadow: 0 16px 32px rgba(191, 34, 34, 0.12);
}

.job-tile__avatar {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 9999px;
    overflow: hidden;
    background: #F7F8FA;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 1px #E7EAF0, 0 8px 18px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.job-tile:hover .job-tile__avatar {
    transform: scale(1.04);
    box-shadow: 0 0 0 1px color-mix(in oklab, #BF2222 35%, #E7EAF0), 0 10px 22px rgba(191, 34, 34, 0.14);
}

.job-tile__avatar img {
    transition: transform 0.35s ease;
}

.job-tile:hover .job-tile__avatar img {
    transform: scale(1.06);
}

.job-tile__title {
    margin-top: 0.9rem;
    font-weight: 800;
    color: #181E25;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.job-tile:hover .job-tile__title {
    color: #BF2222;
}

.job-tile__meta {
    margin-top: 0.25rem;
    font-size: 12px;
    color: #ACB8C4;
}

@media (min-width: 640px) {
    .job-tile {
        padding: 1.35rem 1.1rem 1.4rem;
        border-radius: 1.75rem;
    }

    .job-tile__avatar {
        width: 7.5rem;
        height: 7.5rem;
    }

    .job-tile__title {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    .job-tile__avatar {
        width: 8.5rem;
        height: 8.5rem;
    }
}