:root {
  --ink: #24201a;
  --muted: #7f786c;
  --paper: #fcfbf8;
  --cream: #f4efe5;
  --line: #d8c59b;
  --accent: #c39222;
  --gold-light: #e9c961;
  --gold-deep: #9b6c12;
  --white: #fffefb;
}

@font-face {
  font-display: swap;
  font-family: "Gaela";
  src: url("assets/fonts/GAELA.otf") format("opentype");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Trebuchet MS", "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }

.site-header { align-items: center; display: flex; justify-content: space-between; padding: 25px 5vw; position: absolute; width: 100%; z-index: 2; }
.shipping-bar { background: var(--ink); color: var(--white); font-size: 10px; letter-spacing: .08em; padding: 9px 5vw; position: absolute; text-align: center; text-transform: uppercase; top: 0; width: 100%; z-index: 3; }
.shipping-bar span { color: var(--gold-light); margin: 0 10px; }
.brand { align-items: center; display: flex; gap: 10px; }
.brand-logo { display: block; height: 48px; mix-blend-mode: multiply; object-fit: contain; object-position: left center; width: 84px; }
.main-nav { display: flex; gap: 30px; margin-left: 10vw; }
.main-nav a { color: var(--muted); font-size: 14px; letter-spacing: .04em; position: relative; }
.main-nav a.active, .main-nav a:hover { color: var(--ink); }
.main-nav a.active::after { background: var(--accent); bottom: -8px; content: ""; height: 2px; left: 0; position: absolute; width: 17px; }
.bag-button { background: transparent; border: 0; font-size: 14px; letter-spacing: .04em; padding: 7px 0; }
.bag-count { align-items: center; background: var(--ink); border-radius: 50%; color: var(--white); display: inline-flex; font-size: 10px; height: 20px; justify-content: center; margin-left: 7px; width: 20px; }

.hero { background: var(--cream); display: grid; grid-template-columns: 47% 53%; min-height: 720px; overflow: hidden; padding-top: 110px; position: relative; }
.hero::before { border: 1px solid rgba(195,146,34,.35); content: ""; inset: 102px 5vw 28px; pointer-events: none; position: absolute; z-index: 1; }
.hero-copy { align-self: center; padding: 7vw 6vw 10vw 11vw; position: relative; z-index: 1; }
.hero-signature { display: block; height: 155px; margin: 0 0 28px; mix-blend-mode: multiply; object-fit: contain; object-position: left center; width: 265px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .2em; margin: 0 0 22px; text-transform: uppercase; }
h1, h2 { font-family: "Gaela", Georgia, serif; font-weight: 400; letter-spacing: 0; }
h1 { font-size: clamp(3.5rem, 7vw, 6.8rem); line-height: .92; margin: 0; }
h1 em, h2 em { color: var(--accent); font-style: italic; }
.hero-text { color: var(--muted); font-size: 17px; line-height: 1.7; margin: 30px 0; max-width: 390px; }
.hero-actions { display: flex; gap: 12px; }
.button { border: 1px solid var(--accent); display: inline-flex; font-size: 14px; gap: 28px; justify-content: space-between; padding: 14px 18px; transition: .2s ease; }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: var(--accent); border-color: var(--accent); }
.button-light { background: transparent; }
.button-light:hover { background: var(--white); }
.hero-image { background: linear-gradient(180deg, rgba(32,35,31,.03), rgba(32,35,31,.15)), url("https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=1400&q=85") center/cover; min-height: 636px; }
.hero-note { bottom: 31px; color: var(--muted); font-size: 10px; left: 11vw; letter-spacing: .12em; position: absolute; text-transform: uppercase; }
.hero-note span { color: var(--accent); margin: 0 9px; }

