/* ============================================
   RAYKA Public Header - Premium Design
   ============================================ */

:root {
    --h-yellow: #FBBF24;
    --h-orange: #F97316;
    --h-red: #DC2626;
    --h-gradient: linear-gradient(135deg, #FBBF24 0%, #F97316 50%, #DC2626 100%);
    --h-gradient-warm: linear-gradient(135deg, #F97316 0%, #DC2626 100%);
    
    --h-white: #FFFFFF;
    --h-gray-50: #F9FAFB;
    --h-gray-100: #F3F4F6;
    --h-gray-200: #E5E7EB;
    --h-gray-300: #D1D5DB;
    --h-gray-400: #9CA3AF;
    --h-gray-500: #6B7280;
    --h-gray-600: #4B5563;
    --h-gray-700: #374151;
    --h-gray-800: #1F2937;
    --h-gray-900: #111827;
    
    --h-radius: 12px;
    --h-radius-lg: 16px;
    --h-radius-full: 9999px;
    
    --h-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --h-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --h-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --h-shadow-brand: 0 10px 30px rgba(249, 115, 22, 0.25);
    
    --h-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════
   FIX: حذف کامل مارجین و اسکرول افقی ناخواسته
   ═══════════════════════════════════════════════════════════ */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}

/* ============================================
   HEADER
   ============================================ */

.public-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--h-gray-200);
    transition: var(--h-transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--h-gradient);
    border-radius: var(--h-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--h-white);
    font-size: 1.5rem;
    box-shadow: var(--h-shadow-brand);
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    background: var(--h-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    display: block;
    font-size: 0.75rem;
    color: var(--h-gray-500);
    margin-top: 2px;
    font-weight: 500;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--h-gray-600);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--h-transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--h-gradient);
    transition: var(--h-transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--h-orange);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Search Button */
.search-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--h-radius);
    background: var(--h-gray-50);
    color: var(--h-gray-700);
    border: 1px solid var(--h-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--h-transition);
    font-size: 1rem;
}

.search-btn:hover {
    background: var(--h-gradient-warm);
    color: var(--h-white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--h-shadow-brand);
}


.cart-count {
    position: absolute;
    top: -4px;
    left: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--h-red);
    color: var(--h-white);
    border-radius: var(--h-radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--h-white);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--h-gray-50);
    border: 1px solid var(--h-gray-200);
    border-radius: var(--h-radius-full);
    color: var(--h-gray-700);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--h-transition);
    font-family: inherit;
}

.user-btn:hover {
    background: var(--h-gray-100);
    border-color: var(--h-orange);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: var(--h-white);
    border: 1px solid var(--h-gray-200);
    border-radius: var(--h-radius-lg);
    box-shadow: var(--h-shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--h-transition);
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a,
.user-dropdown button {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.75rem 1rem;
    color: var(--h-gray-700);
    font-size: 0.875rem;
    border-radius: var(--h-radius);
    transition: var(--h-transition);
    text-decoration: none;
    text-align: right;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: var(--h-gray-50);
    color: var(--h-orange);
}

.user-dropdown i {
    width: 18px;
    color: var(--h-gray-400);
}

.dropdown-divider {
    height: 1px;
    background: var(--h-gray-200);
    margin: 0.5rem 0;
}

.logout-btn {
    color: var(--h-red) !important;
}

.logout-btn:hover {
    background: #FEE2E2 !important;
}

/* Login/Register Buttons */
.btn-login,
.btn-register {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--h-radius);
    text-decoration: none;
    transition: var(--h-transition);
    white-space: nowrap;
}

.btn-login {
    color: var(--h-gray-700);
    background: var(--h-gray-50);
    border: 1px solid var(--h-gray-200);
}

.btn-login:hover {
    background: var(--h-gray-100);
    border-color: var(--h-orange);
    color: var(--h-orange);
}

.btn-register {
    color: var(--h-white);
    background: var(--h-gradient-warm);
    border: 1px solid transparent;
    box-shadow: var(--h-shadow-brand);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.35);
}

/* ============================================
   BOTTOM NAVIGATION (Mobile Only)
   ============================================ */

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background: rgb(255 255 255 / 62%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 1rem;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    text-decoration: none;
    color: var(--h-gray-500);
    transition: var(--h-transition);
    position: relative;
    border-radius: var(--h-radius);
    min-width: 70px;
}

