/* ==========================================================================
   Sales Via Links — Storefront Design System
   Palette and typography are derived from the LiNKS logo (link blue + gold).
   ========================================================================== */

:root {
  /* Core palette */
  --ink: #0b1b2e;
  --ink-2: #12304f;
  --text-main: #16233a;
  --text-muted: #5b6b84;
  --text-subtle: #8b9ab0;
  --text-desc: #33445e;

  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #eef3fa;
  --surface-raised: #f1f5fb;
  --border: #e2e9f3;
  --border-strong: #cdd8e8;
  --border-focus: #1d6fe0;

  --blue: #1d6fe0;
  --blue-deep: #0d3f8f;
  --blue-soft: #e8f1ff;
  --gold: #ffb800;
  --gold-deep: #e29a00;
  --gold-soft: #fff4d6;
  --green: #16a34a;

  --primary: var(--ink);
  --primary-hover: #16314f;
  --primary-contrast: #ffffff;
  --cta-text: #14213a;
  --amazon-cta: #ffbe1a;
  --amazon-cta-hover: #f5a300;
  --amazon-cta-bg: var(--gold-soft);
  --amazon-cta-border: #ffe19a;
  --disclosure-text: #8a5a00;

  --badge-bg: #eef3fa;
  --badge-text: #33445e;
  --accent-badge-bg: var(--blue-soft);
  --accent-badge-text: var(--blue-deep);

  --ring: rgba(29, 111, 224, 0.35);
  --card-border-hover: #bcd2f2;

  --modal-backdrop-bg: rgba(8, 20, 36, 0.6);
  --modal-close-bg: rgba(255, 255, 255, 0.92);
  --modal-close-bg-hover: #ffffff;

  --shadow-xs: 0 1px 2px rgba(11, 27, 46, 0.06);
  --shadow-sm: 0 2px 8px -2px rgba(11, 27, 46, 0.1);
  --shadow-md: 0 14px 30px -16px rgba(11, 27, 46, 0.28);
  --shadow-lg: 0 30px 60px -30px rgba(11, 27, 46, 0.38);
  --shadow-xl: 0 40px 90px -40px rgba(11, 27, 46, 0.5);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h: 74px;
  color-scheme: light;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 88% -8%, rgba(255, 184, 0, 0.12), transparent 60%),
    radial-gradient(900px 600px at -5% 0%, rgba(29, 111, 224, 0.12), transparent 55%);
  background-repeat: no-repeat;
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--ink);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--gold);
}

/* Container */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Top disclosure bar
   -------------------------------------------------------------------------- */
.disclosure-bar {
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #f2d79a;
  padding: 9px 0;
  font-size: 12.5px;
  position: relative;
  z-index: 45;
}

.disclosure-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  flex-wrap: wrap;
}

.disclosure-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--gold);
}

.disclosure-bar-link {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  height: 46px;
  width: auto;
  transition: transform 0.2s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.03);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: color 0.15s, background-color 0.15s;
}

.main-nav-link:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}

/* Search */
.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-subtle);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 11px 62px 11px 44px;
  font-size: 14px;
  font-family: inherit;
  background-color: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--text-main);
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.search-input::placeholder {
  color: var(--text-subtle);
}

.search-input:focus {
  outline: none;
  background-color: var(--surface);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--ring);
}

.search-clear {
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  border-radius: var(--radius-full);
  padding: 0;
}

.search-clear:hover {
  color: var(--ink);
  background: var(--border);
}

.search-kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-subtle);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 2px 7px;
  pointer-events: none;
}

