/* =========================================================
   Lumier Co. — folha de estilo principal
   Paleta extraída do logo: areia, dourado, grafite.
   ========================================================= */

:root {
  --sand:        #E9E5DF;
  --sand-deep:   #DCD6CD;
  --paper:       #F6F4F0;
  --white:       #FFFFFF;
  --ink:         #1B1A18;
  --ink-soft:    #4A4741;
  --muted:       #7C766D;
  --line:        #D8D2C8;
  --gold:        #C09A45;
  --gold-light:  #D8BB77;
  --gold-dark:   #9C7A2E;
  --danger:      #A33A2B;
  --success:     #3F6B4A;

  --radius: 2px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 2px rgba(27, 26, 24, .06);
  --shadow: 0 12px 32px -18px rgba(27, 26, 24, .35);
  --max: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 {
  font-weight: 300;
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .9rem;
  display: block;
}
.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.rule {
  width: 46px; height: 1px; background: var(--gold);
  border: 0; margin: 1.4rem 0;
}
.center .rule { margin-inline: auto; }

/* ---------------- Botões ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.7rem;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .12s ease;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn--sm { padding: .5rem 1rem; font-size: .68rem; letter-spacing: .14em; }
.btn--block { width: 100%; }
.btn--danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn--danger:hover { background: var(--danger); color: #fff; }
.btn[disabled], .btn:disabled { opacity: .45; pointer-events: none; }

.link-underline {
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------------- Cabeçalho ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 244, 240, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand svg, .brand img.mark { width: 26px; height: auto; }
.brand-name {
  font-size: 1.02rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  font-weight: 300;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); padding-block: .4rem; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--gold); transition: right .25s ease;
}
.nav a:hover::after, .nav a.is-active::after { right: 0; }
.nav a.is-active { color: var(--ink); }

.header-tools { display: flex; align-items: center; gap: 1rem; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang-switch a {
  font-size: .66rem; letter-spacing: .14em; padding: .3rem .55rem; color: var(--muted);
}
.lang-switch a.is-active { background: var(--ink); color: var(--paper); }
.cart-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; }
.cart-count {
  min-width: 20px; height: 20px; padding-inline: 5px;
  display: inline-grid; place-items: center;
  background: var(--gold); color: #fff; border-radius: 999px;
  font-size: .68rem; letter-spacing: 0;
}
.nav-toggle { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--ink); margin: 5px 0; }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 74px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--pad) 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; padding-block: .7rem; border-bottom: 1px solid var(--line); }
  .nav form { width: 100%; padding-block: .8rem; }
}

@media (max-width: 560px) {
  .header-inner { gap: .6rem; min-height: 64px; }
  .brand svg, .brand img.mark { width: 20px; }
  .brand { gap: .5rem; }
  .brand-name { font-size: .78rem; letter-spacing: .2em; }
  .header-tools { gap: .55rem; }
  .cart-link { font-size: .66rem; letter-spacing: .1em; }
  .lang-switch a { padding: .25rem .4rem; font-size: .6rem; }
  .nav { inset-block-start: 64px; }
}

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(180deg, var(--sand) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3.5rem, 9vw, 7rem);
  text-align: center;
}
.hero .mark-lg { width: 68px; margin: 0 auto 1.75rem; }
.hero h1 { max-width: 20ch; margin-inline: auto; }
.hero .lead { margin-inline: auto; margin-top: 1rem; }
.hero .actions { margin-top: 2rem; display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

.page-head {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}

/* ---------------- Grade de produtos ---------------- */
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
/* conteúdo principal + coluna lateral (carrinho, conta, admin) */
.split { grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .25s ease, transform .25s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media { aspect-ratio: 4 / 5; background: var(--sand-deep); overflow: hidden; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--sand) 0%, var(--sand-deep) 100%);
}
.card__placeholder img { width: 46px; height: auto; opacity: .55; }
.card__body { padding: 1.1rem 1.2rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.02rem; margin-bottom: .25rem; }
.card__short { font-size: .86rem; color: var(--muted); margin-bottom: .9rem; }
.card__foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.price { font-size: 1.05rem; letter-spacing: .02em; }
.price--old { font-size: .82rem; color: var(--muted); text-decoration: line-through; margin-left: .45rem; }

.badge {
  position: absolute; top: .75rem; left: .75rem;
  background: rgba(27,26,24,.86); color: var(--paper);
  font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: var(--radius);
}
.badge--gold { background: var(--gold); }
.badge--out { background: var(--danger); }

