/* ===================================================
   Soluciones Hidroneumáticas Reséndiz — Estilos base
   =================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f1f1;
  --color-surface: #ffffff;
  --color-border: #e5dcdd;
  --color-text: #241a1c;
  --color-text-muted: #6b5c5e;
  --color-accent: #651922;
  --color-accent-dark: #4a1319;
  --color-accent-soft: rgba(101, 25, 34, 0.08);
  --font-heading: "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 8px;
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-dark); text-decoration: underline; }

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 16px; }
h3 { font-size: 1.25rem; margin: 0 0 10px; }

p { color: var(--color-text-muted); margin: 0 0 16px; }

.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--color-border);
}

.section-alt { background: var(--color-bg-alt); }

.section-header { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-header p { margin: 0; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(36, 26, 28, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img { height: 42px; width: auto; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--color-accent); text-decoration: none; }

.nav-cta {
  background: var(--color-accent);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-cta:hover { background: var(--color-accent-dark); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 1.3rem;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav { padding: 10px 18px; }
  .brand { min-width: 0; flex: 1 1 auto; }
  .brand img { flex: 0 0 auto; height: 38px; }
  .brand span { max-width: 235px; line-height: 1.2; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-alt);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; border-top: 1px solid var(--color-border); }
  .nav-cta { display: inline-block; margin: 14px 24px; }
}

@media (max-width: 460px) {
  .brand { gap: 9px; font-size: .82rem; }
  .brand span { max-width: 210px; }
  .nav-toggle { flex: 0 0 auto; margin-left: 10px; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 80px 0 64px;
  background-color: #241a1c;
  background-image:
    linear-gradient(180deg, rgba(24,18,20,0.72), rgba(24,18,20,0.82)),
    var(--hero-image, none);
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #fff;
}

.hero h1, .hero p { color: #fff; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero .btn-outline:hover { border-color: #fff; color: #fff; }

.hero .eyebrow {
  display: inline-block;
  color: #ffcec6;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.hero h1 { max-width: 820px; margin-left: auto; margin-right: auto; }

.hero p.lead {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 1.15rem;
  color: #fff;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; text-decoration: none; }

.btn-outline { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); text-decoration: none; }

/* ---------- Cards / Grid ---------- */

.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover { border-color: var(--color-accent); transform: translateY(-3px); }

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  font-weight: 700;
}

.card ul { padding-left: 20px; color: var(--color-text-muted); margin: 0 0 18px; }
.card li { margin-bottom: 8px; }

/* ---------- Stats / Experience ---------- */

.stats {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  text-align: center;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-accent);
}

.stat-label { color: var(--color-text-muted); font-size: 0.95rem; }

/* ---------- Two-column layout ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- List blocks (service detail pages) ---------- */

.detail-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.detail-block ul {
  color: var(--color-text-muted);
  padding-left: 20px;
  margin: 0;
}

.detail-block li { margin-bottom: 10px; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
}

.tag {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-info-item > div:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-info-item .icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.contact-info-item .icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

input, textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: -8px;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-top: 24px;
}

.map-wrap iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---------- Social ---------- */

.social-row {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 700;
}

.social-row a:hover { border-color: var(--color-accent); color: var(--color-accent); text-decoration: none; }

