/* ===== OFERTA DO DIA V2 - DESIGN MODERNO E RESPONSIVO ===== */

/* === VARIÁVEIS CSS === */
:root {
  --oferta-primary: #2563eb;
  --oferta-secondary: #1d4ed8;
  --oferta-accent: #f59e0b;
  --oferta-success: #059669;
  --oferta-danger: #dc2626;
  --oferta-warning: #d97706;
  --oferta-info: #0ea5e9;
  --oferta-dark: #111827;
  --oferta-gray: #6b7280;
  --oferta-light: #ffffff;
  --oferta-bg: #f8fafc;
  --oferta-border: #e5e7eb;
  --oferta-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --oferta-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --oferta-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --oferta-radius: 12px;
  --oferta-radius-sm: 6px;
  --oferta-transition: all 0.2s ease-in-out;
}

/* === CONTAINER PRINCIPAL === */
.hlm-oferta-do-dia-section {
  background: var(--oferta-bg);
  padding: 24px 0;
  position: relative;
}

/* === HEADER COM PREÇO === */
.hlm-oferta-header-price-section {
  background: var(--oferta-primary);
  padding: 16px 20px;
  text-align: center;
  position: relative;
  margin-bottom: 24px;
  border-radius: var(--oferta-radius);
  margin: 0 24px 24px 24px;
  box-shadow: var(--oferta-shadow-md);
}

.hlm-oferta-header-price-section::before {
  content: "🔥 OFERTA ESPECIAL";
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hlm-oferta-header-price-section {
  color: white;
  font-weight: 700;
  font-size: clamp(18px, 3vw, 24px);
}

/* === CONTAINER PRINCIPAL === */
.hlm-oferta-do-dia-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === LAYOUT GRID PRINCIPAL === */
.hlm-oferta-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

/* === SEÇÃO PRODUTO PRINCIPAL === */
.hlm-oferta-principal-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hlm-oferta-titulo-section {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--oferta-dark);
  margin: 0 0 16px 0;
  text-align: center;
}

/* === CARD PRODUTO PRINCIPAL === */
.hlm-oferta-card-section {
  position: relative;
}

