/* ==========================================================================
   CASA DAS PANELAS - TYPOGRAPHY & DESIGN SYSTEM OVERHAUL - styles.css
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary-red: #D92525;
  --primary-red-hover: #B91C1C;
  --primary-red-light: #FEF2F2;
  --dark-heading: #0F172A;
  --body-text: #334155;
  --muted-text: #64748B;
  --light-bg: #F8FAFC;
  --border-color: #E2E8F0;
  --cta-green: #16A34A;
  --cta-green-hover: #15803D;
  --accent-gold: #F59E0B;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 28px -4px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Typography Tokens */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background-color: #FFFFFF;
  line-height: 1.5;
  padding-bottom: 70px;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

h1, h2, h3, h4, h5, h6, .lp-title, .lp-current-price, .lp-cta-btn-main, .mobile-sticky-btn {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Icons */
.svg-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Sticky Top Bar */
.lp-top-bar {
  background: var(--dark-heading);
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 0;
  text-align: center;
}

.lp-top-bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 640px) {
  .lp-top-bar-flex {
    flex-direction: column;
    gap: 4px;
  }
}

.lp-timer-badge {
  background: var(--primary-red);
  color: #FFFFFF;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78125rem;
  letter-spacing: 0.5px;
}

/* Header */
.lp-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.lp-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-logo-img {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

@media (max-width: 480px) {
  .lp-logo-img {
    height: 42px;
    max-width: 170px;
  }
}

/* Hero Section */
.lp-hero-section {
  padding: 28px 0 36px;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 860px) {
  .lp-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }
}

.lp-main-photo-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 12px;
}

.lp-main-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-gallery-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lp-thumb-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #FFFFFF;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lp-thumb-card.active {
  border-color: var(--primary-red);
  background: var(--primary-red-light);
}

.lp-thumb-card img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.lp-thumb-info h4 {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--dark-heading);
}

.lp-thumb-info span {
  font-size: 0.71875rem;
  color: var(--muted-text);
}

/* Buy Column */
.lp-buy-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lp-title {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 900;
  color: var(--dark-heading);
  line-height: 1.2;
}

.lp-rating-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}

.lp-rating-bar .stars {
  color: var(--accent-gold);
}

.lp-rating-bar strong {
  font-family: var(--font-heading);
  font-weight: 800;
}

.lp-price-box {
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  padding: 18px;
  border-radius: var(--radius-md);
}

.lp-old-price {
  font-size: 0.875rem;
  color: var(--muted-text);
  text-decoration: line-through;
}

.lp-current-price {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.4rem);
  font-weight: 900;
  color: var(--primary-red);
  line-height: 1;
}

/* Color Buttons Picker */
.lp-color-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lp-color-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lp-color-btn.active {
  border-color: var(--primary-red);
  background: var(--primary-red-light);
}

.color-dot-titanium {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #64748B;
  border: 2px solid #FFF;
  box-shadow: 0 0 0 1px #CBD5E1;
}

.color-dot-chocolate {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #78350F;
  border: 2px solid #FFF;
  box-shadow: 0 0 0 1px #CBD5E1;
}

.lp-cta-btn-main {
  width: 100%;
  background: linear-gradient(180deg, #16A34A 0%, #15803D 100%);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 900;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lp-cta-btn-main:hover {
  background: var(--cta-green-hover);
  transform: translateY(-1px);
}

/* ELEGANT CLEAN VIDEO DEMO SECTION */
.lp-video-section {
  padding: 52px 0;
  background: #0F172A;
  color: #FFFFFF;
}

.lp-video-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 28px;
}

.lp-video-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.lp-video-header p {
  font-size: 0.9375rem;
  color: #94A3B8;
}

.lp-video-card-container {
  max-width: 360px;
  margin: 0 auto;
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  position: relative;
}

.lp-video-card-badge {
  background: linear-gradient(90deg, var(--primary-red) 0%, #B91C1C 100%);
  color: #FFFFFF;
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lp-video-frame-wrapper {
  position: relative;
  width: 100%;
  height: 560px;
  background: #000;
  overflow: hidden;
}

.lp-video-frame-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Features Section - STRICT 4 COLUMNS LADO A LADO ON DESKTOP */
.lp-features-section {
  padding: 52px 0;
  background: #FFFFFF;
}

.lp-section-title {
  text-align: center;
  margin-bottom: 36px;
}

.lp-section-title h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.5vw, 1.75rem);
  font-weight: 900;
  color: var(--dark-heading);
}

