/* ============================================================
   MGOLD LUXURY CRO ELEMENTS (Product Page)
   ============================================================ */
.luxury-trust-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border-primary);
  border-bottom: 1px solid var(--border-primary);
}
.lt-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  flex: 1;
}
.lt-badge .material-symbols-outlined {
  font-size: 22px;
  color: var(--accent-primary);
}
.lt-badge span {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.2;
}

.scarcity-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-secondary); border: 1px solid var(--border-primary);
  color: var(--accent-primary);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 16px;
  width: fit-content;
}
.scarcity-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: goldPulse 2s infinite;
}
@keyframes goldPulse {
  0% { box-shadow: 0 0 0 0 var(--shadow-color); }
  70% { box-shadow: 0 0 0 6px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.price-pix-highlight {
  font-size: 14px;
  color: var(--accent-primary);
  margin-top: 4px;
  font-weight: 500;
}
.price-pix-highlight strong {
  font-weight: 700;
}


/* ============================================================
   MGOLD DESIGN SYSTEM — Product Actions & Qty Controls
   ============================================================ */

/* Subtle quantity selector (product detail page) */
.subtle-qty-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 24px;
}
.subtle-qty-label {
  font-family: var(--font-serif);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--shadow-color);
  border-radius: 0;
  background: transparent;
  height: 36px;
}
.qty-btn {
  background: transparent;
  border: none;
  color: var(--accent-primary);
  font-size: 16px;
  width: 32px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.qty-btn:hover { color: var(--accent-primary); }
.qty-num {
  font-family: var(--font-serif);
  font-size: 13px;
  width: 36px;
  text-align: center;
  color: var(--text-primary);
}

/* Stacked buy actions */
.product-actions-stacked {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

/* — Buy CTA — */
.btn-buy {
  width: 100%;
  background: var(--accent-primary);
  color: #000000;
  border: none;
  padding: 16px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px var(--shadow-color);
}
.btn-buy:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px var(--shadow-color);
}
.btn-buy:active {
  transform: scale(0.97);
}

/* Primary CTA: COMPRAR AGORA — gold solid, angular */
.btn-buy-now {
  width: 100%;
  padding: 18px;
  background: var(--accent-primary);
  color: #000000;
  border: none;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px var(--shadow-color);
}
.btn-buy-now:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px var(--shadow-color);
}
.btn-buy-now:active {
  transform: scale(0.97);
}

.btn-sold-out {
  background: var(--surface-secondary) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-primary) !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* Secondary CTA: ADICIONAR À SACOLA — outline gold */
.btn-add-cart {
  width: 100%;
  padding: 18px;
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--shadow-color);
  border-radius: 0;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-add-cart:hover {
  background: var(--shadow-color);
}

/* Minicart inline quantity control */
.mc-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.mc-qty-ctrl {
  border: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
}
.mc-qty-ctrl button {
  color: var(--text-secondary);
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  font-size: 14px;
  cursor: pointer;
}
.mc-qty-ctrl button:hover { color: var(--accent-primary); }
.mc-qty-ctrl span {
  font-family: var(--font-serif);
  font-size: 12px;
  width: 36px;
  text-align: center;
  color: #CCC;
}

@media (min-width: 768px) {
  #fixed-cta { display: none !important; }
}

/* Hero Carousel */
.hero-slider { position: relative; width: 100%; }
.hero-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
.hero-slides::-webkit-scrollbar { display: none; }
.hero-slides .slide { flex: 0 0 100%; scroll-snap-align: start; }
.hero-slider-nav { position: absolute; bottom: 30px; left: 0; right: 0; display: flex; justify-content: center; gap: 12px; z-index: 10; }
.hero-slider-nav .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); transition: 0.3s; }
.hero-slider-nav .dot.active { background: var(--accent-primary); box-shadow: 0 0 8px var(--shadow-color); transform: scale(1.2); }
/* --- REDESIGN: Product Image Gallery --- */
.detail-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--surface-secondary);
  padding: 12px;
}
.detail-gallery-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; gap: 8px; }
.detail-gallery-track::after { content: ""; flex: 0 0 calc(8% - 8px); }
.detail-gallery-track::-webkit-scrollbar {
  display: none;
}
.detail-gallery-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; border-radius: 8px; cursor: zoom-in; }

