/* Ported from products/nice-cube/index.html - 1 <style> block(s), in document order.
   Cascade order is preserved: a later block in the source is a later rule
   here, which is what several of these rely on to override the shared
   layer.
   2 @font-face declaration(s) removed; they are in global.css. */

/* ============================================================
       NEEDOH — Single product page (template)
       Carries the same design tokens as the home page.
       When ported to WordPress + WooCommerce, this CSS lives in
       the theme stylesheet and the structure becomes
       woocommerce/single-product.php override + content-single-product.php
       ============================================================ */

    /* Brand fonts */
    :root {
      --cream: #FFFFFF;
      --paper: #FFFFFF;
      --ink: #231f20;
      --ink-soft: #231f20;
      --ink-mute: #231f20;
      --rule: #E5E5E5;
      --brand-pink:   #ff40b4;
      --brand-orange: #f48220;
      --brand-yellow: #ffe800;
      --brand-green:  #38d430;
      --brand-blue:   #3fabe1;
      --brand-purple: #8969d3;
      --brand-coral:  #ff7276;
      --accent: #ff40b4;
      --accent-deep: #c7087c;
      --radius-pill: 999px;
      --font-display: "Spicy Rice", "Recoleta", Georgia, serif;
      --font-body: "Freeman", "Hanken Grotesk", system-ui, sans-serif;
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

    body {
      margin: 0;
      font-family: var(--font-body);
      font-size: 16px;
      line-height: 1.5;
      color: var(--ink);
      background: var(--paper);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

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

    .wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
    .section-pad { padding: 96px 0; }
    @media (max-width: 720px) { .section-pad { padding: 64px 0; } }

    .display {
      font-family: var(--font-display);
      font-weight: 400;
      letter-spacing: -0.01em;
      line-height: 1.05;
    }
    h1.display { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.1; }
    h2.display { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.12; }
    h3.display { font-size: clamp(20px, 2vw, 28px); line-height: 1.18; }

    .eyebrow {
      font-family: var(--font-body);
      font-size: 11.5px;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--accent);
      line-height: 1;
    }

    /* Buttons (carry design-system rules) */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 16px 28px;
      border-radius: var(--radius-pill);
      font-family: var(--font-body);
      font-weight: 500;
      font-size: 15px;
      letter-spacing: 0.02em;
      border: none;
      cursor: pointer;
      text-decoration: none;
      transition: background 200ms, color 200ms, transform 200ms;
    }
    .btn-sm { padding: 11px 20px; font-size: 13.5px; }
    .btn-primary { background: var(--ink); color: var(--accent); }
    .btn-primary:hover { background: var(--accent); color: var(--ink); }
    .btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
    .btn-ghost:hover { background: var(--ink); color: var(--accent); }

    /* Dark-callout button overrides (pink pill + white ghost on var(--ink) bg) */
    .callout-card.dark .btn-primary { background: var(--accent); color: #fff; }
    .callout-card.dark .btn-primary:hover { background: #fff; color: var(--accent); }
    .callout-card.dark .btn-on-dark { background: transparent; color: #fff; border: 1.5px solid #fff; }
    .callout-card.dark .btn-on-dark:hover { background: #fff; color: var(--ink); }

    /* NAV CSS now lives in /site/global.css — single source of truth. */

    /* ---------- BREADCRUMB ---------- */
    /* Vertical padding only — let .wrap's horizontal padding (0 32px / 0 20px mobile)
       provide the side spacing so this aligns with the nav and every other section. */
    .breadcrumb {
      padding-top: 24px;
      font-family: var(--font-body);
      font-size: 13px;
      color: rgba(35,31,32,0.6);
    }
    .breadcrumb a { color: rgba(35,31,32,0.6); text-decoration: none; transition: color 180ms; }
    .breadcrumb a:hover { color: var(--accent); }
    .breadcrumb-sep { display: inline-block; margin: 0 8px; color: rgba(35,31,32,0.3); }
    .breadcrumb-current { color: var(--ink); font-weight: 600; }

    /* ---------- PRODUCT HERO ---------- */
    .product-hero { padding-top: 40px; padding-bottom: 80px; }
    .product-hero-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 72px;
      align-items: start;
    }
    @media (max-width: 960px) {
      .product-hero-grid { grid-template-columns: 1fr; gap: 48px; }
    }

    /* Mobile vertical padding only — horizontal is handled by the global
       .wrap rule (20px on ≤720px) so nav + content stay aligned. */
    @media (max-width: 720px) {
      .product-hero       { padding-top: 32px; padding-bottom: 56px; }
      .product-section    { padding-top: 56px; padding-bottom: 56px; }
      .product-section-dark { padding-top: 64px; padding-bottom: 64px; }
      .product-crosslinks { padding-top: 48px; padding-bottom: 48px; }
    }

    /* Gallery */
    .gallery-main {
      position: relative;
      aspect-ratio: 1/1;
      background: var(--brand-pink);
      border-radius: 36px;
      overflow: hidden;
      margin-bottom: 18px;
      box-shadow: 0 20px 60px -20px rgba(35,31,32,0.25);
      transition: background 220ms ease;
    }
    .gallery-main img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }
    .gallery-thumbs {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }
    .gallery-thumb {
      position: relative;
      aspect-ratio: 1/1;
      border-radius: 16px;
      overflow: hidden;
      cursor: pointer;
      border: 2px solid rgba(35,31,32,0.08);
      background: #FFFFFF;
      transition: border-color 180ms, transform 180ms;
    }
    .gallery-thumb img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }
    .gallery-thumb.active { border-color: var(--ink); }
    .gallery-thumb:hover { transform: translateY(-2px); }

    /* Product info column */
    .product-info-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
      text-decoration: none;
    }
    .product-info-eyebrow .eyebrow { color: var(--cat-color, var(--accent)); transition: color 180ms ease; }
    .product-info-eyebrow:hover .eyebrow { color: var(--ink); }
    @media (prefers-reduced-motion: reduce) {
      .product-info-eyebrow .eyebrow { transition: none; }
    }

    .product-info h1 { margin: 0 0 18px; color: var(--ink); }

    .product-lead {
      font-size: 18px;
      line-height: 1.55;
      color: var(--ink);
      margin: 0 0 28px;
      max-width: 56ch;
    }

    .product-price-row {
      display: flex;
      align-items: center;
      gap: 18px;
      margin-bottom: 14px;
      flex-wrap: wrap;
    }
    .product-price {
      font-family: var(--font-display);
      font-size: 34px;
      line-height: 1;
      color: var(--ink);
    }
    .product-price-note {
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(35,31,32,0.55);
    }
    .stock-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 12px;
      border-radius: 999px;
      background: rgba(56,212,48,0.14);
      color: #1f6b18;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .stock-pill::before {
      content: '';
      width: 7px; height: 7px;
      background: #1f6b18;
      border-radius: 50%;
    }
    .stock-pill.oos {
      background: rgba(244,130,32,0.16);
      color: #8a3d00;
    }
    .stock-pill.oos::before { background: #8a3d00; }

    .add-to-cart-btn[disabled] {
      background: rgba(35,31,32,0.18);
      color: rgba(35,31,32,0.55);
      cursor: not-allowed;
      pointer-events: none;
    }

    .buybox {
      display: flex;
      align-items: stretch;
      gap: 12px;
      margin: 20px 0 28px;
      flex-wrap: wrap;
    }
    .qty-control {
      display: inline-flex;
      align-items: center;
      border: 1.5px solid var(--ink);
      border-radius: var(--radius-pill);
      overflow: hidden;
      height: 56px;
    }
    .qty-control button {
      background: transparent;
      border: none;
      cursor: pointer;
      width: 44px;
      height: 100%;
      font-size: 18px;
      color: var(--ink);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: background 180ms;
    }
    .qty-control button:hover { background: rgba(35,31,32,0.06); }
    .qty-control input {
      width: 48px;
      height: 100%;
      border: none;
      text-align: center;
      font-family: var(--font-body);
      font-size: 16px;
      font-weight: 700;
      color: var(--ink);
      -moz-appearance: textfield;
      background: transparent;
      outline: none;
    }
    .qty-control input::-webkit-outer-spin-button,
    .qty-control input::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }
    .add-to-cart-btn {
      padding: 0 36px;
      height: 56px;
      font-size: 15px;
    }
    .where-to-buy-btn {
      padding: 0 28px;
      height: 56px;
      font-size: 14px;
    }

    /* Authenticity badge under buy box */
    .auth-badge {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 12px 16px;
      background: rgba(255,64,180,0.08);
      border-radius: 14px;
      font-size: 13.5px;
      color: var(--ink);
      margin-bottom: 28px;
    }
    .auth-badge svg { color: var(--accent); flex-shrink: 0; }

    /* Specs list */
    .spec-list {
      list-style: none;
      padding: 0;
      margin: 0 0 24px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px 24px;
      border-top: 1px solid var(--rule);
      border-bottom: 1px solid var(--rule);
      padding: 22px 0;
    }
    .spec-list li {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .spec-list .spec-label {
      font-size: 10.5px;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: rgba(35,31,32,0.55);
    }
    .spec-list .spec-value {
      font-size: 14.5px;
      color: var(--ink);
      font-weight: 500;
    }

    /* Product meta block (SKU, categories, tags) */
    .product-meta {
      display: flex;
      flex-direction: column;
      gap: 8px;
      font-size: 13px;
      color: rgba(35,31,32,0.65);
    }
    .product-meta-label {
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-size: 11px;
      color: rgba(35,31,32,0.55);
      margin-right: 6px;
    }
    .product-meta a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(35,31,32,0.25); }
    .product-meta a:hover { color: var(--accent); text-decoration-color: var(--accent); }

    /* ---------- CONTENT SECTIONS ---------- */
    .product-section { padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--rule); }
    .product-section .eyebrow { margin-bottom: 14px; display: inline-block; }
    .product-section h2 { margin: 0 0 24px; max-width: 22ch; color: var(--ink); }
    .product-section p { font-size: 17px; line-height: 1.6; max-width: 70ch; margin: 0 0 16px; color: var(--ink); }
    .product-section p:last-child { margin-bottom: 0; }

    /* Dark-bg variant of product-section (reversed text) */
    .product-section-dark {
      background: var(--ink);
      color: #fff;
      padding-top: 80px;
      padding-bottom: 80px;
      margin-top: -1px;
      border-top: none;
    }
    /* Inner .wrap keeps its default 0 32px (0 20px on mobile via global.css)
       so content aligns with the nav and every other section. */
    .product-section-dark h2 { color: #fff; }
    .product-section-dark p  { color: #fff; }
    .product-section-dark a:not(.btn) {
      color: #fff;
      text-decoration: underline;
      text-decoration-color: var(--accent);
      text-underline-offset: 2px;
    }
    .product-section-dark a:not(.btn):hover { color: var(--accent); }

    /* Colors & Variants */
    .colors-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 14px;
      margin-top: 24px;
    }
    @media (max-width: 880px) { .colors-grid { grid-template-columns: repeat(3, 1fr); } }
    @media (max-width: 480px) { .colors-grid { grid-template-columns: repeat(2, 1fr); } }
    .color-chip {
      aspect-ratio: 1/1;
      border-radius: 18px;
      display: flex;
      align-items: flex-end;
      padding: 14px;
      font-family: var(--font-display);
      font-size: 16px;
      line-height: 1.05;
      color: var(--ink);
    }
    .color-chip.dark { color: #fff; }

    /* What's inside / Where to buy callouts */
    .callout-card {
      background: #f7f8f9;
      border-radius: 24px;
      padding: 36px;
      border: 1px solid rgba(35,31,32,0.08);
    }
    .callout-card.dark {
      background: var(--ink);
      color: #fff;
    }
    .callout-card.dark h2,
    .callout-card.dark p { color: #fff; }
    .callout-card .eyebrow { margin-bottom: 12px; }
    .callout-card h2 { margin: 0 0 14px; }
    .callout-card p { margin: 0; max-width: 60ch; }
    .callout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
    @media (max-width: 880px) { .callout-grid { grid-template-columns: 1fr; } }

    /* Variant comparison */
    .variant-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin-top: 28px;
    }
    @media (max-width: 880px) { .variant-grid { grid-template-columns: 1fr; } }
    .variant-card {
      text-decoration: none;
      color: var(--ink);
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .variant-card-img {
      position: relative;
      aspect-ratio: 1/1;
      border-radius: 24px;
      overflow: hidden;
      box-shadow: 0 14px 32px -16px rgba(35,31,32,0.22);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 28px;
      text-align: center;
      font-family: var(--font-display);
      font-size: 22px;
      line-height: 1.1;
      color: #fff;
    }
    .variant-card-name {
      font-family: var(--font-display);
      font-size: 22px;
      line-height: 1.1;
    }
    .variant-card-desc {
      font-size: 14.5px;
      line-height: 1.5;
      color: rgba(35,31,32,0.7);
      margin: 0;
    }
    .variant-card-link {
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--accent);
      margin-top: 4px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .variant-card:hover .variant-card-img { transform: translateY(-2px); transition: transform 220ms; }

    /* FAQ */
    .faq-list { margin-top: 28px; }
    .faq-item {
      border-top: 1px solid var(--rule);
      padding: 20px 0;
    }
    .faq-item:last-child { border-bottom: 1px solid var(--rule); }
    .faq-item summary {
      cursor: pointer;
      font-family: var(--font-display);
      font-size: 20px;
      line-height: 1.2;
      color: var(--ink);
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 24px;
      transition: color 180ms ease;
    }
    .faq-item summary:hover { color: var(--accent); }
    .faq-item summary::-webkit-details-marker { display: none; }
    .faq-item summary::after {
      content: '+';
      font-family: var(--font-body);
      font-weight: 700;
      font-size: 24px;
      color: var(--accent);
      transition: transform 200ms;
      line-height: 1;
    }
    .faq-item[open] summary::after { transform: rotate(45deg); }
    .faq-item p { font-size: 16px; line-height: 1.6; margin: 14px 0 0; color: var(--ink); }

    /* Cross-link footer */
    .product-crosslinks {
      padding-top: 56px;
      padding-bottom: 56px;
      text-align: center;
      background: #f7f8f9;
      border-top: 1px solid var(--rule);
    }
    .product-crosslinks-row {
      display: inline-flex;
      gap: 36px;
      flex-wrap: wrap;
      justify-content: center;
      font-size: 14px;
    }
    .product-crosslinks-row a {
      color: var(--ink);
      text-decoration: none;
      border-bottom: 2px solid var(--accent);
      padding-bottom: 4px;
      font-weight: 600;
    }
    .product-crosslinks-row a:hover { color: var(--accent); }

    /* FOOTER CSS now lives in /site/global.css — single source of truth. */

    /* ---------- Product details — tabbed component ---------- */
    .product-tabs {
      max-width: 780px;
    }
    .product-tabs-band {
      position: relative;
      overflow: hidden;
    }
    .product-tabs-band::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: url('../images/branding-patterns/needoh-branding-pattern-2.svg');
      background-size: cover;
      background-position: center right;
      opacity: 0.07;
      z-index: 0;
      pointer-events: none;
    }
    .product-tabs-band::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to right,
        var(--ink) 0%,
        var(--ink) 32%,
        rgba(35,31,32,0) 62%
      );
      z-index: 1;
      pointer-events: none;
    }
    .product-tabs-band .wrap { position: relative; z-index: 2; }
    .product-tabs .tab-list {
      display: flex;
      gap: 8px;
      border-bottom: 1px solid var(--rule);
      margin-bottom: 32px;
      flex-wrap: wrap;
    }
    .product-tabs .tab-btn {
      appearance: none;
      background: transparent;
      border: none;
      padding: 14px 4px;
      margin-bottom: -1px;
      font-family: var(--font-display);
      font-weight: 400;
      font-size: 20px;
      line-height: 1;
      color: rgba(35,31,32,0.45);
      cursor: pointer;
      position: relative;
      transition: color 200ms ease;
    }
    .product-tabs .tab-btn:hover { color: var(--ink); }
    .product-tabs .tab-btn::after {
      content: '';
      position: absolute;
      left: 4px; right: 4px; bottom: 0;
      height: 3px;
      background: var(--accent);
      border-radius: 2px 2px 0 0;
      transform: scaleX(0);
      transform-origin: left center;
      transition: transform 220ms cubic-bezier(.4,0,.2,1);
    }
    .product-tabs .tab-btn.active { color: var(--ink); }
    .product-tabs .tab-btn.active::after { transform: scaleX(1); }
    .product-tabs .tab-btn + .tab-btn { margin-left: 20px; }
    .product-tabs .tab-panel {
      font-size: 17px;
      line-height: 1.65;
      color: var(--ink);
      animation: tab-in 260ms cubic-bezier(.4,0,.2,1) both;
    }
    .product-tabs .tab-panel[hidden] { display: none; }
    .product-tabs .tab-panel p { margin: 0 0 14px; }
    .product-tabs .tab-panel p:last-child { margin-bottom: 0; }
    @keyframes tab-in {
      0%   { opacity: 0; transform: translateY(6px); }
      100% { opacity: 1; transform: translateY(0); }
    }
    @media (prefers-reduced-motion: reduce) {
      .product-tabs .tab-panel,
      .product-tabs .tab-btn::after { animation: none; transition: none; }
    }
    @media (max-width: 640px) {
      .product-tabs .tab-btn { font-size: 17px; padding: 12px 2px; }
      .product-tabs .tab-btn + .tab-btn { margin-left: 14px; }
    }
    /* Dark variant — sits inside .product-section-dark (ink bg + white type) */
    .product-tabs-dark .tab-list { border-bottom-color: rgba(255,255,255,0.15); }
    .product-tabs-dark .tab-btn { color: rgba(255,255,255,0.5); }
    .product-tabs-dark .tab-btn:hover { color: #FFFFFF; }
    .product-tabs-dark .tab-btn.active { color: #FFFFFF; }
    .product-tabs-dark .tab-panel { color: rgba(255,255,255,0.92); }
    .product-tabs-dark .tab-panel p { color: rgba(255,255,255,0.92); }

    /* ---------- Related products — filtered by current product's category ---------- */
    .related-band { padding-top: 96px; padding-bottom: 96px; background: #FFFFFF; }
    .related-band .related-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 24px;
      flex-wrap: wrap;
      margin-bottom: 40px;
    }
    .related-band .related-head h2 { margin: 8px 0 0; }
    .related-band .related-head .related-see-all {
      font-family: var(--font-body);
      font-size: 14px;
      font-weight: 600;
      color: var(--ink);
      text-decoration: none;
      letter-spacing: 0.02em;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: color 180ms ease, gap 180ms ease;
    }
    .related-band .related-head .related-see-all:hover { color: var(--accent); gap: 12px; }
    .related-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
    }
    @media (max-width: 900px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 480px) { .related-grid { grid-template-columns: 1fr; } }
    .related-card {
      display: flex;
      flex-direction: column;
      gap: 14px;
      text-decoration: none;
      color: var(--ink);
      transition: transform 260ms cubic-bezier(.4,0,.2,1);
    }
    .related-card:hover { transform: translateY(-6px); }
    .related-card-tile {
      position: relative;
      aspect-ratio: 1/1;
      border-radius: 24px;
      overflow: hidden;
      border: 3px solid #EAEAEA;
      box-shadow: 0 12px 28px -16px rgba(35,31,32,0.22);
      transition: box-shadow 260ms ease;
    }
    .related-card:hover .related-card-tile { box-shadow: 0 22px 44px -16px rgba(35,31,32,0.38); }
    .related-card-tile img {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      object-fit: cover; object-position: center;
    }
    .related-card-tile .related-card-placeholder {
      position: absolute; inset: 0;
      display: flex; align-items: center; justify-content: center;
      text-align: center; padding: 20px;
      background: linear-gradient(135deg, rgba(0,0,0,0.15), rgba(0,0,0,0.35)),
                  var(--tile-color, var(--accent));
      color: #fff;
      font-family: var(--font-display); font-weight: 400; font-size: 16px; line-height: 1.15;
    }
    .related-card-name {
      font-family: var(--font-display);
      font-weight: 400;
      font-size: 18px;
      line-height: 1.15;
      color: var(--ink);
      transition: color 220ms ease;
    }
    .related-card:hover .related-card-name { color: var(--card-hover-color, var(--accent)); }
    .related-card-cat {
      font-family: var(--font-body);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--ink-mute);
    }

    /* Focus visibility */
    *:focus { outline: none; }
    *:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }