/**
 * Modern UI layer — visual refresh only (loads after style.css)
 * Uses existing theme variables: --theam-color, --theam-secend-color, etc.
 */

:root {
    --ui-radius-sm: 8px;
    --ui-radius-md: 12px;
    --ui-radius-lg: 16px;
    --ui-radius-xl: 20px;
    --ui-radius-pill: 999px;
    --ui-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --ui-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --ui-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
    --ui-surface: #ffffff;
    --ui-surface-muted: #f8fafc;
    --ui-border: #e2e8f0;
    --ui-text: #1e293b;
    --ui-text-muted: #64748b;
    --ui-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}


body.site-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--theam-txt-color, var(--ui-text));
    background-color: var(--theam-bg-color, var(--ui-surface-muted));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}



/* ── Bootstrap theme sync ── */
.btn-primary {
    --bs-btn-bg: var(--theam-color);
    --bs-btn-border-color: var(--theam-color);
    --bs-btn-hover-bg: color-mix(in srgb, var(--theam-color) 85%, #000);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--theam-color) 85%, #000);
    --bs-btn-active-bg: color-mix(in srgb, var(--theam-color) 75%, #000);
    --bs-btn-active-border-color: color-mix(in srgb, var(--theam-color) 75%, #000);
    border-radius: var(--ui-radius-sm);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all var(--ui-transition);
}

.btn-outline-primary {
    --bs-btn-color: var(--theam-color);
    --bs-btn-border-color: var(--theam-color);
    --bs-btn-hover-bg: var(--theam-color);
    --bs-btn-hover-border-color: var(--theam-color);
    border-radius: var(--ui-radius-sm);
    font-weight: 500;
}

.btn-success,
.btn-danger {
    border-radius: var(--ui-radius-sm);
    font-weight: 500;
}

.form-control,
.form-select {
    border-radius: var(--ui-radius-sm);
    border-color: var(--ui-border);
    padding: 0.55rem 0.85rem;
    transition: border-color var(--ui-transition), box-shadow var(--ui-transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--theam-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theam-color) 15%, transparent);
}

.text-primary {
    color: var(--theam-color) !important;
}


/* ── Header contact bar ── */
.header-contact-bar {
    background: linear-gradient(135deg, var(--theam-color) 0%, color-mix(in srgb, var(--theam-color) 80%, #000) 100%);
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-contact-list a:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Breadcrumb ── */
.breadcrumb-nav {
    background: transparent;
    border-bottom: none;
    padding: 0.85rem 0 0.35rem;
    margin-bottom: 0;
}

.breadcrumb-nav .container {
    padding-top: 0;
    padding-bottom: 0;
}

.breadcrumb-nav .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
    width: auto;
    float: none !important;
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
    background: transparent !important;
    font-size: 13px;
    line-height: 1.5;
}

.breadcrumb-nav .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    float: none !important;
    color: var(--ui-text-muted);
}

.breadcrumb-nav .breadcrumb-item + .breadcrumb-item {
    padding-right: 0;
    padding-left: 0;
}

.breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    float: none;
    display: inline-block;
    content: "/";
    padding: 0 0.45rem;
    color: color-mix(in srgb, var(--ui-text-muted) 55%, transparent);
    font-weight: 400;
}

.breadcrumb-nav .breadcrumb-item a {
    color: var(--ui-text-muted);
    text-decoration: none;
    transition: color var(--ui-transition);
}

.breadcrumb-nav .breadcrumb-item a:hover {
    color: var(--theam-color);
}

.breadcrumb-nav .breadcrumb-item.active {
    color: var(--theam-color);
    font-weight: 600;
}

.breadcrumb-nav + .container {
    padding-top: 0.5rem;
}


/* ── Homepage slider ── */
.slider {
    float: none;
    top: 0;
    padding: 1.25rem 0 0;
    margin-bottom: 1.5rem;
}

.home-slider .container {
    max-width: 100%;
}

.home-slider-wrap {
    border-radius: var(--ui-radius-xl);
    overflow: hidden;
    box-shadow: var(--ui-shadow-lg);
    background: var(--ui-surface);
}

.home-hero-swiper,
.slider-swiper {
    border-radius: var(--ui-radius-xl);
    overflow: hidden;
}

.home-slider-slide {
    position: relative;
    display: block;
    aspect-ratio: 21 / 8;
    min-height: 220px;
    max-height: 520px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--theam-color) 72%, #000) 0%,
        color-mix(in srgb, var(--theam-color) 88%, #000) 100%
    );
}
.home-slider-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        color-mix(in srgb, var(--theam-color) 65%, #000) 0%,
        color-mix(in srgb, var(--theam-color) 25%, transparent) 45%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
}

.home-slider-slide__media {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.home-slider-slide__img,
.slider-swiper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.home-slider-slide__media:hover .home-slider-slide__img {
    transform: scale(1.03);
}

.home-slider-slide__caption,
.slider-info {
    position: absolute;
    z-index: 2;
    right: 0;
    left: auto;
    bottom: 0;
    max-width: min(520px, 88%);
    padding: 1.75rem 2rem;
    color: #fff;
    line-height: 1.75;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.home-slider-slide__caption h1,
.home-slider-slide__caption h2,
.home-slider-slide__caption h3 {
    font-size: clamp(1.15rem, 2.2vw, 1.65rem);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.home-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 46px;
    height: 46px;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--theam-color);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--ui-transition), color var(--ui-transition), transform var(--ui-transition), box-shadow var(--ui-transition);
}

.home-slider-nav i {
    font-size: 1.65rem;
    line-height: 1;
}

.home-slider-nav::after {
    display: none;
}

.home-slider-nav:hover {
    background: var(--theam-color);
    color: #fff;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--theam-color) 45%, transparent);
}

.home-slider-nav--prev {
    right: 1rem;
    left: auto;
}

.home-slider-nav--next {
    left: 1rem;
    right: auto;
}

.home-slider-pagination {
    position: absolute;
    bottom: 1rem !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    z-index: 5;
    width: auto !important;
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: var(--ui-radius-pill);
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(6px);
}

.home-slider-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    opacity: 0.55;
    background: #fff;
    transition: width var(--ui-transition), opacity var(--ui-transition), background var(--ui-transition);
}

.home-slider-pagination .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: var(--ui-radius-pill);
    opacity: 1;
    background: var(--theam-color);
}

/* ── Banner strip zones (grid / single placements) ── */
.home-banner-strip {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.banner-zone__img {
    display: block;
    border-radius: var(--ui-radius-lg);
    box-shadow: var(--ui-shadow-sm);
}

.banner-zone--grid .banner-zone__img {
    border-radius: var(--ui-radius-md);
}

/* ── About section ── */
.about {
    float: none;
    background: var(--ui-surface);
    background-image: none;
    padding: 4rem 0;
    margin: 2rem 0;
}

.about .about-logo img {
    border-radius: var(--ui-radius-lg);
    box-shadow: var(--ui-shadow-md);
}

.about .about-titr {
    float: none;
    border-bottom: none;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.about .about-titr::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to left, var(--theam-color), var(--theam-secend-color));
    border-radius: var(--ui-radius-pill);
}

.about .about-titr h1 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ui-text);
}

.about .about-text p {
    color: var(--ui-text-muted);
    font-size: 15px;
}

/* ── Education / featured products ── */
.education {
    padding: 1rem 0 3rem;
}

.education .education-box {
    float: none;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--theam-color) 0%, color-mix(in srgb, var(--theam-color) 70%, var(--theam-secend-color)) 100%);
    border-radius: var(--ui-radius-xl);
    box-shadow: var(--ui-shadow-lg);
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.education .education-box::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.education .education-info h2 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.education .education-info .more a {
    border-radius: var(--ui-radius-sm);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all var(--ui-transition);
}

.education .education-info .btn-success {
    background: #fff;
    color: var(--theam-color);
    border: none;
}

.education .education-info .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--ui-shadow-md);
}

.education .education-info .btn-danger {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.6);
    color: #fff;
}

.education .education-info .btn-danger:hover {
    background: rgba(255,255,255,0.15);
}

.education .education-cover {
    border-radius: var(--ui-radius-lg);
    overflow: hidden;
    box-shadow: var(--ui-shadow-md);
    padding: 8px;
}

