/* =========================================
   ÂMINA — Loja Online
   Paleta: #4A1124 (vinho), #FAF7F2 (creme), #C9A96E (ouro)
   ========================================= */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --wine:       #4A1124;
  --wine-dark:  #2e0a16;
  --wine-light: #6b1e36;
  --gold:       #C9A96E;
  --gold-light: #e8d5a3;
  --cream:      #FAF7F2;
  --cream-dark: #F0EBE1;
  --white:      #FFFFFF;
  --black:      #0D0D0D;
  --gray:       #666;
  --gray-light: #E5E5E5;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Montserrat', Arial, sans-serif;

  --radius: 4px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(74, 17, 36, 0.10);
  --shadow-lg: 0 12px 48px rgba(74, 17, 36, 0.18);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ===== UTILITY ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}
.eyebrow--light { color: var(--gold-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--wine);
}
.section-title em { font-style: italic; color: var(--wine-light); }
.section-title--light { color: var(--white); }
.section-title--light em { color: var(--gold-light); }

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
}
.section-header .section-link {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--wine);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}
.section-header .section-link:hover { gap: 0.7rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}
.btn--primary {
  background: var(--wine);
  color: var(--white);
  border: 2px solid var(--wine);
}
.btn--primary:hover {
  background: var(--wine-dark);
  border-color: var(--wine-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn--light {
  background: var(--white);
  color: var(--wine);
  border: 2px solid var(--white);
  font-weight: 700;
}
.btn--light:hover {
  background: var(--cream);
  transform: translateY(-2px);
}
.btn--full { width: 100%; justify-content: center; }

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
  color: var(--wine);
  transition: all var(--transition);
  position: relative;
}
.btn-icon:hover { background: var(--cream-dark); }

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  background: var(--wine);
  color: var(--white);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.announcement-bar a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  /* Acima do overlay e do carrinho fechado — hambúrguer e ícones */
  z-index: 1010;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 17, 36, 0.08);
  transition: all var(--transition);
}
.header.scrolled {
  top: 0;
  box-shadow: var(--shadow);
}
.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.header__logo {
  flex-shrink: 0;
  height: 36px;
}
.header__logo img,
.header__logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.header__nav a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine);
  position: relative;
  transition: color var(--transition);
}
.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--wine);
  transition: width var(--transition);
}
.header__nav a:hover::after { width: 100%; }

/* Link discreto para o painel (mesmo servidor Node) */
.header__internal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  margin-right: 0.15rem;
  border-radius: 100px;
  border: 1px solid rgba(74, 17, 36, 0.25);
  background: rgba(255, 255, 255, 0.6);
  color: var(--wine);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}
.header__internal-btn:hover {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--white);
}
.header__internal-btn i {
  font-size: 0.75rem;
  opacity: 0.9;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: var(--wine);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform 0.2s;
}
.cart-count.visible { transform: scale(1); }

.header__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 10px;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  z-index: 1020;
  flex-shrink: 0;
}
.header__menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--wine);
  transition: all var(--transition);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  height: 100dvh;
  width: min(320px, 85vw);
  background: var(--wine);
  /* Fechado: abaixo do header (1010) para o hambúrguer receber toque */
  z-index: 1000;
  padding: 6rem 2.5rem 3rem;
  padding-top: max(6rem, env(safe-area-inset-top));
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.mobile-menu.open {
  transform: translateX(0);
  /* Aberto: acima do overlay (1180) e do header */
  z-index: 1220;
}
.mobile-menu__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--white);
  font-size: 1.5rem;
  padding: 0.5rem;
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--white);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color var(--transition);
}
.mobile-link:hover { color: var(--gold-light); }

.mobile-link--internal {
  margin-top: 0.35rem;
  padding-top: 1rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: var(--gold) !important;
}
.mobile-link--internal:hover {
  color: var(--gold-light) !important;
}
.mobile-menu__footer {
  display: flex;
  gap: 1.5rem;
  margin-top: auto;
}
.mobile-menu__footer a {
  color: rgba(255,255,255,0.6);
  font-size: 1.3rem;
  transition: color var(--transition);
}
.mobile-menu__footer a:hover { color: var(--gold-light); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  /* Acima do header (1010) para escurecer tudo ao abrir menu/carrinho */
  z-index: 1180;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--transition), visibility 0s linear 0.35s;
}
.overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 108px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(201,169,110,0.12) 0%, transparent 60%),
    linear-gradient(135deg, var(--wine-dark) 0%, var(--wine) 40%, #7a2040 100%);
}

