/* =================================================================
   GLOBAL STYLES - استایل‌های کلی و متغیرها
   ================================================================= */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

html {
    margin: 0;
    padding: 0;
}

body::before {
    content: '';
    display: none;
}

body:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

:root {
    /* Brand Color */
    --base-color: #5C4DFF;
    --danger-color: #ef4444;
    --success-color: #43A048;
    --badge-color: #FF8400;

    /* Modern Color Palette */
    --primary: #5C4DFF;
    --primary-dark: #463bc9;
    --secondary: #6558fa;
    --accent: #06b6d4;
    --success: #43A048;
    --warning: #f59e0b;
    --error: #ef4444;


    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #414141;
    --gray-900: #111827;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #5C4DFF 0%, #6558fa 100%);
    --gradient-primary-custom: linear-gradient(135deg, #5C4DFF 0%, #6c5df8 20%, #7466f6 60%, #6558fa 100%);
    --gradient-secondary: linear-gradient(135deg, #5C4DFF 0%, #6558fa 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: 20px;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Typography */
    --font-primary: 'Vazirmatn';
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-base: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
}

/* Body */
body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--gray-800);
    direction: rtl;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Input Focus Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--base-color) !important;
    box-shadow: 0 0 0 3px rgba(43, 190, 249, 0.1) !important;
}

/* Container */
.container {
    max-width: 82.063rem;
    margin: 0 auto;
    padding: 0;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loading-spinner::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes float {

}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes shimmer {
    0% { transform: translate(-100%, -100%) rotate(45deg); }
    100% { transform: translate(100%, 100%) rotate(45deg); }
}

/* Carousel */
.carousel {
    direction: rtl;
}

.carousel-control-prev {
    right: auto;
    top: 50%;
    background-color: darkgray;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}

.carousel-control-next {
    left: auto;
    top: 50%;
    background-color: darkgray;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}

/* Horizontal Scroll Component */
.horizontal-scroll {
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    position: relative !important;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
    width: 0px;
    background: transparent;
}

.horizontal-scroll:active {
    cursor: grabbing;
}

.horizontal-scroll-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1rem !important;
    width: fit-content !important;
    min-width: max-content !important;
}

.horizontal-scroll-item {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    pointer-events: auto;
}

.horizontal-scroll.dragging .horizontal-scroll-item * {
    pointer-events: none !important;
}
.fontColorBaseValue {
    color: var(--base-color) !important;
}
.btnWithBaseSuccessColor {
    background-color: var(--success-color) !important;
    border-color: var(--success-color) !important;
}
.btnPrimaryWithBaseColor {
    color: var(--base-color) !important;
    border: 1px solid var(--base-color) !important;
}
.textFixContent {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.4em;
    max-height: 2.8em;
    width: 100%;
    word-break: break-word;
}
.textWithSuccessColor {
    color: var(--success-color) !important;
}
body.profile-mobile-open,
html.profile-mobile-open {
    overflow: hidden !important;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 30rem),(max-width: 36rem),(max-width: 48rem),(max-width: 62rem),(max-width: 75rem),(max-width: 82rem) {
    .divForPaddingSliders {
        display: flex !important;
        padding:0 0.3rem !important;
    }
}
@media (max-width: 30rem),(max-width: 36rem),(max-width: 48rem),(max-width: 87.5rem) {
    .divForPaddingProductSliders {
        display: flex !important;
        padding:0 0.3rem !important;
    }
}