.education .education-cover img {
    border-radius: var(--ui-radius-md);
}

/* Section titles (product listings) */
.education .education-title,
.title_box {
    float: none;
    border-bottom: none;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.education .education-title h3,
.title_box span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ui-text);
    background: none;
    padding: 0;
    margin: 0;
    width: auto;
    display: inline-block;
}

.education .education-title::before,
.title_box::before {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(to left, var(--ui-border), transparent);
    order: 2;
}

.title_box::before {
    position: static;
    z-index: auto;
    border-bottom: none;
    top: auto;
}

.title_box span {
    order: 1;
    position: relative;
    padding-right: 0.75rem;
}

.title_box span::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--theam-color);
    border-radius: var(--ui-radius-pill);
}

/* Product slide cards (edu-box) */
.education .education-list .edu-box .img-box {
    float: none;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    background: var(--ui-surface);
    overflow: hidden;
    box-shadow: var(--ui-shadow-sm);
    transition: all var(--ui-transition);
}

.education .education-list .edu-box:hover .img-box {
    transform: translateY(-4px);
    box-shadow: var(--ui-shadow-md);
    border-color: color-mix(in srgb, var(--theam-color) 25%, var(--ui-border));
}

.education .education-list .edu-box .img-box img {
    float: none;
    border-radius: 0;
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.education .education-list .edu-box:hover .img-box img {
    transform: scale(1.05);
}

.education .education-list .edu-box a {
    float: none;
    color: var(--ui-text);
    margin-top: 0.75rem;
    display: block;
    text-align: center;
    font-weight: 500;
    transition: color var(--ui-transition);
}

.education .education-list .edu-box a:hover {
    color: var(--theam-color);
}

.education .education-list .edu-box a h2 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.education .product-price span {
    font-size: 14px;
}

/* Grid product cards (partial) */
.product-listing-block .card {
    border-radius: var(--ui-radius-lg) !important;
    border: 1px solid var(--ui-border) !important;
    box-shadow: var(--ui-shadow-sm) !important;
    transition: all var(--ui-transition);
    overflow: hidden;
}

.product-listing-block .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ui-shadow-md) !important;
    border-color: color-mix(in srgb, var(--theam-color) 20%, var(--ui-border)) !important;
}

.product-listing-block .card-img-top {
    transition: transform 0.4s ease;
}

.product-listing-block .card:hover .card-img-top {
    transform: scale(1.04);
}

/* ── Blog slider ── */
.blog-slider {
    padding: 3rem 0;
    background: var(--ui-surface);
    margin-top: 2rem;
}

.blog-slider .uni-box {
    border-radius: var(--ui-radius-lg);
    overflow: hidden;
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow-sm);
    border: 1px solid var(--ui-border);
    transition: all var(--ui-transition);
}

.blog-slider .uni-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--ui-shadow-md);
}

.blog-slider .uni-box .img-box {
    overflow: hidden;
}

.blog-slider .uni-box img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-slider .uni-box:hover img {
    transform: scale(1.05);
}

.blog-slider .uni-box::after {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.75) 0%, transparent 60%);
}

.blog-slider .uni-swiper h2 {
    font-size: 14px;
    font-weight: 600;
    bottom: 12px;
    padding: 0 14px;
}


/* ── Products listing page ── */
.products_page_color {
    background: var(--ui-surface-muted) !important;
    padding: 2rem 0 3rem !important;
}

.products_page_color .title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ui-text);
}

.products_page_color .section-title {
    border-bottom-color: var(--theam-color) !important;
    color: var(--ui-text);
}

.products-filter {
    border: 1px solid var(--ui-border) !important;
    border-radius: var(--ui-radius-md) !important;
    box-shadow: var(--ui-shadow-sm) !important;
}

.products-grid .product-card {
    border: 1px solid var(--ui-border) !important;
    border-radius: var(--ui-radius-lg) !important;
    box-shadow: var(--ui-shadow-sm) !important;
}

.products-grid .product-card:hover {
    border-color: color-mix(in srgb, var(--theam-color) 25%, var(--ui-border)) !important;
    box-shadow: var(--ui-shadow-lg) !important;
}

.products-grid .product-title {
    font-size: 1rem;
    font-weight: 600;
}

.products-grid .product-actions {
    background: var(--ui-surface-muted);
    border-top: 1px solid var(--ui-border);
}

.products-grid .price-current {
    color: var(--theam-color) !important;
}

.categoryslider .uni-box {
    border-radius: var(--ui-radius-md);
    overflow: hidden;
    border: 1px solid var(--ui-border);
    transition: all var(--ui-transition);
}

.categoryslider .uni-box:hover {
    box-shadow: var(--ui-shadow-md);
    transform: translateY(-2px);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--theam-color) !important;
    background: var(--ui-surface);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: var(--ui-shadow-md);
    transition: all var(--ui-transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--theam-color);
    color: #fff !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 16px !important;
    font-weight: 700;
}


/* ── Single product page ── */
.single_page_color.prodact {
    padding: 2rem 0 3rem;
}

.single_page_color .title h1 {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ui-text);
    margin-bottom: 1.5rem;
}

.prodact .prodact-display {
    background: var(--ui-surface);
    border-radius: var(--ui-radius-xl);
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow-sm);
    padding: 2rem;
    margin-bottom: 2rem;
}

.prodact .product-gallery .main-image {
    background: var(--ui-surface-muted);
    border-radius: var(--ui-radius-lg);
    padding: 1rem;
    border: 1px solid var(--ui-border);
    overflow: hidden;
}

.prodact .product-gallery .main-image img {
    border-radius: var(--ui-radius-md);
}

.prodact .gallery-thumb {
    border-radius: var(--ui-radius-sm) !important;
    border: 2px solid transparent !important;
    transition: all var(--ui-transition);
}

.prodact .gallery-thumb:hover {
    border-color: var(--theam-color) !important;
    opacity: 1;
}

.prodact .product-info,
.prodact .variablebox {
    padding: 0.5rem 0;
}

.prodact .price,
.prodact .price-with-discount .current-price {
    color: var(--theam-color);
}

.prodact .buy-button a,
.prodact .variablebox .buy-button a {
    border-radius: var(--ui-radius-sm);
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    transition: all var(--ui-transition);
}

.prodact .buy-button a:hover,
.prodact .variablebox .buy-button a:hover {
    transform: translateY(-1px);
    box-shadow: var(--ui-shadow-md);
}

.prodact .nav-tabs {
    border-bottom: 2px solid var(--ui-border);
    gap: 0.25rem;
}

.prodact .nav-tabs .nav-link {
    border: none;
    border-radius: var(--ui-radius-sm) var(--ui-radius-sm) 0 0;
    color: var(--ui-text-muted);
    font-weight: 500;
    padding: 0.65rem 1.25rem;
    transition: all var(--ui-transition);
}

.prodact .nav-tabs .nav-link.active {
    color: var(--theam-color);
    background: color-mix(in srgb, var(--theam-color) 8%, transparent);
    border-bottom: 2px solid var(--theam-color);
}


/* ── Brands section ── */
.brands-section {
    background: var(--ui-surface) !important;
    border-top: 1px solid var(--ui-border);
    border-bottom: 1px solid var(--ui-border);
}

.brand-link {
    border: 1px solid var(--ui-border) !important;
    box-shadow: var(--ui-shadow-sm) !important;
    border-radius: var(--ui-radius-md) !important;
}

.brand-link:hover {
    border-color: color-mix(in srgb, var(--theam-color) 30%, var(--ui-border)) !important;
    box-shadow: var(--ui-shadow-md) !important;
}

/* ── Pagination ── */
.pagination-wrapper .pagination .page-link {
    border-radius: var(--ui-radius-sm);
    margin: 0 2px;
    border-color: var(--ui-border);
    color: var(--ui-text);
    transition: all var(--ui-transition);
}

.pagination-wrapper .pagination .page-item.active .page-link {
    background: var(--theam-color);
    border-color: var(--theam-color);
}

.pagination-wrapper .pagination .page-link:hover {
    background: color-mix(in srgb, var(--theam-color) 10%, transparent);
    border-color: var(--theam-color);
    color: var(--theam-color);
}

