/* =====================================================================
   Forma Fabrications: SITE-WIDE changes (all screen sizes)
   Loaded last on every page, after desktop.css. Written by the site-wide chat, Dec 1 2026.
   Phone-only rules use @media (max-width: 760px); desktop-only rules use @media (min-width: 761px).
   ===================================================================== */

/* ---------- 1. ON SALE strip (shop page): readable text in light mode ---------- */
/* Pale yellow on a white plate was hard to read. Dark amber text + arrow; the yellow/black hazard edge and border stay. */
html.theme-light .shop-head .sale-sticker .ss-main { color: #8A4F00 !important; }
html.theme-light .shop-head .sale-sticker .ss-sub { color: #4A5160 !important; }
html.theme-light .shop-head .sale-sticker .ss-arrow i { border-color: #8A4F00 !important; }
html.theme-light .shop-head .sale-sticker { border-color: #C99A00 !important; }

/* ---------- 2. Desktop: same red starburst SALE sticker as phones (replaces the swinging arrows) ---------- */
@media (min-width: 761px) {
  .sale-arrows.sa-card .sa { display: none !important; }
  .sale-arrows.sa-hero { display: none !important; }   /* hero: the model name already gets the ON SALE tag */
  .sale-arrows.sa-card {
    opacity: 1 !important; pointer-events: none; inset: auto !important; top: 12px !important; right: 12px !important; left: auto !important; bottom: auto !important;
    width: 132px; height: 132px; filter: drop-shadow(4px 5px 0 rgba(90,8,14,.95)) drop-shadow(0 6px 10px rgba(0,0,0,.5));
    animation: sfx-burst-pop 1.8s ease-in-out infinite; transform-origin: 50% 50%;
  }
  .card .sale-arrows.sa-card { width: 72px; height: 72px; top: 38px !important; right: 6px !important; }
  .sale-arrows.sa-card::before, .sale-arrows.sa-card::after {
    position: absolute; display: flex; align-items: center; justify-content: center; text-align: center; white-space: pre;
    clip-path: polygon(50.0% 0.0%, 57.1% 14.5%, 67.1% 3.0%, 70.5% 18.8%, 82.1% 11.7%, 81.4% 26.9%, 93.3% 25.0%, 88.5% 37.7%, 99.2% 41.3%, 91.0% 50.0%, 99.2% 58.7%, 88.5% 62.3%, 93.3% 75.0%, 81.4% 73.1%, 82.1% 88.3%, 70.5% 81.2%, 67.1% 97.0%, 57.1% 85.5%, 50.0% 100.0%, 42.9% 85.5%, 32.9% 97.0%, 29.5% 81.2%, 17.9% 88.3%, 18.6% 73.1%, 6.7% 75.0%, 11.5% 62.3%, 0.8% 58.7%, 9.0% 50.0%, 0.8% 41.3%, 11.5% 37.7%, 6.7% 25.0%, 18.6% 26.9%, 17.9% 11.7%, 29.5% 18.8%, 32.9% 3.0%, 42.9% 14.5%);
  }
  .sale-arrows.sa-card::before { content: ""; inset: 0; background: #FFFFFF; }
  .sale-arrows.sa-card::after {
    content: "SALE!\A 20% OFF"; inset: 3px; background: radial-gradient(circle at 40% 35%, #FF3B45, #D9121F 70%);
    font-family: var(--head-font); font-weight: 700; font-size: 20px; line-height: .95; letter-spacing: .01em; color: #fff;
    transform: rotate(-12deg); text-shadow: 0 2px 0 rgba(90,8,14,.6);
  }
  .card .sale-arrows.sa-card::after { content: "SALE!\A -20%"; font-size: 15px; }
  .shot .sale-arrows.sa-card[data-now]::after { content: "SALE!\A NOW\A " attr(data-now); font-size: 18px; line-height: 1; }
  /* the burst already says SALE on cards; the yellow ON SALE tag stays on the product page (same as phones) */
  .card .sale-flag { display: none !important; }
}

/* ---------- 3. Product pages: delivery, shipping and returns block under Add to cart (all widths) ---------- */
.buy .buy-info { display: flex; margin: -4px 0 0; }
.buy-info .bi-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.buy-info p { margin: 0; font-size: 13px; line-height: 1.55; }
.buy-info .bi-eta[hidden] { display: none; }
.buy-info .bi-eta b { white-space: nowrap; }
.buy-info .bi-ship, .buy-info .bi-ret { padding-top: 6px; border-top: 1px solid rgba(91,155,255,.18); }
.buy-info a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; font-weight: 600; }
html.theme-light .buy-info .bi-ship, html.theme-light .buy-info .bi-ret { border-top-color: #C3C9D3; }
@media (max-width: 760px) {
  .buy > .buy-info { order: 6; }   /* right under Add to cart (mobile.css puts the button at order 5) */
  .buy-info p { font-size: 13.5px; }
}

/* ---------- 4. Cart: returns line under the made-to-order notice ---------- */
.cart-foot .cart-returns { margin: 0; }

/* ---------- 5. Shop: "In the workshop" group below the orderable items ---------- */
.ws-group { margin-top: 44px; scroll-margin-top: 100px; }
.ws-group[hidden] { display: none; }
.ws-head { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px;
  padding: 16px 20px 16px 26px; border: 1.5px solid var(--steel-line); background:
    repeating-linear-gradient(-45deg, var(--cyber) 0 5px, #0B0B0C 5px 10px) left top / 8px 100% no-repeat, var(--panel); }
.ws-head h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0; font-size: clamp(22px, 2.6vw, 30px); color: var(--head); }
.ws-tag { display: inline-block; padding: 6px 12px 5px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--cyber);
  border: 1.5px solid var(--cyber); background: rgba(91,155,255,.08); }
.ws-head p { margin: 0; flex: 1 1 320px; max-width: 560px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.ws-head .shop-sec-n { margin-left: auto; }
.ws-group .shop-sec:first-of-type { padding-top: 22px; }
html.theme-light .ws-head { background: repeating-linear-gradient(-45deg, var(--cyber) 0 5px, #E2E5EA 5px 10px) left top / 8px 100% no-repeat, #fff; }
html.theme-light .ws-tag { background: rgba(11,108,180,.08); }
@media (max-width: 760px) {
  .ws-group { margin-top: 32px; }
  .ws-head { padding: 14px 14px 14px 22px; }
  .ws-head .shop-sec-n { display: none; }   /* a lone number reads as a stray digit on phones */
}

/* ---------- 6. Holiday notice (added by sitewide.js until Dec 26) ---------- */
.holiday-note { margin: 0; padding: 9px 12px 9px 14px; font-size: 13px; line-height: 1.5; color: var(--text);
  border: 1px solid rgba(255,210,63,.35); border-left: 3px solid var(--sale-yellow); background: rgba(255,210,63,.06); }
.holiday-note b { color: var(--head); }
html.theme-light .holiday-note { border-color: #D9B23A; border-left-color: #C99A00; background: #FFF8E1; }
@media (max-width: 760px) { .buy > .holiday-note { order: 6; } }