/* Decorative pattern overlay */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
}
.hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 700px;
}
.hero__title em {
  font-style: italic;
  color: var(--gold-light);
}
.hero__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero__scroll span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 1.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.7); }
}

/* ===== MANIFESTO STRIP ===== */
.manifesto-strip {
  background: var(--wine);
  padding: 1.25rem 0;
  overflow: hidden;
}
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track {
  display: inline-flex;
  gap: 2.5rem;
  animation: marquee 20s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.marquee__track .dot { color: var(--gold); font-size: 1rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== BRAND STORY ===== */
.brand-story {
  padding: 7rem 0;
  background: var(--white);
}
.brand-story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.brand-story__img-wrap {
  position: relative;
  height: 560px;
}
.brand-story__img {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.brand-story__img--1 {
  width: 75%;
  height: 80%;
  top: 0;
  left: 0;
  /* Foto normal (sem overlay/gradiente por cima) */
  background-image: url('../public/fotos/img01.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-lg);
  filter: none !important;
}
.brand-story__img--1::after {
  content: '✦';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: rgba(255,255,255,0.14);
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}
.brand-story__img--2 {
  width: 55%;
  height: 55%;
  bottom: 0;
  right: 0;
  /* Foto normal (sem overlay/gradiente por cima) */
  background-image: url('../public/fotos/img02.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-lg);
  filter: none !important;
}
.brand-story__img--2::after {
  content: 'ÂMINA';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.3em;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.25);
}
.brand-story__tag {
  position: absolute;
  top: 42%;
  right: -1rem;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow);
  z-index: 2;
}
.brand-story__tag-year {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--wine);
  line-height: 1;
}
.brand-story__tag-text {
  font-size: 0.65rem;
  color: var(--gray);
  letter-spacing: 0.05em;
  display: block;
  margin-top: 0.25rem;
}

.brand-story__text p {
  color: var(--gray);
  margin-bottom: 1.25rem;
  line-height: 1.9;
  font-size: 0.95rem;
}
.brand-story__text p strong { color: var(--wine); font-weight: 600; }
.brand-story__values {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}
.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.value-item i {
  width: 3rem;
  height: 3rem;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wine);
  font-size: 1rem;
}
.value-item span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wine);
}

/* ===== COLLECTIONS ===== */
.collections {
  padding: 7rem 0;
  background: var(--cream);
}
.collections__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
}
.collection-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  min-height: 340px;
  cursor: pointer;
}
.collection-card--large {
  grid-row: 1 / 3;
  min-height: 720px;
}
.collection-card__bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.collection-card:hover .collection-card__bg { transform: scale(1.05); }
.collection-card__bg--1 { background: linear-gradient(160deg, #2e0a16 0%, #4A1124 45%, #7a2040 100%); }
.collection-card__bg--2 { background: linear-gradient(160deg, #1a1a2e 0%, #16213e 100%); }
.collection-card__bg--3 { background: linear-gradient(160deg, #C9A96E 0%, #a87d40 100%); }
.collection-card__bg--4 { background: linear-gradient(160deg, #0d0d0d 0%, #2d2d2d 100%); }

/* decorative texture on collection cards */
.collection-card__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}

.collection-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  z-index: 1;
  color: var(--white);
}
.collection-card__tag {
  display: inline-block;
  background: var(--gold);
  color: var(--wine-dark);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}
.collection-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 0.4rem;
  line-height: 1.15;
}
.collection-card p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}
.collection-card__link {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}
.collection-card:hover .collection-card__link { gap: 0.8rem; }

/* ===== PRODUCTS ===== */
.products {
  padding: 7rem 0;
  background: var(--white);
}
.products__filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid var(--gray-light);
  border-radius: 100px;
  color: var(--gray);
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--white);
}
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.product-card {
  display: flex;
  flex-direction: column;
}
.product-card__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--cream-dark);
  margin-bottom: 1rem;
}
.product-card__img-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 0;
  color: inherit;
}
.product-card__img-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.product-card__info-link {
  display: block;
  color: inherit;
  text-decoration: none;
  margin-bottom: 0.35rem;
}
.product-card__info-link:focus-visible .product-card__name {
  text-decoration: underline;
}
.product-card__img {
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card__img--real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.product-card:hover .product-card__img { transform: scale(1.07); }

.product-card__carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.product-card__carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}
.product-card__carousel-img.active {
  opacity: 1;
  z-index: 1;
}
.product-card:hover .product-card__carousel-img.active {
  transform: scale(1.07);
  transition: opacity 0.75s ease-in-out, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overlay with add-to-cart */
.product-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(74,17,36,0.95) 0%, transparent 100%);
  transform: translateY(100%);
  transition: transform var(--transition);
  display: flex;
  z-index: 2;
  pointer-events: none;
}
.product-card__overlay .btn-add-cart {
  pointer-events: auto;
}
.product-card:hover .product-card__overlay { transform: translateY(0); }
.btn-add-cart {
  width: 100%;
  padding: 0.75rem;
  background: var(--wine);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.btn-add-cart:hover {
  background: var(--wine-light);
  color: var(--white);
}
.btn-add-cart:active {
  filter: brightness(1.08);
  transform: scale(0.99);
}

/* Botão visível no toque (overlay some em telas pequenas — ver media queries) */
.product-card__add-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 0.85rem;
  background: var(--wine);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  flex-shrink: 0;
}
.product-card__add-mobile:active {
  filter: brightness(1.08);
  transform: scale(0.98);
}

