/* =============================================
   LunaBoutique – Purple Edition
   ============================================= */

/* ====== CSS VARIABLES ====== */
:root {
    /* RGB channels for opacity variants – overridden dynamically by layout <style> */
    --primary-rgb:    147,51,234;
    --pink-rgb:       236,72,153;
    --dark-rgb:       18,11,46;
    --secondary-rgb:  30,27,75;

    --primary:        #9333ea;
    --primary-dark:   #7c3aed;
    --primary-light:  #f3e8ff;
    --primary-glow:   rgba(var(--primary-rgb),0.35);
    --pink:           #ec4899;
    --pink-light:     #fdf2f8;
    --secondary:      #1e1b4b;
    --dark:           #120b2e;
    --accent:         #faf5ff;
    --text:           #1e1b4b;
    --text-muted:     #6b7280;
    --border:         #e9d5ff;
    --white:          #ffffff;
    --radius:         16px;
    --radius-sm:      10px;
    --radius-xs:      6px;
    --shadow-sm:      0 2px 16px rgba(var(--primary-rgb),0.08);
    --shadow-md:      0 8px 32px rgba(var(--primary-rgb),0.15);
    --shadow-lg:      0 20px 60px rgba(var(--primary-rgb),0.22);
    --shadow-pink:    0 8px 32px rgba(var(--pink-rgb),0.20);
    --transition:     0.3s cubic-bezier(.4,0,.2,1);
    --transition-slow:0.6s cubic-bezier(.4,0,.2,1);
    --grad-main:      linear-gradient(135deg, var(--primary) 0%, var(--pink) 100%);
    --grad-dark:      linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    --grad-light:     linear-gradient(135deg, var(--accent) 0%, var(--pink-light) 100%);
    --grad-card:      linear-gradient(180deg, rgba(var(--primary-rgb),0.04) 0%, transparent 100%);
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
    from { opacity:0; transform:translateY(30px); }
    to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity:0; transform:translateX(-30px); }
    to   { opacity:1; transform:translateX(0); }
}
@keyframes fadeInRight {
    from { opacity:0; transform:translateX(30px); }
    to   { opacity:1; transform:translateX(0); }
}
@keyframes scaleIn {
    from { opacity:0; transform:scale(0.88); }
    to   { opacity:1; transform:scale(1); }
}
@keyframes float {
    0%,100% { transform:translateY(0) rotate(0deg); }
    33%      { transform:translateY(-14px) rotate(2deg); }
    66%      { transform:translateY(-8px) rotate(-1deg); }
}
@keyframes floatSlow {
    0%,100% { transform:translateY(0); }
    50%      { transform:translateY(-20px); }
}
@keyframes pulse {
    0%,100% { transform:scale(1); opacity:1; }
    50%      { transform:scale(1.08); opacity:0.85; }
}
@keyframes shimmer {
    0%   { background-position:-200% center; }
    100% { background-position:200% center; }
}
@keyframes gradientFlow {
    0%   { background-position:0% 50%; }
    50%  { background-position:100% 50%; }
    100% { background-position:0% 50%; }
}
@keyframes sparkle {
    0%,100% { opacity:0; transform:scale(0) rotate(0deg); }
    50%      { opacity:1; transform:scale(1) rotate(180deg); }
}
@keyframes ripple {
    from { transform:scale(0); opacity:0.5; }
    to   { transform:scale(4); opacity:0; }
}
@keyframes slideDown {
    from { transform:translateY(-8px); opacity:0; }
    to   { transform:translateY(0); opacity:1; }
}
@keyframes heartbeat {
    0%,100% { transform:scale(1); }
    14%      { transform:scale(1.3); }
    28%      { transform:scale(1); }
    42%      { transform:scale(1.25); }
    70%      { transform:scale(1); }
}
@keyframes spin {
    from { transform:rotate(0deg); }
    to   { transform:rotate(360deg); }
}
@keyframes borderGlow {
    0%,100% { box-shadow: 0 0 0 0 var(--primary-glow); }
    50%      { box-shadow: 0 0 0 8px transparent; }
}

