@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #fe2c55;
  /* TikTok Brand Color */
  --primary-dark: #e8254c;
  --bg-color: #f2f3f5;
  --white: #ffffff;
  --text-main: #161823;
  --text-secondary: #8a8b91;
  --border-color: #e5e5e5;
  --orange: #ff4d00;
  --orange-light: #fff2ec;
  --orange-grad: linear-gradient(90deg, #ff7100 0%, #ff4d00 100%);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
  height: -webkit-fill-available;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #e0e0e0;
  display: flex;
  justify-content: center;
  color: var(--text-main);
  line-height: 1.4;
}

/* Mobile App Container Simulation */
.app-container {
  width: 100%;
  max-width: 480px;
  /* Mobile width */
  height: 100vh;
  height: -webkit-fill-available;
  /* full-viewport height fix for mobile Safari */
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

/* --- LOADER SCREEN --- */
.loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spinner-spin 0.8s linear infinite;
}

@keyframes spinner-spin {
  100% {
    transform: rotate(360deg);
  }
}

/* --- HEADER --- */
.top-header {
  height: 60px;
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 100;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.top-header button {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f1f1f2;
  border-radius: 20px;
  padding: 6px 12px;
  gap: 8px;
}

.search-bar i {
  color: var(--text-secondary);
  font-size: 18px;
}

.search-bar input {
  border: none;
  background: transparent;
  width: 100%;
  outline: none;
  font-size: 14px;
  color: var(--text-main);
}

.header-actions {
  display: flex;
  gap: 16px;
}

.cart-btn {
  position: relative;
}

.badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 10px;
  border: 1px solid var(--white);
}

/* --- CONTENT AREA SCROLL --- */
.content-scroll {
  flex: 1;
  overflow-y: auto;
  margin-top: 60px;
  /* below header */
  margin-bottom: 60px;
  /* above bottom bar */
}

/* --- PRODUCT GALLERY --- */
.product-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--white);
}

.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* --- PRICE SECTION --- */
.price-section {
  display: flex;
  background: var(--white);
  color: var(--text-main);
  padding: 12px 16px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 8px;
}

.price-section.coupon-active {
  background: var(--orange-grad);
  color: var(--white);
  border-bottom: none;
}

