/* PLUS IDEIAS — escaninhos de papelaria */
:root {
  --birch: #E6D3B3;
  --ink: #1F3A5F;
  --label: #C0392B;
  --graphite: #2C2C2C;
  --paper: #FBF7F0;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body.skin-cubby {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
h1, h2, .brand-name { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; line-height: 1.08; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); margin: 0 0 0.4rem; }
h2, h3 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; }
h3 { font-size: 1.05rem; margin: 0.15rem 0; }
p { margin: 0.35rem 0; }
.brand-name { font-size: clamp(1.35rem, 3vw, 1.85rem); line-height: 1; color: var(--ink); }
.skip-link { position: absolute; left: 0.5rem; top: -4rem; background: var(--paper); z-index: 90; padding: 0.4rem 0.65rem; }
.skip-link:focus { top: 0.4rem; }
[data-site-header], main, [data-site-footer], .cubby-wall, .cubby-drawer { min-width: 0; }
.cubby-wrap { width: min(1100px, calc(100% - 1.4rem)); margin-inline: auto; min-width: 0; }
.cubby-kicker { margin: 0 0 0.3rem; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.75rem; color: var(--label); font-weight: 700; }

/* Header: cabinet top, folder tabs sticking up, text inside the tab */
.cubby-top {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  min-width: 0;
  background: var(--birch);
  border-bottom: 12px solid var(--ink);
  padding: 0 0.7rem;
  min-height: 78px;
}
.cubby-brand {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: 12px 12px 0 0;
  padding: 0.7rem 0.85rem 0.55rem;
  margin-right: 0.3rem;
}
.cubby-brand .brand-name { color: var(--paper); }
.site-nav { margin-left: auto; min-width: 0; }
.site-nav ul { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.3rem; list-style: none; margin: 0; padding: 0; }
.cubby-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  padding: 0.5rem 0.7rem 0.4rem;
  font-weight: 700;
  position: relative;
  top: 2px;
}
.site-nav a[aria-current="page"] { background: var(--label); color: #fff; border-color: var(--label); }
.menu-toggle {
  display: none;
  font-family: "Atkinson Hyperlegible", sans-serif;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 8px 8px 0 0;
  padding: 0.4rem 0.65rem;
}
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  padding: 0.5rem 0.7rem 0.4rem;
  font-weight: 700;
  position: relative;
  top: 2px;
  flex: 0 0 auto;
}
.cart-link strong {
  display: inline-flex;
  min-width: 1.35rem;
  height: 1.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--label);
  color: #fff;
  font-size: 0.75rem;
}

