/* متغیرهای CSS */
:root {
    --gold: #f0b537;
    --navy: #1e293b;
    --blue-neon: #3b82f6;
    --emerald: #10b981;
    --purple: #8b5cf6;
    --cyan-neon: #06b6d4;
    --gradient-start: #e0f2fe;
    --gradient-end: #f3f4f6;
}

.text-blue
{
    color :#1e293b;
}



/* استایل‌های عمومی */
body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f3f4f6;
    color: #333;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Vazirmatn', sans-serif;
}

/* استایل‌های منوی ناوبری */
nav {
    background: var(--navy);
    padding: 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    justify-content: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 8px;
}

nav ul li a:hover {
    color: var(--gold);
    background: rgba(231, 165, 24, 0.2);
    transform: translateY(-2px);
}

nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--navy);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 150px;
    z-index: 1000;
}

nav ul li:hover ul {
    display: block;
    animation: fadeIn 0.3s ease;
}

nav ul li ul li a {
    display: block;
    padding: 0.5rem 1rem;
    color: #fff;
}

nav ul li ul li a:hover {
    background: var(--gold);
    color: var(--navy);
}

/* استایل‌های اسلایدر */
.slider {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    background-color: var(--navy);
}

@media (min-width: 768px) {
    .slider {
        height: 500px;
    }
}

/* اسلایدر */
.slider {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    background-color: #161f48;
}

@media (min-width: 768px) {
    .slider { height: 500px; }
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 3s ease-in-out;
    opacity: 0;
    z-index: 0;
}

.slide.active { opacity: 1; z-index: 2; }

.slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease, opacity 3s ease;
    opacity: 0.9;
}

.slide.active img { transform: scale(1.05); opacity: 1; }

/* متن */
.slide h1, .slide p {
    position: relative;
    z-index: 3;
    opacity: 0;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    visibility: hidden;
}

.slide.active h1, .slide.active p { 
    opacity: 1;
    visibility: visible;
}

.slide h1 { font-weight: 800; font-size: 4.5rem; }
.slide p { width: 80%; margin: 0 auto; font-size: 1.2rem; }

/* انیمیشن‌های چهارجهته */
@keyframes slide-from-left  { from { transform: translateX(-100%); opacity: 0; visibility: hidden; } to { transform: translateX(0); opacity: 1; visibility: visible; } }
@keyframes slide-from-right { from { transform: translateX(100%);  opacity: 0; visibility: hidden; } to { transform: translateX(0); opacity: 1; visibility: visible; } }
@keyframes slide-from-top   { from { transform: translateY(-100%); opacity: 0; visibility: hidden; } to { transform: translateY(0); opacity: 1; visibility: visible; } }
@keyframes slide-from-bottom{ from { transform: translateY(100%);  opacity: 0; visibility: hidden; } to { transform: translateY(0); opacity: 1; visibility: visible; } }

@keyframes modern-typewriter {
    from { width: 0; opacity: 0; visibility: hidden; }
    to   { width: 100%; opacity: 1; visibility: visible; }
}

/* انیمیشن‌های چهارجهته - 2 ثانیه */
.slide.active h1[data-anim="slide-from-left"],
.slide.active p[data-anim="slide-from-left"] {
    animation: slide-from-left 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-fill-mode: both;
}
.slide.active h1[data-anim="slide-from-left"]  { animation-delay: 0.5s; }
.slide.active p[data-anim="slide-from-left"]   { animation-delay: 2.5s; }

.slide.active h1[data-anim="slide-from-right"],
.slide.active p[data-anim="slide-from-right"] {
    animation: slide-from-right 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-fill-mode: both;
}
.slide.active h1[data-anim="slide-from-right"] { animation-delay: 0.5s; }
.slide.active p[data-anim="slide-from-right"]  { animation-delay: 2.5s; }

.slide.active h1[data-anim="slide-from-top"],
.slide.active p[data-anim="slide-from-top"] {
    animation: slide-from-top 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-fill-mode: both;
}
.slide.active h1[data-anim="slide-from-top"]   { animation-delay: 0.5s; }
.slide.active p[data-anim="slide-from-top"]    { animation-delay: 2.5s; }

