/* ═══════════════════════════════════════════════════════════════
   SME TAPS & VALVES — PREMIUM DESIGN SYSTEM
   Centralized brand tokens + premium UI layer.
   Loaded AFTER each page's existing CSS so it can elevate/replace
   the visual layer without touching business logic.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── SME Brand palette (existing project colors) ── */
  --brand-primary: #0d6efd;
  --brand-primary-600: #2563eb;
  --brand-secondary: #0f172a;
  --brand-accent: #60a5fa;
  --brand-dark: #0a0f1a;
  --brand-light: #f1f6fe;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-soft: #eef2f7;

  /* derived */
  --brand-gradient: linear-gradient(135deg, #0d6efd 0%, #2563eb 100%);
  --brand-gradient-soft: linear-gradient(180deg, #eef4ff 0%, #f8fafc 100%);
  --brand-glow: 0 10px 34px rgba(13,110,253,0.22);
  --brand-glow-soft: 0 6px 20px rgba(13,110,253,0.12);

  /* elevation / radius */
  --shadow-sm: 0 2px 12px rgba(15,23,42,0.05);
  --shadow-md: 0 12px 34px rgba(15,23,42,0.08);
  --shadow-lg: 0 24px 60px rgba(15,23,42,0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Smooth & reduced-motion aware ── */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body { -webkit-font-smoothing: antialiased; }

/* ── Premium Buttons (system) ── */
.btn {
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  letter-spacing: .01em;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out),
              background .25s, color .25s, border-color .25s !important;
  will-change: transform;
}
.btn-primary {
  background: var(--brand-gradient) !important;
  box-shadow: var(--brand-glow-soft) !important;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--brand-glow) !important;
}
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-outline {
  border-color: var(--brand-primary) !important;
  color: var(--brand-primary) !important;
}
.btn-outline:hover { color: #fff !important; background: var(--brand-primary) !important; }
.btn-sm { border-radius: var(--radius-pill) !important; }

/* ── Floating CTA recentre ── */
.floating-btn { border-radius: 50% !important; }

/* ── Top bar polish ── */
.top-bar { background: var(--brand-secondary) !important; }

/* ── Navbar: glass → solid on scroll ── */
.header {
  background: rgba(255,255,255,0.78) !important;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(226,232,240,0.6) !important;
  transition: background .3s, box-shadow .3s, height .25s !important;
}
.header.is-scrolled {
  background: rgba(255,255,255,0.96) !important;
  box-shadow: 0 8px 30px rgba(15,23,42,0.06);
}
.nav-link {
  position: relative;
  font-weight: 500 !important;
  border-radius: var(--radius-pill) !important;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%; right: auto; bottom: 4px;
  width: 0; height: 2px; border-radius: 2px;
  background: var(--brand-primary);
  transform: translateX(-50%);
  transition: width .3s var(--ease-out);
}
.nav-link:hover::after, .nav-link.active::after { width: 60%; }
.nav-list.active .nav-link::after { display: none; }

/* ── Premium section headings shared aesthetics ── */
.section-label, .page-hero-eyebrow, .catalog-eyebrow, .section-title-accent {
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ── Reveal animation (upgrade existing [data-reveal]) ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ── Marquee (pure CSS) for category/industry motion ── */
.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  will-change: transform;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: .95rem; font-weight: 600; letter-spacing: .08em;
  color: var(--text-secondary); white-space: nowrap;
  padding: 14px 26px;
}
.marquee-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-primary); flex-shrink: 0; }

/* ── Product / Premium card polish ── */
.premium-card, .product-card, .catalog-card, .feature-card,
.contact-info-card, .contact-form-card, .product-card-image, .product-image {
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s, border-radius .3s;
}
.premium-card:hover, .catalog-card:hover, .feature-card:hover,
.contact-info-card:hover, .contact-form-card:hover {
  box-shadow: var(--shadow-lg);
}
.product-card:hover, .premium-card:hover, .catalog-card:hover, .feature-card:hover {
  border-color: rgba(13,110,253,0.28) !important;
}

/* Image zoom on hover (respect the existing classes) */
.premium-card .card-img img,
.product-card .product-image img,
.catalog-card img { transition: transform .5s var(--ease-out); }
.premium-card:hover .card-img img,
.product-card:hover .product-image img { transform: scale(1.06); }

