/* ==========================================================================
   APATIYM STUDIO — DOODLE HAND-DRAWN SKETCH THEME
   Warm paper background, hand-drawn sketch borders, doodle accents,
   plus clean readable modern typography (Outfit & Space Mono)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

/* 1. Light Doodle Theme (Default Warm Sketch Paper) */
:root, [data-theme="light"] {
  --paper: #FAF6EF;
  --panel: #FFFFFF;
  --grid-line: #E5DEC9;
  --ink: #1E293B;
  --ink-dim: #64748B;

  /* Doodle Sketch Palette */
  --or-50:  #FFF4E6;
  --or-100: #FFE4CC;
  --or-300: #FFB380;
  --or-500: #F97316;
  --or-600: #EA580C;
  --or-700: #C2410C;
  --lime:   #65A30D;

  --border-subtle: #292524;
  --border-active: var(--or-600);

  --btn-bg: var(--or-600);
  --btn-text: #FFFFFF;
  --btn-hover: var(--or-700);

  --win-dot-color: #E5DEC9;
  --sketch-border: 2px solid #292524;
  --sketch-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  --sketch-radius-sm: 255px 10px 225px 10px/10px 225px 10px 255px;
  --sketch-shadow: 3px 4px 0px #292524;
  --sketch-shadow-hover: 5px 7px 0px #292524;
}

/* 2. Dark Doodle Theme (Pure Deep Graphite & Charcoal) */
[data-theme="dark"] {
  --paper: #121212;
  --panel: #1E1E1E;
  --grid-line: #2D2D2D;
  --ink: #F5F5F5;
  --ink-dim: #A0A0A0;

  /* Warm Orange Palette Dark */
  --or-50:  #3A1805;
  --or-100: #5C2608;
  --or-300: #FB923C;
  --or-500: #F97316;
  --or-600: #EA580C;
  --or-700: #C2410C;
  --lime:   #84CC16;

  --border-subtle: #3D3D3D;
  --border-active: var(--or-500);

  --btn-bg: var(--or-600);
  --btn-text: #FFFFFF;
  --btn-hover: #C2410C;

  --win-dot-color: #3D3D3D;
  --sketch-border: 2px solid #3D3D3D;
  --sketch-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  --sketch-radius-sm: 255px 10px 225px 10px/10px 225px 10px 255px;
  --sketch-shadow: 3px 4px 0px #080808;
  --sketch-shadow-hover: 5px 7px 0px #080808;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body.editorial-app {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Background Ambient Accent Decorations */
.bg-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  transition: opacity 0.3s ease;
}

.orb-1 {
  width: 450px;
  height: 450px;
  top: -80px;
  right: -100px;
  background: radial-gradient(circle, var(--or-500) 0%, transparent 70%);
  animation: floatOrb 12s infinite ease-in-out alternate;
}

.orb-2 {
  width: 350px;
  height: 350px;
  top: 600px;
  left: -80px;
  background: radial-gradient(circle, var(--or-300) 0%, transparent 70%);
  animation: floatOrb 16s infinite ease-in-out alternate-reverse;
}

[data-theme="dark"] .glow-orb {
  opacity: 0.15;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.08); }
  100% { transform: translate(-20px, -30px) scale(0.95); }
}

.bg-grid-cross {
  position: absolute;
  font-family: 'Space Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--or-600);
  opacity: 0.4;
  user-select: none;
}

.cross-1 { top: 120px; left: 6%; transform: rotate(-8deg); }
.cross-2 { top: 820px; right: 5%; transform: rotate(12deg); }
.cross-3 { top: 1450px; left: 4%; transform: rotate(-5deg); }

.bg-code-tag {
  position: absolute;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--ink-dim);
  opacity: 0.3;
  user-select: none;
  border: 1px dashed var(--border-subtle);
  padding: 4px 8px;
  border-radius: var(--sketch-radius-sm);
}

.tag-1 { top: 220px; right: 8%; transform: rotate(15deg); }
.tag-2 { top: 1100px; left: 2%; transform: rotate(-6deg); }