.price-details {
  display: flex;
  flex-direction: column;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.discount-badge {
  background: #ffe3e3;
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 4px;
}

.price-section.coupon-active .discount-badge {
  background: var(--white);
}

.a-partir {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.price-value {
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .price-value {
    font-size: 20px;
  }
}

.price-old {
  font-size: 12px;
  text-decoration: line-through;
  opacity: 0.8;
  margin-top: 4px;
  color: var(--text-secondary);
}

.price-section.coupon-active .price-old {
  color: rgba(255, 255, 255, 0.8);
}

.flash-sale {
  text-align: right;
}

.flash-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
}

.price-section.coupon-active .flash-title {
  color: var(--white);
}

.flash-title i {
  font-size: 16px;
}

.flash-timer {
  font-size: 12px;
  margin-top: 4px;
  color: var(--text-main);
}

.price-section.coupon-active .flash-timer {
  color: var(--white);
}

/* Coupon mini icon attached to price */
.coupon-tag-inline {
  display: none;
  font-size: 14px;
  color: var(--white);
  margin-left: 4px;
  font-weight: normal;
  border: 1px dotted var(--white);
  padding: 1px 4px;
  border-radius: 4px;
}

.price-section.coupon-active .coupon-tag-inline {
  display: inline-block;
}

/* --- PRODUCT INFO TILE --- */
.info-tile {
  background: var(--white);
  padding: 16px;
  margin-bottom: 8px;
}

.installments-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.installments-row .sem-juros {
  color: var(--primary);
}

.bonus-tag {
  display: inline-block;
  background: #fff0f3;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 12px;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.product-title span {
  flex: 1;
}

.product-title i {
  font-size: 22px;
  color: var(--text-main);
}

.ratings-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.ratings-row i {
  color: #ffb700;
}

.ratings-row .score {
  font-weight: 600;
  color: var(--text-main);
}

/* --- SHIPPING INFO --- */
.shipping-info {
  background: var(--white);
  padding: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.shipping-info i {
  font-size: 20px;
}

.shipping-texts {
  flex: 1;
}

.ship-title {
  font-size: 14px;
  font-weight: 600;
  color: #00bfa5;
}

.ship-desc {
  font-size: 14px;
  margin-top: 4px;
}

.ship-tax {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- STICKY TABS --- */
.sticky-tabs {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 50;
  display: flex;
  border-bottom: 1px solid var(--border-color);
  padding: 0 8px;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

.tab-btn.active {
  color: var(--text-main);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--text-main);
  border-radius: 3px 3px 0 0;
}

/* --- TAB CONTENT AREAS --- */
.tab-content {
  background: var(--white);
  padding: 16px;
  margin-bottom: 8px;
  min-height: 500px;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Overview Specifics */
.overview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.overview-item:last-child {
  border-bottom: none;
}

.overview-item .left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.overview-item .left i {
  color: #c48b48;
  font-size: 18px;
}

.thumbs-row {
  display: flex;
  gap: 8px;
}

.thumbs-row img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.protection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.protection-list span {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 45%;
}

.protection-list i {
  color: var(--text-main);
}

/* Ofertas / Cupom */
.coupon-card {
  background: #f0fbfa;
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.coupon-details strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.coupon-details p {
  font-size: 12px;
  color: var(--text-secondary);
}

.btn-resgatar {
  background: #00bfa5;
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
}

/* Videos CTA */
.video-card {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.video-thumb {
  width: 100px;
  height: 100px;
  background: #000;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.video-thumb i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 24px;
}

.video-info {
  flex: 1;
}

.video-info p {
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-top: 8px;
  color: var(--text-secondary);
}

.video-author img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

/* Reviews Tab Specifics */
.review-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.review-avatar {
  width: 32px;
  height: 32px;
  background: var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
}

.review-stars {
  color: #ffb700;
  font-size: 12px;
  margin-bottom: 4px;
}

.review-variant {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.review-text {
  font-size: 14px;
  margin-bottom: 12px;
}

.review-photos {
  display: flex;
  gap: 8px;
}

.review-photos img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* Description Tab Specifics */
.store-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.store-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.store-name strong {
  display: block;
  font-size: 15px;
}

.store-name span {
  font-size: 13px;
  color: var(--text-secondary);
}

.btn-visitar {
  border: 1px solid var(--border-color);
  background: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
}

.store-stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.store-stats strong {
  color: var(--text-main);
}

.more-from-store {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.product-card {
  min-width: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.product-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.product-card .price {
  padding: 8px;
}

.product-card .price strong {
  display: block;
  font-size: 14px;
}

.product-card .price span {
  background: #ffe3e3;
  color: var(--primary);
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 2px;
}

.details-grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  font-size: 14px;
  margin-top: 16px;
}

.details-grid .label {
  color: var(--text-secondary);
}

/* --- BOTTOM BAR --- */
.bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 60px;
  height: auto;
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 8px 16px;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  z-index: 100;
}

.action-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: var(--text-secondary);
  background: none;
  border: none;
  min-width: 48px;
}

.action-icon i {
  font-size: 22px;
  color: var(--text-main);
  margin-bottom: 2px;
}

.btn-add-cart {
  flex: 1;
  background: #f1f1f2;
  color: var(--text-main);
  border: none;
  border-radius: 30px;
  min-height: 40px;
  height: auto;
  padding: 8px 4px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
}

.btn-buy-now {
  flex: 1;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 30px;
  min-height: 40px;
  height: auto;
  padding: 8px 4px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-buy-now span {
  font-size: 10px;
  font-weight: 400;
}

/* --- BOTTOM SHEET MODAL --- */
.bottom-sheet-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bottom-sheet-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  background: var(--white);
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.1, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.bottom-sheet-overlay.active .bottom-sheet {
  transform: translateY(0);
}

.sheet-header {
  display: flex;
  padding: 16px;
  gap: 16px;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.sheet-thumb {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  object-fit: cover;
  margin-top: -30px;
  background: var(--white);
}

.sheet-price-info {
  flex: 1;
}

.sheet-price-info .discount-badge {
  background: #ffe3e3;
  color: var(--primary);
  display: inline-block;
  margin-bottom: 4px;
}

.sheet-price-info .price-value {
  color: var(--primary);
}

.sheet-tags {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
}

.sheet-tags .frete {
  color: #00bfa5;
  font-weight: 600;
}

.sheet-tags .bonus {
  color: var(--primary);
  background: #fff0f3;
  padding: 2px 6px;
  border-radius: 2px;
}

.btn-close-sheet {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
}

.sheet-flash-strip {
  background: var(--orange-grad);
  color: #fff;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}

.sheet-body {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
}

.option-group {
  margin-bottom: 24px;
}

.option-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.option-cards {
  display: flex;
  gap: 12px;
}

.option-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px;
  width: 120px;
  cursor: pointer;
  transition: all 0.2s;
}

.option-card.selected {
  border-color: var(--primary);
  background: #fff0f3;
}

.option-card img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  margin-bottom: 8px;
  border-radius: 2px;
}

.option-card p {
  font-size: 12px;
  text-align: center;
  line-height: 1.2;
}

.qty-control {
  display: flex;
  align-items: center;
  background: #f1f1f2;
  border-radius: 20px;
  width: fit-content;
}

.qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  font-size: 18px;
  font-weight: bold;
}

.qty-input {
  width: 40px;
  text-align: center;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
}

.sheet-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
}

.sheet-footer .btn-buy-now {
  width: 100%;
  font-size: 16px;
  height: 48px;
}

/* --- PHASE 2: CHECKOUT & OTHERS --- */
.bg-gray {
  background-color: #f2f3f5;
}

.checkout-header {
  border-bottom: 1px solid var(--border-color);
}

.checkout-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.checkout-title h1 {
  font-size: 16px;
  font-weight: 700;
}

.secure-tag {
  font-size: 10px;
  color: #00bfa5;
  display: flex;
  align-items: center;
  gap: 4px;
}

.checkout-section {
  background: var(--white);
  padding: 16px;
  margin-bottom: 8px;
}

.pointer {
  cursor: pointer;
}

.address-header,
.cpf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}

.add-address-btn {
  color: var(--primary);
}

.dash-border {
  height: 4px;
  background: repeating-linear-gradient(90deg,
      #fe2c55,
      #fe2c55 20px,
      transparent 20px,
      transparent 30px,
      #00bfa5 30px,
      #00bfa5 50px,
      transparent 50px,
      transparent 60px);
  margin-bottom: 8px;
}

.store-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
}

.note-btn {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.checkout-product {
  display: flex;
  gap: 12px;
}

.checkout-product img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.cp-info {
  flex: 1;
}

.cp-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cp-variant {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 4px 0;
}

.cp-tags span {
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: 4px;
}

.cp-tags .flash-tag {
  background: #fff0f3;
  color: var(--primary);
}

.cp-tags .return-tag {
  background: #f1f1f2;
  color: var(--text-main);
}

.cp-price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 8px;
}

.current-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.old-price {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  gap: 4px;
}

.disc-percent {
  color: var(--primary);
}

.summary-title {
  font-size: 16px;
  font-weight: 700;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 12px;
}

.summary-row.has-children {
  font-weight: 600;
  margin-bottom: 8px;
}

.summary-child {
  padding-left: 16px;
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: 4px;
}

.total-lbl {
  font-size: 16px;
  font-weight: 700;
}

.total-val-col {
  text-align: right;
}

.total-val {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.tax-info {
  font-size: 11px;
  color: var(--text-secondary);
}

.saving-strip {
  background: #fae8ee;
  color: var(--primary);
  padding: 12px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- EXIT INTENT MODAL --- */
.exit-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.exit-overlay.active {
  display: flex;
}

.exit-modal {
  background: var(--white);
  border-radius: 16px;
  width: 85%;
  max-width: 320px;
  padding: 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-close-exit {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-main);
  cursor: pointer;
}

.exit-bird-img {
  width: 160px;
  height: auto;
  margin: 0 auto 16px auto;
  display: block;
}

.exit-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 24px;
  line-height: 1.3;
}

.exit-title span {
  color: var(--primary);
}

.btn-text-exit {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 500;
  margin-top: 4px;
  width: 100%;
  padding: 12px;
  cursor: pointer;
}

.checkout-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-color);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cf-info {
  display: flex;
  flex-direction: column;
}

.cf-info span {
  font-size: 14px;
  font-weight: 600;
}

.cf-info strong {
  font-size: 20px;
  color: var(--primary);
}

.btn-primary-large {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.btn-primary-large span {
  font-size: 10px;
  font-weight: 400;
}

/* --- PAYMENT METHODS MODAL --- */
.sheet-title-header {
  text-align: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.sheet-title-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.pm-option {
  padding: 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.pm-option.active {
  border-color: var(--border-color);
  background: #fafafa;
}

.pm-option.disabled {
  opacity: 0.5;
}

.pm-opt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.pm-opt-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.pm-icon {
  width: 24px;
  height: 24px;
  color: #32bca4;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-radio-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
}

.pm-radio-btn.active {
  border: 6px solid var(--primary);
}

.pm-opt-desc {
  font-size: 12px;
  color: var(--text-secondary);
  padding-left: 36px;
}

.card-brands {
  display: flex;
  gap: 8px;
  padding-left: 36px;
  margin-bottom: 8px;
}

.card-brand {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* --- ADDRESS FORM --- */
.form-section-title {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
  position: relative;
}

.form-control {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  font-size: 16px;
  outline: none;
  background: transparent;
  color: var(--text-main);
}

.form-control::placeholder {
  color: var(--text-secondary);
}

.form-group.has-error .error-msg {
  color: var(--primary);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.phone-group {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.phone-group .form-control {
  border-bottom: none;
  flex: 1;
}

.country-code {
  font-size: 16px;
  padding-right: 12px;
  border-right: 1px solid var(--border-color);
  margin-right: 12px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.select-wrapper {
  position: relative;
}

.select-wrapper i {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 24px;
}

.address-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px;
  background: #f9f9f9;
}

.privacy-note {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.4;
}

.address-footer .btn-primary-large {
  width: 100%;
  height: 48px;
  border-radius: 8px;
}

/* --- PAYMENT FINAL PIX --- */
.payment-gradient-header {
  background: linear-gradient(135deg, #e0f7fa 0%, #fce4ec 100%);
  padding-top: 60px;
  /* Offset fixed header */
}

.payment-status-info {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ps-texts h2 {
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.ps-texts h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.badge-timer {
  background: var(--primary);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.ps-timer {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.ps-deadline {
  font-size: 14px;
  color: var(--text-secondary);
}

.ps-icon i {
  font-size: 48px;
  color: #ff9800;
}

.pix-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 24px;
  text-align: center;
  margin-top: -40px;
  margin-bottom: 24px;
}

.px-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 24px;
}

.px-code-box {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.btn-copy-pix {
  background: var(--primary);
  color: #fff;
  border: none;
  width: 100%;
  height: 48px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pix-instruction-hint {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 32px;
}

.pix-howto-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.pix-howto-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.payment-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px;
  background: var(--white);
  border-top: 1px solid var(--border-color);
}

.btn-secondary-large {
  width: 100%;
  background: #f1f1f2;
  color: var(--text-main);
  border: none;
  height: 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
}

.terms-text {
  padding: 16px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  background: var(--white);
  margin-bottom: 8px;
}

.payment-method-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--radius-md);
}

.payment-method-row .pm-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.payment-method-row .pm-checkbox.checked {
  border: 6px solid var(--primary);
}