@font-face {
    font-family: "Negar";
    src: url('/Content/Negaar/Negaar Regular.ttf') format('woff');
    font-display: swap;
}

@font-face {
    font-family: "FontAwesome";
    src: url('/Content/Css/fontawesome/webfonts/fa-solid-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Negar", sans-serif;
    font-size: 18px;
    direction: rtl;
}


.vh-100 {
    height: 100vh;
}

.discount-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #f72585, #7209b7);
    color: white;
    padding: 3px 8px;
    border-radius: 0 0 4px 0;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.gallery-item {
    transition: all 0.3s ease;
}

    .gallery-item:hover {
        transform: scale(1.03);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.search-box {
    transition: all 0.3s ease;
}

    .search-box:focus-within {
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    }

.category-item:hover {
    transform: translateY(-3px);
    transition: all 0.2s ease;
}

.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
    0% {
        background-color: hsl(200, 20%, 80%);
    }

    100% {
        background-color: hsl(200, 20%, 95%);
    }
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.main-image {
    aspect-ratio: 1/1;
    object-fit: contain;
}

.thumb-image {
    aspect-ratio: 1/1;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .thumb-image:hover {
        opacity: 0.8;
    }

.sticky-sidebar {
    position: sticky;
    top: 1rem;
}

/* Custom scrollbar for specifications */
.specs-container {
    scrollbar-width: thin;
    scrollbar-color: #ddd #f5f5f5;
}

    .specs-container::-webkit-scrollbar {
        width: 6px;
    }

    .specs-container::-webkit-scrollbar-track {
        background: #f5f5f5;
    }

    .specs-container::-webkit-scrollbar-thumb {
        background-color: #ddd;
        border-radius: 6px;
    }

/* Animation for color selection */
@keyframes colorPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.1);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1);
    }
}

.color-option.selected {
    animation: colorPulse 0.5s ease-in-out;
    border: 2px solid #333;
}

/* Tab content animation */
.tab-content {
    transition: opacity 0.3s ease;
}



.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none; /* اینترنت اکسپلورر */
    scrollbar-width: none; /* فایرفاکس */
}
/* برای انیمیشن لودینگ */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scroll-smooth {
    scroll-behavior: smooth;
}

#productSlider > div {
    direction: rtl !important;
}

textarea {
    resize: none !important;
}


.d-none {
    display: none !important;
}

.text-justify {
    text-align: justify-all;
    line-height: 1.9rem;
}

a:hover {
    cursor: pointer;
}
/* Custom checkbox style */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

    input[type="checkbox"]:checked {
        background-color: #000;
        border-color: #000;
    }

        input[type="checkbox"]:checked::after {
            content: "✓";
            color: white;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 12px;
        }


#search-box.show {
    width: 200px;
}

#menu {
    z-index: 1000;
}

    #menu.show {
        transform: translateX(0);
    }

#search-box {
    z-index: 1000;
}

.eye, .eyeConf {
    position: absolute;
    left: 10px;
    top: 12px;
}

.category-story {
    background: linear-gradient(90deg, #FFEEDB 0%, #FFA94D 40%, #FF6F00 100%);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 24px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.search-box {
    transition: all 0.3s ease;
}


.highlight {
    color: #FFA94D;
}

#searchResults {
    position: absolute;
}

    #searchResults li {
        padding: 8px;
        cursor: pointer;
    }

        #searchResults li:hover {
            background-color: #f0f0f0;
        }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* اسکرول‌بار نرم و ظریف */
#chatBox::-webkit-scrollbar {
    width: 8px;
}

#chatBox::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 8px;
}

#chatBox::-webkit-scrollbar-track {
    background: transparent;
}

/* نقطه‌های تایپ */
.dots {
    display: inline-flex;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: #cbd5e1;
    opacity: .4;
    animation: blink 1.4s infinite ease-in-out;
}

    .dot:nth-child(2) {
        animation-delay: .15s;
    }

    .dot:nth-child(3) {
        animation-delay: .3s;
    }

@keyframes blink {
    0%, 80%, 100% {
        opacity: .2
    }

    40% {
        opacity: 1
    }
}

/* کاهش حرکت برای کاربران حساس */
@media (prefers-reduced-motion: reduce) {
    .dot {
        animation: none;
        opacity: .6;
    }
}

/* خوانایی بهتر متون چندخطی */
.bubble {
    white-space: pre-wrap;
    line-height: 1.8;
}


/* Skeleton shimmer */
.skeleton {
    position: relative;
    overflow: hidden;
    background-color: #f3f4f6;
}

    .skeleton::after {
        content: "";
        position: absolute;
        inset: 0;
        transform: translateX(-100%);
        background: linear-gradient(90deg, rgba(243,244,246,0) 0%, rgba(229,231,235,.9) 50%, rgba(243,244,246,0) 100%);
        animation: shimmer 1.2s infinite;
    }

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Overlay spinner */
.loading-overlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    background: rgba(255,255,255,0.35);
    z-index: 10;
    border-radius: 0.75rem; /* match grid card radius vibe */
}

    .loading-overlay.show {
        display: flex;
    }

.spinner {
    width: 42px;
    height: 42px;
    border: 3px solid #e5e7eb;
    border-top-color: #111827;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ورود نرم نتایج */
#productGrid.fade-enter {
    opacity: .35;
}

#productGrid.fade-enter-active {
    opacity: 1;
    transition: opacity .25s ease;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.animate-bounce {
    animation: bounce 1.2s infinite;
}


/* انیمیشن‌ها */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slideUp {
    animation: slideUp 0.6s ease forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-scaleUp {
    animation: scaleUp 0.3s ease forwards;
}

@keyframes spin-slow {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 1s linear infinite;
}
/* داخل Override.css */
@keyframes blob {
    0%, 100% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.animate-blob {
    animation: blob 8s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

#swiper-wrapper-main-slider {
    max-height: 12rem;
}

    #swiper-wrapper-main-slider > div > a > img {
        width: 100%;
        height: 100%;
        object-fit: fill;
    }

/* Touch targets بزرگ و فاصله مناسب برای Swiper Pagination */
.swiper-pagination-bullet {
    width: 48px; /* قطر کافی برای لمس */
    height: 48px; /* قطر کافی برای لمس */
    margin: 0 6px; /* فاصله بین bullets */
    border-radius: 50%; /* گرد کردن */
    background-color: rgba(0,0,0,0.3); /* اختیاری: رنگ پس‌زمینه */
    transition: background-color 0.3s;
}

.swiper-pagination-bullet-active {
    background-color: rgba(0,0,0,0.7); /* برجسته شدن slide فعال */
}