/* ==========================================================================
   Tema WordPress da Lem Casa (Fase 2) — design system portado da Fase 1.
   Paleta baseada na logo (azul + verde). Mobile-first.
   Breakpoints: >=600px (tablet), >=1024px (desktop)
   ========================================================================== */

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Feed do Instagram via plugin (Smash Balloon) — só espaçamento, o layout
   interno da grade/carrossel é o nativo do plugin. */
.instagram-feed-wp { padding: 8px 0 40px; }

:root {
  --color-bg: #F5F9FA;
  --color-surface: #FFFFFF;
  --color-text: #142033;
  --color-text-light: #5C6B7A;
  --color-border: #E1E9EC;

  --color-blue: #0EA0D8;
  --color-blue-dark: #0B7FAE;
  --color-blue-light: #6ED1F0;
  --color-green: #6EC13F;
  --color-green-dark: #4B9A28;
  --color-green-light: #A9E077;
  --color-navy: #123B6D;
  --color-navy-deep: #0C2A50;

  --color-primary: var(--color-blue);
  --color-primary-dark: var(--color-blue-dark);
  --color-accent: var(--color-green);
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1DA851;
  --color-sale: #D0563C;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 3px rgba(18, 32, 51, 0.08);
  --shadow-md: 0 10px 28px rgba(12, 42, 80, 0.14);

  --header-height: 60px;
  --container-width: 1200px;

  --font-heading: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin: 0 0 0.5em;
  line-height: 1.25;
  font-weight: 600;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
}

.section { padding-top: 32px; padding-bottom: 32px; }

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section__header h2 { font-size: 1.4rem; }
.section__header a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--color-primary-dark);
  font-weight: 600;
  white-space: nowrap;
}

/* --------------------------------- Icons --------------------------------- */

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon svg { width: 20px; height: 20px; display: block; }
.icon--sm svg { width: 16px; height: 16px; }
.icon--lg svg { width: 26px; height: 26px; }
.icon--xl svg { width: 44px; height: 44px; }

/* ------------------------------- Buttons ------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1), background-color 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--color-primary); color: #fff; box-shadow: 0 4px 14px rgba(14, 160, 216, 0.28); }
.btn--primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(14, 160, 216, 0.35); }

.btn--outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn--outline:hover { border-color: var(--color-primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn--outline-light {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.26); transform: translateY(-2px); }

.btn--whatsapp { background: var(--color-whatsapp); color: #fff; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.32); }
.btn--whatsapp:hover { background: var(--color-whatsapp-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4); }

.btn--block { width: 100%; }

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--color-text-light);
  font-weight: 500;
  font-size: 0.85rem;
  box-shadow: none;
}
.btn--ghost:hover { color: var(--color-sale); background: transparent; box-shadow: none; transform: none; }

/* -------------------------------- Header -------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo-img { height: 34px; width: auto; }

.site-header__actions { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--color-navy);
  transition: background-color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.icon-btn:hover { background: var(--color-bg); transform: scale(1.08); }
.icon-btn:active { transform: scale(0.94); }

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--color-sale);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  display: none;
  padding: 0 4px;
}

.menu-toggle {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

.nav-desktop { display: none; }

/* Mobile drawer */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 42, 80, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
}
.menu-overlay.is-open { opacity: 1; pointer-events: auto; }

.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 78%;
  max-width: 320px;
  background: var(--color-surface);
  z-index: 61;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  padding: 20px;
  overflow-y: auto;
}
.menu-drawer.is-open { transform: translateX(0); }

.menu-drawer__title { margin-bottom: 16px; }
.menu-drawer__title .logo-img { height: 30px; }

.menu-drawer a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--color-border);
  font-weight: 500;
}

/* -------------------------------- Footer -------------------------------- */

.site-footer {
  background: var(--color-navy-deep);
  color: #D7E3EE;
  margin-top: 48px;
  padding: 40px 0 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand img { height: 34px; width: auto; }
.footer-brand span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
}

.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }

.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.footer-grid p, .footer-grid a { color: #A9BBCB; font-size: 0.9rem; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #4CE08A !important;
  font-weight: 600;
}

.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #E1739E !important;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 32px;
  padding-top: 18px;
  font-size: 0.8rem;
  color: #7C90A3;
  text-align: center;
}