.product-card__wish {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--wine);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.product-card__wish:hover { background: var(--wine); color: var(--white); }
.product-card__wish.active i { font-weight: 900; }

.product-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  background: var(--wine);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
}
.product-card__badge--sale { background: #e53e3e; }

.product-card__category {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.product-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 0.5rem;
}
.product-card__price {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.price-current {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--wine);
}
.price-old {
  font-size: 0.85rem;
  color: var(--gray);
  text-decoration: line-through;
}

/* ===== LOOKBOOK ===== */
.lookbook {
  padding: 7rem 0;
  background: var(--wine-dark);
}
.lookbook__header {
  margin-bottom: 3rem;
}
.lookbook__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
.lookbook__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 300px;
}
.lookbook__item--tall {
  grid-row: 1 / 3;
  min-height: 620px;
}
.lookbook__item--wide {
  grid-column: 2 / 4;
}
.lookbook__img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.lookbook__item:hover .lookbook__img { transform: scale(1.04); }
.lookbook__img--1 { background: linear-gradient(160deg, #4A1124, #8a3050); }
.lookbook__img--2 { background: linear-gradient(160deg, #C9A96E, #a87d40); }
.lookbook__img--3 { background: linear-gradient(160deg, #1c1c2e, #3a3a6e); }
.lookbook__img--4 { background: linear-gradient(160deg, #0d0d0d, #3a1020); }

/* decorative text on lookbook items */
.lookbook__img--1::after { content: '✦'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:8rem; color:rgba(255,255,255,0.05); }
.lookbook__img--2::after { content: '◆'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:6rem; color:rgba(255,255,255,0.08); }
.lookbook__img--3::after { content: '★'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:6rem; color:rgba(255,255,255,0.06); }
.lookbook__img--4::after { content: '◇'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:10rem; color:rgba(255,255,255,0.04); }

.lookbook__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.lookbook__caption span {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
}
.lookbook__caption a {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}
.lookbook__item:hover .lookbook__caption a { gap: 0.8rem; }

/* ===== FEATURES ===== */
.features {
  padding: 5rem 0;
  background: var(--cream);
  border-top: 1px solid var(--cream-dark);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.feature-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.feature-item i {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--wine);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.feature-item h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wine);
}
.feature-item p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 7rem 0;
  background: var(--white);
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--cream-dark);
}
.testimonial-card__stars { color: var(--gold); font-size: 0.85rem; display: flex; gap: 2px; }
.testimonial-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.8;
  font-style: italic;
  flex: 1;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cream-dark);
}
.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}
.avatar-1 { background: linear-gradient(135deg, var(--wine) 0%, #8a3050 100%); }
.avatar-2 { background: linear-gradient(135deg, var(--gold) 0%, #a87d40 100%); }
.avatar-3 { background: linear-gradient(135deg, #1c1c2e 0%, #4a4a8e 100%); }
.testimonial-card__author strong { display: block; font-size: 0.85rem; color: var(--black); }
.testimonial-card__author span { font-size: 0.75rem; color: var(--gray); }

/* ===== INSTAGRAM FEED ===== */
.instagram-feed {
  padding: 7rem 0;
  background: var(--cream);
}
.instagram-feed__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}
.insta-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
}
.insta-img {
  width: 100%;
  height: 100%;
  transition: transform var(--transition);
}
.insta-item:hover .insta-img { transform: scale(1.08); }
.insta-img--1 { background: linear-gradient(135deg, var(--wine) 0%, #7a2040 100%); }
.insta-img--2 { background: linear-gradient(135deg, var(--gold) 0%, #a87d40 100%); }
.insta-img--3 { background: linear-gradient(135deg, #1c1c2e 0%, #3a3a6e 100%); }
.insta-img--4 { background: linear-gradient(135deg, #2e0a16 0%, var(--wine) 100%); }
.insta-img--5 { background: linear-gradient(135deg, #0d0d0d 0%, #444 100%); }
.insta-img--6 { background: linear-gradient(135deg, #f5e6d8 0%, #d4a574 100%); }

.insta-hover {
  position: absolute;
  inset: 0;
  background: rgba(74,17,36,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.insta-item:hover .insta-hover { opacity: 1; }

/* ===== NEWSLETTER ===== */
.newsletter {
  padding: 6rem 0;
  background: var(--wine);
}
.newsletter__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.newsletter__text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.newsletter__text h2 em { font-style: italic; color: var(--gold-light); }
.newsletter__text p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}
.newsletter__input-wrap {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.newsletter__input-wrap input {
  flex: 1;
  padding: 0.9rem 1.25rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter__input-wrap input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter__input-wrap input:focus { border-color: var(--gold-light); }
.newsletter__disclaimer {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--wine-dark);
  color: var(--white);
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 5rem 0 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 1.25rem;
  background: transparent;
  /* logo-amina-3: branco em fundo transparente — combina com footer escuro */
}
.footer__brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  max-width: 280px;
  margin-bottom: 1.5rem;
}
.footer__social {
  display: flex;
  gap: 1rem;
}
.footer__social a {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  transition: all var(--transition);
}
.footer__social a:hover {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--white);
}
.footer__col h5 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--white); }
.footer__col i { font-size: 0.9rem; color: var(--gold); }

.footer__bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}
.footer__payments {
  display: flex;
  gap: 0.75rem;
  font-size: 1.8rem;
  color: rgba(255,255,255,0.3);
}

/* ===== CART SIDEBAR ===== */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(420px, 95vw);
  background: var(--white);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}
/*
 * Fechado: z-index baixo — não bloqueia o header.
 * Aberto: acima do overlay (1180 desktop, 2100 mobile) para o fundo cinza não cobrir o painel.
 */
.cart-sidebar:not(.open) {
  z-index: 1;
  pointer-events: none;
}
.cart-sidebar.open {
  z-index: 2500;
  isolation: isolate;
  transform: translateX(0);
  pointer-events: auto;
}
.cart-sidebar__header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-sidebar__header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--wine);
}
.cart-sidebar__header button {
  font-size: 1.3rem;
  color: var(--gray);
  padding: 0.5rem;
  transition: color var(--transition);
}
.cart-sidebar__header button:hover { color: var(--wine); }
.cart-sidebar__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 2rem;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 100%;
  color: var(--gray);
  text-align: center;
  min-height: 300px;
}
.cart-empty i { font-size: 3rem; color: var(--cream-dark); }
.cart-empty p { font-size: 0.9rem; }
.cart-items { display: flex; flex-direction: column; gap: 1rem; }
.cart-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-light);
}
.cart-item__thumb {
  width: 72px;
  height: 90px;
  border-radius: var(--radius);
  flex-shrink: 0;
  display: block;
  object-fit: cover;
  object-position: top center;
}
.cart-item__info { flex: 1; }
.cart-item__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.25rem;
}
.cart-item__price {
  font-size: 0.85rem;
  color: var(--wine);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.cart-item__remove {
  font-size: 0.7rem;
  color: var(--gray);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.cart-item__code {
  font-size: 0.72rem;
  color: var(--gray);
  margin: 0.15rem 0 0.25rem;
}
.cart-item__unit {
  font-size: 0.8rem;
  color: var(--gray);
  margin: 0.2rem 0;
}
.cart-item__unit-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cart-item__line-total {
  font-size: 0.85rem;
  margin: 0.35rem 0 0.5rem;
  color: var(--wine);
}
.cart-item__qty-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  overflow: hidden;
}
.cart-qty__btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gray);
  cursor: pointer;
  background: var(--cream);
  border: none;
  transition: background 0.2s;
}
.cart-qty__btn:hover {
  background: var(--cream-dark);
  color: var(--wine);
}
.cart-qty__val {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 28px;
  text-align: center;
  padding: 0 0.25rem;
}
.btn--whatsapp {
  background: #25d366 !important;
  color: #fff !important;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn--whatsapp:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.btn--whatsapp i {
  font-size: 1.25rem;
}
.cart-sidebar__footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--gray-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.cart-total span { font-size: 0.8rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.1em; }
.cart-total strong { font-size: 1.25rem; color: var(--wine); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--wine);
  color: var(--white);
  padding: 1rem 1.75rem;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 4000;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}
.toast i { color: var(--gold-light); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--wine);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  pointer-events: none;
  z-index: 800;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { background: var(--wine-dark); transform: translateY(-3px); }

/* ===== RESPONSIVE ===== */

/* --- Tablet largo --- */
@media (max-width: 1024px) {
  .products__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer__brand { grid-column: 1 / 3; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .instagram-feed__grid { grid-template-columns: repeat(3, 1fr); }
  .newsletter__inner { gap: 2.5rem; }
  .brand-story__grid { gap: 3rem; }
  .collections__grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .collection-card--large { grid-column: 1 / 3; min-height: 420px; }
}

/* --- Tablet --- */
@media (max-width: 768px) {
  /* Header — acima do carrinho fechado e do conteúdo; hambúrguer deve receber toque */
  .header {
    top: 32px;
    z-index: 2000;
  }
  .header.scrolled { top: 0; }
  .header__inner { height: 60px; padding: 0 1.25rem; }
  .header__nav { display: none; }
  .header__menu-btn { display: flex; }
  .mobile-menu.open {
    z-index: 2200;
  }
  .overlay.active {
    z-index: 2100;
  }
  /* z-index do carrinho/toast vem da regra global (.cart-sidebar.open 2500, .toast 4000) */
  .header__logo { height: 28px; }
  .announcement-bar { font-size: 0.65rem; padding: 0.5rem 1rem; }

  /* Hero */
  .hero { padding-top: 92px; min-height: 100svh; }
  .hero__content { padding: 3rem 1.25rem; }
  .hero__title { font-size: clamp(2.4rem, 10vw, 4rem); }
  .hero__subtitle { font-size: 0.88rem; }
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__scroll { display: none; }

  /* Brand Story */
  .brand-story { padding: 4rem 0; }
  .brand-story__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .brand-story__img-wrap { height: 320px; }
  .brand-story__img--1 { width: 70%; height: 85%; }
  .brand-story__img--2 { width: 55%; height: 55%; }
  .brand-story__tag { right: 0.5rem; }
  .brand-story__values { gap: 1.25rem; }

  /* Collections */
  .collections { padding: 4rem 0; }
  .collections__grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .collection-card--large { grid-column: 1 / 3; grid-row: auto; min-height: 320px; }
  .collection-card { min-height: 240px; }
  .collection-card h3 { font-size: 1.3rem; }

  /* Products */
  .products { padding: 4rem 0; }
  .products__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .products__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    padding: 0.25rem 0 0.75rem;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    scrollbar-width: thin;
  }
  .products__filters::-webkit-scrollbar { height: 4px; }
  .products__filters::-webkit-scrollbar-thumb {
    background: var(--cream-dark);
    border-radius: 4px;
  }
  .filter-btn {
    flex: 0 0 auto;
    padding: 0.55rem 1rem;
    font-size: 0.7rem;
    min-height: 40px;
  }
  /* Carrinho no header: área de toque maior */
  .header__actions .btn-icon {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
  }
  /* Adicionar ao carrinho: botão dedicado no mobile (sem depender do hover) */
  .product-card__overlay {
    display: none !important;
  }
  .product-card__add-mobile {
    display: flex !important;
  }
  .product-card__wish {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    font-size: 1rem;
  }

  /* Lookbook */
  .lookbook { padding: 4rem 0; }
  .lookbook__grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .lookbook__item--tall { grid-row: auto; min-height: 260px; }
  .lookbook__item--wide { grid-column: auto; min-height: 260px; }
  .lookbook__item { min-height: 220px; }

  /* Features */
  .features { padding: 3.5rem 0; }
  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  /* Testimonials */
  .testimonials { padding: 4rem 0; }
  .testimonials__grid { grid-template-columns: 1fr; gap: 1rem; }

  /* Instagram */
  .instagram-feed { padding: 4rem 0; }
  .instagram-feed__grid { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }

  /* Newsletter */
  .newsletter { padding: 4rem 0; }
  .newsletter__inner { grid-template-columns: 1fr; gap: 2rem; }
  .newsletter__input-wrap { flex-direction: column; gap: 0.75rem; }
  .newsletter__input-wrap input,
  .newsletter__input-wrap .btn { width: 100%; }

  /* Footer */
  .footer__top { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0 2.5rem; }
  .footer__brand { grid-column: auto; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer__payments { justify-content: center; }

  /* Section titles */
  .section-title { font-size: clamp(1.9rem, 6vw, 2.8rem); }
  .section-header .section-link { position: static; margin-top: 0.75rem; }
  .section-header { margin-bottom: 2rem; }
}

/* --- Mobile --- */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  /* Announcement */
  .announcement-bar { font-size: 0.62rem; }
  .announcement-bar a { display: none; }

  /* Header */
  .header { top: 28px; }
  .header__inner { height: 56px; }
  .header__internal-btn-text { display: none; }
  .header__internal-btn {
    padding: 0.4rem;
    min-width: 2.5rem;
    justify-content: center;
  }
  /* Oculta busca no mobile (2º filho: após link Área interna) */
  .header__actions .btn-icon:nth-child(2) { display: none; }

  /* Hero */
  .hero__title { font-size: clamp(2rem, 11vw, 3rem); }
  .hero__eyebrow::before { width: 24px; }

  /* Manifesto */
  .marquee__track span { font-size: 1.1rem; }

  /* Brand story */
  .brand-story__img-wrap { height: 260px; }
  .brand-story__values { flex-direction: row; justify-content: flex-start; flex-wrap: wrap; }

  /* Collections */
  .collections__grid { grid-template-columns: 1fr; }
  .collection-card--large { grid-column: auto; min-height: 300px; }
  .collection-card { min-height: 220px; }

  /* Products */
  .products__grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .product-card__name { font-size: 0.9rem; line-height: 1.25; }
  .product-card__add-mobile {
    padding: 0.8rem 0.65rem;
    font-size: 0.65rem;
  }

  /* Lookbook */
  .lookbook__grid { grid-template-columns: 1fr; }
  .lookbook__item--tall,
  .lookbook__item--wide,
  .lookbook__item { min-height: 280px; }

  /* Features */
  .features__grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .feature-item p { font-size: 0.75rem; }

  /* Testimonials */
  .testimonial-card { padding: 1.5rem; }

  /* Instagram */
  .instagram-feed__grid { grid-template-columns: repeat(2, 1fr); gap: 0.3rem; }

  /* Cart sidebar */
  .cart-sidebar {
    width: 100%;
    max-width: 100vw;
  }
  .cart-sidebar__header,
  .cart-sidebar__body,
  .cart-sidebar__footer {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  .cart-sidebar__footer {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
  .cart-qty__btn {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  .cart-item__remove {
    min-height: 44px;
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
  }
  .btn--whatsapp {
    min-height: 48px;
    font-size: 0.85rem;
  }

  /* Back to top */
  .back-to-top { bottom: 1.25rem; right: 1.25rem; width: 2.5rem; height: 2.5rem; }

  /* Toast */
  .toast {
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    white-space: normal;
    text-align: center;
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ===== PRODUCTS — LOADING / EMPTY / PLACEHOLDER ===== */
.products__loading {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 0.25rem 0;
}
.products__loading[hidden] { display: none; }

.product-skeleton {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.product-skeleton::before {
  content: '';
  display: block;
  padding-top: 125%;
  background: linear-gradient(90deg, #f0ebe1 25%, #faf7f2 50%, #f0ebe1 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}
.product-skeleton::after {
  content: '';
  display: block;
  height: 80px;
  background: linear-gradient(90deg, #f0ebe1 25%, #faf7f2 50%, #f0ebe1 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out 0.2s infinite;
}

@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.products__empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.7;
}
.products__empty[hidden] { display: none; }

.product-card__img--placeholder {
  width: 100%;
  padding-top: 125%;
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-light) 100%);
  opacity: 0.15;
}

/* ===== PÁGINA DO PRODUTO (produto.html) ===== */
.product-page {
  padding-top: 120px;
  padding-bottom: 4rem;
  min-height: 45vh;
}
.product-page .container {
  max-width: 1200px;
}
.product-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wine);
  margin-bottom: 2rem;
  letter-spacing: 0.06em;
}
.product-back:hover { color: var(--wine-light); }
.product-detail__loading,
.product-detail__error {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--gray);
  max-width: 36rem;
  margin: 0 auto;
}
.product-detail__error a {
  color: var(--wine);
  text-decoration: underline;
  font-weight: 600;
}
/* Garantir que o conteúdo aparece quando o JS remove [hidden] */
article.product-detail:not([hidden]) {
  display: block;
}
.product-detail {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.product-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  width: 100%;
}
/* min-width: 0 evita que a grelha “estoure” e empurre a coluna da imagem para fora */
.product-detail__media,
.product-detail__info {
  min-width: 0;
}
.product-detail__media {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: stretch;
  position: relative;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  aspect-ratio: unset;
  max-height: none;
}
.product-detail__main-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-dark);
  aspect-ratio: 3 / 4;
  max-height: min(90vh, 920px);
  box-shadow: var(--shadow);
}
.product-detail__main-img {
  width: 100%;
  height: 100%;
}
.product-detail__main-img img,
.product-detail__main-wrap img#productMainImg {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.product-detail__thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 88px;
  flex-shrink: 0;
  max-height: min(90vh, 920px);
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}
.product-detail__thumb {
  border: 2px solid transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-dark);
  opacity: 0.72;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.product-detail__thumb:hover {
  opacity: 1;
}
.product-detail__thumb.is-active {
  border-color: var(--wine);
  opacity: 1;
}
.product-detail__thumb img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}
.product-detail__placeholder {
  width: 100%;
  height: 100%;
  min-height: min(60vh, 420px);
  background: linear-gradient(145deg, var(--wine-light) 0%, var(--wine) 55%, var(--wine-dark) 100%);
  opacity: 0.35;
}
.product-detail__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: var(--wine);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);
  z-index: 1;
}
.product-detail__info .product-card__category {
  margin-bottom: 0;
}
.product-detail__info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.45rem);
  font-weight: 500;
  color: var(--wine);
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
}
.product-detail__price {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--wine);
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
}
.product-detail__desc {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 38rem;
}
.product-detail__desc-p {
  margin: 0 0 1rem;
  color: var(--gray);
  font-size: inherit;
  line-height: inherit;
}
.product-detail__desc-p:last-child {
  margin-bottom: 0;
}
.product-detail__collections {
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--gray);
}
.product-detail__collections strong {
  color: var(--wine);
}
.product-detail__collections-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.product-detail__tag {
  background: var(--cream-dark);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: var(--black);
}
.product-detail__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.product-detail__qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.product-detail__qty-row label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wine);
}
.product-detail__qty-input {
  width: 4.5rem;
  padding: 0.65rem 0.5rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  text-align: center;
}
/* Botão na página do produto: vinho + branco (sobrepõe reset global de button) */
article.product-detail .product-detail__add.btn-add-cart,
.product-page .product-detail__add.btn-add-cart {
  max-width: 100%;
  width: min(100%, 360px);
  padding: 1rem 1.5rem;
  font-size: 0.75rem;
  background-color: var(--wine);
  color: var(--white);
  border: 2px solid var(--wine);
  -webkit-appearance: none;
  appearance: none;
}
article.product-detail .product-detail__add.btn-add-cart:hover,
.product-page .product-detail__add.btn-add-cart:hover {
  background-color: var(--wine-light);
  border-color: var(--wine-light);
  color: var(--white);
}