.search-input:focus + .search-clear + .search-kbd,
.search-wrapper:focus-within .search-kbd {
  opacity: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface-2);
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: var(--border);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 18px;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.mobile-nav-link {
  padding: 13px 6px;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.hero-blob--blue {
  width: 520px;
  height: 520px;
  background: rgba(29, 111, 224, 0.24);
  top: -180px;
  left: -140px;
}

.hero-blob--gold {
  width: 460px;
  height: 460px;
  background: rgba(255, 184, 0, 0.28);
  top: -120px;
  right: -120px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(11, 27, 46, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 56px;
}

.hero-card,
.hero-copy {
  animation: riseIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-visual {
  animation: riseIn 0.7s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 7px 15px 7px 11px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-deep);
  background: var(--blue-soft);
  border: 1px solid #cfe1fb;
  border-radius: var(--radius-full);
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.28);
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(2.15rem, 4.4vw, 3.55rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.hero-title-accent {
  background: linear-gradient(120deg, var(--blue) 0%, var(--gold-deep) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 30px;
  max-width: 34rem;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 16px 30px -14px rgba(29, 111, 224, 0.85);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-hero-primary svg {
  transition: transform 0.18s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -16px rgba(29, 111, 224, 0.95);
}

.btn-hero-primary:hover svg {
  transform: translateX(4px);
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.btn-hero-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.hero-stats span {
  margin-top: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Hero banner showcase */
.hero-visual {
  position: relative;
}

.hero-banner-frame {
  position: relative;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  transform: perspective(1600px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.hero-banner-frame:hover {
  transform: perspective(1600px) rotateY(0deg) rotateX(0deg);
}

.hero-banner-chrome {
  display: flex;
  gap: 6px;
  padding: 0 4px 10px;
}

.hero-banner-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.hero-banner-chrome span:first-child {
  background: #ff6b6b;
}

.hero-banner-chrome span:nth-child(2) {
  background: var(--gold);
}

.hero-banner-chrome span:nth-child(3) {
  background: #3ddc84;
}

.hero-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 16px 10px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: floaty 5.5s ease-in-out infinite;
}

.hero-float--pick {
  left: -18px;
  bottom: 34px;
}

.hero-float img {
  width: 56px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface-2);
}

.hero-float figcaption {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.hero-float strong {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.hero-float span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.section-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
}

.section-head-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.result-status {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Catalog
   -------------------------------------------------------------------------- */
.catalog {
  padding: 60px 0 20px;
}

.catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.catalog-sub {
  margin: 14px 0 0;
  max-width: 42rem;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

.catalog-head-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.catalog-head-badge-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, var(--blue) 0%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.catalog-head-badge-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--text-muted);
}

.nav-section {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  margin: 0 -8px 18px;
  padding: 12px 8px 10px;
  background: linear-gradient(180deg, rgba(245, 248, 252, 0.97) 68%, rgba(245, 248, 252, 0));
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
}

.category-tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 8px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  box-shadow: var(--shadow-xs);
  transition: transform 0.16s ease, color 0.16s ease, border-color 0.16s ease,
    box-shadow 0.16s ease, background-color 0.16s ease;
}

.tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted);
  transition: background-color 0.16s ease, color 0.16s ease;
  flex-shrink: 0;
}

.tab-icon-svg {
  width: 15px;
  height: 15px;
}

.tab-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover .tab-icon {
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.tab-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
}

.tab-btn[aria-selected="true"] {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  border-color: var(--ink);
  color: #ffffff;
  box-shadow: 0 12px 24px -14px rgba(11, 27, 46, 0.9);
}

.tab-btn[aria-selected="true"] .tab-icon {
  background: rgba(255, 255, 255, 0.16);
  color: var(--gold);
}

.tab-count {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background-color: var(--surface-2);
  color: var(--text-muted);
  font-weight: 700;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.tab-btn[aria-selected="true"] .tab-count {
  background-color: var(--gold);
  color: #3a2900;
}

/* Active filter pill */
.active-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 8px 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-xs);
}

.reset-filter-btn {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: var(--blue);
  border-radius: var(--radius-full);
  padding: 4px 11px;
}

.reset-filter-btn:hover {
  background: var(--blue-deep);
}

/* Catalog toolbar: status + sort + layout */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.catalog-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.result-status {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.select-icon {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: var(--text-subtle);
  pointer-events: none;
}

.select-input {
  appearance: none;
  -webkit-appearance: none;
  padding: 9px 36px 9px 34px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.select-input:hover {
  border-color: var(--border-strong);
}

.select-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--ring);
}

.select-chevron {
  position: absolute;
  right: 11px;
  width: 15px;
  height: 15px;
  color: var(--text-subtle);
  pointer-events: none;
}

.view-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  border-radius: var(--radius-full);
  color: var(--text-subtle);
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.view-btn svg {
  width: 16px;
  height: 16px;
}

.view-btn:hover {
  color: var(--ink);
}

.view-btn.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.view-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

/* Per-category accents shared by cards and the detail modal */
.product-card,
.product-modal {
  --cat: var(--blue);
  --cat-soft: var(--blue-soft);
}

.product-card[data-category="Electronics"],
.product-modal[data-category="Electronics"] {
  --cat: #2f6fed;
  --cat-soft: #e8f0ff;
}

.product-card[data-category="Gaming"],
.product-modal[data-category="Gaming"] {
  --cat: #7c3aed;
  --cat-soft: #f1ebff;
}

.product-card[data-category="Office"],
.product-modal[data-category="Office"] {
  --cat: #0e8a7d;
  --cat-soft: #ddf3ef;
}

.product-card[data-category="Utilities"],
.product-modal[data-category="Utilities"] {
  --cat: #d97706;
  --cat-soft: #fdf1dd;
}

.product-card[data-category="Pets"],
.product-modal[data-category="Pets"] {
  --cat: #16a34a;
  --cat-soft: #e4f6ea;
}

.product-card[data-category="Clothing"],
.product-modal[data-category="Clothing"] {
  --cat: #db2777;
  --cat-soft: #fce7f1;
}

.product-card[data-category="Books"],
.product-modal[data-category="Books"] {
  --cat: #4f46e5;
  --cat-soft: #eae9ff;
}

/* --------------------------------------------------------------------------
   Product grid & cards
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.32s ease,
    border-color 0.32s ease;
  animation: cardIn 0.5s both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

/* Category accent rule that draws in on hover */
.product-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 3;
  background: linear-gradient(90deg, var(--cat), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-7px);
  border-color: var(--cat);
  box-shadow: 0 26px 50px -26px rgba(11, 27, 46, 0.42), 0 0 0 1px var(--cat-soft);
}

.product-card:hover::after {
  transform: scaleX(1);
}

.product-card:focus-visible {
  outline: none;
  border-color: var(--cat);
  box-shadow: 0 0 0 4px var(--ring);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: radial-gradient(120% 100% at 50% 0%, var(--cat-soft) 0%, var(--surface-2) 72%);
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-card:hover .card-image {
  transform: scale(1.07);
}

.card-media-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(11, 27, 46, 0.16) 0%,
    transparent 30%,
    transparent 60%,
    rgba(11, 27, 46, 0.3) 100%
  );
  pointer-events: none;
}

.card-media-sheen {
  position: absolute;
  top: -60%;
  left: -80%;
  width: 55%;
  height: 220%;
  z-index: 2;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: rotate(18deg);
  opacity: 0;
  pointer-events: none;
}

.product-card:hover .card-media-sheen {
  opacity: 1;
  animation: sheen 1.1s ease;
}

.card-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-full);
  box-shadow: 0 6px 16px -8px rgba(11, 27, 46, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cat);
  box-shadow: 0 0 0 3px var(--cat-soft);
}

