@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Nunito:wght@700;800;900&display=swap');

:root {
  --ink: #263238;
  --muted: #6f7b80;
  --primary: #3657d6;
  --primary-dark: #2947bb;
  --cream: #fffaf1;
  --surface: #ffffff;
  --line: #e8e8e3;
  --shadow: 0 14px 40px rgba(42, 48, 72, .08);
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "DM Sans", sans-serif; color: var(--ink); background: #fff; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.topbar { background: #25325f; color: #fff; font-size: 12px; }
.topbar-content { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.main-header { background: #fff; border-bottom: 1px solid #f0f0ed; }
.header-content { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-width: 180px; }
.logo-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: #ffcb4d; color: #25325f; font-size: 24px; transform: rotate(-7deg); }
.logo strong, .logo small { display: block; line-height: 1; }
.logo strong { font-family: Nunito, sans-serif; font-size: 20px; font-weight: 900; }
.logo small { font-size: 12px; color: #68727a; margin-top: 3px; }

.search-box { flex: 1; max-width: 560px; height: 46px; display: flex; background: #f5f6f7; border: 1px solid #e9eaeb; border-radius: 14px; overflow: hidden; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; padding: 0 16px; color: var(--ink); }
.search-box button { width: 54px; background: var(--primary); color: white; font-size: 24px; }
.search-box button:hover { background: var(--primary-dark); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-action, .cart-button { display: flex; align-items: center; gap: 8px; background: transparent; color: var(--ink); }
.header-action span, .cart-button span { font-size: 23px; }
.header-action div { text-align: left; }
.header-action small { display: block; color: var(--muted); font-size: 11px; }
.header-action strong, .cart-button strong { display: block; font-size: 13px; }
.cart-button { position: relative; padding-left: 8px; }
.cart-button b { position: absolute; top: -7px; right: -8px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #f05d6c; color: #fff; font-size: 10px; }

.nav { border-bottom: 1px solid var(--line); background: #fff; }
.nav-content { display: flex; align-items: center; gap: 32px; height: 47px; font-size: 13px; font-weight: 600; color: #566068; }
.nav a:hover { color: var(--primary); }

.hero { background: linear-gradient(120deg, #fffaf0 0%, #fff 55%, #eef1ff 100%); overflow: hidden; }
.hero-grid { min-height: 495px; display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: 40px; }
.eyebrow, .section-kicker { display: inline-block; color: #5d6a73; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-copy h1 { font-family: Nunito, sans-serif; font-size: clamp(38px, 5vw, 62px); line-height: .98; letter-spacing: -2px; max-width: 650px; margin: 13px 0 18px; }
.hero-copy h1 em { color: var(--primary); font-style: normal; }
.hero-copy p { max-width: 540px; color: var(--muted); font-size: 17px; }
.hero-buttons { display: flex; gap: 12px; margin-top: 28px; }
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 19px; border-radius: 12px; font-weight: 800; font-size: 13px; transition: .2s; }
.btn-primary { color: #fff; background: var(--primary); box-shadow: 0 9px 20px rgba(54, 87, 214, .22); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary { color: var(--ink); background: #fff; border: 1px solid #dddeda; }
.btn-light { color: #25325f; background: #fff; margin-top: 18px; }
.hero-trust { display: flex; gap: 20px; margin-top: 24px; color: #667078; font-size: 12px; font-weight: 600; }

.hero-art { position: relative; height: 410px; }
.blob { position: absolute; border-radius: 50%; filter: blur(1px); }
.blob-one { width: 330px; height: 330px; background: #dfe5ff; top: 36px; left: 80px; }
.blob-two { width: 180px; height: 180px; background: #ffe4a5; right: 0; bottom: 10px; }
.hero-product { position: absolute; width: 230px; height: 290px; left: 135px; top: 65px; transform: rotate(-6deg); filter: drop-shadow(18px 22px 15px rgba(50,50,60,.14)); }
.product-paper { position: absolute; width: 200px; height: 255px; left: 20px; top: 18px; border-radius: 7px; background: #f7f3e8; transform: rotate(5deg); }
.product-cover { position: absolute; width: 205px; height: 270px; left: 10px; top: 0; border-radius: 7px 13px 13px 7px; background: linear-gradient(145deg, #5269dd, #334bbf); color: #fff; padding: 48px 20px; text-align: center; box-shadow: inset -8px 0 0 rgba(0,0,0,.08); }
.product-cover span { font-size: 15px; font-weight: 900; letter-spacing: .12em; }
.product-cover strong { display: block; font-family: Nunito; font-size: 82px; line-height: .85; color: #ffce58; }
.product-cover small { font-size: 9px; letter-spacing: .2em; }
.product-pencil { position: absolute; width: 24px; height: 300px; background: linear-gradient(90deg,#f2c24c 0 75%,#dca73a 75%); right: -18px; top: 15px; border-radius: 12px; transform: rotate(14deg); }
.floating-card { position: absolute; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); font-size: 30px; z-index: 2; }
.notebook { top: 28px; right: 50px; transform: rotate(9deg); }
.pencil { left: 40px; bottom: 42px; transform: rotate(-12deg); }
.ruler { right: 22px; bottom: 70px; transform: rotate(10deg); }

.section { padding: 76px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { font-family: Nunito, sans-serif; font-size: 31px; line-height: 1.1; margin-top: 5px; }
.section-heading > a { color: var(--primary); font-size: 13px; font-weight: 800; }
.section-heading.centered { justify-content: center; text-align: center; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-card { min-height: 155px; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; transition: .2s; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-blue { background: #e9edff; } .cat-yellow { background: #fff1c9; } .cat-pink { background: #ffe8ed; } .cat-green { background: #e3f4e9; }
.category-icon { font-size: 32px; }
.category-card div strong, .category-card div small { display: block; }
.category-card strong { font-size: 15px; }
.category-card small { color: #6b7377; font-size: 11px; margin-top: 2px; }
.category-arrow { color: #5c6870; font-weight: 900; align-self: end; }

.products { background: #f8f8f5; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { background: #fff; border: 1px solid #eee; border-radius: 18px; overflow: hidden; position: relative; transition: .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-image { height: 205px; display: grid; place-items: center; position: relative; overflow: hidden; }
.product-image::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.35); top: 25px; right: 30px; }
.product-emoji { position: relative; z-index: 1; font-size: 74px; filter: drop-shadow(7px 10px 5px rgba(0,0,0,.1)); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 9px; border-radius: 8px; background: #f05d6c; color: white; font-size: 9px; font-weight: 900; }
.product-info { padding: 16px; }
.product-category { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: #879096; font-weight: 800; }
.product-name { margin-top: 5px; font-size: 14px; font-weight: 700; min-height: 42px; }
.product-rating { margin-top: 7px; font-size: 11px; color: #e5aa28; }
.product-price { margin-top: 12px; display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.product-price strong { font-family: Nunito; font-size: 20px; }
.product-price small { display: block; color: #8a9297; font-size: 10px; }
.add-cart { width: 37px; height: 37px; border-radius: 11px; background: #e9edff; color: var(--primary); font-size: 19px; font-weight: 900; }
.add-cart:hover { background: var(--primary); color: #fff; }

.promo-card { min-height: 245px; border-radius: 25px; padding: 40px 48px; background: linear-gradient(105deg, #273a7c, #4963d9); color: #fff; display: flex; align-items: center; justify-content: space-between; overflow: hidden; }
.promo-label { font-size: 10px; font-weight: 900; letter-spacing: .15em; color: #ffcf5a; }
.promo-card h2 { font-family: Nunito; font-size: 32px; margin-top: 8px; }
.promo-card p { max-width: 520px; color: #e2e6ff; margin-top: 4px; font-size: 14px; }
.promo-visual { display: flex; gap: 8px; align-items: center; transform: rotate(-5deg); }
.promo-visual span { width: 82px; height: 110px; border-radius: 13px; display: grid; place-items: center; background: #fff; font-size: 42px; box-shadow: 0 15px 30px rgba(0,0,0,.18); }
.promo-visual span:nth-child(2) { transform: translateY(-20px) rotate(5deg); }
.promo-visual span:nth-child(3) { transform: translateY(12px) rotate(-4deg); }
.promo-visual span:nth-child(4) { transform: translateY(-5px) rotate(8deg); }

.benefits { background: #fff; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.benefit-card { text-align: center; padding: 25px 16px; }
.benefit-card > span { display: grid; place-items: center; width: 55px; height: 55px; margin: 0 auto 13px; border-radius: 16px; background: #eef1ff; font-size: 25px; }
.benefit-card h3 { font-size: 15px; }
.benefit-card p { color: var(--muted); font-size: 12px; margin-top: 5px; }

.newsletter { background: #fff7e7; padding: 55px 0; }
.newsletter-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.newsletter h2 { font-family: Nunito; font-size: 27px; margin-top: 3px; }
.newsletter p { color: var(--muted); font-size: 13px; }
.newsletter-form { display: flex; width: min(470px, 100%); gap: 8px; }
.newsletter-form input { flex: 1; min-width: 0; border: 1px solid #e1ded5; border-radius: 12px; padding: 0 14px; outline: 0; background: #fff; }

.footer { background: #252b35; color: #fff; }
.footer-grid { padding: 55px 0; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 45px; }
.footer .logo { color: #fff; }
.footer p { max-width: 310px; color: #aeb5bd; font-size: 12px; margin-top: 17px; }
.footer h3 { font-size: 12px; margin-bottom: 14px; }
.footer-grid > div:not(:first-child) a { display: block; color: #aeb5bd; font-size: 11px; margin: 8px 0; }
.socials { display: flex; gap: 8px; margin-bottom: 14px; }
.socials a { width: 32px !important; height: 32px; display: grid !important; place-items: center; border-radius: 10px; background: #333b48; color: #fff !important; margin: 0 !important; font-weight: 800; }
.footer small { color: #8f979f; font-size: 10px; }
.footer-bottom { border-top: 1px solid #373e48; color: #8f979f; padding: 17px 0; font-size: 10px; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; background: #263238; color: #fff; padding: 13px 17px; border-radius: 12px; box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translateY(15px); pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .header-content { flex-wrap: wrap; padding: 14px 0; }
  .search-box { order: 3; flex-basis: 100%; max-width: none; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; padding: 55px 0; }
  .hero-art { max-width: 500px; width: 100%; margin: -10px auto 0; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / 4; }
  .newsletter-inner { flex-direction: column; align-items: stretch; }
  .newsletter-form { width: 100%; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1160px); }
  .topbar-content span:nth-child(2), .topbar-content span:nth-child(3) { display: none; }
  .logo { min-width: auto; }
  .header-action div, .cart-button strong { display: none; }
  .nav-content { gap: 17px; overflow-x: auto; white-space: nowrap; }
  .hero-copy h1 { font-size: 43px; }
  .hero-art { height: 330px; transform: scale(.84); transform-origin: top center; margin-bottom: -55px; }
  .section { padding: 52px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .category-grid, .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .category-card { min-height: 145px; padding: 15px; }
  .product-image { height: 165px; }
  .product-emoji { font-size: 57px; }
  .product-info { padding: 12px; }
  .product-name { font-size: 12px; }
  .product-price strong { font-size: 17px; }
  .promo-card { padding: 30px 25px; }
  .promo-visual { display: none; }
  .benefit-grid { grid-template-columns: 1fr 1fr; gap: 5px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-grid > div:first-child { grid-column: 1 / 3; }
  .footer-grid > div:last-child { grid-column: auto; }
}


/* Kits escolares por escola */
.kit-school {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(255,255,255,.92);
  color: #315bea;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .02em;
}
.kit-section {
  background: linear-gradient(135deg, #f5f7ff 0%, #fffaf1 100%);
  border-top: 1px solid rgba(49,91,234,.08);
  border-bottom: 1px solid rgba(49,91,234,.08);
}
.kit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.kit-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(30,45,80,.06);
  text-decoration: none;
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.kit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(30,45,80,.1);
}
.kit-card .kit-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eef3ff;
  font-size: 28px;
  margin-bottom: 14px;
}
.kit-card .kit-school-name {
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.kit-card h3 {
  font-family: Nunito, sans-serif;
  font-size: 19px;
  margin: 5px 0 7px;
}
.kit-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  margin: 0 0 12px;
}
.kit-card .kit-bottom {
  margin-top: auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}
.kit-card .kit-price {
  font-family: Nunito, sans-serif;
  font-weight: 900;
  font-size: 20px;
}
.kit-card .kit-items {
  color: #7b838b;
  font-size: 9px;
}
.kit-card .kit-arrow {
  color: var(--primary);
  font-size: 20px;
  font-weight: 900;
}
.kit-list-box {
  background: #f7f8fc;
  border: 1px solid #e8ebf2;
  border-radius: 16px;
  padding: 18px;
  margin-top: 18px;
}
.kit-list-box h3 {
  font-family: Nunito, sans-serif;
  margin: 0 0 12px;
  font-size: 18px;
}
.kit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.kit-list li {
  font-size: 11px;
  color: #606a70;
  padding-left: 18px;
  position: relative;
}
.kit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #3d8b5c;
  font-weight: 900;
}
.kit-list li span {
  color: var(--primary);
  font-weight: 900;
}
@media (max-width: 1050px) {
  .kit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .kit-grid { grid-template-columns: 1fr; }
  .kit-list { grid-template-columns: 1fr; }
}

/* Administração */
.admin-body { background: #f7f8fb; color: var(--ink); }
.admin-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.admin-header-inner { min-height: 72px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.admin-nav { display:flex; align-items:center; gap:8px; }
.admin-nav a { padding:10px 14px; border-radius:10px; color:var(--muted); font-weight:700; text-decoration:none; }
.admin-nav a:hover, .admin-nav a.active { color:var(--primary-dark); background:#eef1ff; }
.admin-page { padding-top:42px; padding-bottom:70px; }
.admin-title-row { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:24px; }
.admin-title-row h1 { margin:5px 0 8px; font-size:clamp(28px,4vw,42px); }
.admin-title-row p { margin:0; color:var(--muted); max-width:760px; }
.admin-card { background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:0 10px 30px rgba(20,31,55,.06); padding:24px; margin-bottom:24px; }
.admin-card-header { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:22px; }
.admin-card-header h2 { margin:0 0 5px; font-size:22px; }
.admin-card-header p { margin:0; color:var(--muted); font-size:14px; }
.icon-button { width:36px; height:36px; border:1px solid var(--line); border-radius:10px; background:#fff; font-size:24px; cursor:pointer; color:var(--muted); }
.admin-form label { display:flex; flex-direction:column; gap:7px; font-size:13px; font-weight:800; color:#31394b; }
.admin-form input, .admin-form select, .admin-form textarea, .admin-search { width:100%; box-sizing:border-box; border:1px solid #dce0e8; border-radius:10px; padding:11px 12px; background:#fff; color:var(--ink); font:inherit; outline:none; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus, .admin-search:focus { border-color:#9ca9ef; box-shadow:0 0 0 3px rgba(93,108,214,.10); }
.form-grid-2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.form-actions { display:flex; gap:10px; margin-top:22px; }
.btn-secondary { background:#fff; color:var(--ink); border:1px solid var(--line); }
.admin-search { max-width:280px; }
.admin-table-wrap { overflow:auto; }
.admin-table { width:100%; border-collapse:collapse; min-width:760px; }
.admin-table th { text-align:left; font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:#7b8290; padding:12px 14px; border-bottom:1px solid var(--line); }
.admin-table td { padding:15px 14px; border-bottom:1px solid #eef0f4; vertical-align:middle; }
.admin-table tbody tr:last-child td { border-bottom:0; }
.table-product { display:flex; align-items:center; gap:12px; min-width:250px; }
.table-product strong { display:block; font-size:14px; }
.table-product small { display:block; color:#8a91a0; margin-top:3px; }
.table-emoji { width:44px; height:44px; border-radius:12px; display:grid; place-items:center; font-size:22px; flex:0 0 auto; }
.table-old { display:block; color:#9a9fa9; text-decoration:line-through; font-size:12px; margin-top:3px; }
.table-actions { display:flex; gap:12px; white-space:nowrap; }
.link-button { border:0; background:none; padding:0; color:var(--primary-dark); font-weight:800; cursor:pointer; }
.link-button.danger { color:#c43e4f; }
.table-empty { text-align:center; color:var(--muted); padding:35px !important; }
.status-pill { display:inline-flex; align-items:center; padding:6px 9px; border-radius:999px; background:#f1f3f6; color:#747b88; font-size:12px; font-weight:800; }
.status-used { background:#e8f4ed; color:#28754b; }
.kit-builder { margin-top:24px; padding:18px; border:1px solid var(--line); border-radius:15px; background:#fafbfc; }
.kit-builder-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:14px; }
.kit-builder-head h3 { margin:0 0 4px; font-size:17px; }
.kit-builder-head p { margin:0; color:var(--muted); font-size:13px; }
.kit-builder-row { display:grid; grid-template-columns:minmax(0,1fr) 128px 110px 40px; gap:10px; align-items:center; background:#fff; border:1px solid var(--line); border-radius:11px; padding:10px; margin-bottom:9px; }
.kit-builder-row select { min-width:0; }
.kit-qty-wrap { display:flex; align-items:center; border:1px solid #dce0e8; border-radius:9px; overflow:hidden; }
.kit-qty-wrap button { width:34px; height:38px; border:0; background:#f5f6f8; cursor:pointer; font-size:18px; }
.kit-qty-wrap input { border:0; border-left:1px solid #dce0e8; border-right:1px solid #dce0e8; border-radius:0; text-align:center; padding:8px 3px; min-width:0; }
.kit-row-price { font-weight:800; text-align:right; }
.remove-kit-item { width:34px; height:34px; border:0; border-radius:8px; background:#fff0f1; color:#c43e4f; font-size:20px; cursor:pointer; }
.kit-builder-total { display:flex; justify-content:flex-end; align-items:center; gap:16px; padding-top:14px; margin-top:6px; border-top:1px solid var(--line); }
.kit-builder-total span { color:var(--muted); font-size:13px; }
.kit-builder-total strong { font-size:20px; }
@media (max-width: 800px) {
  .admin-header-inner, .admin-title-row, .admin-card-header, .kit-builder-head { align-items:flex-start; flex-direction:column; }
  .admin-nav { width:100%; overflow:auto; }
  .form-grid-2 { grid-template-columns:1fr; }
  .admin-search { max-width:none; }
  .kit-builder-row { grid-template-columns:1fr; }
  .kit-row-price { text-align:left; }
  .kit-builder-total { justify-content:space-between; }
}