/* Clean card image area for consistent product presentation */
.premium-card .card-img,
.product-card .product-image,
.product-card .product-card-image {
  background: linear-gradient(180deg, #f6f9ff 0%, #eef3fb 100%);
}

/* Prevent blurry image flash / layout shift during lazy load */
.product-card img,
.premium-card img,
.product-image img,
.product-card-image img {
  image-rendering: auto;
  background: #eef3fb;
}
.product-image img,
.product-card-image img {
  opacity: 0;
  transition: opacity .3s ease;
}
.product-image img.is-loaded,
.product-card-image img.is-loaded {
  opacity: 1;
}

/* ── Category section cards (home) ── */
.category-header h2 {
  font-family: var(--font-display, 'Syne', sans-serif);
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
}
.category-header h2::after {
  content: '→';
  color: var(--brand-primary);
  margin-left: 4px;
  transition: transform .3s var(--ease-out);
}
.category-header h2:hover::after { transform: translateX(5px); }

/* ── Pagination bullets accent ── */
.swiper-pagination-bullet-active { background: var(--brand-primary) !important; }

/* ── Utility × overflow safety ── */
.overflow-hidden { overflow: hidden; }

/* ── Focus visibility for accessibility ── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(13,110,253,0.5);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ── Responsive global tweaks ── */
@media (max-width: 768px) {
  .marquee-item { font-size: .82rem; padding: 10px 18px; }
}

/* ── Staggered card entrance (products grid) ── */
@keyframes cardRise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
#products-container .product-card,
.circle-products .premium-card {
  animation: cardRise .6s var(--ease-out) both;
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM PRODUCT SHOWCASE — ENGINEERING CATALOG SYSTEM
   Flagship presentation layer for products on home + catalog pages.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --p-surface: #ffffff;
  --p-surface-2: #f6f9ff;
  --p-ink: #0f172a;
  --p-ink-2: #475569;
  --p-muted: #94a3b8;
  --p-line: #e7edf5;
  --p-brand: #0d6efd;
  --p-brand-deep: #0a58ca;
  --p-glow: 0 18px 50px rgba(13,110,253,.14);
  --p-ease: cubic-bezier(.22,1,.36,1);
}

/* ── Premium section header (showcase intro) ── */
.showcase-header { text-align: center; margin-bottom: 56px; position: relative; }
.showcase-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .72rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--p-brand);
  padding: 8px 18px; border: 1px solid rgba(13,110,253,.25);
  border-radius: 999px; background: rgba(13,110,253,.06);
  margin-bottom: 22px; position: relative;
}
.showcase-eyebrow::before, .showcase-eyebrow::after {
  content: ''; width: 22px; height: 1px; background: rgba(13,110,253,.4);
}
.showcase-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.08; letter-spacing: -.02em; color: var(--p-ink);
  margin-bottom: 18px;
}
.showcase-title .accent { color: var(--p-brand); position: relative; }
.showcase-sub {
  font-size: clamp(.92rem, 1.4vw, 1.02rem); color: var(--p-ink-2);
  max-width: 640px; margin: 0 auto; line-height: 1.75;
}

/* ── Technical metadata row under title ── */
.showcase-meta {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 26px;
}
.showcase-meta span {
  font-family: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
  font-size: .7rem; letter-spacing: .18em; color: var(--p-muted);
  padding: 7px 16px; border: 1px solid var(--p-line); border-radius: 999px;
  background: #fff; display: inline-flex; align-items: center; gap: 8px;
}
.showcase-meta span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--p-brand); }

/* ── Running rails (pure CSS, pause on hover) ── */
.run-rail {
  overflow: hidden; position: relative; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  padding: 18px 0; user-select: none;
}
.run-rail-inner {
  display: flex; width: max-content; gap: 18px;
  animation: railScroll var(--rail-speed, 26s) linear infinite;
  will-change: transform;
}
.run-rail:hover .run-rail-inner { animation-play-state: paused; }
.run-rail.reverse .run-rail-inner { animation-direction: reverse; }
@keyframes railScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rail-chip {
  display: inline-flex; align-items: center; gap: 11px;
  white-space: nowrap; flex-shrink: 0;
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: .88rem; font-weight: 600; letter-spacing: .08em;
  color: var(--p-ink-2);
  padding: 12px 26px; border: 1px solid var(--p-line); border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-sm, 0 2px 12px rgba(15,23,42,.05));
}
.rail-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--p-brand); font-style: normal; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(13,110,253,.12); }
.rail-chip.outline { background: transparent; border-color: var(--p-line); box-shadow: none; color: var(--p-muted); }
.rail-chip.outline i { background: transparent; box-shadow: 0 0 0 2px var(--p-brand); }
.rail-faint .rail-chip { opacity: .5; }

