/* =====================================================
   OFFICE — Estilo Premium
   /public/assets/css/app.css
   ===================================================== */

:root {
  --color-primary: #0A0A0A;
  --color-secondary: #C9A55C;
  --color-text: #1A1A1A;
  --color-muted: #6b6b6b;
  --color-bg: #ffffff;
  --color-soft: #faf9f7;
  --color-border: #e8e4de;
  --color-dark: #0A0A0A;
  --color-gold: #C9A55C;
  --color-gold-light: #d9bc78;

  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.04);
  --shadow-md: 0 8px 32px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.12);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.15;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

a { color: inherit; text-decoration: none; transition: .2s; }
a:hover { color: var(--color-gold); }

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

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========== TOPO / HEADER =========== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--color-primary);
}
.brand img { max-height: 48px; width: auto; }

.nav {
  display: flex; gap: 32px; align-items: center;
  font-size: .92rem; letter-spacing: .12em; text-transform: uppercase;
}

.nav a { position: relative; padding-bottom: 4px; }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--color-gold);
  transition: width .3s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

.nav-cart {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  font-size: .85rem;
}
.nav-cart .badge {
  background: var(--color-gold); color: #fff;
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 1.5rem;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: 70px; right: -100%;
    background: #fff; width: 85%; max-width: 320px;
    height: calc(100vh - 70px);
    flex-direction: column; align-items: flex-start;
    padding: 32px 24px; gap: 20px;
    transition: right .3s;
    box-shadow: -8px 0 32px rgba(0,0,0,.08);
  }
  .nav.open { right: 0; }
}

/* =========== HERO =========== */
.hero {
  position: relative;
  min-height: 640px;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #0A0A0A 0%, #1a1a1a 100%);
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .55;
}
.hero__inner { position: relative; z-index: 2; padding: 80px 24px; max-width: 720px; }
.hero__tag {
  display: inline-block;
  font-size: .8rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--color-gold); margin-bottom: 16px;
}
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero p { font-size: 1.1rem; color: #d8d8d8; margin-bottom: 32px; max-width: 520px; }

/* =========== BOTÕES =========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px;
  border: 1px solid var(--color-primary);
  background: var(--color-primary); color: #fff;
  text-transform: uppercase; letter-spacing: .15em;
  font-size: .82rem; font-weight: 500;
  cursor: pointer;
  transition: all .25s;
  border-radius: 0;
}
.btn:hover { background: var(--color-gold); border-color: var(--color-gold); color: #fff; }

.btn-outline { background: transparent; color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-light { background: #fff; color: var(--color-primary); border-color: #fff; }
.btn-light:hover { background: var(--color-gold); color: #fff; border-color: var(--color-gold); }

.btn-gold { background: var(--color-gold); border-color: var(--color-gold); }
.btn-gold:hover { background: var(--color-primary); border-color: var(--color-primary); }

.btn-sm { padding: 10px 20px; font-size: .75rem; }
.btn-block { width: 100%; }

.btn-whatsapp {
  background: #25D366; border-color: #25D366;
}
.btn-whatsapp:hover { background: #1da851; border-color: #1da851; }

/* =========== SEÇÕES =========== */
section { padding: 80px 0; }
.section-title {
  text-align: center; margin-bottom: 48px;
}
.section-title .tag {
  font-size: .78rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--color-gold); display: block; margin-bottom: 12px;
}

/* =========== GRID DE PRODUTOS =========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

.product-card {
  background: #fff;
  overflow: hidden;
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card__img {
  aspect-ratio: 1/1;
  background: var(--color-soft);
  overflow: hidden;
  position: relative;
}
.product-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.product-card:hover .product-card__img img { transform: scale(1.05); }

.product-card__img .empty {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: #c3bcad; font-size: 3rem;
}

.product-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--color-gold); color: #fff;
  padding: 6px 12px; font-size: .68rem;
  letter-spacing: .2em; text-transform: uppercase;
}

.product-card__body {
  padding: 20px 4px;
  text-align: center;
}
.product-card__sku {
  font-size: .7rem; letter-spacing: .25em;
  color: var(--color-muted); text-transform: uppercase;
  margin-bottom: 6px;
}
.product-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem; margin-bottom: 6px;
}
.product-card__price {
  color: var(--color-gold); font-weight: 600;
  font-size: 1rem;
}

/* =========== CATÁLOGO =========== */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-filters { order: 2; }
}