.badge-category {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 11px;
  border-radius: var(--radius-full);
  background: var(--cat-soft);
  color: var(--cat);
}

.badge-highlight {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #ffd257 0%, var(--gold) 45%, var(--gold-deep) 100%);
  color: #3a2900;
  box-shadow: 0 8px 18px -10px rgba(226, 154, 0, 0.95);
}

.card-media .badge-highlight {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
}

.card-quickview {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 4;
  transform: translate(-50%, 12px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 17px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
  pointer-events: none;
  white-space: nowrap;
}

.card-quickview svg {
  width: 15px;
  height: 15px;
  color: var(--cat);
}

.product-card:hover .card-quickview,
.product-card:focus-visible .card-quickview {
  opacity: 1;
  transform: translate(-50%, 0);
}

.card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 18px 18px 20px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  flex-grow: 1;
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  margin-top: auto;
}

/* Amazon CTA button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: auto;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cta-text);
  background: linear-gradient(135deg, #ffd257 0%, var(--amazon-cta) 45%, var(--amazon-cta-hover) 100%);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 22px -12px rgba(226, 154, 0, 0.95);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 16px 28px -12px rgba(226, 154, 0, 1);
}

.btn-cta:active {
  transform: scale(0.99);
}

.btn-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
}

.btn-cta-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn-cta-external {
  width: 12px;
  height: 12px;
  opacity: 0.75;
  margin-left: 1px;
  transition: transform 0.16s ease;
}

.btn-cta:hover .btn-cta-external {
  transform: translate(2px, -2px);
}

/* Compact list layout */
.product-grid.is-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.product-grid.is-list .product-card {
  flex-direction: row;
  align-items: stretch;
}

