/* Answer Engine Optimized Components
 * Styles for Q&A format articles optimized for AI answer engines
 * (ChatGPT, Perplexity, Google SGE, voice assistants)
 */

/* Direct Answer Box - Prominent positioning for AI extraction */
.direct-answer-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  margin: var(--sp-6) 0;
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.direct-answer-box__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
  margin-bottom: var(--sp-2);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.direct-answer-box__label svg {
  width: 16px;
  height: 16px;
}

.direct-answer-box__content {
  font-size: var(--fs-lg);
  line-height: 1.6;
  font-weight: 500;
}

.direct-answer-box__content strong {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Key Takeaways Box */
.key-takeaway {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: var(--sp-5);
  border-radius: var(--r-md);
  margin: var(--sp-5) 0;
  box-shadow: 0 4px 12px rgba(240, 147, 251, 0.25);
}

.key-takeaway--success {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.key-takeaway--warning {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.key-takeaway--info {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.key-takeaway__icon {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-2);
  display: inline-block;
}

.key-takeaway__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.key-takeaway__content {
  font-size: var(--fs-base);
  line-height: 1.6;
}

.key-takeaway__content ul {
  list-style: none;
  padding: 0;
  margin: var(--sp-3) 0 0 0;
}

.key-takeaway__content li {
  padding-left: var(--sp-5);
  position: relative;
  margin-bottom: var(--sp-2);
}

.key-takeaway__content li:before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: var(--fs-lg);
}

/* FAQ Section - Expandable/Collapsible */
.faq-section {
  margin: var(--sp-8) 0;
  padding: var(--sp-8) 0;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}

.faq-section__title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  margin-bottom: var(--sp-6);
  text-align: center;
  color: var(--text);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-4);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #667eea;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--sp-5);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #667eea;
}

.faq-question__text {
  flex: 1;
}

.faq-question__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question__icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
}

.faq-answer__content {
  padding: 0 var(--sp-5) var(--sp-5) var(--sp-5);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: var(--fs-base);
}

.faq-answer__content strong {
  color: var(--text);
  font-weight: 600;
}

/* Data Tables - Optimized for scannability */
.data-table-wrapper {
  overflow-x: auto;
  margin: var(--sp-6) 0;
  border-radius: var(--r-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: var(--fs-base);
}

.data-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.data-table th {
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  font-weight: 600;
  font-size: var(--fs-base);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.data-table td {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
}

.data-table tbody tr {
  transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
  background-color: rgba(102, 126, 234, 0.05);
}

.data-table tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

.data-table tbody tr:nth-child(even):hover {
  background-color: rgba(102, 126, 234, 0.08);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Highlight key data cells */
.data-table td.highlight {
  font-weight: 600;
  color: #667eea;
}

.data-table td.positive {
  color: #43e97b;
  font-weight: 600;
}

.data-table td.negative {
  color: #f5576c;
  font-weight: 600;
}

/* Statistics Cards - For key metrics */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
}

.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: var(--sp-5);
  border-radius: var(--r-md);
  text-align: center;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.stat-card__value {
  font-size: var(--fs-3xl);
  font-weight: 700;
  margin-bottom: var(--sp-2);
  display: block;
}

.stat-card__label {
  font-size: var(--fs-sm);
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Quick Answer Summary List */
.quick-answer-list {
  background: var(--surface);
  border-left: 4px solid #667eea;
  padding: var(--sp-5);
  margin: var(--sp-5) 0;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.quick-answer-list__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--sp-4);
  color: #667eea;
}

.quick-answer-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-answer-list li {
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
  position: relative;
  line-height: 1.6;
}

.quick-answer-list li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: 700;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .direct-answer-box {
    padding: var(--sp-5);
  }

  .direct-answer-box__content {
    font-size: var(--fs-base);
  }

  .key-takeaway {
    padding: var(--sp-4);
  }

  .data-table {
    font-size: var(--fs-sm);
  }

  .data-table th,
  .data-table td {
    padding: var(--sp-3);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .faq-section__title {
    font-size: var(--fs-2xl);
  }

  .faq-question {
    font-size: var(--fs-base);
    padding: var(--sp-4);
  }

  .faq-answer__content {
    padding: 0 var(--sp-4) var(--sp-4) var(--sp-4);
    font-size: var(--fs-sm);
  }
}

/* Print Styles - Ensure readability when printed or converted to PDF */
@media print {
  .direct-answer-box,
  .key-takeaway {
    background: white !important;
    color: black !important;
    border: 2px solid black;
  }

  .faq-answer {
    max-height: none !important;
  }

  .data-table thead {
    background: #f3f4f6 !important;
    color: black !important;
  }
}
/*
 * Light Theme Override for Article Pages
 * Forces light theme colors for readability on white background
 */

.article-page {
  /* Override dark theme with light theme colors */
  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-elevated: #f9fafb;
  --muted: #6b7280;
  --text: #111827;
  --text-secondary: #4b5563;
  --border: #e5e7eb;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-soft: rgba(0, 0, 0, 0.05);

  background: #fafbfc;
  color: #111827;
}

.article-page .article-container {
  background: #fafbfc;
  color: #111827;
}

.article-page .breadcrumbs {
  color: #6b7280;
}

.article-page .breadcrumbs a {
  color: #2d9cdb;
}

.article-page .text-secondary {
  color: #6b7280;
}

.article-page .article-hero__title {
  color: #111827;
}

.article-page .article-hero__meta {
  color: #4b5563;
}

.article-page .article-body {
  color: #111827;
}

.article-page .article-body h2,
.article-page .article-body h3,
.article-page .article-body h4 {
  color: #111827;
}

.article-page .article-body p {
  color: #111827;
}

.article-page .article-body ul li,
.article-page .article-body ol li {
  color: #111827;
}

.article-page .article-body a {
  color: #2d9cdb;
}

.article-page .callout {
  background: #f0f9ff;
  border-left-color: #2d9cdb;
}

.article-page .callout__title {
  color: #111827;
}

.article-page .callout p {
  color: #4b5563;
}

.article-page .tag {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.article-page .related-article__title {
  color: #111827;
}

.article-page .related-article__excerpt {
  color: #6b7280;
}

.article-page .share-btn {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.article-page .share-btn:hover {
  background: #2d9cdb;
  color: white;
}
/*
 * ======================================
 * LEGO-INSPIRED ARTICLE DESIGN SYSTEM
 * ======================================
 * A modern, elegant design system for adult LEGO content
 * Focus: Sophisticated, minimal, with subtle LEGO references
 */

/* ========================================
   1. DESIGN TOKENS & CSS VARIABLES
   ======================================== */

:root {
  /* === COLORS: DARK THEME (DEFAULT) === */
  --bg: #0e0f12;
  --surface: #15171c;
  --surface-elevated: #1c1e24;
  --muted: #6b7280;
  --text: #f9fafb;
  --text-secondary: #d1d5db;

  /* LEGO-inspired accents (sophisticated) */
  --accent-red: #d7263d;
  --accent-yellow: #f2c94c;
  --accent-blue: #2d9cdb;
  --accent-green: #27ae60;
  --accent-ink: #111827;

  /* Semantic colors */
  --link: var(--accent-blue);
  --link-hover: #56b3e9;
  --success: #16a34a;
  --warn: #f59e0b;
  --error: #ef4444;
  --border: #23262d;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-soft: rgba(0, 0, 0, 0.15);

  /* === TYPOGRAPHY === */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Type scale */
  --fs-2xs: 0.75rem;    /* 12px */
  --fs-xs: 0.8125rem;   /* 13px */
  --fs-sm: 0.875rem;    /* 14px */
  --fs-base: 1rem;      /* 16px */
  --fs-lg: 1.125rem;    /* 18px */
  --fs-xl: 1.25rem;     /* 20px */
  --fs-2xl: 1.5rem;     /* 24px */
  --fs-3xl: 1.875rem;   /* 30px */
  --fs-4xl: 2.25rem;    /* 36px */
  --fs-5xl: 3rem;       /* 48px */

  /* Line heights */
  --lh-tight: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  /* === SPACING === */
  --sp-1: 0.25rem;   /* 4px */
  --sp-2: 0.5rem;    /* 8px */
  --sp-3: 0.75rem;   /* 12px */
  --sp-4: 1rem;      /* 16px */
  --sp-5: 1.25rem;   /* 20px */
  --sp-6: 1.5rem;    /* 24px */
  --sp-7: 2rem;      /* 32px */
  --sp-8: 2.5rem;    /* 40px */
  --sp-9: 3rem;      /* 48px */
  --sp-10: 4rem;     /* 64px */

  /* === BORDER RADIUS === */
  --r-sm: 0.5rem;    /* 8px */
  --r-md: 0.75rem;   /* 12px */
  --r-lg: 1rem;      /* 16px */
  --r-xl: 1.5rem;    /* 24px */
  --r-pill: 999px;

  /* === ELEVATION & SHADOWS === */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* LEGO stud shadow (creates subtle bevel effect) */
  --shadow-stud:
    inset 0 1px 2px rgba(255, 255, 255, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-stud-hover:
    inset 0 1px 3px rgba(255, 255, 255, 0.2),
    0 3px 8px rgba(0, 0, 0, 0.4),
    0 0 0 2px rgba(255, 255, 255, 0.1);

  /* === MOTION === */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);

  --dur-quick: 120ms;
  --dur-std: 220ms;
  --dur-slow: 380ms;

  /* === LAYOUT === */
  --max-width: 1160px;
  --content-width: 720px;
  --gutter: 1.5rem;
}

/* ========================================
   2. LIGHT THEME OVERRIDES
   ======================================== */

.theme-light {
  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-elevated: #f9fafb;
  --muted: #6b7280;
  --text: #111827;
  --text-secondary: #4b5563;
  --border: #e5e7eb;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-soft: rgba(0, 0, 0, 0.05);

  --shadow-stud:
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    0 1px 3px rgba(0, 0, 0, 0.15);
  --shadow-stud-hover:
    inset 0 1px 3px rgba(255, 255, 255, 0.9),
    0 3px 8px rgba(0, 0, 0, 0.2),
    0 0 0 2px rgba(0, 0, 0, 0.05);
}

/* ========================================
   3. GLOBAL RESETS & BASE STYLES
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text);
  background: var(--bg);
  transition: background var(--dur-std) var(--ease);
}

/* ========================================
   4. LEGO VISUAL LANGUAGE - SVG BACKGROUNDS
   ======================================== */

/* Subtle stud grid background pattern */
.bg-stud-pattern {
  background-image:
    radial-gradient(circle at center, var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  opacity: 0.4;
}

/* Stud separator for breadcrumbs */
.stud-separator::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: var(--shadow-stud);
  margin: 0 var(--sp-2);
  vertical-align: middle;
}

/* ========================================
   5. LAYOUT CONTAINERS
   ======================================== */

.article-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.article-content {
  max-width: var(--content-width);
  margin: 0 auto;
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

@media (min-width: 1024px) {
  .article-grid {
    grid-template-columns: minmax(200px, 240px) 1fr;
    gap: var(--sp-8);
  }

  .article-grid--with-rail {
    grid-template-columns: minmax(200px, 240px) 1fr minmax(200px, 280px);
  }
}

/* ========================================
   6. TYPOGRAPHY SYSTEM
   ======================================== */

.article-body {
  font-family: var(--font-sans);
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--text);
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--text);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-4);
}

.article-body h1 { font-size: var(--fs-5xl); }
.article-body h2 { font-size: var(--fs-3xl); }
.article-body h3 { font-size: var(--fs-2xl); }
.article-body h4 { font-size: var(--fs-xl); }

.article-body p {
  margin-bottom: var(--sp-5);
  max-width: 72ch;
}

.article-body a {
  color: var(--link);
  text-decoration: none;
  background: linear-gradient(to right, var(--link) 0%, var(--link) 100%);
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--dur-std) var(--ease), color var(--dur-std) var(--ease);
}

.article-body a:hover {
  color: var(--link-hover);
  background-size: 100% 2px;
}

/* Custom list styles with stud bullets */
.article-body ul {
  list-style: none;
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-5);
}