/* ---------------- Página de produto ---------------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.gallery__main { aspect-ratio: 1; background: var(--sand-deep); border: 1px solid var(--line); overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; }
.gallery__thumbs button {
  width: 68px; height: 68px; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; overflow: hidden;
}
.gallery__thumbs button.is-active { border-color: var(--gold); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.spec-list { border-top: 1px solid var(--line); margin: 1.5rem 0; }
.spec-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.spec-list dt, .spec-list .k { color: var(--muted); letter-spacing: .06em; }

.qty-row { display: flex; gap: .75rem; align-items: stretch; margin-top: 1.25rem; flex-wrap: wrap; }
.gallery__main .card__placeholder img { width: 72px; height: auto; }

/* ---------------- Formulários ---------------- */
.field { margin-bottom: 1.1rem; }
.field label, .label {
  display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .4rem;
}
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="url"], input[type="search"], input[type="tel"], input[type="file"], select, textarea {
  width: 100%;
  padding: .7rem .85rem;
  font-family: var(--sans); font-size: .95rem; font-weight: 300;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192,154,69,.16);
}
textarea { min-height: 130px; resize: vertical; }
.qty-row input[type="number"] { width: 90px; flex: 0 0 90px; text-align: center; }
.checkbox { display: flex; align-items: center; gap: .55rem; margin-bottom: .6rem; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--gold-dark); }
.checkbox label { margin: 0; text-transform: none; letter-spacing: .02em; font-size: .9rem; color: var(--ink-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.form-narrow { max-width: 440px; margin-inline: auto; }
.help { font-size: .78rem; color: var(--muted); margin-top: .3rem; }

/* ---------------- Painéis / caixas ---------------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.panel + .panel { margin-top: 1.5rem; }
.panel__title { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }

.summary { position: sticky; top: 100px; }
.summary__row { display: flex; justify-content: space-between; padding: .45rem 0; font-size: .95rem; }
.summary__row--total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .9rem; font-size: 1.15rem; }

/* ---------------- Tabelas ---------------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th {
  text-align: left; font-weight: 400; font-size: .66rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); padding: .75rem .8rem; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td { padding: .85rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover { background: rgba(216,187,119,.07); }
.t-right { text-align: right; }
.t-center { text-align: center; }
.thumb-xs { width: 46px; height: 46px; object-fit: cover; border: 1px solid var(--line); }

/* ---------------- Status ---------------- */
.status {
  display: inline-block; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .28rem .6rem; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap;
}
.status--pending  { color: #8A6D1F; }
.status--paid     { color: var(--success); }
.status--printing { color: #2F5E8A; }
.status--shipped  { color: #4C4A87; }
.status--delivered{ color: var(--success); }
.status--cancelled, .status--refunded, .status--failed { color: var(--danger); }
.status--new { color: var(--gold-dark); }

/* ---------------- Alertas ---------------- */
.flash { margin-bottom: 1rem; }
.alert {
  padding: .8rem 1rem; border-radius: var(--radius); font-size: .9rem;
  border-left: 3px solid; margin-bottom: .6rem; background: var(--white);
}
.alert--success { border-color: var(--success); color: var(--success); }
.alert--error { border-color: var(--danger); color: var(--danger); }

/* ---------------- Processo (home) ---------------- */
.steps { counter-reset: step; }
.step__num {
  font-family: var(--serif); font-size: 2.2rem; color: var(--gold); line-height: 1; display: block; margin-bottom: .5rem;
}

/* ---------------- Rodapé ---------------- */
.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: #CFC9BF;
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
}
.site-footer a { color: #CFC9BF; }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.footer-brand .brand-name { color: var(--paper); }
.footer-title { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: #8C867C; margin-bottom: .9rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .9rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .78rem; color: #8C867C;
}

/* ---------------- Empty state ---------------- */
.empty { text-align: center; padding: clamp(2.5rem, 6vw, 5rem) 1rem; color: var(--muted); }
.empty img { width: 44px; margin: 0 auto 1rem; opacity: .5; }

/* ---------------- Admin ---------------- */
.admin-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
@media (max-width: 900px) { .admin-shell { grid-template-columns: 1fr; } }
.admin-side {
  background: var(--ink); color: #CFC9BF; padding: 1.5rem 1.1rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.admin-side .brand-name { color: var(--paper); font-size: .82rem; }
.admin-nav { display: grid; gap: .15rem; }
.admin-nav a {
  padding: .6rem .75rem; border-radius: var(--radius);
  font-size: .8rem; letter-spacing: .06em; color: #B6AFA4;
}
.admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a.is-active { background: var(--gold); color: #fff; }
.admin-side .foot { margin-top: auto; font-size: .75rem; display: grid; gap: .5rem; }
.admin-main { background: var(--paper); padding: clamp(1.25rem, 3vw, 2.25rem); }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.admin-head h1 { font-size: 1.6rem; margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.stat__label { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.stat__value { font-size: 1.9rem; font-weight: 300; margin-top: .3rem; }
.stat__value--gold { color: var(--gold-dark); }

.toolbar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.1rem; }
.toolbar input[type="search"], .toolbar select { width: auto; min-width: 200px; }
.chip {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .38rem .75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--white);
}
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .8rem; }
.image-grid figure { margin: 0; border: 1px solid var(--line); background: var(--white); }
.image-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.image-grid figcaption { padding: .4rem; text-align: center; }

.inline-form { display: inline; }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ---------------- Utilidades ---------------- */
.stack > * + * { margin-top: 1rem; }
.flex { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.75rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.75rem; }
.small { font-size: .82rem; }
.nowrap { white-space: nowrap; }
.hide { display: none; }