.social-row svg { width: 20px; height: 20px; flex-shrink: 0; }
.social-row a:focus-visible { outline: 3px solid #ff9c8f; outline-offset: 4px; }

.site-footer .social-row a {
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

.site-footer .social-row a:hover { border-color: #ff9c8f; color: #ff9c8f; }

/* ---------- Footer ---------- */

.site-footer {
  background: #241a1c;
  padding: 48px 0 24px;
}

.site-footer p, .site-footer li { color: #cbb9bb; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h3 { font-size: 1rem; color: #fff; }
.footer-grid > div { min-width: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; color: #cbb9bb; overflow-wrap: anywhere; }
.footer-grid a { color: #cbb9bb; }
.footer-grid a:hover { color: #ff9c8f; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  text-align: center;
  color: #a3898b;
  font-size: 0.85rem;
}

/* ---------- Photo blocks ---------- */

.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: -32px -28px 20px;
  width: calc(100% + 56px);
}

.photo-block {
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.photo-block img { width: 100%; height: auto; max-height: 320px; object-fit: contain; }

.page-products .card-img { object-fit: contain; background: #fff; }

@media (max-width: 600px) {
  .hero { padding: 56px 0 44px; }
  .photo-block img { max-height: 240px; }
}

.detail-block .photo-block { margin-top: 18px; }

/* ---------- Utilities ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Contact page corrections ---------- */

.page-contact .contact-grid > div { min-width: 0; }

.page-contact #contact-form .btn {
  display: block;
  margin-top: 4px;
}

.page-contact #contact-form .form-note {
  clear: both;
  margin: 14px 0 0;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.page-contact .contact-info-item a { overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .page-contact .section { padding: 48px 0; }
  .page-contact form { padding: 24px 20px; }
  .page-contact .map-wrap iframe { height: 240px; }
}

/* ---------- Home page corrections ---------- */

.page-home .grid .card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.page-home .grid .card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.page-home .hero h1,
.page-home .hero p,
.page-home .detail-block,
.page-home .footer-grid {
  overflow-wrap: anywhere;
}

@media (max-width: 460px) {
  .page-home .container { padding-left: 18px; padding-right: 18px; }
  .page-home .card { padding-left: 24px; padding-right: 24px; }
  .page-home .card-img {
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
  }
}

/* ---------- Shared service-page corrections ---------- */

.page-service .card,
.page-service .detail-block,
.page-service .hero,
.page-service .footer-grid {
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-service .grid .card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-service .grid .card .btn { align-self: flex-start; margin-top: auto; }

.page-service .photo-block img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  background: #f6f1f1;
}

.page-gps .photo-block img { object-fit: contain; }

@media (max-width: 600px) {
  .page-service .container { padding-left: 18px; padding-right: 18px; }
  .page-service .photo-block img { height: 230px; }
  .page-service .hero p.lead { font-size: 1rem; }
}

/* ---------- Refacciones catalog ---------- */

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

.nav-links a[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 700;
}

.catalog-hero {
  padding: 76px 0 68px;
  background-position: center 44%;
}

.catalog-intro {
  padding: 52px 0;
  background: linear-gradient(135deg, #fff 0%, #fbf7f7 100%);
  border-bottom: 1px solid var(--color-border);
}

.catalog-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 56px;
  align-items: center;
}

.catalog-intro h2,
.catalog-contact h2 { margin-bottom: 12px; }

.catalog-intro p,
.catalog-contact p { margin-bottom: 0; }

.catalog-kicker {
  display: block;
  color: var(--color-accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.catalog-note {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(36, 26, 28, .06);
}

.catalog-note-icon {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 800;
}

.catalog-note strong { display: block; margin-bottom: 4px; }
.catalog-note p { font-size: .9rem; line-height: 1.5; }

.catalog-section {
  padding-top: 48px;
  background: #faf9f9;
}

.catalog-toolbar {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 26px rgba(36, 26, 28, .05);
}

.catalog-search {
  position: relative;
  display: block;
  margin: 0 0 16px;
}

.catalog-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--color-text-muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.catalog-search input {
  height: 50px;
  margin: 0;
  padding: 12px 16px 12px 48px;
  border-radius: 9px;
  background: #fcfbfb;
}

.catalog-search input:focus {
  background: #fff;
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-chip {
  appearance: none;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  font: inherit;
  font-size: .86rem;
  font-weight: 650;
  line-height: 1;
  padding: 10px 15px;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filter-chip.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.catalog-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 2px 16px;
  color: var(--color-text-muted);
  font-size: .9rem;
}

.catalog-summary strong {
  color: var(--color-text);
  font-size: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 7px 22px rgba(36, 26, 28, .05);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  border-color: rgba(101, 25, 34, .45);
  box-shadow: 0 14px 34px rgba(36, 26, 28, .1);
  transform: translateY(-4px);
}

.product-card[hidden] { display: none; }

.product-card:focus-visible {
  outline: 3px solid #ff9c8f;
  outline-offset: 4px;
}

.product-image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #eee8e8;
  cursor: zoom-in;
}

.product-image-button:focus-visible {
  outline: 3px solid #ff9c8f;
  outline-offset: -3px;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #eee8e8;
}

.product-gallery .product-image-button { border-bottom: 0; }
.product-gallery .product-image-button + .product-image-button { border-left: 1px solid #eee8e8; }
.product-gallery .product-image { padding: 10px; }

.product-image {
  width: 100%;
  height: 228px;
  padding: 18px;
  object-fit: contain;
  transition: transform .25s ease;
}

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

.image-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(36, 26, 28, .82);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}

.product-image-button:hover .image-zoom,
.product-image-button:focus-visible .image-zoom {
  opacity: 1;
  transform: translateY(0);
}

.product-content { padding: 22px 22px 24px; }

.product-category {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--color-accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.product-content h3 {
  min-height: 2.5em;
  margin-bottom: 9px;
  font-size: 1.12rem;
}

.product-content p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.55;
}

.product-detail-cta {
  display: block;
  margin-top: 16px;
  color: var(--color-accent);
  font-size: .84rem;
  font-weight: 750;
}

.page-products .product-image-button { cursor: pointer; }

.catalog-empty {
  padding: 58px 24px;
  background: #fff;
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  text-align: center;
}

.catalog-empty strong { display: block; margin-bottom: 6px; font-size: 1.15rem; }

.catalog-credits {
  margin-top: 28px;
  color: var(--color-text-muted);
  font-size: .76rem;
}

.catalog-credits summary {
  width: fit-content;
  cursor: pointer;
}

.catalog-credits p {
  max-width: 900px;
  margin: 8px 0 0;
  font-size: inherit;
  line-height: 1.55;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(20, 14, 16, .93);
}

.image-lightbox.open { display: flex; }
.image-lightbox figure { margin: 0; text-align: center; }

.image-lightbox img {
  max-width: min(92vw, 1000px);
  max-height: 80vh;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 70px rgba(0, 0, 0, .5);
}

.image-lightbox figcaption { margin-top: 14px; color: #fff; font-weight: 600; }

.image-lightbox-close {
  position: absolute;
  top: 14px;
  right: 22px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 44px;
  line-height: 1;
}

.image-lightbox-close:focus-visible { outline: 3px solid #ff9c8f; outline-offset: 4px; }

.catalog-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
}

.catalog-contact-inner > div { max-width: 720px; }
.catalog-contact .btn { flex: 0 0 auto; }

@media (max-width: 900px) {
  .catalog-intro-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .catalog-hero { padding: 58px 0 50px; }
  .catalog-intro { padding: 40px 0; }
  .catalog-toolbar { padding: 14px; }
  .catalog-filters { flex-wrap: nowrap; margin-right: -14px; padding-right: 14px; overflow-x: auto; scrollbar-width: thin; }
  .filter-chip { flex: 0 0 auto; }
  .catalog-summary { align-items: flex-start; flex-direction: column; gap: 2px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image { height: 242px; }
  .product-content h3 { min-height: 0; }
  .image-zoom { opacity: 1; transform: none; }
  .catalog-contact-inner { align-items: flex-start; flex-direction: column; gap: 24px; }
}

/* ---------- Individual refaccion page ---------- */

.page-product-detail { background: #faf9f9; }

.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 28px;
  padding-bottom: 20px;
  color: var(--color-text-muted);
  font-size: .86rem;
}

.product-detail-section { padding: 12px 0 72px; }

.product-detail-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.product-detail-heading h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.product-detail-summary {
  max-width: 720px;
  margin: 0;
  font-size: 1.08rem;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 36px;
  align-items: start;
}

.product-gallery-detail,
.product-information {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 10px 34px rgba(36, 26, 28, .07);
}

.product-gallery-detail { padding: 20px; }

.product-main-image {
  position: relative;
  display: block;
  width: 100%;
  min-height: 470px;
  padding: 16px;
  overflow: hidden;
  background: #f8f6f6;
  border: 1px solid #eee8e8;
  border-radius: 10px;
  cursor: zoom-in;
}

.product-main-image img {
  width: 100%;
  height: 438px;
  object-fit: contain;
}

.product-main-image > span {
  position: absolute;
  right: 15px;
  bottom: 15px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(36, 26, 28, .84);
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
}

.product-main-image:focus-visible,
.product-thumbnails button:focus-visible {
  outline: 3px solid #ff9c8f;
  outline-offset: 3px;
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.product-thumbnails.single-image { display: none; }

.product-thumbnails button {
  height: 84px;
  padding: 5px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
}

.product-thumbnails button.active {
  border: 2px solid var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-soft);
}

.product-thumbnails img { width: 100%; height: 100%; object-fit: contain; }

.product-image-credit {
  margin: 14px 2px 0;
  font-size: .72rem;
  line-height: 1.45;
}

.product-information { padding: 28px; }

.product-information-header {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.product-information-header span {
  display: block;
  margin-bottom: 4px;
  color: var(--color-accent);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-information-header h2 { margin: 0; font-size: 1.5rem; }

.product-specs { margin: 0; }

.product-spec-row {
  display: grid;
  grid-template-columns: minmax(120px, .72fr) minmax(0, 1.28fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #eee8e8;
}

.product-spec-row dt {
  color: var(--color-text-muted);
  font-size: .82rem;
  font-weight: 600;
}

.product-spec-row dd {
  margin: 0;
  color: var(--color-text);
  font-size: .9rem;
  font-weight: 650;
}

.product-compatibility-note {
  margin-top: 22px;
  padding: 17px 18px;
  background: var(--color-accent-soft);
  border-radius: 9px;
}

.product-compatibility-note strong { display: block; margin-bottom: 4px; color: var(--color-accent); }
.product-compatibility-note p { margin: 0; font-size: .86rem; line-height: 1.5; }

.product-no-price { margin-top: 16px; box-shadow: none; }

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 22px;
}

.product-detail-actions .btn { text-align: center; }

.product-not-found {
  min-height: 58vh;
  padding: 100px 0;
}

.product-not-found p { margin-bottom: 26px; }

@media (max-width: 900px) {
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-main-image { min-height: 420px; }
  .product-main-image img { height: 388px; }
}

@media (max-width: 600px) {
  .product-breadcrumb { padding-top: 20px; padding-bottom: 12px; }
  .product-detail-section { padding-top: 8px; padding-bottom: 48px; }
  .product-detail-heading { margin-bottom: 24px; }
  .product-detail-heading h1 { font-size: 2rem; }
  .product-gallery-detail { padding: 12px; }
  .product-main-image { min-height: 330px; padding: 10px; }
  .product-main-image img { height: 305px; }
  .product-thumbnails { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-thumbnails button { height: 70px; }
  .product-information { padding: 22px 18px; }
  .product-spec-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .product-detail-actions { flex-direction: column; }
  .product-detail-actions .btn { width: 100%; }
}