.slide.active h1[data-anim="slide-from-bottom"],
.slide.active p[data-anim="slide-from-bottom"] {
    animation: slide-from-bottom 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-fill-mode: both;
}
.slide.active h1[data-anim="slide-from-bottom"]{ animation-delay: 0.5s; }
.slide.active p[data-anim="slide-from-bottom"] { animation-delay: 2.5s; }

/* انیمیشن تایپی - سریع */
.slide.active h1[data-anim="modern-typewriter"],
.slide.active p[data-anim="modern-typewriter"] {
    animation: modern-typewriter 2.5s steps(40, end) forwards;
    animation-fill-mode: both;
    overflow: hidden;
    white-space: nowrap;
    direction: rtl;
}
.slide.active h1[data-anim="modern-typewriter"] { animation-delay: 0.5s; }
.slide.active p[data-anim="modern-typewriter"]  { animation-delay: 3.0s; }

/* نشانگرها */
.slider .indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 5;
}
.slider .indicators button {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none; cursor: pointer;
    transition: all 0.5s ease;
}
.slider .indicators button.active {
    background: #fff;
    transform: scale(1.4);
}


/* استایل‌های بخش محصولات */
.product-section {
    position: relative;
    overflow: hidden;
    padding: 4rem 1rem;
}

.product-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    z-index: -1;
}

.product-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(240, 249, 255, 0.4));
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    max-height: 420px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.product-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-image-container .image-error {
    position: absolute;
    bottom: 10px;
    color: #e3342f;
    font-size: 0.8rem;
    text-align: center;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #e7a518;
    color: #1e293b;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.product-card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
}

.product-card-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.two-line-desc {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.desc {
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.5rem;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.compare-checkbox {
    display: none;
}

.custom-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(203, 213, 225, 0.5);
    transition: all 0.3s ease;
}

.custom-checkbox-wrapper:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-1px);
}

.custom-checkbox-container {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    position: relative;
    background: white;
    transition: all 0.3s ease;
}

.compare-checkbox:checked + .custom-checkbox-wrapper .custom-checkbox-container {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #f59e0b;
    transform: scale(1.1);
}

.checkmark-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    stroke: transparent;
    opacity: 0;
    transition: all 0.3s ease;
}

.compare-checkbox:checked + .custom-checkbox-wrapper .custom-checkbox-container .checkmark-icon {
    stroke: white;
    stroke-width: 2;
    opacity: 1;
}

.checkbox-text {
    font-weight: 500;
    font-size: 0.75rem;
    color: #475569;
    transition: color 0.3s ease;
}

.custom-checkbox-wrapper:hover .checkbox-text {
    color: #f59e0b;
}

.modern-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 120px;
}

.modern-button i {
    font-size: 1rem;
}

.modern-button:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.modern-button:active {
    transform: translateY(0);
    box-shadow: 0 5px 10px rgba(245, 158, 11, 0.2);
}

.section-title-button {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 12px 32px;
    border-radius: 25px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(30, 41, 59, 0.3);
    width: 200px;
    text-align: center;
}

.section-title-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(30, 41, 59, 0.4);
}

.no-products {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #64748b;
    font-size: 1.125rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* استایل‌های جدول */
.table-responsive {
    max-width: 1400px;
    margin: 20px auto;
    overflow-x: auto;
}

.table {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background-color: var(--navy);
    color: white;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    padding: 15px;
}

.table td {
    color: #333;
    text-align: center;
    vertical-align: middle;
    padding: 12px;
}

/* اعلان‌های مینیمال و مدرن */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
}

.toast-notification {
    min-width: 300px;
    max-width: 380px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.5;
    color: #1f2937;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

/* خط رنگی کنار */
.toast-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
    opacity: 0.9;
}

