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

:root {
  --gold: #c6a166;
  --gold-dark: #84602d;
  --gold-soft: #f1e6cf;
  --black: #111111;
  --ink: #171717;
  --text: #242424;
  --muted: #6c6963;
  --bg: #f8f5f0;
  --card: #ffffff;
  --line: #e7e0d6;
  --danger: #cb3030;
  --success: #227443;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(24, 20, 13, .07);
}

html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  font-family: "DM Sans", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img, video { max-width: 100%; display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.container {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
}

/* Header mobile-first */
.site-header {
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.header-top {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.brand-symbol {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: #101010;
  border-radius: 4px;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: .9;
  letter-spacing: .22em;
  font-family: "Manrope", sans-serif;
  color: var(--black);
}
.brand-copy strong { font-size: 15px; font-weight: 800; }
.brand-copy small { font-size: 9px; font-weight: 700; margin-top: 6px; letter-spacing: .45em; }
.cart-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gold);
  color: var(--black);
  border-radius: 12px;
  padding: 0 13px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.cart-badge {
  display: inline-flex;
  min-width: 20px; height: 20px;
  align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--black); color: white;
  font-size: 11px;
}
.search-row { padding: 0 0 13px; }
.search-form { display: flex; gap: 8px; }
.search-form input {
  flex: 1; min-width: 0; height: 44px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 0 14px; background: #fff; color: var(--text);
}
.search-form input:focus { outline: 2px solid rgba(202,163,91,.25); border-color: var(--gold); }
.search-form button {
  height: 44px; border: 0; border-radius: 12px;
  background: var(--black); color: #fff;
  padding: 0 17px; font-weight: 700;
}
.simple-link { font-size: 14px; color: var(--gold-dark); font-weight: 700; }

/* Main */
.store-main { padding: 21px 0 50px; }
.store-intro { margin-bottom: 19px; }
.eyebrow {
  color: var(--gold-dark);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 11px;
  margin-bottom: 7px;
  font-family: "Manrope", sans-serif;
}
.store-intro h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(22px, 7vw, 31px);
  line-height: 1.14;
  letter-spacing: -.035em;
  color: var(--ink);
  margin-bottom: 7px;
}
.store-intro > p:last-child { color: var(--muted); font-size: 14px; }

.filter-panel {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 14px 13px;
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}
.filter-block { min-width: 0; }
.filter-title {
  display: block;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--muted);
  margin: 0 0 8px 2px;
}
.chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  background: #fff;
}
.chip.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: #684b18;
  font-weight: 700;
}
.results-line { color: var(--muted); font-size: 13px; margin: 4px 0 13px; }
.results-line strong { color: var(--ink); }