/* ── Alerts & badges ── */
.alert {
    border-radius: var(--ui-radius-md);
    border: none;
    box-shadow: var(--ui-shadow-sm);
}

.badge {
    border-radius: var(--ui-radius-sm);
    font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .slider .container {
        border-radius: var(--ui-radius-md);
    }

    .education .education-box {
        padding: 1.5rem;
    }

    .prodact .prodact-display {
        padding: 1.25rem;
    }
}

/* ── Cart page ── */
.cart-page .card {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    box-shadow: var(--ui-shadow-sm);
}

.cart-page .cart-item.card {
    transition: box-shadow var(--ui-transition);
}

.cart-page .cart-item.card:hover {
    box-shadow: var(--ui-shadow-md);
}

.cart-page h1 {
    font-weight: 700;
    color: var(--ui-text);
}

/* ── Blog listing ── */
.last_businesses .last_blog_box {
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    overflow: hidden;
    box-shadow: var(--ui-shadow-sm);
    margin-bottom: 1.5rem;
    transition: all var(--ui-transition);
}

.last_businesses .last_blog_box:hover {
    transform: translateY(-3px);
    box-shadow: var(--ui-shadow-md);
}

.last_businesses .last_blog_box .img_box {
    overflow: hidden;
}

.last_businesses .last_blog_box .img_box img {
    transition: transform 0.4s ease;
}

.last_businesses .last_blog_box:hover .img_box img {
    transform: scale(1.03);
}

.last_businesses .last_blog_box .title h2 {
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1rem;
    line-height: 1.6;
}

.last_businesses .last_blog_box .title a {
    color: var(--ui-text);
    transition: color var(--ui-transition);
}

.last_businesses .last_blog_box .title a:hover {
    color: var(--theam-color);
}

/* ── Custom pagination (custom_pagination.php) ── */
.pager .active > .page-link,
.pager .page-link.active {
    background: var(--theam-secend-color);
    border-color: var(--theam-secend-color);
    color: #fff;
}

.pager .page-link {
    color: var(--text-color);
}

/* ── Auth verify page ── */
.auth-input-wrapper {
    direction: ltr;
}

/* ── Bootstrap label badges (checkout, etc.) ── */
.bg-label-secondary {
    background-color: #e7ebef !important;
    color: #69809a !important;
}

.bg-label-success {
    background-color: #dff9ec !important;
    color: #39da8a !important;
}

.bg-label-info {
    background-color: #d6f7fa !important;
    color: #00cfdd !important;
}

.bg-label-warning {
    background-color: #fff2e1 !important;
    color: #fdac41 !important;
}

.bg-label-danger {
    background-color: #ffe5e5 !important;
    color: #ff5b5c !important;
}

.bg-label-light {
    background-color: #fbfbfc !important;
    color: #e5e9ed !important;
}

.bg-label-dark {
    background-color: #e2e4e6 !important;
    color: #495563 !important;
}

.bg-label-gray {
    background-color: rgba(242, 243, 245, 0.92) !important;
    color: rgba(38, 60, 85, 0.5) !important;
}

/* ── Archive filter terms (brands, attributes) ── */
.archive-terms-page {
    padding: 8px 0 48px;
    width: 100%;
}

.archive-terms-header {
    text-align: center;
    margin-bottom: 28px;
}

.archive-terms-header__title {
    position: relative;
    margin-bottom: 12px;
}

.archive-terms-header__title::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--theam-color);
    z-index: 0;
    transform: translateY(-50%);
}

.archive-terms-header h1 {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin: 0;
    padding: 0 20px;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--theam-color);
    background: #fff;
}

.archive-terms-header__desc {
    margin: 0 auto 8px;
    max-width: 520px;
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.7;
}

.archive-terms-header__meta {
    margin: 0;
    font-size: 0.85rem;
    color: #868e96;
}

.archive-terms-header__meta-sep {
    margin: 0 6px;
}

.archive-terms-search-wrap {
    max-width: 360px;
    margin: 0 auto 28px;
}

.archive-terms-search {
    border-radius: 999px;
    padding: 10px 18px;
    border: 1px solid #dee2e6;
    text-align: center;
}

.archive-terms-search:focus {
    border-color: var(--theam-color);
    box-shadow: 0 0 0 0.2rem rgba(2, 40, 87, 0.12);
}

.archive-terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 16px;
    width: 100%;
}

.archive-term-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e8eef4;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.archive-term-card:hover {
    text-decoration: none;
    color: inherit;
    border-color: var(--theam-color);
    box-shadow: 0 8px 24px rgba(2, 40, 87, 0.1);
    transform: translateY(-3px);
}

.archive-term-card--empty {
    opacity: 0.72;
    cursor: not-allowed;
    pointer-events: none;
}

.archive-term-card--empty:hover {
    transform: none;
    box-shadow: none;
    border-color: #e8eef4;
}

.archive-term-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 18px 14px;
    background: #f4faff;
    aspect-ratio: 4 / 3;
}

.archive-term-card__media img {
    max-width: 100%;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.archive-term-card__placeholder {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--theam-color);
    opacity: 0.35;
}

.archive-term-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 10px 14px;
    text-align: center;
    flex: 1;
}

.archive-term-card__body--compact {
    padding-top: 8px;
}

.archive-term-card__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--theam-color);
}

.archive-term-card__desc {
    margin: 0;
    font-size: 0.78rem;
    color: #868e96;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-term-card__badge {
    display: inline-block;
    margin-top: 2px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
    background: var(--theam-color);
    border-radius: 999px;
    white-space: nowrap;
}

.archive-term-card--empty .archive-term-card__badge {
    background: #adb5bd;
}

.archive-terms-empty-search {
    margin-top: 24px;
    font-size: 0.95rem;
}

.archive-terms-alert {
    border-radius: 12px;
    max-width: 480px;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .archive-terms-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .archive-terms-header h1 {
        font-size: 1.35rem;
    }

    .archive-term-card__media {
        min-height: 80px;
        padding: 14px 10px;
    }

    .archive-term-card__title {
        font-size: 0.85rem;
    }
}


/* ── Generic cards ── */
.card {
    border-radius: var(--ui-radius-md);
    border-color: var(--ui-border);
}

.card.shadow-sm {
    box-shadow: var(--ui-shadow-sm) !important;
}

/* ══════════════════════════════════════
   HOMEPAGE
   ══════════════════════════════════════ */
.home-page {
    --home-brand: var(--theam-color);
    --home-accent: var(--theam-secend-color);
    background: var(--theam-bg-color, var(--ui-surface-muted));
}

.home-page .deals-arena__backdrop {
    background:
        radial-gradient(ellipse 80% 60% at 85% 15%, color-mix(in srgb, var(--home-accent) 28%, transparent), transparent 55%),
        radial-gradient(ellipse 70% 55% at 10% 90%, color-mix(in srgb, var(--home-brand) 45%, transparent), transparent 50%),
        linear-gradient(
            145deg,
            color-mix(in srgb, var(--home-brand) 70%, #000) 0%,
            var(--home-brand) 50%,
            color-mix(in srgb, var(--home-brand) 65%, #000) 100%
        );
}

.home-page .home-slider-slide {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--home-brand) 65%, #000) 0%,
        color-mix(in srgb, var(--home-brand) 80%, #000) 100%
    );
}

.home-page .home-slider-slide::after {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.08) 40%,
        transparent 65%
    );
}

@media (max-width: 767.98px) {
    .home-slider-slide {
        aspect-ratio: 16 / 10;
        min-height: 180px;
        max-height: 360px;
    }

    .home-slider-slide__caption,
    .slider-info {
        padding: 1rem 1.1rem;
        max-width: 100%;
        font-size: 0.9rem;
    }

    .home-slider-nav {
        width: 38px;
        height: 38px;
    }

    .home-slider-nav--prev { right: 0.5rem; }
    .home-slider-nav--next { left: 0.5rem; }
}

.home-about {
    background: var(--ui-surface);
    padding: 3.5rem 0;
}

.home-about .about-titr h1,
.home-about .about-titr h2 {
    color: var(--theam-color);
}

.home-about .about-titr .home-about__lead {
    margin: 0.35rem 0 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--theam-secend-color, var(--ui-text-muted));
    line-height: 1.7;
}