/* Utility animate classes */
.animate-fadeup   { animation:fadeInUp 0.6s ease both; }
.animate-left     { animation:fadeInLeft 0.6s ease both; }
.animate-right    { animation:fadeInRight 0.6s ease both; }
.animate-scale    { animation:scaleIn 0.5s ease both; }
.delay-1 { animation-delay:0.1s; }
.delay-2 { animation-delay:0.2s; }
.delay-3 { animation-delay:0.3s; }
.delay-4 { animation-delay:0.4s; }

/* ====== BASE ====== */
html { font-size: 15px; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Cairo', 'Montserrat', sans-serif;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.rtl { font-family: 'Cairo', sans-serif; }
body.ltr { font-family: 'Montserrat', 'Cairo', sans-serif; }
*, *::before, *::after { box-sizing: border-box; }

/* Scroll reveal — add via JS intersection observer if needed */
[data-reveal] { opacity:0; transform:translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].revealed { opacity:1; transform:translateY(0); }

/* ====== BUTTONS ====== */
.btn-primary {
    background: var(--grad-main) !important;
    background-size: 200% !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.4px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}
.btn-primary:hover::after { transform: translateX(0); }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-pink);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline-primary {
    color: var(--primary) !important;
    border: 1.5px solid var(--primary) !important;
    font-weight: 600;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 0;
}
.btn-outline-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
    z-index: -1;
}
.btn-outline-primary:hover {
    color: #fff !important;
    border-color: transparent !important;
}
.btn-outline-primary:hover::before { transform: scaleX(1); }

.text-primary   { color: var(--primary) !important; }
.bg-primary     { background: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }

/* ====== TOP BAR ====== */
.top-bar {
    background: var(--grad-dark) !important;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}
.top-bar::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: shimmer 4s linear infinite;
}

/* ====== NAVBAR ====== */
.navbar {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.96) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-brand { font-size: 1.6rem; font-weight: 700; }
.brand-name { background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.search-form { width: 36%; min-width: 200px; }
.search-form .form-control {
    border-radius: 30px 0 0 30px;
    border: 1.5px solid var(--border);
    padding-left: 1.1rem;
    font-size: 0.88rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.rtl .search-form .form-control { border-radius: 0 30px 30px 0; }
.search-form .btn {
    border-radius: 0 30px 30px 0;
    background: var(--grad-main);
    border: none;
    color: #fff;
    padding: 0 1.1rem;
}
.rtl .search-form .btn { border-radius: 30px 0 0 30px; }
.search-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary);
    outline: none;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    font-size: 0.6rem;
    padding: 2px 5px;
    background: var(--pink) !important;
    border: 2px solid #fff;
    border-radius: 10px;
    line-height: 1;
    font-weight: 700;
    animation: pulse 2s ease infinite;
}
.nav-icon-btn {
    position: relative;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: var(--text);
}
.nav-icon-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: scale(1.1);
}

/* ====== HERO SECTION ====== */
.hero-carousel { position: relative; }
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}
.hero-section:hover .hero-bg-img { transform: scale(1.04); }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--dark-rgb),0.82) 0%, rgba(var(--secondary-rgb),0.55) 50%, rgba(var(--pink-rgb),0.2) 100%);
}
/* Floating circles decoration */
.hero-overlay::before {
    content: '';
    position: absolute;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb),0.25), transparent 70%);
    top: -80px; right: -80px;
    animation: floatSlow 8s ease-in-out infinite;
}
.hero-overlay::after {
    content: '';
    position: absolute;
    width: 250px; height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--pink-rgb),0.2), transparent 70%);
    bottom: -60px; left: 10%;
    animation: floatSlow 6s ease-in-out infinite reverse;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 6rem 0;
}
.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    animation: fadeInLeft 0.8s ease both;
}
.hero-content p {
    animation: fadeInLeft 0.8s 0.2s ease both;
    opacity: 0;
    animation-fill-mode: both;
}
.hero-content .btn {
    animation: fadeInUp 0.8s 0.4s ease both;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 1rem;
    animation: slideDown 0.6s ease both;
}
.hero-badge::before {
    content: '✦';
    color: var(--pink);
    font-size: 0.7rem;
}

