/* ============================================================
   ✅ index-gi.css - استایل‌های صفحه اصلی
   ============================================================ */

body {
    background-color: var(--greenlight);
    direction: rtl;
    margin: 0;
    padding: 0;
    font-family: 'IranSans', sans-serif;
    overflow-x: hidden;
}

/* ============================================================
   ✅ بخش هیرو (Hero) - sticky
   ============================================================ */
.hero-parallax-slider {
    height: 100dvh;
    position: sticky;
    top: 0;
    z-index: 0;
    overflow: hidden;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.hero-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide picture,
.hero-slide img {
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 700px;
    padding: 20px;
    z-index: 10;
}

.hero-content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

/* ============================================================
   ✅ باکس جستجو
   ============================================================ */
.search-box {
    position: relative;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
    z-index: 10;
}

.search-box input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: none;
    border-radius: 1.5rem;
    background: var(--dark);
    color: var(--light);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    box-shadow: 0px 0px 12px 2px #000000a2;
}

.search-box input::placeholder {
    color: #999;
}

/* ===== دکمه جستجو ===== */
.search-btn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    z-index: 15;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.search-btn .search-icon {
    position: static;
    width: 24px;
    height: 24px;
    color: var(--light);
}

/* ============================================================
   ✅ دکمه‌های گروهی هیرو
   ============================================================ */
.hero-buttons-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    z-index: 10;
    position: relative;
}

.hero-link-btn,
.hero-all-products-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 100;
    color: var(--light);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    transition: all 0.3s ease;
    font-family: inherit;
    min-width: 160px;
    z-index: 10;
    position: relative;
}

.hero-link-btn:hover,
.hero-all-products-btn:hover {
    background: var(--primary);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 18px 40px rgba(71, 181, 158, 0.36);
}

/* ============================================================
   ✅ ریسپانسیو دکمه‌های هیرو
   ============================================================ */
@media (max-width: 768px) {
    .hero-link-btn,
    .hero-all-products-btn {
        font-size: 1rem;
        padding: 8px 12px;
        min-width: 140px;
    }
    .hero-buttons-group {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero-link-btn,
    .hero-all-products-btn {
        font-size: 0.9rem;
        padding: 6px 10px;
        min-width: 120px;
    }
    .hero-buttons-group {
        gap: 8px;
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    .hero-link-btn,
    .hero-all-products-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .hero-link-btn,
    .hero-all-products-btn {
        font-size: 0.85rem;
        padding: 6px 8px;
        min-width: 100px;
    }
}

/* ============================================================
   ✅ بخش دسته‌بندی‌ها (Marquee) - عادی (بدون sticky)
   ============================================================ */
.marquee-wrapper {
    overflow: hidden;
    padding: 20px 0;
    user-select: none;
    cursor: grab;
    background-color: var(--greenlight);
    position: relative;
    z-index: 1;
}

#category-row-1 {
    background-color: var(--greenlight);
    box-shadow: 0 0 15px 20px rgba(0, 0, 0, 0.28);
    position: relative;
    z-index: 1;
}

#category-row-2 {
    background-color: var(--greenlight);
    position: relative;
    z-index: 1;
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 15px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.marquee-track > div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 360px;
    max-width: 360px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    position: relative;
    background-color: #222;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    box-shadow: 0 0 8px 2px #00000093;
    margin-inline: 8px;
}

.main-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 100;
    color: var(--light);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    z-index: 5;
    pointer-events: auto;
}

