body { padding-top: var(--nav-h); }

/* ═══════════ HERO ═══════════ */
.pg-hero {
  background: var(--dark);
  padding: 44px 56px 36px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.pg-hero-left .section-label { margin-bottom: 10px; }
.pg-hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 80px);
  letter-spacing: 1px; line-height: .9;
}
.pg-hero-title span { color: var(--red); }
.pg-search { display: flex; width: 100%; max-width: 340px; }
.pg-search-input {
  flex: 1; background: var(--panel); border: 1px solid var(--border2);
  border-right: none; color: var(--white); padding: 12px 16px;
  font-family: var(--font-body); font-size: 13px; outline: none;
  transition: border-color .2s;
}
.pg-search-input:focus { border-color: var(--red); }
.pg-search-input::placeholder { color: var(--grey); }
.pg-search-btn {
  background: var(--red); border: none; padding: 0 18px;
  color: var(--white); font-size: 15px; cursor: pointer; transition: background .2s;
}
.pg-search-btn:hover { background: #c01015; }

/* ═══════════ LAYOUT ═══════════ */
.pg-body {
  display: grid;
  grid-template-columns: 272px 1fr;
  min-height: calc(100vh - var(--nav-h) - 130px);
  align-items: start;
}

/* ═══════════ SIDEBAR ═══════════ */
.pg-sidebar {
  background: var(--panel);
  border-right: 1px solid var(--border);
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}
.pg-sidebar::-webkit-scrollbar { width: 4px; }
.pg-sidebar::-webkit-scrollbar-thumb { background: var(--border2); }

/* Header da sidebar */
.sb-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  font-family: var(--font-cond); font-size: 14px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--grey);
  position: sticky; top: 0; background: var(--panel); z-index: 2;
}

/* Item nível 1 — Categoria principal */
.sb-l1 {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 20px; cursor: pointer;
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(255,255,255,.025);
  transition: background .15s, border-color .15s;
  user-select: none;
}
.sb-l1:hover { background: var(--panel2); }
.sb-l1.active { border-left-color: var(--red); background: var(--panel2); }
.sb-l1-icon { font-size: 19px; flex-shrink: 0; }
.sb-l1-name {
  font-family: var(--font-cond); font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--lgrey); flex: 1; transition: color .15s;
  line-height: 1.2;
}
.sb-l1:hover .sb-l1-name, .sb-l1.active .sb-l1-name { color: var(--white); }
.sb-l1-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.sb-badge {
  background: var(--border); color: var(--grey);
  font-family: var(--font-cond); font-size: 12px; font-weight: 700;
  letter-spacing: 1px; padding: 2px 6px; border-radius: 8px;
  transition: background .15s, color .15s;
}
.sb-l1.active .sb-badge { background: var(--red); color: var(--white); }
.sb-arrow {
  font-size: 11px; color: var(--grey);
  transition: transform .25s ease; line-height: 1;
}
.sb-l1.expanded .sb-arrow { transform: rotate(90deg); }

/* Submenu nível 2 */
.sb-l2 {
  display: none;
  background: rgba(0,0,0,.2);
  border-bottom: 1px solid var(--border);
}
.sb-l2.open { display: block; }

.sb-l2-viewall {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px 10px 36px; cursor: pointer;
  font-family: var(--font-cond); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--red); border-left: 3px solid transparent;
  transition: background .15s, border-color .15s;
}
.sb-l2-viewall:hover { background: rgba(229,20,26,.07); border-left-color: var(--red); }

.sb-l2-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 36px; cursor: pointer;
  border-left: 3px solid transparent;
  transition: background .15s, border-color .15s;
  user-select: none;
}
.sb-l2-item:hover { background: rgba(255,255,255,.03); }
.sb-l2-item.active {
  border-left-color: var(--red);
  background: rgba(229,20,26,.05);
}
.sb-l2-item.active .sb-l2-name { color: var(--white); }
.sb-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--border2); flex-shrink: 0;
  transition: background .15s;
}
.sb-l2-item:hover .sb-dot,
.sb-l2-item.active .sb-dot { background: var(--red); }
.sb-l2-name {
  font-family: var(--font-cond); font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--grey); flex: 1; transition: color .15s;
}
.sb-l2-item:hover .sb-l2-name { color: var(--lgrey); }

/* ═══════════ PRODUTOS ═══════════ */
.pg-products { padding: 28px 36px; }

/* Breadcrumb */
.pg-breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 8px;
  font-family: var(--font-cond); font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
}
.bc-item {
  color: var(--grey); cursor: pointer; transition: color .15s;
}
.bc-item:hover { color: var(--white); }
.bc-item.current { color: var(--lgrey); cursor: default; }
.bc-sep { color: var(--border2); }

/* Header de produtos */
.prod-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.prod-title {
  font-family: var(--font-display); font-size: 28px; letter-spacing: 1px;
}
.prod-count {
  font-family: var(--font-cond); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--grey);
  margin-top: 3px;
}
.prod-sort {
  background: var(--panel); border: 1px solid var(--border2); color: var(--lgrey);
  padding: 9px 14px; font-family: var(--font-cond); font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; outline: none; cursor: pointer;
  flex-shrink: 0;
}

