/* =====================================================
   MOBILE.CSS — Exclusivo para dispositivos móveis
   Ativado pela classe .is-mobile no <html>
   ===================================================== */

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

.is-mobile body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.is-mobile .container {
  padding: 0 1rem;
  max-width: 100%;
}

/* =====================================================
   HEADER
   ===================================================== */
.is-mobile .header {
  padding: 0 1rem;
}

/* =====================================================
   HERO
   ===================================================== */
.is-mobile .hero {
  height: 100svh;
  min-height: 580px;
}

.is-mobile .hero-content {
  padding: 0 1.5rem;
  width: 100%;
}

.is-mobile .hero-title {
  font-size: clamp(2rem, 9vw, 2.8rem);
  margin-bottom: 1rem;
}

.is-mobile .hero-subtitle {
  font-size: 1rem;
  margin-bottom: 2rem;
  padding: 0;
}

.is-mobile .hero-cta {
  flex-direction: column;
  width: 100%;
  gap: 0.75rem;
  align-items: stretch;
  padding: 0;
}

.is-mobile .hero-cta .btn {
  width: 100%;
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: 0.88rem;
  border-radius: 10px;
  min-height: 52px;
}

/* =====================================================
   PRODUCTS — stack vertical, cards full-width
   ===================================================== */
.is-mobile .products-section {
  padding: 3rem 0 3.5rem;
}

.is-mobile .products-section::before {
  display: none;
}

.is-mobile .section-header {
  margin-bottom: 1.75rem;
  padding: 0 1rem;
}

.is-mobile .section-title {
  font-size: 1.75rem;
  letter-spacing: 0;
}

.is-mobile .section-subtitle {
  font-size: 0.88rem;
  padding: 0;
}

.is-mobile .products-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.is-mobile .product-card {
  border-radius: 14px;
  transform: none !important;
  transition: box-shadow 0.2s ease;
}

.is-mobile .product-card:active {
  box-shadow: 0 4px 20px rgba(43, 108, 176, 0.18);
}

.is-mobile .product-image {
  aspect-ratio: 16 / 9;
  height: auto;
}

.is-mobile .product-info {
  padding: 1.1rem 1.25rem 1.4rem;
}

.is-mobile .product-title {
  font-size: 1.35rem;
}

.is-mobile .product-description {
  font-size: 0.9rem;
  line-height: 1.65;
}

.is-mobile .product-sizes {
  gap: 0.35rem;
  flex-wrap: wrap;
}

.is-mobile .size-badge {
  font-size: 0.74rem;
  padding: 0.28rem 0.7rem;
}

/* =====================================================
   CATÁLOGO MOBILE — SWIPE CARDS PREMIUM
   ===================================================== */

.is-mobile .catalog-section {
  margin-top: 2rem;
}

/* Banner do catálogo — mais compacto no mobile */
.is-mobile .catalog-banner {
  padding: 2rem 1rem 1.5rem;
}

.is-mobile .catalog-banner-content {
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

.is-mobile .catalog-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto;
}

.is-mobile .catalog-icon svg {
  width: 28px;
  height: 28px;
}

.is-mobile .catalog-main-title {
  font-size: 1.6rem;
  letter-spacing: 0;
  line-height: 1.2;
}

.is-mobile .catalog-main-subtitle {
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Indicador de swipe */
.is-mobile .catalog-swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-family: var(--font-body);
  padding: 0 1rem 0.5rem;
  letter-spacing: 0.2px;
}

.is-mobile .catalog-swipe-hint svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  animation: swipeHint 2s ease-in-out infinite;
}

@keyframes swipeHint {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50% { transform: translateX(5px); opacity: 1; }
}

/* Container de scroll horizontal */
.is-mobile .catalog-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 0.875rem !important;
  padding: 1.25rem 1rem 2rem !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 100vw;
  width: calc(100% + 2rem);
  margin-left: -1rem;
}

