/* ============================================================
   Su Palma Enxovais Baby — estilos
   Paleta: cream / blush / rosa / clay / clay-deep / ink
   Tipografia: Fraunces (display) + Manrope (corpo) + Mrs Saint
   Delafield (script — usado só no elemento assinatura de bordado)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500;1,9..144,600&family=Manrope:wght@400;500;600;700;800&family=Mrs+Saint+Delafield&family=Great+Vibes&family=Sacramento&display=swap');

:root{
  --cream:#FBF3EC;
  --paper:#FFFDFB;
  --blush:#F3DDD3;
  --rose:#DDA9A0;
  --rose-deep:#C98B85;
  --clay:#B98A66;
  --clay-deep:#7A4E37;
  --clay-darker:#5C3A28;
  --ink:#4A362C;
  --ink-soft:#8A7268;
  --line:rgba(122,78,55,0.16);

  --shadow-soft: 0 8px 30px rgba(122,78,55,0.12);
  --shadow-lift: 0 16px 40px rgba(122,78,55,0.18);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-script: 'Mrs Saint Delafield', cursive;

  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin:0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--clay-darker);
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1em; }

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

.skip-link{
  position:absolute; left:-999px; top:auto;
  background: var(--clay-deep); color:#fff; padding: 10px 18px;
  border-radius: var(--radius-pill); z-index: 999;
}
.skip-link:focus{ left: 24px; top: 24px; }

:focus-visible{
  outline: 2.5px solid var(--clay-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- eyebrow / labels ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
.eyebrow::before{
  content:"";
  width: 22px; height: 1px;
  background: var(--rose-deep);
  display:inline-block;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header{
  position: sticky; top:0; z-index: 60;
  background: rgba(251,243,236,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand{
  display:flex; align-items:center; gap:11px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--clay-darker);
}
.brand-logo{
  width: 58px; height:58px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink:0;
}
.nav-links{
  display:flex; align-items:center; gap: 28px;
  list-style:none; margin:0; padding:0;
}
.nav-links a{
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  position:relative;
  padding-bottom: 4px;
}
.nav-links a::after{
  content:"";
  position:absolute; left:0; right:100%; bottom:-1px;
  height:2px;
  background-image: linear-gradient(90deg, var(--rose-deep) 60%, transparent 0);
  background-size: 6px 2px;
  transition: right .25s ease;
}
.nav-links a:hover::after, .nav-links a:focus-visible::after{ right:0; }

.nav-actions{ display:flex; align-items:center; gap:12px; }

.cart-btn{
  display:flex; align-items:center; gap:8px;
  background: var(--clay-deep);
  color:#fff;
  border:none;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight:700;
  font-size: 14px;
  cursor:pointer;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cart-btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.cart-count{
  background: var(--rose);
  color: var(--clay-darker);
  min-width: 20px; height:20px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size: 11.5px; font-weight:800;
  padding: 0 4px;
}

.nav-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  color: var(--clay-darker);
  padding: 6px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative;
  padding: 76px 0 60px;
  overflow:hidden;
  background:
    radial-gradient(700px 420px at 88% -10%, var(--blush) 0%, transparent 60%),
    radial-gradient(600px 400px at -5% 110%, var(--rose) 0%, transparent 55%);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items:center;
}
.hero-grid > *{ min-width:0; }
.hero-copy .eyebrow{ margin-bottom:18px; }
.hero h1{
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.06;
  margin-bottom: 20px;
}
.hero h1 em{
  font-style: italic;
  font-weight: 500;
  color: var(--rose-deep);
}
.hero-lede{
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom: 34px; }

.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  cursor:pointer;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary{
  background: var(--clay-deep);
  color:#fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-ghost{
  background: transparent;
  color: var(--clay-deep);
  border-color: var(--clay-deep);
}
.btn-ghost:hover{ background: rgba(122,78,55,0.06); transform: translateY(-2px); }

.hero-trust{
  display:flex; gap: 26px; flex-wrap:wrap;
}
.hero-trust div{
  font-size: 13px; color: var(--ink-soft); font-weight:600;
  display:flex; align-items:center; gap:8px;
}
.hero-trust svg{ flex-shrink:0; color: var(--rose-deep); }

.hero-portrait{ position:relative; width:100%; min-width:0; }
.portrait-frame{
  position:relative;
  width:100%;
  border-radius: var(--radius-lg);
  overflow:hidden;
  aspect-ratio: 4/4.6;
  background: linear-gradient(155deg, var(--blush), var(--clay) 120%);
  box-shadow: var(--shadow-lift);
  border: 6px solid var(--paper);
}
.portrait-frame img{
  width:100%; height:100%; object-fit:cover;
}
.portrait-fallback{
  position:absolute; inset:0;
  display:none; flex-direction:column; align-items:center; justify-content:center;
  gap: 10px;
  color: var(--paper);
  text-align:center;
  padding: 20px;
}
.portrait-fallback.show{ display:flex; }
.portrait-fallback .monogram{
  font-family: var(--font-script);
  font-size: 74px;
  line-height:1;
}
.portrait-fallback span{
  font-size: 12.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  opacity:.9;
}
.portrait-badge{
  position:absolute; left: -18px; bottom: 26px;
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lift);
  max-width: 220px;
}
.portrait-badge strong{
  display:block; font-family: var(--font-display); color: var(--clay-deep); font-size: 15px;
}
.portrait-badge span{ font-size: 12.5px; color: var(--ink-soft); }

/* ============================================================
   HISTÓRIA
   ============================================================ */
