/* Sales Via Links - Design System & Storefront Styles */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-header: rgba(255, 255, 255, 0.95);
  --surface-raised: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --text-desc: #334155;
  --border: #e2e8f0;
  --border-focus: #3b82f6;
  --primary: #0f172a;
  --primary-hover: #1e293b;
  --primary-contrast: #ffffff;
  --cta-text: #ffffff;
  --amazon-cta: #d97706;
  --amazon-cta-hover: #b45309;
  --amazon-cta-bg: #fffbeb;
  --amazon-cta-border: #fde68a;
  --disclosure-text: #92400e;
  --badge-bg: #f1f5f9;
  --badge-text: #334155;
  --accent-badge-bg: #eff6ff;
  --accent-badge-text: #1d4ed8;
  --ring: rgba(59, 130, 246, 0.5);
  --card-border-hover: #cbd5e1;
  --modal-backdrop-bg: rgba(15, 23, 42, 0.65);
  --modal-close-bg: rgba(255, 255, 255, 0.9);
  --modal-close-bg-hover: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

/* Theme 2: True OLED Midnight / Cyber Dark (Full UI Dark Mode) */
html[data-theme="dark"] {
  --bg: #09090b;
  --surface: #121215;
  --surface-header: rgba(18, 18, 21, 0.95);
  --surface-raised: #1c1c22;
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-subtle: #71717a;
  --text-desc: #d4d4d8;
  --border: #27272a;
  --border-focus: #f59e0b;
  --primary: #f4f4f5;
  --primary-hover: #ffffff;
  --primary-contrast: #09090b;
  --cta-text: #09090b;
  --amazon-cta: #f59e0b;
  --amazon-cta-hover: #d97706;
  --amazon-cta-bg: #1c1912;
  --amazon-cta-border: #45300d;
  --disclosure-text: #fde68a;
  --badge-bg: #27272a;
  --badge-text: #e4e4e7;
  --accent-badge-bg: #1e293b;
  --accent-badge-text: #60a5fa;
  --ring: rgba(245, 158, 11, 0.4);
  --card-border-hover: #3f3f46;
  --modal-backdrop-bg: rgba(0, 0, 0, 0.85);
  --modal-close-bg: rgba(39, 39, 42, 0.9);
  --modal-close-bg-hover: #3f3f46;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.5);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.6);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.7);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.8);
  color-scheme: dark;
}

/* Theme 3: Warm Boutique Craft */
html[data-theme="warm"] {
  --bg: #fcf8f2;
  --surface: #ffffff;
  --surface-header: rgba(255, 255, 255, 0.95);
  --surface-raised: #f5ede1;
  --text-main: #292524;
  --text-muted: #78716c;
  --text-subtle: #a8a29e;
  --text-desc: #44403c;
  --border: #e7ded2;
  --border-focus: #b45309;
  --primary: #292524;
  --primary-hover: #44403c;
  --primary-contrast: #ffffff;
  --cta-text: #ffffff;
  --amazon-cta: #b4431e;
  --amazon-cta-hover: #923414;
  --amazon-cta-bg: #fbf2ea;
  --amazon-cta-border: #f3d5be;
  --disclosure-text: #8c2f10;
  --badge-bg: #f5ede1;
  --badge-text: #573f33;
  --accent-badge-bg: #ecf3ea;
  --accent-badge-text: #2d5a27;
  --ring: rgba(180, 83, 9, 0.35);
  --card-border-hover: #d6c7b6;
  --modal-backdrop-bg: rgba(41, 37, 36, 0.6);
  --modal-close-bg: rgba(255, 255, 255, 0.9);
  --modal-close-bg-hover: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  color-scheme: light;
}

