/*
Theme Name: TopEdge
Theme URI: https://topedge.pagestrategist.com/
Author: Page Strategist
Author URI: https://pagestrategist.com
Description: Pixel-matched responsive WooCommerce storefront for TopEdge.
Version: 1.0.0
Requires at least: 6.8
Requires PHP: 8.0
Text Domain: topedge
*/

/* -------------------------------------------------------------------------
 * Palette. White pages, black type, one orange.
 *
 * assets/tailwind.min.css is a frozen purged build, so any utility the light
 * theme needs but the dark one never used has to be declared here. The names
 * below match what Tailwind would generate, so a future rebuild supersedes
 * them rather than colliding.
 * ---------------------------------------------------------------------- */
:root {
  --t-page: #ffffff;
  --t-panel: #fafafa;
  --t-recess: #f4f4f6;
  --t-ink: #101014;
  --t-body: #3f3f46;
  --t-muted: #71717a;
  --t-faint: #a1a1aa;
  --t-line: #e6e6ea;
  --t-line-strong: #d4d4d8;
  --t-brand: #f55717;
  --t-brand-deep: #d8410b;
  --t-brand-soft: #fff1ea;
}

html { background: #ffffff; }
body { margin: 0; }
.topedge-reference { min-height: 100vh; }
.topedge-mobile-reference { display: none; }

@media (max-width: 767px) {
  .topedge-desktop-reference { display: none !important; }
  .topedge-mobile-reference { display: block; }
  .topedge-mobile-reference [data-purpose="360-product-viewport"] { height: 360px; }
  .topedge-mobile-reference [data-purpose="360-product-viewport"] .w-64.h-64 {
    width: 150px;
    height: 280px;
    margin-bottom: -24px;
  }
  .topedge-mobile-reference [data-purpose="360-product-viewport"] .w-64.h-64 img {
    transform: none;
  }
}

.topedge-toast {
  position: fixed;
  left: auto;
  right: 20px;
  bottom: 88px;
  z-index: 9999;
  padding: 12px 18px;
  border: 1px solid var(--t-line);
  border-radius: 8px;
  background: var(--t-ink);
  color: #fff;
  font: 600 12px/1.4 Inter, sans-serif;
  box-shadow: 0 12px 36px rgba(16, 16, 20, .24);
  opacity: 0;
  transform: translateY(8px);
  transition: .2s ease;
  pointer-events: none;
}
.topedge-toast.is-visible { opacity: 1; transform: none; }
@media (max-width: 640px) { .topedge-toast { right: 14px; bottom: 70px; max-width: calc(100vw - 28px); } }

/* Utilities absent from the frozen build ------------------------------- */
.bg-zinc-50 { background-color: #fafafa; }
.bg-zinc-100 { background-color: #f4f4f5; }
.bg-zinc-300 { background-color: #d4d4d8; }
.border-zinc-100 { border-color: #f4f4f5; }
.border-zinc-200 { border-color: #e4e4e7; }
.border-zinc-300 { border-color: #d4d4d8; }
.text-zinc-600 { color: #52525b; }
.text-zinc-700 { color: #3f3f46; }
.text-zinc-800 { color: #27272a; }
.text-zinc-900 { color: #18181b; }
.ring-zinc-200 { --tw-ring-color: #e4e4e7; }
.ring-zinc-300 { --tw-ring-color: #d4d4d8; }
.hover\:bg-zinc-100:hover { background-color: #f4f4f5; }
.hover\:bg-zinc-200:hover { background-color: #e4e4e7; }
.hover\:bg-black:hover { background-color: #000; }
.hover\:text-black:hover { color: #000; }
.hover\:border-zinc-300:hover { border-color: #d4d4d8; }
.hover\:ring-zinc-300:hover { --tw-ring-color: #d4d4d8; }
.placeholder\:text-zinc-500::placeholder { color: #71717a; }
.fill-ink { fill: #101014; }
.bg-ink { background-color: #101014; }
.text-ink { color: #101014; }
.border-ink { border-color: #101014; }
.hover\:bg-ink:hover { background-color: #101014; }
.hover\:text-ink:hover { color: #101014; }
.shadow-card { box-shadow: 0 1px 2px rgba(16, 16, 20, .06); }
.shadow-panel { box-shadow: 0 20px 44px rgba(16, 16, 20, .14); }

/* One full-bleed page shell: the store spans the viewport and only the
   gutter grows with it, so nothing is pinned to a fixed content width. */
.topedge-shell { width: 100%; padding-inline: clamp(16px, 2vw, 48px); box-sizing: border-box; }

::selection { background: #f55717; color: #fff; }
html { scrollbar-color: #d4d4d8 #f4f4f6; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #f4f4f6; }
::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1aa; }

/* Brand orange --------------------------------------------------------- */
.bg-brand { background-color: var(--t-brand); }
.bg-brand-deep { background-color: var(--t-brand-deep); }
.bg-brand-soft { background-color: var(--t-brand-soft); }
.text-brand { color: var(--t-brand); }
.text-brand-deep { color: var(--t-brand-deep); }
.border-brand { border-color: var(--t-brand); }
.fill-brand { fill: var(--t-brand); }
.ring-brand { --tw-ring-color: var(--t-brand); }
.hover\:bg-brand-deep:hover { background-color: var(--t-brand-deep); }
.hover\:bg-brand:hover { background-color: var(--t-brand); }
.hover\:text-brand:hover { color: var(--t-brand); }
.hover\:border-brand:hover { border-color: var(--t-brand); }

/* Slider chrome --------------------------------------------------------
 * One pattern for every product rail: chevrons floated over the edges of the
 * track, dot pagination underneath. The shell is hidden until slider-ui.js
 * finds a rail that actually overflows. */
.topedge-slider { position: relative; }
.topedge-slider__view { position: relative; }
.topedge-snav {
  position: absolute;
  top: 50%;
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--t-line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  color: var(--t-ink);
  box-shadow: 0 10px 26px rgba(16, 16, 20, .16);
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 4;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}
.topedge-snav svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topedge-snav--prev { left: var(--snav-prev, clamp(-14px, -1vw, -6px)); }
.topedge-snav--next { right: var(--snav-next, clamp(-14px, -1vw, -6px)); }
.topedge-snav:hover:not(:disabled) { background: var(--t-ink); border-color: var(--t-ink); color: #fff; }
.topedge-snav:focus-visible { outline: 2px solid var(--t-brand); outline-offset: 3px; }
.topedge-snav:disabled { opacity: .45; cursor: default; }
.topedge-slider.is-scrollable .topedge-snav { display: grid; }
.topedge-sdots { display: none; align-items: center; justify-content: center; gap: 9px; margin-top: 20px; }
.topedge-slider.is-scrollable .topedge-sdots { display: flex; }
.topedge-sdot { display: grid; place-items: center; width: 16px; height: 16px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.topedge-sdot span { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--t-line-strong); transition: background-color .22s ease, transform .22s ease; }
.topedge-sdot:hover span { background: var(--t-faint); }
.topedge-sdot.is-on span { background: var(--t-brand); transform: scale( 1.5 ); }
.topedge-sdot:focus-visible { outline: 2px solid var(--t-brand); outline-offset: 1px; border-radius: 50%; }
@media (max-width: 767px) {
  .topedge-snav { width: 38px; height: 38px; }
  .topedge-snav svg { width: 15px; height: 15px; }
  .topedge-snav--prev { left: var(--snav-prev-m, -7px); }
  .topedge-snav--next { right: var(--snav-next-m, -7px); }
  .topedge-sdots { margin-top: 16px; gap: 6px; }
}

/* Semantic surfaces used by the re-themed chrome ----------------------- */
.t-page { background-color: var(--t-page); }
.t-panel { background-color: var(--t-panel); }
.t-recess { background-color: var(--t-recess); }
.t-ink { color: var(--t-ink); }
.t-body-text { color: var(--t-body); }
.t-muted { color: var(--t-muted); }
.t-faint { color: var(--t-faint); }
.t-line { border-color: var(--t-line); }
.t-on-brand { color: #fff; }
.t-black { background-color: var(--t-ink); }