/* ------------------------------ Hero avançado ------------------------------ */

.hero-advanced {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 16px;
  min-height: 78vh;
  background: #12314F;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  opacity: 0.3;
  animation: heroKenBurns 22s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-thread {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.75;
  mix-blend-mode: screen;
  transition: transform 0.1s linear;
}
.hero-thread svg { width: 100%; height: 100%; display: block; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 18%, rgba(255,255,255,0) 82%, rgba(255,255,255,0.7) 100%);
}

.thread-drift { transform-origin: 50% 50%; }
.thread-drift--a { animation: threadDriftA 14s ease-in-out infinite; }
.thread-drift--b { animation: threadDriftB 17s ease-in-out infinite; }

@keyframes threadDriftA {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-3%) translateY(-2%); }
}
@keyframes threadDriftB {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(3%) translateY(2%); }
}

.thread { transform-origin: 50% 50%; }
.thread--blue { animation: threadSway 6.5s ease-in-out infinite; }
.thread--green { animation: threadSway 7.8s ease-in-out infinite reverse; }

@keyframes threadSway {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-16px) rotate(1deg) scale(1.015); }
}

.thread__shine {
  animation: threadShine 2.6s linear infinite;
}
.thread--green .thread__shine { animation-duration: 3.2s; }

@keyframes threadShine {
  to { stroke-dashoffset: -700; }
}

.hero-particle {
  position: absolute;
  z-index: 3;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0) 70%), var(--color-blue-light);
  opacity: 0.55;
  filter: blur(0.3px);
  animation: particleFloat 9s ease-in-out infinite;
}
.hero-particle--1 { width: 10px; height: 10px; left: 12%; top: 65%; animation-duration: 8s; animation-delay: 0s; }
.hero-particle--2 { width: 7px; height: 7px; left: 24%; top: 30%; background-color: var(--color-green-light); animation-duration: 10s; animation-delay: 1.2s; }
.hero-particle--3 { width: 13px; height: 13px; left: 40%; top: 72%; animation-duration: 11s; animation-delay: 2.4s; }
.hero-particle--4 { width: 8px; height: 8px; left: 58%; top: 22%; background-color: var(--color-green-light); animation-duration: 9.5s; animation-delay: 0.6s; }
.hero-particle--5 { width: 11px; height: 11px; left: 74%; top: 60%; animation-duration: 12.5s; animation-delay: 3s; }
.hero-particle--6 { width: 6px; height: 6px; left: 88%; top: 34%; background-color: var(--color-green-light); animation-duration: 8.5s; animation-delay: 1.8s; }

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.15; }
  50% { transform: translateY(-26px) scale(1.15); opacity: 0.65; }
}

@media (prefers-reduced-motion: reduce) {
  .thread, .thread__shine, .thread-drift, .hero-particle { animation: none !important; }
  .hero-thread { transform: none !important; }
}

.hero-advanced__inner {
  position: relative;
  z-index: 4;
  padding-top: 56px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow .icon { color: var(--color-green-dark); }

.hero-advanced__inner h1 {
  font-size: 1.8rem;
  max-width: 560px;
  color: var(--color-navy-deep);
  text-shadow:
    0 0 10px rgba(255,255,255,0.95),
    0 0 22px rgba(255,255,255,0.9),
    0 0 40px rgba(255,255,255,0.75),
    0 0 60px rgba(255,255,255,0.5);
}

.hero-advanced__inner p {
  color: var(--color-navy-deep);
  max-width: 460px;
  font-size: 1rem;
  margin-left: auto;
  margin-right: auto;
  text-shadow:
    0 0 8px rgba(255,255,255,0.95),
    0 0 18px rgba(255,255,255,0.9),
    0 0 32px rgba(255,255,255,0.7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 22px;
}
.hero-actions .btn--outline-light {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--color-border);
  color: var(--color-navy);
  backdrop-filter: none;
}
.hero-actions .btn--outline-light:hover { background: #fff; }
.hero-actions .btn--outline-light .icon { color: var(--color-whatsapp-dark); }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 22px;
}
.hero-badges li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
  text-shadow:
    0 0 8px rgba(255,255,255,0.95),
    0 0 18px rgba(255,255,255,0.9),
    0 0 32px rgba(255,255,255,0.7);
}
.hero-badges .icon { color: var(--color-blue-dark); }