/* Product gallery */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.products-grid.is-single { grid-template-columns: 1fr; }
.product-card {
  min-width: 0;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid rgba(231,224,214,.86);
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(24, 20, 13, .06);
}
.products-grid.is-single .product-card { width: 100%; }
.media-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #ebe8e2;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.media-open img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.media-open:active img { transform: scale(1.02); }
.media-badge, .zoom-chip {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.media-badge {
  left: 8px; top: 8px;
  background: rgba(17,17,17,.75);
  color: #fff; padding: 4px 8px;
}
.zoom-chip {
  right: 8px; bottom: 8px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  padding: 4px 8px;
}
.product-info { padding: 11px 10px 10px; }
.product-category {
  color: var(--gold-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.product-title {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  line-height: 1.28;
  min-height: 34px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.product-buy { margin-top: 9px; }
.product-price {
  display: block;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 8px;
}
.btn-add-cart {
  min-height: 42px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--gold);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.btn-add-cart.in-cart { background: #e5f1e9; color: var(--success); }
.empty-state {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 48px 22px;
  border-radius: var(--radius);
  text-align: center;
}
.empty-state h2 { font: 800 18px "Manrope", sans-serif; margin-bottom: 7px; }
.empty-state p { color: var(--muted); margin-bottom: 20px; }
.btn-primary {
  display: inline-flex; justify-content: center; align-items: center;
  height: 46px; border-radius: 12px; padding: 0 21px;
  background: var(--gold); color: var(--ink); font-weight: 800;
}
.pagination { display: flex; justify-content: center; gap: 7px; margin: 27px 0 0; }
.page-link {
  min-width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 10px; display: flex; justify-content: center; align-items: center; background: #fff;
}
.page-link.active { background: var(--black); border-color: var(--black); color: white; }

/* Full preview popup */
.preview-modal[hidden] { display: none; }
.preview-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.88); }
.preview-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #101010;
}
.modal-close {
  position: absolute; z-index: 3; top: 12px; right: 12px;
  width: 46px; height: 46px; border: 0; border-radius: 999px;
  background: rgba(0,0,0,.62); color: white; font-size: 30px;
  display: flex; justify-content: center; align-items: center;
}
.modal-media {
  min-height: 0;
  height: calc(100dvh - 156px);
  display: flex; align-items: center; justify-content: center;
  background: #0a0a0a;
}
.modal-media img, .modal-media video {
  width: 100%; height: 100%;
  object-fit: contain;
}
.modal-details {
  background: #fff;
  padding: 15px 16px calc(15px + env(safe-area-inset-bottom));
  display: flex; gap: 12px; align-items: end;
}
.modal-copy { min-width: 0; flex: 1; }
.modal-copy h2 {
  font: 800 16px/1.2 "Manrope", sans-serif;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 5px;
}
.modal-price { font: 800 18px "Manrope", sans-serif; color: var(--ink); }
.modal-cart-form { flex: 0 0 162px; }
.btn-modal-cart {
  width: 100%; min-height: 50px; border: 0; border-radius: 12px;
  background: var(--gold); color: var(--black);
  font-size: 13px; line-height: 1.15; font-weight: 800; padding: 0 10px;
}

/* Cart */
.checkout-layout { padding: 26px 0 44px; display: grid; gap: 18px; }
.cart-section h1 {
  font: 800 clamp(24px, 7vw, 30px)/1.1 "Manrope", sans-serif;
  margin-bottom: 18px;
}
.cart-items { display: grid; gap: 10px; }
.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr 38px;
  gap: 12px;
  align-items: center;
  background: var(--card);
  padding: 9px;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.cart-thumb { width: 76px; height: 76px; border-radius: 9px; object-fit: cover; }
.cart-item-info { min-width: 0; }
.cart-item-info small {
  display: block; text-transform: uppercase; letter-spacing: .12em;
  font-size: 9px; font-weight: 800; color: var(--gold-dark); margin-bottom: 3px;
}
.cart-item-info strong {
  display: block; font: 800 14px/1.25 "Manrope", sans-serif;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item-price { font-weight: 800; font-size: 15px; display: block; margin-top: 6px; }
.btn-remove {
  width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: #f5f1ec; font-size: 22px; color: var(--muted);
}
.cart-total {
  margin-top: 13px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  display: flex; justify-content: space-between; align-items: center; padding: 16px;
}
.cart-total strong { font: 800 22px "Manrope", sans-serif; }
.checkout-form-section {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 19px 16px; box-shadow: var(--shadow);
}
.checkout-form-section h2 { font: 800 19px "Manrope", sans-serif; margin-bottom: 16px; }
.checkout-form label { font-weight: 700; font-size: 13px; display: block; margin-bottom: 14px; }
.checkout-form input {
  display: block; width: 100%; height: 48px; margin-top: 6px;
  border: 1px solid var(--line); border-radius: 11px; padding: 0 13px;
}
.checkout-form small { display: block; margin-top: 5px; color: var(--muted); font-weight: 400; }
.checkout-notice {
  padding: 12px; border-radius: 11px; margin: 5px 0 15px;
  background: #faf5eb; color: #594218; border: 1px solid #ead8b3; font-size: 13px;
}
.btn-checkout {
  width: 100%; min-height: 51px; border: 0; border-radius: 12px;
  background: var(--gold); color: var(--black); font-weight: 800;
}
.alert-error {
  padding: 12px; margin-bottom: 12px; border-radius: 10px;
  color: var(--danger); background: #fff0f0; border: 1px solid #f2c5c5;
}
.site-footer {
  padding: 27px 16px calc(27px + env(safe-area-inset-bottom));
  text-align: center; background: var(--black); color: #d7c7aa;
  font-size: 13px; margin-top: 30px;
}

/* Wider screens */
@media (min-width: 520px) {
  .container { width: min(100% - 44px, 1180px); }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 18px; }
  .products-grid.is-single { grid-template-columns: minmax(260px, 365px); }
  .media-open { aspect-ratio: 4 / 3; }
}
@media (min-width: 760px) {
  .site-header { backdrop-filter: blur(12px); }
  .header-top { height: 72px; }
  .search-row { position: absolute; width: min(430px, 40vw); top: 14px; left: calc(50% - min(430px, 40vw)/2); padding: 0; }
  .brand-symbol { width: 45px; height: 45px; }
  .brand-copy strong { font-size: 18px; }
  .store-main { padding: 42px 0 74px; }
  .store-intro { max-width: 580px; margin-bottom: 27px; }
  .filter-panel { grid-template-columns: auto 1fr; gap: 28px; padding: 18px 20px; }
  .results-line { margin: 27px 0 17px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
  .product-info { padding: 15px 15px 14px; }
  .product-title { font-size: 15px; }
  .product-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .product-price { margin-bottom: 0; }
  .btn-add-cart { width: auto; padding: 0 15px; }
  .preview-modal { align-items: center; padding: 28px; }
  .preview-dialog { max-width: 1020px; height: min(88vh, 780px); border-radius: 20px; overflow: hidden; flex-direction: row; }
  .modal-media { height: 100%; flex: 1; }
  .modal-details { width: 330px; display: block; padding: 30px 24px; }
  .modal-copy h2 { font-size: 21px; white-space: normal; margin: 9px 0 18px; }
  .modal-price { display: block; margin-bottom: 25px; }
  .modal-cart-form { width: 100%; }
  .checkout-layout { grid-template-columns: 1fr 390px; gap: 34px; padding-top: 46px; }
}
@media (max-width: 359px) {
  .cart-label { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .modal-details { flex-direction: column; align-items: stretch; }
  .modal-cart-form { flex-basis: auto; }
}

.gallery-logo{display:block;width:121px;flex-shrink:0}
.gallery-logo img{display:block;width:100%;height:auto}
@media(min-width:760px){.gallery-logo{width:165px}}

/* V6.2 — navegação de marca */
.gallery-logo{transition:opacity .2s ease}
.gallery-logo:hover{opacity:.7}
@media(min-width:760px){.filter-panel{box-shadow:0 12px 34px rgba(34,27,19,.06)}}