/* Mobile Gallery Arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  z-index: 15;
  color: #000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
}
.prev-arrow { left: 24px; }
.next-arrow { right: 24px; }

/* Lightbox */
#lightbox-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
#lightbox-modal.visible { opacity: 1; }
.lightbox-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.95);
}
#lightbox-img {
  position: relative; z-index: 2; max-width: 95vw; max-height: 90vh;
  object-fit: contain; border-radius: 4px;
}
.lightbox-close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  background: rgba(255,255,255,0.1); border: none; color: #fff;
  border-radius: 50%; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.gallery-dots {
  position: absolute;
  bottom: 16px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}
.gallery-dots .g-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.7);
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  transition: 0.3s;
}
.gallery-dots .g-dot.active {
  background: var(--accent-primary);
  transform: scale(1.3);
  box-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.detail-gallery .badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--accent-primary);
  padding: 4px 12px;
  z-index: 10;
}

/* --- ADAPTIVE VIEWS --- */
.desktop-only { display: none !important; }
.mobile-only { display: block; }
@media (min-width: 1024px) {
  .desktop-only { display: block !important; }
  .mobile-only { display: none !important; }
}

/* --- DESKTOP DETAIL PAGE CONTAINER --- */
#page-detail {
  min-height: calc(100vh - 88px);
  background: var(--surface-primary);
}
@media (min-width: 1024px) {
  #detail-content {
    padding: 0;
  }
}

/* --- DESKTOP DETAIL LAYOUT (2-col grid) --- */
.detail-desktop-layout-wrapper {
  background: var(--surface-primary);
  width: 100%;
}
.detail-desktop-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 60px 0 60px;
  align-items: flex-start;
  box-sizing: border-box;
}
.desktop-cross-sell-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 60px 80px 60px;
}

/* --- PRODUCT ACCORDION --- */
.product-accordion {
  margin-top: 32px;
  border-top: 1px solid var(--surface-secondary);
}
.accordion-item {
  border-bottom: 1px solid var(--surface-secondary);
}
.accordion-header {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none; /* remove default arrow */
}
.accordion-header::-webkit-details-marker {
  display: none;
}
.accordion-content {
  padding-bottom: 24px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.specs-list {
  margin-top: 12px;
  padding-left: 20px;
  list-style-type: square;
}
.specs-list li {
  margin-bottom: 8px;
}
.accordion-item[open] .accordion-icon {
  transform: rotate(180deg);
}
.accordion-icon {
  transition: transform 0.3s ease;
  color: var(--accent-primary);
}
.desktop-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 108px;
  align-self: start;
}
.desktop-main-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  margin-bottom: 12px;
}
.desktop-main-image img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: var(--surface-primary);
  transition: opacity 0.3s, transform 0.4s ease;
  display: block;
  cursor: zoom-in;
  border-radius: 8px;
}
.desktop-main-image .badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--accent-primary);
  padding: 4px 12px;
  z-index: 10;
}
.desktop-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.desktop-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: all 0.3s ease;
  background: var(--surface-primary);
  display: block;
  opacity: 0.5;
}
.desktop-thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.desktop-thumb.active {
  border-color: var(--accent-primary);
  opacity: 1;
}
.detail-desktop-info {
  padding-bottom: 60px;
}