.catalog-filters {
  background: var(--color-soft);
  padding: 28px;
  position: sticky; top: 110px;
}
.filter-group { margin-bottom: 28px; }
.filter-group h4 {
  font-size: .78rem; letter-spacing: .25em; text-transform: uppercase;
  font-family: var(--font-body); font-weight: 600;
  color: var(--color-primary); margin-bottom: 12px;
}
.filter-group label {
  display: block; padding: 6px 0;
  font-size: .9rem; cursor: pointer;
  color: var(--color-text);
}
.filter-group input[type="checkbox"], .filter-group input[type="radio"] { margin-right: 8px; }

.catalog-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px; border-bottom: 1px solid var(--color-border);
}
.catalog-toolbar .count { font-size: .9rem; color: var(--color-muted); }

/* =========== FORMULÁRIOS =========== */
.form-control, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-family: var(--font-body);
  font-size: .95rem;
  border-radius: var(--radius-sm);
  transition: border-color .2s;
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-gold);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; margin-bottom: 8px;
  font-size: .82rem; letter-spacing: .08em;
  font-weight: 500; text-transform: uppercase;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.search-box {
  position: relative;
}
.search-box input {
  padding-left: 44px;
}
.search-box::before {
  content: '⌕'; position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); font-size: 1.1rem;
  color: var(--color-muted);
}

/* =========== PÁGINA PRODUTO =========== */
.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
}
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
}

.gallery-main {
  aspect-ratio: 1/1;
  background: var(--color-soft);
  margin-bottom: 16px;
  overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.gallery-thumbs img {
  aspect-ratio: 1/1; object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: .2s;
}
.gallery-thumbs img:hover, .gallery-thumbs img.active {
  border-color: var(--color-gold);
}

.product-info__sku {
  font-size: .75rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--color-gold); margin-bottom: 12px;
}
.product-info h1 { margin-bottom: 16px; }
.product-info__price {
  font-size: 2rem; color: var(--color-primary);
  font-family: var(--font-display);
  margin: 16px 0 24px;
}
.product-info__desc {
  color: var(--color-muted); margin-bottom: 28px;
}
.product-info__specs {
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.product-info__specs dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px 20px;
  margin: 0;
}
.product-info__specs dt {
  font-size: .78rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--color-muted); font-weight: 500;
}
.product-info__specs dd { margin: 0; }

.color-swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.color-swatch {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer; position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  transition: .2s;
}
.color-swatch:hover, .color-swatch.selected { border-color: var(--color-gold); }

/* =========== CARRINHO =========== */
.cart-table {
  width: 100%; border-collapse: collapse;
}
.cart-table th {
  text-align: left; padding: 16px 0;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
}
.cart-table td { padding: 20px 0; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.cart-item { display: flex; gap: 16px; align-items: center; }
.cart-item img { width: 80px; height: 80px; object-fit: cover; }
.qty-input {
  width: 70px; padding: 8px;
  text-align: center;
  border: 1px solid var(--color-border);
}

.cart-summary {
  background: var(--color-soft);
  padding: 32px;
  position: sticky; top: 110px;
}

/* =========== FOOTER =========== */
.site-footer {
  background: var(--color-primary);
  color: #d8d8d8;
  padding: 64px 0 24px;
  margin-top: 80px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  color: #fff; font-family: var(--font-body);
  font-size: .85rem; letter-spacing: .22em; text-transform: uppercase;
  margin-bottom: 20px;
}
.site-footer a { color: #d8d8d8; }
.site-footer a:hover { color: var(--color-gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: .92rem; }

.site-footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .82rem; color: #9a9a9a;
}

/* =========== FLASH / ALERTAS =========== */
.flash {
  padding: 14px 20px; margin-bottom: 20px;
  border-left: 4px solid;
  border-radius: var(--radius-sm);
  font-size: .92rem;
}
.flash.success { background: #e8f6ed; border-color: #27ae60; color: #14532d; }
.flash.error   { background: #fdecec; border-color: #e74c3c; color: #7f1d1d; }

/* =========== PAGINAÇÃO =========== */
.pagination {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 48px;
}
.pagination a, .pagination span {
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  font-size: .9rem;
}
.pagination a:hover { border-color: var(--color-gold); color: var(--color-gold); }
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* =========== EMPTY STATE =========== */
.empty-state {
  text-align: center; padding: 80px 20px;
  color: var(--color-muted);
}
.empty-state h3 { color: var(--color-primary); }