/* Featured product banner */
.home-featured {
    padding: 1rem 0 0.5rem;
}

.home-featured__box {
    background: linear-gradient(135deg, var(--theam-color) 0%, color-mix(in srgb, var(--theam-color) 80%, #fff) 100%);
    border-radius: var(--ui-radius-xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    box-shadow: var(--ui-shadow-lg);
    overflow: hidden;
    position: relative;
}

.home-featured__label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--ui-radius-pill);
    padding: 0.25rem 0.85rem;
    font-size: 12px;
    margin-bottom: 0.75rem;
}

.home-featured__content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.home-featured__content p {
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.home-featured__actions .btn-light {
    color: var(--theam-color);
    font-weight: 600;
    border-radius: var(--ui-radius-sm);
}

.home-featured__image {
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--ui-radius-lg);
    padding: 0.75rem;
    text-align: center;
}

.home-featured__image img {
    border-radius: var(--ui-radius-md);
    max-height: 260px;
    object-fit: contain;
}

/* Product sections on homepage */
.home-product-section {
    padding: 2.5rem 0;
    background: var(--ui-surface);
    border-top: 1px solid var(--ui-border);
    border-bottom: 1px solid var(--ui-border);
}

.home-section-header__title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.home-section-header__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--ui-radius-md);
    background: color-mix(in srgb, var(--theam-color) 12%, #fff);
    color: var(--theam-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.home-section-header__title {
    font-weight: 700;
    color: var(--theam-color);
}

.home-section-header__link {
    font-weight: 500;
}

/* Home categories below slider */
.home-categories-section {
    padding: 1.25rem 0 0.5rem;
    background: var(--ui-surface);
}

.home-categories-grid {
    display: grid;
    grid-template-columns: repeat(var(--home-categories-cols, 2), minmax(0, 1fr));
    gap: 0.75rem;
}

.home-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 118px;
    padding: 0.75rem;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow-sm);
    text-decoration: none;
    color: var(--ui-text);
    transition: border-color var(--ui-transition), box-shadow var(--ui-transition), transform var(--ui-transition);
}

.home-category-card:hover {
    color: var(--theam-color);
    border-color: color-mix(in srgb, var(--theam-color) 28%, var(--ui-border));
    box-shadow: var(--ui-shadow-md);
    transform: translateY(-2px);
}

.home-category-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: var(--ui-radius-md);
    overflow: hidden;
    background: var(--ui-surface-muted);
}

.home-category-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-category-card__label {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

.home-category-card--text-only {
    min-height: 88px;
    background: color-mix(in srgb, var(--theam-color) 6%, var(--ui-surface));
}

.home-category-card--text-only .home-category-card__label {
    font-size: 0.92rem;
}

.home-categories-swiper-wrap {
    padding: 0 2.75rem;
}

@media (min-width: 768px) {
    .home-categories-grid {
        gap: 1rem;
    }
}

@media (max-width: 575.98px) {
    .home-categories-grid[data-count="4"],
    .home-categories-grid[data-count="5"] {
        --home-categories-cols: 2;
    }
}

@media (max-width: 768px) {
    .home-categories-swiper-wrap {
        padding: 0;
    }
}

.home-product-swiper-wrap {
    padding: 0;
}

.home-product-nav,
.home-showcase-nav {
    width: 34px;
    height: 34px;
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: var(--ui-radius-sm);
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    color: var(--theam-color);
    box-shadow: var(--ui-shadow-sm);
    transition: background var(--ui-transition), color var(--ui-transition), border-color var(--ui-transition);
}

.home-product-nav::after,
.home-showcase-nav::after {
    font-size: 13px;
    font-weight: 700;
}

.home-product-nav:hover,
.home-showcase-nav:hover {
    background: var(--theam-color);
    color: #fff;
    border-color: var(--theam-color);
}

.home-product-nav--prev,
.home-showcase-nav--prev {
    right: 0;
    left: auto;
}

.home-product-nav--next,
.home-showcase-nav--next {
    left: 0;
    right: auto;
}

.home-product-nav.swiper-button-disabled,
.home-showcase-nav.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.home-swiper-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface);
    color: var(--theam-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ui-shadow-sm);
    transition: all var(--ui-transition);
    cursor: pointer;
}

.home-swiper-btn:hover {
    background: var(--theam-color);
    color: #fff;
    border-color: var(--theam-color);
}

.home-swiper-btn--prev { right: 0; }
.home-swiper-btn--next { left: 0; }

/* Home product card — legacy alias kept for swiper wrappers */
.home-product-card,
.sin-product-card {
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all var(--ui-transition);
    box-shadow: var(--ui-shadow-sm);
}

.home-product-card:hover,
.sin-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ui-shadow-md);
    border-color: color-mix(in srgb, var(--theam-color) 25%, var(--ui-border));
}

.home-product-card__media,
.sin-product-card__media {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--ui-surface-muted);
}

.home-product-card__img,
.sin-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-product-card:hover .home-product-card__img,
.sin-product-card:hover .sin-product-card__img {
    transform: scale(1.06);
}

.home-product-card__badges,
.sin-product-card__badges {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.home-product-card__badge,
.sin-product-card__badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.home-product-card__badge--sale,
.sin-product-card__badge--sale {
    background: var(--theam-secend-color, #e11d48);
}

.home-product-card__badge--free,
.sin-product-card__badge--free {
    background: #059669;
}

.sin-product-card__badge--variable {
    background: color-mix(in srgb, var(--theam-color) 85%, #1e293b);
}

.home-product-card__body,
.sin-product-card__body {
    padding: 0.9rem 0.95rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.55rem;
}

.home-product-card__title,
.sin-product-card__title {
    color: var(--theam-txt-color, var(--ui-text));
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.75em;
    text-decoration: none;
}

.home-product-card__title:hover,
.sin-product-card__title:hover {
    color: var(--theam-color);
}

.home-product-card__price-current,
.sin-product-card__price-current {
    color: var(--theam-color);
    font-weight: 700;
    font-size: 0.95rem;
}

.home-product-card__price-current small,
.sin-product-card__price-current small {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.85;
}

.home-product-card__price-current--free,
.sin-product-card__price-current--free {
    color: #059669;
}

.home-product-card__price-old,
.sin-product-card__price-old {
    display: block;
    color: var(--ui-text-muted);
    font-size: 0.78rem;
    text-decoration: line-through;
    margin-top: 0.1rem;
}

.home-product-card__price-contact,
.sin-product-card__price-contact {
    color: var(--ui-text-muted);
    font-size: 0.85rem;
}

.home-product-card__price-range,
.sin-product-card__price-range {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.35rem;
    line-height: 1.4;
}

.home-product-card__price-from,
.home-product-card__price-sep,
.sin-product-card__price-from,
.sin-product-card__price-sep {
    font-size: 0.72rem;
    color: var(--ui-text-muted);
    font-weight: 500;
}

.home-product-card__actions,
.sin-product-card__actions {
    display: flex;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.15rem;
}

.sin-product-card__cta {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.55rem 0.75rem;
    border-radius: var(--ui-radius-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sin-product-card__cta i {
    font-size: 1.15rem;
    line-height: 1;
}

.sin-product-card__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--theam-color) 28%, transparent);
}

.sin-product-card__cta:disabled {
    opacity: 0.75;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.sin-product-card__media-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.home-product-card__view {
    flex: 1;
    font-size: 12px;
}

.home-product-card__cart {
    width: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: var(--theam-color);
    color: var(--theam-color);
}

.home-product-card__cart i {
    font-size: 1.2rem;
    line-height: 1;
}

.home-product-card__cart:hover {
    background: var(--theam-color);
    color: #fff;
    border-color: var(--theam-color);
}

/* Home blog */
.home-blog {
    padding: 2.5rem 0 0;
    background: var(--ui-surface);
    margin-top: 1rem;
}

.home-blog-card {
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--ui-shadow-sm);
    transition: all var(--ui-transition);
}

.home-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ui-shadow-md);
}

.home-blog-card__media {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.home-blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-blog-card:hover .home-blog-card__media img {
    transform: scale(1.05);
}

.home-blog-card__body {
    padding: 0.85rem 1rem 1rem;
}

.home-blog-card__body h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--ui-text);
    margin: 0;
}