/* ------------------------- Hero de busca (home, topo) ------------------------- */

.hero-advanced--search .hero-bg img { opacity: 0.85; }

.hero-overlay--dark {
  background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.93) 15%, rgba(255,255,255,0.55) 28%, rgba(255,255,255,0.12) 38%, rgba(255,255,255,0) 46%);
}

.hero-advanced__inner--search { max-width: 640px; margin: 0 auto; }

.hero-advanced__inner--search h1 {
  color: var(--color-navy-deep);
  max-width: 100%;
}
.hero-advanced__inner--search h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--color-primary-dark);
}

.hero-advanced__inner--search p {
  color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 14px rgba(0,0,0,0.4);
}

.hero-advanced__inner--search .btn--outline-light {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  backdrop-filter: blur(6px);
}
.hero-advanced__inner--search .btn--outline-light:hover { background: rgba(255,255,255,0.24); }

.hero-search {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 440px;
  margin: 22px auto 18px;
  padding: 6px 6px 6px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(14px);
}
.hero-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 0;
}
.hero-search input::placeholder { color: rgba(255,255,255,0.7); }
.hero-search button {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-navy-deep);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
}
.hero-search button:hover { transform: scale(1.08); background: var(--color-bg); }

/* --------------------------- História (bloco compacto) --------------------------- */

.brand-story {
  display: grid;
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 40px;
  align-items: center;
}
.brand-story__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.brand-story__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.brand-story__content h2 { font-size: 1.35rem; color: var(--color-navy-deep); margin-top: 4px; }
.brand-story__content p { color: var(--color-text-light); margin-bottom: 16px; }

@media (min-width: 720px) {
  .brand-story { grid-template-columns: 0.9fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
}

/* ----------------------------- Category grid ----------------------------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 130px;
  gap: 12px;
}
.category-grid li:first-child { grid-column: 1 / -1; }

.category-card {
  display: flex;
  align-items: flex-end;
  height: 100%;
  width: 100%;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 0.8, 0.24, 1), box-shadow 0.35s ease;
}
.category-card:hover { transform: translateY(-5px) scale(1.015); box-shadow: var(--shadow-md); }
.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 0.5s ease;
  z-index: 0;
}
.category-card:hover::before { transform: scale(1.08); }
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.4) 100%);
  transition: background 0.35s ease;
  z-index: 0;
}
.category-card:hover::after { background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,0.5) 100%); }
.category-card span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.35s ease;
}
.category-card:hover span { transform: translateY(-2px); }

.category-grid li:first-child .category-card span { font-size: 1.25rem; }
.category-grid li:first-child .category-card { padding: 20px; }

/* -------------------------------- Chips -------------------------------- */

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

.chip {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.chip:hover { border-color: var(--color-primary); transform: translateY(-1px); }
.chip.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.chip.is-active:hover { transform: none; }

/* ----------------------------- Product grid/card ----------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 0.8, 0.24, 1), box-shadow 0.35s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card__img img { transition: transform 0.5s cubic-bezier(0.16, 0.8, 0.24, 1); }
.product-card:hover .product-card__img img { transform: scale(1.08); }

.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-sale);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 1;
}

.product-card__link { display: block; padding-bottom: 4px; flex: 1; }

.product-card__img { aspect-ratio: 1 / 1; overflow: hidden; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }

.product-card__cat {
  display: block;
  font-size: 0.7rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 10px 12px 2px;
}

.product-card__name {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 12px 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price {
  margin: 0 12px 8px;
  font-weight: 700;
  color: var(--color-primary-dark);
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 0.95rem;
}
.price-on-request {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  font-style: normal;
  color: var(--color-text-light);
  background: var(--color-bg);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.product-card__old-price {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--color-text-light);
  text-decoration: line-through;
}

.card-colors {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 12px 10px;
}
.card-colors__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.6);
}
.card-colors__more {
  font-size: 0.7rem;
  color: var(--color-text-light);
  font-weight: 600;
}

.product-card__add {
  margin: 0 12px 12px;
  border: 1.5px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary-dark);
  border-radius: var(--radius-sm);
  padding: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.product-card__add:hover { background: var(--color-primary); color: #fff; transform: translateY(-1px); }
.product-card__add:active { transform: scale(0.96); }

.empty-msg { color: var(--color-text-light); padding: 24px 0; }

/* ---------------------------- Carrossel de destaques ---------------------------- */

.feature-slider { padding: 28px 0 12px; }

.feature-slider__viewport {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 6px;
}
.feature-slider__viewport::-webkit-scrollbar { display: none; }

.feature-slider__track {
  display: flex;
  gap: 14px;
  width: max-content;
}
.feature-slider__track .product-card {
  width: 170px;
  scroll-snap-align: start;
}

.feature-slider__viewall {
  flex: 0 0 auto;
  width: 170px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-slider__viewall a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 24px 12px;
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  transition: color 0.2s ease;
}
.feature-slider__viewall .icon { color: var(--color-primary); transition: transform 0.2s ease; }
.feature-slider__viewall a:hover .icon { transform: translateX(4px); }

@media (min-width: 600px) {
  .feature-slider__track .product-card,
  .feature-slider__viewall { width: 210px; }
}

/* ------------------------------ Product page ------------------------------ */

.product-page {
  display: grid;
  gap: 24px;
  padding: 20px 0 40px;
}

.product-gallery__main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.product-gallery__thumbs { display: flex; gap: 8px; margin-top: 8px; }
.product-gallery__thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: none;
}
.product-gallery__thumb.is-active { border-color: var(--color-primary); }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info__cat {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-info__name { font-size: 1.4rem; margin-top: 6px; }

.product-info__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.product-info__current-price { font-size: 1.5rem; font-weight: 700; color: var(--color-primary-dark); }
.product-info__old-price { text-decoration: line-through; color: var(--color-text-light); }

.product-info__short-desc { color: var(--color-text-light); }

.product-colors { margin-bottom: 16px; }
.product-colors__label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 4px;
}
.product-colors__selected {
  font-weight: 400;
  color: var(--color-text-light);
}
.product-colors__swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.color-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px rgba(20, 32, 51, 0.15), inset 0 0 0 2px rgba(255,255,255,0.55);
  padding: 0;
  position: relative;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}
