/* =========================================================
   נפצים – "animated 3D clipart site" edition
   Bright white clipart-library layout, glossy buttons, 3D lettering.
   All artwork is original (drawn in code).
   ========================================================= */
:root {
  --blue: #1e4fa8;
  --blue-2: #3a7be0;
  --blue-dk: #12336f;
  --orange: #ff8a00;
  --orange-dk: #d96400;
  --yellow: #ffd200;
  --red: #e3262e;
  --green: #5bbf21;
  --ink: #1d2433;
  --muted: #5d6680;
  --line: #d7deec;
  --page: #eef3fb;
  --card: #ffffff;
}

html { scroll-behavior: smooth; }
body {
  position: relative;
  font-family: "Varela Round", "Rubik", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, #ffffff 0, transparent 40%),
    repeating-linear-gradient(45deg, rgba(30, 79, 168, .035) 0 12px, transparent 12px 24px),
    var(--page);
  overflow-x: hidden;
}
a { color: var(--blue); }
a:hover { color: var(--orange-dk); }
h1, h2, h3, .logo-3d { font-family: "Secular One", "Rubik", sans-serif; }

/* ---------- utility bar ---------- */
.util-bar { background: var(--blue-dk); color: #cfdcf7; font-size: 13px; }
.util-bar a { color: #fff; text-decoration: none; }
.util-bar a:hover { color: var(--yellow); }
.util-bar .sep { opacity: .4; margin: 0 6px; }

/* ---------- header ---------- */
.site-header {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  border-bottom: 1px solid var(--line);
}
.logo-wrap { display: flex; align-items: center; gap: 6px; text-decoration: none; }
.logo-clip { width: 92px; height: 92px; flex-shrink: 0; position: relative; }
.logo-3d {
  font-size: clamp(1.45rem, 4.2vw, 2.6rem);
  line-height: 1.05;
  color: var(--yellow);
  text-shadow:
    0 1px 0 #f0b800, 0 2px 0 #e6a800, 0 3px 0 #d99700, 0 4px 0 #cc8800, 0 5px 0 #bf7a00,
    0 6px 0 #b06c00, 0 7px 10px rgba(0, 0, 0, .35),
    -2px -2px 0 var(--red), 2px -2px 0 var(--red), -2px 2px 0 var(--red), 2px 2px 0 var(--red);
  display: inline-block;
  animation: logo-wobble 3.2s ease-in-out infinite;
}
.logo-3d small { display: block; font-size: .45em; color: var(--blue); text-shadow: 0 2px 0 #fff, 0 3px 4px rgba(0,0,0,.2); letter-spacing: .02em; }
@keyframes logo-wobble { 0%, 100% { transform: rotate(-1.5deg) scale(1); } 50% { transform: rotate(1.5deg) scale(1.03); } }
.promo { font-size: 14px; color: var(--muted); }
.promo b { color: var(--red); }

/* ---------- nav (glossy tabs) ---------- */
.main-nav { background: linear-gradient(180deg, var(--blue-2), var(--blue)); border-bottom: 3px solid var(--orange); box-shadow: 0 3px 8px rgba(18, 51, 111, .25); position: sticky; top: 0; z-index: 1030; }
.main-nav .nav-scroll { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 0; scrollbar-width: none; }
.main-nav .nav-scroll::-webkit-scrollbar { display: none; }
.tab-gloss {
  position: relative;
  flex-shrink: 0;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  padding: 8px 16px 9px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #6fa3ff 0%, #3a7be0 48%, #2a66c9 52%, #3b7fe6 100%);
  border: 1px solid #1a4596;
  border-bottom: 0;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
  overflow: hidden;
  white-space: nowrap;
}
.tab-gloss::before { content: ""; position: absolute; inset: 1px 4px 52% 4px; border-radius: 10px 10px 4px 4px; background: linear-gradient(rgba(255,255,255,.6), rgba(255,255,255,.05)); pointer-events: none; }
.tab-gloss:hover { color: #fff; filter: brightness(1.1); }
.tab-gloss.active { background: linear-gradient(180deg, #ffc35c 0%, #ff8a00 48%, #f07800 52%, #ff9a1f 100%); border-color: #b85a00; }

/* ---------- glossy buttons ---------- */
.btn-gloss {
  position: relative;
  display: inline-block;
  font-weight: bold;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid #a64b00;
  background: linear-gradient(180deg, #ffbe5c 0%, #ff8a00 50%, #ef7400 51%, #ff9c26 100%);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
  box-shadow: 0 4px 0 #b85a00, 0 8px 14px rgba(0, 0, 0, .2);
  overflow: hidden;
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn-gloss::before { content: ""; position: absolute; inset: 1px 10px 52% 10px; border-radius: 999px 999px 8px 8px; background: linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.05)); pointer-events: none; }
.btn-gloss:hover { color: #fff; transform: translateY(-1px); }
.btn-gloss:active { transform: translateY(3px); box-shadow: 0 1px 0 #b85a00, 0 3px 6px rgba(0,0,0,.2); }
.btn-gloss.blue { border-color: #12336f; background: linear-gradient(180deg, #7fb0ff 0%, #3a7be0 50%, #2a66c9 51%, #4a8af0 100%); box-shadow: 0 4px 0 #12336f, 0 8px 14px rgba(0,0,0,.2); }
.btn-gloss.green { border-color: #2c6b0b; background: linear-gradient(180deg, #a6ec6a 0%, #5bbf21 50%, #4aa514 51%, #6fd12f 100%); box-shadow: 0 4px 0 #2c6b0b, 0 8px 14px rgba(0,0,0,.2); }
.btn-gloss.sm { font-size: .9rem; padding: 6px 16px; }
.btn-gloss:disabled, .btn-gloss.disabled { filter: grayscale(1) opacity(.65); cursor: not-allowed; transform: none; }

/* ---------- featured banner ---------- */
.banner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 360px;
  background: radial-gradient(ellipse at 50% 120%, #3b2a8a 0%, #0f1a4a 55%, #070b26 100%);
  box-shadow: 0 10px 26px rgba(18, 51, 111, .3);
  border: 4px solid #fff;
  outline: 1px solid var(--line);
  cursor: crosshair;
}
.banner canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner .slides { position: relative; z-index: 2; min-height: 360px; display: grid; place-items: center; text-align: center; padding: 30px 70px; pointer-events: none; }
.banner .slide { grid-area: 1 / 1; opacity: 0; transform: scale(.94); transition: opacity .5s ease, transform .5s ease; visibility: hidden; }
.banner .slide.on { opacity: 1; transform: none; visibility: visible; }
.banner .slide a { pointer-events: auto; }
.banner h1, .banner h2 {
  font-size: clamp(1.9rem, 6vw, 3.6rem);
  color: #fff;
  line-height: 1.08;
  text-shadow: 0 2px 0 #c46a00, 0 4px 0 #8a4a00, 0 6px 14px rgba(0,0,0,.5);
}
.banner p { color: #e4ebff; font-size: clamp(1rem, 2.3vw, 1.2rem); }
.banner .arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid #fff; color: #fff; font-size: 20px; font-weight: bold; line-height: 1;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.08));
}
.banner .arrow.prev { right: 10px; }
.banner .arrow.next { left: 10px; }
.banner .dots { position: absolute; bottom: 12px; inset-inline: 0; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.banner .dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; }
.banner .dots button.on { background: var(--yellow); }
.banner .clip-left { position: absolute; left: 1%; bottom: 0; width: 190px; height: 230px; z-index: 3; }
.banner .clip-right { position: absolute; right: 1%; top: 6%; width: 150px; height: 150px; z-index: 3; }
@media (max-width: 767.98px) {
  .banner .slides { padding: 30px 46px 80px; }
  .banner .clip-left { width: 110px; height: 140px; }
  .banner .clip-right { width: 90px; height: 90px; }
}

/* ---------- boxes (sidebar + content) ---------- */
.box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 14px rgba(18, 51, 111, .08); margin-bottom: 22px; overflow: hidden; }
.box-hd {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  color: #fff;
  font: 1.15rem "Secular One", sans-serif;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  text-shadow: 0 1px 0 rgba(0,0,0,.3);
}
.box-hd.orange { background: linear-gradient(180deg, #ffad42, var(--orange-dk)); }
.box-hd.green { background: linear-gradient(180deg, #86d84a, #3d9a12); }
.box-hd.red { background: linear-gradient(180deg, #ff6a6f, #c4141c); }
.box-bd { padding: 14px; }
.section-title { font-size: clamp(1.5rem, 3.6vw, 2.1rem); color: var(--blue); margin-bottom: 4px; text-shadow: 0 2px 0 #fff, 0 3px 0 #c9d6f0; }
.section-sub { color: var(--muted); margin-bottom: 16px; }
.breadcrumb-ish { font-size: 13px; color: var(--muted); }

/* spinning 3D-ball bullets */
.ball-list { list-style: none; padding: 0; margin: 0; }
.ball-list li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.ball-list li:last-child { border-bottom: 0; }
.ball-list a { text-decoration: none; font-weight: bold; display: flex; align-items: center; gap: 8px; }
.ball {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 32% 28%, #fff 0 12%, var(--c, var(--orange)) 45%, #000 140%);
  box-shadow: 0 2px 3px rgba(0,0,0,.3);
  animation: ball-spin 1.6s linear infinite;
}
@keyframes ball-spin { 0% { transform: scaleX(1); } 25% { transform: scaleX(.25); } 50% { transform: scaleX(1); } 75% { transform: scaleX(.25); } }
.tag-cloud a { display: inline-block; margin: 2px 4px; text-decoration: none; }
.tag-cloud a:nth-child(3n) { font-size: 1.15em; color: var(--orange-dk); }
.tag-cloud a:nth-child(4n) { font-size: .9em; color: var(--green); }
.today-clip { width: 100%; height: 170px; position: relative; }

/* ---------- category tiles ---------- */
.tile {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 8px 12px;
  height: 100%;
  box-shadow: 0 3px 10px rgba(18, 51, 111, .07);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.tile:hover { border-color: var(--orange); box-shadow: 0 8px 20px rgba(255, 138, 0, .25); color: var(--ink); }
.tile .tile-art { height: 150px; border-radius: 10px; background: radial-gradient(circle at 50% 40%, #ffffff 0%, #e7efff 70%); position: relative; }
.tile .tile-name { font: 1.1rem "Secular One", sans-serif; margin-top: 8px; color: var(--blue); }
.tile .tile-sub { font-size: 13px; color: var(--muted); }

/* ---------- about ---------- */
.grandma-stage { background: radial-gradient(circle at 50% 60%, #fff6d6 0%, #ffe6a0 60%, #ffd76a 100%); border-radius: 14px; text-align: center; padding: 10px; }
.grandma-stage img { width: 100%; max-width: 280px; }
.speech { background: #fff; border: 3px solid var(--blue); border-radius: 18px; padding: 10px 14px; position: relative; font-weight: bold; margin-bottom: 16px; }
.speech::after { content: ""; position: absolute; bottom: -14px; inset-inline-start: 34px; border: 12px solid transparent; border-top-color: var(--blue); border-bottom: 0; }
.fact { background: var(--page); border-radius: 12px; padding: 10px; text-align: center; height: 100%; }
.fact .big { font: 1.9rem "Secular One", sans-serif; color: var(--orange-dk); line-height: 1.1; }
.fact .lbl { font-size: 13px; color: var(--muted); }

/* ---------- gallery ---------- */
.gal { display: block; border-radius: 12px; overflow: hidden; border: 3px solid #fff; outline: 1px solid var(--line); box-shadow: 0 4px 12px rgba(0,0,0,.12); position: relative; aspect-ratio: 4 / 3; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gal:hover img { transform: scale(1.06); }
.gal .cap { position: absolute; inset-inline: 0; bottom: 0; padding: 6px 10px; color: #fff; font-weight: bold; font-size: 14px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.modal-content.gal-modal { border-radius: 16px; border: 4px solid #fff; overflow: hidden; }

/* ---------- videos ---------- */
.vid { background: var(--page); border-radius: 12px; padding: 8px; height: 100%; }
.vid .ratio { border-radius: 8px; overflow: hidden; }
.vid iframe { border: 0; }
.vid h3 { font-size: 1.1rem; margin: 8px 2px 2px; color: var(--blue); }
.vid p { font-size: 14px; color: var(--muted); margin: 0 2px; }

/* ---------- reviews ---------- */
.review { background: var(--page); border-radius: 12px; padding: 12px 14px; height: 100%; }
.review .stars { color: var(--orange); letter-spacing: 2px; }
.review .who { color: var(--muted); font-size: 13px; }

/* ---------- shop ---------- */
.out-banner { background: repeating-linear-gradient(-45deg, var(--yellow) 0 16px, #222 16px 32px); padding: 5px; border-radius: 14px; }
.out-banner > div { background: #fffbe6; border-radius: 10px; padding: 10px 14px; font-weight: bold; }
.filter-btn { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 5px 14px; font-weight: bold; font-size: 14px; }
.filter-btn.active, .filter-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.fake-filters label { display: block; font-size: 14px; padding: 2px 0; }
.results-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; background: var(--page); border-radius: 10px; padding: 8px 12px; font-size: 14px; }

.product {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(18, 51, 111, .08);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.product:hover { border-color: var(--orange); box-shadow: 0 10px 24px rgba(255, 138, 0, .22); }
.product .p-row { display: flex; flex-direction: column; flex: 1; }
.product .art { aspect-ratio: 1 / 1; position: relative; background: radial-gradient(circle at 50% 45%, var(--p1, #e7efff) 0%, #f4f7ff 70%); }
.product .art .clip3d { position: absolute; inset: 6%; width: auto; height: auto; }
.product .stamp {
  position: absolute; top: 58%; left: 50%; z-index: 25;
  transform: translate(-50%, -50%) rotate(-12deg);
  border: 4px solid var(--red); color: var(--red); background: rgba(255,255,255,.9);
  font: 1.35rem "Secular One", sans-serif; padding: 0 14px; border-radius: 8px; white-space: nowrap;
  pointer-events: none;
}
.product .badge-top { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 25; pointer-events: none; }
.burst {
  display: inline-grid; place-items: center; width: 70px; height: 70px;
  background: var(--yellow); color: var(--red); font: 13px/1 "Secular One", sans-serif; text-align: center;
  clip-path: polygon(50% 0%, 61% 15%, 79% 9%, 79% 27%, 97% 32%, 87% 48%, 97% 65%, 79% 70%, 79% 89%, 61% 84%, 50% 100%, 39% 84%, 21% 89%, 21% 70%, 3% 65%, 13% 48%, 3% 32%, 21% 27%, 21% 9%, 39% 15%);
  animation: burst-pulse 1.3s ease-in-out infinite;
}
@keyframes burst-pulse { 0%, 100% { transform: rotate(-12deg) scale(1); } 50% { transform: rotate(-12deg) scale(1.1); } }
.product .body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.product .name { font-size: 1.3rem; margin-bottom: 2px; color: var(--blue); }
.product .desc { color: var(--muted); font-size: 14px; flex: 1; }
.product .price { font: 1.35rem "Secular One", sans-serif; color: var(--red); }
.product .price s { color: #999; font: .9rem "Varela Round", sans-serif; margin-inline-start: 4px; }
.product .stock { font-size: 13px; font-weight: bold; color: var(--red); }
.product .btn-notify { background: none; border: 0; color: var(--blue); text-decoration: underline; font-size: 13px; padding: 0; margin-top: 8px; }

/* special designs (set "design" in products.js) */
.product.design-gold { border: 3px solid #e0a800; background: linear-gradient(180deg, #fffbe8, #fff); }
.product.design-gold .name { color: #a87a00; }
.product.design-neon { border: 3px solid #00b3ff; background: #0d1536; }
.product.design-neon .art { background: radial-gradient(circle at 50% 45%, #1f4f9a 0%, #0d1536 70%); }
.product.design-neon .name { color: #3ee8ff; text-shadow: 0 0 8px #00c8ff; }
.product.design-neon .desc { color: #bfe9ff; }
.product.design-neon .price { color: #7dff6b; }
.product.design-neon .btn-notify { color: #7fd7ff; }
.product.design-retro { border: 3px double #8a5a2b; background: #f6e8cc; }
.product.design-retro .art { background: repeating-linear-gradient(45deg, #ecd6a8 0 10px, #f6e8cc 10px 20px); }
.product.design-retro .name { color: #7a3f12; }
.product.design-fire { border: 3px solid var(--orange); background: linear-gradient(180deg, #fff1e0, #fff); }
.product.design-fire .name { color: var(--orange-dk); }
.product.design-featured { border: 3px solid #ff4d9d; }
@media (min-width: 992px) {
  .product.design-featured .p-row { flex-direction: row; }
  .product.design-featured .art { width: 48%; aspect-ratio: auto; }
}

/* ---------- popup bubble (grandma says) ---------- */
.grandma-pop {
  position: fixed; bottom: 16px; inset-inline-end: 16px; z-index: 1060;
  display: none; align-items: flex-end; gap: 6px; max-width: min(360px, calc(100vw - 32px));
}
.grandma-pop.show { display: flex; animation: pop-in .35s cubic-bezier(.2, 1.6, .5, 1); }
.grandma-pop img { width: 74px; height: 92px; flex-shrink: 0; }
.grandma-pop .bubble { background: #fff; border: 3px solid var(--blue); border-radius: 16px; padding: 10px 12px; font-weight: bold; box-shadow: 0 6px 18px rgba(0,0,0,.2); position: relative; margin-bottom: 30px; }
.grandma-pop .bubble .x { position: absolute; top: -10px; inset-inline-end: -10px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: var(--red); color: #fff; font-size: 12px; line-height: 1; padding: 0; }
@keyframes pop-in { from { transform: translateY(40px) scale(.7); opacity: 0; } }

/* ---------- footer ---------- */
.site-footer { background: var(--blue-dk); color: #cfdcf7; padding: 28px 0 18px; margin-top: 30px; font-size: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer h3 { font-size: 1.05rem; color: var(--yellow); }
.site-footer .fine { color: #93a6cf; font-size: 12px; }

/* ---------- 3D clipart (three.js, one shared canvas) ---------- */
.clip3d { position: absolute; cursor: pointer; touch-action: manipulation; transition: transform .15s ease; }
.clip3d.boomed { transform: scale(1.12); }
.clip-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 20; }
.dyn-scatter-layer { position: absolute; inset: 0; pointer-events: none; z-index: 19; overflow: hidden; }
.dyn-scatter-layer .clip3d { pointer-events: auto; }
.clip3d.dyn-scatter { width: var(--s); height: var(--s); }
.tile-art .clip3d, .today-clip .clip3d, .logo-clip .clip3d { inset: 0; }
@media (max-width: 767.98px) {
  .clip3d.dyn-scatter { width: calc(var(--s) * .55); height: calc(var(--s) * .55); }
  .logo-clip { width: 64px; height: 64px; }
}

/* ---------- misc ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo-3d, .ball, .burst { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   LOW-POLY PASS – faceted backgrounds, cut corners, no gloss
   ========================================================= */
:root { --facets: url("../img/lp-facets.svg"); --cut: 10px; }
body { background: #e9f0fc url("../img/lp-page.svg") center / cover fixed no-repeat; }

/* faceted textures on colored bars */
.util-bar { background: var(--facets) 0 0 / 240px 60px, var(--blue-dk); }
.main-nav { background: var(--facets) 0 0 / 240px 120px, linear-gradient(180deg, var(--blue-2), var(--blue)); }
.box-hd { background: var(--facets) 0 0 / 240px 90px, linear-gradient(180deg, var(--blue-2), var(--blue)); }
.box-hd.orange { background: var(--facets) 0 0 / 240px 90px, linear-gradient(180deg, #ffad42, var(--orange-dk)); }
.box-hd.green { background: var(--facets) 0 0 / 240px 90px, linear-gradient(180deg, #86d84a, #3d9a12); }
.box-hd.red { background: var(--facets) 0 0 / 240px 90px, linear-gradient(180deg, #ff6a6f, #c4141c); }
.site-footer { background: var(--facets) 0 0 / 360px 180px, var(--blue-dk); }

/* angular boxes and tiles */
.box, .tile, .product, .fact, .review, .vid, .results-bar, .gal, .grandma-stage, .out-banner, .out-banner > div { border-radius: 3px; }
/* note: no clip-path on .box – it would trap the out-of-stock stamps under the 3D layer */
.box { border-top: 4px solid var(--blue-2); }

/* buttons & tabs: flat facets, cut corners, no glossy highlight */
.btn-gloss::before, .tab-gloss::before { display: none; }
.btn-gloss {
  border-radius: 0;
  border: 0;
  border-bottom: 4px solid #b85a00;
  box-shadow: none;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  background: var(--facets) 0 0 / 160px 80px, linear-gradient(135deg, #ffb347 0 50%, #ff8a00 50% 100%);
}
.btn-gloss:active { transform: translateY(2px); border-bottom-width: 2px; box-shadow: none; }
.btn-gloss.blue { border-bottom-color: #12336f; box-shadow: none; background: var(--facets) 0 0 / 160px 80px, linear-gradient(135deg, #5f97ef 0 50%, #2a66c9 50% 100%); }
.btn-gloss.green { border-bottom-color: #2c6b0b; box-shadow: none; background: var(--facets) 0 0 / 160px 80px, linear-gradient(135deg, #7fd640 0 50%, #4aa514 50% 100%); }
.tab-gloss {
  border-radius: 0;
  border: 0;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
  padding-inline: 22px;
  background: var(--facets) 0 0 / 160px 80px, linear-gradient(135deg, #5f97ef 0 50%, #3a7be0 50% 100%);
}
.tab-gloss.active { background: var(--facets) 0 0 / 160px 80px, linear-gradient(135deg, #ffb347 0 50%, #ff8a00 50% 100%); }
.filter-btn { border-radius: 0; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); padding-inline: 18px; }
.form-control.rounded-pill { border-radius: 0 !important; clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px); }
.banner .arrow { border-radius: 0; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); border: 0; background: rgba(255,255,255,.28); }
.banner .dots button { border-radius: 0; transform: rotate(45deg); }

/* gem bullets instead of shiny balls */
.ball {
  border-radius: 0;
  width: 13px; height: 13px;
  transform: rotate(45deg);
  background: conic-gradient(from 45deg, #fff 0 25%, var(--c, var(--orange)) 25% 50%, color-mix(in srgb, var(--c, var(--orange)) 70%, #000) 50% 75%, color-mix(in srgb, var(--c, var(--orange)) 85%, #fff) 75%);
  box-shadow: none;
  animation: gem-spin 2.4s linear infinite;
}
@keyframes gem-spin { 0% { transform: rotate(45deg) scale(1); } 50% { transform: rotate(225deg) scale(.8); } 100% { transform: rotate(405deg) scale(1); } }

/* faceted art backgrounds */
.banner { border-radius: 4px; background: #0b1240 url("../img/lp-night.svg") center / cover no-repeat; }
.tile .tile-art { border-radius: 2px; background: url("../img/lp-card.svg") center / cover; }
.product .art { background: linear-gradient(var(--p1, transparent), var(--p1, transparent)), url("../img/lp-card.svg") center / cover; }
.product.design-neon .art { background: linear-gradient(rgba(13, 21, 54, .65), rgba(13, 21, 54, .65)), url("../img/lp-night.svg") center / cover; }
.product.design-retro .art { background: linear-gradient(rgba(214, 170, 100, .45), rgba(214, 170, 100, .45)), url("../img/lp-card.svg") center / cover; }
.grandma-stage { background: linear-gradient(rgba(255, 210, 90, .55), rgba(255, 210, 90, .55)), url("../img/lp-card.svg") center / cover; }
.today-clip { background: url("../img/lp-card.svg") center / cover; }
.speech { border-radius: 2px; clip-path: none; }
.product .stamp { border-radius: 0; }
@media (prefers-reduced-motion: reduce) { .ball { animation: none; } }

/* stamp sits at the bottom of the picture so the 3D designs stay visible */
.product .stamp { top: auto; bottom: 8px; transform: translateX(-50%) rotate(-6deg); font-size: 1.1rem; }

/* main (headline) shop items */
.product.is-main { border-width: 3px; box-shadow: 0 10px 26px rgba(255, 138, 0, .25); }
.product.is-main .name { font-size: 1.6rem; }
.product.is-main .art { aspect-ratio: 4 / 5; }
.main-ribbon {
  position: absolute; top: 12px; inset-inline-end: -4px; z-index: 25; pointer-events: none;
  background: var(--facets) 0 0 / 120px 60px, linear-gradient(135deg, #2a66c9 0 50%, #1e4fa8 50% 100%);
  color: #fff; font-weight: bold; font-size: 13px; padding: 4px 12px 4px 16px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
}

/* "it's all a joke" note in the footer */
.site-footer .fine { font-size: 13px; color: #cfdcf7; }
.site-footer .joke-note { color: var(--yellow); font-size: 15px; }

/* ---------- phone fixes & polish ---------- */
/* the 3D canvas is sized in px by clipart.js every frame (never by vw/vh) */
.clip-canvas { inset: auto; top: 0; left: 0; width: auto; height: auto; }
@media (max-width: 767.98px) {
  /* scattered dynamite peeks in from the screen edges instead of covering text */
  .clip3d.dyn-scatter.edge-left { translate: -38% 0; }
  .clip3d.dyn-scatter.edge-right { translate: 38% 0; }
  /* banner: characters stay in the corners, text gets the middle */
  .banner { min-height: 330px; }
  .banner .slides { min-height: 330px; padding: 22px 40px 96px; }
  .banner .clip-left { width: 96px; height: 120px; left: 0; }
  .banner .clip-right { width: 72px; height: 72px; right: 4px; top: 4px; }
  .banner .arrow { top: auto; bottom: 10px; transform: none; width: 34px; height: 34px; }
  .banner .dots { bottom: 20px; }
  /* cards: square pictures, comfy tap targets */
  .product.is-main .art { aspect-ratio: 1 / 1; }
  .product .btn-notify { padding: 8px 0; }
  .tile .tile-art { height: 120px; }
  .logo-3d { font-size: 1.35rem; }
  .site-header .container { justify-content: center !important; }
}

/* each 3D clip draws into its own canvas inside the element (scrolls with the page) */
.clip-pic { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
