/* ============================================================
   CHERAKA SPORT — Design System & Complete Styles
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+Arabic:wght@300;400;500;600;700;800;900&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
    /* Colors */
    --green: #00E676;
    --green-dark: #00C853;
    --green-light: #69F0AE;
    --green-glow: rgba(0, 230, 118, 0.15);
    --green-glow-strong: rgba(0, 230, 118, 0.3);

    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1c1c1c;
    --bg-elevated: #1a1a1a;
    --bg-input: #1e1e1e;
    --bg-glass: rgba(22, 22, 22, 0.8);

    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --text-on-green: #0a0a0a;

    --border: #2a2a2a;
    --border-light: #333333;

    --red: #FF5252;
    --yellow: #FFD740;
    --blue: #448AFF;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-arabic: 'Noto Sans Arabic', 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-green: 0 4px 20px rgba(0, 230, 118, 0.2);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Layout */
    --header-height: 60px;
    --bottom-nav-height: 64px;
    --max-width: 1280px;
    --content-padding: 16px;
}

/* RTL font override */
[dir="rtl"] {
    --font-primary: 'Noto Sans Arabic', 'Inter', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: calc(var(--bottom-nav-height) + 16px);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
    color: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
}

ul, ol {
    list-style: none;
}

/* ---- Utilities ---- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
}

.section {
    padding: var(--space-3xl) 0;
}

.section__title {
    font-size: 1.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
}

.section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--green);
    margin: var(--space-sm) auto 0;
    border-radius: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* ---- Header ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all var(--transition-base);
}

.header--scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: var(--shadow-md);
}

.header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

[dir="rtl"] .header__inner {
    flex-direction: row;
}

.header__logo {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 2px;
    direction: ltr;
    unicode-bidi: isolate;
}

.header__logo .green {
    color: var(--green);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header__btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    transition: all var(--transition-fast);
    font-size: 0.85rem;
    font-weight: 700;
    position: relative;
}

.header__btn:hover {
    background: var(--bg-card-hover);
    transform: scale(1.05);
}

.header__btn svg {
    width: 20px;
    height: 20px;
    fill: var(--text-primary);
}

/* ---- Bottom Navigation ---- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 var(--space-md);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    color: var(--text-muted);
    position: relative;
    font-size: 0.7rem;
    font-weight: 500;
    min-width: 56px;
}

.bottom-nav__link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: all var(--transition-fast);
}

.bottom-nav__link.active,
.bottom-nav__link:hover {
    color: var(--green);
}

.bottom-nav__link.active svg {
    filter: drop-shadow(0 0 6px rgba(0, 230, 118, 0.4));
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: var(--green);
    color: var(--text-on-green);
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    display: none;
    align-items: center;
    justify-content: center;
}

/* ---- Toast ---- */
.toast-notification {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--green);
    color: var(--text-on-green);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2000;
    opacity: 0;
    transition: all var(--transition-base);
    white-space: nowrap;
    box-shadow: var(--shadow-green);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---- Skeleton Loading ---- */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-card {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 14px;
    margin-top: var(--space-sm);
    border-radius: 4px;
}

/* ---- Main Content ---- */
.main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
}

/* ============================================================
   HOME PAGE
   ============================================================ */

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-2xl) var(--content-padding);
}

.hero__slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.hero__slide.active {
    opacity: 1;
}

.hero__slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.5) 0%,
        rgba(10, 10, 10, 0.7) 50%,
        rgba(10, 10, 10, 0.95) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--green-glow);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: var(--green);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 230, 118, 0.1); }
    50% { box-shadow: 0 0 25px rgba(0, 230, 118, 0.25); }
}

.hero__title {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    letter-spacing: -1px;
}

.hero__title .green {
    color: var(--green);
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--green);
    color: var(--text-on-green);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 700;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-green);
}

.hero__cta:hover {
    background: var(--green-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 230, 118, 0.35);
}

