/* ============================================================
   Mogador Organic - Custom Styles
   Premium E-commerce for Moroccan Terroir Products
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --color-olive: #5C6B3C;
    --color-olive-light: #8B9A6D;
    --color-olive-dark: #3D4A28;
    --color-gold: #C8A96E;
    --color-gold-light: #DCC595;
    --color-gold-dark: #A68B4B;
    --color-cream: #FAF7F2;
    --color-beige: #F0EBE1;
    --color-beige-dark: #E0D5C4;
    --color-brown: #3D2E1C;
    --color-brown-medium: #6B5B4E;
    --color-brown-light: #8B7B6E;
    --color-terracotta: #C17D4E;
    --color-white: #FFFFFF;
    --color-error: #DC3545;
    --color-success: #28A745;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-arabic: 'Noto Sans Arabic', 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(61, 46, 28, 0.08);
    --shadow-md: 0 4px 12px rgba(61, 46, 28, 0.1);
    --shadow-lg: 0 8px 30px rgba(61, 46, 28, 0.12);
    --shadow-xl: 0 20px 60px rgba(61, 46, 28, 0.15);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--color-brown);
    background-color: var(--color-cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL Support */
[dir="rtl"] body {
    font-family: var(--font-arabic);
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
    font-family: var(--font-arabic);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-brown);
    line-height: 1.3;
}

a {
    color: var(--color-olive);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-gold-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-beige);
}
::-webkit-scrollbar-thumb {
    background: var(--color-olive-light);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-olive);
}

/* ---- Selection ---- */
::selection {
    background: var(--color-gold-light);
    color: var(--color-brown);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
    padding: 0.75rem 0;
}

.navbar.transparent {
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.navbar .logo img {
    height: 50px;
    transition: height var(--transition-normal);
}

.navbar.scrolled .logo img {
    height: 40px;
}

.nav-link {
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.navbar.transparent .nav-link,
.navbar.transparent .navbar-brand-text,
.navbar.transparent .navbar-icon {
    color: var(--color-white);
}

.navbar.scrolled .nav-link,
.navbar.scrolled .navbar-brand-text,
.navbar.scrolled .navbar-icon {
    color: var(--color-brown);
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-brown);
    margin: 5px 0;
    transition: all var(--transition-normal);
    border-radius: 2px;
}

.navbar.transparent .mobile-menu-btn span {
    background: var(--color-white);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-brown);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 8s ease;
}

.hero:hover .hero-bg {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(61, 46, 28, 0.3) 0%,
        rgba(61, 46, 28, 0.6) 50%,
        rgba(61, 46, 28, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 2rem;
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease forwards;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    opacity: 0.9;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(200, 169, 110, 0.2);
    border: 1px solid rgba(200, 169, 110, 0.4);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--color-gold-light);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease forwards;
    backdrop-filter: blur(10px);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--color-white);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2s infinite;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--color-olive);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-olive-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(92, 107, 60, 0.3);
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-white);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 169, 110, 0.3);
}

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

.btn-outline:hover {
    background: var(--color-olive);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--color-white);
    color: var(--color-olive);
}

.btn-white:hover {
    background: var(--color-cream);
    color: var(--color-olive-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.05rem;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-card-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: var(--color-beige);
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-sale {
    background: var(--color-terracotta);
    color: var(--color-white);
}

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

.product-card-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-normal);
}

[dir="rtl"] .product-card-actions {
    right: auto;
    left: 1rem;
    transform: translateX(-10px);
}

.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-card-actions button {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    color: var(--color-brown-medium);
}

.product-card-actions button:hover {
    background: var(--color-olive);
    color: var(--color-white);
    transform: scale(1.1);
}

.product-card-actions button.wishlisted {
    background: var(--color-terracotta);
    color: var(--color-white);
}

.product-card-body {
    padding: 1.25rem;
}

.product-card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-olive-light);
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.product-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-brown);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.product-card:hover .product-card-title {
    color: var(--color-olive);
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-olive);
}

.price-old {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: var(--color-brown-light);
}

.product-card-footer {
    padding: 0 1.25rem 1.25rem;
}

.btn-add-cart {
    width: 100%;
    background: var(--color-beige);
    color: var(--color-brown);
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-cart:hover {
    background: var(--color-olive);
    color: var(--color-white);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gold-dark);
    margin-bottom: 0.75rem;
}

.section-badge::before,
.section-badge::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--color-gold);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-brown);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-brown-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   VALUE CARDS
   ============================================================ */
.value-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--color-olive), var(--color-gold));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(92, 107, 60, 0.1), rgba(200, 169, 110, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: var(--color-olive);
    transition: all var(--transition-normal);
}