.mono {
  font-family: 'Space Mono', monospace;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 2.5px solid var(--border-subtle);
  padding: 16px 0;
  transition: background-color 0.25s ease;
}

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

.logo {
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.logo-icon {
  width: 22px;
  height: 22px;
  color: var(--or-600);
  transition: transform 0.2s ease, color 0.2s ease;
}

.logo:hover .logo-icon {
  transform: rotate(-10deg) scale(1.1);
  color: var(--or-700);
}

.nav-menu {
  display: flex;
  gap: 20px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-dim);
}

.nav-link {
  color: var(--ink-dim);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--sketch-radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--or-600);
  background: var(--or-50);
  transform: rotate(-2deg);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.theme-toggle-btn {
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--panel);
  border: var(--sketch-border);
  border-radius: var(--sketch-radius-sm);
  box-shadow: var(--sketch-shadow);
  padding: 6px 14px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.theme-toggle-btn:hover {
  transform: translateY(-2deg);
  box-shadow: var(--sketch-shadow-hover);
  color: var(--or-600);
}

.tg-btn {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: var(--or-600);
  border: var(--sketch-border);
  border-radius: var(--sketch-radius-sm);
  box-shadow: var(--sketch-shadow);
  padding: 8px 16px;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tg-btn:hover {
  background: var(--or-700);
  transform: translateY(-2deg);
  box-shadow: var(--sketch-shadow-hover);
}

/* Hero */
.hero {
  display: block;
  padding: 50px 48px 30px;
}

.callout {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--or-600);
  border: var(--sketch-border);
  border-radius: var(--sketch-radius-sm);
  box-shadow: var(--sketch-shadow);
  background: var(--panel);
  padding: 5px 12px;
  margin-bottom: 22px;
  transform: rotate(-1.5deg);
}

h1 {
  font-size: clamp(26px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  color: var(--ink);
  word-wrap: break-word;
}

h1 .u {
  text-decoration: underline;
  text-decoration-color: var(--or-500);
  text-decoration-style: wavy;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

.hero p {
  color: var(--ink-dim);
  font-size: clamp(14px, 2.5vw, 16px);
  line-height: 1.6;
  max-width: 520px;
}

/* Controls Panel */
.controls-panel {
  margin: 0 auto 40px;
  background: var(--panel);
  border: var(--sketch-border);
  border-radius: var(--sketch-radius);
  box-shadow: var(--sketch-shadow);
  padding: 24px;
}

.controls-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 18px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: var(--sketch-border);
  border-radius: var(--sketch-radius-sm);
  padding: 10px 14px;
  flex: 1 1 280px;
  min-width: 0;
  background: var(--paper);
}

.search-ico {
  color: var(--ink-dim);
  font-weight: 700;
}

.search-box input {
  border: none;
  outline: none;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  width: 100%;
  background: none;
  color: var(--ink);
}

.clear-search-btn {
  border: none;
  background: none;
  font-size: 18px;
  color: var(--ink-dim);
  cursor: pointer;
}

.price-filter-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.price-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-dim);
}

.price-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.price-btn {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  background: var(--paper);
  border: var(--sketch-border);
  border-radius: var(--sketch-radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  color: var(--ink-dim);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.price-btn:hover {
  transform: translateY(-2deg);
  color: var(--or-600);
}

.price-btn.active {
  background: var(--or-600);
  color: #ffffff;
  box-shadow: 2px 3px 0px var(--border-subtle);
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--paper);
  border: var(--sketch-border);
  border-radius: var(--sketch-radius-sm);
  padding: 8px 14px;
  cursor: pointer;
  color: var(--ink-dim);
  user-select: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  transform: translateY(-2deg);
  color: var(--or-600);
}

.filter-btn.active {
  background: var(--or-600);
  color: #ffffff;
  box-shadow: 2px 3px 0px var(--border-subtle);
}

.no-results {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 16px;
}

/* Services */
.services {
  padding-bottom: 80px;
}

.service-block {
  margin-bottom: 48px;
}

.block-header {
  margin-bottom: 20px;
}

.block-header h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 6px 0 4px;
  color: var(--ink);
}

