/* ============================================================
   D-MAX / LIQUI MOLY - Catálogo de Produtos
   Same design system as main site (OKLCH, D-DIN + Hanken Grotesk)
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Fontes autohospedadas (mesmo bloco do styles.css; esta folha carrega sozinha) */
@font-face {
  font-family: 'D-DIN';
  src: url('assets/fonts/D-DIN.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'D-DIN';
  src: url('assets/fonts/D-DIN-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'D-DIN Condensed';
  src: url('assets/fonts/D-DINCondensed-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('assets/fonts/hanken-grotesk-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('assets/fonts/hanken-grotesk-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('assets/fonts/hanken-grotesk-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('assets/fonts/hanken-grotesk-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --azul-liqui: #00519E;
  --vermelho-liqui: #E2001A;
  --dark-bg: oklch(0.13 0.01 250);
  --dark-surface: oklch(0.17 0.01 250);
  --light-bg: oklch(0.97 0 0);
  --light-surface: oklch(0.99 0 0);
  --text-dark: oklch(0.15 0.01 250);
  --text-muted: oklch(0.50 0.01 250);
  --text-light: oklch(0.97 0 0);
  --text-light-muted: oklch(0.72 0 0);
  --card-dark: oklch(0.14 0.012 250);
  --radius: 12px;
  --radius-lg: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --font-display: 'D-DIN', Arial, sans-serif;
  --font-condensed: 'D-DIN Condensed', 'D-DIN', Arial, sans-serif;
  --font-body: 'Hanken Grotesk', Arial, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--light-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* --- HEADER (compact, always dark) --- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(20px, 5vw, 48px);
  height: 72px;
  background: oklch(0.13 0.01 250 / 0.92);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.04);
}
.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.header__logo-link { display: flex; align-items: center; flex-shrink: 0; }
.header__logo-img { height: 60px; width: auto; object-fit: contain; }
.header__nav { display: flex; align-items: center; gap: 36px; }
.header__link {
  color: oklch(1 0 0 / 0.65);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color .3s var(--ease);
}
.header__link:hover { color: var(--text-light); }
.header__link--icon { display: flex; align-items: center; padding: 4px; }
.header__link--active { color: var(--text-light); }
.header__cta-link {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border: 1px solid oklch(1 0 0 / 0.2);
  border-radius: var(--radius);
  transition: all .3s var(--ease);
}
.header__cta-link:hover {
  background: oklch(1 0 0 / 0.1);
  border-color: oklch(1 0 0 / 0.4);
}

.header__hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  z-index: 101;
}
.header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.header__hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__hamburger.active span:nth-child(2) { opacity: 0; }
.header__hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .header__hamburger { display: flex; }
  .header__nav {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: oklch(0.1 0.01 250 / 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    padding: 24px;
  }
  .header__nav.open { transform: translateX(0); }
  .header__link { font-size: 20px; font-weight: 500; }
  .header__cta-link { font-size: 16px; text-align: center; width: 100%; }
}

/* --- SECTION HEADINGS --- */
.section-label {
  display: inline-block;
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: oklch(0.78 0.07 250);
  margin-bottom: 16px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .4s var(--ease), background .3s, border-color .3s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: var(--vermelho-liqui);
  color: var(--text-light);
}
.btn--primary:hover {
  background: oklch(0.53 0.22 27);
  box-shadow: 0 12px 40px oklch(0.57 0.23 27 / 0.3);
  transform: translateY(-1px);
}
.btn--outline-dark {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid oklch(0 0 0 / 0.15);
}
.btn--outline-dark:hover {
  background: oklch(0 0 0 / 0.04);
  border-color: oklch(0 0 0 / 0.3);
  transform: translateY(-1px);
}
.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn--whatsapp {
  background: oklch(0.72 0.17 155);
  color: var(--text-light);
  font-size: 16px;
  padding: 18px 40px;
  border-radius: var(--radius-lg);
}
.btn--whatsapp svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--whatsapp:hover {
  background: oklch(0.65 0.17 155);
  box-shadow: 0 12px 40px oklch(0.72 0.17 155 / 0.25);
  transform: translateY(-2px);
}
.btn--whatsapp-sm {
  background: oklch(0.72 0.17 155);
  color: var(--text-light);
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius);
}
.btn--whatsapp-sm svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--whatsapp-sm:hover {
  background: oklch(0.65 0.17 155);
  box-shadow: 0 8px 28px oklch(0.72 0.17 155 / 0.2);
  transform: translateY(-1px);
}

/* --- HERO CATÁLOGO --- */
.cat-hero {
  padding-top: calc(72px + clamp(40px, 6vw, 80px));
  padding-bottom: clamp(40px, 6vw, 64px);
  background: var(--dark-bg);
  color: var(--text-light);
}
.cat-hero__back {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: oklch(1 0 0 / 0.62);
  margin-bottom: 32px;
  transition: color .3s var(--ease);
}
.cat-hero__back:hover { color: var(--text-light); }
.cat-hero__back svg { width: 16px; height: 16px; }
.cat-hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-top: 8px;
}
.cat-hero__sub {
  margin-top: 20px;
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text-light-muted);
  max-width: 52ch;
  line-height: 1.65;
}

