/* ==========================================================================
   You Name It — Premium Visual Polish Layer
   Subtle 3D depth · Cinematic transitions · Glassmorphism · Microinteractions
   Layers on existing CSS — preserves ALL existing functionality
   ========================================================================== */

/* ----- 1. Premium Design Tokens ----- */
:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);

  --shadow-card-lift:
    0 2px 8px rgba(44, 24, 16, 0.04),
    0 8px 24px rgba(44, 24, 16, 0.03);
  --shadow-card-float:
    0 8px 32px rgba(44, 24, 16, 0.06),
    0 20px 60px rgba(44, 24, 16, 0.04);
  --shadow-elevated-soft:
    0 4px 16px rgba(44, 24, 16, 0.04),
    0 24px 48px rgba(44, 24, 16, 0.06);
  --shadow-ambient-glow:
    0 0 0 1px rgba(139, 105, 20, 0.06),
    0 0 30px rgba(139, 105, 20, 0.03);
  --shadow-depth-inset:
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --shadow-glass:
    0 8px 32px rgba(44, 24, 16, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ============================================================
   2. PREMIUM 3D DEPTH — Layered Shadows & Ambient Glow
   ============================================================ */

/* Product Cards — subtle floating depth */
.product-card {
  box-shadow: var(--shadow-card-lift);
  transform: translateY(0);
  transition:
    transform 0.5s var(--ease-out-expo),
    box-shadow 0.5s var(--ease-out-expo);
}

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

/* Ambient glow ring on card hover — GPU-friendly pseudo-element */
.product-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  box-shadow: var(--shadow-ambient-glow);
  transition: opacity 0.5s var(--ease-out-expo);
  pointer-events: none;
  z-index: 0;
}

.product-card:hover::before {
  opacity: 1;
}

/* Hero section — elevated depth */
.hero__frame {
  box-shadow:
    0 20px 60px rgba(44, 24, 16, 0.15),
    0 4px 12px rgba(44, 24, 16, 0.04);
  transition:
    transform 0.6s var(--ease-out-expo),
    box-shadow 0.6s var(--ease-out-expo);
}

.hero__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(44, 24, 16, 0.06);
  pointer-events: none;
  z-index: 3;
}

.hero__frame:hover {
  transform: scale(1.008);
  box-shadow:
    0 28px 70px rgba(44, 24, 16, 0.18),
    0 6px 20px rgba(44, 24, 16, 0.06);
}

