/* Custom Styles for D'favo Static Version */
:root {
  --color-primary: #1A1A1A;
  --color-on-primary: #F9F8F6;
  --color-surface: #F9F8F6;
  --color-surface-container: #EBE9E4;
  --color-on-surface: #1A1A1A;
  --font-headline: "Playfair Display", serif;
  --font-sans: "Inter", sans-serif;
}

body {
  background-color: var(--color-surface);
  color: var(--color-on-surface);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.font-headline { font-family: var(--font-headline); }
.font-sans { font-family: var(--font-sans); }

.editorial-label {
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
}

.glass-nav {
  background-color: rgba(249, 248, 246, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-primary);
}

.glass-panel {
  background-color: var(--color-surface-container);
  backdrop-filter: blur(30px);
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(26, 26, 26, 0.2); }

/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Utilities */
.aspect-3-4 { aspect-ratio: 3/4; }
.aspect-4-3 { aspect-ratio: 4/3; }
.aspect-16-10 { aspect-ratio: 16/10; }

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

[data-view] { display: none; }
[data-view].active { display: block; }

/* Product Grid */
.product-card img {
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}
.product-card:hover img {
  transform: scale(1.04);
}

/* Admin Sidebar */
.admin-nav-item.active {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

/* ===============================
   D'FAVO — AJUSTES DE QUALIDADE
   Destaques + WhatsApp premium
================================ */

/* melhora nitidez das imagens nos cards */
.product-card,
.feature-card,
.destaque-card {
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(26, 26, 26, 0.14);
}

.product-card img,
.feature-card img,
.destaque-card img,
[data-featured-card] img,
[data-highlight-card] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none !important;
  image-rendering: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

/* mantém o zoom interno sem borrar demais */
.product-card:hover img,
.feature-card:hover img,
.destaque-card:hover img,
[data-featured-card]:hover img,
[data-highlight-card]:hover img {
  transform: scale(1.035) translateZ(0);
}

/* sombra premium externa sem borda preta pesada */
.product-card,
.feature-card,
.destaque-card,
[data-featured-card],
[data-highlight-card] {
  border: 1px solid rgba(26, 26, 26, 0.06);
  border-radius: 18px;
  background: #f9f8f6;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.product-card:hover,
.feature-card:hover,
.destaque-card:hover,
[data-featured-card]:hover,
[data-highlight-card]:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 75px rgba(26, 26, 26, 0.18);
  border-color: rgba(26, 26, 26, 0.12);
}

/* ===============================
   BOTÃO WHATSAPP FLUTUANTE PREMIUM
================================ */

.whatsapp-float,
.whatsapp-button,
.floating-whatsapp,
a[href*="wa.me"] {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(37, 211, 102, 0.34);
  transition:
    width 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
  z-index: 9999;
}

.whatsapp-float span,
.whatsapp-button span,
.floating-whatsapp span,
a[href*="wa.me"] span {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition:
    opacity 0.25s ease,
    max-width 0.35s ease;
}

.whatsapp-float:hover,
.whatsapp-button:hover,
.floating-whatsapp:hover,
a[href*="wa.me"]:hover {
  width: 220px;
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(37, 211, 102, 0.42);
}

.whatsapp-float:hover span,
.whatsapp-button:hover span,
.floating-whatsapp:hover span,
a[href*="wa.me"]:hover span {
  opacity: 1;
  max-width: 160px;
}

/* WHATSAPP — FECHADO EM BOLINHA E ABRE NO HOVER */
#floating-actions a[href*="wa.me"],
a[href*="wa.me"].whatsapp-float,
a[href*="wa.me"].whatsapp-button,
a[href*="wa.me"].floating-whatsapp {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
  transition: max-width .35s ease, width .35s ease, transform .35s ease, box-shadow .35s ease !important;
}

#floating-actions a[href*="wa.me"] span,
a[href*="wa.me"].whatsapp-float span,
a[href*="wa.me"].whatsapp-button span,
a[href*="wa.me"].floating-whatsapp span {
  opacity: 0 !important;
  max-width: 0 !important;
  overflow: hidden !important;
  transition: opacity .25s ease, max-width .35s ease !important;
}

#floating-actions a[href*="wa.me"]:hover,
a[href*="wa.me"].whatsapp-float:hover,
a[href*="wa.me"].whatsapp-button:hover,
a[href*="wa.me"].floating-whatsapp:hover {
  width: 220px !important;
  max-width: 220px !important;
  padding: 0 24px !important;
  justify-content: center !important;
  transform: translateY(-4px) !important;
}

#floating-actions a[href*="wa.me"]:hover span,
a[href*="wa.me"].whatsapp-float:hover span,
a[href*="wa.me"].whatsapp-button:hover span,
a[href*="wa.me"].floating-whatsapp:hover span {
  opacity: 1 !important;
  max-width: 160px !important;
}

.product-card img {
  image-rendering: auto;
  filter: none !important;
  transform: translateZ(0);
}

/* HERO FINAL — TAMANHO IGUAL AO MODELO ORIGINAL */

.hero-frame {
  width: 514px !important; /* exatamente o que você mediu na imagem 1 */
  min-width: 514px !important;
  max-width: 514px !important;

  height: 636px !important; /* altura real do modelo */

  position: relative;
  overflow: hidden;

  border-radius: 18px;
  background: #f9f8f6;

  border: 1px solid rgba(26,26,26,0.06);

  box-shadow:
    0 40px 90px rgba(26,26,26,0.18),
    0 14px 35px rgba(26,26,26,0.10);
}

.hero-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition:
    transform 10s ease,
    opacity 1.2s ease;
}

.hero-main-image.hero-zooming {
  transform: scale(1.06);
}

.hero-main-image.hero-soft-change {
  opacity: 0.7;
  transform: scale(1.02);
}

.hero-frame {
  width: 627px !important;
  min-width: 627px !important;
  max-width: 627px !important;
  height: 720px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

.hero-main-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 18px !important;
}

.product-card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
}