.color-swatch:hover { transform: scale(1.16) rotate(-4deg); box-shadow: 0 4px 10px rgba(20, 32, 51, 0.25), inset 0 0 0 2px rgba(255,255,255,0.55); }
.color-swatch.is-active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-primary);
  transform: scale(1.05);
}

.product-colors__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--color-text-light);
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 12px;
}
.product-colors__note .icon { color: var(--color-whatsapp-dark); margin-top: 1px; }

.product-info__qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
  font-weight: 600;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-stepper__btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--color-bg);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.qty-stepper__btn:hover { background: var(--color-primary); color: #fff; }
.qty-stepper__input {
  width: 42px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  text-align: center;
  font-weight: 600;
  font-family: inherit;
  -moz-appearance: textfield;
}
.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-accordion { border-bottom: 1px solid var(--color-border); padding: 14px 0; }
.product-accordion summary { font-weight: 600; cursor: pointer; }
.product-accordion p { margin-top: 10px; color: var(--color-text-light); }

#add-to-cart-btn { margin: 18px 0 24px; }

.related-section { margin-top: 8px; }

/* -------------------------------- Cart page -------------------------------- */

.cart-page { padding-top: 20px; padding-bottom: 100px; }

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item__img { width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-surface); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-item__name {
  font-weight: 600;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cart-item__color, .summary-item__color {
  font-size: 0.76rem;
  color: var(--color-text-light);
}
.cart-item__unit-price { font-size: 0.8rem; color: var(--color-text-light); margin-bottom: 2px; }

.cart-item__aside { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-item__subtotal { font-weight: 700; color: var(--color-primary-dark); }
.cart-item__remove { background: none; border: none; color: var(--color-text-light); transition: color 0.2s ease, transform 0.2s ease; }
.cart-item__remove:hover { color: var(--color-sale); transform: scale(1.1); }

.cart-empty { text-align: center; padding: 60px 20px; color: var(--color-text-light); }
.cart-empty__icon { color: var(--color-border); margin-bottom: 12px; display: flex; justify-content: center; }

.cart-summary {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
}
.cart-summary__row { display: flex; justify-content: space-between; font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.cart-summary__note { font-size: 0.8rem; color: var(--color-text-light); margin-bottom: 16px; }

/* ------------------------------ Resumo pedido ------------------------------ */

.summary-page { padding-top: 20px; padding-bottom: 60px; }

.summary-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}
.summary-item img { width: 52px; height: 52px; border-radius: var(--radius-sm); object-fit: cover; }
.summary-item__info { display: flex; flex-direction: column; min-width: 0; }
.summary-item__name {
  font-size: 0.88rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.summary-item__meta { font-size: 0.78rem; color: var(--color-text-light); }
.summary-item__total { font-weight: 700; font-size: 0.9rem; white-space: nowrap; }

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 16px 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 20px;
}

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--color-surface);
}
.form-group textarea { resize: vertical; min-height: 70px; }

.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.radio-group input { accent-color: var(--color-primary); }

.summary-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }

/* ---------------------------------- Lena ---------------------------------- */

.lena-float {
  position: relative;
  overflow: hidden;
  margin: 0 0 40px;
  padding: 36px 0;
  background: radial-gradient(ellipse at 50% 40%, #0F2A4A 0%, #0A1E36 55%, #081729 100%);
}

.lena-float__stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
}

.lena-float .hero-thread {
  z-index: 0;
  opacity: 0.22;
}

.lena-float__cosmic { position: absolute; inset: 0; z-index: 0; }

.cosmic-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  animation: cosmicDrift 16s ease-in-out infinite;
}
.cosmic-glow--1 { width: 320px; height: 320px; left: -60px; top: 10%; background: var(--color-blue); animation-duration: 18s; }
.cosmic-glow--2 { width: 260px; height: 260px; right: -40px; top: 40%; background: var(--color-green); animation-duration: 21s; animation-delay: -6s; }
.cosmic-glow--3 { width: 300px; height: 300px; left: 30%; bottom: -80px; background: var(--color-blue-light); animation-duration: 24s; animation-delay: -3s; }

@keyframes cosmicDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -24px) scale(1.12); }
}

.cosmic-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 1px rgba(255,255,255,0.8);
  animation: cosmicTwinkle 3s ease-in-out infinite;
}
@keyframes cosmicTwinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.4); }
}

.lena-float__row {
  overflow: hidden;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.lena-float__track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: marqueeLeft 150s linear infinite;
}
.lena-float__track--reverse { animation-name: marqueeRight; animation-duration: 165s; }

@keyframes marqueeLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqueeRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.lena-float__photo {
  flex: 0 0 auto;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  animation: floatBob 6s ease-in-out infinite;
}
.lena-float__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lena-float__photo--sm { width: 90px; height: 120px; animation-duration: 5s; }
.lena-float__photo--md { width: 120px; height: 160px; animation-duration: 6.5s; }
.lena-float__photo--lg { width: 150px; height: 200px; animation-duration: 7.5s; }
.lena-float__photo:nth-child(odd) { animation-delay: -1.5s; }
.lena-float__photo:nth-child(3n) { animation-delay: -3s; }

.lena-float__photo--glass {
  opacity: 0.45;
  filter: blur(1.5px) saturate(0.9);
}

@keyframes floatBob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

.lena-float__center {
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.lena-float__center h2 { color: var(--color-navy-deep); font-size: 1.6rem; }
.lena-float__center p { color: var(--color-text-light); margin-bottom: 20px; }
.lena-float__center .hero-eyebrow { background: rgba(255,255,255,0.9); }

@media (min-width: 600px) {
  .lena-float__photo--sm { width: 110px; height: 145px; }
  .lena-float__photo--md { width: 150px; height: 195px; }
  .lena-float__photo--lg { width: 190px; height: 250px; }
}

@media (min-width: 1024px) {
  .lena-float { padding: 56px 0; }
  .lena-float__stack { gap: 36px; }
  .lena-float__center { padding: 44px 48px; }
  .lena-float__center h2 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lena-float__track, .lena-float__photo, .cosmic-glow, .cosmic-spark { animation: none !important; }
}

/* ------------------------------ Depoimentos ------------------------------ */

.testimonials { padding: 28px 0 40px; }

.testimonials__header { margin-bottom: 14px; }
.testimonials__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
}

.testimonials__row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.testimonials__track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 4px 0;
  animation: marqueeLeft 130s linear infinite;
}