.is-mobile .catalog-grid::-webkit-scrollbar {
  display: none;
}

/* Cada card "encaixa" no scroll */
.is-mobile .catalog-item {
  flex: 0 0 82vw !important;
  max-width: 82vw !important;
  width: 82vw !important;
  min-width: unset !important;
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
  display: flex !important;
  flex-direction: column !important;
  transform: none !important;
  transition: box-shadow 0.2s ease;
  border: none;
}

.is-mobile .catalog-item:active {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.is-mobile .catalog-item:first-child {
  margin-left: 0;
  scroll-margin-left: 1rem;
}

.is-mobile .catalog-item:last-child {
  margin-right: 1rem;
}

/* Foto do card — proporção 4/3, imagem preenchida */
.is-mobile .catalog-image-container {
  width: 100% !important;
  height: auto !important;
  min-height: unset !important;
  aspect-ratio: 4 / 3 !important;
  position: relative;
  background: #e8edf8;
  overflow: hidden;
  flex-shrink: 0;
}

.is-mobile .catalog-image-front,
.is-mobile .catalog-image-back {
  position: absolute;
  inset: 0;
}

.is-mobile .catalog-image-front img,
.is-mobile .catalog-image-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
}

/* Botão de flip */
.is-mobile .flip-button {
  position: absolute;
  bottom: 0.875rem;
  right: 0.875rem;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.4);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
}

.is-mobile .flip-button svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
  stroke: white;
}

/* Número/índice flutuante */
.is-mobile .catalog-image-container::before {
  content: attr(data-stone-size);
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(30, 58, 138, 0.88);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 5;
  font-family: var(--font-body);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Info abaixo da foto */
.is-mobile .catalog-info {
  padding: 1rem 1.125rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  min-width: 0;
  flex: 1;
}

.is-mobile .catalog-name-size {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.is-mobile .catalog-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a2332;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.2;
  font-family: var(--font-heading);
}

.is-mobile .catalog-size-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 0.2rem 0.55rem;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e3a8a;
  border-radius: 20px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.is-mobile .catalog-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Botão Solicitar Orçamento — full-width, premium */
.is-mobile .catalog-saiba-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.625rem;
  padding: 0.875rem 1rem;
  min-height: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 12px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28);
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.is-mobile .catalog-saiba-btn:active {
  opacity: 0.85;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.is-mobile .catalog-saiba-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  pointer-events: none;
}

/* Dots de paginação */
.is-mobile .catalog-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 1rem 1.5rem;
}

.is-mobile .catalog-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.3s ease;
  cursor: pointer;
}

.is-mobile .catalog-dot.active {
  background: #ffffff;
  width: 20px;
  border-radius: 3px;
}

/* =====================================================
   ABOUT — coluna única
   ===================================================== */
.is-mobile .about-content {
  flex-direction: column;
}

.is-mobile .about-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* =====================================================
   CONTATO — coluna única, inputs anti-zoom iOS
   ===================================================== */
.is-mobile .contact-layout {
  grid-template-columns: 1fr;
  display: flex;
  flex-direction: column;
}

.is-mobile .contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.is-mobile .contact-extra {
  grid-template-columns: 1fr;
}

.is-mobile input,
.is-mobile textarea,
.is-mobile select {
  font-size: 16px !important;
}

.is-mobile .contact-main-title {
  font-size: 1.75rem;
}

.is-mobile .contact-main-subtitle {
  font-size: 0.9rem;
}

/* =====================================================
   WHATSAPP FLOAT
   ===================================================== */
.is-mobile .whatsapp-float {
  bottom: 1.25rem;
  right: 1.25rem;
  width: 52px;
  height: 52px;
}

/* =====================================================
   FOOTER — coluna única
   ===================================================== */
.is-mobile .footer-content {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.is-mobile .footer-section {
  text-align: center;
}

.is-mobile .social-links {
  justify-content: center;
}