.product-card-title {
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.2;
}

.product-card-price {
  font-size: 15px;
  font-weight: 600;
  color: #000;
  letter-spacing: 0.3px;
}

.product-card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 4px 0;
}

.product-card-title {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.1;
  color: #1a1a1a;
}

.product-card-price {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
}

/* =========================
   INTERAÇÃO BOTÕES (UX PREMIUM)
========================= */

button {
    transition: all 0.2s ease;
}

button:hover {
    opacity: 0.9;
}

button:active {
    transform: scale(0.97);
}

button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.catalog-card-footer {
  margin-top: 0;
  padding: 18px 20px 20px;
  background: rgba(249, 248, 246, 0.96);
  border: 1px solid rgba(26,26,26,0.06);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.catalog-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.catalog-card-price {
  font-size: 15px;
  font-weight: 800;
  color: #1a1a1a;
  white-space: nowrap;
}

.add-cart-btn {
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.add-cart-btn:hover {
  opacity: 0.92;
}

.add-cart-btn:active {
  transform: scale(0.97);
}

.catalog-card-footer {
  padding: 18px 22px 22px !important;
  min-height: 74px;
  align-items: flex-start !important;
}

.catalog-card-title {
  margin-top: 2px;
  padding-left: 2px;
}

.catalog-card-price {
  padding-right: 2px;
}

.catalog-card-footer {
  padding: 16px 22px 20px !important;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
}

.catalog-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
}

.catalog-card-price {
  font-size: 14px;
  font-weight: 800;
  color: #1a1a1a;
}

.catalog-card-footer {
  padding: 18px 24px 24px !important;
  min-height: 88px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

.catalog-card-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  color: #1a1a1a !important;
}

.catalog-card-price {
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  margin: 0 !important;
  color: #1a1a1a !important;
}

.highlight-card-title {
  font-size: 18px;
  font-weight: 500;
  color: #fff;

  /* PADRÃO VISUAL */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* máximo 2 linhas */
  -webkit-box-orient: vertical;
  overflow: hidden;

  /* força mesma altura */
  min-height: 48px;
  max-width: 85%;

  line-height: 1.3;
}

.highlight-card-title {
  font-family: "Playfair Display", serif !important;
  font-style: italic !important;
  font-size: 24px !important;
  line-height: 1.08 !important;
  color: #fff !important;
  width: 100% !important;
  max-width: 210px !important;
  min-height: 56px !important;

  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.product-card .absolute {
  min-height: 105px !important;
  justify-content: flex-end !important;
}

.highlight-card-title {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 500;

  color: #ffffff !important;

  font-size: 26px;
  line-height: 1.1;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow: hidden;

  min-height: 58px;
  max-width: 85%;
}

.highlight-overlay {
  position: absolute;
  inset: 0;
  border-radius: 18px;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.0) 100%
  );

  pointer-events: none;
}

.highlight-card-title {
  font-family: "Playfair Display", serif !important;
  font-style: italic !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  font-size: 26px !important;
  line-height: 1.08 !important;
  width: 100% !important;
  max-width: 220px !important;
  min-height: 58px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45) !important;
}

.product-card .absolute {
  justify-content: flex-end !important;
}

.product-info {
    padding: 14px 18px 16px 18px; /* aumenta respiro lateral */
}

.product-info h3 {
    margin-left: 2px; /* leve afastamento do canto */
    margin-bottom: 4px;
}

.product-info p {
    margin-left: 2px;
    font-weight: 500; /* leve destaque no valor */
}

.product-thumb {
    position: relative;
    overflow: hidden;
}

.product-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 18px;
    transition: all 0.35s ease;
}

.product-thumb:hover::after {
    border-color: rgba(0,0,0,0.25);
}

.product-thumb.active::after {
    border-color: #111;
}

.product-thumb img {
    transition: transform 0.7s ease;
}

.product-thumb:hover img {
    transform: scale(1.08);
}

#main-product-image {
    transition:
        opacity 0.55s ease,
        transform 0.95s ease;
}

/* ===============================
   D'FAVO — BLOG PREMIUM
================================ */

.blog-page {
  background: var(--color-surface);
}

.blog-hero {
  border-bottom: 1px solid rgba(26,26,26,0.08);
  padding-bottom: 56px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px 64px;
}

.blog-card {
  cursor: pointer;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(26,26,26,0.06);
  padding: 18px;
  transition:
    transform 0.55s ease,
    box-shadow 0.55s ease,
    border-color 0.55s ease,
    background 0.55s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.88);
  border-color: rgba(26,26,26,0.12);
  box-shadow: 0 34px 90px rgba(26,26,26,0.12);
}

.blog-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface-container);
  border: 1px solid rgba(26,26,26,0.05);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 1.1s cubic-bezier(0.19, 1, 0.22, 1),
    filter 0.55s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.045);
  filter: contrast(1.02);
}

.blog-card-content {
  padding: 26px 6px 8px;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(26,26,26,0.38);
}

.blog-card h2 {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 32px;
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.blog-card p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(26,26,26,0.58);
  max-width: 92%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-link {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 6px;
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.72;
}

.blog-read-link span {
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-read-link {
  opacity: 1;
}

.blog-card:hover .blog-read-link span {
  transform: translateX(6px);
}

.blog-detail-header {
  max-width: 860px;
  margin-bottom: 56px;
}

.blog-detail-header h1 {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  color: var(--color-primary);
}

.blog-detail-summary {
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(26,26,26,0.58);
  max-width: 720px;
}

.blog-detail-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface-container);
  border: 1px solid rgba(26,26,26,0.06);
  margin-bottom: 64px;
}

.blog-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-detail-content {
  max-width: 760px;
  margin: 0 auto;
}

.blog-detail-content p {
  font-size: 17px;
  line-height: 2;
  color: rgba(26,26,26,0.72);
  margin-bottom: 28px;
}

.blog-back {
  border-bottom: 1px solid rgba(26,26,26,0.4);
  padding-bottom: 6px;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .blog-card {
    padding: 12px;
  }

  .blog-card h2 {
    font-size: 28px;
  }

  .blog-card-meta {
    flex-direction: column;
    gap: 8px;
  }

  .blog-detail-image {
    aspect-ratio: 4 / 3;
  }
}