/* ==========================================================================
   FatimasFinds.ae — Premium 3D design system
   Lightweight: pure CSS transforms/animations. No 3D libraries.
   Works with Tailwind (Play CDN) utilities; this file adds the "depth" layer.
   ========================================================================== */

:root {
    --ff-primary: #0EA5E9;   /* sky blue  */
    --ff-primary-600: #0284C7;
    --ff-accent: #F97316;    /* orange    */
    --ff-success: #22C55E;
    --ff-ink: #1F2937;
    --ff-bg: #F8FAFC;
    --ff-radius: 1.25rem;
    --ff-shadow-sm: 0 2px 10px rgba(2, 8, 23, .06);
    --ff-shadow-md: 0 12px 30px -8px rgba(2, 8, 23, .18);
    --ff-shadow-lg: 0 30px 60px -20px rgba(2, 8, 23, .28);
    --ff-glass: rgba(255, 255, 255, .65);
    --ff-glass-border: rgba(255, 255, 255, .55);
}

.dark {
    --ff-ink: #E5E7EB;
    --ff-bg: #0B1220;
    --ff-glass: rgba(17, 24, 39, .55);
    --ff-glass-border: rgba(148, 163, 184, .18);
    --ff-shadow-md: 0 12px 30px -8px rgba(0, 0, 0, .6);
    --ff-shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
    font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
    background: var(--ff-bg);
    color: var(--ff-ink);
    transition: background-color .3s ease, color .3s ease;
}

/* ---------- Glassmorphism ---------- */
.glass {
    background: var(--ff-glass);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border: 1px solid var(--ff-glass-border);
}

/* ---------- 3D depth card ---------- */
.card-3d {
    border-radius: var(--ff-radius);
    box-shadow: var(--ff-shadow-md);
    transform: translateZ(0);
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
    will-change: transform;
}
.card-3d:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: var(--ff-shadow-lg);
}

/* Tilt-on-hover product media */
.tilt { perspective: 900px; }
.tilt-inner {
    transition: transform .4s cubic-bezier(.2,.7,.2,1);
    transform-style: preserve-3d;
}
.tilt:hover .tilt-inner { transform: rotateX(6deg) rotateY(-6deg); }

/* ---------- Buttons with depth + micro-interaction ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-weight: 600; border-radius: 999px; padding: .7rem 1.4rem;
    transition: transform .15s ease, box-shadow .25s ease, filter .2s ease;
    cursor: pointer; border: none; line-height: 1;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary {
    background: linear-gradient(135deg, var(--ff-primary), var(--ff-primary-600));
    color: #fff; box-shadow: 0 10px 22px -8px rgba(14,165,233,.7);
}
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 16px 30px -8px rgba(14,165,233,.8); }
.btn-accent {
    background: linear-gradient(135deg, var(--ff-accent), #EA580C);
    color: #fff; box-shadow: 0 10px 22px -8px rgba(249,115,22,.7);
}
.btn-accent:hover { filter: brightness(1.05); }
.btn-ghost {
    background: transparent; color: var(--ff-ink);
    border: 1px solid var(--ff-glass-border);
}
.btn-ghost:hover { background: rgba(148,163,184,.12); }

/* ---------- Floating 3D hero shapes ---------- */
.float { animation: floaty 6s ease-in-out infinite; }
.float-slow { animation: floaty 9s ease-in-out infinite; }
.float-delay { animation: floaty 7s ease-in-out infinite; animation-delay: -2s; }
@keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-18px) rotate(4deg); }
}

.blob {
    position: absolute; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
    filter: blur(6px); opacity: .85;
    animation: morph 12s ease-in-out infinite;
}
@keyframes morph {
    0%,100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
    50% { border-radius: 63% 37% 41% 59% / 56% 63% 37% 44%; }
}

/* Floating promo badge */
.promo-badge {
    animation: pop 3.5s ease-in-out infinite;
    box-shadow: 0 12px 24px -8px rgba(249,115,22,.6);
}
@keyframes pop {
    0%,100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.06); }
}

/* ---------- Animated cart bump ---------- */
.cart-bump { animation: bump .4s ease; }
@keyframes bump {
    0% { transform: scale(1); } 30% { transform: scale(1.25); }
    60% { transform: scale(.9); } 100% { transform: scale(1); }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Skeleton loading ---------- */
.skeleton {
    background: linear-gradient(90deg, rgba(148,163,184,.15) 25%, rgba(148,163,184,.28) 37%, rgba(148,163,184,.15) 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: .75rem;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---------- Page transition ---------- */
.page-enter { animation: pageIn .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Star rating ---------- */
.stars { color: #F59E0B; letter-spacing: 1px; }

/* ---------- Section heading accent ---------- */
.eyebrow {
    display: inline-block; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    font-size: .72rem; color: var(--ff-primary);
}

/* ---------- Gradient text ---------- */
.text-gradient {
    background: linear-gradient(120deg, var(--ff-primary), var(--ff-accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Top loading bar ---------- */
#pageloader {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--ff-primary), var(--ff-accent));
    z-index: 100; transition: width .3s ease, opacity .4s ease;
}

/* ---------- Back to top ---------- */
#backtotop { transition: opacity .3s ease, transform .3s ease; }

/* ---------- Accessibility: respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Utility ---------- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.line-clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