.product-grid.is-list .product-card::after {
  display: none;
}

.product-grid.is-list .card-media {
  width: 268px;
  flex-shrink: 0;
  aspect-ratio: auto;
  min-height: 184px;
}

.product-grid.is-list .card-content {
  justify-content: center;
  padding: 22px 26px;
}

.product-grid.is-list .card-title {
  font-size: 18px;
  -webkit-line-clamp: 2;
}

.product-grid.is-list .card-desc {
  -webkit-line-clamp: 2;
  margin-bottom: 16px;
}

.product-grid.is-list .btn-cta {
  width: auto;
  min-width: 232px;
  align-self: flex-start;
  margin-top: 0;
}

.product-grid.is-list .card-quickview {
  display: none;
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 72px 24px;
  background: radial-gradient(120% 120% at 50% 0%, var(--surface), var(--surface-2));
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  margin: 12px 0 56px;
}

.empty-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-deep);
  background: radial-gradient(circle at 30% 25%, #ffffff, var(--blue-soft));
  border: 1px solid #d5e6ff;
  box-shadow: var(--shadow-sm);
}

.empty-icon {
  width: 34px;
  height: 34px;
}

.empty-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.empty-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.empty-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 22px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-full);
  color: #ffffff;
  transition: background-color 0.15s;
}

.btn-secondary:hover {
  background: var(--ink-2);
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */
.how {
  padding: 72px 0;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.how-card {
  position: relative;
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.how-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.how-step {
  position: absolute;
  top: 22px;
  right: 26px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--surface-2);
  line-height: 1;
}

.how-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  color: var(--blue-deep);
  background: var(--blue-soft);
}

.how-icon svg {
  width: 26px;
  height: 26px;
}

.how-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.how-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Disclosure section
   -------------------------------------------------------------------------- */
.disclosure-section {
  padding: 24px 0 80px;
}

.disclosure-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 48px;
  padding: 48px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(255, 184, 0, 0.16), transparent 60%),
    linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.disclosure-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.disclosure-media {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.disclosure-media img {
  display: block;
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius-md);
  transform: rotate(-3deg);
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.6);
}

.disclosure-copy {
  position: relative;
  z-index: 1;
}

.disclosure-copy .section-eyebrow {
  color: var(--gold);
}

.disclosure-copy .section-title {
  color: #ffffff;
  margin-bottom: 16px;
}

.disclosure-copy > p {
  margin: 0 0 22px;
  max-width: 46rem;
  font-size: 15px;
  line-height: 1.7;
  color: #c6d6ea;
}

.disclosure-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.disclosure-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 500;
  color: #e8f0fa;
}

.disclosure-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: var(--modal-backdrop-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  transform: scale(0.96) translateY(10px);
  transition: transform 0.26s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.modal-backdrop.is-open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background-color: var(--modal-close-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s, transform 0.15s;
}

.modal-close-btn:hover {
  background-color: var(--modal-close-bg-hover);
  transform: rotate(90deg);
}

.modal-close-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
}

/* Product modal: image showroom + details */
.product-modal {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: stretch;
  max-width: 1000px;
  max-height: 88vh;
  overflow: hidden;
}