.testimonial-card {
  flex: 0 0 auto;
  width: 250px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.testimonial-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.testimonial-card__avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.testimonial-card__who { min-width: 0; }

.testimonial-card__stars { display: flex; gap: 2px; margin-top: 2px; }
.testimonial-card__star { color: var(--color-border); }
.testimonial-card__star svg { width: 12px; height: 12px; }
.testimonial-card__star.is-filled { color: #F5B324; }

.testimonial-card__quote {
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-card__author {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .testimonials__track { animation: none !important; }
}

/* ------------------------------- Instagram ------------------------------- */

.instagram-feed { padding: 8px 0 40px; }

.instagram-feed__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.instagram-feed__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #E1739E;
  margin-bottom: 4px;
}
.instagram-feed__header h2 { margin: 0; font-size: 1.3rem; }

.instagram-feed__row { overflow: hidden; }

.instagram-feed__track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: marqueeLeft 60s linear infinite;
}

.instagram-post {
  position: relative;
  flex: 0 0 auto;
  width: 130px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg);
}
.instagram-post img { width: 100%; height: 100%; object-fit: contain; display: block; }
.instagram-post__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(12, 42, 80, 0);
  opacity: 0;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}
.instagram-post__overlay svg { width: 26px; height: 26px; }
.instagram-post:hover .instagram-post__overlay { opacity: 1; background: rgba(12, 42, 80, 0.45); }

@media (min-width: 600px) {
  .instagram-post { width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  .instagram-feed__track { animation: none !important; }
}

/* --------------------------------- Toast --------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--color-navy-deep);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Barra fixa "Ver Pedido", tipo apps de delivery */
.order-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--color-blue-dark), var(--color-green-dark));
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.order-bar.is-hidden { display: none; }
.order-bar:hover { transform: translateY(-2px); }
.order-bar--pulse { animation: orderBarPulse 0.4s ease; }

@keyframes orderBarPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.order-bar__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}
.order-bar__icon .icon { color: #fff; }

.order-bar__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-blue-dark);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-bar__label {
  flex: 1;
  font-weight: 700;
  font-size: 0.9rem;
}

.order-bar__total {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (min-width: 600px) {
  .order-bar { left: 50%; right: auto; width: 100%; max-width: 420px; transform: translateX(-50%); }
  .order-bar:hover { transform: translateX(-50%) translateY(-2px); }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-weight: 600;
  margin: 16px 0;
}

/* ----------------------------- Scroll reveal ----------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 0.8, 0.24, 1), transform 0.7s cubic-bezier(0.16, 0.8, 0.24, 1);
  will-change: transform, opacity;
}
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; opacity: 1; transform: none; }
}

/* ============================== Tablet (>=600px) ============================== */
@media (min-width: 600px) {
  .container { padding: 0 24px; }

  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }

  .hero-advanced__inner { padding: 56px 0; }
  .hero-copy h1 { font-size: 2.2rem; }

  .product-page { grid-template-columns: 1fr 1fr; align-items: start; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }

  .cart-item { grid-template-columns: 96px 1fr auto; }
  .cart-item__img { width: 96px; height: 96px; }
}

@media (min-width: 720px) {
  .hero-advanced__inner { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}

/* ============================== Desktop (>=1024px) ============================== */
@media (min-width: 1024px) {
  :root { --header-height: 76px; }

  .menu-toggle { display: none; }
  .nav-desktop { display: flex; gap: 28px; }
  .nav-desktop a { font-weight: 500; font-size: 0.95rem; }
  .nav-desktop a:hover { color: var(--color-primary-dark); }

  .logo-img { height: 44px; }

  .category-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; }
  .category-grid li:first-child { grid-column: span 2; grid-row: span 2; }
  .category-grid li:first-child .category-card span { font-size: 1.6rem; }
  .product-grid { grid-template-columns: repeat(4, 1fr); }

  .hero-advanced { margin: 24px; }
  .hero-advanced__inner { padding: 72px 0; gap: 40px; }
  .hero-copy h1 { font-size: 2.7rem; max-width: 620px; }
  .hero-copy p { max-width: 480px; font-size: 1.05rem; }

  .cart-page { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
  .cart-summary { position: sticky; top: calc(var(--header-height) + 20px); margin-top: 0; }

  .summary-page { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
}