/* Default hero (no banner image) */
.hero-default {
    background: var(--grad-light);
    min-height: 520px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-default::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb),0.08) 0%, transparent 65%);
    top: -150px; left: -150px;
    pointer-events: none;
}
.hero-default::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--pink-rgb),0.07) 0%, transparent 65%);
    bottom: -100px; right: -100px;
    pointer-events: none;
}
.hero-icon-wrap {
    width: 300px; height: 300px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb),0.1), rgba(var(--pink-rgb),0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    position: relative;
    animation: float 6s ease-in-out infinite;
}
.hero-icon-wrap::before {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 2px dashed rgba(var(--primary-rgb),0.25);
    animation: spin 20s linear infinite;
}
.hero-icon-wrap::after {
    content: '';
    position: absolute;
    inset: -32px;
    border-radius: 50%;
    border: 1px dashed rgba(var(--pink-rgb),0.15);
    animation: spin 30s linear infinite reverse;
}

/* Hero decoration dots */
.hero-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-dot {
    position: absolute;
    border-radius: 50%;
    animation: sparkle 3s ease-in-out infinite;
}

/* ====== FEATURES STRIP ====== */
.features-strip {
    background: var(--grad-main);
    background-size: 300% 300%;
    animation: gradientFlow 8s ease infinite;
    padding: 1.2rem 0;
    position: relative;
    overflow: hidden;
}
.features-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: shimmer 3s linear infinite;
}
.features-strip .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    color: #fff;
    transition: transform var(--transition);
}
.features-strip .feature-item:hover { transform: translateY(-2px); }
.features-strip .feature-icon {
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all var(--transition);
}
.features-strip .feature-item:hover .feature-icon {
    background: rgba(255,255,255,0.35);
    transform: rotate(10deg) scale(1.1);
}
.features-strip .feature-text { font-size: 0.82rem; font-weight: 700; line-height: 1.4; }
.features-strip .feature-text small { display:block; font-weight:400; opacity:0.8; font-size:0.72rem; }

/* ====== SECTION TITLE ====== */
.section-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--secondary);
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 0;
    letter-spacing: -0.3px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 48px;
    height: 4px;
    background: var(--grad-main);
    border-radius: 2px;
    transition: width var(--transition-slow);
}
.section-title:hover::after { width: 80px; }
.rtl .section-title::after { right: 0; }
.ltr .section-title::after { left: 0; }

/* ====== CATEGORY CARDS ====== */
.category-card {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    display: block;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.category-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-md);
}
.category-card .cat-img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}
.category-card:hover .cat-img { transform: scale(1.1); }
.category-card .cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(var(--dark-rgb),0.78) 100%);
    display: flex;
    align-items: flex-end;
    padding: 14px;
    transition: background var(--transition);
}
.category-card:hover .cat-overlay {
    background: linear-gradient(180deg, rgba(var(--primary-rgb),0.2) 0%, rgba(var(--dark-rgb),0.88) 100%);
}
.category-card .cat-name {
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    transition: transform var(--transition);
}
.category-card:hover .cat-name { transform: translateY(-3px); }
/* Shine effect */
.category-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
    z-index: 2;
}
.category-card:hover::before { left: 150%; }

/* ====== PRODUCT CARD ====== */
.product-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    background: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: var(--grad-main);
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 0;
    padding: 1.5px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.product-card:hover::before { opacity: 1; }

/* Image wrapper */
.product-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 118%;
    background: var(--accent);
    flex-shrink: 0;
    z-index: 1;
}
.product-card .card-img-wrapper .product-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card .card-img-wrapper .placeholder-img {
    object-fit: contain;
    padding: 16px;
}
.product-card:hover .card-img-wrapper .product-img { transform: scale(1.08); }

/* Hover overlay */
.card-img-overlay-hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--dark-rgb),0.5), rgba(var(--primary-rgb),0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
    color: #fff;
    font-size: 1.5rem;
}
.card-img-overlay-hover i { transition: transform var(--transition); }
.product-card:hover .card-img-overlay-hover { opacity: 1; }
.product-card:hover .card-img-overlay-hover i { transform: scale(1.2); }