.modal-gallery {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 44px;
  background: radial-gradient(90% 70% at 50% 28%, var(--cat-soft) 0%, var(--surface-2) 78%);
  overflow: hidden;
}

.modal-gallery-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--cat);
  filter: blur(90px);
  opacity: 0.22;
}

.modal-gallery-ring {
  position: absolute;
  width: min(80%, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed var(--cat);
  opacity: 0.32;
}

.modal-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 50px -30px rgba(11, 27, 46, 0.55);
}

.modal-gallery-tag {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3a2900;
  background: linear-gradient(135deg, #ffd257, var(--gold-deep));
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.modal-gallery-tag:empty {
  display: none;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 34px 32px;
  overflow-y: auto;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.modal-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.modal-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-desc);
}

.modal-disclosure {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--disclosure-text);
  background-color: var(--amazon-cta-bg);
  border: 1px solid var(--amazon-cta-border);
  border-radius: var(--radius-md);
}

.modal-footer-cta {
  margin-top: 2px;
}

.btn-cta-large {
  padding: 16px 22px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

.btn-cta-large .btn-cta-external {
  width: 13px;
  height: 13px;
}

/* Related products inside the modal */
.modal-related {
  margin-top: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.modal-related-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.modal-related-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.modal-related-grid {
  display: grid;
  gap: 10px;
}

.related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s, background-color 0.15s, transform 0.15s;
}

.related-card:hover {
  border-color: var(--cat);
  background: var(--surface);
  transform: translateX(3px);
}

.related-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.related-thumb {
  flex-shrink: 0;
  width: 58px;
  height: 46px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.related-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-cta {
  font-size: 11px;
  font-weight: 700;
  color: var(--cat);
}

/* Info modal (privacy / terms) */
.info-modal {
  max-width: 600px;
  padding: 32px;
}

.info-modal h3 {
  margin: 0 0 14px;
  font-size: 22px;
  color: var(--ink);
}

.info-modal p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-desc);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 40px;
  padding: 64px 0 32px;
  background: var(--ink);
  color: #9fb3cc;
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 44rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.footer-logo svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
}

.footer-tagline {
  margin: 0 0 18px;
  color: #b9cae0;
}

.footer-ftc-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #8ea3bd;
}

.footer-ftc-text strong {
  color: #cbd9ea;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-nav-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 4px;
}

.footer-link {
  color: #9fb3cc;
  text-align: left;
  font-size: 13.5px;
  transition: color 0.15s;
}

.footer-link:hover {
  color: var(--gold);
}

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12.5px;
  color: #7488a3;
  transition: color 0.15s;
}

.footer-admin-link:hover {
  color: #b9cae0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12.5px;
  color: #7488a3;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sheen {
  from {
    left: -80%;
  }
  to {
    left: 130%;
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-banner-frame {
    transform: none;
  }

  .how-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .disclosure-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 36px 28px;
    text-align: left;
  }

  .disclosure-media {
    justify-content: flex-start;
  }

  .disclosure-media img {
    max-width: 240px;
  }
}

