@import url('/css/vertigo-core.css?v=3');

/* Vertigo storefront layer — nav, hero ("Creation of Adam" remake), product cards, footer. */

/* ---------- Navbar dropdown bits (layout lives in vertigo-edge.css) ---------- */
.login-button, .cart-button, .user-button { border-radius: var(--radius-sm) !important; border: 1px solid var(--border) !important; background: rgba(255,255,255,.04) !important; color: var(--text) !important; box-shadow: none !important; }
.user-button:hover { border-color: var(--border-strong) !important; background: rgba(255,255,255,.08) !important; }
.login-button:hover { filter: brightness(1.12); box-shadow: none !important; transform: none !important; }
.dropdown-item { border-radius: 0 !important; }
.dropdown-item:hover, .mobile-nav-link:active { background: rgba(255,255,255,.05) !important; }

/* ---------- Page heroes (products etc.) ---------- */
.hero-grid, .vx-grid {
  background-image:
    linear-gradient(rgba(236, 232, 221, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 232, 221, .05) 1px, transparent 1px) !important;
  background-size: 48px 48px !important; opacity: 1 !important;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 35%, #000 20%, transparent 100%);
  mask-image: radial-gradient(75% 70% at 50% 35%, #000 20%, transparent 100%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px !important; border-radius: 999px !important;
  background: rgba(var(--accent-rgb), .08) !important; border: 1px solid var(--border-strong) !important; color: var(--text) !important;
  font-size: 13px !important; font-weight: 500 !important; backdrop-filter: none !important;
}
.hero-badge::after { display: none !important; }
.hero-badge .pill-new { background: var(--accent-color); color: #fff; font-weight: 700; font-size: 10px; padding: 3px 8px; border-radius: 999px; letter-spacing: .06em; }
.hero-title-main, .hero-title-accent {
  font-weight: 800 !important; letter-spacing: -0.04em !important; line-height: 1.02 !important; display: inline-block;
  background: none !important; -webkit-text-fill-color: currentColor !important; color: var(--text) !important; font-style: normal !important; filter: none !important;
}
.hero-title-accent { color: var(--accent-color) !important; }
.hero-description { color: var(--muted) !important; max-width: 560px; }
.hero-search {
  display: flex; align-items: stretch; max-width: 560px; margin: 0 auto 24px; text-align: left;
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 0 0 0 16px; gap: 10px; overflow: hidden;
}
.hero-search:focus-within { border-color: var(--accent-color); box-shadow: var(--ring); }
.hero-search i { align-self: center; }
.hero-search input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]) { border: 0 !important; box-shadow: none !important; background: transparent !important; }
.hero-search input { flex: 1; min-width: 0; background: transparent !important; border: 0 !important; outline: 0; color: var(--text); font-size: 14px; padding: 14px 0; box-shadow: none !important; }
.hero-search button { width: 48px; border: 0; border-left: 1px solid var(--border-strong); background: var(--accent-color); color: #fff; cursor: pointer; transition: filter .15s; }
.hero-search button:hover { filter: brightness(1.12); }

/* ---------- Landing hero: animated Creation of Adam ---------- */
.vx-hero { position: relative; overflow: hidden; padding: 112px 0 0; background: var(--bg); }
.vx-hero .vx-grid { position: absolute; inset: 0; pointer-events: none; }
.vx-inner { position: relative; z-index: 3; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.vx-copy { text-align: center; max-width: 820px; margin: 0 auto; }
.vx-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(var(--accent-rgb), .08); font-size: 13px; font-weight: 500; color: var(--text); }
.vx-eyebrow b { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-color); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .22); }
.vx-h1 { font-weight: 800; font-size: clamp(40px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -.04em; color: var(--text); margin: 0; }
.vx-h1 em { font-style: normal; color: var(--accent-color); }
.vx-sub { margin: 22px auto 28px; max-width: 560px; color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.65; }
.vx-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 18px; }
.vx-rating { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--muted); }