.bottom-nav-item::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 30px;
    height: 3px;
    background: var(--h-gradient);
    border-radius: 0 0 3px 3px;
    transition: var(--h-transition);
}

.bottom-nav-item:hover {
    color: var(--h-orange);
}

.bottom-nav-item.active {
    color: var(--h-orange);
}

.bottom-nav-item.active::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--h-transition);
}

.bottom-nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ============================================
   SEARCH MODAL
   ============================================ */

.search-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    background: var(--h-white);
    border-radius: var(--h-radius-lg);
    padding: 1.5rem;
    width: 100%;
    max-width: 600px;
    box-shadow: var(--h-shadow-lg);
    display: flex;
    gap: 1rem;
    align-items: center;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-form {
    flex: 1;
    display: flex;
    gap: 0.75rem;
}

.search-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--h-gray-200);
    border-radius: var(--h-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--h-transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--h-orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.search-submit {
    width: 48px;
    height: 48px;
    border-radius: var(--h-radius);
    background: var(--h-gradient-warm);
    color: var(--h-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.125rem;
    transition: var(--h-transition);
}

.search-submit:hover {
    transform: scale(1.05);
    box-shadow: var(--h-shadow-brand);
}

.search-close {
    width: 48px;
    height: 48px;
    border-radius: var(--h-radius);
    background: var(--h-gray-100);
    color: var(--h-gray-700);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--h-transition);
    flex-shrink: 0;
}

.search-close:hover {
    background: var(--h-red);
    color: var(--h-white);
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.25rem;
    }
    
    .nav-menu a {
        font-size: 0.875rem;
    }
    
    .user-btn span {
        display: none;
    }
    
    .btn-login,
    .btn-register {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    
    /* Hide Desktop Navigation */
    .main-nav {
        display: none;
    }
    
    .btn-login,
    .btn-register {
        display: none;
    }
    
    .user-menu {
        display: none;
    }
    
    .search-btn {
        display: none;
    }
    
    /* Show Bottom Navigation */
    .bottom-nav {
        display: block;
    }
    
    /* Add padding to body for bottom nav */
    body {
        padding-bottom: 80px;
    }
    
    /* Header adjustments */
    .public-header {
        padding: 0.5rem 0;
    }
    
    .header-content {
        padding: 0.75rem 0;
        gap: 1rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .logo-text h1 {
        font-size: 1.25rem;
    }
    
    .logo-text span {
        font-size: 0.6875rem;
    }
    
    /* Search Modal */
    .search-modal {
        padding: 1rem;
    }
    
    .search-modal-content {
        padding: 1.25rem;
        flex-direction: column;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-close {
        width: 100%;
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE
   ============================================ */

@media (max-width: 480px) {
    .logo-text span {
        display: none;
    }
    
    .logo-text h1 {
        font-size: 1.125rem;
    }
    
    .bottom-nav-item {
        padding: 0.5rem 0.75rem;
        min-width: 60px;
    }
    
    .nav-icon {
        font-size: 1.125rem;
    }
    
    .nav-label {
        font-size: 0.625rem;
    }
}


/* ═══════════════════════════════════════════════════════════
   HEADER TOPBAR
   ═══════════════════════════════════════════════════════════ */
.header-topbar {
    background: var(--h-gray-900);
    color: var(--h-gray-300);
    font-size: 0.8125rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--h-gray-800);
}

.topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--h-gray-300);
    text-decoration: none;
    transition: var(--h-transition);
}

.topbar-item:hover {
    color: var(--h-orange);
}

.topbar-item i {
    color: var(--h-orange);
    font-size: 0.75rem;
}

.topbar-divider {
    width: 1px;
    height: 12px;
    background: var(--h-gray-700);
}

.topbar-promo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--h-yellow);
    font-weight: 600;
}

.topbar-promo i {
    animation: slideRight 2s ease-in-out infinite;
}

@keyframes slideRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* ═══════════════════════════════════════════════════════════
   HEADER MAIN - Enhanced
   ═══════════════════════════════════════════════════════════ */
.public-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.public-header.is-scrolled .header-topbar {
    display: none;
}