@media (max-width: 900px) {
  .product-detail__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .product-detail__media {
    flex-direction: column;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }
  .product-detail__main-wrap {
    max-height: none;
    width: 100%;
  }
  .product-detail__thumbs {
    flex-direction: row;
    width: 100%;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.25rem;
    gap: 0.5rem;
  }
  .product-detail__thumb {
    flex: 0 0 auto;
  }
  .product-detail__thumb img {
    width: 72px;
    height: 90px;
  }
  .product-detail__info {
    max-width: 100%;
  }
  .product-page {
    padding-top: 100px;
  }
}

@media (max-width: 1024px) {
  .products__loading { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .products__loading { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .products__loading { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

/* =============================================
   SPLASH SCREEN
   ============================================= */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wine-dark);
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Radial glow dourado no centro */
#splash-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 55% at 50% 50%,
    rgba(201, 169, 110, 0.10) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Linhas diagonais decorativas (sutil textura) */
#splash-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -55deg,
      transparent,
      transparent 60px,
      rgba(201, 169, 110, 0.025) 60px,
      rgba(201, 169, 110, 0.025) 61px
    );
  pointer-events: none;
}

body.splash-active { overflow: hidden; }

/* --- Conteúdo central --- */
.splash__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  padding: 2rem;
}

/* Estrelinhas decorativas acima do nome */
.splash__stars {
  font-size: 0.6rem;
  letter-spacing: 0.6em;
  color: var(--gold);
  opacity: 0;
  margin-bottom: 1.4rem;
  animation: splashFadeUp 0.5s 0.15s ease forwards;
}