/* --- FILTROS --- */
.cat-filters {
  position: sticky;
  top: 72px;
  /* Ancora #catalogo aterrissa abaixo do header fixo de 72px */
  scroll-margin-top: 72px;
  z-index: 50;
  background: var(--light-bg);
  border-bottom: 1px solid oklch(0 0 0 / 0.06);
  padding: 20px 0;
}
.cat-filters__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.cat-filters__search {
  position: relative;
  flex: 1;
  max-width: 400px;
}
.cat-filters__search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}
.cat-filters__input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  font-family: var(--font-body);
  font-size: 14px;
  border: 1px solid oklch(0 0 0 / 0.1);
  border-radius: var(--radius);
  background: var(--light-surface);
  color: var(--text-dark);
  outline: none;
  transition: border-color .3s var(--ease), box-shadow .3s;
}
.cat-filters__input:focus {
  border-color: var(--azul-liqui);
  box-shadow: 0 0 0 3px oklch(0.42 0.14 250 / 0.1);
}
.cat-filters__input::placeholder { color: var(--text-muted); }
.cat-filters__count {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.cat-filters__groups {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.cat-filters__group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cat-filters__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  flex-shrink: 0;
}
.cat-filters__pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cat-pill {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 100px;
  background: oklch(0 0 0 / 0.04);
  color: var(--text-muted);
  transition: all .25s var(--ease);
}
.cat-pill:hover {
  background: oklch(0 0 0 / 0.08);
  color: var(--text-dark);
}
.cat-pill.active {
  background: var(--azul-liqui);
  color: var(--text-light);
}

@media (max-width: 768px) {
  .cat-filters { position: static; }
  .cat-filters__bar { flex-direction: column; align-items: stretch; }
  .cat-filters__search { max-width: none; }
  .cat-filters__groups { flex-direction: column; gap: 16px; }
}

/* --- PRODUCT GRID --- */
.cat-grid-section {
  padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 8vw, 100px);
  min-height: 60vh;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

/* --- FLIP CARD --- */
.flip-card {
  perspective: 1000px;
  height: 360px;
  cursor: pointer;
}
.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  transition: transform .6s var(--ease);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}
.flip-card:hover .flip-card__inner,
.flip-card:focus-within .flip-card__inner,
.flip-card.is-flipped .flip-card__inner {
  transform: rotateY(180deg);
}
.flip-card__face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Front */
.flip-card__front {
  background: var(--light-surface);
  border: 1px solid oklch(0 0 0 / 0.06);
  display: flex;
  flex-direction: column;
}
.flip-card__img-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 8px;
  background: white;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.flip-card__img {
  max-height: 180px;
  max-width: 100%;
  object-fit: contain;
  transition: transform .4s var(--ease);
}
.flip-card:hover .flip-card__img {
  transform: scale(1.05);
}
.flip-card__front-info {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.flip-card__front-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.flip-card__front-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.flip-card__add-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--azul-liqui);
  color: var(--text-light);
  transition: transform .25s var(--ease), background .25s, box-shadow .25s;
  cursor: pointer;
}
.flip-card__add-btn svg { width: 18px; height: 18px; }
.flip-card__add-btn:hover {
  background: oklch(0.38 0.14 250);
  transform: scale(1.1);
  box-shadow: 0 4px 16px oklch(0.42 0.14 250 / 0.3);
}
.flip-card__add-btn:active { transform: scale(0.92); }
.flip-card__category-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--azul-liqui);
}
.flip-card__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.flip-card__volume {
  font-size: 13px;
  color: var(--text-muted);
}