/* Theme 4: Modern Neo-Grid (High Contrast) */
html[data-theme="bold"] {
  --bg: #f4f4f5;
  --surface: #ffffff;
  --surface-header: rgba(255, 255, 255, 0.98);
  --surface-raised: #e4e4e7;
  --text-main: #09090b;
  --text-muted: #27272a;
  --text-subtle: #52525b;
  --text-desc: #18181b;
  --border: #09090b;
  --border-focus: #000000;
  --primary: #09090b;
  --primary-hover: #27272a;
  --primary-contrast: #ffffff;
  --cta-text: #ffffff;
  --amazon-cta: #09090b;
  --amazon-cta-hover: #27272a;
  --amazon-cta-bg: #fef08a;
  --amazon-cta-border: #09090b;
  --disclosure-text: #09090b;
  --badge-bg: #09090b;
  --badge-text: #ffffff;
  --accent-badge-bg: #fef08a;
  --accent-badge-text: #713f12;
  --ring: rgba(0, 0, 0, 0.5);
  --card-border-hover: #000000;
  --modal-backdrop-bg: rgba(0, 0, 0, 0.7);
  --modal-close-bg: #ffffff;
  --modal-close-bg-hover: #f4f4f5;
  --shadow-sm: 2px 2px 0px #09090b;
  --shadow-md: 4px 4px 0px #09090b;
  --shadow-lg: 6px 6px 0px #09090b;
  --shadow-xl: 8px 8px 0px #09090b;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  color-scheme: light;
}

/* Theme 5: Nordic Frost (Icy Minimal) */
html[data-theme="nordic"] {
  --bg: #f0f4f8;
  --surface: #ffffff;
  --surface-header: rgba(255, 255, 255, 0.92);
  --surface-raised: #e2eaf2;
  --text-main: #0f2942;
  --text-muted: #536b82;
  --text-subtle: #7f95a8;
  --text-desc: #1d3e5e;
  --border: #d0deea;
  --border-focus: #2563eb;
  --primary: #0f2942;
  --primary-hover: #1e3a5f;
  --primary-contrast: #ffffff;
  --cta-text: #ffffff;
  --amazon-cta: #2563eb;
  --amazon-cta-hover: #1d4ed8;
  --amazon-cta-bg: #eff6ff;
  --amazon-cta-border: #bfdbfe;
  --disclosure-text: #1e40af;
  --badge-bg: #e2eaf2;
  --badge-text: #0f2942;
  --accent-badge-bg: #dbeafe;
  --accent-badge-text: #1e40af;
  --ring: rgba(37, 99, 235, 0.4);
  --card-border-hover: #93c5fd;
  --modal-backdrop-bg: rgba(15, 41, 66, 0.6);
  --modal-close-bg: rgba(255, 255, 255, 0.9);
  --modal-close-bg-hover: #ffffff;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  color-scheme: light;
}

/* Theme 6: Sunset Luxe (Warm Espresso & Amber Glow) */
html[data-theme="sunset"] {
  --bg: #140f0c;
  --surface: #1e1713;
  --surface-header: rgba(30, 23, 19, 0.95);
  --surface-raised: #2a201b;
  --text-main: #fdf8f4;
  --text-muted: #bdaea4;
  --text-subtle: #8a786f;
  --text-desc: #e8ddd5;
  --border: #382c24;
  --border-focus: #f59e0b;
  --primary: #fdf8f4;
  --primary-hover: #ffffff;
  --primary-contrast: #140f0c;
  --cta-text: #ffffff;
  --amazon-cta: #ea580c;
  --amazon-cta-hover: #c2410c;
  --amazon-cta-bg: #291a13;
  --amazon-cta-border: #57311d;
  --disclosure-text: #fdba74;
  --badge-bg: #2a201b;
  --badge-text: #e8ddd5;
  --accent-badge-bg: #3d2315;
  --accent-badge-text: #fb923c;
  --ring: rgba(234, 88, 12, 0.4);
  --card-border-hover: #57311d;
  --modal-backdrop-bg: rgba(0, 0, 0, 0.85);
  --modal-close-bg: rgba(42, 32, 27, 0.9);
  --modal-close-bg-hover: #382c24;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.5);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.6);
  --shadow-lg: 0 10px 20px -3px rgb(0 0 0 / 0.7);
  --shadow-xl: 0 25px 35px -5px rgb(0 0 0 / 0.8);
  color-scheme: dark;
}

