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

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #222;
  background: #ffffff;
}

.product-page {
  padding: 40px 16px;
}

.product-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* GRID PRINCIPAL */
.product-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1.1fr;
  gap: 40px;
  align-items: flex-start;
}

/* ===== Galería ===== */
.product-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-main-image {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.product-thumbs-wrapper {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
}

.gallery-arrow {
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  color: #777;
  transition: color 0.15s ease;
}

.gallery-arrow:hover {
  color: #111;
}

.product-thumbs {
  flex: 1;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.product-thumb {
  flex: 0 0 82px;
  height: 82px;
  border-radius: 12px;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

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

.product-thumb--active {
  border-color: #f3c13a; /* amarillo estilo Electro */
  transform: translateY(-2px);
}

/* ===== Info central ===== */

.product-info {
  padding-top: 16px;
}

.product-category {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 8px;
}

.product-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #111;
}

.product-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 24px;
}

.product-shipping {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #e3e3e3;
  background: #fafafa;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
}

.shipping-icon {
  font-size: 16px;
}

/* ===== Sidebar derecha ===== */

.product-sidebar {
  display: flex;
  justify-content: flex-end;
}

.sidebar-inner {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  padding: 22px 24px 20px;
  border: 1px solid #f0f0f0;
}

.availability-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 18px;
}

.availability-label {
  color: #777;
}

.availability-value {
  font-weight: 500;
  color: #20a34a; /* verde “En stock” */
}

.availability-value.out-of-stock {
  color: #c0392b;
}

/* Precio grande */
.price-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 20px;
}

.price-symbol {
  font-size: 26px;
  font-weight: 500;
  color: #111;
}

.price-value {
  font-size: 30px;
  font-weight: 600;
  color: #111;
}

/* Cantidad */
.qty-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #777;
  margin-bottom: 18px;
}

.qty-input {
  width: 90px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 14px;
}

/* Botón WhatsApp (píldora negra con icono verde) */
.whatsapp-btn {
  width: 100%;
  margin-top: 4px;
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  background: #000;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.whatsapp-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  background: #111;
}

.whatsapp-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #25d366;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
}

/* Wishlist / Compare */
.sidebar-icons {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.sidebar-icon-btn {
  border: none;
  background: none;
  font-size: 12px;
  color: #999;
  cursor: pointer;
}

/* ===== Pagos ===== */

.payments-section {
  margin-top: 40px;
}

.payments-block {
  border-radius: 20px;
  border: 1px solid #f1f1f1;
  padding: 18px 22px;
  background: #fafafa;
}

.payments-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.payments-row:last-child {
  margin-bottom: 0;
}

.payments-text strong {
  font-weight: 600;
}

.payments-cards,
.payments-banks {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payments-cards img,
.payments-banks img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.payments-row--banks .payments-label {
  font-weight: 500;
}

/* ===== Responsive ===== */

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-sidebar {
    justify-content: flex-start;
  }

  .sidebar-inner {
    max-width: 100%;
  }

  .product-gallery,
  .product-main-image {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .product-page {
    padding-top: 24px;
  }

  .product-title {
    font-size: 22px;
  }

  .price-value {
    font-size: 24px;
  }

  .payments-block {
    padding: 16px 14px;
  }
}
/* ===== Precio USD + ARS en sidebar ===== */
.product-sidebar .price-box {
  margin-top: 16px;
  margin-bottom: 16px;
}

.product-sidebar .price-usd {
  font-size: 13px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.product-sidebar .price-ars .price-value {
  font-size: 26px;
  font-weight: 700;
  color: #222;
}

/* ===== Caja de cuotas ===== */
.installments-box {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 14px;
  background: #fafafa;
}

.installment-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
}

.installment-row span:first-child {
  font-weight: 500;
}

.installment-amount {
  font-weight: 600;
}

.installments-note {
  font-size: 11px;
  color: #777;
  margin: 6px 0 0;
  line-height: 1.4;
}
.price-box {
  margin-bottom: 20px;
}

.price-usd {
  font-size: 16px;
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 5px;
}

.price-ars {
  font-size: 28px;
  font-weight: 700;
}

.cuotas-box {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid #e5e5e5;
}

.cuota-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  padding: 6px 0;
}

.cuota-row span:last-child {
  font-weight: 600;
}

.cuota-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #555;
}

