/* Custom Styles for Boutiqe Loras */

/* Arabic Font Optimization */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&display=swap');

/* Custom Scroll Bar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #FF7BAC;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #F9A8D4;
}

/* Custom Selection Color */
::selection {
    background-color: #F9A8D4;
    color: #fff;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Global Elements */
body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
}

a {
    transition: all 0.3s ease;
}

/* Product Cards Hover Effect */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 123, 172, 0.3);
    border-radius: 50%;
    border-top-color: #FF7BAC;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Radio Buttons for Colors and Sizes */
.color-radio:checked + label {
    border-color: #FF7BAC;
    transform: scale(1.1);
}

.size-radio:checked + label {
    background-color: #FF7BAC;
    color: white;
}

/* Custom Checkbox Styles */
.custom-checkbox {
    position: relative;
    padding-right: 30px;
    cursor: pointer;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-checkbox .checkmark {
    position: absolute;
    top: 0;
    right: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.custom-checkbox:hover .checkmark {
    border-color: #ccc;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #FF7BAC;
    border-color: #FF7BAC;
}

.custom-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* RTL Specific Adjustments */
.rtl-flip {
    transform: scaleX(-1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.slider-container {
    width: 100%;
}

.slider-item {
    width: 100%;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.slider-dot.active {
    background-color: #FF7BAC;
}

/* Shadow Hover Effect */
.shadow-hover {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Transition Effects */
.transition-all {
    transition-property: all;
    transition-duration: 300ms;
}

/* Toast Notifications */
/* تم نقل هذه التنسيقات إلى base.html للتحكم المباشر في مظهر الإشعارات */
/* الإشعارات الجديدة تستخدم الكلاس toast-notification بدلاً من toast */

/* Loader */
.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--color-primary-light);
    border-top-color: var(--color-primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
} 