/* ============================================
   Chronicle — Literary, Long-form, Thoughtful
   Brand: magazine editorial, literary, warm
   Fonts: Merriweather (heading) + Source Serif 4 (body)
   Like: a literary magazine — text-dense, readable, serene
   Color: warm palette, cream bg
   ============================================ */

.theme-chronicle {
  /* --- Hero: large serif, editorial --- */
  & .hero-content h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: -0.01em;
    line-height: 1.15;
    font-style: italic;
  }

  & .hero-content .hero-sub {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-style: italic;
    opacity: 0.7;
  }

  & .hero-actions a {
    border-radius: 0;
    padding: 0.75em 2em;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.04em;
  }

  /* --- Categories: editorial horizontal --- */
  & .category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    border-block-start: 1px solid var(--border);
    border-block-end: 1px solid var(--border);
  }

  & .category-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 1rem 2rem;
    border-inline-end: 1px solid var(--border);

    & .category-image { display: none; }

    & h3 {
      font-family: var(--font-display);
      font-size: 0.9375rem;
      font-weight: 400;
      font-style: italic;
    }

    &:hover {
      background: var(--surface);
      transform: none;
    }

    &:last-child { border-inline-end: none; }
  }

  /* --- Section heads: editorial serif --- */
  & .section-head h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-style: italic;
    letter-spacing: 0;
  }

  /* --- Product grid: generous magazine layout --- */
  & .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
  }

  /* --- Product cards: editorial style --- */
  & .product-card {
    border-radius: 0;
    border: none;
    border-block-end: 1px solid var(--border);
    padding-block-end: 1rem;

    & .product-image { border-radius: 0; }

    & h3 {
      font-family: var(--font-display);
      font-weight: 400;
      font-size: 1rem;
      font-style: italic;
    }

    & .product-price {
      font-size: 0.875rem;
      font-weight: 400;
      opacity: 0.6;
    }

    & .card-action {
      border-radius: 0;
      font-size: 0.8125rem;
      font-weight: 400;
      letter-spacing: 0.02em;
    }

    &:hover { box-shadow: none; }
  }

  /* --- Newsletter: editorial with rule --- */
  & .newsletter {
    background: transparent;
    border-radius: 0;
    border-block-start: 1px solid var(--border);

    & h2 {
      font-family: var(--font-display);
      font-weight: 400;
      font-size: clamp(1.25rem, 2.5vw, 1.75rem);
      font-style: italic;
    }

    & p {
      font-size: 0.9375rem;
      font-style: italic;
      opacity: 0.6;
    }

    & input { border-radius: 0; }
    & button {
      border-radius: 0;
      font-size: 0.8125rem;
      letter-spacing: 0.02em;
    }
  }

  /* --- PDP --- */
  & .pdp-gallery .pdp-hero { border-radius: 0; }
  & .pdp-gallery nav button { border-radius: 0; }
  & .pdp-info h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
  }
  & .pdp-add-btn {
    border-radius: 0;
    font-weight: 400;
    letter-spacing: 0.02em;
  }

  /* --- Footer: literary --- */
  & footer {
    background: transparent;
    border-block-start: 1px solid var(--border);

    & nav h3 {
      font-family: var(--font-display);
      font-weight: 400;
      font-style: italic;
      font-size: 0.9375rem;
      text-transform: none;
    }
  }

  & .footer-brand .logo-text {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
    font-size: 1.125rem;
  }

  /* --- CMS pages: editorial --- */
  & .cms-page > h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
  }
  & .cms-content h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
  }

  /* --- Category hero --- */
  & .category-hero h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
  }

  /* --- Breadcrumb --- */
  & .breadcrumb ol { font-size: 0.8125rem; }

  /* --- Buttons: square --- */
  & .empty-state a,
  & .empty-state button { border-radius: 0; }

  /* --- Filter --- */
  & .filter-group h3 {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: none;
    font-size: 0.9375rem;
    font-style: italic;
  }

  /* --- Sort --- */
  & .catalog-toolbar .sort-select select { border-radius: 0; }

  /* --- Carousel --- */
  & .carousel-track > .product-card { width: 320px; }

  /* --- Catalog: literary, editorial spacing --- */
  & .catalog {
    gap: clamp(2rem, 4vw, 3rem);
  }

  & .catalog-toolbar {
    border-block-end: 1px solid var(--border);
    border-block-start: 1px solid var(--border);
    padding-block: 0.75rem;

    & .result-count {
      font-family: var(--font-display);
      font-style: italic;
      font-size: 0.875rem;
      font-weight: 400;
    }

    & .filter-toggle {
      border-radius: 0;
      font-family: var(--font-display);
      font-style: italic;
      font-weight: 400;
    }

    & .sort-select select {
      border-radius: 0;
      font-family: var(--font-body);
    }
  }

  & .catalog .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
  }

  & .filter-group {
    & summary h3 {
      font-family: var(--font-display);
      font-style: italic;
      font-weight: 400;
    }
  }

  & .active-filters {
    & .active-filter-pill {
      border-radius: 0;
      font-family: var(--font-display);
      font-style: italic;
      font-size: 0.8125rem;
    }
  }

  /* --- PDP: literary italic serif, editorial spacing --- */
  & .pdp {
    gap: clamp(3rem, 6vw, 5rem);
  }

  & .pdp-gallery .pdp-thumbnails button {
    border-radius: 0;
  }

  & .pdp-info {
    & .pdp-brand {
      font-family: var(--font-display);
      font-style: italic;
      font-size: 0.875rem;
    }

    & h1 {
      font-family: var(--font-display);
      font-weight: 400;
      font-style: italic;
      font-size: clamp(2rem, 4vw, 3rem);
      letter-spacing: -0.01em;
      line-height: 1.15;
    }

    & .pdp-price {
      font-size: 1.25rem;
      font-weight: 400;
      opacity: 0.7;
    }

    & .pdp-description {
      font-size: 0.9375rem;
      line-height: 1.8;
      max-width: 55ch;
    }
  }

  & .pdp-actions {
    & .quantity-selector {
      border-radius: 0;
    }

    & .pdp-add-btn {
      border-radius: 0;
      font-weight: 400;
      letter-spacing: 0.02em;
      font-size: 0.875rem;
    }
  }

  & .pdp-trust {
    font-style: italic;
    font-size: 0.8125rem;
    opacity: 0.5;
  }

  & .pdp-variants .pdp-variant-btn {
    border-radius: 0;
    font-family: var(--font-display);
    font-weight: 400;
  }

  & .pdp-tabs .pdp-tab-nav button {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    border-radius: 0;
  }

  /* --- Related: editorial rule --- */
  & .related-section {
    border-block-start: 1px solid var(--border);
    padding-block-start: clamp(3rem, 6vw, 5rem);
    margin-block-start: clamp(3rem, 6vw, 5rem);
  }

  & .related-section .section-head h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
  }
}
