/* Custom overrides (theme add-ons) */

/* Discount badge over main image */
.product-sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #FF6B6B;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 6px;
  z-index: 3;
}

.product-stock-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #E53E3E;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 999px;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Price styling */
.price-list .price.price--highlight,
.price-list .price:not(.price--compare) {
  color: #00B894 !important;
  font-weight: 700;
}
.price-list .price.price--highlight { font-size: 32px; }
.price-list .price:not(.price--compare) { font-size: 28px; }
.price-list .price.price--compare {
  font-size: 18px;
  color: #B0BEC5;
  text-decoration: line-through;
  margin-left: 8px;
}

/* Base colors and typography */
body { background: #FFFFFF; color: #2D3748; }
.heading.h1, .product-meta__title { font-size: 24px; line-height: 1.3; font-weight: 600; }
.rte, .product-meta__description, .card__section .rte { font-size: 16px; line-height: 1.6; color: #4A5568; }
.text--muted, .product-form__price-info, .inventory, .payment-list__notice { color: #718096; }

/* Rating badge under title */
.rating-badge { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; }
.rating-badge__stars { display: inline-flex; gap: 2px; }
.rating-badge__stars .star { width: 16px; height: 16px; display: inline-block; }
.rating-badge__score { font-weight: 700; color: #2D3748; }
.rating-badge__count { color: #718096; font-size: 14px; }

/* Buttons */
.button.button--primary {
  background: #00D9A5;
  border-color: #00D9A5;
}
.button.button--primary:hover,
.button.button--primary:focus {
  background: #00B894;
  border-color: #00B894;
}
.button.button--secondary {
  color: #00D9A5;
  border-color: #00D9A5;
  background: transparent;
}
.button.button--secondary:hover,
.button.button--secondary:focus {
  background: #00D9A5;
  color: #FFFFFF;
}

/* Gallery smaller on mobile + thumbnails */
@media (max-width: 640px) {
  /* Put text first on mobile */
  .product-block-list__item--info { order: 0 !important; }
  .product-block-list__item--gallery { order: 1 !important; }

  /* Smaller main image */
  .product-gallery__carousel { display: flex; justify-content: center; }
  .product-gallery__carousel-item { max-width: 300px !important; margin: 0 auto !important; }
  .product-gallery__size-limiter { max-width: 300px !important; margin: 0 auto !important; }
  .product-gallery__carousel .aspect-ratio { max-width: 300px !important; margin: 0 auto !important; }
  .product-gallery__image { max-width: 300px !important; width: 100% !important; height: auto !important; }

  .product-gallery__thumbnail-list .aspect-ratio { width: 80px; }
  .product-gallery__thumbnail { border-radius: 8px; overflow: hidden; }

  /* Hide inline buy button to use sticky CTA */
  .product-form__payment-container { display: none; }
  /* Compact sticky CTA */
  .sticky-cta { padding: 6px 10px; }
  .sticky-cta .offer-countdown { padding: 8px 10px; margin-bottom: 6px; }
  .sticky-cta .offer-countdown__timer .oc-box { padding: 4px 6px; min-width: 44px; }
  .sticky-cta .offer-countdown__timer .oc-box span { font-size: 18px; }
  .sticky-cta .button { min-height: 52px; }
}

.product-gallery__thumbnail:hover { box-shadow: 0 0 0 2px #00D9A5 inset; }

/* Countdown */
.offer-countdown { margin-bottom: 12px; background: #F7FAFC; border-left: 4px solid #00D9A5; padding: 12px; border-radius: 10px; }
.offer-countdown__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.offer-countdown__heading { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #2D3748; font-weight: 600; }
.offer-countdown__heading .icon { color: #00B894; }
.offer-countdown__timer { display: flex; align-items: center; gap: 8px; }
.offer-countdown__timer .oc-box { background: #EDF2F7; border: 1px solid #E2E8F0; border-radius: 8px; padding: 6px 8px; min-width: 52px; text-align: center; box-shadow: 0 1px 0 rgba(0,0,0,0.02) inset; }
.offer-countdown__timer .oc-box span { font-weight: 800; font-size: 22px; color: #1A202C; display: block; line-height: 1; }
.offer-countdown__timer .oc-box small { display: block; font-size: 10px; color: #4A5568; margin-top: 2px; letter-spacing: .02em; }
.offer-countdown__timer .oc-sep { font-weight: 700; color: #A0AEC0; }
.offer-countdown__bar { margin-top: 10px; height: 6px; background: #E6FFFA; border-radius: 999px; overflow: hidden; position: relative; }
.offer-countdown__bar-fill { display: block; height: 100%; background: linear-gradient(90deg,#00D9A5,#00B894); width: 100%; transition: width .6s ease; }

/* Sticky CTA on mobile */
@media (max-width: 640px) {
  .sticky-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    padding: 10px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 -6px 12px rgba(0,0,0,0.08);
  }
  .sticky-cta .button { min-height: 56px; width: 100%; }
}

/* Touch targets */
.button, .quantity-selector__button { min-height: 48px; }
.product-gallery__thumbnail { min-width: 64px; min-height: 64px; }

/* Desktop main image target size */
@media (min-width: 1024px) {
  .product-gallery__size-limiter { max-width: 400px !important; }
  .product-gallery__carousel .aspect-ratio { max-width: 400px; margin: 0 auto; }
}

/* Payment icons styling */
.payment-list__item--larger {
  width: 48px !important;
  height: 32px !important;
  margin: 6px !important;
}

.payment-list__item--larger svg {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

/* Trust badges container */
.trust-badges-container {
  margin-top: 20px;
  text-align: center;
}

.trust-badges-container img {
  max-width: 100%;
  height: auto;
  max-height: 120px;
  display: inline-block;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive adjustments for payment icons */
@media (max-width: 640px) {
  .payment-list__item--larger {
    width: 42px !important;
    height: 28px !important;
    margin: 4px !important;
  }
  
  .trust-badges-container img {
    max-height: 90px;
  }
}

/* ==========================================================================
   BLOQUEADOR DE SELEÇÃO E CÓPIA DE CONTEÚDO
   ========================================================================== */
body {
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE10+/Edge */
  user-select: none;         /* Padrão */
}

/* Permite a seleção em campos de formulário para não prejudicar a usabilidade */
input,
textarea,
select,
[contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}