/* ============================================
   OA.AI Shop - Custom Styles
   RTL-first with Tailwind overrides
   ============================================ */

html {
    direction: rtl;
}

body {
    font-family: 'Heebo', Arial, sans-serif;
}

/* --- Flip icons for RTL --- */
[dir="rtl"] .icon-flip {
    transform: scaleX(-1);
}

/* --- Product card hover effects --- */
.product-card {
    transition: box-shadow 0.3s ease, transform 0.15s ease;
}
.product-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* --- Action bar: always visible on mobile, slide up on hover on desktop --- */
.product-card .action-bar {
    transition: all 0.25s ease;
}
@media (min-width: 640px) {
    .product-card .action-bar {
        opacity: 0;
        transform: translateY(10px);
    }
    .product-card:hover .action-bar {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Active filter tag --- */
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* --- Mega menu animation --- */
.mega-menu-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}
.mega-menu-trigger:hover .mega-menu-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* --- Modal backdrop --- */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* --- Discount badge --- */
.discount-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
}

/* --- Category divider line --- */
.category-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.category-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to left, #E85B5B, transparent);
}

/* --- Custom scrollbar --- */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* --- Line clamp --- */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Price range slider custom --- */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
}
input[type="range"]::-webkit-slider-runnable-track {
    height: 0;
}

/* --- Search preview animation --- */
#search-preview {
    animation: slideDown 0.2s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Cart preview dropdown --- */
#cart-preview {
    animation: slideDown 0.2s ease;
}

/* --- Quick view modal animation --- */
#quick-view-modal > .relative > div {
    animation: scaleIn 0.2s ease;
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Toast notification --- */
#toast-notification {
    z-index: 200;
}

/* --- Step indicator active pulse --- */
.step-active {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(43, 187, 211, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(43, 187, 211, 0); }
}

/* --- Dashboard sidebar active item --- */
.dashboard-nav-active {
    position: relative;
}
.dashboard-nav-active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 3px;
    background: #2BBBD3;
    border-radius: 3px;
}

/* --- Hide scrollbar but allow scroll --- */
.scrollbar-none::-webkit-scrollbar {
    display: none;
}
.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- Compare table striped --- */
.compare-table tr:nth-child(even) td {
    background-color: #f9fafb;
}