.article-body ul li {
  position: relative;
  margin-bottom: var(--sp-3);
  padding-left: var(--sp-4);
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: var(--shadow-stud);
}

/* Ordered lists with pill counters */
.article-body ol {
  list-style: none;
  counter-reset: list-counter;
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-5);
}

.article-body ol li {
  position: relative;
  margin-bottom: var(--sp-3);
  padding-left: var(--sp-7);
  counter-increment: list-counter;
}

.article-body ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 0.15em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--accent-blue);
  color: white;
  font-size: var(--fs-sm);
  font-weight: 600;
  font-family: var(--font-sans);
  box-shadow: var(--shadow-stud);
}

/* ========================================
   7. HEADER & NAVIGATION
   ======================================== */

.article-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  background: rgba(21, 23, 28, 0.9);
}

.theme-light .article-header {
  background: rgba(255, 255, 255, 0.9);
}

.article-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--sp-4) var(--gutter);
}

.article-header__brand {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.article-header__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.article-header__nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color var(--dur-std) var(--ease);
}

.article-header__nav a:hover {
  color: var(--text);
}

/* ========================================
   8. BREADCRUMBS
   ======================================== */

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: var(--sp-6);
  padding-top: var(--sp-6);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur-std) var(--ease);
}

.breadcrumbs a:hover {
  color: var(--text);
}

/* ========================================
   9. HERO / TITLE BLOCK
   ======================================== */

.article-hero {
  margin-bottom: var(--sp-8);
}

.article-hero__overline {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--accent-blue);
  color: white;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-4);
  box-shadow: var(--shadow-stud);
}

.article-hero__title {
  font-size: var(--fs-5xl);
  font-weight: 800;
  line-height: var(--lh-tight);
  margin: var(--sp-4) 0;
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
}

.article-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin: var(--sp-5) 0;
}

.article-hero__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: var(--shadow-stud);
}

.article-hero__media {
  position: relative;
  width: 100%;
  margin: var(--sp-6) 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-hero__media img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  display: block;
}

/* ========================================
   10. READING PROGRESS BAR
   ======================================== */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
  z-index: 1000;
}

.reading-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
  width: 0%;
  transition: width 100ms linear;
}

/* ========================================
   11. TABLE OF CONTENTS (TOC)
   ======================================== */

.toc {
  position: sticky;
  top: calc(var(--sp-10) + 60px);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  max-height: calc(100vh - var(--sp-10) - 80px);
  overflow-y: auto;
}

.toc__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: var(--sp-3);
}

.toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc__item {
  margin-bottom: var(--sp-2);
}

.toc__link {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--fs-sm);
  border-radius: var(--r-sm);
  transition: all var(--dur-std) var(--ease);
}

.toc__link:hover {
  background: var(--surface-elevated);
  color: var(--text);
}

.toc__link.is-active {
  background: var(--accent-blue);
  color: white;
  box-shadow: var(--shadow-stud);
}

/* ========================================
   12. COMPONENTS: CALLOUTS & INFO BOXES
   ======================================== */

.callout {
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border-left: 4px solid;
  margin: var(--sp-6) 0;
  background: var(--surface);
}

.callout--info {
  border-left-color: var(--accent-blue);
  background: rgba(45, 156, 219, 0.1);
}

.callout--success {
  border-left-color: var(--success);
  background: rgba(22, 163, 74, 0.1);
}

.callout--warning {
  border-left-color: var(--warn);
  background: rgba(245, 158, 11, 0.1);
}

.callout--error {
  border-left-color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}

.callout__title {
  font-weight: 700;
  margin-bottom: var(--sp-2);
  font-size: var(--fs-base);
}

/* ========================================
   13. COMPONENTS: PULL QUOTES
   ======================================== */

.pullquote {
  position: relative;
  padding: var(--sp-6) var(--sp-7);
  margin: var(--sp-8) 0;
  border-left: 4px solid var(--accent-yellow);
  background: var(--surface);
  border-radius: var(--r-lg);
}

.pullquote::before {
  content: '"';
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-5);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent-yellow);
  opacity: 0.3;
  font-family: var(--font-sans);
}

.pullquote__text {
  font-size: var(--fs-xl);
  font-style: italic;
  line-height: var(--lh-normal);
  position: relative;
  z-index: 1;
  margin-top: 30px;
}

/* ========================================
   14. COMPONENTS: PROS/CONS PANELS
   ======================================== */

.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin: var(--sp-6) 0;
}

@media (min-width: 768px) {
  .pros-cons {
    grid-template-columns: 1fr 1fr;
  }
}

.pros-cons__panel {
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 2px solid;
}

.pros-cons__panel--pros {
  border-color: var(--success);
}

.pros-cons__panel--cons {
  border-color: var(--error);
}

.pros-cons__title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-4);
}

.pros-cons__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pros-cons__list li {
  padding: var(--sp-2) 0;
  display: flex;
  gap: var(--sp-2);
}

/* ========================================
   15. COMPONENTS: TAGS
   ======================================== */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: var(--sp-6) 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--surface-elevated);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all var(--dur-std) var(--ease);
  box-shadow: var(--shadow-stud);
}

.tag:hover {
  background: var(--accent-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-stud-hover);
}

.tag:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* ========================================
   16. COMPONENTS: BUTTONS (STUD POP EFFECT)
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-lg);
  font-size: var(--fs-base);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--dur-quick) var(--ease);
  box-shadow: var(--shadow-stud);
  font-family: var(--font-sans);
}

.btn--primary {
  background: var(--accent-blue);
  color: white;
}

.btn--primary:hover {
  background: var(--link-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-stud-hover);
}