/* نمایش */
.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* رنگ‌ها (مینیمال) */
.toast-success { color: #16a34a; }
.toast-error   { color: #dc2626; }
.toast-warning { color: #ea580c; }
.toast-info    { color: #2563eb; }

/* آیکون */
.toast-icon {
    font-size: 1.25rem;
    opacity: 0.85;
}

/* متن */
.toast-message {
    flex: 1;
    font-weight: 500;
}

/* دکمه بستن — مخفی تا هاور */
.toast-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 4px;
    color: inherit;
}

.toast-notification:hover .toast-close {
    opacity: 0.6;
}

.toast-close:hover {
    opacity: 1 !important;
}

/* انیمیشن Shake برای خطا */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.error-shake {
    animation: shake 0.5s ease-out;
}

/* حالت تاریک */
@media (prefers-color-scheme: dark) {
    .toast-notification {
        background: rgba(31, 41, 55, 0.92);
        color: #f3f4f6;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .toast-success { color: #22c55e; }
    .toast-error   { color: #ef4444; }
    .toast-warning { color: #fb923c; }
    .toast-info    { color: #3b82f6; }
}

/* استایل‌های فوتر */
footer,
footer p {
    color: #fff;
}

footer h1,
footer h2,
footer h3 {
    color: var(--gold);
}

/* استایل‌های اضافی */
.bg-navy {
    background: #1e293b;
}

.text-gold {
    color: #fbbf24;
}

.text-gray-custom-100 {
    color: #f3f4f6;
}

.text-gray-custom-700 {
    color: #374151;
}

.border-gray-custom-700 {
    border-color: #374151;
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

.social-icon {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.2), transparent);
    transition: left 0.5s;
}

.social-icon:hover::before {
    left: 100%;
}

.contact-item {
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.contact-item:hover {
    background: rgba(251, 191, 36, 0.1);
    transform: translateX(-5px);
}

.floating-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.gradient-text {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* استایل دکمه‌های شیشه‌ای */
.button-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    margin: 3rem auto;
    font-size: 0;
    line-height: 0;
}

.glass-btn {
    position: relative;
    background: linear-gradient(145deg, #f0f4f8, #e2e8f0);
    border: none;
    border-radius: 50px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        12px 12px 24px rgba(163, 177, 198, 0.6),
        -12px -12px 24px rgba(255, 255, 255, 0.8),
        inset 0 0 0 rgba(163, 177, 198, 0.2),
        inset 0 0 0 rgba(255, 255, 255, 0.8);
    min-width: 140px;
    height: 50px;
    line-height: 1;
    overflow: hidden;
    box-sizing: border-box;
    vertical-align: middle;
    font-size: 1.125rem;
    margin: 0;
    text-decoration: none;
}

.glass-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.glass-btn:hover::before {
    left: 100%;
}

.glass-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    opacity: 0;
    border-radius: 50px;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.glass-btn:hover::after {
    opacity: 0.9;
}

.glass-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        16px 16px 32px rgba(163, 177, 198, 0.4),
        -16px -16px 32px rgba(255, 255, 255, 0.9),
        inset 2px 2px 8px rgba(163, 177, 198, 0.1),
        inset -2px -2px 8px rgba(255, 255, 255, 0.9);
}

.glass-btn:active {
    transform: translateY(-4px) scale(0.98);
    transition: transform 0.1s ease;
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    line-height: 1;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--navy);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
}

.glass-btn:hover .btn-content {
    color: var(--navy);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
}

.count-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.floating-orbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 32px;
    height: 20px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.orb {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    margin: 0;
    padding: 0;
    animation: floatOrb 4s infinite ease-in-out;
}

.orb:nth-child(1) {
    animation-delay: 0s;
}

.orb:nth-child(2) {
    animation-delay: 1.5s;
}

.orb:nth-child(3) {
    animation-delay: 3s;
}

@keyframes floatOrb {
    0%, 100% { 
        opacity: 0; 
        transform: translateY(30px) scale(0);
    }
    50% { 
        opacity: 0.8; 
        transform: translateY(-30px) scale(1);
    }
}

.count-orb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 
        4px 4px 8px rgba(59, 130, 246, 0.3),
        -2px -2px 6px rgba(255, 255, 255, 0.8),
        inset 1px 1px 2px rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.count-orb::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: none;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.glass-btn:hover .count-orb::before {
    opacity: 0;
}

.glass-btn:hover .count-orb {
    background: linear-gradient(145deg, #f59e0b, #d97706);
    color: white;
    transform: scale(1.15) rotate(360deg);
    box-shadow: 
        0 0 25px rgba(245, 158, 11, 0.8),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        0 8px 20px rgba(245, 158, 11, 0.4);
    border: 2px solid #fbbf24;
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.glass-btn:hover .btn-icon {
    transform: translateX(-6px) scale(1.2) rotate(15deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.selected-count {
    font-size: 0.875rem;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .slider {
        height: 300px;
    }

    .slide h1 {
        font-size: 1.5rem;
    }

    .slide p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .slider .indicators {
        bottom: 15px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .product-card {
        min-height: 380px;
        max-height: 400px;
    }

    .product-image-container {
        height: 160px;
    }

    .product-card-content {
        padding: 1rem;
    }

    .product-card-content h3 {
        font-size: 1rem;
    }

    .two-line-desc {
        font-size: 0.8rem;
    }

    .desc {
        font-size: 0.8rem;
    }

    .category {
        font-size: 0.7rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .glass-btn {
        min-width: 110px;
        padding: 0 14px;
        height: 44px;
        font-size: 0.875rem;
        box-sizing: border-box;
    }

    .button-container {
        gap: 0.3rem;
    }

    .floating-orbs {
        width: 28px;
        height: 18px;
    }

    .orb {
        width: 7px;
        height: 7px;
    }

    .count-orb {
        width: 18px;
        height: 18px;
    }

    .btn-icon {
        width: 18px;
        height: 18px;
    }

    .selected-count {
        font-size: 0.75rem;
    }

    .btn-content {
        height: 44px;
        gap: 8px;
    }

    .count-section {
        gap: 8px;
    }

    .custom-checkbox-wrapper {
        padding: 6px 10px;
        width: 100%;
        justify-content: center;
    }

    .checkbox-text {
        font-size: 0.7rem;
    }

    .badge {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    .section-title-button {
        width: 160px;
        padding: 10px 20px;
    }

    .table th,
    .table td {
        font-size: 0.7rem;
        padding: 5px;
    }

    .no-products {
        font-size: 0.85rem;
        padding: 2rem 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .product-card {
        min-height: 360px;
        max-height: 380px;
    }

    .product-image-container {
        height: 140px;
    }

    .product-card-content {
        padding: 0.75rem;
    }

    .section-title-button {
        width: 140px;
        padding: 8px 16px;
    }
}


/* کانتینر دکمه‌ها */
.button-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin: 3rem auto;
    width: fit-content;
    font-size: 0;
    line-height: 0;
}

/* دکمه شیشه‌ای — همه یکسان + رادیوس یکسان */
.glass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    padding: 0 20px;
    width: 180px; /* عرض یکسان */
    min-width: 180px;
    box-sizing: border-box;
    font-size: 1.125rem;
    line-height: 1;
    vertical-align: middle;
    margin: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px; /* رادیوس کامل — مثل استایل اولیه (pill-shaped) */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    white-space: nowrap;
}

/* هاور — بدون فیلتر زرد */
.glass-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

/* orbs — یکسان */
.floating-orbs {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 20px;
    flex-shrink: 0;
}

.orb {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.7;
    animation: pulse 1.5s infinite;
    margin: 0;
    padding: 0;
}

.orb:nth-child(2) { animation-delay: 0.15s; }
.orb:nth-child(3) { animation-delay: 0.3s; }

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* محتوا — یکسان */
.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    margin: 0;
    padding: 0;
    line-height: 1;
    flex: 1;
    white-space: nowrap;
}

/* متن — مشکی و یکسان */
.btn-content > span,
.count-section > span {
    font-size: 1.125rem;
    line-height: 1;
    color: #000;
    font-weight: 500;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

/* شمارنده — فقط در دکمه مقایسه */
.count-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.count-orb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 0;
    padding: 0;
}

.selected-count {
    font-size: 0.875rem;
    line-height: 1;
    color: #000;
    font-weight: bold;
    margin: 0;
    padding: 0;
}

/* آیکون — یکسان */
.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: #000;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease;
}

.glass-btn:hover .btn-icon {
    transform: translateX(4px);
}