/* ===== عکس‌های پس‌زمینه دسته‌بندی‌ها ===== */
#category-1 {
    background-image: linear-gradient(rgba(3, 17, 0, 0.658), rgba(3, 48, 0, 0.568)), url('../images/backgrand-images/categories/categories-1.jpg');
}
#category-2 {
    background-image: linear-gradient(rgba(3, 17, 0, 0.658), rgba(3, 48, 0, 0.568)), url('../images/backgrand-images/categories/categories-2.jpg');
}
#category-3 {
    background-image: linear-gradient(rgba(3, 17, 0, 0.658), rgba(3, 48, 0, 0.568)), url('../images/backgrand-images/categories/categories-3.jpg');
}
#category-4 {
    background-image: linear-gradient(rgba(3, 17, 0, 0.658), rgba(3, 48, 0, 0.568)), url('../images/backgrand-images/categories/categories-4.jpg');
}
#category-5 {
    background-image: linear-gradient(rgba(3, 17, 0, 0.658), rgba(3, 48, 0, 0.568)), url('../images/backgrand-images/categories/categories-5.jpg');
}
#category-6 {
    background-image: linear-gradient(rgba(3, 17, 0, 0.658), rgba(3, 48, 0, 0.568)), url('../images/backgrand-images/categories/categories-6.jpg');
}
#category-7 {
    background-image: linear-gradient(rgba(3, 17, 0, 0.658), rgba(3, 48, 0, 0.568)), url('../images/backgrand-images/categories/categories-7.jpg');
}
#category-8 {
    background-image: linear-gradient(rgba(3, 17, 0, 0.658), rgba(3, 48, 0, 0.568)), url('../images/backgrand-images/categories/categories-8.jpg');
}
#category-9 {
    background-image: linear-gradient(rgba(3, 17, 0, 0.658), rgba(3, 48, 0, 0.568)), url('../images/backgrand-images/categories/categories-9.jpg');
}
#category-10 {
    background-image: linear-gradient(rgba(3, 17, 0, 0.658), rgba(3, 48, 0, 0.568)), url('../images/backgrand-images/categories/categories-10.jpg');
}

/* ===== انیمیشن‌های مارکی ===== */
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

@keyframes scrollRight {
    0% { transform: translateX(50%); }
    100% { transform: translateX(0); }
}

.move-left .marquee-track {
    animation: scrollLeft 20s linear infinite;
}

.move-right .marquee-track {
    animation: scrollRight 20s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

.item-Train {
    display: inline-flex !important;
    white-space: nowrap !important;
    gap: 16px;
    will-change: transform;
    background-color: transparent;
}

.item-Train > * {
    flex: 0 0 auto !important;
}

/* ============================================================
   ✅ بخش محصولات پرفروش (Best Sellers) - sticky
   ============================================================ */
.best-sellers-section {
    padding: 20px 10px;
    background-color: var(--greenlight);
    position: sticky;
    top: 0;
    z-index: 2;
    overflow: hidden;
}

.best-sellers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0px auto 15px;
    padding: 0px 10px;
}

.best-sellers-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0px;
}

.best-sellers-view-all {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    transition: 0.3s;
    white-space: nowrap;
}

.best-sellers-wrapper {
    overflow: auto hidden;
    padding: 4px 0px 10px;
    scrollbar-width: thin;
    max-width: 100%;
    position: relative;
}

.best-sellers-wrapper::-webkit-scrollbar {
    height: 3px;
}

.best-sellers-wrapper::-webkit-scrollbar-track {
    background: none;
}

.best-sellers-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.best-sellers-wrapper:hover::-webkit-scrollbar-thumb {
    opacity: 1;
}

.best-sellers-container {
    max-width: 100%;
    width: max-content;
    display: flex !important;
    gap: 16px !important;
    padding: 0px 10px !important;
    flex-wrap: nowrap !important;
}

.best-sellers-container .explore-item {
    background: var(--dark);
    border-radius: 15px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 5px 20px;
    transition: 0.3s;
    width: 210px;
    flex-shrink: 0;
    border: medium;
    gap: 0px;
}

.best-sellers-container .item-image {
    display: inline;
    aspect-ratio: 3 / 4;
    width: 100%;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 14px;
    font-size: 3.5rem;
    order: -1;
    background: linear-gradient(135deg, var(--greenlight), var(--primary));
    flex-shrink: 0;
    overflow: hidden;
}

.best-sellers-container .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.best-sellers-container .item-details {
    width: 100%;
    padding: 0px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.best-sellers-container .item-name {
    text-align: right;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--light);
    line-height: 1.3;
    margin: 0px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 32px;
}