.hlm-product-card-section {
  background: var(--oferta-light);
  border-radius: var(--oferta-radius);
  padding: 20px;
  position: relative;
  transition: var(--oferta-transition);
  border: 1px solid var(--oferta-border);
  box-shadow: var(--oferta-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hlm-product-card-section:hover {
  transform: translateY(-2px);
  box-shadow: var(--oferta-shadow-lg);
  border-color: var(--oferta-primary);
}

.hlm-product-image-section {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--oferta-radius-sm);
  margin-bottom: 16px;
  transition: var(--oferta-transition);
  background: var(--oferta-bg);
}

/* === INFORMAÇÕES DO PRODUTO === */
.hlm-product-title-section {
  font-size: 16px;
  font-weight: 600;
  color: var(--oferta-dark);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hlm-product-rating-section {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hlm-review-count-section {
  color: var(--oferta-gray);
  font-size: 14px;
  font-weight: 500;
}

/* === PREÇOS === */
.hlm-price-container-section {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--oferta-border);
}

.hlm-price-main-section {
  font-size: 14px;
  color: var(--oferta-gray);
  margin-bottom: 6px;
  font-weight: 500;
  text-decoration: line-through;
}

.hlm-pix-price-section {
  font-size: 20px;
  font-weight: 700;
  color: var(--oferta-success);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hlm-pix-price-section::after {
  content: "PIX";
  background: var(--oferta-success);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--oferta-radius-sm);
  font-weight: 600;
}

.hlm-installment-section {
  font-size: 12px;
  color: var(--oferta-gray);
  font-weight: 500;
}

/* === BADGES MODERNOS === */
.hlm-product-badges-section {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hlm-badge-section {
  padding: 4px 8px;
  border-radius: var(--oferta-radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
  display: inline-flex;
  align-items: center;
  box-shadow: var(--oferta-shadow);
  transition: var(--oferta-transition);
  letter-spacing: 0.3px;
  max-width: fit-content;
}

.hlm-badge-promotion-section {
  background: var(--oferta-danger);
}

.hlm-badge-featured-section {
  background: var(--oferta-info);
}

.hlm-badge-bestseller-section {
  background: var(--oferta-warning);
}

.hlm-badge-discount-section {
  background: var(--oferta-success);
}

.hlm-badge-unavailable-section {
  background: var(--oferta-gray);
}

/* === BOTÃO QUICK ADD MODERNO === */
.hlm-uxe-add-product-btn-section {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--oferta-primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  transition: var(--oferta-transition);
  z-index: 15;
  box-shadow: var(--oferta-shadow-md);
}

.hlm-uxe-add-product-btn-section:hover {
  transform: scale(1.05);
  background: var(--oferta-secondary);
  box-shadow: var(--oferta-shadow-lg);
}

.hlm-uxe-disabled-section {
  background: var(--oferta-gray);
  cursor: not-allowed;
}

.hlm-uxe-disabled-section:hover {
  transform: none;
  background: var(--oferta-gray);
}

/* === SEÇÃO MAIS PRODUTOS === */
.hlm-mais-produtos-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hlm-mais-produtos-header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.hlm-mais-produtos-titulo-section {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: var(--oferta-dark);
  margin: 0;
}

.hlm-ver-mais-link-section {
  color: var(--oferta-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: var(--oferta-transition);
}

.hlm-ver-mais-link-section:hover {
  color: var(--oferta-secondary);
  text-decoration: underline;
}

/* === FLEX PRODUTOS ADICIONAIS === */
.hlm-mais-produtos-grid-section {
  display: flex;
  gap: 16px;
  overflow: hidden;
  position: relative;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0 40px;
}

.hlm-mais-produtos-grid-section::-webkit-scrollbar {
  display: none;
}

/* === SETAS DE NAVEGAÇÃO === */
.hlm-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--oferta-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  transition: var(--oferta-transition);
  z-index: 10;
  box-shadow: var(--oferta-shadow-md);
}

.hlm-nav-arrow:hover {
  background: var(--oferta-secondary);
  transform: translateY(-50%) scale(1.1);
}

.hlm-nav-arrow.hlm-prev {
  left: 0;
}

.hlm-nav-arrow.hlm-next {
  right: 0;
}

.hlm-nav-arrow:disabled {
  background: var(--oferta-gray);
  cursor: not-allowed;
  opacity: 0.6;
}

.hlm-nav-arrow:disabled:hover {
  transform: translateY(-50%);
  background: var(--oferta-gray);
}

.hlm-produto-adicional-section {
  background: var(--oferta-light);
  border-radius: var(--oferta-radius);
  padding: 16px;
  border: 1px solid var(--oferta-border);
  box-shadow: var(--oferta-shadow);
  transition: var(--oferta-transition);
  position: relative;
  flex: 0 0 280px;
  min-width: 280px;
}

.hlm-produto-adicional-section:hover {
  transform: translateY(-2px);
  box-shadow: var(--oferta-shadow-lg);
  border-color: var(--oferta-primary);
}

.hlm-produto-adicional-section .hlm-product-image-section {
  height: 120px;
  margin-bottom: 12px;
}

.hlm-produto-adicional-section .hlm-product-title-section {
  font-size: 14px;
  margin-bottom: 8px;
  -webkit-line-clamp: 2;
}

.hlm-produto-adicional-section .hlm-price-main-section {
  font-size: 12px;
  margin-bottom: 4px;
}

.hlm-produto-adicional-section .hlm-pix-price-section {
  font-size: 14px;
  margin-bottom: 8px;
}

.hlm-produto-adicional-section .hlm-pix-price-section::after {
  font-size: 9px;
  padding: 2px 4px;
}

.hlm-produto-adicional-section .hlm-uxe-add-product-btn-section {
  width: 32px;
  height: 32px;
  font-size: 16px;
  bottom: 12px;
  right: 12px;
}

/* === RESPONSIVIDADE === */

/* Tablet */
@media (max-width: 768px) {
  .hlm-oferta-content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hlm-mais-produtos-grid-section {
    padding: 0 35px;
  }

  .hlm-produto-adicional-section {
    flex: 0 0 240px;
    min-width: 240px;
  }

  .hlm-mais-produtos-header-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hlm-oferta-do-dia-container {
    padding: 0 16px;
  }

  .hlm-oferta-header-price-section {
    margin: 0 16px 20px 16px;
    padding: 12px 16px;
  }

  .hlm-mais-produtos-grid-section {
    padding: 0 30px;
  }

  .hlm-produto-adicional-section {
    flex: 0 0 200px;
    min-width: 200px;
  }

  .hlm-product-image-section {
    height: 200px;
  }

  .hlm-produto-adicional-section .hlm-product-image-section {
    height: 140px;
  }
}

/* === ESTADOS DE LOADING === */
.hlm-loading {
  opacity: 0.7;
  pointer-events: none;
}
