*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f7;
  color: #111827;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 5vw;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  position: relative;
  z-index: 20;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #0ea5e9;
}

.logo-text {
  font-size: 0.9rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav a {
  position: relative;
  padding-block: 0.25rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #0ea5e9;
  transition: width 0.2s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  padding: 1.5rem 5vw 1.25rem;
  gap: 1.5rem;
  background: radial-gradient(circle at top left, #e0f2fe, #f5f5f7);
}

.hero-text h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.75rem;
}

.hero-text p {
  margin: 0 0 1rem;
  color: #4b5563;
  max-width: 36rem;
  font-size: 0.95rem;
}

.hero-media {
  justify-self: flex-end;
  max-width: 420px;
}

.hero-img {
  width: 100%;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
  object-fit: cover;
}

.section {
  padding: 1.25rem 5vw;
}

.product-section {
  padding-top: 1rem;
}

.product-section > h2 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.product-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 0.9rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-slider {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 0.75rem;
}

.slider-images {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  object-fit: cover;
}

.slide.active {
  opacity: 1;
}

.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(15, 23, 42, 0.48);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
}

.slider-prev {
  left: 0.4rem;
}

.slider-next {
  right: 0.4rem;
}

.product-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.product-body p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.1s ease;
}

.btn-primary {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.40);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.50);
}

.btn-sky {
  background: #0ea5e9;
  color: #0f172a;
  box-shadow: 0 10px 22px rgba(56, 189, 248, 0.45);
}

.btn-sky:hover {
  background: #38bdf8;
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(148, 163, 184, 0.8);
}

.product-body .btn {
  margin-top: 0.1rem;
}

.about-section {
  padding-top: 1rem;
}

.about-section h2 {
  margin: 0 0 0.5rem;
}

.about-section p {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  max-width: 44rem;
}

.about-section .notes {
  background: #eff6ff;
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #dbeafe;
}

.faq-section {
  padding-top: 0.75rem;
  padding-bottom: 1rem;
}

.faq-section h2 {
  margin: 0 0 0.5rem;
}

.faq-list {
  display: grid;
  gap: 0.45rem;
}

details {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

details summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  float: right;
  font-weight: 500;
}

details[open] summary::after {
  content: "–";
}

details p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.site-footer {
  margin-top: 0.5rem;
  padding: 0.7rem 5vw 0.9rem;
  background: #111827;
  color: #e5e7eb;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.footer-left,
.footer-right {
  flex: 1 1 auto;
}

.footer-right {
  text-align: right;
}

.product-main {
  padding: 1.1rem 5vw 1.2rem;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.product-gallery {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.product-main-image {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.thumb {
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid transparent;
}

.thumb img {
  display: block;
  width: 70px;
  height: 70px;
  object-fit: cover;
}

.thumb.is-active {
  border-color: #0ea5e9;
}

.product-info {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.product-info h1 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.product-short {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.field {
  margin-bottom: 0.7rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
  color: #4b5563;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.9);
  padding: 0.4rem 0.6rem;
  font: inherit;
  background: #f9fafb;
}

.field textarea {
  resize: vertical;
}

.readonly-pill {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: #eff6ff;
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
}

.price-block {
  margin: 0.75rem 0;
  border-radius: 0.9rem;
  border: 1px dashed rgba(148, 163, 184, 0.8);
  padding: 0.55rem 0.7rem;
  background: #f9fafb;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.total-row {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.9);
}

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.45rem;
  font-size: 0.9rem;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: #ffffff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#quantity {
  width: 40px;
  text-align: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: #ffffff;
  padding-inline: 0.25rem;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #ffffff;
  border-radius: 1rem;
  padding: 0.9rem 1rem 0.9rem;
  width: min(420px, 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  position: relative;
}

.modal h2 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
}

.modal-form {
  margin-top: 0.2rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.modal-close {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  border: none;
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

body.no-scroll {
  overflow: hidden;
}

.payment-main,
.receipt-main {
  padding: 1.1rem 5vw 1.2rem;
}

.page-header h1 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
}

.page-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.info-message {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #b91c1c;
}

.recap-section {
  padding-top: 0.9rem;
}

.recap-grid {
  display: grid;
  gap: 0.35rem;
  background: #ffffff;
  border-radius: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.recap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.recap-row span {
  color: #4b5563;
}

.instructions-section {
  padding-top: 0.9rem;
}

.instructions-list {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: #111827;
}

.payment-actions {
  padding-top: 0.9rem;
}

.actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.actions-right {
  display: inline-flex;
  gap: 0.4rem;
}

.help-text {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: #4b5563;
}

.whatsapp-section {
  padding-top: 0.9rem;
}

.wa-textarea {
  width: 100%;
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.9);
  padding: 0.55rem 0.65rem;
  font: inherit;
  margin: 0.4rem 0 0.6rem;
  background: #f9fafb;
}

.important-section {
  padding-top: 0.4rem;
  font-size: 0.9rem;
}

.site-footer {
  margin-top: 0.5rem;
  padding: 0.7rem 5vw 0.9rem;
  background: #111827;
  color: #e5e7eb;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.footer-left,
.footer-right {
  flex: 1 1 auto;
}

.footer-right {
  text-align: right;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 1rem;
  }

  .hero-media {
    order: -1;
    justify-self: center;
    max-width: 320px;
  }

  .product-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }

  .actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .actions-right {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 520px) {
  .nav {
    gap: 0.75rem;
    font-size: 0.85rem;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .product-card {
    padding: 0.8rem;
  }
}