.btn--secondary {
  background: var(--surface-elevated);
  color: var(--text);
  border: 2px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-stud-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--accent-blue);
  box-shadow: none;
  border: 2px solid var(--accent-blue);
}

.btn--ghost:hover {
  background: var(--accent-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-stud-hover);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 4px;
}

/* ========================================
   17. COMPONENTS: AFFILIATE CTA
   ======================================== */

.affiliate-cta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--surface-elevated);
  border: 2px solid var(--accent-yellow);
  margin: var(--sp-6) 0;
}

.affiliate-cta__price {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--accent-yellow);
}

.affiliate-cta__buttons {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.affiliate-cta__disclaimer {
  font-size: var(--fs-xs);
  color: var(--muted);
  font-style: italic;
}

/* ========================================
   18. COMPONENTS: RELATED ARTICLES
   ======================================== */

.related-articles {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin: var(--sp-8) 0;
}

@media (min-width: 640px) {
  .related-articles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .related-articles {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-article {
  display: flex;
  flex-direction: column;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all var(--dur-std) var(--ease);
}

.related-article:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 2px var(--accent-blue);
}

.related-article__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--sp-2);
}

.related-article__excerpt {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}

/* ========================================
   19. COMPONENTS: BACK TO TOP FAB
   ======================================== */

.back-to-top {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur-std) var(--ease);
  box-shadow: var(--shadow-stud);
  z-index: 50;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-stud-hover);
}

/* ========================================
   20. COMPONENTS: THEME TOGGLE
   ======================================== */

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--dur-std) var(--ease);
  box-shadow: var(--shadow-stud);
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-stud-hover);
}

/* ========================================
   21. COMPONENTS: SHARE MENU
   ======================================== */

.share-menu {
  display: flex;
  gap: var(--sp-2);
  margin: var(--sp-6) 0;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--dur-std) var(--ease);
  box-shadow: var(--shadow-stud);
  color: var(--text-secondary);
  text-decoration: none;
}

.share-btn:hover {
  background: var(--accent-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-stud-hover);
}

/* ========================================
   22. COMPONENTS: TABLES
   ======================================== */

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-6) 0;
  font-size: var(--fs-sm);
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-body thead {
  background: var(--surface-elevated);
}

.article-body th {
  padding: var(--sp-4);
  text-align: left;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border);
}

.article-body td {
  padding: var(--sp-4);
  border-bottom: 1px solid var(--border);
}

.article-body tbody tr:nth-child(even) {
  background: var(--surface-elevated);
}

.article-body tbody tr:hover {
  background: rgba(45, 156, 219, 0.1);
}

/* ========================================
   23. COMPONENTS: CODE & INLINE ELEMENTS
   ======================================== */

.article-body code,
.article-body kbd {
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-sm);
  background: var(--surface-elevated);
  color: var(--accent-yellow);
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 0.9em;
  border: 1px solid var(--border);
}

.article-body pre {
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--surface-elevated);
  overflow-x: auto;
  margin: var(--sp-6) 0;
  border: 1px solid var(--border);
}

.article-body pre code {
  padding: 0;
  background: none;
  border: none;
  color: var(--text);
}

/* ========================================
   24. COMPONENTS: FIGURES & CAPTIONS
   ======================================== */

.article-body figure {
  margin: var(--sp-8) 0;
}

.article-body figure img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

.article-body figcaption {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--accent-blue);
}

/* ========================================
   25. UTILITY CLASSES
   ======================================== */

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

.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 4px;
  border-radius: var(--r-sm);
}

/* ========================================
   26. RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 767px) {
  .hide-mobile { display: none !important; }

  .article-hero__title {
    font-size: var(--fs-3xl);
  }

  .article-body {
    font-size: var(--fs-base);
  }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

/* ========================================
   27. PRINT STYLES
   ======================================== */

@media print {
  .article-header,
  .back-to-top,
  .share-menu,
  .toc,
  .affiliate-cta,
  .related-articles {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .article-body a {
    color: black;
    text-decoration: underline;
  }
}
/* Article Content Styling for SEO Blog Posts */

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.8;
  color: #333;
}

.article-content .lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
}

.article-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.article-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2a2a2a;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #3a3a3a;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.article-content strong {
  font-weight: 700;
  color: #1a1a1a;
}

/* Table of Contents */
.table-of-contents {
  background: #f8f9fa;
  border-left: 4px solid #667eea;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.table-of-contents h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.table-of-contents ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.table-of-contents li {
  margin-bottom: 0.5rem;
}

.table-of-contents a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.table-of-contents a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Pro Tips / Callout Boxes */
.pro-tip {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.pro-tip h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: white;
  font-size: 1.25rem;
}

.pro-tip p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.95);
}