/* Logo principal (imagem) */
.splash__logo {
  display: block;
  width: min(420px, 78vw);
  height: auto;
  opacity: 0;
  animation: splashFadeUp 0.75s 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  /* Inverte para branco — a logo-amina-3 já é branca, mas como fallback */
  filter: drop-shadow(0 2px 24px rgba(201, 169, 110, 0.18));
}

/* Linha dourada que expande */
.splash__line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 40%, var(--gold) 60%, transparent 100%);
  margin: 1.6rem 0 1.5rem;
  animation: splashLineGrow 0.65s 0.85s ease forwards;
}

/* Tagline */
.splash__tagline {
  font-family: var(--font-body);
  font-size: clamp(0.55rem, 2vw, 0.68rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0;
  animation: splashFadeUp 0.5s 1.25s ease forwards;
}

/* Pontinhos de carregamento */
.splash__dots {
  display: flex;
  gap: 7px;
  margin-top: 3rem;
  opacity: 0;
  animation: splashFadeUp 0.4s 1.6s ease forwards;
}

.splash__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.3;
  animation: splashDotPulse 1.1s ease-in-out infinite;
}
.splash__dot:nth-child(1) { animation-delay: 1.7s; }
.splash__dot:nth-child(2) { animation-delay: 1.95s; }
.splash__dot:nth-child(3) { animation-delay: 2.2s; }