/* Grid de produtos */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px; background: var(--border);
}

/* Card de produto */
.prod-card {
  background: var(--panel);
  display: flex; flex-direction: column;
  cursor: pointer; position: relative; overflow: hidden;
  transition: background .2s;
}
.prod-card:hover { background: var(--panel2); }

.prod-card-img {
  aspect-ratio: 1/1;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; overflow: hidden; position: relative;
}
.prod-card-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .4s;
}
.prod-card:hover .prod-card-img img { transform: scale(1.05); }

.prod-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--red); color: var(--white);
  font-family: var(--font-cond); font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; padding: 3px 8px;
}

.prod-body {
  padding: 16px; flex: 1; display: flex; flex-direction: column;
}
.prod-cat {
  font-family: var(--font-cond); font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--grey);
  margin-bottom: 4px;
}
.prod-name {
  font-family: var(--font-cond); font-size: 14px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  line-height: 1.2; margin-bottom: 6px;
}
.prod-desc {
  font-size: 13px; font-weight: 300; color: var(--grey);
  line-height: 1.5; flex: 1; margin-bottom: 14px;
}
.prod-footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
}
.prod-price {
  font-family: var(--font-display); font-size: 22px;
  color: var(--red); letter-spacing: 1px; line-height: 1;
}
.prod-price.consulte {
  font-family: var(--font-cond); font-size: 10px;
  color: var(--grey); letter-spacing: 2px; text-transform: uppercase;
}

/* Botão WhatsApp */
.btn-wa {
  display: inline-flex; align-items: center; gap: 5px;
  background: #25D366; color: #fff; border: none;
  padding: 8px 12px; text-decoration: none;
  font-family: var(--font-cond); font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  transition: background .2s; white-space: nowrap; cursor: pointer;
  flex-shrink: 0;
}
.btn-wa:hover { background: #1ebe5a; }
.btn-wa svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; }

/* Skeleton */
.sk-card { background: var(--panel); }
.sk-img { aspect-ratio: 4/3; background: var(--border); animation: skpulse 1.4s ease-in-out infinite; }
.sk-body { padding: 16px; }
.sk-line { height: 10px; background: var(--border); margin-bottom: 8px; border-radius: 2px; animation: skpulse 1.4s ease-in-out infinite; }
.sk-line.short { width: 60%; }
.sk-line.shorter { width: 40%; }
@keyframes skpulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* Estado vazio */
.empty-state {
  grid-column: 1/-1; text-align: center; padding: 72px 20px;
}
.empty-icon { font-size: 48px; margin-bottom: 14px; filter: grayscale(1); }
.empty-title { font-family: var(--font-display); font-size: 26px; letter-spacing: 1px; margin-bottom: 8px; }
.empty-sub { font-size: 13px; color: var(--grey); }

/* ═══════════ MODAL ═══════════ */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.9);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
  pointer-events: none;
}
.modal-bg.open {
  display: flex;
  pointer-events: all;
}
.modal-box {
  background: var(--panel); border: 1px solid var(--border2);
  width: 100%; max-width: 580px;
  max-height: 90vh; overflow-y: auto; position: relative;
}
.modal-box-img {
  width: 100%; aspect-ratio: 16/9; background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; overflow: hidden;
}
.modal-box-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-box-body { padding: 24px 28px 28px; }
.modal-box-cat {
  font-family: var(--font-cond); font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--grey); margin-bottom: 5px;
}
.modal-box-name {
  font-family: var(--font-display); font-size: 28px;
  letter-spacing: 1px; margin-bottom: 8px; line-height: 1;
}
.modal-box-price {
  font-family: var(--font-display); font-size: 32px;
  color: var(--red); letter-spacing: 1px; margin-bottom: 14px;
}
.modal-box-price.consulte {
  font-family: var(--font-cond); font-size: 12px;
  color: var(--grey); letter-spacing: 3px; text-transform: uppercase;
}
.modal-box-desc {
  font-size: 13px; font-weight: 300; color: var(--lgrey);
  line-height: 1.7; margin-bottom: 22px;
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--panel2); border: 1px solid var(--border2);
  color: var(--lgrey); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: color .15s, border-color .15s;
}
.modal-close:hover { color: var(--white); border-color: var(--grey); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
  .pg-hero { padding: 32px 20px 24px; }
  .pg-body { grid-template-columns: 1fr; }
  .pg-sidebar {
    position: static; height: auto;
    max-height: 56px; overflow: hidden;
    border-right: none; border-bottom: 1px solid var(--border);
    transition: max-height .35s ease;
  }
  .pg-sidebar.mobile-open { max-height: 70vh; overflow-y: auto; }
  .sb-header { cursor: pointer; justify-content: space-between; }
  .sb-header::after {
    content: '▾'; font-size: 14px; color: var(--grey);
    transition: transform .3s;
  }
  .pg-sidebar.mobile-open .sb-header::after { transform: rotate(180deg); }
  .pg-products { padding: 20px 16px; }
  .prod-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
