:root {
  --primary: #FF5238;
  --primary-hover: #E03E26;
  --primary-light: #FFF1EE;
  --secondary: #D97706;
  --secondary-light: #FEF3C7;
  --accent: #0D9488;
  --accent-light: #CCFBF1;
  --dark: #18181B;
  --dark-soft: #27272A;
  --text-main: #3F3F46;
  --text-muted: #71717A;
  --bg-page: #FAF9F6;
  --bg-card: #FFFFFF;
  --border-light: #E4E4E7;
  --border-focus: #FF5238;
  --shadow-sm: 0 1px 3px rgba(24, 24, 27, 0.05);
  --shadow-md: 0 4px 12px rgba(24, 24, 27, 0.07);
  --shadow-lg: 0 12px 28px rgba(24, 24, 27, 0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Slim Unstuck Header */
.site-header {
  position: static; /* Unstuck / natural scroll */
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  height: 64px;
  display: flex;
  align-items: center;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--dark-soft);
  padding: 0.35rem 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 82, 56, 0.25);
}

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

.btn-secondary:hover {
  background-color: #ffe0db;
}

.btn-outline {
  border-color: var(--border-light);
  background: #ffffff;
  color: var(--dark);
}

.btn-outline:hover {
  border-color: var(--dark);
  background-color: #fafafa;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
}

.btn-block {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--dark);
}

/* Mobile Drawer Navigation */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 998;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 280px;
  max-width: 85%;
  height: 100%;
  background: #ffffff;
  z-index: 999;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-links .nav-link {
  font-size: 1.05rem;
  padding: 0.5rem 0;
  display: block;
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-trend {
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge-stem {
  background-color: var(--accent-light);
  color: var(--accent);
}

.badge-top {
  background-color: var(--secondary-light);
  color: var(--secondary);
}

/* Hero Section */
.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.stat-item h4 {
  font-size: 1.75rem;
  color: var(--primary);
}

.stat-item p {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.hero-image-wrap {
  position: relative;
}

.hero-image-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  width: 100%;
  height: 380px;
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 260px;
}

/* Section Common Styling */
.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-header .badge {
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Card Grid & Toy Cards */
.toy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.toy-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.toy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.toy-card-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: #f4f4f5;
}

.toy-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.toy-card:hover .toy-card-media img {
  transform: scale(1.05);
}

.card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.toy-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.toy-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.toy-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--secondary);
  font-weight: 700;
}

.toy-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.toy-card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.toy-specs-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-top: 1px dashed var(--border-light);
  border-bottom: 1px dashed var(--border-light);
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
}

.spec-mini-item span {
  display: block;
  color: var(--text-muted);
}

.spec-mini-item strong {
  color: var(--dark);
}

.card-footer-action {
  margin-top: auto;
}

/* Feature Spotlight Layout */
.spotlight-banner {
  background: var(--dark);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 3rem;
}

.spotlight-banner h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.spotlight-banner p {
  color: #A1A1AA;
  margin-bottom: 1.5rem;
}

.spotlight-bullets {
  list-style: none;
  margin-bottom: 2rem;
}

.spotlight-bullets li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  color: #E4E4E7;
}

.spotlight-bullets svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Detail Page Architecture */
.page-header {
  padding: 3rem 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0;
}

.detail-content {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.detail-featured-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.article-body h2 {
  margin: 2rem 0 1rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.article-body h3 {
  margin: 1.5rem 0 0.75rem;
}

.article-body p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  line-height: 1.7;
}

.pro-con-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.pro-box, .con-box {
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.pro-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
}

.pro-box h4 {
  color: #166534;
  margin-bottom: 0.75rem;
}

.con-box {
  background: #FEF2F2;
  border: 1px solid #FECACA;
}

.con-box h4 {
  color: #991B1B;
  margin-bottom: 0.75rem;
}

.pro-con-grid ul {
  margin: 0 0 0 1.2rem;
  font-size: 0.925rem;
}

/* Detail Sidebar */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.spec-list {
  list-style: none;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
}

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

.spec-row span {
  color: var(--text-muted);
}

.spec-row strong {
  color: var(--dark);
  text-align: right;
}

/* Contact Page Components */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--dark);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--dark);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* Legal Content Page Styling */
.legal-box {
  background: #ffffff;
  padding: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin: 2.5rem 0;
}

.legal-box h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
  color: var(--dark);
}

.legal-box h3 {
  font-size: 1.2rem;
  margin: 1.25rem 0 0.5rem;
}

.legal-box p, .legal-box li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.legal-table th, .legal-table td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-light);
  text-align: left;
}

.legal-table th {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

/* Mandatory Footer on ALL Pages */
.site-footer {
  background-color: #121214;
  color: #A1A1AA;
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  border-top: 1px solid #27272A;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #27272A;
}

.footer-brand h3 {
  color: #ffffff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: #A1A1AA;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-info {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-contact-info strong {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-legal a:hover {
  color: #ffffff;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 650px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  z-index: 1000;
  display: none;
  animation: slideUp 0.35s ease-out forwards;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.cookie-icon {
  width: 36px;
  height: 36px;
  background: var(--secondary-light);
  color: var(--secondary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-banner-content h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.cookie-banner-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Media Queries for Perfect Responsiveness */
@media (max-width: 1024px) {
  .toy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .spotlight-banner {
    grid-template-columns: 1fr;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu, .header-cta {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .toy-grid {
    grid-template-columns: 1fr;
  }
  .pro-con-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .legal-box {
    padding: 1.5rem;
  }
  .detail-content {
    padding: 1.5rem;
  }
}