.hero__cta svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Hero slider indicators */
.hero__indicators {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
    z-index: 2;
}

.hero__indicator {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-base);
}

.hero__indicator.active {
    width: 24px;
    background: var(--green);
}

/* How to Order Section */
.how-to-order {
    background: var(--bg-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
    max-width: 960px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
    position: relative;
}

.step-card:hover {
    border-color: rgba(0, 230, 118, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-green);
}

.step-card__number {
    width: 48px;
    height: 48px;
    background: var(--green-glow);
    color: var(--green);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 auto var(--space-md);
}

.step-card__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto var(--space-md);
    fill: var(--green);
}

.step-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.step-card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Featured Products */
.featured-products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
}

/* Product Card */
.product-card {
    display: block;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}

.product-card:hover {
    border-color: rgba(0, 230, 118, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-card__image-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image-wrap img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: var(--space-sm);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.badge--new {
    left: var(--space-sm);
    background: var(--green);
    color: var(--text-on-green);
}

.badge--sale {
    right: var(--space-sm);
    background: var(--red);
    color: white;
}

.badge--oos {
    left: var(--space-sm);
    bottom: var(--space-sm);
    top: auto;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-secondary);
}

[dir="rtl"] .badge--new {
    left: auto;
    right: var(--space-sm);
}

[dir="rtl"] .badge--sale {
    right: auto;
    left: var(--space-sm);
}

[dir="rtl"] .badge--oos {
    left: auto;
    right: var(--space-sm);
}

.product-card__info {
    padding: var(--space-md);
}

.product-card__name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__price {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.product-card__current-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--green);
}

.product-card__old-price {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-2xl);
    align-items: center;
}

@media (max-width: 768px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

.about__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    text-align: left;
}

[dir="rtl"] .about__content {
    text-align: right;
}

@media (max-width: 768px) {
    .about__content {
        text-align: center;
    }
    [dir="rtl"] .about__content {
        text-align: center;
    }
}

.about__text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.about__stat {
    text-align: center;
}

.about__stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--green);
    line-height: 1;
}

.about__stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.about__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    background: var(--bg-card);
}

.about__map iframe {
    width: 100%;
    height: 350px;
    display: block;
    border: none;
}

.sport-item__placeholder {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--bg-card-hover);
}

/* Testimonials */
.testimonials {
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    border-color: rgba(0, 230, 118, 0.2);
    transform: translateY(-2px);
}

.testimonial-card__stars {
    color: var(--yellow);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    letter-spacing: 2px;
}

.testimonial-card__text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    font-style: italic;
}

.testimonial-card__author {
    font-weight: 700;
    font-size: 0.9rem;
}

.testimonial-card__location {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: var(--space-3xl) 0 calc(var(--bottom-nav-height) + var(--space-xl));
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.footer__section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--green);
}

.footer__section p,
.footer__section a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer__section a:hover {
    color: var(--green);
}

.footer__section ul li {
    margin-bottom: var(--space-xs);
}

.footer__social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
    direction: ltr;
}

.footer__social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    border: 1px solid var(--border);
}

.footer__social a:hover {
    background: var(--green);
    border-color: var(--green);
}

.footer__social a:hover svg {
    fill: var(--text-on-green);
}

.footer__social svg {
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
}

.footer__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: var(--space-md);
    border: 1px solid var(--border);
}

.footer__map iframe {
    width: 100%;
    height: 200px;
    border: none;
}

.footer__bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer__brand {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: var(--space-sm);
}

/* ============================================================
   SHOP PAGE
   ============================================================ */

.shop-header {
    padding: var(--space-xl) 0 var(--space-lg);
}

.shop-header__title {
    font-size: 1.75rem;
    font-weight: 800;
}