/* ── Section transition divider ── */
.section-divider {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  padding: 6px 0; color: var(--p-muted);
}
.section-divider::before, .section-divider::after {
  content: ''; height: 1px; width: min(180px, 26vw);
}
.section-divider::before { background: linear-gradient(90deg, transparent, var(--p-line)); }
.section-divider::after { background: linear-gradient(90deg, var(--p-line), transparent); }
.section-divider .sd-mark { font-size: .68rem; letter-spacing: .3em; }

/* ═══ THE FLAGSHIP PRODUCT CARD ═══ */
.p-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px,100%), 1fr));
  gap: 28px; perspective: 1400px;
}
.p-card {
  position: relative; display: flex; flex-direction: column;
  height: 100%; min-height: 470px;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(13,110,253,.10), transparent 55%),
    linear-gradient(180deg, var(--p-surface-2), var(--p-surface));
  border: 1px solid var(--p-line); border-radius: 22px;
  box-shadow: var(--shadow-sm, 0 2px 12px rgba(15,23,42,.05));
  overflow: hidden; transform-style: preserve-3d;
  transition: transform .55s var(--p-ease), box-shadow .55s var(--p-ease), border-color .4s;
}
.p-card:hover {
  border-color: rgba(13,110,253,.45);
  box-shadow: var(--p-glow), 0 0 0 1px rgba(13,110,253,.12);
}

/* Image stage */
.p-stage {
  position: relative; height: 290px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background:
    radial-gradient(80% 70% at 50% 40%, rgba(13,110,253,.08), transparent 70%),
    linear-gradient(180deg, #f0f5ff 0%, var(--p-surface-2) 100%);
  transform-style: preserve-3d;
}
.p-stage img {
  position: relative; z-index: 2;
  width: 78%; max-width: 300px; height: auto; object-fit: contain;
  transform: translateY(6px) scale(.92);
  filter: drop-shadow(0 22px 26px rgba(13,110,253,.20)) drop-shadow(0 4px 6px rgba(15,23,42,.12));
  transition: transform .6s var(--p-ease);
  opacity: 0;
}
.p-card .p-stage img.is-in { opacity: 1; }
/* ellipse ground shadow under product */
.p-stage::after {
  content: ''; position: absolute; bottom: 24px; left: 50%; z-index: 1;
  width: 62%; height: 24px; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(13,110,253,.22), transparent 70%);
  transform: translateX(-50%) scaleX(1);
  filter: blur(6px); transition: transform .6s var(--p-ease), opacity .5s;
  opacity: .9; pointer-events: none;
}
.p-card:hover .p-stage::after { transform: translateX(-50%) scaleX(1.18) translateY(4px); opacity: .75; }
.p-card:hover .p-stage img { transform: translateY(6px) scale(1.05); }

/* Light sweep */
.p-card::after {
  content: ''; position: absolute; top: 0; left: -80%; z-index: 6;
  width: 55%; height: 100%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg);
  opacity: 0; transition: opacity .2s;
}
.p-card:hover::after { animation: sweep .9s var(--p-ease) forwards; }
@keyframes sweep { 0% { left: -80%; opacity: 1; } 100% { left: 130%; opacity: 0; } }