/* Promo Slide (Slide 4) */
.promo-slide {
  background: var(--surface-primary);
  overflow: hidden;
  position: relative;
}
.promo-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at right, #2a220a 0%, #0e0e0e 70%);
}
.promo-slide-img {
  position: absolute;
  right: -30%;
  bottom: -10%;
  height: 100%;
  object-fit: contain;
  opacity: 0.8;
  transform: rotate(-15deg);
  filter: drop-shadow(-10px 10px 20px var(--shadow-color));
  pointer-events: none;
}
.promo-overlay {
  background: linear-gradient(90deg, #0e0e0e 70%, transparent 100%);
}
.promo-copy {
  z-index: 2;
  position: relative;
  align-items: flex-start;
  text-align: left;
}
.promo-badge {
  background: var(--accent-primary); color: var(--text-on-accent);
  font-weight: 900;
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: 12px;
  border-radius: 4px;
  font-size: 14px;
  letter-spacing: 1px;
}
.promo-title {
  color: var(--text-primary) !important;
  font-size: clamp(36px, 10vw, 64px) !important;
  line-height: 1 !important;
  margin-bottom: 8px !important;
  text-align: left;
}
.promo-sub {
  font-size: 16px !important;
  max-width: 90% !important;
  margin-bottom: 24px !important;
  text-align: left;
}
.promo-btn {
  background: var(--accent-primary) !important;
  color: #000 !important;
}

@media (min-width: 768px) {
  .promo-slide-img {
    right: 5%;
    height: 130%;
    bottom: -15%;
  }
  .promo-overlay {
    background: linear-gradient(90deg, #0e0e0e 40%, transparent 100%);
  }
  .promo-sub {
    max-width: 50% !important;
  }
}


  

/* --- MOBILE INFO PADDING --- */
.detail-info { padding: 24px 20px; }


/* ============================================================
   MOBILE-SPECIFIC PRODUCT PAGE REDESIGN
   ============================================================ */
.mobile-product-view { padding-bottom: 24px; }
.mobile-detail-info { padding: 24px 20px; display: flex; flex-direction: column; gap: 24px; }
.mobile-header-text { display: flex; flex-direction: column; gap: 8px; }
.mobile-price-section { display: flex; flex-direction: column; gap: 8px; padding: 0; background: transparent; border: none; margin-top: 16px; margin-bottom: 24px; }
.mobile-price-section .price-now { font-size: 28px; font-weight: 700; font-family: var(--font-serif); color: var(--accent-primary); line-height: 1; }
.mobile-price-section .price-installments { font-size: 13px; color: var(--text-secondary); }
.mobile-price-section .price-old { font-size: 13px; text-decoration: line-through; color: var(--text-secondary); margin-bottom: -4px; }
.pix-badge { display: inline-flex; align-items: center; gap: 4px; background: rgba(212, 175, 55, 0.1); color: var(--accent-primary); padding: 6px 12px; border-radius: 4px; font-size: 13px; width: fit-content; border: 1px solid rgba(212, 175, 55, 0.2); margin-top: 4px; }
.mobile-action-row { display: flex; gap: 12px; align-items: stretch; margin-top: 8px; }
.mobile-action-row .qty-selector { height: 50px; background: var(--surface-secondary); border-color: var(--border-primary); }
.mobile-action-row .qty-btn { height: 100%; width: 40px; }
.mobile-action-row .qty-num { font-size: 16px; width: 40px; line-height: 50px; }
/* ============================================================
   DESKTOP-SPECIFIC PRODUCT PAGE REFINEMENT (RESPIRO PREMIUM)
   ============================================================ */
@media (min-width: 900px) {
  .detail-desktop-layout-wrapper {
    padding-top: 48px;
    padding-bottom: 80px;
    max-width: 1280px;
    margin: 0 auto;
  }
  .detail-desktop-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px; /* P0 Fix: Grande respiro entre imagem e informações */
    align-items: start;
    padding: 0 40px;
  }
  .detail-desktop-info {
    padding: 32px 0; /* Alinha oticamente com o centro de massa da imagem */
    display: flex;
    flex-direction: column;
    gap: 24px; /* Respiro entre os blocos (nome, preço, atributos) */
  }
  
  /* Ajustes finos de margem para os títulos e preços (menos espremidos) */
  .detail-desktop-info .title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 8px;
  }
  .detail-desktop-info .price-block {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-primary);
    padding-bottom: 32px;
  }
  
  /* Botões e Quantidade com mais espaço */
  .detail-desktop-info .subtle-qty-container {
    margin-bottom: 24px;
    margin-top: 24px;
  }
  .detail-desktop-info .product-actions-stacked {
    gap: 16px;
    margin-bottom: 40px;
  }
  
  .detail-desktop-info .btn-buy-now,
  .detail-desktop-info .btn-add-cart {
    padding: 22px; /* Botões mais imponentes e respiráveis no desktop */
    font-size: 14px;
  }
}