/* Sports Filter (Horizontal Scroll) */
.sports-filter {
    padding: var(--space-md) 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sports-filter::-webkit-scrollbar {
    display: none;
}

.sports-filter__list {
    display: flex;
    gap: var(--space-md);
    padding: 0 var(--content-padding);
    min-width: min-content;
}

.sport-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    min-width: 80px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.sport-item__image {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all var(--transition-base);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sport-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sport-item__image svg {
    width: 32px;
    height: 32px;
    fill: var(--text-muted);
}

.sport-item.active .sport-item__image,
.sport-item:hover .sport-item__image {
    border-color: var(--green);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.3);
}

.sport-item__name {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sport-item.active .sport-item__name {
    color: var(--green);
}

/* Shop Controls */
.shop-controls {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm) 0 var(--space-md);
    flex-wrap: wrap;
    align-items: center;
}

.shop-controls__search {
    flex: 1;
    min-width: 180px;
    position: relative;
}

.shop-controls__search input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    padding-left: 40px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color var(--transition-fast);
    outline: none;
}

[dir="rtl"] .shop-controls__search input {
    padding-left: var(--space-md);
    padding-right: 40px;
}

.shop-controls__search input:focus {
    border-color: var(--green);
}

.shop-controls__search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
    pointer-events: none;
}

[dir="rtl"] .shop-controls__search svg {
    left: auto;
    right: 14px;
}

.filter-btn, .sort-select {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.filter-btn:hover, .sort-select:hover {
    border-color: var(--green);
}

.filter-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.sort-select {
    appearance: none;
    cursor: pointer;
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b0b0b0'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
}

[dir="rtl"] .sort-select {
    padding-right: var(--space-md);
    padding-left: 32px;
    background-position: left 8px center;
}

/* Filter Panel (Mobile Drawer) */
.filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: all var(--transition-base);
}

.filter-panel.open {
    visibility: visible;
    opacity: 1;
}

.filter-panel__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.filter-panel__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 80vh;
    background: var(--bg-elevated);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: var(--space-xl);
    transform: translateY(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
}

.filter-panel.open .filter-panel__content {
    transform: translateY(0);
}

.filter-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.filter-panel__title {
    font-size: 1.25rem;
    font-weight: 700;
}

.filter-panel__close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-panel__close svg {
    width: 20px;
    height: 20px;
    fill: var(--text-primary);
}

.filter-group {
    margin-bottom: var(--space-xl);
}

.filter-group__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.filter-chip {
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-chip:hover {
    border-color: var(--green);
    color: var(--green);
}

.filter-chip.active {
    background: var(--green-glow);
    border-color: var(--green);
    color: var(--green);
}

.filter-panel__actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn--primary {
    background: var(--green);
    color: var(--text-on-green);
    flex: 1;
}

.btn--primary:hover {
    background: var(--green-light);
    box-shadow: var(--shadow-green);
}

.btn--secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn--secondary:hover {
    border-color: var(--text-muted);
}

.btn--outline {
    background: transparent;
    color: var(--green);
    border: 1px solid var(--green);
}

.btn--outline:hover {
    background: var(--green-glow);
}

.btn--whatsapp {
    background: #25D366;
    color: white;
}

.btn--whatsapp:hover {
    background: #1EBE5A;
}

.btn--full {
    width: 100%;
}

.btn--sm {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
}

.btn--lg {
    padding: var(--space-md) var(--space-2xl);
    font-size: 1.05rem;
}

.btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.products-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-3xl);
    color: var(--text-muted);
}

.products-empty svg {
    width: 64px;
    height: 64px;
    fill: var(--text-muted);
    margin: 0 auto var(--space-md);
    opacity: 0.5;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
}

.pagination__btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.pagination__btn:hover {
    border-color: var(--green);
    color: var(--green);
}

.pagination__btn.active {
    background: var(--green);
    border-color: var(--green);
    color: var(--text-on-green);
}

.pagination__btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination__btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */

.product-detail {
    padding: var(--space-lg) 0;
}

