:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --brand: #0b5cab;
  --brand-dark: #084a8c;
  --accent: #f97316;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --page-pad: clamp(12px, 1.5vw, 24px);
  --content-max: min(1680px, calc(100vw - 2 * var(--page-pad)));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--brand);
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(11, 92, 171, 0.35);
}

.btn-amazon {
  background: linear-gradient(135deg, #ff9900, #e88b00);
  color: #111;
  box-shadow: 0 8px 24px rgba(255, 153, 0, 0.35);
}

.hero {
  padding: 3.5rem 0 2rem;
}

.hero-home {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero-home h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-home p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 52rem;
  margin: 0 auto 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.gallery {
  width: 100%;
  max-width: min(520px, 92%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-main {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 1;
  width: 100%;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 1.5vw, 1rem);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: auto;
  transition: opacity 0.2s ease;
}

.gallery-main img.is-swapping {
  opacity: 0.65;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: nowrap;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 4px 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.gallery-thumbs button {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  background: var(--surface);
  cursor: pointer;
  width: 64px;
  height: 64px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.gallery-thumbs button:hover {
  transform: translateY(-2px);
}

.gallery-thumbs button.active,
.gallery-thumbs button:hover {
  border-color: var(--brand);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h1 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin: 0.5rem 0 1.25rem;
}

.price small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.variant-picker {
  margin-bottom: 1.5rem;
}

.variant-picker label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.variant-options button {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}

.variant-options button.active {
  border-color: var(--brand);
  background: rgba(11, 92, 171, 0.08);
  color: var(--brand-dark);
}

.variant-options button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.specs dt {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.specs dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
}

.bullets {
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.section-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin: 0 0 2rem;
}

.product-detail-below .section-card:last-child {
  margin-bottom: 3rem;
}

.section-card h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.product-card .body {
  padding: 1.25rem;
}

.product-card h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 4rem;
}

.product-detail-below {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

@media (max-width: 900px) {
  .product-detail-below {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.asin-badge {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  background: #f1f5f9;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