/* Cantos decorativos */
.splash__corner {
  position: absolute;
  width: 48px;
  height: 48px;
  opacity: 0;
  animation: splashFadeUp 0.5s 0.8s ease forwards;
}
.splash__corner--tl { top: 2rem; left: 2rem; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.splash__corner--tr { top: 2rem; right: 2rem; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); }
.splash__corner--bl { bottom: 2rem; left: 2rem; border-bottom: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.splash__corner--br { bottom: 2rem; right: 2rem; border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold); }

/* Estado oculto — saída com fade + leve zoom */
#splash-screen.splash--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.04);
}

/* --- Keyframes --- */
@keyframes splashFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes splashLineGrow {
  from { width: 0; opacity: 0; }
  to   { width: min(260px, 55vw); opacity: 1; }
}

@keyframes splashDotPulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50%       { opacity: 1;    transform: scale(1.5); }
}

/* Mobile: cantos menores */
@media (max-width: 480px) {
  .splash__corner { width: 32px; height: 32px; }
  .splash__corner--tl, .splash__corner--tr { top: 1.25rem; }
  .splash__corner--bl, .splash__corner--br { bottom: 1.25rem; }
  .splash__corner--tl, .splash__corner--bl { left: 1.25rem; }
  .splash__corner--tr, .splash__corner--br { right: 1.25rem; }
}