/* Inline Search */
.header-search {
    flex: 1;
    max-width: 480px;
    margin: 0 1.5rem;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--h-gray-50);
    border: 2px solid var(--h-gray-200);
    border-radius: var(--h-radius);
    transition: var(--h-transition);
    overflow: hidden;
}

.search-wrapper:focus-within {
    border-color: var(--h-orange);
    background: var(--h-white);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.search-icon {
    position: absolute;
    right: 1rem;
    color: var(--h-gray-400);
    font-size: 0.875rem;
    pointer-events: none;
}

.header-search .search-input {
    flex: 1;
    padding: 0.75rem 2.5rem 0.75rem 0.5rem;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--h-dark);
    outline: none;
    min-width: 0;
}

.search-submit-btn {
    padding: 0.75rem 1.25rem;
    background: var(--h-gradient-warm);
    color: var(--h-white);
    border: none;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--h-transition);
}

.search-submit-btn:hover {
    background: var(--h-gray-900);
}

/* User Avatar Small */
.user-avatar-sm {
    width: 32px;
    height: 32px;
    background: var(--h-gradient-warm);
    color: var(--h-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chevron {
    font-size: 0.625rem;
    color: var(--h-gray-400);
    transition: transform 0.3s ease;
}

.user-menu.is-open .user-chevron {
    transform: rotate(180deg);
}

.user-menu.is-open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--h-gray-200);
    margin-bottom: 0.5rem;
}

.dropdown-header strong {
    display: block;
    color: var(--h-gray-900);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
}

.dropdown-header small {
    color: var(--h-gray-500);
    font-size: 0.75rem;
}

/* Action Buttons */
.action-btn {
    position: relative;
    /* width: 44px;
    height: 44px; */
    border-radius: var(--h-radius);
    background: var(--h-gray-50);
    color: var(--h-gray-700);
    border: 1px solid var(--h-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--h-transition);
    font-size: 1.125rem;
}

.action-btn:hover {
    background: var(--h-gradient-warm);
    color: var(--h-white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--h-shadow-brand);
}

/* Mobile Hamburger - Premium Design */
.mobile-hamburger {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--h-gray-50);
    border: 1px solid var(--h-gray-200);
    border-radius: var(--h-radius);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    transition: var(--h-transition);
}

.mobile-hamburger:hover {
    background: var(--h-primary-light, #FFF7ED);
    border-color: var(--h-orange);
}

.mobile-hamburger .bar {
    width: 20px;
    height: 2px;
    background: var(--h-gray-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-hamburger:hover .bar {
    background: var(--h-orange);
}

.mobile-hamburger.is-active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--h-orange);
}

.mobile-hamburger.is-active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-hamburger.is-active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--h-orange);
}

/* Bottom Nav Cart Badge */
.nav-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--h-red);
    color: var(--h-white);
    border-radius: var(--h-radius-full);
    font-size: 0.625rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--h-white);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE - TOPBAR
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .header-topbar {
        display: none;
    }

    .header-search {
        display: none;
    }

    .mobile-hamburger {
        display: flex;
    }

    .btn-login,
    .btn-register {
        display: none;
    }

    .user-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-content {
        gap: 0.75rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .logo-text h1 {
        font-size: 1.25rem;
    }

    .logo-text span {
        font-size: 0.6875rem;
    }

    .action-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-text span {
        display: none;
    }

    .logo-text h1 {
        font-size: 1.125rem;
    }
}


/* ═══════════════════════════════════════════════════════════
   RAYKA GLOBAL - Custom Scrollbar & Progress Bar
   ═══════════════════════════════════════════════════════════ */

/* ═══════ Firefox Support ═══════ */
* {
    scrollbar-width: thin;
    scrollbar-color: #F97316 #F3F4F6;
}

/* ═══════ WebKit Browsers (Chrome, Edge, Safari, Opera) ═══════ */

/* Main Scrollbar - Vertical */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

/* Scrollbar Track (Background) */
::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 10px;
}

/* Scrollbar Thumb (Draggable Part) */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FBBF24 0%, #F97316 50%, #DC2626 100%);
    border-radius: 10px;
    border: 2px solid #F3F4F6;
    transition: all 0.3s ease;
}

/* Scrollbar Thumb - Hover */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #F59E0B 0%, #EA580C 50%, #B91C1C 100%);
    border: 2px solid #E5E7EB;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}

