/* Clean Vale - UI Components (Soft Blue & WhatsApp Green Theme) */

/* ===================================
   BUTTONS (PRIMARY BLUE & WHATSAPP GREEN)
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--font-size-base);
  padding: 0.85rem 1.75rem;
  border-radius: var(--cleanvale-radius);
  transition: all var(--transition-base);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--cleanvale-blue);
  color: var(--cleanvale-text-white);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background-color: var(--cleanvale-blue-dark);
  color: var(--cleanvale-text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

/* Green WhatsApp Button */
.btn-green, .btn-whatsapp {
  background-color: var(--cleanvale-green);
  color: var(--cleanvale-text-white);
  box-shadow: 0 4px 12px var(--cleanvale-green-shadow);
}

.btn-green:hover, .btn-whatsapp:hover {
  background-color: var(--cleanvale-green-hover);
  color: var(--cleanvale-text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
}

.btn-secondary {
  background-color: #1e293b;
  color: var(--cleanvale-text-white);
}

.btn-outline {
  border: 2px solid var(--cleanvale-blue);
  color: var(--cleanvale-blue);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--cleanvale-blue);
  color: var(--cleanvale-text-white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
  border-radius: var(--cleanvale-radius-sm);
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: var(--font-size-lg);
}

.wa-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cleanvale-border);
  z-index: 1000;
  transition: box-shadow var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--cleanvale-shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.header-logo img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  color: var(--cleanvale-text);
  font-size: var(--font-size-base);
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--cleanvale-blue);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background: var(--cleanvale-bg-surface);
  border-radius: var(--cleanvale-radius);
  box-shadow: var(--cleanvale-shadow-lg);
  border: 1px solid var(--cleanvale-border);
  padding: 0.75rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--cleanvale-text);
  border-radius: var(--cleanvale-radius-sm);
  font-weight: 500;
}

.dropdown-item a:hover {
  background: var(--cleanvale-blue-subtle);
  color: var(--cleanvale-blue);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  color: var(--cleanvale-blue-deep);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

/* ===================================
   HERO BANNER CAROUSEL (CLEAN SLIDES - NO TEXT OVERLAY)
   =================================== */
.hero-slider-section {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.hero-slider-wrap {
  position: relative;
  border-radius: var(--cleanvale-radius-lg);
  overflow: hidden;
  box-shadow: var(--cleanvale-shadow-md);
  border: 1px solid var(--cleanvale-border);
  background-color: #f0f7ff;
}

.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide picture,
.slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--cleanvale-radius-lg);
}

/* Slider Arrow Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid var(--cleanvale-border);
  color: var(--cleanvale-blue-deep);
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
  box-shadow: var(--cleanvale-shadow-sm);
}

.slider-arrow:hover {
  background: #ffffff;
  color: var(--cleanvale-blue);
  transform: translateY(-50%) scale(1.08);
}

.slider-arrow.prev {
  left: 1rem;
}

.slider-arrow.next {
  right: 1rem;
}

.slider-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.65rem;
  z-index: 10;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.slider-dots .dot.active {
  background: var(--cleanvale-blue);
  width: 28px;
  border-radius: 12px;
}

/* ===================================
   PRODUCT CARDS
   =================================== */
.product-card {
  background: var(--cleanvale-bg-surface);
  border: 1px solid var(--cleanvale-border);
  border-radius: var(--cleanvale-radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--cleanvale-shadow-md);
  border-color: var(--cleanvale-blue);
}

.product-card-img-wrap {
  width: 100%;
  height: 220px;
  background: #f8fafc;
  border-radius: var(--cleanvale-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.product-card-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-base);
}

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

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--cleanvale-radius-full);
  background: var(--cleanvale-blue-subtle);
  color: var(--cleanvale-blue);
}

.product-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--cleanvale-text);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.product-code {
  font-size: var(--font-size-xs);
  color: var(--cleanvale-text-light);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.product-desc {
  font-size: var(--font-size-sm);
  color: var(--cleanvale-text-muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.meta-pill {
  font-size: var(--font-size-xs);
  background: var(--cleanvale-bg-alt);
  color: var(--cleanvale-text);
  padding: 0.25rem 0.65rem;
  border-radius: var(--cleanvale-radius-sm);
  font-weight: 500;
}

.product-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.product-card-actions .btn {
  flex: 1;
}

/* ===================================
   SEARCH BAR COMPONENT
   =================================== */
.search-box-wrap {
  background: var(--cleanvale-bg-surface);
  border-radius: var(--cleanvale-radius-lg);
  box-shadow: var(--cleanvale-shadow);
  padding: 1.5rem;
  border: 1px solid var(--cleanvale-border);
}

.search-input-group {
  display: flex;
  gap: 0.75rem;
  position: relative;
}

.search-input-group input {
  width: 100%;
  padding: 1.1rem 1.5rem;
  padding-left: 3.25rem;
  border: 2px solid var(--cleanvale-border);
  border-radius: var(--cleanvale-radius);
  font-size: var(--font-size-lg);
  transition: border-color var(--transition-fast);
}

.search-input-group input:focus {
  border-color: var(--cleanvale-blue);
  outline: none;
}

.search-icon-inside {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cleanvale-text-light);
  font-size: 1.25rem;
  pointer-events: none;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

.search-tags-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--cleanvale-text-muted);
}

.search-tag-pill {
  font-size: var(--font-size-xs);
  font-weight: 600;
  background: var(--cleanvale-bg-alt);
  color: var(--cleanvale-text);
  padding: 0.4rem 0.85rem;
  border-radius: var(--cleanvale-radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-tag-pill:hover {
  background: var(--cleanvale-blue);
  color: var(--cleanvale-text-white);
}

/* Ficha técnica nos cards de produto */
.product-specs {
  margin: 0.75rem 0 1rem;
  border: 1px solid var(--cleanvale-border);
  border-radius: var(--cleanvale-radius);
  background: var(--cleanvale-bg-surface);
  font-size: var(--font-size-xs);
  text-align: left;
}
.product-specs summary {
  cursor: pointer;
  padding: 0.6rem 0.85rem;
  font-weight: 700;
  color: var(--cleanvale-blue);
  list-style-position: inside;
}
.product-specs[open] summary { border-bottom: 1px solid var(--cleanvale-border); }
.product-specs-body { padding: 0.75rem 0.85rem; }
.product-specs dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  margin: 0 0 0.75rem;
}
.product-specs dt { font-weight: 600; color: var(--cleanvale-text-muted); }
.product-specs dd { margin: 0; }
.product-specs h4 { font-size: var(--font-size-xs); font-weight: 700; margin: 0.75rem 0 0.25rem; }
.product-specs ul { margin: 0; padding-left: 1.1rem; }
.product-specs li { margin-bottom: 0.15rem; }
.product-specs-fonte { margin-top: 0.75rem; color: var(--cleanvale-text-muted); font-style: italic; }
