/* ============================================================
   ACCESSORIES4U · pro.css
   Additive layer ONLY — does NOT modify existing style.css.
   Adds: cursor, progress bars, hero spotlight, pulse dots,
   sheen sweep, quick-add, toasts, cmdk, reveals.
   Total ~5kb gzipped.
   ============================================================ */

/* === 01 · Custom cursor === */
.a4u-cursor-dot, .a4u-cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  border-radius: 50%; mix-blend-mode: difference;
  transition: width .3s, height .3s, opacity .3s;
  will-change: transform;
}
.a4u-cursor-dot { width: 6px; height: 6px; background: #fff; }
.a4u-cursor-ring { width: 32px; height: 32px; border: 1.5px solid #fff; }
.a4u-cursor-ring.hover { width: 56px; height: 56px; border-width: 1px; }
.a4u-cursor-dot.hover { opacity: 0; }
@media (max-width: 900px), (hover: none) {
  .a4u-cursor-dot, .a4u-cursor-ring { display: none; }
}

/* === 02 · Page load progress bar === */
.a4u-page-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0;
  background: #FF5722;
  z-index: 10000;
  transition: width .4s cubic-bezier(.16,1,.3,1), opacity .4s;
  box-shadow: 0 0 8px rgba(255, 87, 34, .6);
  pointer-events: none;
}

/* === 03 · Read-progress ring === */
.a4u-read-progress {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  z-index: 100;
  opacity: 0; transition: opacity .4s;
  cursor: pointer;
}
.a4u-read-progress.show { opacity: 1; }
.a4u-read-progress svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.a4u-read-progress circle { fill: #fff; stroke-width: 2; }
.a4u-read-progress .track { stroke: #E8E4DD; fill: rgba(255,255,255,.95); }
.a4u-read-progress .bar {
  stroke: #0F0F0F; fill: none;
  stroke-dasharray: 138; stroke-dashoffset: 138;
  transition: stroke-dashoffset .2s;
}
.a4u-read-progress .arrow {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #0F0F0F; font-weight: 600;
}

/* === 04 · Hero spotlight (overlays .hero-v2) === */
.hero-v2 { position: relative; }
.a4u-hero-spotlight {
  position: absolute; inset: 0;
  pointer-events: none; opacity: 0;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%),
    rgba(255, 87, 34, .18), transparent 60%);
  transition: opacity .4s;
  z-index: 0;
}
.hero-v2:hover .a4u-hero-spotlight { opacity: 1; }
.hero-v2 > *:not(.a4u-hero-spotlight) { position: relative; z-index: 1; }

/* === 05 · Live pulse dot === */
.a4u-pulse-dot {
  position: relative; display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%; background: #FF5722;
  margin-right: 6px; vertical-align: middle;
}
.a4u-pulse-dot::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%; background: inherit;
  animation: a4u-pulse 2s ease-out infinite;
}
.a4u-pulse-dot.green { background: #1F8E4D; }
.a4u-pulse-dot.green::before { background: #1F8E4D; }
@keyframes a4u-pulse {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* === 06 · Magnetic buttons (transform handled by JS) === */
[data-a4u-magnetic] {
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}

/* === 07 · 3D tilt phones (transform handled by JS) === */
.hero-phone { will-change: transform; transition: transform .5s cubic-bezier(.16,1,.3,1); }

/* === 08 · Sheen sweep on product card media === */
.product-card-v2-media { position: relative; overflow: hidden; }
.product-card-v2-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%,
    rgba(255,255,255,.20) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .7s cubic-bezier(.65,0,.35,1);
  pointer-events: none;
  z-index: 3;
}
.product-card-v2:hover .product-card-v2-media::after { transform: translateX(100%); }

/* === 09 · Quick add button === */
.a4u-quick-add {
  position: absolute;
  bottom: 10px; left: 10px; right: 10px;
  background: #0F0F0F; color: #fff;
  padding: 9px 14px;
  border: 0; border-radius: 8px;
  font-weight: 600; font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.01em;
  transform: translateY(120%);
  opacity: 0;
  transition: transform .4s cubic-bezier(.16,1,.3,1), opacity .3s, background .3s;
  z-index: 4;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.35);
}
.product-card-v2:hover .a4u-quick-add { transform: translateY(0); opacity: 1; }
.a4u-quick-add:hover { background: #FF5722; }
.a4u-quick-add:active { transform: translateY(0) scale(.96); }

/* === 10 · Toasts === */
.a4u-toast-wrap {
  position: fixed; bottom: 24px; left: 24px;
  z-index: 1000;
  display: flex; flex-direction: column-reverse;
  gap: 10px; pointer-events: none;
  max-width: calc(100% - 48px);
}
.a4u-toast {
  background: #0F0F0F; color: #fff;
  padding: 13px 18px; border-radius: 10px;
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500;
  min-width: 260px;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.4);
  transform: translateX(-110%);
  transition: transform .5s cubic-bezier(.16,1,.3,1);
  pointer-events: auto;
}
.a4u-toast.show { transform: translateX(0); }
.a4u-toast .check {
  width: 22px; height: 22px;
  background: #1F8E4D; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* === 11 · Cart bounce === */
.cart-badge.a4u-bounce { animation: a4u-bounce .6s cubic-bezier(.34,1.56,.64,1); }
@keyframes a4u-bounce {
  0%,100% { transform: scale(1); }
  40% { transform: scale(1.55); }
}

/* === 12 · Command palette (Cmd+K) === */
.a4u-cmdk-overlay {
  position: fixed; inset: 0;
  background: rgba(15,15,15,.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.a4u-cmdk-overlay.open { opacity: 1; pointer-events: auto; }
.a4u-cmdk {
  position: fixed; top: 14%; left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: min(560px, calc(100% - 32px));
  background: #fff;
  border: 1px solid #E8E4DD;
  border-radius: 16px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.3);
  z-index: 201; overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .3s cubic-bezier(.16,1,.3,1);
  font-family: inherit;
}
.a4u-cmdk.open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.a4u-cmdk-input {
  width: 100%; padding: 16px 20px;
  border: 0; outline: 0;
  font-family: inherit; font-size: 15px;
  border-bottom: 1px solid #E8E4DD;
  background: transparent;
}
.a4u-cmdk-list { padding: 6px; max-height: 360px; overflow-y: auto; }
.a4u-cmdk-section {
  padding: 8px 12px 6px;
  font-size: 10.5px; color: #888;
  text-transform: uppercase; letter-spacing: .08em;
  font-weight: 600;
}
.a4u-cmdk-item {
  padding: 10px 12px;
  border-radius: 8px;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; cursor: pointer; color: #0F0F0F;
  text-decoration: none;
}
.a4u-cmdk-item:hover, .a4u-cmdk-item.active { background: #F6F3EE; }
.a4u-cmdk-item .ic {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
  background: #F6F3EE; border-radius: 5px;
}
.a4u-cmdk-item .lbl { flex: 1; }
.a4u-cmdk-item .meta { color: #999; font-size: 11.5px; }
.a4u-cmdk-empty { padding: 24px; text-align: center; color: #999; font-size: 13px; }
.a4u-cmdk-hint {
  padding: 8px 14px;
  border-top: 1px solid #E8E4DD;
  font-size: 11px; color: #888;
  display: flex; gap: 14px;
}
.a4u-cmdk-hint kbd {
  font-family: inherit;
  background: #F6F3EE;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #E8E4DD;
}

/* === 13 · Search bar / hint === */
.a4u-key-hint {
  position: absolute; right: 110px; top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  background: #F6F3EE;
  border: 1px solid #E8E4DD;
  padding: 2px 7px;
  border-radius: 5px;
  color: #888;
  font-weight: 500;
  pointer-events: none;
}
@media (max-width: 900px) { .a4u-key-hint { display: none; } }

/* === 14 · Reveal on scroll === */
.a4u-reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s cubic-bezier(.16,1,.3,1),
              transform 1s cubic-bezier(.16,1,.3,1);
}
.a4u-reveal.in { opacity: 1; transform: translateY(0); }
.a4u-reveal-stagger > * {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1),
              transform .8s cubic-bezier(.16,1,.3,1);
}
.a4u-reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.a4u-reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.a4u-reveal-stagger.in > *:nth-child(2) { transition-delay: .05s; }
.a4u-reveal-stagger.in > *:nth-child(3) { transition-delay: .10s; }
.a4u-reveal-stagger.in > *:nth-child(4) { transition-delay: .15s; }
.a4u-reveal-stagger.in > *:nth-child(5) { transition-delay: .20s; }
.a4u-reveal-stagger.in > *:nth-child(6) { transition-delay: .25s; }
.a4u-reveal-stagger.in > *:nth-child(7) { transition-delay: .30s; }
.a4u-reveal-stagger.in > *:nth-child(8) { transition-delay: .35s; }
.a4u-reveal-stagger.in > *:nth-child(9) { transition-delay: .40s; }
.a4u-reveal-stagger.in > *:nth-child(10) { transition-delay: .45s; }
.a4u-reveal-stagger.in > *:nth-child(n+11) { transition-delay: .50s; }

/* === 15 · Smart sticky header === */
.site-header {
  transition: transform .4s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}
.site-header.a4u-hidden { transform: translateY(-100%); }

/* === 16 · WhatsApp float pulse === */
.whatsapp-float { position: relative; }
.whatsapp-float::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  border: 2px solid #25D366;
  animation: a4u-wa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes a4u-wa-pulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  .a4u-pulse-dot::before, .whatsapp-float::after { animation: none !important; }
  .a4u-reveal, .a4u-reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .product-card-v2-media::after { display: none; }
  [data-a4u-magnetic] { transition: none; }
}