.historia{
  position:relative;
  background: var(--clay-deep);
  color: var(--blush);
  padding: 84px 0;
  overflow:hidden;
}
.historia::before, .historia::after{
  content:"";
  position:absolute;
  width: 340px; height:340px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius:50%;
}
.historia::before{ top:-160px; left:-140px; }
.historia::after{ bottom:-180px; right:-120px; }
.historia-inner{
  position:relative;
  max-width: 760px;
  margin: 0 auto;
  text-align:center;
}
.historia .eyebrow{ color: var(--rose); justify-content:center; }
.historia .eyebrow::before{ background: var(--rose); }
.historia blockquote{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.5;
  color:#fff;
  margin: 26px 0 30px;
}
.historia-sign{
  font-family: var(--font-script);
  font-size: 52px;
  color: var(--rose);
}
.historia-role{
  font-size: 13px; letter-spacing:.06em; color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

/* ============================================================
   SECTION HEADERS (shared)
   ============================================================ */
section{ padding: 88px 0; }
.section-head{
  max-width: 620px;
  margin: 0 0 44px;
}
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 40px); }
.section-head p{ color: var(--ink-soft); font-size: 16.5px; }

/* ============================================================
   CATÁLOGO
   ============================================================ */
.catalogo{ background: var(--paper); }

.filters{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-bottom: 40px;
}
.filter-pill{
  background: var(--cream);
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  cursor:pointer;
  transition: all .18s ease;
}
.filter-pill:hover{ border-color: var(--clay); }
.filter-pill.active{
  background: var(--clay-deep);
  border-color: var(--clay-deep);
  color:#fff;
}

.category-block{ margin-bottom: 56px; }
.category-block:last-child{ margin-bottom:0; }
.category-title{
  display:flex; align-items:center; gap:14px;
  font-size: 20px;
  margin-bottom: 22px;
}
.category-title::after{
  content:"";
  flex:1;
  height: 0;
  border-top: 2px dashed var(--line);
}

.product-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 26px;
}

