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

:root {
  /* Color */
  --ink:          #14181F;
  --ink-soft:     #4B525F;
  --paper:        #F6F6F3;
  --surface:      #FFFFFF;
  --line:         #E3E3DE;
  --teal:         #1F6F5C;   /* trust / links / badges */
  --teal-deep:    #165545;
  --amber:        #E2A33D;   /* price / primary CTA */
  --amber-deep:   #C6862177; /* not used directly, kept for reference */
  --amber-strong: #C98A26;

  /* Type */
  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* Fluid scale — one clamp per role instead of a media query per breakpoint */
  --fs-title:   clamp(1.35rem, 1.05rem + 1.3vw, 2.35rem);
  --fs-price:   clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --fs-h3:      clamp(1rem, 0.92rem + 0.3vw, 1.15rem);
  --fs-body:    clamp(0.9rem, 0.86rem + 0.15vw, 1rem);
  --fs-label:   0.78rem;
  --fs-data:    0.95rem;

  /* Space */
  --space-section: clamp(2rem, 1.4rem + 2.5vw, 4rem);
  --space-md: clamp(1rem, 0.85rem + 0.6vw, 1.5rem);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(20, 24, 31, 0.06), 0 8px 24px -12px rgba(20, 24, 31, 0.18);
  --shadow-hover: 0 16px 32px -16px rgba(20, 24, 31, 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Base / reset
   ========================================================================== */

.product-container * {
  box-sizing: border-box;
}

.dark .data , .dark .card-body h3 , .dark .card-body p{
    color: var(--font-body);
}

.product-container {
  --gutter: clamp(1rem, 2vw, 2rem);
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-section) var(--gutter);
  font-family: var(--font-body);
  color: var(--ink);
  top: 11dvh;
  position: relative;
}

.product-title {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  font-size: var(--fs-title);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-md);
}

/* ==========================================================================
   Product Display — gallery + details grid
   ========================================================================== */

.product-display {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 2vw, 2.5rem);
  align-items: start;
  margin-bottom: var(--space-section);
}

@media (max-width: 860px) {
  .product-display {
    grid-template-columns: 1fr;
  }
}

/* --- Gallery --- */

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: sticky;
  top: 1.5rem;
}

@media (max-width: 860px) {
  .product-gallery {
    position: static;
  }
}

.main-image-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--surface);
}

.main-image {
  width: 100%;
  height: clamp(260px, 42vw, 560px);
  object-fit: cover;
  display: block;
}

.thumbnail-row {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.thumbnail {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.thumbnail:hover,
.thumbnail:focus-visible {
  border-color: var(--teal);
  transform: translateY(-2px);
}

/* --- Details panel --- */

.product-details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(1.1rem, 1.5vw, 1.75rem);
}

/* Signature element: dashboard-style spec readout, tabular figures */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
}

.spec-strip .spec {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.spec-strip .spec-label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A9AFBB;
}

.spec-strip .spec-value {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--paper);
}

.price-tag {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: var(--fs-price);
  color: var(--amber-strong);
  margin-bottom: 1rem;
}

.detail-item {
  margin-bottom: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-body);
}

.detail-item:last-of-type {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  display: inline-block;
  min-width: 140px;
  color: var(--ink-soft);
}

.data {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-data);
  font-weight: 600;
  color: var(--ink);
}

.other-item {
  margin-bottom: 0;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--line);
}

.other-item:last-child {
  border-bottom: none;
}

.other-label {
  font-weight: 600;
  display: inline-block;
  min-width: 150px;
  color: var(--ink-soft);
}

.blockquote-footer {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.75rem;
}

/* CTA */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9rem 1.25rem;
  margin-top: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--amber-strong);
  transform: translateY(-1px);
}

/* ==========================================================================
   Similar Products
   ========================================================================== */

.similar-products-container {
  margin: var(--space-section) 0 0;
}

.similar-products-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.75rem);
  margin-bottom: -7rem;
  color: var(--ink);
}

.similar-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 1.5vw, 1.5rem);
  
}

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
  
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card-body h3 {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

.card-body p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}

.link {
  color: var(--teal);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: auto;
  transition: color 0.2s var(--ease);
}

.link:hover,
.link:focus-visible {
  color: var(--teal-deep);
  text-decoration: underline;
}

/* ==========================================================================
   Accessibility & motion
   ========================================================================== */

.product-container a:focus-visible,
.product-container button:focus-visible,
.product-container .thumbnail:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .product-container * {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   Small-screen refinements
   ========================================================================== */

@media (max-width: 500px) {
  .detail-label,
  .other-label {
    display: block;
    min-width: 0;
    margin-bottom: 0.2rem;
  }

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