.home-blog-card__body a:hover h3 {
    color: var(--theam-color);
}

/* Attribute showcase (brands etc.) on homepage */
.home-showcase-section {
    padding: 2.5rem 0;
    background: var(--theam-bg-color, var(--ui-surface-muted));
}

.home-showcase-swiper-wrap {
    padding: 0 2.75rem;
}

.home-showcase-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    min-height: 140px;
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    box-shadow: var(--ui-shadow-sm);
    text-decoration: none;
    color: var(--theam-txt-color, var(--ui-text));
    transition: all var(--ui-transition);
    height: 100%;
}

.home-showcase-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ui-shadow-md);
    border-color: color-mix(in srgb, var(--theam-color) 30%, var(--ui-border));
    color: var(--theam-color);
}

.home-showcase-card--disabled {
    opacity: 0.55;
    cursor: default;
    pointer-events: none;
}

.home-showcase-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--ui-surface-muted);
    border: 1px solid var(--ui-border);
    overflow: hidden;
    flex-shrink: 0;
}

.home-showcase-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-showcase-card__title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-showcase-card__count {
    font-size: 11px;
    color: var(--ui-text-muted);
}

/* Category filters sidebar */
.products-filters-sidebar .product-filter-block .card-header {
    background: var(--ui-surface) !important;
}

.product-filter-block__head .product-filter-collapse-btn {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: none;
    background: var(--ui-surface-muted);
    color: var(--ui-text-muted);
    border-radius: var(--ui-radius-sm);
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--ui-transition), color var(--ui-transition);
}

.product-filter-block__head .product-filter-collapse-btn:hover {
    background: color-mix(in srgb, var(--theam-color) 12%, var(--ui-surface-muted));
    color: var(--theam-color);
}

.product-filter-block.is-collapsed .product-filter-block__body {
    display: none;
}

.products-filters-mobile-toggle {
    font-weight: 600;
    border-color: var(--theam-color);
    color: var(--theam-color);
}

.products-filters-mobile-toggle:hover {
    background: var(--theam-color);
    color: var(--theam-text-color, #fff);
    border-color: var(--theam-color);
}

.products-filters-overlay {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, 0.45);
}

.products-filters-sidebar__close {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--ui-surface-muted);
    color: var(--ui-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .products-layout-with-filters > .products-filters-sidebar {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1050;
        width: min(320px, 88vw) !important;
        max-width: 100%;
        flex: none;
        margin: 0 !important;
        padding: 0.75rem 0.75rem 1.5rem;
        background: var(--ui-surface);
        box-shadow: var(--ui-shadow-lg);
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.28s ease;
    }

    .products-layout-with-filters > .products-filters-sidebar.is-open {
        display: block;
        transform: translateX(0);
    }

    body.products-filters-open {
        overflow: hidden;
    }

    .products-filters-sidebar .products-filters-sidebar__head {
        padding-top: 2.25rem;
    }
}

@media (min-width: 992px) {
    .products-filters-sidebar {
        position: static;
        transform: none;
        visibility: visible;
    }
}

.products-filters-sidebar .product-filter-search-wrap .input-group-text {
    background: var(--ui-surface-muted);
    border-color: var(--ui-border);
    color: var(--theam-color);
}

.product-filter-terms-scroll {
    max-height: 11.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding-inline-start: 2px;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--theam-color) 40%, transparent) transparent;
}

.product-filter-terms-scroll--visual {
    max-height: 14.5rem;
}

.product-filter-terms-scroll::-webkit-scrollbar {
    width: 5px;
}

.product-filter-terms-scroll::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--theam-color) 35%, #ccc);
    border-radius: var(--ui-radius-pill);
}

.product-filter-term-item {
    margin-bottom: 0.35rem;
}

.product-filter-term-item .form-check-label {
    font-size: 13px;
    cursor: pointer;
}

.product-filter-no-match {
    font-size: 12px;
}

.filter-term-img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: var(--ui-radius-sm);
}

.filter-color-swatch {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    margin-inline-end: 0.35rem;
}

/* پیش‌فرض: تصویر دیده شود (بدون JS). با js-lazy-images فقط fade-in بعد از load */
img[loading="lazy"] {
    opacity: 1;
}

html.js-lazy-images img[loading="lazy"]:not(.loaded) {
    opacity: 0;
    transition: opacity 0.3s ease;
}

html.js-lazy-images img[loading="lazy"].loaded {
    opacity: 1;
}

/* ══════════════════════════════════════
   PRODUCTS LISTING (professional)
   ══════════════════════════════════════ */
.products_page_color {
    padding: 2rem 0 3rem !important;
    background: var(--theam-bg-color, var(--ui-surface-muted)) !important;
}

.products_page_color > .container > .row > .title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--theam-color);
    margin-bottom: 0.25rem;
}

.products_page_color .section-title {
    color: var(--theam-color) !important;
    border-bottom-color: var(--theam-color) !important;
}

.products_page_color .products-filter {
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    box-shadow: var(--ui-shadow-sm);
    padding: 1.25rem;
}

.products_page_color .products-grid .product-card,
.products_page_color .products-grid .sin-product-card {
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    overflow: hidden;
    box-shadow: var(--ui-shadow-sm);
    transition: all var(--ui-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.products_page_color .products-grid .product-card:hover,
.products_page_color .products-grid .sin-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ui-shadow-lg);
    border-color: color-mix(in srgb, var(--theam-color) 30%, var(--ui-border));
}

.products_page_color .product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--ui-surface-muted);
    height: auto !important;
}

.products_page_color .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.products_page_color .product-card:hover .product-image img {
    transform: scale(1.06);
}

.products_page_color .product-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.products_page_color .product-badges .badge {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    border-radius: var(--ui-radius-sm);
}

.products_page_color .product-info {
    padding: 1rem;
    flex: 1;
}

.products_page_color .product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--theam-txt-color, var(--ui-text));
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.products_page_color .price-current {
    color: var(--theam-color) !important;
    font-size: 1.05rem;
    font-weight: 700;
}

.products_page_color .price-original {
    color: var(--ui-text-muted) !important;
    font-size: 0.85rem;
}

.products_page_color .product-actions {
    padding: 0.75rem 1rem;
    background: var(--ui-surface-muted);
    border-top: 1px solid var(--ui-border);
    display: flex;
    gap: 0.5rem;
}

.products_page_color .product-actions .btn-primary {
    flex: 1;
    font-size: 13px;
}

.products_page_color .product-actions .quick-add-cart {
    width: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.products_page_color .swiper-button-next,
.products_page_color .swiper-button-prev {
    color: var(--theam-color) !important;
}

.products_page_color .form-select:focus {
    border-color: var(--theam-color);
}

/* ══════════════════════════════════════
   SINGLE PRODUCT (professional)
   ══════════════════════════════════════ */
.single_page_color.prodact {
    padding: 2rem 0 3rem;
    background: var(--theam-bg-color, var(--ui-surface-muted));
}

.single_page_color.prodact > .container > .row > .title h1 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--theam-color);
    line-height: 1.45;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid color-mix(in srgb, var(--theam-color) 15%, var(--ui-border));
}

.prodact .prodact-display {
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-xl);
    box-shadow: var(--ui-shadow-md);
    padding: 2rem;
    margin-bottom: 2rem;
}

.prodact .product-gallery .main-image {
    background: var(--ui-surface-muted);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    padding: 1rem;
    text-align: center;
}

.prodact .product-gallery .main-image img {
    max-height: 420px;
    object-fit: contain;
    border-radius: var(--ui-radius-md);
}

.prodact .gallery-thumb {
    border-radius: var(--ui-radius-sm) !important;
    border: 2px solid transparent !important;
    cursor: pointer;
    aspect-ratio: 1;
    object-fit: cover;
}

.prodact .gallery-thumb:hover,
.prodact .gallery-thumb.active {
    border-color: var(--theam-color) !important;
    opacity: 1;
}

.prodact .product-info {
    padding-right: 0.5rem;
}

.prodact .price-with-discount .current-price {
    color: var(--theam-color) !important;
    font-size: 1.75rem !important;
}

