/* SHODIRA graphics layer (2026-11-12): product-led hero, photo category tiles, promo banners,
   new-arrivals rail, stronger product cards and section polish.
   Loaded after styles.css and fx3d.css, and works alongside the 3D layer (it never replaces it).
   Every animation here stops for visitors who ask their device for reduced motion. */

:root {
  --violet: #8b5cff;
  --pink: #ff4fd8;
  --amber: #ffb547;
  --mint: #3ce8b0;
  --glass: rgba(14, 22, 42, .72);
  --glass-line: rgba(140, 190, 255, .22);
}

/* ---------- Page atmosphere: soft colour glows behind every page ---------- */
body {
  background:
    radial-gradient(1100px 620px at 85% -10%, rgba(42,140,255,.16), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(139,92,255,.10), transparent 60%),
    radial-gradient(900px 700px at 110% 75%, rgba(60,232,176,.06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
.site-header { box-shadow: 0 1px 0 rgba(42,140,255,.18), 0 12px 30px rgba(0,0,0,.35); }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(111,214,255,.7) 30%, rgba(139,92,255,.7) 70%, transparent);
  opacity: .55;
}
.block.alt {
  background: linear-gradient(180deg, rgba(16,26,48,.55), rgba(7,11,22,.35));
  border-top: 1px solid rgba(120,170,255,.10); border-bottom: 1px solid rgba(120,170,255,.10);
}
.section-head h2, .page-hero h1 {
  background: linear-gradient(92deg, #fff 0%, #dbe8ff 45%, #8fd8ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons: a touch more weight and shine */
.btn-lg { padding: 15px 28px; font-size: 1.02rem; border-radius: 12px; }
.btn-primary { background: linear-gradient(135deg, #3aa0ff 0%, var(--blue) 45%, #5a5cff 100%); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 48%, transparent 62%);
  background-size: 250% 100%; background-position: 120% 0; transition: background-position .7s ease;
}
.btn-primary { position: relative; overflow: hidden; }
.btn-primary:hover::after { background-position: -40% 0; }
.btn-ghost { background: rgba(10,16,32,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* ---------- Home hero: the shop on show ---------- */
.hero-shop { padding: 72px 0 84px; }
.hero-shop .hero-grid { grid-template-columns: 1.05fr .95fr; }
.hero-trust { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-trust li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px;
  font-size: .86rem; color: var(--text); background: rgba(14,22,42,.65); border: 1px solid var(--glass-line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-trust svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }

.hero-stage { position: relative; min-height: 560px; display: grid; place-items: center; isolation: isolate; }
.hero-stage .hero-logo { margin: 0 auto; max-width: 330px; position: relative; z-index: 5; }

/* Product orbit: every product in the shop takes its turn circling the globe (driven by gfx.js) */
.hero-orbit { position: absolute; inset: 0; pointer-events: none; }
.orbit-path {
  position: absolute; left: 50%; top: 50%; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(111,214,255,.28); box-shadow: 0 0 18px rgba(42,140,255,.18), inset 0 0 18px rgba(42,140,255,.12);
}
.orbit-path::after { /* a comet of light running along each path */
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  background: conic-gradient(from var(--sweep, 0deg), transparent 0deg, rgba(111,214,255,.0) 300deg, rgba(160,230,255,.85) 356deg, transparent 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}
.orbit-item {
  position: absolute; left: 0; top: 0; width: var(--os, 74px); height: var(--os, 74px); margin: calc(var(--os, 74px) / -2) 0 0 calc(var(--os, 74px) / -2);
  pointer-events: auto; border-radius: 50%; background: #fff; display: block; will-change: transform;
  box-shadow: 0 10px 26px rgba(0,0,0,.55), 0 0 0 2px rgba(111,214,255,.55), 0 0 22px rgba(42,140,255,.55);
  transition: box-shadow .25s;
}
.orbit-item img { width: 100%; height: 100%; object-fit: contain; padding: 12%; border-radius: 50%; transition: opacity .35s ease; }
.orbit-item.is-swapping img { opacity: 0; }
.orbit-shade { position: absolute; inset: 0; border-radius: 50%; background: #050a16; opacity: 0; pointer-events: none; will-change: opacity; }
.orbit-item.is-hover .orbit-shade, .orbit-item:hover .orbit-shade, .orbit-item:focus-visible .orbit-shade { opacity: 0 !important; }
.orbit-item:hover, .orbit-item:focus-visible { box-shadow: 0 14px 30px rgba(0,0,0,.6), 0 0 0 3px var(--cyan), 0 0 36px rgba(111,214,255,.85); }
.orbit-label {
  position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); width: max-content; max-width: 200px;
  padding: 8px 12px; border-radius: 12px; text-align: center; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: rgba(8,14,30,.92); border: 1px solid rgba(111,214,255,.4); box-shadow: 0 12px 30px rgba(0,0,0,.5);
  font-size: .78rem; line-height: 1.3; color: #fff;
}
.orbit-label b { display: block; font-weight: 600; }
.orbit-label em { font-style: normal; font-family: var(--font-display); font-weight: 700; color: var(--cyan); }
.orbit-item:hover .orbit-label, .orbit-item:focus-visible .orbit-label { opacity: 1; }
.orbit-item.is-hover, .orbit-item:hover, .orbit-item:focus-visible { z-index: 60 !important; filter: none !important; }
.orbit-count {
  position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); z-index: 6; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .82rem; color: var(--text);
  background: rgba(10,16,32,.75); border: 1px solid var(--glass-line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.orbit-count::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.orbit-count:hover { color: #fff; border-color: rgba(111,214,255,.6); }
@media (max-width: 860px) {
  .hero-shop { padding: 28px 0 56px; }
  .hero-shop .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-stage { order: -1; min-height: 380px; }
  .hero-stage .hero-logo { max-width: 190px; }
  .orbit-count { bottom: 6px; }
  .orbit-item { --os: 48px; }
  .orbit-label { display: none; }
  .hero-trust li { font-size: .8rem; padding: 7px 12px 7px 9px; }
}

@keyframes hs-float { 0%,100% { margin-top: 0; } 50% { margin-top: -14px; } }

/* ---------- Trust strip under the hero ---------- */
.stat-strip { background: linear-gradient(90deg, rgba(42,140,255,.35), rgba(139,92,255,.35)); border: 0; padding: 1px; }
.stat-strip > div { background: linear-gradient(180deg, #0a1122, #070b16); }
.stat-strip b { background: linear-gradient(90deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Category tiles with real product photos ---------- */
.cat-tile { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cat-pics {
  position: relative; height: 190px; overflow: hidden; perspective: 900px;
  background:
    radial-gradient(circle at 50% 120%, var(--cat-glow, rgba(42,140,255,.45)), transparent 65%),
    linear-gradient(180deg, rgba(16,26,48,.9), rgba(10,16,32,.9));
  border-bottom: 1px solid var(--line);
}
.cat-pic {
  position: absolute; bottom: -14px; width: 46%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 18px 36px rgba(0,0,0,.5); transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.cat-pic img { width: 100%; height: 100%; object-fit: contain; padding: 7%; }
.cat-pic-1 { left: 27%; z-index: 3; bottom: 4px; transform: translateZ(30px); }
.cat-pic-2 { left: 3%; z-index: 2; width: 38%; transform: rotate(-9deg); bottom: 10px; }
.cat-pic-3 { right: 3%; z-index: 1; width: 38%; transform: rotate(9deg); bottom: 10px; }
.cat-tile:hover .cat-pic-1 { transform: translateY(-10px) scale(1.04); }
.cat-tile:hover .cat-pic-2 { transform: rotate(-14deg) translate(-8px, -4px); }
.cat-tile:hover .cat-pic-3 { transform: rotate(14deg) translate(8px, -4px); }
.cat-info { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.cat-info .icon { margin: -46px 0 12px; position: relative; z-index: 4; background: #0c1730; box-shadow: 0 8px 20px rgba(0,0,0,.45); }
.cat-info p { margin-bottom: 14px; }
.cat-info .more { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cat-count { color: var(--muted); font-weight: 500; font-size: .82rem; }
#category-tiles > a:nth-child(1) { --cat-glow: rgba(42,140,255,.55); }
#category-tiles > a:nth-child(2) { --cat-glow: rgba(111,214,255,.45); }
#category-tiles > a:nth-child(3) { --cat-glow: rgba(139,92,255,.55); }
#category-tiles > a:nth-child(4) { --cat-glow: rgba(255,181,71,.40); }
#category-tiles > a:nth-child(5) { --cat-glow: rgba(60,232,176,.40); }
#category-tiles > a:nth-child(6) { --cat-glow: rgba(255,79,216,.42); }
@media (max-width: 600px) { .cat-pics { height: 160px; } }

/* ---------- Promo banners ---------- */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.promo {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10px;
  min-height: 300px; padding: 34px; border-radius: 22px; overflow: hidden; color: var(--text); isolation: isolate;
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 60px rgba(0,0,0,.4);
  transition: transform .3s ease, box-shadow .3s ease;
}
.promo:hover { color: var(--text); transform: translateY(-3px); box-shadow: 0 36px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(111,214,255,.3); }
.promo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 75% 50%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 75% 50%, #000 20%, transparent 70%);
}
.promo-gaming { background: radial-gradient(circle at 80% 40%, rgba(255,79,216,.45), transparent 55%), radial-gradient(circle at 10% 100%, rgba(139,92,255,.55), transparent 60%), linear-gradient(135deg, #1a0b36, #0b0a24 60%, #07091a); }
.promo-glow { background: radial-gradient(circle at 78% 40%, rgba(255,181,71,.42), transparent 55%), radial-gradient(circle at 0% 100%, rgba(42,140,255,.5), transparent 60%), linear-gradient(135deg, #0b1a33, #0a1226 60%, #070b16); }
.promo .eyebrow { margin-bottom: 12px; }
.promo-gaming .eyebrow { color: #ff9cf0; } .promo-gaming .eyebrow::before { background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.promo-glow .eyebrow { color: #ffd28a; } .promo-glow .eyebrow::before { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.promo h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; margin-bottom: 10px; }
.promo p { color: #c3cde6; font-size: .95rem; margin-bottom: 18px; }
.promo-copy { position: relative; z-index: 2; }
.promo-pics { position: relative; height: 240px; perspective: 900px; }
.promo-pic {
  position: absolute; width: 58%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,.55); animation: hs-float 8s ease-in-out infinite;
}
.promo-pic img { width: 100%; height: 100%; object-fit: cover; }
.promo-pic.is-white img { object-fit: contain; padding: 7%; }
.promo-pic-1 { left: 20%; top: 8%; z-index: 3; transform: rotate(-3deg); }
.promo-pic-2 { left: -4%; top: 34%; width: 44%; z-index: 2; transform: rotate(-12deg); animation-delay: -2.6s; }
.promo-pic-3 { right: -4%; top: 30%; width: 44%; z-index: 1; transform: rotate(11deg); animation-delay: -5.2s; }
@media (max-width: 960px) { .promo-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .promo { grid-template-columns: 1fr; padding: 26px 22px 0; min-height: 0; }
  .promo-pics { height: 210px; margin: 0 -6px; }
}

/* ---------- Product cards ---------- */
.product-card { border-radius: 18px; background: linear-gradient(180deg, #0d162b, #080d1a); }
.product-card .product-media { border-bottom: 0; overflow: hidden; }
.product-card .product-media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(8,13,26,.08));
}
.product-card .product-photo { padding: 5%; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .4s ease; }
.product-card .product-photo-alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) {
  .product-card.has-alt:hover .product-photo-alt { opacity: 1; }
  .product-card.has-alt:hover .product-photo:not(.product-photo-alt) { opacity: 0; }
  .product-card:hover .btn-ghost { background: linear-gradient(135deg, #3aa0ff, var(--blue) 45%, #5a5cff); border-color: transparent; color: #fff; box-shadow: 0 8px 24px rgba(42,140,255,.35); }
}
.product-card .product-media .pill { z-index: 2; }
.pill-new {
  color: #04101f; border: 0; font-weight: 700;
  background: linear-gradient(90deg, var(--cyan), #a6ecff); box-shadow: 0 4px 14px rgba(111,214,255,.45);
}
.product-card .product-body { padding: 16px 18px 18px; gap: 7px; }
.product-card .product-body h3 { font-size: .98rem; line-height: 1.35; }
.product-card .price { font-size: 1.22rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.product-card .btn { margin-top: auto; }
.product-card .card-perk { margin-bottom: 4px; }

/* Phones: two products per row, like the big shops */
@media (max-width: 600px) {
  #featured-grid, #product-grid, #related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { border-radius: 14px; }
  .product-card .product-body { padding: 11px 11px 12px; gap: 5px; }
  .product-card .product-body h3 { font-size: .84rem; }
  .product-card .product-body .cat { font-size: .64rem; letter-spacing: .06em; }
  .product-card .price { font-size: 1.02rem; }
  .product-card .card-swatches { flex-wrap: wrap; }
  .product-card .card-swatches .swatch { width: 10px; height: 10px; }
  .product-card .card-swatches small, .product-card .card-perk { font-size: .7rem; }
  .product-card .btn-sm { padding: 7px 8px; font-size: .78rem; }
  .product-card .pill { top: 8px; left: 8px; font-size: .62rem; padding: 3px 7px; }
}

/* ---------- New-arrivals rail ---------- */
.rail {
  display: grid; gap: 18px; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); grid-template-columns: none;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; margin: 0 -2px;
  scrollbar-width: thin; scrollbar-color: rgba(42,140,255,.5) transparent;
}
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: rgba(42,140,255,.5); border-radius: 6px; }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 4 * 18px) / 5); } }
@media (max-width: 600px) { .rail { grid-auto-columns: 72%; } }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(10,16,32,.6);
  color: var(--text); cursor: pointer; display: grid; place-items: center; font-size: 1.1rem;
}
.rail-nav button:hover { border-color: var(--cyan); color: #fff; }
@media (max-width: 600px) { .rail-nav { display: none; } }

/* ---------- Why shop with SHODIRA ---------- */
.perks { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.perk {
  position: relative; padding: 24px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(16,26,48,.8), rgba(8,13,26,.8)); border: 1px solid var(--line);
}
.perk::before {
  content: ""; position: absolute; width: 160px; height: 160px; right: -60px; top: -60px; border-radius: 50%;
  background: radial-gradient(circle, var(--perk, rgba(42,140,255,.35)), transparent 70%);
}
.perk .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; color: #fff;
  background: linear-gradient(135deg, var(--perk-a, #3aa0ff), var(--perk-b, #5a5cff)); box-shadow: 0 10px 26px rgba(42,140,255,.3);
}
.perk .icon svg { width: 26px; height: 26px; }
.perk h3 { font-size: 1.05rem; margin-bottom: 6px; }
.perk p { color: var(--muted); font-size: .92rem; margin: 0; }
.perk:nth-child(2) { --perk: rgba(60,232,176,.3); --perk-a: #20c997; --perk-b: #1a8fff; }
.perk:nth-child(3) { --perk: rgba(139,92,255,.35); --perk-a: #8b5cff; --perk-b: #ff4fd8; }
.perk:nth-child(4) { --perk: rgba(255,181,71,.3); --perk-a: #ffb547; --perk-b: #ff6a3d; }
@media (max-width: 960px) { .perks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .perks { grid-template-columns: 1fr; } }

/* ---------- Call-to-action band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 15% 0%, rgba(42,140,255,.45), transparent 50%), radial-gradient(circle at 90% 100%, rgba(139,92,255,.45), transparent 55%), linear-gradient(135deg, #0c1a36, #0a0f22);
  border: 1px solid rgba(111,214,255,.28); box-shadow: 0 30px 70px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%);
}

/* ---------- Shop banner: floating product photos around the 3D orbit ---------- */
.shop-hero { padding-bottom: 44px; }
.shop-hero .container { position: relative; z-index: 2; }
.shop-hero-art { position: absolute; right: 3%; top: 50%; width: 400px; height: 220px; margin-top: -104px; pointer-events: none; z-index: 1; }
.sha-pic {
  position: absolute; width: 104px; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 16px 34px rgba(0,0,0,.55), 0 0 0 1px rgba(111,214,255,.25); animation: hs-float 7s ease-in-out infinite;
}
.sha-pic img { width: 100%; height: 100%; object-fit: contain; padding: 7%; }
.sha-pic.is-scene img { object-fit: cover; padding: 0; }
.sha-1 { left: 0; top: 18%; transform: rotate(-8deg); }
.sha-2 { left: 26%; top: -4%; width: 92px; transform: rotate(4deg); animation-delay: -1.6s; }
.sha-3 { left: 52%; top: 30%; width: 120px; transform: rotate(-3deg); animation-delay: -3.2s; z-index: 2; }
.sha-4 { right: 0; top: 2%; width: 92px; transform: rotate(9deg); animation-delay: -4.8s; }
.sha-5 { left: 22%; bottom: 2%; width: 88px; transform: rotate(7deg); animation-delay: -6s; }
.shop-hero .fx-mini { right: calc(3% + 130px); opacity: .7; }
@media (max-width: 1100px) { .shop-hero-art { width: 320px; transform: scale(.85); transform-origin: right center; } }
@media (max-width: 900px) {
  .shop-hero-art { position: relative; right: auto; top: auto; width: auto; height: auto; margin: 0 0 18px; transform: none; display: flex; gap: 10px; padding: 0 20px; }
  .shop-hero { padding-top: 28px; }
  .sha-pic { position: relative; inset: auto !important; width: 58px !important; border-radius: 12px; transform: none !important; }
  .sha-pic:nth-child(even) { margin-top: 8px; }
}

/* Shop filters on phones: rounded chips */
@media (max-width: 860px) { .filter-list button { border-radius: 999px; padding: 8px 14px; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .promo-pic, .sha-pic { animation: none !important; }
  .cat-pic, .promo, .product-card .product-photo { transition: none !important; }
}