/* Scrollbar Thumb - Active (Dragging) */
::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #EA580C 0%, #DC2626 100%);
    border: 2px solid #FCA5A5;
}

/* Scrollbar Corner (Where vertical & horizontal meet) */
::-webkit-scrollbar-corner {
    background: #F3F4F6;
}


/* Small Scrollbar for Cards & Modals */
.sidebar-widget,
.comment-form-wrapper,
.mega-menu-inner,
.mobile-drawer,
.p-sidebar,
.modal-body,
.dropdown-menu {
    scrollbar-width: thin;
}

.sidebar-widget::-webkit-scrollbar,
.comment-form-wrapper::-webkit-scrollbar,
.mega-menu-inner::-webkit-scrollbar,
.mobile-drawer::-webkit-scrollbar,
.p-sidebar::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-widget::-webkit-scrollbar-track,
.comment-form-wrapper::-webkit-scrollbar-track,
.mega-menu-inner::-webkit-scrollbar-track,
.mobile-drawer::-webkit-scrollbar-track,
.p-sidebar::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track,
.dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-widget::-webkit-scrollbar-thumb,
.comment-form-wrapper::-webkit-scrollbar-thumb,
.mega-menu-inner::-webkit-scrollbar-thumb,
.mobile-drawer::-webkit-scrollbar-thumb,
.p-sidebar::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(249, 115, 22, 0.4);
    border-radius: 10px;
    border: none;
}

.sidebar-widget::-webkit-scrollbar-thumb:hover,
.comment-form-wrapper::-webkit-scrollbar-thumb:hover,
.mega-menu-inner::-webkit-scrollbar-thumb:hover,
.mobile-drawer::-webkit-scrollbar-thumb:hover,
.p-sidebar::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover,
.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(249, 115, 22, 0.7);
}

/* ═══════════════════════════════════════════════════════════
   PAGE LOAD PROGRESS BAR (Top of Page)
   ═══════════════════════════════════════════════════════════ */

/* Progress Element - Native Browser Progress */
progress {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 3px;
    border: none;
    background: transparent;
}

/* Progress Bar - WebKit */
progress::-webkit-progress-bar {
    background: transparent;
}

progress::-webkit-progress-value {
    background: linear-gradient(90deg, #FBBF24 0%, #F97316 50%, #DC2626 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
    transition: width 0.3s ease;
}

/* Progress Bar - Firefox */
progress::-moz-progress-bar {
    background: linear-gradient(90deg, #FBBF24 0%, #F97316 50%, #DC2626 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
}

/* ═══════ Custom Loading Bar (For SPA/Ajax) ═══════ */
.rk-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rk-page-loader.is-loading {
    opacity: 1;
}

.rk-page-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FBBF24 0%, #F97316 50%, #DC2626 100%);
    border-radius: 0 2px 2px 0;
    box-shadow:
        0 0 10px rgba(249, 115, 22, 0.8),
        0 0 20px rgba(249, 115, 22, 0.4);
    animation: rkProgressIndeterminate 2s ease-in-out infinite;
}

@keyframes rkProgressIndeterminate {
    0% {
        left: 0%;
        width: 0%;
    }
    50% {
        left: 30%;
        width: 40%;
    }
    100% {
        left: 100%;
        width: 0%;
    }
}

/* ═══════════════════════════════════════════════════════════
   SMOOTH SCROLL & SELECTION
   ═══════════════════════════════════════════════════════════ */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* برای anchor ها که زیر header نروند */
}

/* Custom Text Selection */
::selection {
    background: rgba(249, 115, 22, 0.25);
    color: #DC2626;
}

::-moz-selection {
    background: rgba(249, 115, 22, 0.25);
    color: #DC2626;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE - Hide Scrollbar on Mobile (Optional)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Optional: اگر می‌خواهی در موبایل اسکرول‌بار کوچک‌تر باشد */
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-thumb {
        border: 1px solid #F3F4F6;
    }
}

/* ═══════════════════════════════════════════════════════════
   PRINT - Hide Scrollbar
   ═══════════════════════════════════════════════════════════ */
@media print {
    ::-webkit-scrollbar {
        display: none;
    }
    * {
        scrollbar-width: none;
    }
}