.prodact .price-with-discount .original-price {
    color: var(--ui-text-muted) !important;
}

.prodact .discount-info .badge {
    background: var(--theam-secend-color) !important;
}

.prodact .stock-status.in-stock {
    background: color-mix(in srgb, var(--theam-color) 10%, #fff);
    border-color: color-mix(in srgb, var(--theam-color) 35%, #fff);
    color: var(--theam-color);
}

.prodact .stock-status.out-of-stock {
    background: color-mix(in srgb, var(--theam-secend-color) 12%, #fff);
    border-color: color-mix(in srgb, var(--theam-secend-color) 40%, #fff);
    color: color-mix(in srgb, var(--theam-secend-color) 85%, #000);
}

.prodact .buy-button .btn,
.prodact .variablebox .buy-button a,
.prodact .buy-button a {
    background: var(--theam-color) !important;
    border-color: var(--theam-color) !important;
    color: var(--theam-text-color, #fff) !important;
    border-radius: var(--ui-radius-sm);
    font-weight: 600;
    padding: 0.7rem 1.75rem;
    font-size: 1rem;
    transition: all var(--ui-transition);
}

.prodact .buy-button .btn:hover,
.prodact .variablebox .buy-button a:hover,
.prodact .buy-button a:hover {
    filter: brightness(0.92);
    transform: translateY(-1px);
    box-shadow: var(--ui-shadow-md);
}

.prodact .product-highlight-attributes {
    background: color-mix(in srgb, var(--theam-color) 6%, #fff);
    border: 1px solid color-mix(in srgb, var(--theam-color) 15%, var(--ui-border));
    border-radius: var(--ui-radius-md);
    padding: 0.85rem 1rem;
}

.prodact .tab-content {
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-top: none;
    border-radius: 0 0 var(--ui-radius-md) var(--ui-radius-md);
    padding: 1.5rem;
}


/* ── Product gallery (single product) ── */
.product-gallery--pro {
    position: sticky;
    top: 100px;
}

.product-gallery__main {
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-xl);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--ui-shadow-sm);
    overflow: hidden;
}

.product-gallery__main-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: var(--ui-radius-md);
    transition: opacity 0.25s ease;
}

.product-gallery__thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
}

.product-gallery__thumb {
    position: relative;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid var(--ui-border);
    border-radius: var(--ui-radius-md);
    background: var(--ui-surface);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--ui-transition);
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-gallery__thumb:hover,
.product-gallery__thumb.is-active {
    border-color: var(--theam-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theam-color) 18%, transparent);
}

.product-gallery__thumb--main {
    border-color: color-mix(in srgb, var(--theam-color) 50%, var(--ui-border));
}

.product-gallery__thumb-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    background: var(--theam-color);
    color: var(--theam-text-color, #fff);
    padding: 1px 0;
    line-height: 1.4;
}

/* ══════════════════════════════════════
   PRODUCT PAGE — هماهنگ با تم سایت (هدر/فوتر)
   ══════════════════════════════════════ */
.single_page_color.prodact.product-page {
    padding: 2rem 0 2.5rem;
    float: none;
    width: 100%;
}

.product-page__header {
    margin-bottom: 1rem;
    padding-bottom: 0;
}

.product-page__title {
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    font-weight: 700;
    color: var(--theam-color);
    line-height: 1.55;
    margin: 0;
    padding: 0 0 0.75rem;
    border-bottom: 2px solid color-mix(in srgb, var(--theam-color) 15%, var(--ui-border));
}

.product-page__title--panel {
    margin-bottom: 1rem;
}

.product-page .prodact-display,
.product-page .prodact-display.product-page__top {
    float: none !important;
    width: 100% !important;
    margin: 0 0 1.75rem !important;
    padding: 2rem !important;
    border: 1px solid var(--ui-border) !important;
    border-radius: var(--ui-radius-xl) !important;
    background: var(--ui-surface) !important;
    box-shadow: var(--ui-shadow-sm) !important;
    justify-content: flex-start !important;
    display: flex;
    flex-wrap: wrap;
}

.product-page__gallery {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.product-page__gallery-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    max-height: 420px;
    padding: 1rem;
    background: var(--ui-surface);
    border-radius: var(--ui-radius-lg);
    margin-bottom: 0.85rem;
    box-shadow: var(--ui-shadow-sm);
}

.product-page__gallery-main-img {
    max-width: 100%;
    max-height: 380px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-page__gallery-thumbs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.product-page__gallery-thumb {
    position: relative;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    padding: 0;
    border: 2px solid var(--ui-border);
    border-radius: var(--ui-radius-sm);
    background: var(--ui-surface);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--ui-transition), box-shadow var(--ui-transition);
}

.product-page__gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-page__gallery-thumb.is-active,
.product-page__gallery-thumb:hover {
    border-color: var(--theam-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theam-color) 15%, transparent);
}

.product-gallery__thumb--variation::after {
    content: '';
    position: absolute;
    inset-inline-end: 4px;
    bottom: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--theam-color);
    border: 1px solid #fff;
    pointer-events: none;
}

.product-page__buy-panel {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    height: 100%;
}

.product-page__short {
    font-size: 14px;
    line-height: 1.85;
    color: var(--ui-text-muted);
}

.product-page .stock-status {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0;
    border-radius: 0;
    border: none;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.product-page .stock-status--pending {
    background: var(--ui-surface-muted);
    color: var(--ui-text-muted);
}

.product-page .stock-status--pending i {
    color: var(--theam-color);
    font-size: 1.15rem;
    margin-top: 2px;
}

.product-page .stock-status.in-stock {
    background: transparent;
    color: var(--theam-color);
}

.product-page .stock-status.out-of-stock {
    background: transparent;
}

.product-page #variation-attributes .form-label {
    font-size: 14px;
    margin-bottom: 0.35rem;
}

.product-page #variation-attributes .form-select {
    max-width: 100%;
}

.product-page .quantity-wrapper {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    margin-bottom: 1rem;
}

.product-page .add-to-cart-section .btn-primary,
.product-page .add-to-cart-section .btn-lg {
    width: 100%;
    background: var(--theam-color) !important;
    border-color: var(--theam-color) !important;
    color: var(--theam-text-color, #fff) !important;
    font-weight: 600;
    padding: 0.8rem 1.25rem;
    border-radius: var(--ui-radius-sm);
}

.product-page .price-section .current-price,
.product-page .price-with-discount .current-price {
    color: var(--theam-color) !important;
}

.product-page__tabs {
    width: 100%;
    float: none;
    clear: both;
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem 1.5rem;
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-xl);
    box-shadow: var(--ui-shadow-sm);
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.product-page__tab-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    width: 100%;
    float: none !important;
    border-bottom: 1px solid var(--ui-border);
    padding: 0 0 0;
    gap: 0.25rem;
    margin: 0;
}

.product-page__tab-nav .nav-item {
    float: none !important;
    margin-bottom: 0;
}

.product-page__tab-nav .nav-link {
    border: none;
    border-radius: var(--ui-radius-sm) var(--ui-radius-sm) 0 0;
    color: var(--ui-text-muted);
    font-weight: 500;
    padding: 0.65rem 1.1rem;
    white-space: nowrap;
}

.product-page__tab-nav .nav-link.active {
    color: var(--theam-color);
    background: color-mix(in srgb, var(--theam-color) 8%, transparent);
    border-bottom: 2px solid var(--theam-color);
    margin-bottom: -2px;
}

.product-page__tabs .tab-content {
    padding: 1.25rem 0 0;
    border: none;
    border-radius: 0;
    float: none;
    width: 100%;
    background: transparent;
}

.product-page.prodact .product-highlight-attributes {
    background: var(--ui-surface-muted);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-md);
    padding: 0.85rem 1rem;
}

.product-page.prodact .product-highlight-attributes__row {
    line-height: 1.7;
}

.product-page__share {
    border-top: 1px solid var(--ui-border);
}

.product-page__share-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--theam-color);
}

.product-page.prodact .tab-content {
    border: none;
    background: transparent;
    padding: 1.25rem 0 0;
}

.product-page .quantity-control {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-sm);
}