.collection { border-top: 1px solid var(--line); margin: auto; max-width: 1400px; padding: 120px 5vw 130px; }
.section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 42px; position: relative; }
.section-heading::after { background: var(--accent); content: ""; height: 1px; left: 0; position: absolute; top: -18px; width: 42px; }
.section-heading h2, .manifesto h2 { font-size: clamp(2.3rem, 4vw, 4.2rem); line-height: .95; margin: 0; }
.section-heading > p { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 320px; }
.collection-tools { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; margin-bottom: 30px; padding-bottom: 16px; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 22px; }
.category-tab { background: transparent; border: 0; border-bottom: 1px solid transparent; color: var(--muted); font-size: 14px; padding: 6px 0; }
.category-tab.active, .category-tab:hover { border-color: var(--accent); color: var(--ink); }
.filter-select { color: var(--muted); font-size: 13px; }
.filter-select select { background: transparent; border: 0; color: var(--ink); font: inherit; margin-left: 8px; outline: 0; }
.empty-products { color: var(--muted); font-size: 14px; padding: 40px 0; }
.product-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.product-image { background-position: center; background-size: cover; display: block; height: 480px; transition: transform .5s ease; }
.product-card { border-top: 1px solid var(--line); overflow: hidden; padding-top: 12px; }
.product-card:hover .product-image { transform: scale(1.025); }
.product-image-one { background-image: url("https://images.unsplash.com/photo-1496747611176-843222e1e57c?auto=format&fit=crop&w=800&q=85"); }
.product-image-two { background-image: url("https://images.unsplash.com/photo-1485968579580-b6d095142e6e?auto=format&fit=crop&w=800&q=85"); }
.product-image-three { background-image: url("https://images.unsplash.com/photo-1485230895905-ec40ba36b9bc?auto=format&fit=crop&w=800&q=85"); }
.product-info { align-items: start; display: flex; justify-content: space-between; padding: 18px 0 12px; }
.product-info h3 { font-family: "Gaela", Georgia, serif; font-size: 19px; font-weight: 400; margin: 0 0 5px; }
.product-info p, .product-info strong { color: var(--muted); font-size: 14px; font-weight: 400; margin: 0; }
.product-info strong { color: var(--ink); font-size: 14px; }
.add-button { background: transparent; border: 0; border-bottom: 1px solid var(--line); display: flex; font-size: 14px; justify-content: space-between; padding: 10px 0; width: 100%; }
.add-button:hover { border-color: var(--accent); color: var(--accent); }
.add-button span { font-size: 18px; line-height: 10px; }
.trust-strip { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 auto; max-width: 1400px; padding: 42px 5vw; }
.trust-strip > div { border-right: 1px solid var(--line); padding: 0 34px; }
.trust-strip > div:first-child { padding-left: 0; }
.trust-strip > div:last-child { border: 0; }
.trust-icon { color: var(--accent); display: block; font-size: 22px; margin-bottom: 14px; }
.trust-strip strong { font-size: 15px; font-weight: 400; }
.trust-strip p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 8px 0 0; max-width: 220px; }
.looks-section { align-items: end; background: #e7eadf; display: flex; justify-content: space-between; padding: 100px 11vw; }
.looks-section h2 { font-size: clamp(2.4rem, 4vw, 4.4rem); line-height: .95; margin: 0; }
.look-copy { max-width: 250px; }
.look-copy p { color: var(--muted); font-size: 16px; line-height: 1.65; }

.manifesto { background: var(--ink); color: var(--white); padding: 125px 11vw; }
.manifesto .eyebrow { color: var(--gold-light); }
.manifesto h2 { max-width: 680px; }
.text-link { border-bottom: 1px solid #777b72; display: inline-flex; font-size: 12px; gap: 30px; margin-top: 45px; padding-bottom: 10px; }
.text-link:hover { border-color: var(--accent); color: var(--gold-light); }
.site-footer { color: var(--muted); display: flex; font-size: 10px; justify-content: space-between; letter-spacing: .08em; padding: 28px 5vw; text-transform: uppercase; }
.toast { background: var(--ink); bottom: 25px; color: var(--white); font-size: 12px; left: 50%; opacity: 0; padding: 13px 18px; pointer-events: none; position: fixed; transform: translate(-50%, 15px); transition: .25s ease; z-index: 4; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.product-dialog { background: var(--paper); border: 0; box-shadow: 0 24px 80px rgba(32,35,31,.25); color: var(--ink); display: grid; grid-template-columns: minmax(250px, 43%) 1fr; max-width: 850px; padding: 0; width: calc(100% - 32px); }
.product-dialog::backdrop { background: rgba(32,35,31,.5); }
.dialog-image { background-position: center; background-size: cover; min-height: 480px; }
.dialog-gallery { background: var(--cream); padding: 18px; }
.gallery-labels { display: flex; gap: 8px; padding-top: 10px; }
.gallery-labels span { border: 1px solid var(--line); color: var(--muted); font-size: 9px; padding: 6px 8px; }
.dialog-content { align-self: center; padding: 48px; }
.dialog-content h2 { font-family: "Gaela", Georgia, serif; font-size: 42px; font-weight: 400; line-height: 1; margin: 0 0 18px; }
.dialog-description { color: var(--muted); font-size: 17px; line-height: 1.65; margin-bottom: 20px; }
.rating { color: var(--accent); font-size: 12px; letter-spacing: .1em; margin: 18px 0; }
.rating span { color: var(--muted); font-size: 13px; letter-spacing: 0; margin-left: 8px; }
.fit-note { border-left: 2px solid var(--accent); color: var(--muted); font-size: 14px; line-height: 1.6; padding-left: 12px; }
.fit-note strong, .size-guide > strong { color: var(--ink); font-weight: 400; }
.size-guide { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }
.size-guide > a { color: var(--accent); float: right; font-size: 13px; }
.size-options { display: flex; gap: 8px; margin-top: 14px; }
.size-options button { background: transparent; border: 1px solid var(--line); font-size: 11px; height: 32px; width: 36px; }
.size-options button.selected, .size-options button:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.dialog-price { display: block; font-size: 15px; margin: 28px 0; }
.stock-note { color: #a4462d; font-size: 13px; margin: -16px 0 14px; }
.dialog-add { width: 100%; }
.dialog-assurance { color: var(--muted); font-size: 13px; line-height: 1.55; text-align: center; }
.dialog-close { background: var(--white); border: 0; font-size: 25px; line-height: 1; padding: 5px 12px; position: absolute; right: 10px; top: 10px; z-index: 1; }
.bag-drawer { background: var(--paper); display: flex; flex-direction: column; height: 100vh; max-width: 430px; padding: 38px; position: fixed; right: 0; top: 0; transform: translateX(100%); transition: transform .3s ease; width: 100%; z-index: 6; }
.bag-drawer.open { transform: translateX(0); }
.bag-drawer-header { align-items: start; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding-bottom: 24px; }
.bag-drawer-header .eyebrow { margin-bottom: 12px; }
.bag-drawer-header h2 { font-size: 38px; line-height: 1; margin: 0; }
.bag-items { flex: 1; overflow-y: auto; padding: 22px 0; }
.bag-empty { color: var(--muted); font-size: 13px; line-height: 1.6; }
.bag-item { border-bottom: 1px solid var(--line); display: flex; gap: 14px; padding: 0 0 18px; margin-bottom: 18px; }
.bag-item-image { background-position: center; background-size: cover; flex: 0 0 82px; height: 105px; }
.bag-item-copy { display: flex; flex-direction: column; gap: 7px; padding-top: 5px; }
.bag-item-copy strong { font-family: "Gaela", Georgia, serif; font-size: 17px; font-weight: 400; }
.bag-item-copy span { color: var(--muted); font-size: 12px; }
.bag-item-copy button { background: none; border: 0; color: var(--accent); font-size: 11px; padding: 0; text-align: left; width: fit-content; }
.bag-summary { border-top: 1px solid var(--line); padding-top: 22px; }
.bag-summary > div { display: flex; font-size: 13px; justify-content: space-between; margin-bottom: 18px; }
.bag-summary strong { font-weight: 500; }
.bag-summary .button { justify-content: space-between; width: 100%; }
.bag-backdrop { background: rgba(32,35,31,.45); inset: 0; opacity: 0; pointer-events: none; position: fixed; transition: opacity .3s ease; z-index: 5; }
.bag-open .bag-backdrop { opacity: 1; pointer-events: auto; }
.checkout-dialog { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 80px rgba(36,32,26,.25); color: var(--ink); max-width: 620px; padding: 0; width: calc(100% - 32px); }
.checkout-dialog::backdrop { background: rgba(36,32,26,.5); }
.checkout-content { padding: 48px; }
.checkout-content h2 { font-size: 42px; line-height: .96; margin: 0 0 16px; }
.checkout-intro { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 28px; }
.checkout-dialog form { display: grid; gap: 14px; }
.checkout-dialog label { color: var(--muted); display: grid; font-size: 11px; gap: 7px; letter-spacing: .04em; }
.checkout-dialog input { background: var(--white); border: 1px solid var(--line); border-radius: 0; color: var(--ink); font: inherit; font-size: 14px; outline: 0; padding: 11px 12px; width: 100%; }
.checkout-dialog input:focus { border-color: var(--accent); }
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form-submit { border-color: var(--ink); margin-top: 8px; width: 100%; }
.form-submit:disabled { cursor: wait; opacity: .65; }
.form-error { color: #a4462d; font-size: 12px; line-height: 1.5; margin: 0; min-height: 18px; }

@media (max-width: 760px) {
  .site-header { padding: 50px 6vw 18px; }
  .main-nav { display: none; }
  .hero { display: block; min-height: 0; padding-top: 126px; }
  .hero-copy { padding: 70px 8vw 55px; }
  .hero::before { inset: 90px 5vw 18px; }
  .hero-signature { margin-bottom: 34px; }
  h1 { font-size: clamp(3.3rem, 16vw, 5rem); }
  .hero-image { min-height: 430px; }
  .hero-note { bottom: 17px; left: 8vw; }
  .collection { padding: 80px 8vw; }
  .section-heading { align-items: start; display: block; }
  .section-heading > p { margin-top: 22px; }
  .collection-tools { align-items: start; flex-direction: column; gap: 14px; }
  .category-tabs { gap: 14px; overflow-x: auto; width: 100%; }
  .filter-select { align-self: end; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image { height: 430px; }
  .manifesto { padding: 85px 8vw; }
  .trust-strip { display: block; padding: 20px 8vw; }
  .trust-strip > div, .trust-strip > div:first-child { border-bottom: 1px solid var(--line); border-right: 0; padding: 24px 0; }
  .trust-strip > div:last-child { border-bottom: 0; }
  .looks-section { align-items: start; display: block; padding: 80px 8vw; }
  .look-copy { margin-top: 30px; }
  .site-footer { flex-direction: column; gap: 12px; padding: 25px 8vw; }
  .product-dialog { display: block; }
  .dialog-gallery { padding: 12px; }
  .dialog-image { min-height: 300px; }
  .dialog-content { padding: 30px; }
  .dialog-add { bottom: 0; position: sticky; z-index: 2; }
  .dialog-content h2 { font-size: 34px; }
  .checkout-content { padding: 34px 24px 26px; }
  .checkout-content h2 { font-size: 35px; }
  .form-row { grid-template-columns: 1fr; }
}

/* Galeria de mídia do produto */

.dialog-media-stage {
  position: relative;
  width: 100%;
  min-height: 560px;
  background: #f3f0eb;
  overflow: hidden;
}

.dialog-media-stage .dialog-image {
  width: 100%;
  height: 560px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.dialog-product-video {
  display: block;
  width: 100%;
  height: 560px;
  object-fit: cover;
  background: #111;
}

.media-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.media-thumbnail {
  position: relative;
  flex: 0 0 74px;
  width: 74px;
  height: 92px;
  border: 1px solid #ddd;
  background-color: #eee;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border-radius: 3px;
  overflow: hidden;
}

.media-thumbnail.active {
  outline: 2px solid #222;
  outline-offset: 2px;
}

.video-thumbnail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #191919;
  color: white;
}

.video-play {
  font-size: 22px;
}

.video-thumbnail span:last-child {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .dialog-media-stage,
  .dialog-media-stage .dialog-image,
  .dialog-product-video {
    height: 460px;
    min-height: 460px;
  }

  .media-thumbnail {
    flex-basis: 64px;
    width: 64px;
    height: 80px;
  }
}

/* ===== CORREÇÃO DO MODAL DE PRODUTO ===== */

.product-dialog {
  width: min(1100px, 92vw);
  max-width: 1100px;
  height: auto;
  max-height: 90vh;
  padding: 0;
  border: 0;
  overflow: auto;
  background: #f7f3eb;
}

.product-dialog[open] {
  display: grid;
  grid-template-columns: minmax(0, 55%) minmax(0, 45%);
}

.product-dialog .dialog-gallery {
  width: 100%;
  min-width: 0;
  padding: 18px;
  box-sizing: border-box;
  background: #eee9df;
}

.product-dialog .dialog-content {
  width: auto;
  min-width: 0;
  padding: 54px 48px;
  box-sizing: border-box;
}

.dialog-media-stage {
  width: 100%;
  height: min(68vh, 680px);
  min-height: 520px;
  overflow: hidden;
  background: #eee9df;
}

.dialog-media-stage .dialog-image {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.dialog-product-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
}

.media-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 3px;
}

.media-thumbnail {
  flex: 0 0 68px;
  width: 68px;
  height: 84px;
}

.product-dialog .dialog-close {
  position: fixed;
  z-index: 20;
}

/* Tablet / celular */
@media (max-width: 800px) {
  .product-dialog {
    width: 94vw;
    max-height: 92vh;
  }

  .product-dialog[open] {
    display: block;
  }

  .product-dialog .dialog-gallery {
    padding: 12px;
  }

  .dialog-media-stage {
    height: 55vh;
    min-height: 390px;
  }

  .product-dialog .dialog-content {
    padding: 32px 24px 40px;
  }
}
.hero-banner {
  width: 100%;
  overflow: hidden;
  background: #f7f3eb;
}

.hero-banner-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== BANNER PRINCIPAL COM FOTO ORIGINAL ===== */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  min-height: 720px;
  overflow: hidden;
}

.hero-copy {
  padding: 48px 56px;
  position: relative;
  z-index: 2;
}

.hero-image {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 720px;
  overflow: hidden;
  background: #e9e3d8;
}

.hero-main-photo {
  width: 100%;
  height: 100%;
  min-height: 720px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding: 36px 24px;
  }

  .hero-image {
    min-height: 520px;
  }

  .hero-main-photo {
    min-height: 520px;
  }
}

/* KLV_BANNER_AUTOMATICO_START */
.hero-image {
  background-image: url("./assets/regina-banner.png?v=20260922-1") !important;
  background-size: cover !important;
  background-position: center 25% !important;
  background-repeat: no-repeat !important;
  overflow: hidden !important;
}

@media (max-width: 800px) {
  .hero-image {
    background-position: center 20% !important;
  }
}
/* KLV_BANNER_AUTOMATICO_END */