.vx-stage { position: relative; z-index: 1; margin: -80px 0 0; padding: 0; overflow: hidden; }
.vx-scene { position: relative; width: min(98%, 1280px); margin: 0 auto; aspect-ratio: 1700 / 560; }
.vx-glow {
  position: absolute; left: 50%; top: 52%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .34), rgba(var(--accent-rgb), .08) 55%, transparent 72%);
  animation: vx-breathe 5s ease-in-out infinite;
}
.vx-l { position: absolute; }
.vx-in, .vx-idle { width: 100%; height: 100%; position: relative; }
.vx-img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; pointer-events: none; filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .55)); }
.vx-ui-pos { left: 27.5%; top: 31%; width: 21%; }
.vx-lh-pos { left: 0; top: 56%; width: 38.8%; aspect-ratio: 741 / 228; }
.vx-rg-pos { left: 54.3%; top: 39.3%; width: 38.5%; aspect-ratio: 655 / 286; }
.vx-z1 { z-index: 1; } .vx-z2 { z-index: 2; } .vx-z3 { z-index: 3; }
.vx-lh-pos.vx-z1 .vx-img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); }
.vx-rg-pos.vx-z1 .vx-rh { -webkit-mask-image: linear-gradient(270deg, transparent, #000 26%); mask-image: linear-gradient(270deg, transparent, #000 26%); }
.vx-fg { position: absolute; height: auto; filter: none; }
.vx-fg-r { left: 14.81%; top: 24.48%; width: 35.73%; }
.vx-ui-pos .vx-idle { transform-origin: 50% 50%; }
.vx-ui-pos .vx-img { transform: perspective(1100px) rotateY(16deg) rotateZ(1deg); filter: drop-shadow(0 0 40px rgba(var(--accent-rgb), .25)) drop-shadow(0 26px 34px rgba(0, 0, 0, .6)); }
.vx-mouse { position: absolute; left: 0%; top: 55%; width: 58%; transform: rotate(2deg); transform-origin: 75% 65%; }
.vx-lh-pos .vx-img { filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .55)); }
.vx-rh { position: absolute; left: 0; top: 0; width: 100%; filter: drop-shadow(-6px 14px 14px rgba(0,0,0,.65)); }