.value-card:hover .value-card-icon {
    background: linear-gradient(135deg, var(--color-olive), var(--color-olive-light));
    color: var(--color-white);
    transform: scale(1.05);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--color-gold-light);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--color-brown-medium);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-olive-light), var(--color-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
    background: linear-gradient(135deg, var(--color-olive-dark) 0%, var(--color-olive) 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(200, 169, 110, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--color-brown);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 0;
}

.footer h3, .footer h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
}

.footer a:hover {
    color: var(--color-gold);
    padding-left: 4px;
}

[dir="rtl"] .footer a:hover {
    padding-left: 0;
    padding-right: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    margin-right: 0.5rem;
}

.footer-social a:hover {
    background: var(--color-gold);
    color: var(--color-brown);
    transform: translateY(-3px);
    padding-left: 0;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-brown);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--color-beige-dark);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: var(--font-body);
    background: var(--color-white);
    color: var(--color-brown);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-olive);
    box-shadow: 0 0 0 4px rgba(92, 107, 60, 0.1);
}

.form-input::placeholder {
    color: var(--color-brown-light);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--color-brown-medium);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--color-brown-medium);
}

.breadcrumb a:hover {
    color: var(--color-olive);
}

.breadcrumb-separator {
    color: var(--color-beige-dark);
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
    background: linear-gradient(135deg, var(--color-olive-dark) 0%, var(--color-olive) 50%, var(--color-olive-light) 100%);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(200, 169, 110, 0.15) 0%, transparent 70%);
}

.page-header h1 {
    color: var(--color-white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    max-width: 600px;
}

/* ============================================================
   CART TABLE
   ============================================================ */
.cart-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-beige);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

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

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--color-beige-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.quantity-selector button {
    width: 36px;
    height: 36px;
    background: var(--color-beige);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--color-brown);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-selector button:hover {
    background: var(--color-olive);
    color: var(--color-white);
}

.quantity-selector input {
    width: 48px;
    height: 36px;
    text-align: center;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    background: transparent;
    color: var(--color-brown);
}

.quantity-selector input:focus {
    outline: none;
}

/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */
.admin-sidebar {
    width: 260px;
    background: var(--color-brown);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    padding-top: 1.5rem;
    transition: all var(--transition-normal);
    overflow-y: auto;
}

[dir="rtl"] .admin-sidebar {
    left: auto;
    right: 0;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

[dir="rtl"] .admin-sidebar-link {
    border-left: none;
    border-right: 3px solid transparent;
}

.admin-sidebar-link:hover,
.admin-sidebar-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    border-left-color: var(--color-gold);
    padding-left: 1.75rem;
}

[dir="rtl"] .admin-sidebar-link:hover,
[dir="rtl"] .admin-sidebar-link.active {
    border-right-color: var(--color-gold);
    padding-left: 1.5rem;
    padding-right: 1.75rem;
}

.admin-content {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
    background: var(--color-cream);
}

[dir="rtl"] .admin-content {
    margin-left: 0;
    margin-right: 260px;
}

.stat-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-brown);
}

.stat-card-label {
    font-size: 0.85rem;
    color: var(--color-brown-medium);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scrollDown {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--color-beige) 25%, var(--color-beige-dark) 50%, var(--color-beige) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .section {
        padding: 3.5rem 0;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    [dir="rtl"] .admin-sidebar {
        transform: translateX(100%);
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    [dir="rtl"] .admin-content {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .newsletter-form {
        flex-direction: column;
    }
    
    .cart-item {
        flex-wrap: wrap;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }
}

/* ============================================================
   UTILITY: Glassmorphism container
   ============================================================ */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
}

/* ============================================================
   IMAGE GALLERY (Product page)
   ============================================================ */
.gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-beige);
    aspect-ratio: 1;
}

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

.gallery-main:hover img {
    transform: scale(1.05);
}

.gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    opacity: 0.6;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--color-olive);
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   TABS (Product page)
   ============================================================ */
.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--color-beige);
    margin-bottom: 2rem;
    gap: 0;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-brown-medium);
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-olive);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.tab-btn.active {
    color: var(--color-olive);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-brown-medium);
    background: var(--color-white);
    border: 1px solid var(--color-beige-dark);
    transition: all var(--transition-fast);
}

.page-link:hover,
.page-link.active {
    background: var(--color-olive);
    color: var(--color-white);
    border-color: var(--color-olive);
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
    position: relative;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.lang-switcher-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 1000;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--color-brown);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.lang-option:hover {
    background: var(--color-beige);
}

.lang-option.active {
    background: var(--color-olive);
    color: var(--color-white);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    top: 100px;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

[dir="rtl"] .toast-container {
    right: auto;
    left: 1.5rem;
}

.toast {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideDown 0.3s ease;
    border-left: 4px solid;
}

.toast-success { border-color: var(--color-success); }
.toast-error { border-color: var(--color-error); }
.toast-info { border-color: var(--color-gold); }