.product-page .product-quantity-input {
    width: 5.5rem;
    min-width: 4.75rem;
    max-width: 7.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.product-page__tabs .tab-pane#description,
.product-page__tabs .tab-pane#description p {
    float: none;
    width: 100%;
}

.product-page__tabs .specs-table {
    width: 100%;
}

.product-page__tabs .specs-table .table {
    width: 100%;
    margin-bottom: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.product-page__tabs .specs-table th,
.product-page__tabs .specs-table td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--ui-border);
    word-break: break-word;
}

.product-page__tabs .specs-table th {
    width: 34%;
    background: var(--ui-surface-muted);
    font-weight: 600;
    color: var(--ui-text);
}

.product-page__tabs .specs-table tr:last-child th,
.product-page__tabs .specs-table tr:last-child td {
    border-bottom: none;
}

.product-page__tabs .specs-table .spec-term-list {
    gap: 0.45rem;
}

.product-page__tabs .specs-table .spec-term-item {
    background: var(--ui-surface);
    border-color: var(--ui-border);
}

@media (max-width: 768px) {
    .single_page_color.prodact.product-page {
        padding: 1rem 0 1.5rem;
    }

    .product-page .prodact-display,
    .product-page .prodact-display.product-page__top {
        padding: 0 !important;
        margin-bottom: 1rem !important;
    }

    .product-page__buy-panel {
        position: static;
        padding: 0 !important;
    }

    .product-page .add-to-cart-section .btn-primary,
    .product-page .add-to-cart-section .btn-lg {
        margin-bottom: 15px;
    }

    .product-page__tabs {
        padding: 1rem 0.85rem 1.1rem;
    }

    .product-page__tab-nav .nav-link {
        padding: 0.55rem 0.8rem;
        font-size: 0.9rem;
    }

    .home-product-section .container,
    .breadcrumb-nav + .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .home-product-swiper-wrap {
        padding: 0;
    }

    .product-page__tabs .specs-table th,
    .product-page__tabs .specs-table td {
        display: block;
        width: 100%;
        padding: 0.65rem 0.85rem;
    }

    .product-page__tabs .specs-table th {
        border-bottom: none;
        padding-bottom: 0.35rem;
    }

    .product-page__tabs .specs-table td {
        padding-top: 0;
        padding-bottom: 0.85rem;
    }
}

@media (min-width: 992px) {
    .product-page__buy-panel {
        position: sticky;
        top: 96px;
    }
}


/* ── شگفت‌انگیز — ویترین bento ── */
.deals-arena {
    position: relative;
    margin: 2.5rem 0;
    padding: 2.75rem 0 3rem;
    overflow: hidden;
    color: #fff;
}

.deals-arena__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 85% 15%, color-mix(in srgb, var(--theam-secend-color) 32%, transparent), transparent 55%),
        radial-gradient(ellipse 70% 55% at 10% 90%, color-mix(in srgb, var(--theam-color) 50%, transparent), transparent 50%),
        linear-gradient(
            145deg,
            color-mix(in srgb, var(--theam-color) 88%, #000) 0%,
            var(--theam-color) 45%,
            color-mix(in srgb, var(--theam-color) 75%, #000) 100%
        );
    z-index: 0;
}

.deals-arena__grid {
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 30%, transparent 100%);
}

.deals-arena__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.deals-arena__orb--1 {
    width: 280px;
    height: 280px;
    top: -80px;
    left: -60px;
    background: color-mix(in srgb, var(--theam-secend-color) 55%, transparent);
    animation: deals-orb-drift 14s ease-in-out infinite alternate;
}

.deals-arena__orb--2 {
    width: 220px;
    height: 220px;
    bottom: -40px;
    right: 8%;
    background: color-mix(in srgb, var(--theam-color) 35%, #fff 65%);
    animation: deals-orb-drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes deals-orb-drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(24px, -18px) scale(1.08); }
}

.deals-arena__inner {
    position: relative;
    z-index: 1;
}

.deals-arena__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.75rem;
}

.deals-arena__live {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.28rem 0.7rem 0.28rem 0.55rem;
    margin-bottom: 0.65rem;
    border-radius: var(--ui-radius-pill);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
}

.deals-arena__live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--theam-secend-color, #de2400);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--theam-secend-color, #de2400) 65%, transparent);
    animation: deals-live-pulse 1.8s ease-out infinite;
}

@keyframes deals-live-pulse {
    0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--theam-secend-color, #de2400) 70%, transparent); }
    70%  { box-shadow: 0 0 0 10px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

.deals-arena__title {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.25;
    color: #fff;
}

.deals-arena__lead {
    margin: 0.45rem 0 0;
    max-width: 36rem;
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
}

.deals-arena__view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 1rem;
    border-radius: var(--ui-radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: background var(--ui-transition), border-color var(--ui-transition), transform var(--ui-transition);
}

.deals-arena__view-all:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    transform: translateY(-1px);
}

.deals-arena__swiper-wrap {
    padding: 0;
}

.deals-arena-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.deals-arena-swiper .swiper-slide > .deal-hero {
    width: 100%;
}

.deals-arena .deals-arena__nav {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.deals-arena .deals-arena__nav::after {
    color: #fff;
    font-size: 1rem;
}

.deals-arena .deals-arena__nav:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.38);
}

.deals-arena .deals-arena__nav.swiper-button-disabled {
    opacity: 0.35;
}

/* ── کارت ویترین (hero) ── */
.deal-hero {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    border-radius: calc(var(--ui-radius-lg) + 4px);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

@media (min-width: 576px) {
    .deal-hero {
        flex-direction: row;
        align-items: stretch;
        min-height: 280px;
    }
}

.deal-hero__visual {
    position: relative;
    flex: 0 0 auto;
    min-height: 200px;
    margin: 0.65rem;
    border-radius: var(--ui-radius-md);
    background: #fff;
    overflow: hidden;
}

@media (min-width: 576px) {
    .deal-hero__visual {
        flex: 0 0 42%;
        min-height: 0;
        margin: 0.75rem;
        margin-left: 0.75rem;
    }
}

.deal-hero__media-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.deal-hero__img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    max-height: 260px;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 576px) {
    .deal-hero__img {
        min-height: 100%;
        max-height: none;
        padding: 1.1rem;
    }
}

.deal-hero:hover .deal-hero__img {
    transform: scale(1.04) translateY(-4px);
}

.deal-hero__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    min-width: 2.5rem;
    padding: 0.3rem 0.55rem;
    border-radius: var(--ui-radius-pill);
    background: color-mix(in srgb, var(--theam-color) 82%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    text-align: center;
    backdrop-filter: blur(6px);
}

.deal-hero__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.85rem 1rem 1rem;
}

@media (min-width: 576px) {
    .deal-hero__body {
        padding: 0.85rem 1rem 0.85rem 0;
        justify-content: center;
    }
}

.deal-hero__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: clamp(0.82rem, 1.8vw, 0.98rem);
    font-weight: 800;
    line-height: 1.5;
    color: #fff;
    text-decoration: none;
}

.deal-hero__title:hover {
    color: color-mix(in srgb, #fff 85%, var(--theam-secend-color, #de2400));
}

.deal-hero__variation {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0;
    padding: 0.4rem 0.55rem;
    border-radius: var(--ui-radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.45;
}

.deal-hero__variation i {
    color: var(--theam-secend-color, #de2400);
    font-size: 1rem;
}

.deal-hero__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.55rem;
    margin-top: 0.15rem;
}

.deal-hero__price-now {
    font-size: 1.05rem;
    font-weight: 900;
    color: #fff;
}

.deal-hero__price-now small {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
}

.deal-hero__price-was {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
}

.deal-hero__price-range {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.deal-hero__price-from,
.deal-hero__price-to {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.deal-hero__price-contact {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.deal-hero__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.35rem;
}

.deal-hero__cta {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 0.85rem;
    border-radius: var(--ui-radius-md);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff !important;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: transform var(--ui-transition), background var(--ui-transition), border-color var(--ui-transition);
}

.deal-hero__cta:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.38);
    color: #fff;
    transform: translateY(-1px);
}

.deal-hero__cart {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ui-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background var(--ui-transition), border-color var(--ui-transition);
}

.deal-hero__cart:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

/* ── کارت فشرده (tile) ── */
.deal-tile {
    position: relative;
    display: flex;
    gap: 0.75rem;
    height: 100%;
    padding: 0.65rem;
    border-radius: var(--ui-radius-lg);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform var(--ui-transition), border-color var(--ui-transition), box-shadow var(--ui-transition);
}

.deal-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.deal-tile__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
    pointer-events: none;
}

.deal-tile:hover .deal-tile__shine {
    transform: translateX(120%);
}

.deal-tile__visual {
    position: relative;
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: var(--ui-radius-md);
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.deal-tile__media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.deal-tile__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.45rem;
    transition: transform 0.35s ease;
}

.deal-tile:hover .deal-tile__img {
    transform: scale(1.05);
}

.deal-tile__badge {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    padding: 0.12rem 0.4rem;
    border-radius: var(--ui-radius-pill);
    background: var(--theam-secend-color, #de2400);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
}

.deal-tile__timer {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 6px;
    z-index: 2;
}

.deal-tile__body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
    padding: 0.1rem 0 0.1rem 0.15rem;
}

.deal-tile__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.45;
    color: #fff;
    text-decoration: none;
}