.block-header .sub {
  color: var(--ink-dim);
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--panel);
  border: var(--sketch-border);
  border-radius: var(--sketch-radius);
  box-shadow: var(--sketch-shadow);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  word-wrap: break-word;
}

.card:hover {
  transform: scale(1.03) translateY(-4deg);
  box-shadow: var(--sketch-shadow-hover);
  border-color: var(--or-600);
  z-index: 2;
}

.card.soon {
  opacity: 0.7;
}

.card-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.promo-badge {
  font-family: 'Space Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  color: #ffffff;
  background: var(--or-600);
  border: 1px solid var(--border-subtle);
  border-radius: var(--sketch-radius-sm);
  padding: 2px 8px;
}

.soon-badge {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--or-700);
  background: var(--or-100);
  border: 1px solid var(--border-subtle);
  border-radius: var(--sketch-radius-sm);
  padding: 2px 8px;
  margin-left: auto;
}

.card h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.35;
  color: var(--ink);
}

.card p {
  font-size: 12.5px;
  color: var(--ink-dim);
  line-height: 1.5;
  margin-bottom: 16px;
  min-height: 36px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1.5px dashed var(--grid-line);
  padding-top: 12px;
  margin-top: auto;
  gap: 8px;
}

.price-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.old-price {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
  text-decoration: line-through;
  opacity: 0.75;
}

.prepay-tag {
  font-size: 10.5px;
  color: var(--ink-dim);
  margin-top: 2px;
  font-weight: 600;
}

.price {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: var(--or-600);
  font-size: 14.5px;
}

.add-btn {
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--paper);
  color: var(--ink);
  border: var(--sketch-border);
  border-radius: var(--sketch-radius-sm);
  padding: 5px 11px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.add-btn:hover {
  background: var(--or-500);
  color: #ffffff;
  transform: translateY(-2deg);
}

.add-btn.added {
  background: var(--or-600);
  color: #ffffff;
  box-shadow: 2px 2px 0px var(--border-subtle);
}

.disabled-soon-btn {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: var(--grid-line);
  color: var(--ink-dim);
}

/* Calculator Section */
.calculator-section {
  padding-bottom: 70px;
}

.window-chrome {
  background: var(--panel);
  border: var(--sketch-border);
  border-radius: var(--sketch-radius);
  box-shadow: var(--sketch-shadow);
  overflow: hidden;
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--paper);
  border-bottom: 2px solid var(--border-subtle);
  gap: 10px;
}

.window-controls {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.win-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--win-dot-color);
}

.window-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-curr-pill {
  font-size: 11px;
  color: var(--ink-dim);
  flex-shrink: 0;
}

.window-body {
  padding: 24px;
}

.cart-list {
  min-height: 100px;
  margin-bottom: 24px;
  border: 2px dashed var(--border-subtle);
  border-radius: var(--sketch-radius-sm);
  padding: 16px;
  background: var(--paper);
}

.empty-state {
  text-align: center;
  padding: 20px 0;
  color: var(--ink-dim);
}

.empty-text {
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 4px;
}

.empty-sub {
  font-size: 12.5px;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1.5px dashed var(--grid-line);
  gap: 12px;
}

.cart-row:last-child {
  border-bottom: none;
}

.cart-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  min-width: 0;
  word-break: break-word;
}

.cart-item-price {
  font-weight: 700;
  color: var(--or-600);
  font-size: 14px;
  margin-right: 12px;
  white-space: nowrap;
}

.cart-item-remove {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--ink-dim);
  cursor: pointer;
  font-weight: 700;
  flex-shrink: 0;
}

.cart-item-remove:hover {
  color: var(--or-600);
}

.calc-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
  padding: 20px;
  border: var(--sketch-border);
  border-radius: var(--sketch-radius-sm);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14.5px;
  font-weight: 600;
  gap: 10px;
}

.summary-val {
  font-weight: 700;
  font-size: 19px;
  color: var(--or-600);
  white-space: nowrap;
}

.prepay-line {
  border-top: 1.5px dashed var(--grid-line);
  padding-top: 10px;
}

.prepay-val {
  color: var(--ink);
}