.product-detail__gallery {
    margin-bottom: var(--space-xl);
}

.product-detail__main-image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: var(--space-sm);
    user-select: none;
}

.product-detail__main-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    margin-bottom: 0;
}

/* Gallery Arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(18, 18, 18, 0.65);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
    padding: 0;
}

.gallery-arrow:hover {
    background: var(--green);
    color: var(--text-on-green);
    border-color: var(--green);
    box-shadow: var(--shadow-green);
}

.gallery-arrow svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.gallery-arrow--prev {
    left: 16px;
}

.gallery-arrow--next {
    right: 16px;
}

/* RTL Support for arrows */
[dir="rtl"] .gallery-arrow--prev {
    left: auto;
    right: 16px;
}

[dir="rtl"] .gallery-arrow--next {
    right: auto;
    left: 16px;
}

/* Gallery Dots */
.gallery-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(18, 18, 18, 0.4);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.gallery-dot.active {
    background: var(--green);
    transform: scale(1.2);
}

/* Swipe Indicator Overlay */
.swipe-indicator {
    position: absolute;
    bottom: 56px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeOutLater 5s forwards;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

@keyframes fadeOutLater {
    0% { opacity: 0; transform: translate(-50%, 10px); }
    10% { opacity: 1; transform: translate(-50%, 0); }
    85% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -10px); visibility: hidden; pointer-events: none; }
}

.product-detail__main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-detail__thumbnails {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: var(--space-xs);
}

.product-detail__thumbnails::-webkit-scrollbar {
    display: none;
}

.product-detail__thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
    flex-shrink: 0;
    background: var(--bg-card);
}

.product-detail__thumb.active,
.product-detail__thumb:hover {
    border-color: var(--green);
}

.product-detail__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail__info {
    padding: 0;
}

.product-detail__badges {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.product-detail__badges .badge {
    position: static;
}

.product-detail__name {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}

.product-detail__name-ar {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    direction: rtl;
}

.product-detail__meta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.product-detail__meta span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.product-detail__price-block {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.product-detail__price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--green);
}