.deal-tile__title:hover {
    color: color-mix(in srgb, #fff 80%, var(--theam-secend-color, #de2400));
}

.deal-tile__variation {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
    margin: 0;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.35;
}

.deal-tile__variation i {
    color: var(--theam-secend-color, #de2400);
    flex-shrink: 0;
}

.deal-tile__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.35rem;
    margin-top: auto;
}

.deal-tile__price-now {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
}

.deal-tile__price-now small {
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.deal-tile__price-was {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: line-through;
}

.deal-tile__price-range {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
}

.deal-tile__price-from,
.deal-tile__price-to {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.55);
}

.deal-tile__price-contact {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
}

.deal-tile__actions {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.deal-tile__cta {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.38rem 0.55rem;
    border-radius: var(--ui-radius-sm);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff !important;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--ui-transition);
}

.deal-tile__cta:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.deal-tile__cart {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ui-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
    color: #fff;
    transition: background var(--ui-transition);
}

.deal-tile__cart:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* تایمر — arena (ویترین) */
.timed-sale-countdown--arena {
    margin: 0 0 0.25rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--ui-radius-md);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.timed-sale-countdown__arena-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
}

.timed-sale-countdown__arena-head i {
    color: var(--theam-secend-color, #de2400);
    font-size: 1.05rem;
}

.timed-sale-countdown__arena-grid {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    font-variant-numeric: tabular-nums;
}

.timed-sale-countdown__arena-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 2.6rem;
    padding: 0.35rem 0.4rem;
    border-radius: var(--ui-radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timed-sale-countdown--arena .timed-sale-countdown__value {
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    direction: ltr;
}

.timed-sale-countdown__arena-unit--accent .timed-sale-countdown__value {
    color: color-mix(in srgb, var(--theam-secend-color, #de2400) 55%, #fff);
}

.timed-sale-countdown--arena .timed-sale-countdown__label {
    margin-top: 0.2rem;
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.55);
}

.timed-sale-countdown__arena-sep {
    font-size: 1rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.35);
    padding-bottom: 0.55rem;
}

/* تایمر — pill (کارت فشرده) */
.timed-sale-countdown--pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.22rem 0.45rem;
    border-radius: var(--ui-radius-pill);
    background: color-mix(in srgb, var(--theam-color) 88%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    backdrop-filter: blur(6px);
}

.timed-sale-countdown--pill i {
    font-size: 0.85rem;
    color: var(--theam-secend-color, #de2400);
}

.timed-sale-countdown__pill-values {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

.timed-sale-countdown--pill .timed-sale-countdown__value {
    direction: ltr;
}

.timed-sale-countdown__pill-sep {
    opacity: 0.55;
    font-size: 0.62rem;
    font-weight: 700;
}

/* تایمر — بلیت کوپن (legacy) */
.timed-sale-countdown--ticket {
    margin: 0;
    background: var(--theam-color);
    color: #fff;
    position: relative;
}

.timed-sale-countdown__ticket-edge {
    height: 6px;
    background:
        radial-gradient(circle at 6px 3px, var(--ui-surface) 3px, transparent 3.5px) repeat-x;
    background-size: 12px 6px;
    background-position: center top;
    opacity: 0.95;
}

.timed-sale-countdown__ticket-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
}

.timed-sale-countdown__ticket-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.9);
}

.timed-sale-countdown__ticket-values {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-variant-numeric: tabular-nums;
}

.timed-sale-countdown__ticket-block {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 1.5rem;
}

.timed-sale-countdown--ticket .timed-sale-countdown__value {
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    direction: ltr;
}

.timed-sale-countdown__ticket-block--accent .timed-sale-countdown__value {
    color: color-mix(in srgb, var(--theam-secend-color, #de2400) 55%, #fff);
}

.timed-sale-countdown__mini-label {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 1px;
}

.timed-sale-countdown__ticket-sep {
    font-weight: 800;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    padding-bottom: 0.45rem;
}

.timed-sale-countdown__ticket-dot {
    color: rgba(255, 255, 255, 0.4);
    padding-bottom: 0.45rem;
}

/* تایمر — panel صفحه محصول */
.timed-sale-countdown--panel {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--ui-radius-md);
    background: color-mix(in srgb, var(--theam-color) 5%, #fff);
    border: 1px solid color-mix(in srgb, var(--theam-color) 18%, var(--ui-border));
    border-right: 4px solid var(--theam-secend-color, #de2400);
}

.timed-sale-countdown__panel-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.75rem;
}

.timed-sale-countdown__panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--ui-radius-sm);
    background: var(--theam-color);
    color: #fff;
    font-size: 1.25rem;
}

.timed-sale-countdown__panel-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--theam-color);
}

.timed-sale-countdown__panel-sub {
    font-size: 0.76rem;
    color: var(--ui-text-muted);
    margin-top: 0.1rem;
}

.timed-sale-countdown__panel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
}

.timed-sale-countdown__unit {
    text-align: center;
    background: #fff;
    border-radius: var(--ui-radius-sm);
    padding: 0.45rem 0.2rem;
    border: 1px solid var(--ui-border);
}

.timed-sale-countdown--panel .timed-sale-countdown__value {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--theam-color);
    direction: ltr;
}

.timed-sale-countdown--panel .timed-sale-countdown__unit:last-child .timed-sale-countdown__value,
.timed-sale-countdown--panel .timed-sale-countdown__unit:nth-last-child(2) .timed-sale-countdown__value {
    color: var(--theam-secend-color, #de2400);
}

.timed-sale-countdown__label {
    display: block;
    font-size: 0.65rem;
    color: var(--ui-text-muted);
    margin-top: 0.15rem;
}

.timed-sale-countdown__expired {
    font-size: 0.84rem;
    color: var(--theam-secend-color, #de2400);
    font-weight: 600;
    padding: 0.45rem 0;
}

@media (prefers-reduced-motion: reduce) {
    .deals-arena__orb--1,
    .deals-arena__orb--2,
    .deals-arena__live-dot {
        animation: none;
    }

    .deal-hero:hover .deal-hero__img,
    .deal-tile:hover .deal-tile__img,
    .deal-tile:hover .deal-tile__shine {
        transform: none;
    }
}

@media (max-width: 768px) {
    .home-product-swiper-wrap,
    .deals-arena__swiper-wrap {
        padding: 0;
    }

    .home-swiper-btn {
        width: 32px;
        height: 32px;
    }

    .product-page__gallery-main {
        min-height: 220px;
    }

    .product-page__buy-panel {
        position: static;
    }

}


/* ── Product grid skeleton (filter / sort loading) ── */
.products-grid-skeleton .product-card-skeleton {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 12px;
    height: 100%;
}

.product-card-skeleton__image {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: productSkeletonShimmer 1.2s ease-in-out infinite;
}

.product-card-skeleton__line {
    height: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: productSkeletonShimmer 1.2s ease-in-out infinite;
}

.product-card-skeleton__line--title { width: 85%; height: 14px; }
.product-card-skeleton__line--price { width: 55%; }
.product-card-skeleton__line--btn { width: 100%; height: 36px; margin-bottom: 0; }

@keyframes productSkeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


