:root {
  --color-bg: #faf7f2;
  --color-ink: #201c18;
  --color-sand: #e9e0d3;
  --color-sun: #d98c4a;
  --color-line: #dfd6c6;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Jost', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2rem;
  text-align: center;
  letter-spacing: 0.02em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background 0.25s, color 0.25s;
}
.btn-light { color: #fff; }
.btn-light:hover { background: #fff; color: var(--color-ink); }
.btn-dark { color: var(--color-ink); }
.btn-dark:hover { background: var(--color-ink); color: #fff; }

/* Announcement bar */
.announce-bar {
  background: var(--color-ink);
  color: #fff;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 0.6rem 1rem;
}

/* Header — solid by default (used as-is on PDP pages) */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  color: var(--color-ink);
  z-index: 50;
}

/* Hero wrapper: positioning context for the floating transparent header (home only) */
.hero-wrap { position: relative; }
.hero-wrap .site-header {
  background: transparent;
  border-bottom: 1px solid transparent;
  color: #fff;
  position: absolute;
  top: 0; left: 0; right: 0;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.hero-wrap .site-header.is-solid {
  position: fixed;
  background: var(--color-bg);
  border-bottom-color: var(--color-line);
  color: var(--color-ink);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  letter-spacing: 0.15em;
  text-align: center;
  justify-self: center;
}
.main-nav {
  display: flex;
  gap: 1.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.main-nav a { position: relative; padding-bottom: 4px; }
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
}
.header-icons {
  display: flex;
  gap: 1.1rem;
  justify-self: end;
  align-items: center;
}
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: currentColor;
  position: relative;
  display: flex;
  align-items: center;
}
.cart-count {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--color-sun);
  color: #fff;
  font-size: 0.62rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.menu-toggle span {
  height: 1px;
  background: currentColor;
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  height: 78vh;
  min-height: 480px;
  overflow: hidden;
}
.hero img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.35));
}
.hero-caption h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 3.6rem;
  line-height: 1.1;
  margin-bottom: 1.8rem;
}

/* Categories */
.categories { padding: 5rem 2rem 2rem; max-width: 1400px; margin: 0 auto; }
.category-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.category-card {
  position: relative;
  display: block;
  aspect-ratio: 816 / 1306;
  overflow: hidden;
  background: var(--color-sand);
}
.category-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.category-card:hover img { transform: scale(1.05); }
.category-card span {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: #1a1714;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  padding: 0.55rem 1.6rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  white-space: nowrap;
}

/* Products */
.products { padding: 4rem 2rem; max-width: 1400px; margin: 0 auto; }
.products-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 2.5rem;
}
.see-all {
  position: absolute; right: 0;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid currentColor;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}
.product-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-sand);
  margin-bottom: 0.9rem;
}
.product-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.tag {
  position: absolute;
  top: 0.8rem; left: 0.8rem;
  background: var(--color-ink);
  color: #fff;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
}
.tag-sale { background: var(--color-sun); }
.product-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.15rem;
}
.price { font-size: 0.9rem; margin-top: 0.3rem; color: #4a453e; }
.price-old {
  text-decoration: line-through;
  color: #a39c8e;
  margin-right: 0.5rem;
}

/* Banner mid */
.banner-mid { position: relative; height: 60vh; min-height: 380px; overflow: hidden; }
.banner-mid img { width: 100%; height: 100%; object-fit: cover; }
.banner-mid-caption {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  padding-left: 8%;
  background: linear-gradient(90deg, rgba(250,247,242,0.9) 0%, rgba(250,247,242,0.1) 55%);
}
.banner-mid-caption h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 1.8rem;
}

/* Instagram */
.instagram { padding: 5rem 2rem; max-width: 1400px; margin: 0 auto; }
.instagram-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}
.instagram-grid img {
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%; height: 100%;
  transition: opacity 0.3s;
}
.instagram-grid a:hover img { opacity: 0.8; }

/* Newsletter */
.newsletter {
  background: var(--color-ink);
  color: #fff;
  text-align: center;
  padding: 5rem 2rem;
}
.newsletter h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}
.newsletter p { opacity: 0.75; margin-bottom: 2rem; }
.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  font-family: var(--font-sans);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form button {
  padding: 0.9rem 1.6rem;
  background: #fff;
  color: var(--color-ink);
  border: none;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  cursor: pointer;
}

