/* Premium Product Cards Styles */
.premium-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 0px !important; /* Swiss Sharp */
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  background-image: none !important;
  backdrop-filter: none !important;
}

body.theme-dark .premium-card, body.theme-red .premium-card {
  background-image: linear-gradient(135deg, rgba(30,30,30,0.6), rgba(20,20,20,0.2));
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Badge Superior */
.card-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--primary);
  color: #FFF;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 8px 15px;
  border-radius: 0 !important;
  z-index: 10;
  letter-spacing: 2px;
}

/* Imagem Maior e com Fundo Elegante */
/* Imagem Maior e com Fundo Elegante */
.product-image-container {
  width: 100%;
  height: 220px; /* Aumentado para mais destaque */
  background: #FFFFFF !important; /* Branco sólido para fundir com o fundo das fotos */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0px !important; /* Removido para a imagem colar aos limites e preencher tudo */
  transition: background 0.3s;
}

body.theme-dark .product-image-container, body.theme-red .product-image-container {
  background: #FFFFFF !important; /* Mantém branco para as fotos aparecerem limpas */
}

.premium-card .product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  filter: none !important; /* Removida a sombra cinzenta que incomodava o utilizador */
}

.premium-card:hover .product-image {
  transform: scale(1.08) translateY(-5px);
}

/* Conteúdo */
.premium-card .product-content {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.premium-card .product-category {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.premium-card .product-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.premium-card .product-short-info {
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(0,0,0,0.04);
  padding: 5px 10px;
  border-radius: 6px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 12px;
  font-weight: 600;
}

body.theme-dark .premium-card .product-short-info, body.theme-red .premium-card .product-short-info {
  background: rgba(255,255,255,0.05);
}

.premium-card .product-price-section {
  margin-top: auto;
  margin-bottom: 12px;
}

.premium-card .product-price {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-accent);
  letter-spacing: -0.5px;
}

.premium-card .premium-add-btn {
  width: 100%;
  background: #000;
  color: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 14px;
  border-radius: 0 !important;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.premium-card .premium-add-btn ion-icon {
  font-size: 20px;
}

.premium-card .premium-add-btn:hover {
  background: var(--primary);
  color: #FFF;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

/* --- ESTILO NCR PREMIUM (NOVO) --- */
.product-card.ncr-style {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #EDEDED;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.product-card.ncr-style:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transform: translateY(-5px);
}

.product-card.ncr-style .product-image-container {
  height: 230px;
  background: #FAFAFA;
  padding: 16px;
  position: relative;
  border-bottom: 1px solid #F0F0F0;
}

.product-card.ncr-style .product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-card.ncr-style .product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #000;
  color: #FFF;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-card.ncr-style .favorite-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: #101010;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
  z-index: 3;
}

.product-card.ncr-style .favorite-btn ion-icon {
  font-size: 18px;
}

.product-card.ncr-style .favorite-btn:hover {
  transform: scale(1.08);
  border-color: var(--primary);
  color: var(--primary);
}

.product-card.ncr-style .favorite-btn.active {
  background: rgba(227, 30, 37, 0.12);
  border-color: rgba(227, 30, 37, 0.3);
  color: var(--primary);
}

.product-info-premium {
  padding: 15px 20px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-label {
  color: var(--primary);
  font-weight: 800;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 5px;
  text-align: center;
  width: 100%;
}

.product-name-ncr {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 12px 0;
  line-height: 1.4;
  min-height: 36px;
  max-height: 54px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: 0.3px;
  text-align: center;
  width: 100%;
}

.product-price-container {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.product-price-ncr {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: #000;
  letter-spacing: -0.5px;
  text-align: center;
}

.add-to-cart-ncr {
  background: #25D366; /* Verde WhatsApp */
  color: #FFFFFF;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.add-to-cart-ncr ion-icon {
  font-size: 18px;
}

.add-to-cart-ncr:hover {
  background: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* ============================================================
   SEPARADORES DE SUBCATEGORIA — Swiss Tech Premium
   ============================================================ */
.subcategory-section-header {
  grid-column: 1 / -1;
  padding: 28px 0 8px;
  margin-top: 8px;
}

.subcategory-section-header:first-child {
  padding-top: 8px;
  margin-top: 0;
}

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

.subcategory-header-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #E0E0E0, transparent);
}

.subcategory-header-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1A1A1A;
  white-space: nowrap;
  padding: 6px 14px;
  border: 1px solid #E0E0E0;
  background: #fff;
}

.subcategory-header-label ion-icon {
  font-size: 13px;
  color: var(--primary, #E31E25);
  flex-shrink: 0;
}

.subcategory-header-count {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  color: #999;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Tema Dark */
body.theme-dark .subcategory-header-label,
body.theme-red .subcategory-header-label {
  background: #1A1A1A;
  border-color: #333;
  color: #F5F5F5;
}

body.theme-dark .subcategory-header-line,
body.theme-red .subcategory-header-line {
  background: linear-gradient(to right, transparent, #333, transparent);
}

body.theme-dark .subcategory-header-count,
body.theme-red .subcategory-header-count {
  color: #666;
}

@media (max-width: 480px) {
  .subcategory-header-count {
    display: none;
  }
  .subcategory-header-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    padding: 5px 10px;
  }
}
