/* Custom styles */
:root {
    --primary-50: rgb(255 247 237);
    --primary-100: rgb(255 237 213);
    --primary-200: rgb(254 215 170);
    --primary-300: rgb(253 186 116);
    --primary-400: rgb(251 146 60);
    --primary-500: rgb(247 165 28);
    --primary-600: rgb(234 138 0);
    --primary-700: rgb(194 115 0);
    --primary-800: rgb(154 91 0);
    --primary-900: rgb(124 74 0);
    --primary-950: rgb(94 56 0);
    --text-color: #2d3436;
    --text-secondary: #666666;
    --gray-bg: #f7f8fa;
    --border-color: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Vazirmatn", sans-serif;
}

body {
    background-color: var(--gray-bg);
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
    direction: rtl;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.toast-success {
    background-color: #10b981;
}

.toast-error {
    background-color: #ef4444;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animation for dialogs */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.2s ease-out;
}