@media (max-width: 860px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .product-grid.is-list .card-media {
    width: 200px;
    min-height: 160px;
  }

  .product-grid.is-list .card-content {
    padding: 16px 18px;
  }

  .product-grid.is-list .btn-cta {
    width: 100%;
    min-width: 0;
  }

  .product-modal {
    grid-template-columns: minmax(0, 1fr);
    max-height: 90vh;
    overflow-y: auto;
  }

  .product-modal .modal-gallery {
    min-height: 232px;
    padding: 26px;
  }

  .modal-gallery-glow {
    width: 240px;
    height: 240px;
  }

  .modal-image {
    max-height: 34vh;
  }

  .product-modal .modal-body {
    overflow: visible;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .hero-float--pick {
    left: auto;
    right: 14px;
    bottom: -18px;
  }
}

@media (max-width: 620px) {
  .container {
    padding: 0 18px;
  }

  .search-wrapper {
    max-width: none;
  }

  .search-kbd {
    display: none;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .hero-stats {
    gap: 24px;
  }

  .section-head {
    align-items: flex-start;
  }

  .catalog-head-badge {
    padding: 10px 15px;
  }

  .catalog-head-badge-num {
    font-size: 1.6rem;
  }

  .catalog-toolbar {
    align-items: flex-start;
  }

  .catalog-toolbar-controls {
    width: 100%;
    justify-content: space-between;
  }

  .product-grid.is-list .product-card {
    flex-direction: column;
  }

  .product-grid.is-list .card-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .header-inner {
    gap: 12px;
  }

  .brand-logo {
    height: 38px;
  }

  .modal-gallery {
    padding: 20px;
  }

  .modal-image {
    max-height: 30vh;
  }

  .modal-gallery-tag {
    left: 14px;
    bottom: 14px;
  }

  .modal-body,
  .info-modal {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Admin Portal Styles
   ========================================================================== */
.admin-body {
  background-color: #f1f5f9;
  min-height: 100vh;
}

.admin-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  transition: all 0.15s;
}

.admin-back-link:hover {
  color: var(--text-main);
  background: var(--border);
}

.admin-divider {
  color: var(--text-subtle);
}

.admin-heading {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

.admin-main {
  padding: 36px 20px 60px;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Login Card */
.login-card {
  max-width: 420px;
  margin: 60px auto 0;
  padding: 36px 32px;
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--surface-raised);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
}

.login-header h2 {
  font-size: 20px;
  margin: 0 0 6px;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.required {
  color: #dc2626;
}

.field-hint {
  display: block;
  font-size: 11px;
  color: var(--text-subtle);
  margin-top: 4px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--ring);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.col-span-2 {
  grid-column: span 2;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background-color 0.15s;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background-color: #dc2626;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background-color 0.15s;
}

.btn-danger:hover {
  background-color: #b91c1c;
}

/* Dashboard Toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.toolbar-search {
  flex-grow: 1;
  max-width: 460px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.count-badge {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

/* Products Table */
.table-responsive {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.admin-table th {
  background: var(--surface-raised);
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background-color: #f8fafc;
}

.cell-thumb {
  padding-right: 0;
}

.table-thumb {
  width: 60px;
  height: 34px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  display: block;
}

.cell-title {
  max-width: 260px;
}

.cell-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.link-external {
  color: var(--border-focus);
  text-decoration: underline;
  font-weight: 500;
}

.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.status-active {
  background-color: #dcfce7;
  color: #15803d;
}

.status-inactive {
  background-color: #f1f5f9;
  color: #64748b;
}

.cell-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.btn-action {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.1s;
}

.btn-edit:hover {
  background: var(--surface-raised);
  border-color: var(--text-subtle);
}

.btn-delete {
  color: #dc2626;
}

.btn-delete:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

.table-empty-message {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
}

/* Modals */
.admin-modal-dialog {
  max-width: 640px;
  padding: 24px;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.admin-modal-title {
  font-size: 18px;
  margin: 0;
}

.image-preview-wrap {
  margin-top: 8px;
}

.image-preview {
  max-width: 200px;
  max-height: 120px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  object-fit: cover;
  display: block;
}

.upload-dropzone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  background-color: var(--surface-raised);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover {
  border-color: var(--border-focus);
  background-color: var(--surface);
}

.upload-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.upload-icon {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
}

.upload-prompt-text {
  font-size: 13px;
  color: var(--text-main);
}

.upload-prompt-sub {
  font-size: 11px;
  color: var(--text-subtle);
}

.upload-status-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--border-focus);
}

.upload-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--border-focus);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.advanced-image-toggle {
  margin-top: 10px;
  font-size: 12px;
}

.advanced-image-toggle summary {
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.advanced-image-toggle summary:hover {
  color: var(--text-main);
}

.delete-modal-dialog {
  max-width: 440px;
  padding: 24px;
}

.delete-modal-title {
  margin-top: 0;
  color: #dc2626;
  font-size: 18px;
}

/* Alerts */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 16px;
}

.alert-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  background-color: #1e293b;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-success {
  background-color: #15803d;
}

.toast-error {
  background-color: #b91c1c;
}

.toast-info {
  background-color: #1e293b;
}