/* Badge (top-left) */
.p-badge {
  position: absolute; top: 16px; left: 16px; z-index: 4;
  max-width: calc(100% - 32px);
  font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--p-brand); background: rgba(255,255,255,.86);
  border: 1px solid rgba(13,110,253,.28); border-radius: 999px;
  padding: 6px 14px; backdrop-filter: blur(6px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* technical index (top-right, monospace) */
.p-index {
  position: absolute; top: 16px; right: 72px; z-index: 3;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: .68rem; letter-spacing: .12em; color: var(--p-muted);
}

/* Body */
.p-body { position: relative; z-index: 3; flex: 1; display: flex; flex-direction: column; padding: 20px 22px 22px; }
.p-cat {
  font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--p-brand);
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.p-cat::before { content: ''; width: 18px; height: 2px; background: var(--p-brand); border-radius: 2px; }
.p-name {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.25; letter-spacing: -.01em;
  color: var(--p-ink); margin-bottom: 8px; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em;
}
.p-desc {
  font-size: .83rem; color: var(--p-ink-2); line-height: 1.6; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
}

/* Technical data strip */
.p-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 0; border-top: 1px solid var(--p-line); margin-top: auto; }
.p-spec b { display: block; font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--p-muted); margin-bottom: 3px; }
.p-spec span {
  font-family: ui-monospace, 'SF Mono', monospace; font-size: .78rem; font-weight: 600; color: var(--p-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
}

/* CTA footer */
.p-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; margin-top: 16px; border-top: 1px solid var(--p-line);
}
.p-price { font-family: var(--font-display, 'Syne', sans-serif); font-weight: 700; font-size: 1.02rem; color: var(--p-ink); }
.p-price.quote { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--p-muted); }
.p-btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, var(--p-brand), var(--p-brand-deep));
  border: none; border-radius: 999px; cursor: pointer;
  padding: 12px 20px; box-shadow: 0 6px 18px rgba(13,110,253,.28);
  transition: transform .3s var(--p-ease), box-shadow .3s var(--p-ease), padding .3s var(--p-ease);
  overflow: hidden;
}
.p-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13,110,253,.36); padding-right: 26px; }
.p-btn svg { width: 15px; height: 15px; transition: transform .3s var(--p-ease); }
.p-btn:hover svg { transform: translateX(4px); }