.product-card{
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow-soft);
  display:flex; flex-direction:column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.product-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.product-media{
  position:relative;
  aspect-ratio: 1/0.82;
  background: linear-gradient(155deg, var(--blush) 0%, var(--clay) 130%);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  cursor:pointer;
}
.product-media img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.product-media svg{ width: 54px; height:54px; color: var(--paper); opacity:.92; }
.product-tag{
  position:absolute; top:12px; left:12px;
  background: rgba(255,253,251,0.92);
  color: var(--clay-deep);
  font-size: 10.5px; font-weight:800; letter-spacing:.06em; text-transform:uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

.product-body{
  padding: 18px 20px 20px;
  display:flex; flex-direction:column; gap:8px; flex:1;
}
.product-body h3{
  font-size: 17px;
  margin:0;
  color: var(--clay-darker);
}
.product-desc{
  font-size: 13.5px;
  color: var(--ink-soft);
  margin:0;
  flex:1;
  line-height:1.5;
}
.product-price{
  font-family: var(--font-display);
  font-weight:600;
  font-size: 19px;
  color: var(--rose-deep);
  margin-top: 4px;
}
.product-variant{
  width:100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--ink);
  font-weight:600;
}

.product-actions{
  display:flex; align-items:center; gap:10px;
  margin-top: 6px;
}
.qty-stepper{
  display:flex; align-items:center;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  overflow:hidden;
  background: var(--paper);
}
.qty-stepper button{
  background:none; border:none;
  width: 30px; height: 32px;
  font-size: 16px; font-weight:700;
  color: var(--clay-deep);
  cursor:pointer;
}
.qty-stepper button:hover{ background: var(--blush); }
.qty-stepper span{
  min-width: 22px; text-align:center;
  font-size: 13.5px; font-weight:700;
}
.add-btn{
  flex:1;
  background: var(--clay-deep);
  color:#fff;
  border:none;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight:700;
  cursor:pointer;
  transition: background .18s ease, transform .18s ease;
}
.add-btn:hover{ background: var(--clay-darker); transform: translateY(-1px); }
.add-btn.added{ background: #7C8A5B; }

/* ---------- product media: clickable, "ver detalhes" reveal ---------- */
.product-media::after{
  content:"Ver detalhes";
  position:absolute; left:0; right:0; bottom:0;
  padding: 10px 0 9px;
  text-align:center;
  font-size:12px; font-weight:700; letter-spacing:.02em;
  color:#fff;
  background: linear-gradient(to top, rgba(74,54,44,0.78), transparent);
  transform: translateY(100%);
  transition: transform .2s ease;
  pointer-events:none;
}
.product-media:hover::after, .product-media:focus-visible::after{ transform: translateY(0); }

/* ============================================================
   PRODUCT DETAIL MODAL
   ============================================================ */
.product-modal{
  position: fixed;
  top:50%; left:50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(940px, 92vw);
  max-height: 88vh;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  z-index: 95;
  overflow-y:auto;
  opacity:0;
  pointer-events:none;
  transition: opacity .22s ease, transform .22s ease;
  display:grid;
  grid-template-columns: 1fr 1fr;
}
.product-modal[hidden]{ display:none; }
/* Grid items default to min-width:auto, which would let the thumb strip
   widen the column past the modal instead of scrolling inside it. */
.product-modal > *{ min-width: 0; }
.product-modal.open{
  opacity:1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events:auto;
}
.product-modal-close{
  position:absolute; top:16px; right:16px; z-index:2;
  width:38px; height:38px; border-radius:50%;
  background: var(--paper); border:1.5px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  color: var(--clay-deep); cursor:pointer;
  box-shadow: var(--shadow-soft);
}
.pm-gallery{ padding: 22px; }
.pm-main-image{
  position:relative;
  aspect-ratio: 1/0.95;
  border-radius: var(--radius-md);
  overflow:hidden;
  background: linear-gradient(155deg, var(--blush), var(--clay) 130%);
}
.pm-main-image img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
/* Scrolls sideways so a product with many photos never pushes past the
   modal edge (thumbs have flex-shrink:0 and would otherwise overflow). */
.pm-thumbs{
  display:flex; gap:10px; margin-top:12px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color: var(--rose) transparent;
  padding-bottom:4px;
}
.pm-thumbs::-webkit-scrollbar{ height:5px; }
.pm-thumbs::-webkit-scrollbar-track{ background:transparent; }
.pm-thumbs::-webkit-scrollbar-thumb{ background: var(--rose); border-radius:99px; }
.pm-thumbs[hidden]{ display:none; }
.pm-thumb{
  width:64px; height:64px; border-radius: var(--radius-sm);
  overflow:hidden; border: 2px solid transparent; cursor:pointer; padding:0; background:none; flex-shrink:0;
}
.pm-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.pm-thumb.active{ border-color: var(--clay-deep); }
.pm-info{ padding: 28px 30px 32px; display:flex; flex-direction:column; }
.pm-info .product-tag{ position:static; display:inline-block; margin-bottom:10px; }
.pm-info h3{ font-size: 26px; margin: 4px 0 10px; }
.pm-desc{ color: var(--ink-soft); font-size:15px; margin-bottom:6px; line-height:1.6; }
.pm-info .product-variant{ margin: 10px 0; }
.pm-info .product-price{ font-size:27px; margin: 4px 0 2px; }
.pm-features{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
  margin: 18px 0 4px;
}
.pm-feature{
  display:flex; align-items:center; gap:9px;
  font-size: 14.5px; font-weight:700; color: var(--clay-darker);
  line-height:1.3;
}
.pm-feature svg{ flex-shrink:0; color: var(--rose-deep); }

.pm-generic-info{
  list-style:none; margin: 22px 0 22px; padding: 16px 0 0;
  border-top: 1px dashed var(--line);
  display:flex; flex-direction:column; gap:7px;
}
.pm-generic-info li{
  font-size: 11.5px; color: var(--ink-soft); font-weight:600; line-height:1.5;
  padding-left: 14px;
  position:relative;
}
.pm-generic-info li::before{
  content:"·"; position:absolute; left:2px; top:-1px;
  color: var(--rose-deep); font-weight:800; font-size:15px;
}
.pm-info .product-actions{ margin-top:auto; }

/* ============================================================
   PERSONALIZAÇÃO — signature embroidery module
   ============================================================ */
.personalizacao{
  background: var(--blush);
  position:relative;
  overflow:hidden;
}
.personalizacao-grid{
  display:grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items:center;
}
.personalizacao-copy p{ color: var(--ink); font-size: 16px; }
.personalizacao-list{
  list-style:none; margin: 24px 0 0; padding:0;
  display:flex; flex-direction:column; gap:14px;
}
.personalizacao-list li{
  display:flex; gap:12px; align-items:flex-start;
  font-size: 14.5px; font-weight:600;
}
.personalizacao-list svg{ flex-shrink:0; color: var(--rose-deep); margin-top:2px; }

.embroidery-card{
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lift);
  text-align:center;
}
.embroidery-swatch{
  background:
    repeating-linear-gradient(0deg, rgba(122,78,55,0.05) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(122,78,55,0.05) 0 1px, transparent 1px 26px),
    linear-gradient(160deg, #fff 0%, var(--cream) 100%);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 46px 20px 38px;
  margin-bottom: 22px;
  position:relative;
  min-height: 168px;
  display:flex; align-items:center; justify-content:center;
}
.embroidery-text{
  font-family: var(--font-script);
  font-size: clamp(38px, 6vw, 54px);
  color: var(--clay-deep);
  line-height:1;
  word-break: break-word;
  transition: font-size .2s ease;
}

/* ---------- fontes de bordado ----------
   Cada fonte da máquina de bordar tem uma classe. Para trocar por
   arquivo real: coloque o .ttf/.woff2 em assets/fonts/ e preencha o
   @font-face correspondente — o restante já funciona. */
@font-face{
  font-family: 'Bellarose';
  src: url('../assets/fonts/bellarose.woff2') format('woff2'),
       url('../assets/fonts/bellarose.ttf') format('truetype');
  font-display: swap;
}
@font-face{
  font-family: 'LoveScript';
  src: url('../assets/fonts/love.woff2') format('woff2'),
       url('../assets/fonts/love.ttf') format('truetype');
  font-display: swap;
}

/* Enquanto os arquivos reais nao chegam, cada uma cai numa cursiva de
   reserva DIFERENTE — senao as duas apareceriam iguais na previa.
   Assim que o .ttf existir, ele tem prioridade e a reserva sai de cena. */
.font-bellarose{ font-family: 'Bellarose', 'Great Vibes', var(--font-script); }
.font-georgia{ font-family: Georgia, 'Times New Roman', serif; }
.font-love{ font-family: 'LoveScript', 'Sacramento', var(--font-script); }

/* Georgia ocupa muito mais largura que uma cursiva no mesmo corpo. */
.embroidery-text.font-georgia{ font-size: clamp(26px, 4vw, 38px); }

.embroidery-fonts{
  display:flex; gap:8px; flex-wrap:wrap; justify-content:center;
  margin-top: 16px;
}
.font-option{
  background: var(--cream);
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 17px;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.font-option:hover{ border-color: var(--clay); }
.font-option.active{
  background: var(--clay-deep);
  border-color: var(--clay-deep);
  color: #fff;
}
/* Cursivas têm altura-de-x pequena: precisam de corpo maior para ficarem
   legíveis no botão. Georgia, por ser serifada, já lê bem em corpo menor. */
.font-option.font-bellarose,
.font-option.font-love{ font-size: 24px; padding: 4px 18px; }
.font-option.font-georgia{ font-size: 15px; font-weight: 600; }
.embroidery-underline{
  position:absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 34px;
  width: min(78%, 320px);
  height: 20px;
}
.embroidery-underline path{
  fill:none;
  stroke: var(--rose-deep);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
}
.embroidery-underline.stitching path{
  animation: stitch-in 1.1s ease forwards;
}
@keyframes stitch-in{
  to{ stroke-dashoffset: 0; }
}
.embroidery-field{
  display:flex; gap:10px;
  max-width: 360px;
  margin: 0 auto;
}
.embroidery-field input{
  flex:1;
  padding: 13px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--cream);
  color: var(--ink);
}
.embroidery-field input:focus{ border-color: var(--clay); }
.embroidery-hint{
  font-size: 12.5px; color: var(--ink-soft); margin-top: 14px;
}

/* ============================================================
   COMO PEDIR — steps with stitched line
   ============================================================ */
.como-pedir{ background: var(--paper); }
.steps{
  position:relative;
  max-width: 640px;
  margin: 0 auto;
  padding-left: 8px;
}
.steps::before{
  content:"";
  position:absolute;
  left: 27px; top: 10px; bottom: 10px;
  border-left: 2.5px dashed var(--rose);
}
.step{
  position:relative;
  display:flex; gap:24px;
  padding-bottom: 44px;
}
.step:last-child{ padding-bottom:0; }
.step-marker{
  position:relative; z-index:1;
  flex-shrink:0;
  width: 54px; height:54px;
  border-radius:50%;
  background: var(--cream);
  border: 2.5px solid var(--rose);
  display:flex; align-items:center; justify-content:center;
  color: var(--clay-deep);
}
.step-body h3{ font-size: 18px; margin-bottom:6px; }
.step-body p{ color: var(--ink-soft); font-size: 14.5px; margin:0; }

/* ============================================================
   PAGAMENTO & ENVIO
   ============================================================ */
.logistica{ background: var(--cream); }
.logistica-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.info-card{
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
}
.info-card svg{ color: var(--rose-deep); margin-bottom: 14px; }
.info-card h3{ font-size: 17.5px; margin-bottom: 10px; }
.info-card p{ font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.info-card p:last-child{ margin-bottom:0; }
.pix-row{
  display:flex; align-items:center; justify-content:space-between;
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 13px;
}
.pix-row code{ font-weight:700; color: var(--clay-darker); }
.copy-btn{
  background: var(--blush);
  border:none;
  color: var(--clay-deep);
  font-size: 11.5px; font-weight:800;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  cursor:pointer;
  white-space:nowrap;
}
.copy-btn:hover{ background: var(--rose); color:#fff; }
.discount-pill{
  display:inline-block;
  margin-top: 12px;
  background: var(--clay-deep);
  color:#fff;
  font-size: 12.5px; font-weight:700;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  background: var(--clay-darker);
  color: var(--blush);
  padding: 64px 0 30px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand{
  display:flex; align-items:center;
  margin-bottom:16px;
}
.footer-logo{
  width: 92px; height:92px;
  border-radius:50%;
  object-fit:cover;
  flex-shrink:0;
}
.footer-grid p{ color: rgba(255,240,230,0.72); font-size: 14px; }
.footer-col h4{
  font-family: var(--font-body);
  font-size: 12.5px; font-weight:800; letter-spacing:.1em; text-transform:uppercase;
  color: var(--rose);
  margin-bottom: 16px;
}
.footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.footer-col a{
  color: rgba(255,240,230,0.85);
  font-size: 14.5px;
  display:flex; align-items:center; gap:9px;
}
.footer-col a:hover{ color:#fff; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;
  padding-top: 26px;
  font-size: 12.5px;
  color: rgba(255,240,230,0.55);
}
.back-to-top{
  color: var(--rose);
  font-weight:700;
}

/* ============================================================
   CART DRAWER + FLOATING BUTTON
   ============================================================ */
.cart-fab{
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  background: var(--clay-deep);
  color:#fff;
  border:none;
  width: 62px; height:62px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  box-shadow: var(--shadow-lift);
  transition: transform .2s ease;
}
.cart-fab:hover{ transform: scale(1.06); }
.cart-fab .cart-count{
  position:absolute; top:-4px; right:-4px;
}

.drawer-overlay{
  position: fixed; inset:0;
  background: rgba(74,54,44,0.42);
  opacity:0; pointer-events:none;
  transition: opacity .25s ease;
  z-index: 80;
}
.drawer-overlay.open{ opacity:1; pointer-events:auto; }

.cart-drawer{
  position: fixed; top:0; right:0; bottom:0;
  width: min(420px, 100%);
  background: var(--cream);
  z-index: 90;
  transform: translateX(100%);
  transition: transform .3s ease;
  display:flex; flex-direction:column;
  box-shadow: -14px 0 40px rgba(74,54,44,0.2);
}
.cart-drawer.open{ transform: translateX(0); }

.cart-header{
  display:flex; align-items:center; justify-content:space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.cart-header h2{ font-size: 22px; margin:0; }
.cart-close{
  background: var(--paper); border:1.5px solid var(--line);
  width:36px; height:36px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; color: var(--clay-deep);
}

.cart-items{
  flex:1; overflow-y:auto;
  padding: 18px 24px;
  display:flex; flex-direction:column; gap:16px;
}
.cart-empty{
  text-align:center; color: var(--ink-soft); font-size: 14.5px;
  padding: 60px 20px;
}
.cart-item{
  display:grid; grid-template-columns: 56px 1fr auto; gap:12px;
  align-items:center;
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 12px;
}
.cart-item-media{
  width:56px; height:56px; border-radius: var(--radius-sm);
  background: linear-gradient(155deg, var(--blush), var(--clay) 130%);
  display:flex; align-items:center; justify-content:center;
  color:#fff;
}
.cart-item-media svg{ width:26px; height:26px; }
.cart-item-name{ font-size: 14px; font-weight:700; color: var(--clay-darker); }
.cart-item-variant{ font-size: 12px; color: var(--ink-soft); }
.cart-item-price{ font-size: 13px; color: var(--rose-deep); font-weight:700; margin-top:2px; }
.cart-item-controls{
  display:flex; flex-direction:column; align-items:flex-end; gap:6px;
}
.cart-item-remove{
  background:none; border:none; color: var(--ink-soft); font-size:11.5px; cursor:pointer; text-decoration:underline;
}

.cart-fields{
  padding: 4px 24px 0;
  display:flex; flex-direction:column; gap:10px;
}
.cart-fields input, .cart-fields textarea{
  width:100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: 13.5px;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}

.cart-footer{
  padding: 20px 24px 26px;
  border-top: 1px solid var(--line);
}
.cart-subtotal{
  display:flex; justify-content:space-between; align-items:baseline;
  margin-bottom: 8px;
}
.cart-subtotal span:first-child{ font-size: 14px; color: var(--ink-soft); font-weight:700; }
.cart-subtotal strong{ font-family: var(--font-display); font-size: 24px; color: var(--clay-darker); }
.cart-note{ font-size: 12px; color: var(--ink-soft); margin-bottom: 16px; }
.whatsapp-btn{
  width:100%;
  display:flex; align-items:center; justify-content:center; gap:10px;
  background:#3F7A57;
  color:#fff;
  border:none;
  padding: 15px;
  border-radius: var(--radius-pill);
  font-size: 15px; font-weight:800;
  cursor:pointer;
  transition: transform .18s ease, background .18s ease;
}
.whatsapp-btn:hover{ background:#356847; transform: translateY(-2px); }
.whatsapp-btn:disabled{ background: var(--ink-soft); cursor:not-allowed; transform:none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-portrait{ order:-1; max-width: 340px; margin: 0 auto; }
  .personalizacao-grid{ grid-template-columns:1fr; }
  .logistica-grid{ grid-template-columns:1fr 1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 760px){
  .nav-links{
    position:fixed; top:64px; left:0; right:0;
    background: var(--paper);
    flex-direction:column; align-items:flex-start;
    padding: 18px 24px 26px;
    border-bottom: 1px solid var(--line);
    display:none;
    gap: 16px;
  }
  .nav-links.open{ display:flex; }
  .nav-toggle{ display:block; }
  section{ padding: 60px 0; }
  .logistica-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .portrait-badge{ left: 10px; }

  .nav{ padding: 12px 16px; flex-wrap:nowrap; gap:8px; }
  .brand{ font-size: 17px; gap:8px; white-space:nowrap; overflow:hidden; }
  .brand-logo{ width:46px; height:46px; }
  .nav-actions{ gap:6px; }
  .cart-btn{ padding: 8px 12px; font-size: 12.5px; gap:5px; white-space:nowrap; }
  .nav-toggle{ padding:4px; }

  .product-modal{
    grid-template-columns: 1fr;
    width: 94vw;
    max-height: 92vh;
  }
  .pm-main-image{ aspect-ratio: 1/0.8; }
  .pm-info{ padding: 12px 22px 26px; }
  .pm-features{ grid-template-columns: 1fr; gap: 9px; }

  /* Finger-sized controls: 44px is the comfortable minimum on touch. */
  .qty-stepper button{ width: 44px; height: 44px; font-size: 18px; }
  .qty-stepper span{ min-width: 30px; font-size: 15px; }
  .add-btn{ padding: 14px 16px; font-size: 14px; }
  .nav-toggle{ padding: 10px; }
  .product-modal-close{ width: 44px; height: 44px; }
  .cart-close{ width: 44px; height: 44px; }
  .filter-pill{ padding: 12px 18px; }
  .font-option{ padding: 12px 18px; }
  .cart-item-remove{ padding: 6px 0; font-size: 12.5px; }

  /* iOS Safari zooms the page in when a focused field is under 16px. */
  .cart-fields input,
  .cart-fields textarea,
  .product-variant,
  .embroidery-field input{ font-size: 16px; }
}

@media (max-width: 400px){
  .cart-label{ display:none; }
}