/* PDP page — white/minimal, matches lennyniemeyer.com.br product page structure */
.pdp-page { background: #fff; }

.pdp-header { border-bottom: 1px solid #eee; }
.pdp-header-top {
  max-width: 1500px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.pdp-header-left, .pdp-header-right {
  display: flex;
  gap: 1.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pdp-header-right { justify-self: end; }
.pdp-header-link { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.pdp-header-icon { font-size: 1rem; }
.pdp-logo { font-size: 1.5rem; letter-spacing: 0.2em; }
.pdp-nav {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0.9rem 2rem 1.1rem;
  display: flex;
  justify-content: center;
  gap: 2.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  border-top: 1px solid #f1f1f1;
}
.pdp-nav a:hover { border-bottom: 1px solid currentColor; }

.pdp-main { max-width: 1500px; margin: 0 auto; }

/* Breadcrumb */
.breadcrumb {
  padding: 1.2rem 2rem 0;
  font-size: 0.78rem;
  color: #666;
  display: flex;
  gap: 0.5rem;
}
.breadcrumb .current, .breadcrumb a { color: #333; }
.breadcrumb .current { font-weight: 500; }

/* PDP layout: thumbs | main image | info panel */
.pdp {
  padding: 1.6rem 2rem 4rem;
  display: grid;
  grid-template-columns: 90px 1fr 420px;
  gap: 1.5rem;
  align-items: start;
}
.pdp-thumbs-col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.pdp-thumb {
  border: 1px solid #eee;
  padding: 0;
  background: #faf7f2;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 816 / 1306;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.is-active { border-color: var(--color-ink); }

.pdp-gallery-main {
  background: #faf7f2;
  overflow: hidden;
  aspect-ratio: 816 / 1306;
  max-height: 82vh;
}
.pdp-gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info { padding-top: 0.2rem; }
.pdp-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.pdp-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.pdp-bookmark {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.pdp-item {
  display: flex;
  gap: 1rem;
  padding-top: 1.2rem;
}
.pdp-item-thumb {
  width: 64px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}
.pdp-item-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-item-name {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.pdp-item-price {
  font-size: 0.88rem;
  margin-bottom: 0.9rem;
}
.pdp-item-price span { color: #777; }
.pdp-item-size-label { font-size: 0.8rem; margin-bottom: 0.5rem; }
.pdp-sizes { display: flex; gap: 1.1rem; }
.size-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.1rem 0;
  color: #444;
}
.size-btn.is-active { color: var(--color-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

.pdp-item-links {
  display: flex;
  gap: 1.6rem;
  margin: 0.6rem 0 0 5rem;
  font-size: 0.75rem;
}
.pdp-item-links a { text-decoration: underline; text-underline-offset: 3px; color: #333; }

.btn-add-bag {
  width: 100%;
  margin-top: 1.6rem;
  padding: 1rem;
  background: var(--color-ink);
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-add-bag:hover { background: #3a352e; }

.pdp-accordion {
  border-top: 1px solid #eee;
  padding: 1rem 0;
}
.pdp-accordion:last-of-type { border-bottom: 1px solid #eee; }
.pdp-accordion summary {
  cursor: pointer;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  list-style: none;
}
.pdp-accordion summary::-webkit-details-marker { display: none; }
.pdp-accordion summary::after { content: "+"; float: right; }
.pdp-accordion[open] summary::after { content: "−"; }
.pdp-accordion p {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #4a453e;
}
.pdp-frete { display: flex; gap: 0.6rem; margin-top: 0.9rem; }
.pdp-frete input {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ddd;
  font-family: var(--font-sans);
}
.pdp-frete button {
  padding: 0.6rem 1.2rem;
  background: var(--color-ink);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.pdp-share {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #333;
}

/* Footer */
.site-footer {
  background: var(--color-sand);
  padding: 4rem 2rem 1.5rem;
}
.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-line);
}
.footer-brand .logo { justify-self: start; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; color: #5c564c; max-width: 26ch; }
.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.1rem;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: #4a453e;
  margin-bottom: 0.7rem;
}
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #6b6558;
  padding-top: 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .logo { font-size: 1.3rem; }
  .category-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 0 2rem 0.5rem;
    margin: 0 -2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-grid::-webkit-scrollbar { display: none; }
  .category-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-caption h1 { font-size: 2.4rem; }
  .banner-mid-caption { padding-left: 6%; background: linear-gradient(180deg, rgba(250,247,242,0.4), rgba(250,247,242,0.95)); align-items: center; text-align: center; padding: 2rem; justify-content: flex-end; padding-bottom: 3rem;}
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; }
  .pdp { grid-template-columns: 1fr; gap: 1.2rem; }
  .pdp-thumbs-col { flex-direction: row; overflow-x: auto; }
  .pdp-thumb { width: 64px; flex-shrink: 0; }
  .pdp-title { font-size: 1rem; }
  .pdp-header-top { grid-template-columns: auto 1fr auto; }
  .pdp-header-left, .pdp-header-right { gap: 0.9rem; }
  .pdp-nav { flex-wrap: wrap; gap: 1rem; }
}