/* Discount badge */
.badge-discount {
    position: absolute;
    top: 10px;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    z-index: 3;
    box-shadow: 0 3px 10px rgba(225,29,72,0.4);
    animation: pulse 2s ease infinite;
}
.rtl .badge-discount { right: 10px; }
.ltr .badge-discount { left: 10px; }

/* Out of stock */
.badge-out-stock {
    position: absolute;
    inset: 0;
    background: rgba(var(--dark-rgb),0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    letter-spacing: 1px;
    backdrop-filter: blur(2px);
}

/* Wishlist btn */
.product-card .wishlist-btn {
    position: absolute;
    top: 10px;
    background: rgba(255,255,255,0.95);
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: #ccc;
    z-index: 4;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}
.rtl .wishlist-btn { left: 10px; }
.ltr .wishlist-btn { right: 10px; }
.product-card .wishlist-btn:hover { color: var(--pink); transform: scale(1.15); }
.product-card .wishlist-btn.active {
    color: var(--pink);
    animation: heartbeat 0.8s ease;
}

/* Card body */
.product-card .card-body {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    z-index: 1;
    position: relative;
}
.product-card .product-category {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}
.product-card .product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 7px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.45;
    flex: 1;
    transition: color var(--transition);
}
.product-card:hover .product-name { color: var(--primary); }
.product-card .product-pricing {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 5px;
}
.product-card .price {
    font-size: 1.05rem;
    font-weight: 800;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.product-card .price small { font-size: 0.7rem; font-weight: 600; }
.product-card .old-price { font-size: 0.78rem; text-decoration: line-through; color: #bbb; }
.product-card .rating {
    font-size: 0.72rem;
    color: #f59e0b;
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    gap: 2px;
}
.product-card .rating-count { color: var(--text-muted); font-size: 0.68rem; margin-right: 3px; }

/* Quick Add */
.product-card .quick-add {
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    width: 100%;
    margin-top: auto;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    letter-spacing: 0.3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.product-card .quick-add::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-main);
    opacity: 0;
    transition: opacity var(--transition);
}
.product-card .quick-add:hover::before { opacity: 1; }
.product-card .quick-add:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.product-card .quick-add i,
.product-card .quick-add span { position: relative; z-index: 1; }
.product-card .quick-add.loading i { animation: spin 0.8s linear infinite; }
.product-card .quick-add:disabled { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; }
.product-card .quick-add:disabled::before { display: none; }

/* ====== PROMO BANNER ====== */
.promo-banner {
    background: var(--grad-dark);
    background-size: 300% 300%;
    animation: gradientFlow 10s ease infinite;
    position: relative;
    overflow: hidden;
}
.promo-banner::before {
    content: '✦';
    position: absolute;
    font-size: 8rem;
    color: rgba(255,255,255,0.03);
    top: -20px; left: 5%;
    animation: spin 20s linear infinite;
}
.promo-banner::after {
    content: '◆';
    position: absolute;
    font-size: 10rem;
    color: rgba(255,255,255,0.02);
    bottom: -30px; right: 8%;
    animation: spin 30s linear infinite reverse;
}
.promo-code-box {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 2px dashed rgba(var(--pink-rgb),0.7);
    border-radius: 10px;
    padding: 6px 20px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #f9a8d4;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}
.promo-code-box:hover {
    background: rgba(var(--pink-rgb),0.2);
    border-color: var(--pink);
    transform: scale(1.05);
}

/* ====== SHOP PAGE ====== */
.filter-sidebar { position: sticky; top: 82px; }
.filter-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem;
    margin-bottom: 1rem;
    background: #fff;
    transition: box-shadow var(--transition);
}
.filter-card:hover { box-shadow: var(--shadow-sm); }
.filter-title {
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 1rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-title::before {
    content: '';
    width: 3px; height: 14px;
    background: var(--grad-main);
    border-radius: 2px;
    display: inline-block;
}

.size-btn {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 4px 11px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.size-btn:hover, .size-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.color-dot {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 2px solid transparent;
    outline: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.color-dot:hover, .color-dot.active {
    outline-color: var(--primary);
    outline-offset: 2px;
    transform: scale(1.15);
}

/* ====== PRODUCT DETAIL ====== */
.product-gallery .main-img {
    border-radius: var(--radius);
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-slow);
}
.product-gallery .main-img:hover { transform: scale(1.01); }
.product-gallery .thumb-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.product-gallery .thumb {
    width: 68px; height: 68px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.product-gallery .thumb:hover { transform: scale(1.05); border-color: var(--primary); }
.product-gallery .thumb.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.product-price-main {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.product-old-price { font-size: 1.1rem; text-decoration: line-through; color: #bbb; }

/* ====== CART ====== */
.cart-item-img {
    width: 82px; height: 82px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform var(--transition);
}
.cart-item-img:hover { transform: scale(1.04); }
.qty-input { width: 62px; text-align: center; font-weight: 700; }
.cart-summary {
    background: var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

/* ====== CHECKOUT ====== */
.checkout-step {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
    transition: box-shadow var(--transition);
}
.checkout-step:focus-within { box-shadow: var(--shadow-sm); }
.step-num {
    width: 34px; height: 34px;
    background: var(--grad-main);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.88rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

/* ====== ORDER STATUS BADGES ====== */
.badge-pending    { background:#fdf4ff; color:#7e22ce; border:1px solid #d8b4fe; }
.badge-confirmed  { background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; }
.badge-processing { background:#fdf2f8; color:#9d174d; border:1px solid #fbcfe8; }
.badge-shipped    { background:#ecfdf5; color:#065f46; border:1px solid #a7f3d0; }
.badge-delivered  { background:#f0fdf4; color:#14532d; border:1px solid #86efac; }
.badge-cancelled  { background:#fff1f2; color:#9f1239; border:1px solid #fecdd3; }
.badge-returned   { background:#f9fafb; color:#374151; border:1px solid #e5e7eb; }

/* ====== ACCOUNT ====== */
.account-sidebar .nav-link {
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.account-sidebar .nav-link:hover,
.account-sidebar .nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    padding-right: 1.3rem;
}
.rtl .account-sidebar .nav-link:hover,
.rtl .account-sidebar .nav-link.active { padding-right: 1.3rem; padding-left: 1rem; }

/* ====== FORMS ====== */
.form-control, .form-select {
    border-color: var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.15);
    outline: none;
}
.form-label { font-weight: 700; font-size: 0.85rem; margin-bottom: 5px; color: var(--secondary); }

/* ====== PAGINATION ====== */
.page-link {
    color: var(--primary);
    border-color: var(--border);
    transition: all 0.2s;
}
.page-link:hover { background: var(--primary-light); color: var(--primary); }
.page-item.active .page-link {
    background: var(--grad-main);
    border-color: transparent;
    color: #fff;
}

/* ====== ADMIN LAYOUT ====== */
.admin-sidebar {
    height: 100vh;
    background: var(--grad-dark);
    width: 258px;
    position: fixed;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--primary-rgb),0.3) transparent;
}
.rtl .admin-sidebar { right: 0; }
.ltr .admin-sidebar { left: 0; }
.admin-content {
    min-height: 100vh;
    background: #f5f3ff;
}
.rtl .admin-content { margin-right: 258px; }
.ltr .admin-content { margin-left: 258px; }
.admin-sidebar .brand {
    padding: 1.4rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1.15rem;
    font-weight: 800;
}
.admin-sidebar .brand span {
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.admin-sidebar .nav-section-title {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.28);
    padding: 1.1rem 1.2rem 0.3rem;
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.65);
    padding: 0.62rem 1rem;
    border-radius: 10px;
    margin: 1px 0.6rem;
    transition: all 0.22s;
    font-size: 0.87rem;
    display: flex;
    align-items: center;
    gap: 9px;
    position: relative;
    overflow: hidden;
}
.admin-sidebar .nav-link::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 3px; height: 100%;
    background: var(--grad-main);
    border-radius: 0 3px 3px 0;
    transform: scaleY(0);
    transition: transform 0.2s;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(var(--primary-rgb),0.2);
    color: #e9d5ff;
}
.admin-sidebar .nav-link:hover::before,
.admin-sidebar .nav-link.active::before { transform: scaleY(1); }
.admin-sidebar .nav-link.active { font-weight: 700; }
.admin-sidebar .nav-link i { width: 18px; text-align: center; }

.stat-card {
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    border: none;
    box-shadow: var(--shadow-sm);
    background: #fff;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 100px; height: 100px;
    border-radius: 50%;
    background: var(--primary-light);
    opacity: 0.5;
    transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-card:hover::after { transform: scale(1.5); }
.stat-card .stat-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}
.stat-card .stat-value {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.2;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-card .stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; font-weight: 600; }

/* ====== TOAST ====== */
#toastContainer {
    position: fixed;
    bottom: 1.5rem;
    z-index: 9999;
}
.rtl #toastContainer { left: 1.5rem; }
.ltr #toastContainer { right: 1.5rem; }
.toast { animation: fadeInUp 0.35s ease both; }

/* ====== FOOTER ====== */
.site-footer {
    background: var(--grad-dark);
    color: rgba(255,255,255,0.7);
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 250px; height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb),0.1), transparent 70%);
    pointer-events: none;
}
.site-footer a { color: rgba(255,255,255,0.55); transition: all 0.2s; }
.site-footer a:hover { color: #e9d5ff; text-decoration: none; padding-right: 4px; }
.site-footer .footer-title {
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-bottom: 1.1rem;
    position: relative;
    padding-bottom: 8px;
}
.site-footer .footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: var(--grad-main);
    border-radius: 1px;
}
.rtl .site-footer .footer-title::after { right: 0; }
.ltr .site-footer .footer-title::after { left: 0; }
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: rgba(255,255,255,0.65) !important;
    transition: all var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}
.social-links a:hover {
    background: var(--grad-main);
    color: #fff !important;
    border-color: transparent;
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-pink);
    padding-right: 0 !important;
}

/* ====== MISC ====== */
.no-image-placeholder {
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d8b4fe;
    font-size: 2.5rem;
}
.section-bg-alt { background: var(--accent); }

/* ====== SCROLL REVEAL (JS hook) ====== */
.reveal-section > .row > [class*="col"] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-section.in-view > .row > [class*="col"] { opacity: 1; transform: none; }
.reveal-section.in-view > .row > [class*="col"]:nth-child(1) { transition-delay: 0.05s; }
.reveal-section.in-view > .row > [class*="col"]:nth-child(2) { transition-delay: 0.12s; }
.reveal-section.in-view > .row > [class*="col"]:nth-child(3) { transition-delay: 0.19s; }
.reveal-section.in-view > .row > [class*="col"]:nth-child(4) { transition-delay: 0.26s; }
.reveal-section.in-view > .row > [class*="col"]:nth-child(5) { transition-delay: 0.33s; }
.reveal-section.in-view > .row > [class*="col"]:nth-child(6) { transition-delay: 0.40s; }
.reveal-section.in-view > .row > [class*="col"]:nth-child(7) { transition-delay: 0.47s; }
.reveal-section.in-view > .row > [class*="col"]:nth-child(8) { transition-delay: 0.54s; }

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
    .search-form { width: 100%; }
    .hero-content h1 { font-size: 2.2rem; }
}
@media (max-width: 768px) {
    html { font-size: 14px; }
    .admin-sidebar { position: relative; width: 100%; min-height: auto; }
    .rtl .admin-content, .ltr .admin-content { margin: 0; }
    .hero-section, .hero-default { min-height: 320px; }
    .hero-content { padding: 3.5rem 0; }
    .hero-content h1 { font-size: 1.8rem; }
    .features-strip .feature-item { flex-direction: column; gap: 4px; text-align: center; }
}
@media (max-width: 576px) {
    .section-title { font-size: 1.4rem; }
    .category-card .cat-img { height: 135px; }
    .hero-content h1 { font-size: 1.55rem; }
}