.product-detail__compare-price {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-detail__discount {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--red);
    background: rgba(255, 82, 82, 0.1);
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

.product-detail__stock {
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.stock-dot--in { background: var(--green); }
.stock-dot--low { background: var(--yellow); }
.stock-dot--out { background: var(--red); }

/* Variants */
.product-detail__variants {
    margin-bottom: var(--space-lg);
}

.variant-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.variant-option {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-card);
    color: var(--text-primary);
    min-width: 48px;
    text-align: center;
}

.variant-option:hover {
    border-color: var(--green);
}

.variant-option.selected {
    border-color: var(--green);
    background: var(--green-glow);
    color: var(--green);
}

.variant-option.out-of-stock {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: var(--space-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
}

.quantity-selector__btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    font-size: 1.2rem;
    font-weight: 600;
    transition: background var(--transition-fast);
    color: var(--text-primary);
}

.quantity-selector__btn:hover {
    background: var(--bg-card-hover);
}

.quantity-selector__value {
    width: 56px;
    height: 44px;
    text-align: center;
    background: var(--bg-input);
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    outline: none;
}

/* Action Buttons */
.product-detail__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

/* Tabs */
.product-tabs {
    border-top: 1px solid var(--border);
    padding-top: var(--space-xl);
    margin-top: var(--space-xl);
}

.product-tabs__nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.product-tabs__tab {
    padding: var(--space-md) var(--space-lg);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.product-tabs__tab:hover {
    color: var(--text-primary);
}

.product-tabs__tab.active {
    color: var(--green);
    border-bottom-color: var(--green);
}

.product-tabs__content {
    padding: var(--space-xl) 0;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.specs-table {
    width: 100%;
}

.specs-table tr {
    border-bottom: 1px solid var(--border);
}

.specs-table td {
    padding: var(--space-sm) 0;
    font-size: 0.9rem;
}

.specs-table td:first-child {
    color: var(--text-muted);
    padding-right: var(--space-lg);
    white-space: nowrap;
    width: 40%;
}

[dir="rtl"] .specs-table td:first-child {
    padding-right: 0;
    padding-left: var(--space-lg);
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.product-tag {
    padding: 2px var(--space-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Size Guide Link */
.size-guide-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--green);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.size-guide-link:hover {
    color: var(--green-light);
}

/* Related Products */
.related-products {
    margin-top: var(--space-3xl);
}

/* ============================================================
   CART PAGE
   ============================================================ */

.cart-page {
    padding: var(--space-xl) 0;
}

.cart-page__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--space-xl);
}

.cart-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.cart-item__image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-card);
    flex-shrink: 0;
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__info {
    flex: 1;
    min-width: 0;
}

.cart-item__name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item__variant {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.cart-item__price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--green);
}

.cart-item__controls {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.cart-item__qty-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.cart-item__qty {
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
}

.cart-item__remove {
    margin-left: auto;
    color: var(--red);
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

[dir="rtl"] .cart-item__remove {
    margin-left: 0;
    margin-right: auto;
}

.cart-item__remove:hover {
    opacity: 1;
}

.cart-empty {
    text-align: center;
    padding: var(--space-3xl);
}

.cart-empty svg {
    width: 80px;
    height: 80px;
    fill: var(--text-muted);
    opacity: 0.3;
    margin-bottom: var(--space-md);
}

.cart-empty p {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    font-size: 1.1rem;
}

.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
}

.cart-summary__row--total {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--green);
    border-top: 1px solid var(--border);
    padding-top: var(--space-md);
    margin-top: var(--space-md);
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */

.checkout-page {
    padding: var(--space-xl) 0;
}

.checkout-page__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--space-xl);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b0b0b0'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 36px;
}

[dir="rtl"] .form-group select {
    background-position: left 12px center;
    padding-right: var(--space-md);
    padding-left: 36px;
}

.form-group select option {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Delivery Type Toggle */
.delivery-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin: var(--space-sm) 0;
}

.delivery-toggle__option {
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    font-weight: 500;
}

.delivery-toggle__option:hover {
    border-color: var(--green);
}

.delivery-toggle__option.active {
    border-color: var(--green);
    background: var(--green-glow);
    color: var(--green);
}

.delivery-toggle__option .delivery-fee {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.delivery-toggle__option.active .delivery-fee {
    color: var(--green-light);
}

/* Order Summary in Checkout */
.order-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
}

.order-summary__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.order-summary__items {
    margin-bottom: var(--space-md);
}

.order-summary__item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.order-summary__item span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

/* WhatsApp Notice */
.whatsapp-notice {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-md);
    text-align: center;
}

.whatsapp-notice p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.whatsapp-notice a {
    color: var(--green);
    font-weight: 600;
}

/* ============================================================
   ORDER SUCCESS PAGE
   ============================================================ */

.order-success {
    padding: var(--space-3xl) 0;
    text-align: center;
}

.order-success__icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: var(--green-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-xl);
}

.order-success__icon svg {
    width: 40px;
    height: 40px;
    fill: var(--green);
}

.order-success__title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.order-success__msg {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: var(--space-xl);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.order-success__number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: var(--space-xl);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (min-width: 768px) {
    :root {
        --content-padding: 24px;
    }

    .product-detail {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .product-detail__gallery {
        margin-bottom: 0;
        width: 100%;
    }

    .product-tabs, .related-products {
        grid-column: 1 / -1;
    }

    .product-detail__actions {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    :root {
        --content-padding: 32px;
    }

    .hero {
        min-height: 80vh;
    }

    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* Loading spinner */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: var(--space-xl) auto;
}

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

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--green);
}

.back-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

[dir="rtl"] .back-link svg {
    transform: scaleX(-1);
}
