/* ==========================================================================
   PEDRA D'ÁGUA — CATÁLOGO DIGITAL B2B (CSS DESIGN SYSTEM)
   Paleta Solicitada: Azul, Branco, Dourado e Preto
   ========================================================================== */

:root {
  /* Core Colors */
  --navy: #0D4C96;
  --navy-dark: #083468;
  --blue-vibrant: #1D75D5;
  --blue-ice: #EBF4FC;
  --blue-soft: #D3E6FA;

  --gold: #D6A449;
  --gold-hover: #C09034;
  --gold-light: #FFF8EA;
  --gold-metallic: #C9A063;

  --black: #0A0F1D;
  --black-soft: #111827;
  --black-light: #1F2937;
  --black-subtle: #4B5563;

  --white: #FFFFFF;
  --white-ice: #F9FBFF;

  --border-light: rgba(10, 15, 29, 0.1);
  --border-gold: rgba(214, 164, 73, 0.4);

  /* Typography */
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 8px rgba(10, 15, 29, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 15, 29, 0.1);
  --shadow-lg: 0 16px 40px rgba(10, 15, 29, 0.16);
  --shadow-gold: 0 8px 25px rgba(214, 164, 73, 0.3);

  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-blur: blur(12px);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--black-soft);
  background-color: var(--white-ice);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--gold);
  color: var(--black);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
}
.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Announcement Bar */
.top-bar {
  background-color: var(--black);
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(214, 164, 73, 0.3);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 600;
}
.top-badge i {
  width: 16px;
  height: 16px;
}

.top-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white-ice);
}
.top-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--white);
  transition: color var(--transition-fast);
}
.top-link:hover {
  color: var(--gold);
}
.top-link i {
  width: 14px;
  height: 14px;
}
.top-tag {
  background: rgba(214, 164, 73, 0.15);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}
.dot {
  opacity: 0.4;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}
.brand-logo:hover {
  transform: scale(1.02);
}

/* Search Box */
.search-box {
  flex: 1;
  max-width: 440px;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 0 16px;
  transition: all var(--transition-fast);
}
.search-box:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13, 76, 150, 0.15);
}
.search-icon {
  width: 18px;
  height: 18px;
  color: var(--black-subtle);
  margin-right: 8px;
}
.search-box input {
  width: 100%;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--black);
}
.clear-btn {
  color: var(--black-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.clear-btn:hover {
  color: var(--black);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Auth Trigger Button */
.btn-auth-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold);
  background: var(--gold-light);
  color: var(--black);
  font-weight: 700;
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}
.btn-auth-trigger:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-1px);
}
.user-logged-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
}
.user-logged-pill .logout-btn {
  color: var(--gold);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  margin-left: 4px;
}
.user-logged-pill .logout-btn:hover {
  color: var(--white);
}

/* Size Select Dropdown Styling */
.size-picker-wrap {
  margin-bottom: 14px;
}
.size-picker-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--black-soft);
  margin-bottom: 6px;
}
.size-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D4C96' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  transition: all var(--transition-fast);
}
.size-select:hover, .size-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 164, 73, 0.2);
}

/* Auth Modal Styling */
.auth-modal {
  max-width: 480px;
}
.auth-header {
  text-align: center;
  margin-bottom: 20px;
}
.auth-logo {
  height: 44px;
  margin: 0 auto 12px;
}
.auth-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 4px;
}
.auth-header p {
  font-size: 0.85rem;
  color: var(--black-subtle);
}

.auth-tabs {
  display: flex;
  background: var(--white-ice);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}
.auth-tab-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--black-subtle);
  transition: all var(--transition-fast);
}
.auth-tab-btn.active {
  background: var(--black);
  color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.btn-secondary-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--black);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}
.btn-secondary-head:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-cart-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.btn-cart-trigger:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.cart-badge {
  background: var(--gold);
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* Catalog Hero */
.catalog-hero {
  background: linear-gradient(135deg, var(--black) 0%, var(--navy-dark) 60%, var(--navy) 100%);
  color: var(--white);
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}
.catalog-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(214, 164, 73, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 300px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--white);
}

.hero-text p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
}

.hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  min-width: 110px;
  backdrop-filter: blur(6px);
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
}
.stat-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.8);
}

/* Controls Section (Filters) */
.controls-section {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
  position: sticky;
  top: 73px;
  z-index: 90;
  box-shadow: 0 4px 12px rgba(10, 15, 29, 0.03);
}

.segment-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.segment-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black-subtle);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.segment-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.segment-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--white-ice);
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black-soft);
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.chip:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.chip.active {
  background: var(--black);
  color: var(--gold);
  border-color: var(--black);
}

.category-tabs {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  overflow-x: auto;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: var(--white-ice);
  border: 2px solid transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--black-soft);
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.tab-btn i {
  width: 18px;
  height: 18px;
}
.tab-btn:hover {
  background: var(--blue-ice);
  color: var(--navy);
}
.tab-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* Main Catalog Area */
.catalog-main {
  padding: 36px 0 60px;
}

