:root {
    /* Primary Colors - Same as main site */
    --color-primary: #f8a400;
    --color-secondary: #FFFEFC;
    --color-accent: #f8a400;

    /* Accent Variations */
    --color-accent-dark: #201f1d;
    --color-accent-light: #ffc14d;

    /* Text Colors */
    --color-text-primary: #201f1d;
    --color-text-secondary: #666666;

    /* Border Colors */
    --color-border-light: #e0e0e0;

    /* Background Colors */
    --color-bg-light: #FFFDF8;
    --color-bg-secondary: #FFFEFC;
    --color-bg-bg-light: #fef9f0;

    /* Dashboard Status Colors */
    --dashboard-warning: #ffc107;
    --dashboard-success: #198754;
    --dashboard-danger: #dc3545;
    --dashboard-info: #0dcaf0;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: var(--color-text-primary);
    background-color: var(--color-bg-bg-light);
    line-height: 1.6;
}

* {
    transition: all 0.3s ease;
}

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-dark);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

/*.btn-primary:hover {*/
/*    background-color: #201f1d;*/
/*    transform: translateY(-2px);*/
/*    box-shadow: 0 4px 12px rgba(32, 31, 29, 0.3);*/
/*}*/

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: 2px solid var(--color-primary);
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

/*.btn-secondary:hover {*/
/*    background-color: #f8a400;*/
/*    color: white;*/
/*}*/

.card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(248, 164, 0, 0.1);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-new {
    background-color: var(--color-primary);
    color: white;
}

.badge-sale {
    background-color: #dc2626;
    color: white;
}

.badge-featured {
    background-color: #f59e0b;
    color: white;
}

.stars {
    color: #f59e0b;
}

.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

[dir="rtl"] .ml-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

[dir="rtl"] .mr-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

/* Swiper Navigation Arrows Customization */
.swiper-button-next,
.swiper-button-prev {
    color: var(--color-primary) !important;
    background: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--color-primary);
    color: white !important;
    box-shadow: 0 4px 12px rgba(248, 164, 0, 0.3);
    transform: scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    background: var(--color-primary);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--color-primary);
}

/* Category Navigation Custom Arrows */
.category-swiper-button-prev,
.category-swiper-button-next {
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 8px !important;
}

.category-swiper-button-prev:after,
.category-swiper-button-next:after {
    content: "" !important;
}

.category-swiper-button-prev.swiper-button-disabled,
.category-swiper-button-next.swiper-button-disabled {
    opacity: 0 !important;
    pointer-events: none !important;
}

.categorySwiper .swiper-wrapper {
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (min-width: 768px) {
    .categorySwiper .swiper-wrapper {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Custom Loader */
.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    border-top: 4px solid var(--color-primary);
    border-right: 4px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader::after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border-left: 4px solid var(--color-accent-dark);
    border-bottom: 4px solid transparent;
    animation: rotation 0.5s linear infinite reverse;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.pageLoader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Custom Scrollbar for Mobile Menu */
.mobile-menu-scroll::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.mobile-menu-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.mobile-menu-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Swiper Navigation Arrows */
.categories-nav-swiper:hover .swiper-button-next-custom,
.categories-nav-swiper:hover .swiper-button-prev-custom {
    opacity: 1;
}

.swiper-button-next-custom.swiper-button-disabled,
.swiper-button-prev-custom.swiper-button-disabled {
    opacity: 0 !important;
    pointer-events: none;
}

.categories-nav-swiper .swiper-wrapper {
    align-items: center;
}

/* Livewire Loading Indicator Customization */
[x-cloak] {
    display: none !important;
}

/* تخصيص لون شريط التحميل الخاص بـ Livewire */
div[wire\:loading] {
    color: var(--color-primary) !important;
}

/* تخصيص شريط التحميل العلوي */
/*[x-data] [wire\:loading] {*/
/*    background-color: #f8a400 !important;*/
/*}*/

/* Livewire Progress Bar */
[x-cloak] {
    display: none;
}

/* تخصيص شريط التقدم الافتراضي لـ Livewire */
.htmx-indicator,
[wire\:loading\.delay] {
    opacity: 0;
    transition: opacity 200ms ease-in;
}

[wire\:loading\.delay\.longest] {
    opacity: 0;
    transition: opacity 1500ms ease-in;
}

/* Override Livewire's default blue progress bar */
@media (prefers-reduced-motion: no-preference) {
    [x-cloak] {
        display: none !important;
    }
}

[x-cloak] {
    display: none !important;
}

/* Hide Livewire's default navigation progress bar completely */
[wire\:loading][data-livewire-progress],
[x-data] > div[style*="position: fixed"][style*="top: 0"][style*="height: 2px"],
div[style*="background-color: rgb(59, 130, 246)"][style*="position: fixed"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Keep loading indicators for component-level loading states */
[wire\:loading] .animate-spin {
    color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
    accent-color: var(--color-primary) !important;
}
input[type="radio"],
input[type="checkbox"] {
    accent-color: var(--color-primary);
}
