/* Shared styles for product detail pages — Compras San Diego Tijuana */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', sans-serif;
  color: #222;
  background: #fff;
}

/* HEADER */
header {
  background: linear-gradient(135deg, #c0392b, #1a1a2e);
  color: white;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
header h1 { font-size: 1.4rem; font-weight: 700; letter-spacing: 1px; }
header h1 a { color: white; text-decoration: none; }
nav a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.95rem;
  opacity: 0.9;
}
nav a:hover { opacity: 1; text-decoration: underline; }

/* BREADCRUMB */
.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px 0;
  font-size: 0.88rem;
  color: #777;
}
.breadcrumb a { color: #c0392b; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* PRODUCT LAYOUT */
.product-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}
.gallery { flex: 1 1 460px; min-width: 300px; }
.detail-info { flex: 1 1 380px; min-width: 300px; }

/* GALLERY */
.gallery-main {
  width: 100%;
  background: #f4f4f4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.gallery-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  line-height: 0;
  transition: border-color 0.15s, transform 0.15s;
}
.thumbs button:hover { transform: translateY(-2px); }
.thumbs button.active { border-color: #c0392b; }
.thumbs img { width: 78px; height: 62px; object-fit: cover; display: block; }

/* INFO */
.detail-info h2 {
  font-size: 1.7rem;
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 8px;
}
.detail-info .sub {
  color: #666;
  font-size: 1rem;
  margin-bottom: 18px;
}
.price {
  font-size: 2.1rem;
  font-weight: 700;
  color: #c0392b;
  margin-bottom: 6px;
}
.price span { font-size: 1rem; font-weight: 600; color: #888; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.badge {
  background: #f4f4f4;
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.8rem;
  color: #555;
  font-weight: 600;
}
.badge.new { background: #d4edda; color: #155724; }

.specs { list-style: none; margin-bottom: 26px; }
.specs li {
  padding: 9px 0 9px 26px;
  border-bottom: 1px solid #eee;
  font-size: 0.94rem;
  color: #444;
  position: relative;
  line-height: 1.5;
}
.specs li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #25D366;
  font-weight: 700;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-wa:hover { background: #1ebe57; }
.btn-alt {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 2px solid #c0392b;
  color: #c0392b;
  padding: 12px 26px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.btn-alt:hover { background: #c0392b; color: white; }
.note { font-size: 0.86rem; color: #888; line-height: 1.6; }

/* MORE PRODUCTS */
.more-bg { background: #f4f4f4; padding: 56px 24px; }
.more-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.more-inner h3 { font-size: 1.5rem; color: #c0392b; margin-bottom: 28px; }
.more-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.more-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.09);
  overflow: hidden;
  width: 210px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
.more-card:hover { transform: translateY(-4px); }
.more-card img { width: 100%; height: 140px; object-fit: cover; display: block; }
.more-card div { padding: 12px; text-align: left; }
.more-card h4 { font-size: 0.88rem; color: #1a1a2e; margin-bottom: 5px; line-height: 1.35; }
.more-card p { font-size: 1rem; font-weight: 700; color: #c0392b; }

/* FOOTER */
footer {
  background: #1a1a2e;
  color: #aaa;
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
}
footer a { color: #bbb; }

/* FLOATING WHATSAPP */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.wa-float svg { width: 34px; height: 34px; }

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 26px;
  color: white;
  font-size: 2.4rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 700px) {
  header { padding: 14px 18px; }
  nav a { margin-left: 0; margin-right: 16px; display: inline-block; }
  .product-detail { gap: 28px; padding-top: 20px; }
  .detail-info h2 { font-size: 1.4rem; }
  .price { font-size: 1.8rem; }
  .btn-wa, .btn-alt { width: 100%; justify-content: center; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .wa-float svg { width: 30px; height: 30px; }
}

/* ============================================================
   QUOTE / SHOPPING SERVICE  (cotizacion.html)
   ============================================================ */
.quote-hero {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #c0392b 100%);
  color: white;
  text-align: center;
  padding: 64px 24px;
  overflow: hidden;
}
.quote-hero .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.20;
}
.quote-hero .inner { position: relative; max-width: 760px; margin: 0 auto; }
.quote-hero h2 { font-size: 2.1rem; line-height: 1.3; margin-bottom: 14px; }
.quote-hero p { font-size: 1.1rem; opacity: 0.93; line-height: 1.6; }

/* STORE STRIP */
.stores-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}
.store-logo {
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.10);
  overflow: hidden;
  width: 180px;
}
.store-logo img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  display: block;
}
.store-logo span {
  display: block;
  padding: 9px 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1a2e;
  text-align: center;
}
.stores-note {
  max-width: 760px;
  margin: 26px auto 0;
  font-size: 0.82rem;
  color: #999;
  line-height: 1.6;
  text-align: center;
}

/* QUOTE FORM */
.quote-wrap { background: #f4f4f4; padding: 60px 24px; }
.quote-inner { max-width: 720px; margin: 0 auto; }
.quote-inner > h3 {
  font-size: 1.8rem;
  color: #c0392b;
  margin-bottom: 8px;
  text-align: center;
}
.quote-inner > .subtitle {
  color: #555;
  margin-bottom: 34px;
  font-size: 1rem;
  text-align: center;
}
.quote-form {
  background: white;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a2e;
}
.field .hint { font-size: 0.78rem; color: #888; font-weight: 400; }
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 0.98rem;
  font-family: inherit;
  background: white;
  color: #222;
  transition: border-color 0.2s;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus { outline: none; border-color: #c0392b; }
.quote-form textarea { resize: vertical; min-height: 110px; }
.field-row { display: flex; gap: 16px; }
.field-row .field { flex: 1; }
.req { color: #c0392b; }

.btn-quote {
  background: #c0392b;
  color: white;
  border: none;
  padding: 15px 32px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  align-self: center;
  min-width: 240px;
}
.btn-quote:hover { background: #a93226; }
.btn-quote:disabled { background: #aaa; cursor: not-allowed; }

.quote-msg {
  padding: 13px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
  text-align: center;
  line-height: 1.5;
}
.quote-msg.success { background: #d4edda; color: #155724; display: block; }
.quote-msg.error   { background: #f8d7da; color: #721c24; display: block; }

.or-wa {
  text-align: center;
  margin-top: 26px;
  color: #777;
  font-size: 0.9rem;
}

/* STEPS (reused on quote page) */
.qsteps {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}
.qstep {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 26px 22px;
  flex: 1;
  min-width: 200px;
  max-width: 230px;
  text-align: center;
  border-top: 4px solid #c0392b;
}
.qstep .icon { font-size: 2.1rem; margin-bottom: 11px; }
.qstep h4 { font-size: 0.98rem; margin-bottom: 7px; color: #1a1a2e; }
.qstep p { font-size: 0.88rem; color: #666; line-height: 1.5; }

.section-plain {
  padding: 60px 24px;
  max-width: 1050px;
  margin: 0 auto;
  text-align: center;
}
.section-plain h3 { font-size: 1.7rem; margin-bottom: 8px; color: #c0392b; }
.section-plain .subtitle { color: #555; margin-bottom: 42px; font-size: 1rem; }

@media (max-width: 700px) {
  .quote-hero h2 { font-size: 1.5rem; }
  .quote-hero p { font-size: 1rem; }
  .quote-form { padding: 22px 18px; }
  .field-row { flex-direction: column; gap: 18px; }
  .btn-quote { width: 100%; min-width: 0; }
  .store-logo { width: 150px; }
  .store-logo img { height: 100px; }
}