/* click feedback on the mouse + ripple on the window */
.vx-click { position: absolute; left: 14%; top: 50%; width: 22%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .85), transparent); filter: blur(6px); opacity: 0; animation: vx-click 6s ease-in-out 1.4s infinite; mix-blend-mode: screen; }
.vx-ripple { position: absolute; left: 47%; top: 56%; width: 10%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--accent-color); opacity: 0; transform: scale(.3); animation: vx-ripple 6s ease-out 1.4s infinite; }
.vx-spark { position: absolute; left: 53.2%; top: 60.7%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; background: #fff; box-shadow: 0 0 24px 10px rgba(var(--accent-rgb), .9), 0 0 80px 30px rgba(var(--accent-rgb), .4); animation: vx-spark 6s ease-in-out 1.4s infinite; opacity: 0; z-index: 4; }

/* entrance */
.vx-in-l { animation: vx-in-l 1.3s cubic-bezier(.16, .84, .3, 1) both; }
.vx-in-r { animation: vx-in-r 1.3s cubic-bezier(.16, .84, .3, 1) .1s both; }
.vx-in-ui { animation: vx-in-ui 1.3s cubic-bezier(.16, .84, .3, 1) both; }
/* idle: the two hands lean toward each other, then settle */
.vx-reach-l { transform-origin: 0 60%; animation: vx-reach-l 6s ease-in-out 0s infinite; }
.vx-reach-r { transform-origin: 100% 40%; animation: vx-reach-r 6s ease-in-out 0s infinite; }
.vx-float { transform-origin: 0 50%; animation: vx-follow-ui 6s ease-in-out 0s infinite; }
.vx-rg-pos.vx-z2 .vx-reach-r { animation: vx-follow-mouse 6s ease-in-out 0s infinite; }
@keyframes vx-in-l { from { opacity: 0; transform: translateX(-14%); } to { opacity: 1; transform: none; } }
@keyframes vx-in-r { from { opacity: 0; transform: translateX(14%); } to { opacity: 1; transform: none; } }
@keyframes vx-in-ui { from { opacity: 0; transform: translateX(-26%); } to { opacity: 1; transform: none; } }
@keyframes vx-reach-l { 0%, 100% { transform: translate(0, 0) rotate(0); } 42%, 58% { transform: translate(2.2%, -1.5%) rotate(1.4deg); } }
@keyframes vx-reach-r { 0%, 100% { transform: translate(0, 0) rotate(0); } 42%, 58% { transform: translate(-2.2%, -1%) rotate(-1.2deg); } }
@keyframes vx-follow-ui { 0%, 100% { transform: translate(0, 0) rotate(0); } 42%, 58% { transform: translate(4.1%, -1.9%) rotate(.8deg); } }
@keyframes vx-follow-mouse { 0%, 100% { transform: translate(0, 0) rotate(0); } 42%, 58% { transform: translate(-2.2%, -1%) rotate(-1.2deg); } }
@keyframes vx-float-unused { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-1.2%) rotate(.4deg); } }
@keyframes vx-breathe { 0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(.96); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } }
@keyframes vx-click { 0%, 44%, 60%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes vx-ripple { 0%, 48% { opacity: 0; transform: scale(.3); } 52% { opacity: .9; } 78%, 100% { opacity: 0; transform: scale(1.8); } }
@keyframes vx-spark { 0%, 38%, 62%, 100% { opacity: 0; transform: scale(.3); } 50% { opacity: 1; transform: scale(1); } }

@media (max-width: 767px) {
  .vx-hero { padding-top: 88px; }
  .vx-stage { padding: 0; }
  .vx-scene { width: 190%; margin: 0 0 0 -45%; }
}

/* ---------- Product cards ---------- */
.product-card { display: flex !important; flex-direction: column; padding: 0 !important; overflow: hidden; }
.product-card::before { display: none !important; }
.product-card > .relative { border-radius: 0 !important; border-bottom: 1px solid var(--border); }
.product-card .card-image { filter: saturate(.9); }
.card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 9, 11, .7)); }
.card-chip {
  position: absolute; left: 10px; top: 10px; padding: 4px 8px; background: var(--bg) !important; border: 1px solid var(--border-strong); color: var(--text); backdrop-filter: none !important;
}
.product-card .absolute.top-2\.5 span { border-radius: 2px !important; padding: 4px 8px !important; font-weight: 700; background: var(--accent-color) !important; color: #fff !important; }
.card-body { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-desc { font-size: 13px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.card-price { font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.card-from { font-size: 11px; font-weight: 500; color: var(--muted); }
.card-old { font-size: 12px; color: var(--faint); text-decoration: line-through; }
.card-go {
  width: 34px; height: 34px; border-radius: var(--radius-sm); display: grid; place-items: center; font-size: 12px;
  background: transparent; border: 1px solid var(--border-strong); color: var(--text); transition: background .15s, color .15s, border-color .15s;
}
.product-card:hover .card-go { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }

/* ---------- Footer ---------- */
footer { background: var(--bg-2) !important; border-top: 1px solid var(--border) !important; }
footer a { transition: color .15s; }
footer a:hover { color: var(--accent-color) !important; }

.vx-thumb-l { pointer-events: none; }
.vx-thumb-l .vx-img { -webkit-mask-image: none; mask-image: none; }
.vx-tl { position: absolute; left: 59.8%; top: 7%; width: 26.05%; height: auto; }

/* mouse: tiny independent nudge on top of the hand's motion */
.vx-mouse { animation: vx-mouse-nudge 4.2s ease-in-out 0s infinite; }
@keyframes vx-mouse-nudge {
  0%, 100% { transform: translate(0, 0) rotate(2deg); }
  30% { transform: translate(.5%, -.4%) rotate(2.9deg); }
  65% { transform: translate(-.35%, .25%) rotate(1.3deg); }
}
@media (prefers-reduced-motion: reduce) { .vx-mouse { animation: none; } }
