/* ==========================================================================
   MAGALU THEME & DESIGN SYSTEM - E-COMMERCE DEMAND GEN
   ========================================================================== */

:root {
  --magalu-blue: #0086ff;
  --magalu-blue-dark: #0066cc;
  --magalu-blue-light: #e6f3ff;
  --magalu-blue-subtle: #f0f7ff;
  --magalu-yellow: #ffc400;
  --magalu-yellow-dark: #e69d00;
  --magalu-green: #00a650;
  --magalu-green-hover: #008f45;
  --magalu-green-light: #e8f8f0;
  --magalu-red: #e53935;
  --magalu-red-light: #feeceb;
  --magalu-orange: #ff6f00;
  
  --text-primary: #212121;
  --text-secondary: #616161;
  --text-muted: #8c8c8c;
  --text-light: #ffffff;
  
  --bg-page: #f5f6f8;
  --bg-card: #ffffff;
  --border-color: #e0e0e0;
  --border-light: #ebebeb;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-pop: 0 10px 30px rgba(0, 134, 255, 0.2);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  
  --font-main: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --container-width: 1240px;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* Space for mobile sticky CTA */
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ==========================================================================
   TOP BAR & HEADER (MAGALU LOOK & FEEL)
   ========================================================================== */

.top-bar {
  background-color: #0073dc;
  color: #ffffff;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

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

.top-bar-links {
  display: flex;
  gap: 16px;
  list-style: none;
}

.top-bar-links a {
  opacity: 0.9;
  transition: opacity 0.2s;
}

.top-bar-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.top-bar-badge {
  background: var(--magalu-yellow);
  color: #212121;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
}

/* MAIN HEADER */
.main-header {
  background-color: var(--magalu-blue);
  color: var(--text-light);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* LOGO */
.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.magalu-logo {
  display: flex;
  align-items: baseline;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #ffffff;
  position: relative;
}

.magalu-logo .logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--magalu-yellow);
  margin-left: 2px;
}

.logo-sub {
  font-size: 10px;
  font-weight: 700;
  background: #ffffff;
  color: var(--magalu-blue);
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-left: 6px;
  letter-spacing: 0.5px;
}

/* CEP LOCATION WIDGET */
.header-location {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
  flex-shrink: 0;
}

.header-location:hover {
  background: rgba(255, 255, 255, 0.2);
}

.header-location .loc-icon {
  font-size: 16px;
}

.header-location .loc-text {
  line-height: 1.2;
}

.header-location .loc-label {
  opacity: 0.8;
  font-size: 11px;
}

.header-location .loc-cep {
  font-weight: 700;
  display: block;
}

/* SEARCH BAR */
.header-search {
  flex: 1;
  position: relative;
  max-width: 600px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 48px 0 16px;
  border-radius: 24px;
  border: none;
  font-size: 14px;
  color: var(--text-primary);
  background-color: #ffffff;
  outline: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s;
}

.search-input:focus {
  box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.5);
}

.search-btn {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--magalu-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.2s;
}

.search-btn:hover {
  background: var(--magalu-blue-dark);
}

/* USER ACTIONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  margin-left: auto;
}

.header-account {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
}

.header-account .acc-icon {
  font-size: 22px;
}

.header-account .acc-text strong {
  display: block;
  font-size: 13px;
}

.header-cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 14px;
  border-radius: 24px;
  color: #ffffff;
  position: relative;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s;
}

.header-cart-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-icon {
  font-size: 18px;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--magalu-yellow);
  color: #212121;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* CATEGORY NAVBAR */
.cat-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.cat-navbar::-webkit-scrollbar {
  display: none;
}

.cat-list {
  display: flex;
  list-style: none;
  gap: 20px;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.cat-item a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}

.cat-item a:hover {
  color: var(--magalu-blue);
}

.cat-item.active a {
  color: var(--magalu-blue);
  font-weight: 700;
  position: relative;
}

.cat-item.active a::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--magalu-blue);
  border-radius: 2px 2px 0 0;
}

.cat-item.highlight a {
  color: #d81b60;
}

/* ==========================================================================
   URGENCY & CAMPAIGN HEADER BANNER (DEMAND GEN)
   ========================================================================== */