/* Checkout summary — elevated depth */
.cart-summary__glass {
  box-shadow:
    0 8px 32px rgba(44, 24, 16, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: box-shadow 0.4s var(--ease-out-expo);
}

.cart-summary__glass:hover {
  box-shadow:
    0 12px 40px rgba(44, 24, 16, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Delivery Summary Card (checkout sidebar) */
.delivery-summary-card {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: var(--radius-md, 10px);
  margin: 0.75rem 0;
  overflow: hidden;
}
.delivery-summary-card__header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  background: var(--color-surface-alt, #f8f9fa);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted, #64748b);
  border-bottom: 1px solid var(--color-border, #e2e8f0);
}
.delivery-summary-card__header svg {
  opacity: 0.6;
  flex-shrink: 0;
}
.delivery-summary-card__body {
  padding: 0.65rem 0.85rem;
}
.delivery-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0;
  font-size: 0.82rem;
}
.delivery-summary-row__label {
  opacity: 0.75;
}
.delivery-summary-row__value {
  font-weight: 600;
  text-align: right;
}
.delivery-summary-row--free .delivery-summary-row__value {
  color: var(--color-success, #2ecc71);
  font-size: 0.78rem;
}
.delivery-summary-row--subtotal {
  padding-top: 0.45rem;
}
.delivery-summary-row--total {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text, #1a1a2e);
}
.delivery-summary-divider {
  height: 1px;
  background: var(--color-border, #e2e8f0);
  margin: 0.35rem 0;
}
.delivery-summary-error {
  font-size: 0.82rem;
  color: var(--color-danger, #e74c3c);
  padding: 0.3rem 0;
}

/* Navbar — subtle base elevation */
.store-header {
  box-shadow:
    0 4px 30px rgba(44, 24, 16, 0.02),
    0 1px 0 rgba(44, 24, 16, 0.04);
}

/* Buttons — premium depth with ambient glow */
.btn-store--primary {
  box-shadow:
    0 4px 14px rgba(139, 105, 20, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition:
    transform 0.35s var(--ease-out-expo),
    box-shadow 0.35s var(--ease-out-expo),
    filter 0.35s var(--ease-out-expo);
}

.btn-store--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(139, 105, 20, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-store--primary:active:not(:disabled) {
  transform: scale(0.97);
}

.btn-special-order {
  box-shadow:
    0 6px 22px rgba(74, 47, 31, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition:
    transform 0.35s var(--ease-out-expo),
    box-shadow 0.35s var(--ease-out-expo),
    border-color 0.35s var(--ease-out-expo);
}

.btn-special-order:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 36px rgba(74, 47, 31, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* Category cards — soft elevation */
.category-card {
  transition:
    transform 0.45s var(--ease-out-expo),
    box-shadow 0.45s var(--ease-out-expo),
    border-color 0.45s var(--ease-out-expo);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated-soft);
}

/* Special order items — premium card depth */
.special-order-item {
  transition:
    transform 0.35s var(--ease-out-expo),
    box-shadow 0.35s var(--ease-out-expo),
    border-color 0.35s var(--ease-out-expo),
    background 0.35s var(--ease-out-expo);
}

.special-order-item:hover {
  transform: translateY(-1px);
}

.special-order-item.is-active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-lift);
}

/* Admin panels — subtle depth gradient */
.panel {
  box-shadow: var(--shadow-card-lift);
  transition: box-shadow 0.4s var(--ease-out-expo);
}

.panel:hover {
  box-shadow: var(--shadow-card-float);
}

/* Stat cards — premium depth */
.stat-card {
  transition:
    transform 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-out-expo);
}

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

/* ============================================================
   3. CINEMATIC TRANSITIONS — Buttery Easing & Smooth Motion
   ============================================================ */

/* Global transition smoothing */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Hero entrance — cinematic stagger */
.hero__content {
  animation: cinematicIn 0.9s var(--ease-out-expo) both;
}

@keyframes cinematicIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero__visual {
  animation: cinematicVisual 1.1s var(--ease-out-expo) 0.12s both;
}

@keyframes cinematicVisual {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

/* Eyebrow reveal */
.hero__eyebrow {
  animation: fadeSlideUp 0.6s var(--ease-out-expo) 0.15s both;
}

/* Section fade-up entrance */
.section-head {
  animation: fadeSlideUp 0.7s var(--ease-out-expo) 0.2s both;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card stagger entrance — product grid */
.product-card {
  animation: cardReveal 0.6s var(--ease-out-expo) both;
}

.product-card:nth-child(1) { animation-delay: 0.02s; }
.product-card:nth-child(2) { animation-delay: 0.06s; }
.product-card:nth-child(3) { animation-delay: 0.10s; }
.product-card:nth-child(4) { animation-delay: 0.14s; }
.product-card:nth-child(5) { animation-delay: 0.18s; }
.product-card:nth-child(6) { animation-delay: 0.22s; }
.product-card:nth-child(7) { animation-delay: 0.26s; }
.product-card:nth-child(8) { animation-delay: 0.30s; }

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Category card stagger */
.category-card {
  animation: cardReveal 0.55s var(--ease-out-expo) both;
}

.category-card:nth-child(1) { animation-delay: 0.02s; }
.category-card:nth-child(2) { animation-delay: 0.07s; }
.category-card:nth-child(3) { animation-delay: 0.12s; }
.category-card:nth-child(4) { animation-delay: 0.17s; }
.category-card:nth-child(5) { animation-delay: 0.22s; }
.category-card:nth-child(6) { animation-delay: 0.27s; }

/* Cart line entrance */
.cart-line {
  animation: slideIn 0.45s var(--ease-out-expo) both;
}

.cart-line:nth-child(1) { animation-delay: 0.02s; }
.cart-line:nth-child(2) { animation-delay: 0.06s; }
.cart-line:nth-child(3) { animation-delay: 0.10s; }
.cart-line:nth-child(4) { animation-delay: 0.14s; }
.cart-line:nth-child(5) { animation-delay: 0.18s; }

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

body.store-body.is-rtl .cart-line {
  animation-name: slideInRtl;
}

@keyframes slideInRtl {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Drawer — refined slide with momentum */
.store-drawer {
  transition:
    transform 0.45s var(--ease-out-expo),
    visibility 0.45s var(--ease-out-expo);
}

.store-drawer-overlay {
  transition:
    opacity 0.4s var(--ease-out-expo),
    visibility 0.4s var(--ease-out-expo);
}

/* Modal — buttery entrance */
.modal-backdrop {
  transition:
    opacity 0.4s var(--ease-out-expo),
    visibility 0.4s var(--ease-out-expo);
}

.modal {
  transition:
    transform 0.45s var(--ease-spring),
    opacity 0.4s var(--ease-out-expo);
}

/* Special order panel — smooth modal entrance */
#special-order-modal-root {
  transition:
    opacity 0.4s var(--ease-out-expo),
    visibility 0.4s var(--ease-out-expo);
}

.so-panel {
  transition:
    transform 0.5s var(--ease-spring),
    opacity 0.45s var(--ease-out-expo);
}

/* Toast — slick entrance */
.toast {
  animation: toastPremium 0.45s var(--ease-spring) both;
}

@keyframes toastPremium {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Review card hover */
.review-card {
  transition:
    transform 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-out-expo);
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated-soft);
}

/* Social link hover */
.social-link {
  transition:
    transform 0.35s var(--ease-out-expo),
    box-shadow 0.35s var(--ease-out-expo),
    background 0.35s var(--ease-out-expo),
    color 0.35s var(--ease-out-expo);
}

/* ============================================================
   4. GLASSMORPHISM — Subtle Frosted Surfaces
   ============================================================ */

/* Navbar — refined glass */
.store-header {
  backdrop-filter: blur(20px) saturate(1.05);
  -webkit-backdrop-filter: blur(20px) saturate(1.05);
  background: rgba(247, 243, 237, 0.78);
}

/* Checkout summary — frosted glass */
.cart-summary__glass {
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
  background: rgba(255, 255, 255, 0.68);
}

/* Special order panel — luxe frosted glass */
.so-panel__glass {
  backdrop-filter: blur(24px) saturate(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
  background: linear-gradient(
    155deg,
    rgba(255, 252, 248, 0.88),
    rgba(243, 235, 227, 0.85)
  );
}

/* Auth card — soft frosted glass */
.yni-auth-card {
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
}

/* Admin auth gate */
.admin-auth-gate {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Dashboard panels — light glass */
.yni-account-panel {
  backdrop-filter: blur(14px) saturate(1.04);
  -webkit-backdrop-filter: blur(14px) saturate(1.04);
}

/* Review form card — subtle frosted */
.review-form-card {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Coupon section — subtle frosted */
.cart-coupon--premium {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ============================================================
   5. MICROINTERACTIONS — Polished Feedback & Motion
   ============================================================ */

/* Button press — tactile feedback */
.btn-store:not(:disabled):active {
  transform: scale(0.96);
  transition-duration: 0.08s;
}

.btn:not(:disabled):active {
  transform: scale(0.96);
  transition-duration: 0.08s;
}

.yni-auth-btn:not(:disabled):active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

/* Cart quantity controls — polished interaction */
.cart-qty button {
  transition:
    background 0.2s var(--ease-out-expo),
    color 0.2s var(--ease-out-expo),
    transform 0.15s var(--ease-spring);
}

.cart-qty button:active {
  transform: scale(0.9);
}

/* Variant option — premium selection feedback */
.variant-option {
  transition:
    transform 0.25s var(--ease-out-expo),
    border-color 0.25s var(--ease-out-expo),
    background 0.25s var(--ease-out-expo),
    box-shadow 0.25s var(--ease-out-expo);
}

.variant-option:hover {
  transform: translateX(2px);
  border-color: rgba(139, 105, 20, 0.4);
}

.variant-option:active {
  transform: scale(0.98);
}

body.store-body.is-rtl .variant-option:hover {
  transform: translateX(-2px);
}

/* Focus states — smooth and accessible */
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--st-accent);
  outline-offset: 2px;
  transition: outline-offset 0.15s var(--ease-out-expo);
}

/* Loading state — elegant spinner */
.btn--loading::after {
  border-width: 2px;
  transition: opacity 0.3s var(--ease-out-expo);
}

/* Filter chip — tactile */
.filter-chip {
  transition:
    transform 0.25s var(--ease-out-expo),
    background 0.25s var(--ease-out-expo),
    color 0.25s var(--ease-out-expo),
    box-shadow 0.25s var(--ease-out-expo),
    border-color 0.25s var(--ease-out-expo);
}

.filter-chip:active {
  transform: scale(0.96);
}

/* Category pill hover */
.category-pill {
  transition:
    transform 0.25s var(--ease-out-expo),
    box-shadow 0.25s var(--ease-out-expo);
}

.category-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-lift);
}

/* Media upload — refined hover */
.media-upload {
  transition:
    border-color 0.35s var(--ease-out-expo),
    box-shadow 0.35s var(--ease-out-expo),
    transform 0.3s var(--ease-out-expo);
}

/* Star rating — tactile */
.star-btn {
  transition:
    transform 0.2s var(--ease-spring),
    color 0.2s var(--ease-out-expo);
}

.star-btn:active {
  transform: scale(0.9);
}

/* Cart coupon button — refined */
.cart-coupon__btn {
  transition:
    transform 0.25s var(--ease-out-expo),
    box-shadow 0.25s var(--ease-out-expo);
}

.cart-coupon__btn:active:not(:disabled) {
  transform: scale(0.95);
}

/* Image reveal — smooth transition */
.product-card__img {
  transition:
    opacity 0.45s var(--ease-out-expo),
    transform 0.55s var(--ease-out-expo);
}

.product-card__media:hover .product-card__img--loaded {
  transform: scale(1.06);
}

/* Hero image reveal */
.hero__img {
  transition:
    opacity 0.55s var(--ease-out-expo),
    transform 0.65s var(--ease-out-expo);
}

/* Chat message entrance */
.so-msg-row {
  animation: msgIn 0.4s var(--ease-out-expo) both;
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Social section image zoom */
.social-section__image-frame img {
  transition: transform 0.65s var(--ease-out-expo);
}

/* Nav dropdown — refined */
.store-nav__panel {
  transition:
    opacity 0.35s var(--ease-out-expo),
    transform 0.35s var(--ease-out-expo),
    visibility 0.35s var(--ease-out-expo);
}

/* Close button — smooth rotation */
.store-drawer__close {
  transition:
    background 0.3s var(--ease-out-expo),
    transform 0.4s var(--ease-spring);
}

.store-drawer__close:hover {
  transform: rotate(90deg) scale(1.05);
}

/* ============================================================
   6. IMAGE REVEAL TRANSITIONS — Premium Loading
   ============================================================ */

.hero__img--ready {
  animation: imageReveal 0.7s var(--ease-out-expo) both;
}

@keyframes imageReveal {
  from {
    opacity: 0;
    transform: scale(1.02);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.product-card__img--loaded {
  animation: imageFadeIn 0.5s var(--ease-out-expo) both;
}

@keyframes imageFadeIn {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================================
   7. MOBILE LUXURY — Touch-Friendly & Smooth
   ============================================================ */

@media (max-width: 480px) {
  /* Reduce motion on mobile for performance */
  .product-card {
    animation-duration: 0.35s;
  }

  .category-card {
    animation-duration: 0.3s;
  }

  .cart-line {
    animation-duration: 0.3s;
  }

  /* Larger touch targets */
  .cart-qty button {
    min-width: 40px;
    min-height: 40px;
  }

  .so-attach__btn {
    min-width: 44px;
    min-height: 44px;
  }

  .store-drawer__close {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Ultra-mobile (360-390px) — compact & smooth */
@media (max-width: 390px) {
  .product-card {
    animation: none;
  }

  .category-card {
    animation: none;
  }

  .cart-line {
    animation: none;
  }
}

/* ============================================================
   8. PERFORMANCE — GPU-Friendly & Optimized
   ============================================================ */

/* Only animate transform/opacity where possible */
.product-card,
.category-card,
.review-card,
.social-link,
.variant-option,
.filter-chip {
  will-change: transform;
}

/* Paint containment for heavy elements */
.product-card,
.hero__frame,
.cart-summary__glass,
.so-panel__glass {
  contain: layout style paint;
}

/* Reduce blur complexity on low-end devices */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .store-header {
    backdrop-filter: none;
    background: rgba(247, 243, 237, 0.92);
  }

  .cart-summary__glass {
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.85);
  }

  .so-panel__glass {
    backdrop-filter: none;
  }

  .yni-auth-card {
    backdrop-filter: none;
  }

  .admin-auth-gate {
    backdrop-filter: none;
  }

  .review-form-card {
    backdrop-filter: none;
  }

  .product-card::before {
    display: none;
  }

  .hero__frame::after {
    display: none;
  }

  .product-card:hover {
    transform: none;
  }

  .category-card:hover {
    transform: none;
  }

  .cart-line:hover {
    transform: none;
  }

  .review-card:hover {
    transform: none;
  }

  .stat-card:hover {
    transform: none;
  }
}

/* ============================================================
   9. RTL POLISH — Mirror Motion for Arabic
   ============================================================ */

body.store-body.is-rtl .variant-option:hover {
  transform: translateX(-2px);
}

body.store-body.is-rtl .product-card__media:hover .product-card__img--loaded {
  transform: scale(1.06);
}

body.store-body.is-rtl .cart-line {
  animation-name: slideInRtl;
}

body.store-body.is-rtl .store-drawer {
  transition:
    transform 0.45s var(--ease-out-expo),
    visibility 0.45s var(--ease-out-expo);
}

body.store-body.is-rtl .btn-special-order {
  transition:
    transform 0.35s var(--ease-out-expo),
    box-shadow 0.35s var(--ease-out-expo),
    border-color 0.35s var(--ease-out-expo);
}

/* ============================================================
   10. ADMIN DASHBOARD POLISH
   ============================================================ */

.nav-link {
  transition:
    transform 0.3s var(--ease-out-expo),
    background 0.3s var(--ease-out-expo),
    color 0.3s var(--ease-out-expo),
    border-color 0.3s var(--ease-out-expo);
}

.nav-link:hover {
  transform: translateX(2px);
}

body.is-rtl .nav-link:hover {
  transform: translateX(-2px);
}

.menu-toggle {
  transition:
    transform 0.3s var(--ease-spring),
    background 0.3s var(--ease-out-expo);
}

.menu-toggle:hover {
  transform: scale(1.05);
}

/* View section entrance */
.view-section.active {
  animation: viewPremium 0.5s var(--ease-out-expo) both;
}

@keyframes viewPremium {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Chart bar entrance */
.chart-bar {
  animation: chartGrow 0.7s var(--ease-out-expo) both;
  transform-origin: bottom;
}

@keyframes chartGrow {
  from {
    transform: scaleY(0);
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Mobile card stagger — premium entrance */
.mobile-card {
  animation: mobileCardIn 0.45s var(--ease-out-expo) both;
}

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

/* Sidebar — smooth transition */
.sidebar {
  transition:
    transform 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-out-expo);
}

/* ============================================================
   11. RENDER OPTIMIZATION — Prevent Layout Shifts
   ============================================================ */

/* Prevent content shift from entrance animations */
.product-card,
.category-card,
.cart-line,
.mobile-card {
  animation-fill-mode: both;
}

/* Contain paint for animated elements */
.product-card__media,
.hero__frame,
.product-detail__gallery {
  contain: paint;
}

/* Optimize sticky elements */
.store-header,
.cart-summary {
  contain: layout style;
}

/* ============================================================
   12. PRINT — Keep It Clean
   ============================================================ */

@media print {
  .product-card {
    animation: none !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .category-card {
    animation: none !important;
    transform: none !important;
  }

  .cart-line {
    animation: none !important;
    transform: none !important;
  }
}

/* ============================================================
   DARK MODE — Override hardcoded shadows & surfaces
   ============================================================ */

[data-theme="dark"] {
  --shadow-card-lift:
    0 2px 8px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-card-float:
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 20px 60px rgba(0, 0, 0, 0.18);
  --shadow-elevated-soft:
    0 4px 16px rgba(0, 0, 0, 0.15),
    0 24px 48px rgba(0, 0, 0, 0.22);
  --shadow-ambient-glow:
    0 0 0 1px rgba(201, 169, 110, 0.12),
    0 0 30px rgba(201, 169, 110, 0.06);
  --shadow-depth-inset:
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-glass:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .hero__frame {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .hero__frame::after {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .hero__frame:hover {
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.4),
    0 6px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .cart-summary__glass {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .cart-summary__glass:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .store-header {
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.15),
    0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .btn-store--primary {
  box-shadow:
    0 4px 14px rgba(201, 169, 110, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
