/* ===== SHIPPING BANNER ===== */
.shipping-banner {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
}
.shipping-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--gray);
}
.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .current { color: var(--dark); font-weight: 500; }

/* ===== PDP MAIN ===== */
.pdp-main {
  padding: 32px 0 0;
}

/* ===== PDP TOP: Gallery + Info ===== */
.pdp-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

/* ===== IMAGE GALLERY ===== */
.pdp-gallery {
  position: sticky;
  top: 90px;
  align-self: start;
}

.pdp-main-image {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 420px;
  margin-bottom: 12px;
  cursor: zoom-in;
}

.pdp-main-image img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  transition: transform 0.3s;
}

.pdp-main-image:hover img {
  transform: scale(1.03);
}

.pdp-thumbnails {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.thumb {
  width: 72px;
  height: 72px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 4px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

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

.thumb:hover {
  border-color: var(--gray-light);
}

.thumb.active {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

/* ===== PRODUCT INFO ===== */
.pdp-info {
  padding-top: 8px;
}

.pdp-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 6px;
}

.pdp-sku {
  font-size: 13px;
  color: var(--gray-light);
  margin-bottom: 12px;
}

.pdp-tagline {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Promo Badge */
.pdp-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

/* Pricing */
.pdp-pricing {
  background: var(--bg-lighter);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.pdp-price-row,
.pdp-discount-row,
.pdp-price-final-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.pdp-price-label {
  font-size: 13px;
  color: var(--gray);
  min-width: 70px;
}

.pdp-price-old {
  font-size: 16px;
  color: var(--gray-light);
  text-decoration: line-through;
}

.pdp-discount-label {
  font-size: 13px;
  color: var(--gray);
  min-width: 70px;
}

.pdp-discount-value {
  font-size: 14px;
  color: #2e7d32;
  font-weight: 600;
}

.pdp-price-final {
  font-size: 32px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.5px;
}

.pdp-installments {
  display: block;
  font-size: 14px;
  color: var(--gray);
  margin-top: 6px;
}

/* Availability */
.pdp-availability {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #2e7d32;
}

.avail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2e7d32;
  display: inline-block;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Quantity & Cart */
.pdp-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 48px;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  background: var(--bg-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.qty-btn:hover {
  background: var(--border);
}

.qty-input {
  width: 48px;
  height: 48px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
  outline: none;
  -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.btn-cart-large {
  flex: 1;
  height: 48px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
}

.btn-cart-large:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

/* Wishlist */
.pdp-wishlist {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray);
  padding: 8px 0;
  margin-bottom: 20px;
  transition: color 0.3s;
}

.pdp-wishlist:hover {
  color: var(--red);
}

/* Warranty */
.pdp-warranty {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.warranty-badge {
  max-width: 200px;
  border-radius: var(--radius-md);
}

/* ===== TABS ===== */
.pdp-tabs {
  margin-bottom: 48px;
}

.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0;
  overflow-x: auto;
}

.tab-btn {
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  background: var(--bg-lighter);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-right: 2px;
  transition: all 0.3s;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--dark);
  background: var(--bg-light);
}

.tab-btn.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.tab-content {
  display: none;
  padding: 32px;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.tab-content.active {
  display: block;
}

.tab-inner h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.tab-inner p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* Features Icons Grid */
.features-icons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-icon-card {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s;
}

.feature-icon-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon-card img {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.feature-icon-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.feature-icon-card p {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border);
}

.specs-table tr:last-child { border-bottom: none; }

.specs-table th,
.specs-table td {
  padding: 12px 16px;
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

.specs-table th {
  font-weight: 600;
  color: var(--dark);
  width: 40%;
  background: var(--bg-lighter);
}

.specs-table td {
  color: var(--gray);
}

.specs-table tr:hover {
  background: rgba(204, 0, 0, 0.02);
}

/* Package List */
.package-list {
  list-style: none;
  padding: 0;
}

.package-list li {
  padding: 10px 0 10px 28px;
  font-size: 14px;
  color: var(--dark-2);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.package-list li:last-child { border-bottom: none; }

.package-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* ===== SHOWCASE — FULL WIDTH ===== */
.pdp-showcase {
  width: 100%;
  margin: 0;
}

.showcase-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.showcase-hero-overlay {
  text-align: center;
  padding: 80px 40px;
  background: rgba(0, 0, 0, 0.4);
  width: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.showcase-hero-camera {
  max-width: 360px;
  margin-bottom: 24px;
  filter: drop-shadow(0 10px 40px rgba(0,0,0,0.5));
}

.showcase-hero-overlay h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.showcase-hero-overlay p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
}

/* Showcase Dark Section — full width */
.showcase-section.dark {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  width: 100%;
}

.showcase-section-content {
  background: rgba(0,0,0,0.55);
  width: 100%;
  padding: 80px 0;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-section-content h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.showcase-section-content p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  max-width: 600px;
}

/* Feature Rows — full width edge to edge, alternating sides */
.feature-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  overflow: hidden;
  width: 100%;
}
.feature-row .feature-img {
  flex: 0 0 50%;
  max-width: 50%;
  overflow: hidden;
}
.feature-row .feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feature-row .feature-text {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #000;
}
.feature-row .feature-text h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}
.feature-row .feature-text p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.8;
}
.feature-row.reverse {
  flex-direction: row-reverse;
}

/* Sample Photos — full width edge to edge */
.showcase-samples {
  text-align: center;
  padding: 64px 0 0;
  background: var(--bg-lighter);
  width: 100%;
}

.showcase-samples h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.showcase-subtitle {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 32px;
}

.samples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.sample-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 3/2;
  transition: all 0.3s;
}

.sample-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.sample-item:hover {
  box-shadow: var(--shadow-lg);
}

.sample-item:hover img {
  transform: scale(1.05);
}

/* ===== ACCESSORIES ===== */
.pdp-accessories {
  padding: 48px 0 64px;
  border-top: 1px solid var(--border);
}

.pdp-accessories h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
}

.accessories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.accessory-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s;
}

.accessory-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.accessory-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--bg-lighter);
  min-height: 120px;
}