.cubby-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--birch);
  overflow: hidden;
  min-width: 0;
}
.cubby-hero-row {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  padding: 1.2rem 0.8rem 0.4rem;
  min-width: 0;
  overflow: hidden;
}
.cubby-hero .cubby-drawer { flex: 0 0 200px; }
.cubby-pull-a { transform: translateY(28px); }
.cubby-pull-b { transform: translateY(8px); }
.cubby-pull-c { transform: translateY(18px); }
.cubby-hero-copy { background: var(--ink); color: var(--paper); padding: 1.1rem; min-width: 0; }
.cubby-hero-copy a { color: var(--paper); }
.cubby-hero-copy .cubby-kicker { color: #F6C7C2; }

.cubby-pagehead { padding: 1rem 0 0.4rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.3rem 0 0.7rem; }
.filters button {
  font-family: "Atkinson Hyperlegible", sans-serif;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}
.filters button.is-active { background: var(--ink); color: var(--paper); }

.cubby-slant { overflow: hidden; padding: 0.4rem 0.5rem 2.2rem; background: var(--birch); }
.cubby-wall {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.55rem 0.45rem;
  min-width: 0;
}
.cubby-drawer { background: #d7bb96; border: 3px solid var(--graphite); border-radius: 3px; padding: 0.4rem 0.4rem 0.5rem; min-width: 0; box-shadow: 0 8px 0 rgba(44,44,44,0.18); }
.cubby-drawer:nth-child(1) { grid-column: span 5; }
.cubby-drawer:nth-child(2) { grid-column: span 3; }
.cubby-drawer:nth-child(3) { grid-column: span 4; }
.cubby-drawer:nth-child(4) { grid-column: span 4; }
.cubby-drawer:nth-child(5) { grid-column: span 5; }
.cubby-drawer:nth-child(6) { grid-column: span 3; }
.cubby-drawer:nth-child(7) { grid-column: span 7; }
.cubby-drawer:nth-child(8) { grid-column: span 5; }
.cubby-drawer:nth-child(3n+1) { margin-top: 0.55rem; }
.cubby-drawer:nth-child(3n+2) { margin-top: 0.1rem; }
.cubby-drawer:nth-child(3n) { margin-top: 0.9rem; }
.cubby-drawer::before { content: ""; display: block; height: 7px; margin: -0.4rem -0.4rem 0.3rem; background: #c9a67a; border-bottom: 2px solid var(--graphite); }
.cubby-photo { display: block; height: 86px; overflow: hidden; background: var(--ink); }
.cubby-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.cubby-label {
  margin-top: 0.4rem;
  background: var(--paper);
  border: 2px solid var(--label);
  padding: 0.4rem 0.45rem 0.5rem;
}
.cubby-label h3 a { color: var(--graphite); text-decoration: none; }
.cubby-cat { margin: 0; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.cubby-price { color: var(--label); font-weight: 700; margin: 0.1rem 0 0.35rem; }
.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-weight: 700;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 0.5rem 0.7rem;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--label); }
.hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.product-detail, .cart-layout, .checkout-layout, .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 1.5rem;
  min-width: 0;
}
.cubby-stage { background: var(--birch); padding: 1rem; }
.cubby-stage .cubby-photo { height: 320px; }
.field, select.field, textarea.field {
  width: 100%; min-width: 0; font: inherit; color: var(--graphite); background: #fff;
  border: 2px solid var(--ink); padding: 0.6rem 0.7rem;
}
textarea.field { min-height: 8rem; resize: vertical; }
label { display: block; font-weight: 700; margin: 0.6rem 0 0.2rem; }
.field-hint { color: var(--ink); font-size: 0.92rem; }
.checkbox-line { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.5rem 0; font-weight: 400; }
.checkbox-line input { margin-top: 0.25rem; flex: 0 0 auto; }
.pay-option { display: flex; gap: 0.5rem; align-items: flex-start; border: 2px solid var(--ink); background: #fff; padding: 0.65rem; margin: 0.35rem 0; }
.pay-option:has(input:checked) { box-shadow: inset 4px 0 0 var(--label); }
.form-feedback { background: var(--ink); color: var(--paper); padding: 0.7rem 0.8rem; margin-top: 0.7rem; }
.cubby-side { background: var(--birch); border: 2px solid var(--ink); padding: 0.85rem; min-width: 0; }
.summary-row { display: flex; justify-content: space-between; gap: 0.6rem; margin: 0.3rem 0; }
.cubby-cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0.7rem; padding: 0.75rem 0; border-bottom: 2px solid var(--birch); }
.cubby-cart-item .cubby-photo { height: 90px; }
.qty { display: inline-flex; gap: 0.3rem; align-items: center; }
.qty button, .remove-btn { font: inherit; background: var(--paper); border: 2px solid var(--ink); min-width: 2rem; min-height: 2rem; cursor: pointer; }
.remove-btn { margin-top: 0.35rem; }
.legal-page { background: var(--paper); color: var(--graphite); }
.legal-page .legal-article, .legal-page .legal-nav { font-family: "Atkinson Hyperlegible", sans-serif; color: var(--graphite); }
.legal-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1rem 0 2rem; }
.legal-nav { position: static; }
.legal-nav a { display: block; margin: 0.3rem 0; text-decoration: underline; }
.legal-nav a[aria-current="page"] { font-weight: 700; }
.legal-article { max-width: 68ch; min-width: 0; }
.legal-article h1, .legal-article h2 { font-family: "Atkinson Hyperlegible", sans-serif; }
.legal-article h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cubby-facts { list-style: none; padding: 0; }
.cubby-extra { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
.cubby-extra img { width: 100%; height: 180px; object-fit: cover; border: 3px solid var(--label); }
.cubby-footer { background: var(--ink); color: var(--paper); padding: 1.1rem 0 0.8rem; }
.cubby-footer a { color: var(--paper); text-decoration: underline; text-underline-offset: 0.15rem; }
.cubby-news { background: var(--paper); color: var(--graphite); border-top: 6px solid var(--label); padding: 0.85rem; margin-bottom: 1rem; }
.cubby-news a { color: var(--ink); }
.cubby-footgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
.cubby-footgrid a, .cubby-footgrid p { display: block; margin: 0.2rem 0; }
.footer-copy { margin-top: 0.8rem; padding-top: 0.6rem; border-top: 1px solid rgba(251,247,240,0.35); }
.toast { position: fixed; z-index: 70; left: 1rem; right: 1rem; bottom: 1rem; margin-inline: auto; width: fit-content; max-width: calc(100vw - 2rem); background: var(--label); color: #fff; padding: 0.7rem 0.85rem; }
:focus-visible { outline: 3px solid var(--label); outline-offset: 2px; }
@media (min-width: 800px) {
  .cubby-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
  .product-detail, .cart-layout, .checkout-layout, .contact-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .legal-wrap { grid-template-columns: minmax(0, 210px) minmax(0, 1fr); }
  .cubby-footgrid { grid-template-columns: 1.3fr 1fr 1fr; }
  .cubby-extra { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .cubby-top { flex-wrap: wrap; align-items: center; padding-top: 0.4rem; }
  .cubby-brand { order: 1; border-radius: 8px; }
  .menu-toggle { order: 2; }
  .cart-link { order: 3; border-radius: 8px; border-bottom: 2px solid var(--ink); top: 0; }
  .site-nav { display: none; order: 4; flex: 1 0 100%; margin: 0.4rem 0 0.5rem; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .cubby-tab { border-bottom: 2px solid var(--ink); border-radius: 8px; top: 0; }
  .cubby-wall { grid-template-columns: minmax(0, 1fr); transform: none; }
  .cubby-drawer { grid-column: auto !important; }
}