.best-sellers-container .item-price {
    text-align: right;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    margin: 2px 0px;
}

.best-sellers-container .product-colors-wrapper {
    margin: 4px 0px 6px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.best-sellers-container .product-colors-scroll {
    display: flex;
    gap: 3px;
    overflow: auto hidden;
    padding: 2px 0px 4px;
    scrollbar-width: thin;
    direction: ltr;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
}

.best-sellers-container .product-colors-scroll::-webkit-scrollbar {
    height: 2px;
}

.best-sellers-container .product-colors-scroll::-webkit-scrollbar-track {
    background: none;
}

.best-sellers-container .product-colors-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.best-sellers-container .color-circle {
    width: 14px;
    height: 14px;
    min-width: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    transition: 0.2s;
    position: relative;
    flex-shrink: 0;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 1px 4px;
}

.best-sellers-container .color-circle.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
}

.best-sellers-container .color-circle.active {
    border-color: var(--primary);
    transform: scale(1.05);
    outline: 2px solid var(--primary) !important;
    outline-offset: 1px !important;
}

.best-sellers-container .color-label {
    font-size: 0.45rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    font-weight: 400;
    margin: 1px 2px;
}

.best-sellers-container .color-item {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 1px 3px;
    border-radius: 16px;
    transition: 0.2s;
    flex-shrink: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    white-space: nowrap;
}

.best-sellers-container .color-item.active {
    background: rgba(71, 181, 158, 0.12);
    border-color: var(--primary);
}

.best-sellers-container .color-item.active .color-label {
    color: var(--primary);
    font-weight: 500;
}

.best-sellers-container .item-actions {
    display: flex;
    gap: 6px;
    width: 100%;
    align-items: stretch;
    margin-top: 6px;
}

.best-sellers-container .add-to-cart-btn {
    flex: 1 1 auto;
    width: 70%;
    background: var(--primary);
    color: white;
    border: medium;
    padding: 8px 6px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.3s;
    height: 34px;
    font-family: inherit;
    white-space: nowrap;
}

.best-sellers-container .add-to-cart-btn.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
}

.best-sellers-container .add-to-cart-btn:hover:not(.out-of-stock) {
    background: rgb(58, 154, 133);
    transform: translateY(-2px);
}

.best-sellers-container .wishlist-btn {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: var(--red);
    color: white;
    border: medium;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    padding: 0px;
}

.best-sellers-container .wishlist-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: white;
    stroke-width: 18.3px;
}

.best-sellers-container .wishlist-btn.active svg {
    fill: white;
    stroke: none;
}

.best-sellers-container .wishlist-btn:hover {
    background: rgb(196, 69, 42);
    transform: scale(1.08);
}

.best-sellers-loading {
    display: none;
}

.skeleton-grid {
    display: flex !important;
    gap: 16px !important;
    padding: 0px 10px !important;
}

.skeleton-item {
    width: 160px;
    min-width: 160px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(90deg, rgb(224, 224, 224) 25%, rgb(240, 240, 240) 50%, rgb(224, 224, 224) 75%) 0% 0% / 200% 100%;
    animation: 1.5s infinite skeleton-loading;
    border-radius: 12px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0px; }
    100% { background-position: -200% 0px; }
}

.best-sellers-wrapper {
    scroll-behavior: smooth;
}

/* ============================================================
   🔧 اصلاح اسکرول موبایل برای بخش دسته‌بندی‌ها
   ============================================================ */