.accessory-img img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.accessory-info {
  padding: 12px;
}

.accessory-info h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.accessory-info h4 a {
  color: var(--dark);
  transition: color 0.3s;
}

.accessory-info h4 a:hover { color: var(--red); }

.accessory-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .pdp-top {
    gap: 32px;
  }

  .features-icons-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .accessories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================================================
   MOBILE — 768px
   ================================================================ */
@media (max-width: 768px) {

  /* --- Layout principal --- */
  .pdp-top {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pdp-gallery {
    position: static;
    background: var(--bg-lighter);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    margin-bottom: 0;
  }

  .pdp-main-image {
    min-height: 280px;
    border: none;
    border-radius: 0;
    padding: 20px;
    background: var(--bg-lighter);
  }

  /* Thumbnails em strip horizontal limpo */
  .pdp-thumbnails {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 10px 16px 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: var(--bg-lighter);
    justify-content: flex-start;
  }
  .pdp-thumbnails::-webkit-scrollbar { display: none; }

  .thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }

  /* --- Info section --- */
  .pdp-info {
    padding: 20px 0 0;
    background: var(--white);
  }

  .pdp-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
  }

  .pdp-sku {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .pdp-tagline {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
  }

  .pdp-promo-badge {
    font-size: 12px;
    padding: 4px 12px;
    margin-bottom: 14px;
  }

  /* --- Pricing: visual e limpo --- */
  .pdp-pricing {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
  }

  .pdp-price-row,
  .pdp-discount-row {
    margin-bottom: 3px;
  }

  .pdp-price-label {
    font-size: 12px;
    min-width: 60px;
  }

  .pdp-price-old {
    font-size: 14px;
  }

  .pdp-discount-label {
    font-size: 12px;
    min-width: 60px;
  }

  .pdp-discount-value {
    font-size: 13px;
  }

  .pdp-price-final {
    font-size: 30px;
    letter-spacing: -0.5px;
  }

  .pdp-installments {
    font-size: 13px;
    margin-top: 4px;
    color: var(--gray);
  }

  /* --- Disponível --- */
  .pdp-availability {
    font-size: 13px;
    margin-bottom: 16px;
  }

  /* --- Ações: qty + botão lado a lado --- */
  .pdp-actions {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }

  .qty-selector {
    flex-shrink: 0;
  }

  .qty-btn {
    width: 36px;
    height: 48px;
  }

  .qty-input {
    width: 40px;
    height: 48px;
    font-size: 14px;
  }

  .btn-cart-large {
    flex: 1;
    height: 48px;
    font-size: 14px;
  }

  /* --- Wishlist --- */
  .pdp-wishlist {
    font-size: 13px;
    margin-bottom: 16px;
    justify-content: center;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    width: 100%;
  }

  /* --- Garantia --- */
  .pdp-warranty {
    padding-top: 16px;
    display: flex;
    justify-content: center;
  }
  .warranty-badge {
    max-width: 160px;
  }

  /* --- Tabs --- */
  .pdp-tabs {
    margin-bottom: 32px;
  }

  .tabs-nav {
    gap: 0;
    border-bottom: 2px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0;
  }
  .tabs-nav::-webkit-scrollbar { display: none; }

  .tab-btn {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .tab-content {
    padding: 20px 16px;
  }

  .tab-inner h2 {
    font-size: 18px;
  }

  .tab-inner p {
    font-size: 14px;
  }

  /* --- Features: 2 colunas no mobile --- */
  .features-icons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .feature-icon-card {
    padding: 16px 10px;
  }

  .feature-icon-card h4 {
    font-size: 13px;
  }

  .feature-icon-card p {
    font-size: 11px;
  }

  /* --- Specs --- */
  .specs-table th,
  .specs-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* --- Package list --- */
  .package-list li {
    font-size: 14px;
  }

  /* --- Showcase --- */
  .samples-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-hero { min-height: 220px; }
  .showcase-hero img { object-fit: cover; min-height: 220px; }

  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
  }
  .feature-row .feature-img,
  .feature-row .feature-text {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .feature-row .feature-text {
    padding: 28px 20px;
  }
  .feature-row .feature-text h3 {
    font-size: 1.2rem;
  }

  /* --- Footer --- */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .accessories-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ================================================================
   MOBILE — 480px
   ================================================================ */
@media (max-width: 480px) {

  /* Imagem principal tela cheia */
  .pdp-main-image {
    min-height: 240px;
    padding: 16px;
  }

  .thumb {
    width: 52px;
    height: 52px;
  }

  /* Título */
  .pdp-title { font-size: 18px; }

  /* Preço grande e destacado */
  .pdp-price-final { font-size: 28px; }

  /* Botão carrinho full width abaixo da qty */
  .pdp-actions {
    flex-wrap: wrap;
    gap: 10px;
  }
  .qty-selector { flex: 0 0 auto; }
  .btn-cart-large {
    min-width: 0;
    font-size: 13px;
    gap: 8px;
  }

  /* Tabs: menor */
  .tab-btn {
    padding: 9px 13px;
    font-size: 12px;
  }

  /* Tab content mais arejado */
  .tab-content { padding: 16px 14px; }

  /* Features: 2 col mesmo em 480 */
  .features-icons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .feature-icon-svg svg { width: 40px; height: 40px; }

  /* Specs */
  .specs-table { font-size: 12px; }
  .specs-table th { width: 42%; }
  .specs-table th, .specs-table td { padding: 9px 10px; }

  /* Showcase */
  .samples-grid { grid-template-columns: 1fr 1fr; }
  .showcase-samples h3 { font-size: 18px; }
  .feature-row .feature-text { padding: 20px 16px; }
  .feature-row .feature-text h3 { font-size: 1.1rem; }
  .feature-row .feature-text p { font-size: .88rem; line-height: 1.6; }

  /* Footer */
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-col h4 { font-size: 13px; }
  .footer-col ul li a { font-size: 13px; }

  .accessories-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   STICKY ADD-TO-CART BAR (mobile only)
   ================================================================ */
.sticky-cta-bar {
  display: none;
}

@media (max-width: 768px) {
  .sticky-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 800;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 10px 16px 14px;
    gap: 10px;
    align-items: center;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  }
  .sticky-cta-bar.visible {
    transform: translateY(0);
  }
  .sticky-cta-price {
    flex: 1;
    min-width: 0;
  }
  .sticky-cta-price strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--red);
    line-height: 1.1;
  }
  .sticky-cta-price span {
    font-size: 11px;
    color: var(--gray);
  }
  .sticky-cta-btn {
    flex-shrink: 0;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
  }
  .sticky-cta-btn:hover { background: var(--red-dark); }

  /* Espaço para não sobrepor conteúdo no scroll */
  body.has-sticky-cta { padding-bottom: 80px; }
}