/* ── Add-to-Cart / CTA button group in card ── */
.p-btn-actions { display: flex; align-items: center; gap: 8px; }
.p-btn .p-check { opacity: 0; transform: scale(.5); transition: all .3s var(--p-ease); }
.p-btn.added { padding: 12px 20px; animation: pop .4s var(--p-ease); }
.p-btn.added .p-check { opacity: 1; transform: scale(1); }
.p-btn.added .p-cart-label, .p-btn.added .p-cart-ico { opacity: 0; }
.p-btn .p-cart-label, .p-btn .p-cart-ico { transition: opacity .2s; }
.p-btn.icon {
  width: 42px; height: 42px; padding: 0; justify-content: center; flex-shrink: 0;
  background: rgba(13,110,253,.08); color: var(--p-brand); box-shadow: none; border: 1px solid rgba(13,110,253,.2);
}
.p-btn.icon:hover { background: var(--p-brand); color: #fff; transform: translateY(-2px); padding: 0; box-shadow: 0 8px 20px rgba(13,110,253,.3); }

/* Featured (larger) card */
.p-grid .p-featured .p-card { min-height: 520px; }
.p-grid .p-featured .p-stage { height: 330px; }
.p-grid .p-featured .p-name { font-size: clamp(1.2rem, 1.9vw, 1.45rem); }

/* Integrate #products-container (products.html) with the showcase grid */
#products-container { perspective: 1400px; }
#products-container .p-featured .p-card { min-height: 520px; }
#products-container .p-featured .p-stage { height: 330px; }
#products-container .p-featured .p-name { font-size: clamp(1.2rem, 1.9vw, 1.45rem); }
#products-container.list-view { grid-template-columns: 1fr; }
#products-container.list-view .p-card { min-height: 0; flex-direction: row; }
#products-container.list-view .p-stage { width: 200px; height: auto; min-height: 160px; flex-shrink: 0; }
#products-container.list-view .p-card::after { display: none; }
#products-container.list-view .p-actions { display: none; }
#products-container.list-view .p-specs { grid-template-columns: repeat(3, 1fr); }

/* HUD micro line */
.p-hud { position: absolute; z-index: 5; pointer-events: none; font-family: ui-monospace, monospace; font-size: .6rem; letter-spacing: .18em; color: var(--p-muted); opacity: .5; }
.p-hud.tl { top: 10px; right: 16px; }
.p-hud.br { bottom: 12px; right: 16px; }
.p-hud.br { bottom: 12px; right: 16px; }

/* Quick view actions (top-right, on hover) */
.p-actions { position: absolute; top: 14px; right: 14px; z-index: 5; display: flex; gap: 8px; opacity: 0; transform: translateX(10px); transition: all .4s var(--p-ease); }
.p-card:hover .p-actions { opacity: 1; transform: translateX(0); }
.p-act {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--p-line);
  background: rgba(255,255,255,.9); color: var(--p-ink-2); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .25s; backdrop-filter: blur(4px);
}
.p-act:hover { background: var(--p-brand); color: #fff; border-color: var(--p-brand); }
.p-act svg { width: 15px; height: 15px; }

/* Scroll reveal variants */
.reveal-fade, .reveal-scale, .reveal-left, .reveal-right, .reveal-clip {
  opacity: 0; will-change: transform, opacity;
  transition: opacity .8s var(--p-ease), transform .8s var(--p-ease), clip-path .8s var(--p-ease);
}
.reveal-fade { transform: translateY(50px); }
.reveal-scale { transform: scale(.94); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-clip { clip-path: inset(12% 12% 0 12%); transform: translateY(30px); }
.reveal-fade.revealed, .reveal-scale.revealed, .reveal-left.revealed,
.reveal-right.revealed, .reveal-clip.revealed { opacity: 1; transform: none; clip-path: inset(0); }

/* Mobile cleanup */
@media (max-width: 640px) {
  .p-grid { gap: 18px; grid-template-columns: 1fr; }
  .p-card { min-height: 0; }
  .p-stage { height: 250px; }
  .p-card:hover { transform: none !important; }
  .p-card:hover .p-stage img { transform: translateY(-6px) scale(1.03); }
  .p-actions { opacity: 1; transform: none; }
  .p-index { display: none; }
}

/* ── Hero floating technical micro-labels ── */
.hero-float {
  position: absolute; z-index: 3; pointer-events: none;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: .58rem; letter-spacing: .24em; color: rgba(13,110,253,.85);
  background: rgba(255,255,255,.72); border: 1px solid rgba(13,110,253,.3);
  padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(13,110,253,.14);
  animation: heroFloat 7s ease-in-out infinite;
}
.hero-float.f1 { top: 6%; left: -6%; animation-duration: 7s; }
.hero-float.f2 { top: 40%; right: -8%; animation-duration: 9s; animation-delay: .6s; }
.hero-float.f3 { bottom: 8%; left: 2%; animation-duration: 8s; animation-delay: 1.1s; }
.hero-float.f4 { top: 64%; left: -10%; animation-duration: 6.5s; animation-delay: .3s; color: rgba(15,23,42,.6); }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  25%      { transform: translateY(-12px); }
  50%      { transform: translateY(4px) translateX(4px); }
  75%      { transform: translateY(-5px); }
}
@media (max-width: 900px) { .hero-float { display: none; } }

/* ═══════════════════════════════════════════════════════════════
   SHOPPING CART — DRAWER + CHECKOUT → WHATSAPP
   ═══════════════════════════════════════════════════════════════ */
.cart-btn {
  position: fixed; right: 22px; bottom: 118px; z-index: 400;
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--p-brand), var(--p-brand-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(13,110,253,.4);
  transition: transform .3s var(--p-ease), box-shadow .3s;
}
.cart-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 36px rgba(13,110,253,.5); }
.cart-btn svg { width: 24px; height: 24px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px;
  border-radius: 999px; background: #ef4444; color: #fff;
  font-size: .68rem; font-weight: 800; display: none; align-items: center; justify-content: center;
  padding: 0 6px; border: 2px solid #fff;
}
.cart-count.show { display: inline-flex; animation: pop .3s var(--p-ease); }

/* Overlay */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 499; opacity: 0;
  pointer-events: none; transition: opacity .35s var(--p-ease); backdrop-filter: blur(2px);
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