.demand-gen-bar {
  background: linear-gradient(90deg, #ff416c 0%, #ff4b2b 100%);
  color: #ffffff;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 6px rgba(255, 65, 108, 0.25);
  position: relative;
  z-index: 9;
}

.demand-gen-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.demand-badge {
  background: #ffffff;
  color: #ff416c;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.demand-countdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.breadcrumb-nav {
  padding: 12px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb-list a:hover {
  color: var(--magalu-blue);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #c4c4c4;
}

.breadcrumb-current {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ==========================================================================
   MAIN PRODUCT CARD / PDP CONTAINER (MAGALU CLEAN LAYOUT)
   ========================================================================== */

.product-detail-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 992px) {
  .product-hero-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
  }
}

/* GALLERY (LEFT COLUMN) */
.product-gallery {
  display: flex;
  flex-direction: column-reverse;
  gap: 16px;
}

@media (min-width: 768px) {
  .product-gallery {
    flex-direction: row;
  }
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

@media (min-width: 768px) {
  .gallery-thumbs {
    flex-direction: column;
    overflow-x: visible;
    width: 76px;
    flex-shrink: 0;
  }
}

.thumb-item {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  background: #ffffff;
  padding: 2px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.thumb-item:hover, .thumb-item.active {
  border-color: var(--magalu-blue);
  box-shadow: 0 0 0 2px rgba(0, 134, 255, 0.2);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.gallery-viewport {
  flex: 1;
  position: relative;
  background: #fbfbfb;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.gallery-main-img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gallery-viewport:hover .gallery-main-img {
  transform: scale(1.02);
}

.gallery-badge-corner {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}

.badge-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-tag.tag-discount {
  background: var(--magalu-red);
  color: #ffffff;
}

.badge-tag.tag-bestseller {
  background: var(--magalu-yellow);
  color: #212121;
}

.badge-tag.tag-frete {
  background: var(--magalu-green);
  color: #ffffff;
}

/* BUY BOX (RIGHT COLUMN) */
.product-info-col {
  display: flex;
  flex-direction: column;
}

.product-sku-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.product-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .product-title {
    font-size: 26px;
  }
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.stars-wrap {
  color: #ffb800;
  letter-spacing: 2px;
  font-size: 15px;
}

.rating-score {
  font-weight: 700;
  color: var(--text-primary);
}

.rating-count {
  color: var(--magalu-blue);
  cursor: pointer;
}

.rating-count:hover {
  text-decoration: underline;
}

/* PRICE BOX */
.price-box-container {
  background: #f8fbff;
  border: 1px solid #d4e7ff;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
  position: relative;
}

.price-old-row {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.price-old-val {
  text-decoration: line-through;
  font-weight: 500;
}

.price-main-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.price-current-val {
  font-size: 34px;
  font-weight: 800;
  color: var(--magalu-blue);
  line-height: 1;
}

.price-pix-badge {
  background: #e6f7ec;
  color: #0b8043;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #b7e1cd;
}

.price-installments {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.price-installments strong {
  color: var(--magalu-blue-dark);
}

.price-economy {
  font-size: 13px;
  color: var(--magalu-green);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* VARIATIONS SELECTOR */
.variations-group {
  margin-bottom: 20px;
}

.variation-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.variation-label span {
  color: var(--magalu-blue);
  font-weight: 600;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.option-btn {
  border: 2px solid var(--border-color);
  background: #ffffff;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-align: left;
  transition: all 0.2s;
  position: relative;
}

.option-btn:hover {
  border-color: #b0d3f8;
}

.option-btn.selected {
  border-color: var(--magalu-blue);
  background: #f0f7ff;
}

.option-btn.selected::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--magalu-blue);
}

.opt-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.opt-desc {
  font-size: 11px;
  color: var(--text-secondary);
}

.opt-badge {
  display: inline-block;
  background: #ff5252;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  margin-bottom: 2px;
  text-transform: uppercase;
}

/* COLOR PILLS */
.color-pills {
  display: flex;
  gap: 10px;
}

.color-pill-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  background: #ffffff;
}

.color-pill-btn.selected {
  border-color: var(--magalu-blue);
  background: var(--magalu-blue-light);
  color: var(--magalu-blue-dark);
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #cccccc;
}

/* FRETE / SHIPPING CALCULATOR */
.shipping-calc-box {
  background: #fafafa;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 22px;
}

.shipping-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.shipping-form {
  display: flex;
  gap: 8px;
}

.shipping-input {
  flex: 1;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.shipping-input:focus {
  border-color: var(--magalu-blue);
}

.shipping-btn {
  background: #ffffff;
  border: 1px solid var(--magalu-blue);
  color: var(--magalu-blue);
  font-weight: 700;
  font-size: 13px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.shipping-btn:hover {
  background: var(--magalu-blue);
  color: #ffffff;
}

.shipping-result {
  margin-top: 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0b8043;
  font-weight: 600;
  background: #e6f7ec;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

/* CTA BUTTONS */
.cta-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-buy-now {
  background-color: var(--magalu-green);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0, 166, 80, 0.35);
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-buy-now:hover {
  background-color: var(--magalu-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 166, 80, 0.45);
}

.btn-buy-now:active {
  transform: translateY(0);
}

.btn-add-cart {
  background-color: #ffffff;
  color: var(--magalu-blue);
  border: 2px solid var(--magalu-blue);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-add-cart:hover {
  background-color: var(--magalu-blue-light);
}

/* TRUST BADGES MAGALU */
.trust-badges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.trust-icon {
  font-size: 18px;
  color: var(--magalu-blue);
  flex-shrink: 0;
  margin-top: 1px;
}

.trust-text strong {
  display: block;
  color: var(--text-primary);
  font-size: 12px;
}

/* ==========================================================================
   PRODUCT DETAILS SECTIONS (DESCRIPTION, HIGHLIGHTS, SPECS, FAQ, REVIEWS)
   ========================================================================== */

.product-sections-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section-block {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .section-block {
    padding: 32px;
  }
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 12px;
}

.section-title .title-accent {
  width: 4px;
  height: 20px;
  background-color: var(--magalu-blue);
  border-radius: 2px;
}

/* HIGHLIGHTS GRID */
.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .highlights-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.highlight-card {
  background: #fbfcfe;
  border: 1px solid #e3edfa;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s;
}

.highlight-card:hover {
  transform: translateY(-3px);
  border-color: var(--magalu-blue);
}

.highlight-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--magalu-blue-light);
  color: var(--magalu-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.highlight-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.highlight-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* SPECS TABLE */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

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

.specs-table tr:nth-child(even) {
  background-color: #fafbfc;
}

.specs-table td {
  padding: 12px 16px;
}

.specs-table td.spec-name {
  width: 35%;
  font-weight: 600;
  color: var(--text-secondary);
}

.specs-table td.spec-val {
  font-weight: 500;
  color: var(--text-primary);
}

/* FAQ ACCORDION */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #f0f6ff;
}

.faq-question .faq-toggle-icon {
  font-size: 18px;
  color: var(--magalu-blue);
  transition: transform 0.2s;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--border-light);
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* REVIEWS BLOCK */
.reviews-summary-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px;
  background: #f9fbfd;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.big-rating-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.reviews-bars {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.progress-track {
  flex: 1;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #ffb800;
  border-radius: 4px;
}

/* INDIVIDUAL REVIEW CARDS */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

.review-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.review-author {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-badge {
  font-size: 10px;
  color: #0b8043;
  background: #e6f7ec;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
}

.review-date {
  font-size: 11px;
  color: var(--text-muted);
}

.review-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.review-photos {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.review-img-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

/* ==========================================================================
   RELATED PRODUCTS SHOWCASE (12 TO 15 NICHE PRODUCTS)
   ========================================================================== */

.related-products-section {
  margin-top: 36px;
  margin-bottom: 40px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

.section-main-heading {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.section-subheading {
  font-size: 14px;
  color: var(--text-secondary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 576px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* PRODUCT CARD */
.product-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #b0d4ff;
}

.card-discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--magalu-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fafafa;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

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

.product-card:hover .card-img {
  transform: scale(1.05);
}

.card-category-tag {
  font-size: 11px;
  color: var(--magalu-blue);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
  cursor: pointer;
}

.card-title:hover {
  color: var(--magalu-blue);
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.card-stars {
  color: #ffb800;
}

.card-price-wrap {
  margin-top: auto;
  margin-bottom: 12px;
}

.card-old-price {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.card-current-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--magalu-blue);
  line-height: 1.2;
}

.card-installments {
  font-size: 11px;
  color: var(--text-secondary);
}

.card-btn-add {
  width: 100%;
  background: var(--magalu-blue);
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
}

.card-btn-add:hover {
  background: var(--magalu-blue-dark);
}

/* ==========================================================================
   CART DRAWER (SACOLA MAGALU)
   ========================================================================== */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #ffffff;
  z-index: 1001;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cart-header {
  padding: 16px 20px;
  background: var(--magalu-blue);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-close-btn {
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
}

/* FREE SHIPPING PROGRESS */
.cart-free-shipping-bar {
  background: #f0f7ff;
  border-bottom: 1px solid #d0e4ff;
  padding: 12px 20px;
  font-size: 12px;
}

.free-ship-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--magalu-blue-dark);
}

.free-ship-track {
  width: 100%;
  height: 6px;
  background: #d4e4f7;
  border-radius: 3px;
  overflow: hidden;
}

.free-ship-fill {
  height: 100%;
  background: var(--magalu-green);
  border-radius: 3px;
  transition: width 0.3s;
}

/* CART ITEMS LIST */
.cart-items-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.cart-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  color: #b0c4de;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--magalu-blue);
}

.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

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

.qty-btn {
  width: 26px;
  height: 26px;
  background: #f5f5f5;
  color: #212121;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-input {
  width: 32px;
  height: 26px;
  border: none;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

.cart-item-remove {
  font-size: 11px;
  color: var(--magalu-red);
  text-decoration: underline;
  cursor: pointer;
}

/* CART FOOTER */
.cart-footer {
  border-top: 1px solid var(--border-color);
  padding: 16px 20px;
  background: #fafafa;
}

.coupon-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.coupon-input {
  flex: 1;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  font-size: 12px;
  text-transform: uppercase;
}

.coupon-btn {
  background: #212121;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 0 14px;
  border-radius: var(--radius-sm);
}

.cart-totals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.totals-row.final {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
}

.totals-row.final .val-highlight {
  color: var(--magalu-green);
}

.btn-checkout-now {
  width: 100%;
  background: var(--magalu-green);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  padding: 14px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 166, 80, 0.3);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-checkout-now:hover {
  background: var(--magalu-green-hover);
}

/* ==========================================================================
   CHECKOUT MODAL / POPUP
   ========================================================================== */

.checkout-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.checkout-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.checkout-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.checkout-card-header {
  background: var(--magalu-blue);
  color: #ffffff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.checkout-card-body {
  padding: 24px;
}

.form-fieldset {
  margin-bottom: 20px;
}

.fieldset-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--magalu-blue-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.form-control {
  margin-bottom: 10px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.form-input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 13px;
  outline: none;
}

.form-input:focus {
  border-color: var(--magalu-blue);
}

.pay-methods-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.pay-tab {
  border: 2px solid var(--border-color);
  padding: 12px;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.pay-tab.active {
  border-color: var(--magalu-green);
  background: #f0faf4;
  color: #0b8043;
}

/* ==========================================================================
   MOBILE STICKY BOTTOM BUY BAR
   ========================================================================== */

.mobile-sticky-bar {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 10px 16px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  z-index: 99;
}

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

.sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-price-info {
  display: flex;
  flex-direction: column;
}

.sticky-old-price {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.sticky-new-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--magalu-blue);
  line-height: 1;
}

.sticky-installments {
  font-size: 10px;
  color: var(--text-secondary);
}

.sticky-btn-buy {
  background: var(--magalu-green);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  flex: 1;
  max-width: 200px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 166, 80, 0.3);
}

/* ==========================================================================
   SOCIAL PROOF POPUPS (RECENT PURCHASE NOTIFICATION)
   ========================================================================== */

.social-proof-toast {
  position: fixed;
  bottom: 80px;
  left: 16px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 98;
  max-width: 340px;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

@media (min-width: 992px) {
  .social-proof-toast {
    bottom: 24px;
  }
}

.social-proof-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

.toast-text {
  font-size: 12px;
  line-height: 1.3;
}

.toast-buyer {
  font-weight: 700;
  color: var(--text-primary);
}

.toast-product {
  color: var(--magalu-blue-dark);
  font-weight: 600;
}

.toast-time {
  font-size: 10px;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER (MAGALU LOOK & TRUST)
   ========================================================================== */

.main-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  margin-top: 50px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-top-features {
  background: #f8fbff;
  border-bottom: 1px solid #e2edfa;
  padding: 30px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.footer-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--magalu-blue-light);
  color: var(--magalu-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feat-text strong {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
}

.feat-text span {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-main-links {
  padding: 40px 0;
}

.footer-cols-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-list a:hover {
  color: var(--magalu-blue);
  text-decoration: underline;
}

.footer-bottom-legal {
  background: #f0f0f0;
  padding: 20px 0;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

/* QUICK VIEW MODAL */
.quick-view-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.quick-view-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

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

.quick-view-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 24px;
  color: var(--text-muted);
}