/* Product Highlights */
.product-highlight {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-highlight h4 {
  margin-top: 0;
  color: #D11013;
  font-size: 1.3rem;
}

.product-feature {
  background: #f8f9fa;
  border-left: 4px solid #4caf50;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.product-feature h4 {
  margin-top: 0;
}

/* Set Comparison Boxes */
.set-comparison {
  background: #f8f9fa;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 12px;
}

.set-comparison h4 {
  color: #D11013;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.set-comparison h4:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* FAQ Section */
.faq-section {
  margin: 2rem 0;
}

.faq-section h3 {
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  border-left: 4px solid #667eea;
  border-radius: 8px;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.faq-section p {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

/* CTA Buttons */
.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: #D11013;
  color: white;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  margin: 1rem 0.5rem 1rem 0;
  transition: all 0.3s;
  text-align: center;
  box-shadow: 0 4px 12px rgba(209, 16, 19, 0.2);
}

.cta-button:hover {
  background: #a00e10;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(209, 16, 19, 0.3);
  color: white;
  text-decoration: none;
}

.cta-button-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.cta-button-secondary {
  background: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.cta-button-secondary:hover {
  background: #764ba2;
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.cta-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #667eea;
  transition: all 0.2s;
}

.cta-link:hover {
  color: #764ba2;
  border-bottom-color: #764ba2;
}

/* Final CTA Section */
.final-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 16px;
  margin: 3rem 0;
  text-align: center;
}

.final-cta h3 {
  color: white;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.final-cta .cta-button {
  margin: 0.5rem;
}

/* Comparison Tables */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  background: var(--surface, white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.95rem;
}

.comparison-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.comparison-table thead th {
  padding: 1rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 3px solid #5a67d8;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  white-space: normal;
  line-height: 1.4;
}

.comparison-table thead th:last-child {
  border-right: none;
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--border, #e0e0e0);
  transition: background-color 0.2s;
}

.comparison-table tbody tr:hover {
  background-color: var(--surface-elevated, #f8f9fa);
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

.comparison-table tbody td {
  padding: 1rem 1rem;
  font-size: 0.9rem;
  vertical-align: middle;
  color: var(--text, #333);
  border-right: 1px solid var(--border, #e8e8e8);
  line-height: 1.5;
}

.comparison-table tbody td:last-child {
  border-right: none;
}

.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--text, #1a1a1a);
  background-color: var(--surface-elevated, #f8f9fa);
  white-space: nowrap;
}

.comparison-table tbody td:nth-child(n+2):nth-last-child(n+2) {
  text-align: center;
}

.comparison-table tbody td:last-child {
  font-weight: 600;
  color: #4caf50;
  text-align: center;
}

.comparison-table .winner-row {
  background-color: rgba(255, 248, 225, 0.3);
  font-weight: 700;
}

.comparison-table .winner-row td {
  padding: 1.25rem 1rem;
  font-size: 1.05rem;
}

.comparison-table .winner-row td:last-child {
  color: #D11013;
  font-size: 1.15rem;
}

/* Quick Answer Box */
.quick-answer {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 8px;
  font-size: 1.05rem;
}

.quick-answer strong {
  color: #1565c0;
  display: block;
  margin-bottom: 0.5rem;
}

/* CTA Buttons Container */
.cta-buttons {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

/* Final Verdict Box */
.final-verdict {
  background: #f1f8f4;
  border: 2px solid #4caf50;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.final-verdict h3 {
  color: #2e7d32;
  margin-top: 0;
  margin-bottom: 1rem;
}

.final-verdict ul {
  margin-bottom: 0;
}

/* Final Recommendations Section */
.final-recommendations {
  background: var(--surface, #f9f9f9);
  border: 2px solid var(--border, #e0e0e0);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.final-recommendations h3 {
  color: var(--text, #1a1a1a);
  font-size: 1.35rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border, #e0e0e0);
}

.final-recommendations h3:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.final-recommendations p {
  color: var(--text-secondary, #555);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Article Footer */
.article-footer {
  font-size: 0.875rem;
  color: #999;
  text-align: center;
  font-style: italic;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid #e0e0e0;
}

/* Disclaimer */
.disclaimer {
  font-size: 0.875rem;
  color: #999;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
  .article-content {
    padding: 1rem;
  }

  .article-content .lead {
    font-size: 1.1rem;
  }

  .article-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .article-content h3 {
    font-size: 1.25rem;
  }

  .article-content h4 {
    font-size: 1.1rem;
  }

  .table-of-contents,
  .pro-tip,
  .product-highlight,
  .product-feature,
  .set-comparison {
    padding: 1.5rem;
  }

  .faq-section p {
    padding-left: 0.5rem;
  }

  .final-cta {
    padding: 2rem 1rem;
  }

  .final-cta h3 {
    font-size: 1.5rem;
  }

  .cta-button {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }

  /* Responsive Comparison Tables */
  .comparison-table {
    font-size: 0.85rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table thead,
  .comparison-table tbody,
  .comparison-table tr {
    display: table;
    width: 100%;
    min-width: 600px;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 0.75rem 0.5rem;
  }

  .comparison-table thead th {
    font-size: 0.8rem;
  }

  .comparison-table tbody td {
    font-size: 0.8rem;
  }

  /* Stack table cells on very small screens */
  @media (max-width: 480px) {
    .comparison-table thead {
      display: none;
    }

    .comparison-table tbody tr {
      display: block;
      margin-bottom: 1.5rem;
      border: 1px solid #e0e0e0;
      border-radius: 8px;
      overflow: hidden;
    }

    .comparison-table tbody td {
      display: block;
      text-align: left;
      padding: 0.75rem 1rem;
      border-bottom: 1px solid #f0f0f0;
    }

    .comparison-table tbody td:first-child {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      font-size: 1rem;
    }

    .comparison-table tbody td:last-child {
      text-align: left;
      border-bottom: none;
    }

    .comparison-table tbody td:before {
      content: attr(data-label);
      font-weight: 600;
      display: block;
      margin-bottom: 0.25rem;
      color: #666;
    }

    .comparison-table tbody td:first-child:before {
      display: none;
    }
  }

  .cta-buttons {
    flex-direction: column;
  }

  .quick-answer,
  .final-verdict {
    padding: 1.5rem;
  }
}
/* LEGO-inspired Login Page Styles */

.login-container {
  min-height: 100vh;
  background: linear-gradient(180deg, #FFD700 0%, #FFC700 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.login-card {
  background: white;
  border-radius: 2rem;
  padding: 3rem 2rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.login-logo {
  max-width: 200px;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
}

.login-title {
  font-size: 3rem;
  font-weight: 700;
  color: #000;
  margin: 0 0 2rem;
  letter-spacing: -0.02em;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-input {
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-size: 1.125rem;
  border: 2px solid #E5E5E5;
  border-radius: 1.5rem;
  background: #FAFAFA;
  color: #333;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #005CB9;
  background: white;
}

.form-input::placeholder {
  color: #999;
}

.form-actions {
  margin: 1rem 0;
}

.btn-sign-in {
  width: 100%;
  padding: 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  background: #FFD700;
  border: none;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-sign-in:hover {
  background: #FFC700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-sign-in:active {
  transform: translateY(0);
}

.login-links {
  margin: 1.5rem 0;
}

.forgot-password-link {
  color: #005CB9;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password-link:hover {
  color: #003d82;
  text-decoration: underline;
}

.social-login {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.social-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #333;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: #f5f5f5;
  transform: scale(1.05);
}

.social-icon {
  font-size: 1.5rem;
  font-weight: 700;
}

.facebook-btn .social-icon {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-style: italic;
}

.google-btn .social-icon {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
}

.privacy-notice {
  margin: 2rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #333;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.login-footer {
  margin-top: 3rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-link {
  color: #000;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.footer-link:hover {
  opacity: 0.7;
}

/* Error Messages */
.devise-error-messages {
  background: #f8d7da;
  border: 2px solid #f5c6cb;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.error-title {
  color: #721c24;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
}

.error-list {
  margin: 0;
  padding-left: 1.5rem;
  color: #721c24;
  font-size: 0.875rem;
  line-height: 1.5;
}

.error-list li {
  margin-bottom: 0.25rem;
}

/* Responsive Design */
@media (max-width: 640px) {
  .login-container {
    padding: 1rem;
  }

  .login-card {
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
  }

  .login-title {
    font-size: 2.5rem;
  }

  .login-logo {
    max-width: 150px;
  }

  .form-input {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }

  .btn-sign-in {
    padding: 1rem;
    font-size: 1.125rem;
  }

  .social-btn {
    width: 50px;
    height: 50px;
  }

  .social-icon {
    font-size: 1.25rem;
  }
}

/* Flash Messages on Login Page */
.login-container .notice,
.login-container .alert {
  max-width: 500px;
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 1rem;
}
/* ===================================
   FOOTER STYLES
   =================================== */

.site-footer {
  background-color: #201d48;
  color: #ffffff;
  margin-top: 4rem;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}

/* Brand Section */
.footer-brand {
  grid-column: 1 / -1;
  max-width: 400px;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo-image {
  max-width: 180px;
  height: auto;
  display: block;
}

.footer-tagline {
  color: #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 1rem 0;
}

/* Footer Sections */
.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Navigation Lists */
.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-list li {
  margin: 0;
}

.footer-link {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-link:hover,
.footer-link:focus {
  color: #ffffff;
  padding-left: 0.5rem;
}

.footer-link::before {
  content: "›";
  position: absolute;
  left: -0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease, left 0.3s ease;
}

.footer-link:hover::before,
.footer-link:focus::before {
  opacity: 1;
  left: 0;
}

/* Social Media */
.footer-social {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, #2c2766 0%, #201d48 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem 0;
  margin-bottom: 2rem;
}

.newsletter-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.newsletter-content {
  text-align: left;
}

.newsletter-heading {
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.newsletter-description {
  color: #e0e0e0;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.newsletter-form-wrapper {
  width: 100%;
}

.newsletter-form {
  width: 100%;
}

.newsletter-input-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.newsletter-email-input {
  flex: 1;
  min-width: 250px;
  padding: 0.9rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.newsletter-email-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-email-input:focus {
  outline: none;
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.newsletter-email-input:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.newsletter-submit-btn {
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.newsletter-submit-btn:hover {
  background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.newsletter-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.newsletter-submit-btn:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.newsletter-privacy-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

/* Bottom Bar */
.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  margin-top: 0;
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-copyright,
.footer-disclaimer {
  color: #b8b8b8;
  font-size: 0.85rem;
  margin: 0.5rem 0;
  line-height: 1.6;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: #999;
  font-style: italic;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / 2;
  }

  .footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding: 2rem 0 0;
    margin-top: 2rem;
  }

  .footer-container {
    gap: 1.5rem;
    padding: 0 1rem 1rem;
    grid-template-columns: 1fr;
  }

  .footer-brand {
    text-align: center;
    max-width: 100%;
  }

  .footer-logo-image {
    max-width: 150px;
    margin: 0 auto;
  }

  .footer-tagline {
    font-size: 0.9rem;
  }

  .footer-section {
    text-align: center;
  }

  .footer-heading {
    font-size: 1rem;
    text-align: center;
  }

  .footer-nav-list {
    align-items: center;
  }

  .footer-link {
    font-size: 0.85rem;
  }

  .newsletter-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
    text-align: center;
  }

  .newsletter-content {
    text-align: center;
  }

  .newsletter-heading {
    font-size: 1.4rem;
  }

  .newsletter-description {
    font-size: 0.9rem;
  }

  .newsletter-input-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .newsletter-email-input {
    min-width: 100%;
  }

  .newsletter-submit-btn {
    width: 100%;
  }

  .footer-bottom-container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-copyright,
  .footer-disclaimer {
    text-align: center;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 0 0.75rem 0.75rem;
    gap: 1rem;
  }

  .footer-logo-image {
    max-width: 120px;
  }

  .footer-tagline {
    font-size: 0.85rem;
  }

  .footer-heading {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .footer-link {
    font-size: 0.8rem;
  }

  .footer-nav-list {
    gap: 0.5rem;
  }

  .newsletter-section {
    padding: 1.5rem 0;
    margin-bottom: 1rem;
  }

  .newsletter-container {
    padding: 0 0.75rem;
    gap: 1rem;
  }

  .newsletter-heading {
    font-size: 1.2rem;
  }

  .newsletter-description {
    font-size: 0.85rem;
  }

  .newsletter-email-input {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .newsletter-submit-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .newsletter-privacy-note {
    font-size: 0.7rem;
  }

  .footer-copyright,
  .footer-disclaimer {
    font-size: 0.75rem;
  }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.footer-link:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 2px;
}

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

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
  .site-footer {
    background-color: #fff;
    color: #000;
    border-top: 2px solid #201d48;
  }

  .footer-link {
    color: #000;
  }

  .footer-social,
  .newsletter-section {
    display: none;
  }
}
/* LEGO® Homepage Styles */

:root {
  --lego-red: #D11013;
  --lego-yellow: #FFD700;
  --lego-blue: #0055BF;
  --lego-green: #237F52;
  --lego-light-gray: #F5F5F5;
  --text-dark: #1A1A1A;
  --white: #FFFFFF;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.5;
  background-color: var(--white);
}

.lego-homepage {
  width: 100%;
  overflow-x: hidden;
}

/* Header */
.header {
  background-color: var(--lego-yellow);
  border-bottom: 1px solid #E0E0E0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  flex-shrink: 0;
}

.logo-image {
  height: 60px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--lego-red);
}

.nav-icons {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  align-items: center;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-dark);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.icon-btn:hover {
  color: var(--lego-red);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-dark);
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent; /* Remove iOS tap highlight */
  touch-action: manipulation; /* Prevent double-tap zoom on iOS */
  position: relative;
  z-index: 1001; /* Ensure it's above other elements */
  min-width: 44px; /* iOS minimum touch target */
  min-height: 44px; /* iOS minimum touch target */
}

.mobile-menu-toggle:hover {
  color: var(--lego-red);
}

/* iOS Safari specific styles for better touch handling */
@supports (-webkit-touch-callout: none) {
  .mobile-menu-toggle {
    -webkit-user-select: none;
    user-select: none;
  }
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-email {
  font-size: 0.875rem;
  color: #666;
}

.admin-badge {
  background: #ff0000;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.logout-btn,
.login-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, var(--lego-red) 0%, var(--lego-red) 50%, var(--lego-blue) 50%, var(--lego-blue) 100%);
  display: flex;
  min-height: 400px;
  position: relative;
}

.hero-content {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 3rem 4rem;
}

.hero-title {
  color: var(--white);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 2px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-main-text {
  display: block;
}

.hero-subtitle {
  display: block;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0.95;
  line-height: 1.4;
}

.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.brick-display {
  width: 100%;
  height: 100%;
  background-image: url('https://www.lego.com/cdn/cs/set/assets/bltcf20096d15e25f4c/10365_Prod_en-gb.png?format=webply&fit=bounds&quality=60&width=800&height=800&dpr=2');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
}

/* Section Styles */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 1px;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  min-height: 300px;
  text-decoration: none;
}

.category-card:nth-child(9) {
  grid-column: 2 / 4;
  max-width: 350px;
  justify-self: center;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.category-minifigures {
  background: linear-gradient(135deg, #0055BF 0%, #0066DD 100%);
}

.category-vehicles {
  background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
}

.category-buildings {
  background: linear-gradient(135deg, #90C695 0%, #7AB87E 100%);
}

.category-creative {
  background: linear-gradient(135deg, #D11013 0%, #E01518 100%);
}

.category-icon {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.category-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--lego-blue);
  text-align: center;
}

.minifigure-icon,
.vehicle-icon,
.building-icon,
.creative-icon {
  width: 100px;
  height: 100px;
  background: var(--white);
  border-radius: 8px;
}

/* Product Grid */
.section-new-arrivals {
  background-color: var(--lego-yellow);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s;
  cursor: pointer;
}

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

.product-image {
  width: 100%;
  height: 400px;
  position: relative;
}

.product-walker .product-image {
  background: linear-gradient(135deg, var(--lego-blue) 0%, #0066DD 100%);
}

.product-firetruck .product-image {
  background: linear-gradient(135deg, var(--white) 0%, #F0F0F0 100%);
}

/* Exclusive Sets */
.section-exclusive {
  background: linear-gradient(to bottom, var(--white) 0%, var(--lego-light-gray) 100%);
  padding-bottom: 5rem;
}

.exclusive-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 400px;
}

.exclusive-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.colosseum-icon {
  width: 300px;
  height: 200px;
  background: linear-gradient(135deg, #D4AF76 0%, #C9A66B 100%);
  border-radius: 50% 50% 0 0;
  position: relative;
}

.exclusive-bricks {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.floating-bricks {
  display: grid;
  grid-template-columns: repeat(3, 60px);
  grid-template-rows: repeat(3, 60px);
  gap: 1rem;
  transform: rotate(45deg);
}

.floating-bricks::before,
.floating-bricks::after {
  content: '';
  width: 60px;
  height: 60px;
  border-radius: 8px;
}

.exclusive-minifig {
  display: flex;
  align-items: center;
  justify-content: center;
}

.builder-minifig {
  width: 150px;
  height: 200px;
  background: var(--lego-yellow);
  border-radius: 12px;
  position: relative;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

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

  .exclusive-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0.75rem 1rem;
    position: relative;
  }

  .logo-image {
    height: 50px;
  }

  .mobile-menu-toggle {
    display: flex;
    order: 2;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--lego-yellow);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    font-size: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
  }

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

  .nav-icons {
    order: 3;
    gap: 0.25rem;
  }

  .user-email {
    display: none;
  }

  .search-btn {
    display: none;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero {
    flex-direction: column;
    background: var(--lego-red);
    min-height: auto;
  }

  .hero-title {
    font-size: 2.5rem;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-content {
    padding: 2rem 1.5rem;
    justify-content: center;
  }

  .hero-image {
    min-height: 200px;
  }

  .section {
    padding: 2rem 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

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

  .category-card {
    min-height: 200px;
    padding: 1.5rem;
  }

  .category-card:nth-child(9) {
    grid-column: 1 / -1;
  }

  .category-icon {
    width: 150px;
    height: 150px;
  }

  .category-name {
    font-size: 1.2rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0.5rem 0.75rem;
  }

  .logo-image {
    height: 40px;
  }

  .nav-menu {
    gap: 0.5rem;
    padding-top: 0.5rem;
  }

  .nav-link {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-content {
    padding: 1.5rem 1rem;
  }

  .hero-image {
    min-height: 150px;
    padding: 1rem;
  }

  .section {
    padding: 1.5rem 0.75rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .category-card {
    min-height: 180px;
    padding: 1.25rem;
  }

  .category-card:nth-child(9) {
    grid-column: 1;
  }

  .category-icon {
    width: 120px;
    height: 120px;
  }

  .category-name {
    font-size: 1.1rem;
  }

  .product-grid {
    gap: 1.25rem;
  }
}

/* Universal Product Card Styles */
.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.product-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-image-container {
  position: relative;
  padding: 2rem;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-wrapper {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.15));
}

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

.product-placeholder,
.featured-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0e0e0;
  color: #999;
  font-size: 1rem;
}

.product-content {
  padding: 1.25rem 1.75rem;
  background: white;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0;
}

.product-description {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.5;
  margin: 0.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  width: fit-content;
  flex-shrink: 0;
}

.product-badge-age {
  background: #e3f2fd;
  color: #1565c0;
}

.product-badge-pieces {
  background: #e8f5e9;
  color: #2e7d32;
}

.product-badge-views {
  background: #fff3e0;
  color: #e65100;
}

.product-footer {
  padding: 1rem 1.75rem 1.5rem;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f0f0f0;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--lego-red);
  margin: 0;
}

.product-buy-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: white;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 2px solid #000;
  text-align: center;
  transition: all 0.2s ease;
  text-transform: none;
  letter-spacing: 0.3px;
  box-shadow: none;
}

.product-buy-btn:hover {
  background: white;
  color: #FF9900;
  border-color: #FF9900;
  transform: none;
  box-shadow: none;
}

.product-buy-btn:active {
  transform: none;
  box-shadow: none;
}

/* New Arrivals Cards - Fresh color palette */
.new-arrival-card {
  position: relative;
}

.new-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 800;
  font-size: 0.8rem;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.new-arrival-color-0 .product-image-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.new-arrival-color-1 .product-image-container {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.new-arrival-color-2 .product-image-container {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.new-arrival-color-3 .product-image-container {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.new-arrival-color-4 .product-image-container {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.new-arrival-color-5 .product-image-container {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.empty-products {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 8px;
}

.empty-products p {
  font-size: 1.2rem;
  color: #666;
}

.add-product-link {
  color: #007bff;
  font-weight: 600;
}

/* Featured Products Section */
.section-featured {
  margin-top: 4rem;
  /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
  background-color: var(--lego-blue);
  position: relative;
}

.section-featured .section-title {
  color: var(--text-dark);
}

/* Featured Card - New Design Inspired by Reference */
.featured-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Colored Background Variations */
.featured-card-color-0 .featured-image-container {
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
}

.featured-card-color-1 .featured-image-container {
  background: linear-gradient(135deg, #7CB342 0%, #558B2F 100%);
}

.featured-card-color-2 .featured-image-container {
  background: linear-gradient(135deg, #424242 0%, #212121 100%);
}

.featured-card-color-3 .featured-image-container {
  background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
}

.featured-card-color-4 .featured-image-container {
  background: linear-gradient(135deg, #FB8C00 0%, #EF6C00 100%);
}

.featured-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.featured-image-container {
  position: relative;
  padding: 2rem;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-image-wrapper {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2));
}

.featured-card:hover .featured-image {
  transform: scale(1.08);
}

.featured-content {
  padding: 1.5rem 2rem;
  background: white;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
  line-height: 1.3;
}

.featured-description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.featured-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
}

.featured-badge-pieces {
  background: #e8f5e9;
  color: #2e7d32;
}

.featured-badge-age {
  background: #e3f2fd;
  color: #1565c0;
}

.featured-footer {
  padding: 1rem 2rem 1.5rem;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f0f0f0;
}

.featured-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--lego-red);
  margin: 0;
}

.featured-buy-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: white;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  border: 2px solid #000;
  text-align: center;
  transition: all 0.2s ease;
  text-transform: none;
  letter-spacing: 0.3px;
  box-shadow: none;
}

.featured-buy-btn:hover {
  background: white;
  color: #FF9900;
  border-color: #FF9900;
  transform: none;
  box-shadow: none;
}

.featured-buy-btn:active {
  transform: none;
  box-shadow: none;
}

.featured-ad-card {
  min-height: 650px;
}

.featured-ad-card .ad-card-link {
  min-height: 650px;
}

.featured-ad-card .ad-card-content {
  min-height: 650px;
}

.featured-ad-card .ad-placeholder {
  min-height: 600px;
}

.featured-ad-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.admin-section {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.admin-quick-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.2s;
  background: #6c757d;
  color: white;
}

.admin-btn:hover {
  background: #545b62;
  transform: translateY(-2px);
}

.admin-btn-primary {
  background: #007bff;
}

.admin-btn-primary:hover {
  background: #0056b3;
}

/* Slider Styles */
.slider-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.slider-wrapper {
  overflow: hidden;
  border-radius: 12px;
}

.slider-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.4s ease-in-out;
}

.slider-item {
  flex: 0 0 calc(50% - 1rem);
  min-width: calc(50% - 1rem);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
  z-index: 10;
}

.slider-btn:hover {
  background: var(--lego-red);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-btn-prev {
  left: 0;
}

.slider-btn-next {
  right: 0;
}

.slider-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slider-btn:disabled:hover {
  background: white;
  color: currentColor;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Ad Card Styles */
.ad-card {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  border: 2px dashed #999;
  min-height: 550px;
  position: relative;
}

.sponsored-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ad-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 550px;
}

.ad-card-content {
  height: 100%;
  min-height: 550px;
  display: flex;
  flex-direction: column;
}

.ad-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  min-height: 500px;
}

.ad-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #666;
  margin-bottom: 0.5rem;
}

.ad-subtext {
  font-size: 1rem;
  color: #999;
}

.ad-card .ad-image,
.ad-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  padding: 2rem;
}

.ad-card:hover {
  transform: scale(1.02);
  border-color: var(--lego-red);
}

/* Rakuten ad card styling */
.ad-card-content .ad-card-image {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Trending Section Styles */
.section-trending {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.section-trending::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.section-trending .section-title {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
}

/* Trending Cards - Bold warm gradients */
.trending-card {
  position: relative;
}

.trending-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.875rem;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.5);
  animation: pulse-glow 2s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.7), 0 0 16px rgba(255, 107, 53, 0.5);
    transform: scale(1.05);
  }
}

.trending-color-0 .product-image-container {
  background: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%);
}

.trending-color-1 .product-image-container {
  background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.trending-color-2 .product-image-container {
  background: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%);
}

.trending-color-3 .product-image-container {
  background: linear-gradient(135deg, #f857a6 0%, #ff5858 100%);
}

/* Special styling for trending buy button */
.trending-buy-btn {
  background: white;
  color: #000;
  border: 2px solid #000;
  position: relative;
  overflow: hidden;
}

.trending-buy-btn::before {
  display: none;
}

.trending-buy-btn:hover::before {
  display: none;
}

.trending-buy-btn:hover {
  background: white;
  color: #FF9900;
  border-color: #FF9900;
  box-shadow: none;
}

.trending-card:hover .product-image {
  transform: scale(1.12) rotate(2deg);
}

/* Responsive Updates for All Product Cards */
@media (max-width: 768px) {
  /* Universal product cards */
  .product-image-container {
    min-height: 240px;
    padding: 1.5rem;
  }

  .product-image-wrapper {
    max-width: 250px;
  }

  .product-content {
    padding: 1rem 1.5rem;
  }

  .product-title {
    font-size: 1.05rem;
  }

  .product-description {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }

  .product-footer {
    padding: 0.875rem 1.5rem 1.25rem;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .product-price {
    font-size: 1.3rem;
    text-align: center;
  }

  .product-buy-btn {
    width: 100%;
  }

  /* Featured cards */
  .featured-image-container {
    min-height: 250px;
    padding: 1.5rem;
  }

  .featured-image-wrapper {
    max-width: 280px;
  }

  .featured-content {
    padding: 1.25rem 1.5rem;
  }

  .featured-title {
    font-size: 1.1rem;
  }

  .featured-description {
    font-size: 0.9rem;
  }

  .featured-footer {
    padding: 0.875rem 1.5rem 1.25rem;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .featured-price {
    font-size: 1.3rem;
    text-align: center;
  }

  .featured-buy-btn {
    width: 100%;
  }

  /* Badges */
  .new-badge,
  .trending-badge {
    font-size: 0.75rem;
    padding: 0.45rem 0.9rem;
  }

  .slider-container {
    padding: 0 50px;
  }

  .slider-item {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  /* Universal product cards */
  .product-image-container {
    min-height: 200px;
    padding: 1rem;
  }

  .product-image-wrapper {
    max-width: 200px;
  }

  .product-content {
    padding: 1rem 1.25rem;
  }

  .product-title {
    font-size: 0.95rem;
  }

  .product-description {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
    margin: 0.375rem 0;
  }

  .product-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .product-footer {
    padding: 0.75rem 1.25rem 1rem;
  }

  .product-price {
    font-size: 1.2rem;
  }

  .product-buy-btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.85rem;
  }

  /* Featured cards */
  .featured-image-container {
    min-height: 200px;
    padding: 1rem;
  }

  .featured-image-wrapper {
    max-width: 220px;
  }

  .featured-content {
    padding: 1rem 1.25rem;
  }

  .featured-title {
    font-size: 1rem;
  }

  .featured-description {
    font-size: 0.85rem;
  }

  .featured-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .featured-footer {
    padding: 0.75rem 1.25rem 1rem;
  }

  .featured-price {
    font-size: 1.2rem;
  }

  .featured-buy-btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }

  /* Badges */
  .new-badge,
  .trending-badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    top: 0.75rem;
  }

  .slider-container {
    padding: 0 45px;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
  }
}

/* Buying Guides Section */
.section-guides {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  margin-top: 4rem;
}

.section-guides .section-title {
  color: var(--text-dark);
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.guide-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.guide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  transition: all 0.3s;
}

.guide-card-1::before {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.guide-card-2::before {
  background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.guide-card-3::before {
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.guide-card-4::before {
  background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
}

.guide-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.guide-card:hover::before {
  height: 8px;
}

.guide-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.guide-content {
  padding: 2rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guide-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.3;
}

.guide-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  flex: 1;
  margin: 0;
}

.guide-read-more {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--lego-red);
  margin-top: auto;
  transition: transform 0.3s;
}

.guide-card:hover .guide-read-more {
  transform: translateX(8px);
}

/* Responsive for guides */
@media (max-width: 768px) {
  .guides-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .guide-content {
    padding: 1.5rem;
    min-height: 150px;
  }

  .guide-title {
    font-size: 1.3rem;
  }

  .guide-description {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .guide-content {
    padding: 1.25rem;
    min-height: 140px;
  }

  .guide-title {
    font-size: 1.15rem;
  }

  .guide-description {
    font-size: 0.9rem;
  }

  .guide-read-more {
    font-size: 0.9rem;
  }
}

/* Trending Articles Section */
.section-trending-articles {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.section-trending-articles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.section-trending-articles .section-title {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
}

.trending-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.trending-article-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.trending-article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.trending-article-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.trending-article-image {
  position: relative;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  max-height: 200px;
}

.trending-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.trending-article-card:hover .trending-article-image img {
  transform: scale(1.1);
}

.trending-article-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.trending-badge-article {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 800;
  font-size: 0.75rem;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.5);
  animation: pulse-glow 2s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trending-article-category-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

.trending-article-content {
  padding: 1.5rem;
  background: white;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trending-article-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-article-excerpt {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-article-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #999;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #f0f0f0;
}

.trending-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.trending-meta-item svg {
  flex-shrink: 0;
}

/* Colored backgrounds for article cards */
.trending-article-color-0 .trending-article-image {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.trending-article-color-1 .trending-article-image {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.trending-article-color-2 .trending-article-image {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.trending-article-color-3 .trending-article-image {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.trending-articles-footer {
  margin-top: 3rem;
  text-align: center;
  position: relative;
}

.view-all-articles-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: white;
  color: #667eea;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  border: 3px solid white;
  text-align: center;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.view-all-articles-btn:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* Responsive styles for trending articles */
@media (max-width: 1024px) {
  .trending-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .trending-articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .trending-article-image {
    min-height: 180px;
    max-height: 180px;
  }

  .trending-article-content {
    padding: 1.25rem;
  }

  .trending-article-title {
    font-size: 1.05rem;
  }

  .trending-article-excerpt {
    font-size: 0.85rem;
  }

  .trending-badge-article {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }

  .view-all-articles-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .trending-article-image {
    min-height: 160px;
    max-height: 160px;
  }

  .trending-article-content {
    padding: 1rem;
  }

  .trending-article-title {
    font-size: 0.95rem;
  }

  .trending-article-excerpt {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }

  .trending-article-meta {
    font-size: 0.75rem;
  }

  .trending-meta-item svg {
    width: 14px;
    height: 14px;
  }

  .view-all-articles-btn {
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
  }
}
/* Pagination Styles */
.pagination-container {
  margin-top: 3rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Per-page selector */
.per-page-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.per-page-selector label {
  font-weight: 600;
  color: #333;
}

.per-page-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.9rem;
  background: white;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 12px;
}

.per-page-select:hover {
  border-color: #D11013;
}

.per-page-select:focus {
  outline: none;
  border-color: #D11013;
  box-shadow: 0 0 0 3px rgba(209, 16, 19, 0.1);
}

.per-page-label {
  color: #666;
}

/* Pagination navigation */
.pagination-nav {
  display: flex;
  justify-content: center;
  width: 100%;
}

.pagination-wrapper {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: white;
  padding: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Page links */
.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem 0.75rem;
  border: 2px solid transparent;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  transition: all 0.2s;
  background: white;
}

.page-link:hover:not(.disabled):not(.active) {
  background: #f5f5f5;
  border-color: #e0e0e0;
  color: #D11013;
}

.page-link.active {
  background: #D11013;
  color: white;
  border-color: #D11013;
  cursor: default;
}

.page-link.disabled {
  color: #ccc;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Arrow styling */
.page-link[aria-label="Previous"],
.page-link[aria-label="Next"] {
  font-size: 1.5rem;
  font-weight: 400;
  padding: 0.25rem 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .pagination-container {
    gap: 1rem;
    margin-top: 2rem;
  }

  .pagination-wrapper {
    padding: 0.25rem;
    gap: 0.15rem;
  }

  .page-link {
    min-width: 36px;
    height: 36px;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .page-link[aria-label="Previous"],
  .page-link[aria-label="Next"] {
    font-size: 1.3rem;
  }

  .per-page-selector {
    font-size: 0.85rem;
  }

  .per-page-select {
    font-size: 0.85rem;
    padding: 0.4rem 1.75rem 0.4rem 0.6rem;
  }
}

@media (max-width: 480px) {
  .pagination-wrapper {
    flex-wrap: wrap;
  }

  .page-numbers {
    order: 2;
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .page-link {
    min-width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}
/* Product Details Page Styles */

.product-details-page {
  width: 100%;
  min-height: 100vh;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
}

/* Product Section */
.product-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.product-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Image Carousel */
.product-carousel {
  position: sticky;
  top: 100px;
}

.carousel-main {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Creates 1:1 aspect ratio */
  background-color: var(--lego-light-gray, #F5F5F5);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  height: 0;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-image.active {
  opacity: 1;
  z-index: 1;
}

.carousel-image img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.placeholder-image {
  width: 80%;
  height: 80%;
  border-radius: 8px;
}

.placeholder-walker-front {
  background: linear-gradient(135deg, var(--lego-blue) 0%, #0066DD 100%);
}

.placeholder-walker-1 {
  background: linear-gradient(135deg, #0066DD 0%, var(--lego-blue) 100%);
}

.placeholder-walker-2 {
  background: linear-gradient(135deg, var(--lego-red) 0%, #E01518 100%);
}

.placeholder-walker-3 {
  background: linear-gradient(135deg, var(--lego-yellow) 0%, #FFC700 100%);
}

.placeholder-walker-4 {
  background: linear-gradient(135deg, var(--lego-green) 0%, #1E6B46 100%);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, transform 0.2s;
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

.carousel-btn svg {
  color: var(--text-dark);
}

/* Image Counter */
.carousel-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 10;
  pointer-events: none;
}

/* Zoom Icon */
.zoom-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.zoom-icon:hover {
  background: white;
  transform: scale(1.1);
}

.zoom-icon svg {
  color: var(--text-dark);
}

/* Thumbnails */
.carousel-thumbnails-wrapper {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-thumbnails {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 0;
  scroll-behavior: smooth;
  flex: 1;
  scrollbar-width: thin;
}

.carousel-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.carousel-thumbnails::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.carousel-thumbnails::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.carousel-thumbnails::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.thumbnail {
  aspect-ratio: 1;
  border: 3px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--lego-light-gray);
  transition: border-color 0.3s, transform 0.2s;
  padding: 0;
  min-width: 80px;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.thumbnail:hover {
  transform: scale(1.05);
}

.thumbnail.active {
  border-color: var(--lego-red);
}

/* Thumbnail Navigation Buttons */
.thumbnail-nav-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #e0e0e0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
  z-index: 2;
}

.thumbnail-nav-btn:hover:not([style*="opacity: 0.3"]) {
  background: white;
  border-color: var(--lego-red);
  transform: scale(1.1);
}

.thumbnail-nav-btn svg {
  color: var(--text-dark);
  pointer-events: none;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image Modal */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.image-modal-content {
  position: relative;
  max-width: 95%;
  max-height: 95%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1;
}

.image-modal-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.image-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.image-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.image-modal-close svg {
  color: white;
}

.image-modal-counter {
  margin-top: 1rem;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.placeholder-thumbnail {
  width: 100%;
  height: 100%;
}

.placeholder-thumb-0 {
  background: linear-gradient(135deg, var(--lego-blue) 0%, #0066DD 100%);
}

.placeholder-thumb-1 {
  background: linear-gradient(135deg, #0066DD 0%, var(--lego-blue) 100%);
}

.placeholder-thumb-2 {
  background: linear-gradient(135deg, var(--lego-red) 0%, #E01518 100%);
}

.placeholder-thumb-3 {
  background: linear-gradient(135deg, var(--lego-yellow) 0%, #FFC700 100%);
}

.placeholder-thumb-4 {
  background: linear-gradient(135deg, var(--lego-green) 0%, #1E6B46 100%);
}

/* Product Information */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: 1px;
}

.product-meta {
  display: flex;
  gap: 2rem;
  font-size: 1rem;
  color: #666;
}

.product-age,
.product-pieces {
  font-weight: 600;
}

.product-price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--lego-red);
}

.buy-now-btn {
  background-color: var(--lego-red);
  color: var(--white);
  border: none;
  padding: 1.25rem 3rem;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 1px;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  width: fit-content;
}

.buy-now-btn:hover {
  background-color: #B00E11;
  transform: scale(1.05);
}

.product-description {
  padding-top: 1rem;
  border-top: 2px solid var(--lego-light-gray);
}

.description-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.description-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #333;
}

.product-features {
  padding-top: 1rem;
  border-top: 2px solid var(--lego-light-gray);
}

.features-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.features-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-item {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #333;
  padding-left: 1.5rem;
  position: relative;
}

.feature-item::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--lego-red);
  font-weight: 900;
  font-size: 1.5rem;
}

/* Related Products Section */
.related-products-section {
  background-color: var(--lego-blue);
  padding: 4rem 0;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.related-product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.related-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.related-product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-product-image {
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--lego-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-related {
  width: 80%;
  height: 80%;
  border-radius: 8px;
}

.placeholder-related-2 {
  background: linear-gradient(135deg, #666 0%, #888 100%);
}

.placeholder-related-3 {
  background: linear-gradient(135deg, #333 0%, #555 100%);
}

.placeholder-related-4 {
  background: linear-gradient(135deg, #444 0%, #666 100%);
}

.placeholder-related-5 {
  background: linear-gradient(135deg, var(--lego-red) 0%, #E01518 100%);
}

.related-product-info {
  padding: 1rem;
  padding-bottom: 0.75rem;
}

.related-product-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  line-height: 1.3;
}

.related-product-price {
  font-size: 1rem;
  font-weight: 900;
  color: var(--lego-red);
}

.related-product-cta {
  padding: 0 1rem 1rem 1rem;
}

.related-buy-now-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: var(--lego-red, #d01012);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.related-buy-now-btn:hover {
  background: #a00e10;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(208, 16, 18, 0.3);
}

.related-buy-now-btn:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .product-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-carousel {
    position: static;
  }

  .product-title {
    font-size: 2.5rem;
  }

  .product-price {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .product-section {
    padding: 2rem 1rem;
  }

  .product-title {
    font-size: 2rem;
  }

  .product-price {
    font-size: 1.75rem;
  }

  .buy-now-btn {
    width: 100%;
    text-align: center;
  }

  .thumbnail {
    min-width: 70px;
    width: 70px;
    height: 70px;
  }

  .thumbnail-nav-btn {
    width: 36px;
    height: 36px;
  }

  .thumbnail-nav-btn svg {
    width: 18px;
    height: 18px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-prev {
    left: 0.5rem;
  }

  .carousel-next {
    right: 0.5rem;
  }

  .carousel-counter {
    bottom: 0.75rem;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .zoom-icon {
    width: 40px;
    height: 40px;
    top: 0.75rem;
    right: 0.75rem;
  }

  .zoom-icon svg {
    width: 20px;
    height: 20px;
  }

  .related-products-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }

  .image-modal-img {
    max-height: 75vh;
  }

  .image-modal-close {
    top: -40px;
    width: 40px;
    height: 40px;
  }

  .image-modal-close svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .product-title {
    font-size: 1.5rem;
  }

  .product-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .product-price {
    font-size: 1.5rem;
  }

  .description-title,
  .features-title {
    font-size: 1.25rem;
  }

  .description-text,
  .feature-item {
    font-size: 1rem;
  }

  .related-products-grid {
    grid-template-columns: 1fr;
  }

  .thumbnail {
    min-width: 60px;
    width: 60px;
    height: 60px;
  }

  .thumbnail-nav-btn {
    width: 32px;
    height: 32px;
  }

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

  .carousel-counter {
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
  }

  .zoom-icon {
    width: 36px;
    height: 36px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }
}
/* ==========================================================================
   Rakuten Banner Ads Stylesheet
   LEGO® Brick by Brick - Affiliate Marketing Banner Ads
   ========================================================================== */

/* ==========================================================================
   Base Banner Ad Container
   ========================================================================== */

.rakuten-banner-ad {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

/* Sponsored Label */
.sponsored-label {
  font-size: 0.65rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* ==========================================================================
   Standard Banner Ad Formats (728x90, 300x250, 970x250)
   ========================================================================== */

.rakuten-banner-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.rakuten-banner-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rakuten-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 8px;
  overflow: hidden;
  min-height: 90px;
}

.rakuten-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ==========================================================================
   Leaderboard Banner (728x90)
   ========================================================================== */

.rakuten-banner-728-90 {
  max-width: 728px;
}

.rakuten-banner-728-90 .rakuten-banner-content {
  min-height: 90px;
}

/* ==========================================================================
   Medium Rectangle Banner (300x250)
   ========================================================================== */

.rakuten-banner-300-250 {
  max-width: 300px;
}

.rakuten-banner-300-250 .rakuten-banner-content {
  min-height: 250px;
}

/* ==========================================================================
   Billboard Banner (970x250)
   ========================================================================== */

.rakuten-banner-970-250 {
  max-width: 970px;
}

.rakuten-banner-970-250 .rakuten-banner-content {
  min-height: 250px;
}

/* ==========================================================================
   Native Ad Format (Matches Product Card Styling)
   ========================================================================== */

.rakuten-native-ad {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rakuten-native-ad:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.rakuten-native-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Native Ad Image Container */
.rakuten-native-image {
  padding: 2rem;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px 16px 0 0;
}

.rakuten-native-image-wrapper {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rakuten-native-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.rakuten-native-ad:hover .rakuten-native-img {
  transform: scale(1.05);
}

/* Native Ad Content */
.rakuten-native-content {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  background: white;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rakuten-native-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #1a1a1a;
  line-height: 1.3;
}

.rakuten-native-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.rakuten-native-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
}

.rakuten-native-badge-pieces {
  background: #d4edda;
  color: #155724;
}

.rakuten-native-badge-age {
  background: #d1ecf1;
  color: #0c5460;
}

/* Native Ad Footer */
.rakuten-native-footer {
  padding: 1.25rem 1.5rem;
  background: white;
  border-top: 1px solid #f0f0f0;
}

.rakuten-native-cta {
  margin: 0;
  padding: 0.75rem 2rem;
  background: #c9302c;
  color: white;
  text-align: center;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rakuten-native-ad:hover .rakuten-native-cta {
  background: #a02622;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 48, 44, 0.3);
}

/* ==========================================================================
   Placement-Specific Styles
   ========================================================================== */

/* Sidebar Placement */
.sidebar-ad-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.rakuten-banner-placement-sidebar {
  width: 100%;
}

/* Article Content Placement */
.article-banner-ad {
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: center;
}

.rakuten-banner-placement-article-content {
  width: 100%;
}

/* Product Context Placement */
.product-native-ad-section {
  margin: 3rem 0;
  padding: 3rem 0;
  background: #f9f9f9;
  border-top: 2px solid #e0e0e0;
  border-bottom: 2px solid #e0e0e0;
}

.product-native-ad-container {
  max-width: 300px;
  margin: 0 auto;
}

.rakuten-banner-placement-product-context {
  width: 100%;
}

/* Footer Placement */
.footer-banner-ad-container {
  padding: 2rem;
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: center;
}

.rakuten-banner-placement-footer {
  width: 100%;
}

/* Home Page Placements */
.home-banner-ad-container {
  padding: 2rem;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.rakuten-banner-placement-home-top,
.rakuten-banner-placement-home-mid {
  width: 100%;
  max-width: 728px;
}

/* Products Page Placement */
.products-banner-ad-container {
  padding: 1.5rem 0;
  margin: 1.5rem 0;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: center;
}

.rakuten-banner-placement-products-top {
  width: 100%;
  max-width: 728px;
}

/* Category Page Placement */
.category-banner-ad-container {
  padding: 2rem;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: center;
  margin: 0;
}

.rakuten-banner-placement-category-top {
  width: 100%;
  max-width: 728px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablets and below */
@media (max-width: 768px) {
  /* Scale down large banners to fit mobile screens */
  .rakuten-banner-728-90,
  .rakuten-banner-970-250 {
    max-width: 100%;
  }

  .rakuten-banner-728-90 .rakuten-banner-content,
  .rakuten-banner-970-250 .rakuten-banner-content {
    width: 100%;
  }

  /* Stack sidebar ads differently */
  .sidebar-ad-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }

  /* Adjust article banner spacing */
  .article-banner-ad {
    margin: 1.5rem 0;
    padding: 1.5rem 0;
  }

  /* Adjust home page banner spacing */
  .home-banner-ad-container {
    padding: 1.5rem 1rem;
    margin: 1.5rem 0;
  }

  /* Adjust products page banner spacing */
  .products-banner-ad-container {
    padding: 1rem;
    margin: 1rem 0;
  }

  /* Adjust category page banner spacing */
  .category-banner-ad-container {
    padding: 1.5rem 1rem;
  }

  /* Native ad adjustments */
  .rakuten-native-image {
    min-height: 250px;
    padding: 1.5rem;
  }

  .rakuten-native-image-wrapper {
    max-width: 240px;
  }

  .rakuten-native-content {
    padding: 1.25rem;
  }

  .rakuten-native-title {
    font-size: 1.1rem;
  }

  .rakuten-native-footer {
    padding: 1rem 1.25rem;
  }

  .rakuten-native-cta {
    padding: 0.65rem 1.5rem;
    font-size: 0.85rem;
  }
}

/* Mobile devices */
@media (max-width: 480px) {
  .footer-banner-ad-container {
    padding: 1rem;
  }

  .home-banner-ad-container {
    padding: 1rem;
    margin: 1rem 0;
  }

  .products-banner-ad-container {
    padding: 0.75rem;
    margin: 0.75rem 0;
  }

  .category-banner-ad-container {
    padding: 1rem;
  }

  .product-native-ad-section {
    padding: 2rem 1rem;
  }

  .rakuten-native-image {
    min-height: 200px;
    padding: 1rem;
  }

  .rakuten-native-image-wrapper {
    max-width: 200px;
  }

  .rakuten-native-content {
    padding: 1rem 1.25rem;
  }

  .rakuten-native-title {
    font-size: 0.95rem;
  }

  .rakuten-native-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .rakuten-native-footer {
    padding: 0.75rem 1.25rem;
  }

  .rakuten-native-cta {
    padding: 0.625rem 1.5rem;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   Accessibility & Performance
   ========================================================================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .rakuten-banner-link,
  .rakuten-native-ad,
  .rakuten-native-img,
  .rakuten-native-cta {
    transition: none;
  }

  .rakuten-native-ad:hover .rakuten-native-img {
    transform: none;
  }
}

/* Print styles - hide ads */
@media print {
  .rakuten-banner-ad,
  .rakuten-native-ad,
  .article-banner-ad,
  .footer-banner-ad-container,
  .sidebar-ad-section {
    display: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .rakuten-banner-content {
    border: 2px solid currentColor;
  }

  .rakuten-native-ad {
    border: 2px solid currentColor;
  }

  .sponsored-label {
    color: currentColor;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