/* Back */
.flip-card__back {
  background: var(--card-dark);
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  color: var(--text-light);
}
.flip-card__back-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 12px;
  color: oklch(1 0 0);
}
.flip-card__back-desc {
  font-size: 13px;
  color: var(--text-light-muted);
  line-height: 1.6;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
}
.flip-card__back-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.flip-card__back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all .25s var(--ease);
  text-align: center;
}
.flip-card__back-btn--whatsapp {
  background: oklch(0.72 0.17 155);
  color: var(--text-light);
}
.flip-card__back-btn--whatsapp:hover {
  background: oklch(0.65 0.17 155);
  transform: translateY(-1px);
}
.flip-card__back-btn--whatsapp svg { width: 16px; height: 16px; flex-shrink: 0; }
.flip-card__back-btn--detail {
  background: oklch(1 0 0 / 0.08);
  color: oklch(1 0 0 / 0.7);
  border: 1px solid oklch(1 0 0 / 0.1);
}
.flip-card__back-btn--detail:hover {
  background: oklch(1 0 0 / 0.14);
  color: var(--text-light);
  transform: translateY(-1px);
}
.flip-card__back-btn--share {
  background: oklch(1 0 0 / 0.08);
  color: oklch(1 0 0 / 0.7);
  border: 1px solid oklch(1 0 0 / 0.1);
}
.flip-card__back-btn--share:hover {
  background: oklch(1 0 0 / 0.14);
  color: var(--text-light);
  transform: translateY(-1px);
}
.flip-card__back-btn--share svg { width: 16px; height: 16px; flex-shrink: 0; }
.flip-card__back-btn--tech {
  background: transparent;
  color: oklch(1 0 0 / 0.5);
  font-weight: 500;
  font-size: 12px;
  padding: 6px 16px;
}
.flip-card__back-btn--tech:hover { color: var(--text-light); }
.flip-card__back-btn--tech svg { width: 14px; height: 14px; }

/* Touch: toggle flip on tap */
@media (hover: none) {
  .flip-card:hover .flip-card__inner { transform: none; }
  .flip-card.is-flipped .flip-card__inner { transform: rotateY(180deg); }
}

/* --- EMPTY STATE --- */
.cat-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.cat-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  opacity: 0.4;
}
.cat-empty p {
  font-size: 16px;
  margin-bottom: 24px;
}

/* --- MODAL --- */
.cat-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.cat-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.cat-modal__backdrop {
  position: absolute;
  inset: 0;
  background: oklch(0 0 0 / 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cat-modal__panel {
  position: relative;
  width: min(900px, 92vw);
  max-height: 88vh;
  background: var(--light-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px oklch(0 0 0 / 0.25);
  transform: translateY(20px) scale(0.97);
  transition: transform .4s var(--ease);
}
.cat-modal.is-open .cat-modal__panel {
  transform: translateY(0) scale(1);
}
.cat-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: oklch(0 0 0 / 0.06);
  color: var(--text-muted);
  z-index: 2;
  transition: background .3s, color .3s;
}
.cat-modal__close:hover { background: oklch(0 0 0 / 0.12); color: var(--text-dark); }
.cat-modal__close svg { width: 20px; height: 20px; }
.cat-modal__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow-y: auto;
}
.cat-modal__image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: white;
  min-height: 300px;
}
.cat-modal__image {
  max-width: 280px;
  max-height: 320px;
  object-fit: contain;
}
.cat-modal__info {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.cat-modal__category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--azul-liqui);
}
.cat-modal__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.cat-modal__volume {
  font-size: 14px;
  color: var(--text-muted);
}
.cat-modal__desc {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.7;
  margin-top: 8px;
  white-space: pre-line;
}
.cat-modal__app {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid oklch(0 0 0 / 0.06);
  white-space: pre-line;
}
.cat-modal__app:empty { display: none; }
.cat-modal__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid oklch(0 0 0 / 0.06);
}