.section-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.catalog-heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--black);
}

.results-badge {
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black-subtle);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* Product Card B2B */
.product-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  background: radial-gradient(circle at center, #ffffff 0%, var(--blue-ice) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.card-img {
  max-height: 180px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-smooth);
  filter: drop-shadow(0 10px 15px rgba(10, 15, 29, 0.15));
}
.product-card:hover .card-img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--black);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--gold);

  box-shadow: var(--shadow-sm);
}

.card-brand-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 6px;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--black-subtle);
  margin-bottom: 16px;
  min-height: 40px;
}

.card-specs {
  background: var(--white-ice);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.spec-row:last-child {
  margin-bottom: 0;
}
.spec-label {
  color: var(--black-subtle);
}
.spec-val {
  font-weight: 700;
  color: var(--black);
}

/* Flavor Selector Pill Grid (if applicable) */
.flavor-picker {
  margin-bottom: 16px;
}
.flavor-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--black-subtle);
  margin-bottom: 6px;
  display: block;
}
.flavor-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.flavor-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--black-soft);
  transition: all var(--transition-fast);
}
.flavor-btn:hover {
  border-color: var(--navy);
}
.flavor-btn.selected {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Quantity Selector & Action Button */
.card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-counter {
  display: flex;
  align-items: center;
  background: var(--white-ice);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.qty-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--black);
  font-weight: 800;
  font-size: 1.1rem;
  transition: background var(--transition-fast);
}
.qty-btn:hover {
  background: var(--gold-light);
  color: var(--gold-hover);
}
.qty-val {
  width: 40px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--black);
}

.btn-add-cart {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}
.btn-add-cart:hover {
  background: var(--black);
  color: var(--gold);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-light);
}
.empty-icon {
  width: 60px;
  height: 60px;
  background: var(--blue-ice);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.empty-icon i {
  width: 32px;
  height: 32px;
}
.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--black-subtle);
  margin-bottom: 20px;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: var(--black);
  font-weight: 800;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-gold);
  transition: all var(--transition-fast);
}
.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
}

/* Trust Banner */
.trust-banner {
  background: var(--black);
  color: var(--white);
  padding: 40px 0;
  border-top: 2px solid var(--gold);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.trust-icon {
  width: 48px;
  height: 48px;
  background: rgba(214, 164, 73, 0.15);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-icon i {
  width: 24px;
  height: 24px;
}

.trust-copy h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}
.trust-copy p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Order Cart Drawer (Gaveta Lateral B2B) */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 29, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}
.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(520px, 100vw);
  background: var(--white);
  z-index: 210;
  box-shadow: -10px 0 40px rgba(10, 15, 29, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
}
.cart-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px 24px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold);
}

.drawer-title-group h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.drawer-title-group h3 i {
  color: var(--gold);
}
.drawer-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}
.drawer-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--gold);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Cart Item Row */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--white-ice);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.item-thumb {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: var(--white);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.item-info {
  flex: 1;
}
.item-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--black);
}
.item-spec {
  font-size: 0.8rem;
  color: var(--black-subtle);
}

.item-remove {
  color: #ef4444;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.item-remove:hover {
  background: #fee2e2;
}

.cart-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--black-subtle);
}
.cart-empty-state .icon-big {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  color: var(--navy);
  opacity: 0.4;
}
.cart-empty-state p {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--black);
  margin-bottom: 4px;
}
.cart-empty-state span {
  font-size: 0.85rem;
}

/* Form Styles */
.checkout-form {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black-soft);
  margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--white);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13, 76, 150, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Payment Grid Options */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pay-option input {
  display: none;
}

.pay-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  background: var(--white-ice);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--black-soft);
  text-align: center;
  transition: all var(--transition-fast);
}
.pay-card i {
  width: 18px;
  height: 18px;
  color: var(--navy);
}

.pay-option input:checked + .pay-card {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.pay-option input:checked + .pay-card i {
  color: var(--gold);
}

/* Drawer Footer */
.drawer-footer {
  padding: 20px 24px;
  background: var(--white-ice);
  border-top: 1px solid var(--border-light);
}

.drawer-summary {
  margin-bottom: 16px;
  background: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.summary-line:last-child {
  margin-bottom: 0;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-whatsapp-company {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-pill);
  background: #25D366;
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: all var(--transition-fast);
}
.btn-whatsapp-company:hover {
  background: #1eb957;
  transform: translateY(-2px);
}

.btn-whatsapp-client {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}
.btn-whatsapp-client:hover {
  background: var(--black);
  color: var(--gold);
}

.btn-print-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--black);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}
.btn-print-quote:hover {
  border-color: var(--gold);
  color: var(--gold-hover);
}