.calc-notice {
  font-size: 12px;
  color: var(--ink-dim);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--or-600);
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  font-family: 'Space Mono', monospace;
  padding: 12px 20px;
  border: var(--sketch-border);
  border-radius: var(--sketch-radius-sm);
  box-shadow: var(--sketch-shadow);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.btn-primary:hover {
  background: var(--or-700);
  transform: translateY(-2deg);
  box-shadow: var(--sketch-shadow-hover);
}

.btn-full {
  width: 100%;
}

.btn-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* FAQ & Legal Sections */
.faq-section,
.legal-section {
  padding-bottom: 80px;
}

.faq-header,
.legal-header {
  margin-bottom: 24px;
}

.faq-header h2,
.legal-header h2 {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  margin-top: 8px;
}

.legal-text-content {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.6;
}

.legal-text-content h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 16px 0 8px 0;
}

.legal-text-content p {
  margin-bottom: 10px;
}

.legal-text-content ul {
  margin: 6px 0 12px 20px;
}

.legal-text-content li {
  margin-bottom: 4px;
}

.legal-updated {
  font-family: 'Space Mono', monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--or-600);
  margin-bottom: 14px;
}

.table-responsive {
  overflow-x: auto;
  margin: 12px 0 16px 0;
  -webkit-overflow-scrolling: touch;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 480px;
}

.legal-table th,
.legal-table td {
  padding: 10px 14px;
  border: var(--sketch-border);
  text-align: left;
}

.legal-table th {
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: var(--panel);
  border: var(--sketch-border);
  border-radius: var(--sketch-radius-sm);
  box-shadow: var(--sketch-shadow);
  transition: all 0.15s ease;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: none;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(14.5px, 2vw, 16px);
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  gap: 12px;
}

.accordion-icon {
  font-family: 'Space Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--or-600);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 20px;
}

.accordion-item.active .accordion-content {
  padding: 0 20px 18px;
}

.accordion-content p {
  font-size: 14.5px;
  color: var(--ink-dim);
  line-height: 1.6;
}

.text-link {
  color: var(--or-600);
  text-decoration: underline;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
}

/* Footer */
footer {
  padding: 36px 0;
  border-top: 2.5px solid var(--border-subtle);
  background: var(--paper);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-dim);
  font-size: 13px;
  font-weight: 600;
  gap: 12px;
}

footer a {
  color: var(--or-600);
  text-decoration: none;
  font-weight: 700;
}

/* Toast Container */
.toast-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 90vw;
}

.toast {
  background: var(--ink);
  color: var(--paper);
  border: var(--sketch-border);
  border-radius: var(--sketch-radius-sm);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  box-shadow: var(--sketch-shadow);
  animation: toastIn 0.25s ease;
}

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

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Laptops & Small Desktops (1024px) */
@media (max-width: 1024px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* Tablets (768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-header {
    padding: 12px 0;
  }

  .nav-menu {
    display: none; /* Hide top nav links on mobile/tablet to avoid overflow */
  }

  .hero {
    padding: 36px 20px 24px;
  }

  .controls-panel {
    padding: 18px;
  }

  .controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .search-box {
    width: 100%;
  }

  .price-filter-wrap {
    width: 100%;
  }

  .price-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .price-btn {
    text-align: center;
  }

  .filter-tabs {
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .window-body {
    padding: 16px;
  }

  .calc-summary {
    padding: 16px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* Mobile Devices (560px and below) */
@media (max-width: 560px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-inner {
    gap: 8px;
  }

  .brand-text {
    font-size: 15px;
  }

  .theme-toggle-btn {
    padding: 5px 10px;
    font-size: 10.5px;
  }

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

  .hero {
    padding: 28px 14px 20px;
  }

  .callout {
    font-size: 10.5px;
    padding: 4px 10px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    padding: 16px;
  }

  .price-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .cart-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cart-item-left {
    width: 100%;
  }

  .cart-row > div:last-child {
    width: 100%;
    justify-content: space-between;
  }

  .summary-line {
    font-size: 13px;
    flex-wrap: wrap;
  }

  .summary-val {
    font-size: 16px;
  }

  .toast-wrapper {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .toast {
    width: 100%;
    text-align: center;
  }
}