.lp-section-title p {
  font-size: 0.875rem;
  color: var(--muted-text);
}

.lp-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .lp-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .lp-features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.lp-feature-card {
  padding: 22px 16px;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.lp-feature-card svg {
  color: var(--primary-red);
  margin-bottom: 12px;
}

.lp-feature-card h3 {
  font-family: var(--font-heading);
  font-size: 0.96875rem;
  font-weight: 800;
  color: var(--dark-heading);
  margin-bottom: 6px;
  line-height: 1.3;
}

.lp-feature-card p {
  font-size: 0.8125rem;
  color: var(--muted-text);
  line-height: 1.45;
}

/* Specifications Section */
.lp-specs-section {
  padding: 52px 0;
  background: var(--light-bg);
}

.specs-container-box {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.specs-grid-redesigned {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .specs-grid-redesigned {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.spec-category-card, .spec-bonus-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--light-bg);
}

.spec-bonus-card {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

.spec-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.spec-category-header h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
}

.spec-category-icon-box {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-red);
  box-shadow: var(--shadow-sm);
}

.spec-bonus-tag {
  background: var(--cta-green);
  color: #FFF;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.spec-item-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.spec-item-bullet {
  color: var(--primary-red);
  font-size: 1.2rem;
  line-height: 1;
}

.spec-item-desc strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--dark-heading);
  font-weight: 700;
}

.spec-item-desc span {
  font-size: 0.6875rem;
  color: var(--muted-text);
}

/* Reviews Section - ALWAYS STACKED VERTICALLY FOR CLEAN RESPONSIENESS */
.lp-reviews-section {
  padding: 52px 0;
  background: #FFFFFF;
}

.lp-reviews-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.lp-reviews-header-bar h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.5vw, 1.75rem);
  font-weight: 900;
}

.write-review-btn {
  background: var(--dark-heading);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8125rem;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lp-reviews-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
}

.lp-review-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--light-bg);
  box-shadow: var(--shadow-sm);
}

/* Modals System */
.modal-overlay-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay-bg.open {
  display: flex;
}

.modal-content-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 24px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.close-modal-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.2rem;
  color: var(--muted-text);
}

.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--dark-heading);
  margin-bottom: 4px;
}

.form-field input, .form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  background: #FFFFFF;
}

.star-rating-selector {
  display: flex;
  gap: 6px;
  font-size: 1.6rem;
  color: var(--border-color);
  cursor: pointer;
}

.star-rating-selector span.active {
  color: var(--accent-gold);
}

.upload-photo-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  background: var(--light-bg);
  cursor: pointer;
  display: block;
}

.review-thumbs-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.review-thumbs-preview img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

/* Mobile Sticky Buy Bar */
.mobile-sticky-buy-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 80;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}

@media (min-width: 769px) {
  .mobile-sticky-buy-bar {
    display: none;
  }
}

.mobile-sticky-price-info span {
  display: block;
  font-size: 0.6875rem;
  color: var(--muted-text);
}

.mobile-sticky-price-info strong {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary-red);
}

.mobile-sticky-btn {
  background: linear-gradient(180deg, #16A34A 0%, #15803D 100%);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.875rem;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  text-transform: uppercase;
  flex-grow: 1;
  max-width: 200px;
  text-align: center;
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  z-index: 150;
  display: none;
}

.cart-drawer-overlay.open {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: 360px;
  max-width: 100vw;
  height: 100vh;
  background: #FFFFFF;
  z-index: 160;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

/* Checkout Step Indicators */
.checkout-steps-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--muted-text);
  z-index: 1;
}

.step-indicator.active {
  color: var(--primary-red);
}

.step-indicator .step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
}

.step-indicator.active .step-num {
  background: var(--primary-red);
  color: #FFF;
  border-color: var(--primary-red);
}

.form-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field-error-msg {
  color: var(--primary-red);
  font-size: 0.6875rem;
  font-weight: 700;
  display: none;
  margin-top: 2px;
}

.pix-payment-box {
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.pix-qr-img img {
  width: 150px;
  height: 150px;
  margin: 12px auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.copy-pix-input-wrap {
  display: flex;
  gap: 6px;
}

.copy-pix-input-wrap input {
  font-size: 0.75rem;
  padding: 8px;
}

/* Footer & Legal Information */
footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
  }
}

.footer-security-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sec-badge-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1E293B;
  border: 1px solid #334155;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: #E2E8F0;
  font-weight: 600;
}