/* Quick View Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 29, 0.7);
  backdrop-filter: blur(6px);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0.95);
  width: min(640px, 92vw);
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--radius-lg);
  z-index: 310;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}
.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white-ice);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.modal-close:hover {
  background: var(--navy);
  color: var(--white);
}

.modal-body {
  padding: 32px;
}

/* Mobile Sticky Bar */
.mobile-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--black);
  border-top: 2px solid var(--gold);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 95;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  display: none;
}

.mobile-cart-count {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gold);
}
.mobile-cart-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.footer {
  background: var(--black);
  color: var(--white);
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  padding-bottom: 40px;
}

.footer-logo {
  height: 48px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 400px;
}

.footer-info h5 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}
.footer-info i {
  color: var(--gold);
  width: 18px;
  height: 18px;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.4);
  padding: 16px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Media Queries for Mobile & Responsiveness (Otimizado para Celulares e Tablets) */
@media (max-width: 768px) {
  /* Top bar e cabeçalho mobile */
  .top-bar {
    display: none;
  }
  
  .header {
    padding: 10px 0;
  }

  .header-wrap {
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand-logo {
    height: 40px;
  }

  .search-box {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-top: 4px;
  }

  /* Previne zoom automático do Safari no iOS */
  .search-box input,
  .form-group input,
  .form-group select,
  .form-group textarea,
  .size-select {
    font-size: 16px !important;
  }

  .btn-secondary-head span {
    display: none;
  }
  .btn-secondary-head {
    padding: 8px 12px;
  }

  .btn-auth-trigger span {
    display: none;
  }
  .btn-auth-trigger {
    padding: 8px 12px;
  }

  .cart-label {
    display: none;
  }
  .btn-cart-trigger {
    padding: 8px 14px;
  }

  /* Hero Mobile */
  .catalog-hero {
    padding: 28px 0 24px;
  }
  .hero-inner {
    gap: 20px;
  }
  .hero-text h1 {
    font-size: 1.6rem;
  }
  .hero-text p {
    font-size: 0.95rem;
  }
  .hero-stats {
    width: 100%;
    justify-content: space-between;
  }
  .stat-card {
    flex: 1;
    min-width: 80px;
    padding: 10px 6px;
  }
  .stat-num {
    font-size: 1.3rem;
  }

  /* Sticky Controls no Mobile */
  .controls-section {
    position: relative;
    top: 0;
    padding: 14px 0;
  }
  .segment-bar {
    margin-bottom: 12px;
  }
  .category-tabs {
    padding-top: 12px;
  }
  .tab-btn {
    padding: 8px 14px;
    font-size: 0.88rem;
  }

  /* Grid e Cards no Mobile */
  .catalog-main {
    padding: 24px 0 80px;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card-image-wrap {
    height: 180px;
  }
  .card-img {
    max-height: 150px;
  }

  /* Gaveta do Pedido (Full Screen no Celular) */
  .cart-drawer {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
  }
  .drawer-body {
    padding: 16px;
  }
  .drawer-footer {
    padding: 14px 16px;
  }

  /* Modais no Mobile */
  .modal {
    width: 94vw;
    max-height: 85vh;
    padding: 20px 16px;
  }
  .modal-body {
    padding: 12px 4px;
  }

  /* Barra Fixa Inferior de Cotação (Estilo App) */
  .mobile-cart-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--black);
    border-top: 2px solid var(--gold);
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    align-items: center;
    justify-content: space-between;
    z-index: 150;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  }

  body {
    padding-bottom: 70px;
  }
}

/* Print Only Styles for PDF Generation */
@media print {
  body * {
    visibility: hidden;
  }
  .print-only, .print-only * {
    visibility: visible;
  }
  .print-only {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 20px;
    background: #fff;
    color: #000;
  }
}

/* CNPJ Lookup Helper Styles */
.input-with-btn {
  display: flex;
  gap: 8px;
  align-items: center;
}
.input-with-btn input {
  flex: 1;
}
.btn-lookup-cnpj {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast);
}
.btn-lookup-cnpj:hover {
  background: var(--navy-light);
}
.btn-lookup-cnpj:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.cnpj-feedback {
  display: block;
  font-size: 0.78rem;
  margin-top: 4px;
  font-weight: 600;
}
.cnpj-feedback.loading {
  color: var(--navy);
}
.cnpj-feedback.success {
  color: #10B981;
}
.cnpj-feedback.error {
  color: #EF4444;
}

/* B2B Price Locking & Display Styles */
.btn-price-locked {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  margin-top: 10px;
  background: linear-gradient(135deg, #0D4C96 0%, #0A0F1D 100%);
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-price-locked:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(214, 164, 73, 0.25);
}
.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 12px;
  background: var(--white-ice);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
}
.product-price-box .price-val {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
}
.product-price-box .price-unit {
  font-size: 0.8rem;
  color: var(--black-subtle);
  font-weight: 600;
}
.item-subtotal {
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 700;
  margin-top: 4px;
}
.item-subtotal-locked {
  font-size: 0.78rem;
  color: #D6A449;
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}