/* Floating Design Preset Switcher */
.theme-switcher-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-full);
  padding: 4px 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  max-width: calc(100vw - 40px);
}

.theme-pill-btn {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  background: transparent;
  transition: all 0.15s;
}

.theme-pill-btn:hover {
  color: var(--text-main);
  background: var(--surface-raised);
}

.theme-pill-btn.is-active {
  background: var(--primary);
  color: var(--primary-contrast);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

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

/* Site Header */
.site-header {
  background-color: var(--surface-header);
  border-bottom: 1px solid var(--border);
  padding: 24px 0 20px;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-wrapper {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo-icon {
  width: 26px;
  height: 26px;
  color: var(--amazon-cta);
}

.brand-tagline {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

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

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

.search-input {
  width: 100%;
  padding: 10px 38px 10px 42px;
  font-size: 14px;
  font-family: inherit;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-main);
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

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

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

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

/* Subheader / Disclosure Bar */
.disclosure-bar {
  background-color: var(--amazon-cta-bg);
  border-bottom: 1px solid var(--amazon-cta-border);
  padding: 8px 0;
  font-size: 12px;
  color: var(--disclosure-text);
}

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

.disclosure-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.grid-disclosure {
  background-color: var(--amazon-cta-bg);
  border: 1px solid var(--amazon-cta-border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--disclosure-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Category Navigation */
.nav-section {
  padding: 24px 0 16px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar {
  height: 4px;
}

.category-tabs::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.tab-btn:hover {
  border-color: var(--text-subtle);
  color: var(--text-main);
}

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

.tab-btn[aria-selected="true"] {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--primary-contrast);
}

.tab-count {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background-color: var(--surface-raised);
  color: var(--text-muted);
  font-weight: 600;
}

.tab-btn[aria-selected="true"] .tab-count {
  background-color: rgba(0, 0, 0, 0.12);
  color: var(--primary-contrast);
}

/* Live Result Bar */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.active-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
}

.reset-filter-btn {
  font-size: 12px;
  color: var(--border-focus);
  text-decoration: underline;
  padding: 0 4px;
}

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

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

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

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

/* Product Card */
.product-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--card-border-hover);
}

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

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--surface-raised);
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
}

.badge-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--badge-bg);
  color: var(--badge-text);
}

.badge-highlight {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-badge-bg);
  color: var(--accent-badge-text);
}

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

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

/* Custom CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background-color: var(--amazon-cta);
  color: var(--cta-text);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.15s, transform 0.1s;
  box-shadow: var(--shadow-sm);
  margin-top: auto;
}

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

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

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

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

.btn-cta-external {
  width: 12px;
  height: 12px;
  opacity: 0.8;
  margin-left: 2px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  background-color: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  margin: 20px 0 48px;
}

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

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

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

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--surface-raised);
}

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

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

.modal-dialog {
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.96);
  transition: transform 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

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

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

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

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

.modal-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--surface-raised);
  overflow: hidden;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  color: var(--text-main);
}

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

.modal-disclosure {
  background-color: var(--amazon-cta-bg);
  border: 1px solid var(--amazon-cta-border);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--disclosure-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.btn-cta-large {
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  width: 100%;
  border-radius: var(--radius-md);
}

/* Site Footer */
.site-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.footer-brand h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 8px;
}

.footer-ftc-text {
  line-height: 1.6;
  margin: 0 0 12px;
  font-size: 13px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 4px;
}

.footer-link {
  color: var(--text-muted);
  transition: color 0.15s;
}

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

.footer-admin-link {
  color: var(--text-subtle);
  font-size: 12px;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-admin-link:hover {
  color: var(--text-muted);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-subtle);
}

/* Informational Modals (Privacy / Terms) */
.info-modal {
  max-width: 580px;
  padding: 24px;
}

.info-modal h3 {
  margin-top: 0;
  font-size: 20px;
  color: var(--text-main);
}

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

/* ==========================================================================
   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;
}