@media (max-width: 768px) {
  .cat-modal__body { grid-template-columns: 1fr; }
  .cat-modal__image-wrap { min-height: 200px; padding: 32px 24px; }
  .cat-modal__image { max-height: 200px; }
  .cat-modal__info { padding: 28px 24px; }
  .cat-modal__actions { flex-direction: column; }
}

/* --- CTA FINAL --- */
.cat-cta {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: clamp(64px, 8vw, 100px) 0;
  text-align: center;
}
.cat-cta__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.cat-cta__text {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-light-muted);
  max-width: 44ch;
  margin: 0 auto 32px;
  line-height: 1.65;
}

/* --- FOOTER --- */
.footer {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 32px 0;
  border-top: 1px solid oklch(1 0 0 / 0.06);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer__back-link {
  font-size: 13px;
  color: oklch(1 0 0 / 0.4);
  transition: color .3s;
}
.footer__back-link:hover { color: var(--text-light); }
.footer__copy {
  font-size: 12px;
  color: oklch(1 0 0 / 0.5);
  text-align: right;
}

@media (max-width: 768px) {
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__copy { text-align: center; }
}

/* --- QUOTE CART FAB --- */
.quote-cart-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--azul-liqui);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px oklch(0.42 0.14 250 / 0.35), 0 2px 8px oklch(0 0 0 / 0.15);
  transition: transform .3s var(--ease), box-shadow .3s;
  cursor: pointer;
}
.quote-cart-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 40px oklch(0.42 0.14 250 / 0.45), 0 4px 12px oklch(0 0 0 / 0.2);
}
.quote-cart-fab svg { width: 26px; height: 26px; }
.quote-cart-fab__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 100px;
  background: var(--vermelho-liqui);
  color: var(--text-light);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.quote-cart-fab.pulse {
  animation: fabPulse .4s var(--ease-spring);
}
@keyframes fabPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .quote-cart-fab { bottom: 20px; right: 20px; width: 56px; height: 56px; }
  .quote-cart-fab svg { width: 24px; height: 24px; }
}

/* --- QUOTE DRAWER --- */
.quote-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.quote-drawer.is-open { opacity: 1; visibility: visible; }
.quote-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: oklch(0 0 0 / 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.quote-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, 92vw);
  height: 100%;
  background: var(--light-surface);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px oklch(0 0 0 / 0.15);
  transform: translateX(100%);
  transition: transform .4s var(--ease);
}
.quote-drawer.is-open .quote-drawer__panel { transform: translateX(0); }
.quote-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid oklch(0 0 0 / 0.06);
  flex-shrink: 0;
}
.quote-drawer__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.quote-drawer__title svg { color: var(--azul-liqui); }
.quote-drawer__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: background .3s, color .3s;
}
.quote-drawer__close:hover { background: oklch(0 0 0 / 0.06); color: var(--text-dark); }
.quote-drawer__close svg { width: 20px; height: 20px; }

.quote-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.quote-drawer__empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.quote-drawer__empty svg { opacity: 0.3; margin-bottom: 16px; }
.quote-drawer__empty p { font-size: 15px; margin-bottom: 8px; }
.quote-drawer__empty span { font-size: 13px; }

.quote-drawer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quote-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: oklch(0 0 0 / 0.02);
  border-radius: var(--radius);
  transition: background .2s;
}
.quote-item:hover { background: oklch(0 0 0 / 0.04); }
.quote-item__info { flex: 1; min-width: 0; }
.quote-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quote-item__volume {
  font-size: 12px;
  color: var(--text-muted);
}
.quote-item__controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.quote-item__btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  background: oklch(0 0 0 / 0.05);
  transition: background .2s;
}
.quote-item__btn:hover { background: oklch(0 0 0 / 0.1); }
.quote-item__qty {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  min-width: 28px;
  text-align: center;
}
.quote-item__remove {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-muted);
  margin-left: 4px;
  transition: background .2s, color .2s;
}
.quote-item__remove:hover { background: oklch(0.57 0.23 27 / 0.1); color: var(--vermelho-liqui); }