/* ===== PREVENT HORIZONTAL OVERFLOW ON ALL SCREENS ===== */
.pdp-main,
.pdp-top,
.pdp-gallery,
.pdp-info,
.pdp-tabs,
.tab-content,
.tab-inner,
.pdp-showcase,
.showcase-hero,
.feature-row,
.showcase-samples,
.samples-grid,
.main-footer,
.footer-grid {
  max-width: 100%;
  overflow-x: hidden;
}

/* Table: wrap in scroll container so long tables don't break layout */
.specs-table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Thumbnails horizontal scroll is intentional, but cap it */
.pdp-thumbnails {
  max-width: 100%;
}

@media (max-width: 768px) {
  /* Top header: hide frete text on very small screens */
  .frete-badge div {
    display: none;
  }

  /* Container padding tighter on mobile */
  .container {
    padding: 0 16px;
  }

  /* Tabs: wrap if needed */
  .tabs-nav {
    flex-wrap: wrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Ensure pdp-info and gallery don't overflow */
  .pdp-gallery,
  .pdp-info {
    width: 100%;
    min-width: 0;
  }

  /* Feature row text padding */
  .feature-row .feature-text {
    padding: 24px 16px;
  }
}

@media (max-width: 480px) {
  /* Hide frete badge entirely */
  .frete-badge {
    display: none;
  }

  .top-header-inner {
    justify-content: center;
  }

  /* Tabs scroll horizontally instead of wrapping strangely */
  .tabs-nav {
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs-nav::-webkit-scrollbar { display: none; }
  .tab-btn { white-space: nowrap; flex-shrink: 0; }

  /* Table cells break long words */
  .specs-table th,
  .specs-table td {
    word-break: break-word;
    font-size: 13px;
  }

  /* Guarantee no child overflows on very small phones */
  * { max-width: 100%; }
  img, svg { max-width: 100%; }
}