@media (max-width: 767px) {
    .marquee-wrapper {
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
    }
    .marquee-track {
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .marquee-wrapper * {
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

/* ============================================================
   🎯 بخش اسلایدر سه‌کارته (Featured Slider) - عادی (بدون sticky)
   ============================================================ */
.featured-slider-section {
    padding: 40px 20px 30px;
    background: var(--dark);
    position: relative;
    z-index: 3;
    overflow: hidden;
    border-radius: 25px 25px 0px 0px;
}

.featured-slider-header {
    text-align: center;
    margin-bottom: 20px;
}

.featured-slider-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light, #ffffff);
    margin-bottom: 4px;
}

.featured-slider-title span {
    color: var(--primary, #47b59e);
}

.featured-slider-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 300;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0 10px;
}

/* ===== کارت‌های اسلایدر ===== */
.slide-card {
    position: absolute;
    width: 300px;
    min-height: 80px;
    padding: 20px 24px;
    border-radius: 12px;
    text-align: center;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: none;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity, left;
    backface-visibility: hidden;
    font-size: 1rem;
    line-height: 1.6;
    height: auto;
    font-weight: 400;
}

.slide-card[data-color="0"] { background: var(--red); }
.slide-card[data-color="1"] { background: var(--primary); }
.slide-card[data-color="2"] { background: var(--greenlight); }
.slide-card[data-color="3"] { background: var(--red); }
.slide-card[data-color="4"] { background: var(--primary); }
.slide-card[data-color="5"] { background: var(--greenlight); }

.slide-card.position-center {
    left: 50%;
    transform: translateX(-50%) scale(1.1);
    z-index: 5;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    opacity: 1;
    filter: blur(0px);
}

.slide-card.position-left {
    left: 5%;
    transform: translateX(0%) scale(0.85);
    z-index: 3;
    opacity: 0.4;
    filter: blur(0.5px);
}

.slide-card.position-right {
    left: 65%;
    transform: translateX(0%) scale(0.85);
    z-index: 3;
    opacity: 0.4;
    filter: blur(0.5px);
}

.slide-card.exit-right {
    left: 110%;
    transform: translateX(0%) scale(0.7);
    opacity: 0;
    filter: blur(4px);
    pointer-events: none;
    z-index: 1;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-card.enter-left {
    left: -20%;
    transform: translateX(0%) scale(0.7);
    opacity: 0;
    filter: blur(4px);
    pointer-events: none;
    z-index: 1;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== دکمه‌های کنترلر اسلایدر ===== */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    background-color: var(--dark);
    padding: 10px 0;
}

.slider-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--light, #ffffff);
    background: var(--dark, #1a1a2e);
    text-decoration: none;
    text-align: center;
    font-family: inherit;
box-shadow: 6px 3px 22px rgba(0, 0, 0, 0.3),
        -6px -3px 17px rgba(110, 129, 81, 0.19);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
    line-height: 1;
}

.slider-controls button:hover {
    box-shadow: none;
    transform: translateY(-2px);
    font-size: 1.1rem;
    background: var(--dark, #1a1a2e);
}

/* ============================================================
   ⏳ بخش محصولات تونل زمان (Tunnel Products) - sticky
   ============================================================ */
.tunnel-products-section {
    padding: 30px 10px;
    background-color: var(--dark);
    position: sticky;
    top: 0;
    z-index: 4;
    overflow: hidden;
}

.tunnel-products-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0px 10px;
    scrollbar-width: thin;
    max-width: 100%;
    position: relative;
    scroll-behavior: smooth;
}

.tunnel-products-container {
    display: flex !important;
    gap: 16px !important;
    padding: 0 10px !important;
    max-width: 100%;
    width: max-content;
    flex-wrap: nowrap !important;
}

/* ===== کارت‌های تونل زمان ===== */
.tunnel-products-container .explore-item {
    background: var(--dark);
    border-radius: 15px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 210px;
    min-width: 210px;
    flex-shrink: 0;
    border: none;
    gap: 0;
    position: relative;
}

.tunnel-products-container .explore-item.tunnel-product {
    background-color: var(--greenlight, #e8f5e9);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.tunnel-products-container .item-image {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    margin-bottom: 8px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--greenlight), var(--primary));
    flex-shrink: 0;
    position: relative;
}

.tunnel-products-container .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tunnel-products-container .tunnel-time-discount {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--red);
    color: var(--light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: 500;
    z-index: 5;
    backdrop-filter: blur(4px);
}

.tunnel-products-container .tunnel-timer {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 5;
    padding: 2px 10px;
    border-radius: 6px;
    min-width: 60px;
    text-align: center;
    direction: ltr;
    backdrop-filter: blur(4px);
    font-family: 'Courier New', monospace;
}

.tunnel-products-container .tunnel-timer.warning {
    color: #ff6b6b;
    animation: pulse-timer 0.5s ease-in-out infinite;
}

@keyframes pulse-timer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.tunnel-products-container .tunnel-timer.expired {
    opacity: 0.5;
    color: #ff6b6b;
}

.tunnel-products-container .item-details {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tunnel-products-container .item-name {
    text-align: right;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 32px;
}

.tunnel-products-container .price-wrapper {
    display: flex;
    align-items: start;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2px 0;
}

.tunnel-products-container .old-price {
    color: #c7c7c7;
    text-decoration: line-through;
    font-size: 0.7rem;
}

.tunnel-products-container .current-price {
    color: var(--red);
    font-weight: 700;
    font-size: 0.85rem;
}

.tunnel-products-container .product-colors-wrapper {
    margin: 4px 0 6px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.tunnel-products-container .product-colors-scroll {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
    -webkit-overflow-scrolling: touch;
    direction: ltr;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
}

.tunnel-products-container .color-circle {
    width: 14px;
    height: 14px;
    min-width: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.tunnel-products-container .color-circle.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
}

.tunnel-products-container .color-circle.active {
    outline: 2px solid var(--primary) !important;
    outline-offset: 1px !important;
    border-color: var(--primary);
    transform: scale(1.05);
}

.tunnel-products-container .color-label {
    font-size: 0.45rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    font-weight: 400;
    margin: 1px 2px;
}

.tunnel-products-container .color-item {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 1px 3px;
    border-radius: 16px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    white-space: nowrap;
}

.tunnel-products-container .color-item.active {
    background: rgba(71, 181, 158, 0.12);
    border-color: var(--primary);
}

.tunnel-products-container .color-item.active .color-label {
    color: var(--primary);
    font-weight: 500;
}

.tunnel-products-container .item-actions {
    display: flex;
    gap: 6px;
    width: 100%;
    align-items: stretch;
    margin-top: 6px;
}

.tunnel-products-container .add-to-cart-btn {
    flex: 1 1 auto;
    width: 70%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 6px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.3s;
    height: 34px;
    font-family: inherit;
    white-space: nowrap;
}

.tunnel-products-container .add-to-cart-btn.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
}

.tunnel-products-container .add-to-cart-btn:hover:not(.out-of-stock) {
    background: #3a9a85;
    transform: translateY(-2px);
}

.tunnel-products-container .wishlist-btn {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    padding: 0;
}

.tunnel-products-container .wishlist-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: white;
    stroke-width: 18.3px;
}

.tunnel-products-container .wishlist-btn.active svg {
    fill: white;
    stroke: none;
}

.tunnel-products-container .wishlist-btn:hover {
    background: #c4452a;
    transform: scale(1.08);
}

.tunnel-products-loading {
    display: none;
}

.tunnel-products-loading .skeleton-grid {
    display: flex !important;
    gap: 16px !important;
    padding: 0 10px !important;
}

.tunnel-products-loading .skeleton-item {
    width: 210px;
    min-width: 210px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 12px;
}

/* ============================================================
   🎯 دکمه مشاهده همه - تونل زمان
   ============================================================ */
.slider-view-all-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 50px;
    background-color: var(--dark);
}

.slider-view-all-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--light, #ffffff);
    background: var(--dark, #1a1a2e);
    text-decoration: none;
    text-align: center;
    font-family: inherit;
box-shadow: 6px 3px 22px rgba(0, 0, 0, 0.37),
        -6px -5px 17px rgba(110, 129, 81, 0.23);;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
}

.slider-view-all-btn:hover {
    box-shadow: none;
    transform: translateY(-2px);
    font-size: 0.9rem;
    background: var(--dark, #1a1a2e);
}

/* ============================================================
   ✅ فوتر (Footer) - بدون sticky
   ============================================================ */
footer {
    position: relative;
    z-index: 100;
    background: var(--dark);
    color: var(--light);
    padding: 60px 20px;
    margin: 15px 12px 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
    font-family: 'Vazir', sans-serif;
    line-height: 1.6;
}

/* ============================================================
   ✅ ریسپانسیو کلی
   ============================================================ */
@media (max-width: 1024px) {
    .search-box { max-width: 450px; }
}

@media (max-width: 768px) {
    .hero-parallax-slider { height: 100dvh; }
    .search-box { max-width: 100%; margin: 0 10px; }
    .search-box input { padding: 12px 45px 12px 16px; font-size: 0.95rem; }
    .search-btn .search-icon { width: 20px; height: 20px; }
    .hero-all-products-btn { font-size: 1rem; padding: 8px 12px; min-width: 150px; }
    .marquee-track > div { width: 40vw; max-width: none; border-radius: 10px; }
    .marquee-wrapper { padding: 10px 0; }
    .main-category { font-size: 1rem; padding: 8px 12px; }
    .slider-container { height: 160px; }
    .slide-card { width: 240px; padding: 12px 18px; font-size: 0.85rem; border-radius: 10px; }
    .slide-card.position-left { left: 0%; }
    .slide-card.position-right { left: 70%; }
    .slider-controls button { width: 38px; height: 38px; font-size: 1rem; }
    .slide-card.exit-right { left: 120%; }
    .slide-card.enter-left { left: -30%; }
}

@media (max-width: 480px) {
    .hero-parallax-slider { height: 100dvh; }
    .search-box input { padding: 10px 40px 10px 14px; font-size: 0.9rem; border-radius: 1.2rem; }
    .search-btn .search-icon { width: 18px; height: 18px; }
    .hero-all-products-btn { font-size: 0.9rem; padding: 6px 10px; min-width: 130px; }
    .main-category { font-size: 0.9rem; padding: 6px 10px; }
    .slider-container { height: 160px; }
    .slide-card { width: 180px; padding: 10px 14px; font-size: 0.7rem; border-radius: 8px; }
    .slide-card.position-left { left: -5%; }
    .slide-card.position-right { left: 75%; }
    .slider-controls button { width: 32px; height: 32px; font-size: 0.8rem; }
    .slide-card.exit-right { left: 130%; }
    .slide-card.enter-left { left: -40%; }
    .slide-card.position-center { transform: translateX(-50%) scale(1.05); }
    .slide-card.position-left, .slide-card.position-right { transform: scale(0.8); }
    .tunnel-products-container .explore-item { width: 170px; min-width: 170px; padding: 10px; }
    .tunnel-products-container .explore-item.tunnel-product { padding: 10px; }
    .tunnel-products-container .item-name { font-size: 0.65rem; }
    .tunnel-products-container .current-price { font-size: 0.75rem; }
    .tunnel-products-container .old-price { font-size: 0.6rem; }
    .tunnel-products-container .tunnel-timer { font-size: 0.7rem; padding: 1px 8px; min-width: 50px; bottom: 4px; }
    .tunnel-products-container .tunnel-time-discount { font-size: 0.45rem; padding: 1px 6px; top: 4px; left: 4px; }
    .slider-view-all-btn { padding: 10px 24px; font-size: 0.85rem; }
    .slider-view-all-btn:hover { font-size: 0.75rem; }
}

@media (max-width: 360px) {
    .search-box input { padding: 8px 35px 8px 12px; font-size: 0.85rem; }
    .hero-all-products-btn { font-size: 0.85rem; padding: 6px 8px; min-width: 120px; }
    .slider-controls button { width: 30px; height: 30px; font-size: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none !important; }
    .slide-card { transition: none !important; }
}

/* ============================================================
   🎞️ بخش زیرنویس متحرک (Marquee Text)
   ============================================================ */

.marquee-text-section {
    padding: 20px 0;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.marquee-text-wrapper {
    overflow: hidden;
    padding: 8px 0;
    width: 100%;
    position: relative;
}

.marquee-text-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

.marquee-text-item {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    color: var(--light);
    font-size: 0.85rem;
    font-weight: 400;
    white-space: nowrap;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.04);
    user-select: none;
    flex-shrink: 0;
}

/* ============================================================
   📱 ریسپانسیو زیرنویس متحرک
   ============================================================ */

@media (max-width: 768px) {
    .marquee-text-section {
        padding: 12px 0;
    }
    .marquee-text-wrapper {
        padding: 4px 0;
    }
    .marquee-text-track {
        gap: 12px;
    }
    .marquee-text-item {
        padding: 6px 14px;
        font-size: 0.7rem;
        border-radius: 30px;
    }
}

@media (max-width: 480px) {
    .marquee-text-section {
        padding: 8px 0;
    }
    .marquee-text-wrapper {
        padding: 3px 0;
    }
    .marquee-text-track {
        gap: 8px;
    }
    .marquee-text-item {
        padding: 4px 10px;
        font-size: 0.6rem;
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-text-track {
        animation: none !important;
    }
}

#newProductsSection {
    padding: 30px 13px;
    border-radius: 25px 25px 0px 0px;
    z-index: 6;
}


#newProductsSection {
    border-bottom: 100px solid var(--greenlight);
}

/* ============================================================
   💬 پیام‌های Toast (MiniToast) - از Explore.css
   ============================================================ */

.mini-toast {
    position: fixed;
    right: 20px;
    bottom: 80px;
    background: #222;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(6px);
    transition: all .25s;
    z-index: 9999;
    font-family: inherit;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.mini-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.mini-toast.err {
    background: #b00020;
}

/* ===== اضافه کردن حالت ok برای پیام‌های موفق ===== */
.mini-toast.ok {
    background: var(--primary);
}

/* ===== ریسپانسیو ===== */
@media (max-width: 480px) {
    .mini-toast {
        right: 10px;
        left: 10px;
        bottom: 60px;
        font-size: 0.8rem;
        padding: 10px 14px;
        text-align: center;
        border-radius: 10px;
    }
}

/* ============================================================
   📍 دکمه اسکرول با افکت فیزیک توپ
   ============================================================ */

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 0.8;
}

.scroll-arrow {
    width: 52px;   /* ← بزرگتر */
    height: 52px;  /* ← بزرگتر */
    color: rgba(255, 255, 255, 0.9);
    animation: physicsBounce 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(71, 181, 158, 0.2));
    /* ← حذف transform: rotate() چون فلش در HTML رو به پایین است */
}

.scroll-arrow svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===== فیزیک توپ - پرش‌های با کاهش ارتفاع ===== */
@keyframes physicsBounce {
    0% { transform: translateY(0); animation-timing-function: ease-out; }
    8% { transform: translateY(-60px); animation-timing-function: ease-in; }
    16% { transform: translateY(0); animation-timing-function: ease-out; }
    24% { transform: translateY(-30px); animation-timing-function: ease-in; }
    32% { transform: translateY(0); animation-timing-function: ease-out; }
    38% { transform: translateY(-15px); animation-timing-function: ease-in; }
    44% { transform: translateY(0); animation-timing-function: ease-out; }
    48% { transform: translateY(-7.5px); animation-timing-function: ease-in; }
    52% { transform: translateY(0); animation-timing-function: ease-out; }
    55% { transform: translateY(-3.75px); animation-timing-function: ease-in; }
    58% { transform: translateY(0); animation-timing-function: ease-out; }
    60% { transform: translateY(-1.875px); animation-timing-function: ease-in; }
    62% { transform: translateY(0); animation-timing-function: ease-out; }
    62.1%, 100% { transform: translateY(0); }
}

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 20px;
    }
    .scroll-arrow {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .scroll-indicator {
        bottom: 14px;
    }
    .scroll-arrow {
        width: 36px;
        height: 36px;
    }
}