/* Drawer */
.cart-drawer {
  position: fixed; top: 0; right: 0; z-index: 500; height: 100vh; width: min(420px, 100vw);
  background: #fff; box-shadow: -20px 0 60px rgba(15,23,42,.2);
  transform: translateX(105%); transition: transform .45s var(--p-ease);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--p-line);
}
.cart-head h3 { font-family: var(--font-display, 'Syne', sans-serif); font-size: 1.1rem; color: var(--p-ink); display: flex; align-items: center; gap: 10px; }
.cart-head h3 svg { width: 20px; height: 20px; color: var(--p-brand); }
.cart-close {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--p-line);
  background: #fff; color: var(--p-ink-2); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s;
}
.cart-close:hover { background: #fee2e2; color: #dc2626; border-color: #fecaca; }
.cart-close svg { width: 16px; height: 16px; }

/* Items list */
.cart-items { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--p-muted); }
.cart-empty svg { width: 52px; height: 52px; margin: 0 auto 14px; color: #cbd5e1; }
.cart-empty p { font-size: .9rem; }
.cart-item {
  display: flex; gap: 14px; padding: 12px; border: 1px solid var(--p-line);
  border-radius: 14px; background: #fff; align-items: center;
}
.cart-item-img { width: 58px; height: 58px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: var(--p-surface-2); display: flex; align-items: center; justify-content: center; border: 1px solid var(--p-line); }
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: .84rem; color: var(--p-ink); line-height: 1.3; margin-bottom: 2px; font-family: var(--font-body, sans-serif); font-weight: 600; }
.cart-item-info .ci-series { font-size: .62rem; color: var(--p-muted); text-transform: uppercase; letter-spacing: .1em; }
.cart-item-price { font-size: .82rem; font-weight: 700; color: var(--p-brand); margin-top: 4px; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button {
  width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--p-line); background: #fff;
  color: var(--p-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; line-height: 1; transition: all .2s;
}
.qty button:hover { background: var(--p-brand); color: #fff; border-color: var(--p-brand); }
.qty span { min-width: 24px; text-align: center; font-weight: 700; font-size: .9rem; }
.cart-item-remove {
  align-self: flex-start; width: 30px; height: 30px; border: none; background: none; color: var(--p-muted);
  display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 8px; transition: all .2s;
}
.cart-item-remove:hover { color: #dc2626; background: #fee2e2; }
.cart-item-remove svg { width: 16px; height: 16px; }

/* Footer + checkout */
.cart-foot { border-top: 1px solid var(--p-line); padding: 16px 22px 20px; }
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cart-subtotal span { font-size: .82rem; color: var(--p-ink-2); }
.cart-subtotal strong { font-family: var(--font-display, 'Syne', sans-serif); font-size: 1.2rem; color: var(--p-ink); }
.cart-note { font-size: .72rem; color: var(--p-muted); margin-bottom: 12px; line-height: 1.5; }
.cart-form { display: flex; flex-direction: column; gap: 10px; }
.cart-form input, .cart-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--p-line); border-radius: 12px;
  font-family: var(--font-body, sans-serif); font-size: .86rem; color: var(--p-ink); background: var(--p-surface-2); transition: border-color .2s, box-shadow .2s;
}
.cart-form input:focus, .cart-form textarea:focus { outline: none; border-color: var(--p-brand); box-shadow: 0 0 0 3px rgba(13,110,253,.1); background: #fff; }
.cart-form textarea { resize: vertical; min-height: 60px; }
.cart-checkout {
  width: 100%; margin-top: 6px; padding: 14px; border: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; font-weight: 800; font-size: .95rem;
  font-family: var(--font-body, sans-serif); display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 8px 22px rgba(18,140,126,.35); transition: transform .25s var(--p-ease), box-shadow .25s;
}
.cart-checkout:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(18,140,126,.45); }
.cart-checkout svg { width: 20px; height: 20px; }

/* Toast */
.cart-toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px); z-index: 600;
  background: var(--p-ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 12px 30px rgba(15,23,42,.3); opacity: 0; pointer-events: none;
  transition: all .35s var(--p-ease); white-space: nowrap;
}
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cart-toast svg { width: 18px; height: 18px; color: #25d366; }

@media (max-width: 640px) {
  .cart-btn { right: 14px; bottom: 108px; width: 52px; height: 52px; }
  .cart-drawer { width: 100vw; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .p-card, .p-stage img, .p-stage::after, .p-btn svg, .p-btn { transition: none !important; }
  .p-card:hover .p-stage img { transform: none; }
  .p-card::after { display: none; }
  .p-hud, .showcase-meta span::before, .rail-chip i { display: none; }
  .cart-drawer, .cart-overlay, .cart-toast, .cart-count { transition: none !important; }
  .cart-btn, .cart-checkout, .cart-close { transition: none !important; }
}