.quote-drawer__footer {
  padding: 16px 24px 24px;
  border-top: 1px solid oklch(0 0 0 / 0.06);
  flex-shrink: 0;
}
.quote-drawer__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.quote-drawer__clear {
  font-size: 13px;
  color: var(--vermelho-liqui);
  font-weight: 500;
  transition: opacity .2s;
}
.quote-drawer__clear:hover { opacity: 0.7; }
.quote-drawer__send {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
}

/* --- QUOTE BTN ON CARD --- */
.flip-card__back-btn--quote {
  background: var(--azul-liqui);
  color: var(--text-light);
}
.flip-card__back-btn--quote:hover {
  background: oklch(0.38 0.14 250);
  transform: translateY(-1px);
}
.flip-card__back-btn--quote svg { flex-shrink: 0; }

/* --- QUOTE BTN ON MODAL --- */
.btn--quote-add {
  background: var(--azul-liqui);
  color: var(--text-light);
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius);
}
.btn--quote-add:hover {
  background: oklch(0.38 0.14 250);
  box-shadow: 0 8px 28px oklch(0.42 0.14 250 / 0.2);
  transform: translateY(-1px);
}

/* --- TOAST --- */
.quote-toast {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--dark-bg);
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px oklch(0 0 0 / 0.25);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.quote-toast.show { opacity: 1; transform: translateY(0); }
.quote-toast svg { color: oklch(0.72 0.17 155); flex-shrink: 0; }

@media (max-width: 768px) {
  .quote-toast { bottom: 88px; right: 16px; left: 16px; justify-content: center; }
}

/* --- HEADER ICON BUTTONS (cart badge, theme toggle) --- */
.header__icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: oklch(1 0 0 / 0.65);
  transition: color .3s var(--ease), background .3s;
}
.header__icon-btn:hover { color: var(--text-light); background: oklch(1 0 0 / 0.08); }
.header__badge {
  position: absolute;
  top: 0; right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 100px;
  background: var(--vermelho-liqui);
  color: var(--text-light);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* --- SKELETON LOADING --- */
.skeleton-card {
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--light-surface);
  border: 1px solid oklch(0 0 0 / 0.06);
}
.skeleton-card__img {
  height: 220px;
  background: oklch(0 0 0 / 0.04);
  animation: shimmer 1.5s ease-in-out infinite;
}
.skeleton-card__info { padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.skeleton-card__tag {
  width: 60px; height: 12px; border-radius: 6px;
  background: oklch(0 0 0 / 0.06);
  animation: shimmer 1.5s ease-in-out infinite;
  animation-delay: 0.1s;
}
.skeleton-card__title {
  width: 85%; height: 16px; border-radius: 6px;
  background: oklch(0 0 0 / 0.08);
  animation: shimmer 1.5s ease-in-out infinite;
  animation-delay: 0.2s;
}
.skeleton-card__vol {
  width: 40px; height: 12px; border-radius: 6px;
  background: oklch(0 0 0 / 0.05);
  animation: shimmer 1.5s ease-in-out infinite;
  animation-delay: 0.3s;
}
@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- SHARE BUTTON ON CARD --- */
.flip-card__share-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: oklch(0 0 0 / 0.06);
  color: var(--text-muted);
  z-index: 2;
  opacity: 0.6;
  transform: scale(1);
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s, color .2s;
  cursor: pointer;
}
.flip-card__share-btn svg { width: 16px; height: 16px; }
.flip-card__share-btn:hover { opacity: 1; background: var(--azul-liqui); color: var(--text-light); }
.flip-card.is-flipped .flip-card__share-btn { opacity: 0; pointer-events: none; }

/* --- SHARE TOAST --- */
.share-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 400;
  padding: 10px 20px;
  background: var(--dark-bg);
  color: var(--text-light);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px oklch(0 0 0 / 0.25);
  opacity: 0;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
  white-space: nowrap;
}
.share-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.flip-card {
  animation: fadeInUp .5s var(--ease) both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .flip-card__inner { transition: none; }
  html { scroll-behavior: auto; }
}
