:root {
  --ink: #263238;
  --muted: #66757f;
  --line: #d9e2e5;
  --page: #f7f8f5;
  --surface: #ffffff;
  --sage: #8fb6a2;
  --sage-dark: #426d5d;
  --sky: #d8e9f1;
  --coral: #e98b73;
  --sun: #f2c96d;
  --shadow: 0 18px 45px rgba(38, 50, 56, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(217, 226, 229, 0.82);
  background: rgba(247, 248, 245, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--sage-dark);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  gap: 6px;
}

.main-nav a,
.cart-button,
.category-tabs button,
.cart-header button {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.main-nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 600;
}

.main-nav a:hover,
.category-tabs button:hover {
  background: #fff;
  color: var(--ink);
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 8px 20px rgba(38, 50, 56, 0.07);
}

.header-actions {
  display: flex;
  gap: 8px;
}

.cart-icon {
  font-weight: 700;
}

.cart-button strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 13px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 52px;
  align-items: center;
  min-height: min(760px, calc(100vh - 74px));
  padding: 56px clamp(18px, 5vw, 72px) 48px;
}

.hero-copy {
  min-width: 0;
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  font-size: 76px;
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
}

.hero-copy p:not(.eyebrow),
.contact-band p {
  max-width: 56ch;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-link,
.secondary-link,
.checkout-button,
.add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.primary-link,
.checkout-button,
.add-button {
  background: var(--sage-dark);
  color: #fff;
}

.secondary-link {
  padding: 0 18px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.primary-link {
  padding: 0 20px;
}

.hero-visual {
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(216, 233, 241, 0.88), rgba(255, 255, 255, 0.55)),
    radial-gradient(circle at 80% 20%, rgba(242, 201, 109, 0.45), transparent 31%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shelf {
  position: relative;
  height: 100%;
  min-height: 430px;
}

.shelf::after {
  position: absolute;
  right: 10%;
  bottom: 72px;
  left: 10%;
  height: 24px;
  border-radius: 8px;
  background: #c99c71;
  content: "";
  box-shadow: 0 20px 0 rgba(115, 85, 59, 0.18);
}

.notebook,
.blocks,
.pencils,
.ball {
  position: absolute;
  filter: drop-shadow(0 18px 16px rgba(38, 50, 56, 0.16));
}

.notebook {
  right: 12%;
  bottom: 108px;
  width: 150px;
  height: 190px;
  border: 8px solid #365f8a;
  border-left-width: 18px;
  border-radius: 8px;
  background: #fff;
}

.notebook span {
  display: block;
  width: 82px;
  height: 8px;
  margin: 28px auto;
  border-radius: 99px;
  background: var(--sky);
}

.blocks {
  bottom: 108px;
  left: 12%;
  display: grid;
  grid-template-columns: repeat(3, 74px);
  align-items: end;
}

.blocks span {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 4px solid rgba(38, 50, 56, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

.blocks span:nth-child(1) {
  background: var(--coral);
}

.blocks span:nth-child(2) {
  height: 96px;
  background: var(--sage);
}

.blocks span:nth-child(3) {
  background: #6f91c2;
}

.pencils {
  top: 60px;
  left: 20%;
  display: flex;
  gap: 12px;
  transform: rotate(-9deg);
}

.pencils i {
  display: block;
  width: 24px;
  height: 210px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(#f8efd0 0 12%, var(--sun) 12% 83%, #2f3437 83%);
}

.pencils i:nth-child(2) {
  background: linear-gradient(#f8efd0 0 12%, var(--coral) 12% 83%, #2f3437 83%);
}

.pencils i:nth-child(3) {
  background: linear-gradient(#f8efd0 0 12%, var(--sage-dark) 12% 83%, #2f3437 83%);
}

.ball {
  right: 34%;
  bottom: 118px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: conic-gradient(var(--sun), var(--coral), #6f91c2, var(--sun));
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 72px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.trust-strip article {
  min-height: 120px;
  padding: 24px;
  background: var(--surface);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 6px;
  color: var(--muted);
}

.shop-section {
  padding: 76px clamp(18px, 5vw, 72px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.search-box {
  display: grid;
  width: min(360px, 100%);
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-box input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.category-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border-color: var(--line);
  background: #fff;
  font-weight: 800;
}

.category-tabs .active {
  background: var(--ink);
  color: #fff;
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.filter-title span,
.filter-panel label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel label {
  display: grid;
  gap: 7px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  background: #fff;
  color: var(--ink);
}

.price-filter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.check-filter {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
}

.check-filter input {
  width: auto;
  min-height: auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(38, 50, 56, 0.06);
}

.product-art {
  display: grid;
  height: 168px;
  place-items: center;
  background: #eef4f1;
}

.product-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  background: #fff;
}

.product-shape {
  display: grid;
  width: 98px;
  height: 98px;
  place-items: center;
  border-radius: var(--shape-radius);
  background: var(--art-color, var(--sage));
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  box-shadow: inset 0 -12px 0 rgba(0, 0, 0, 0.08);
}

.product-body {
  padding: 18px;
}

.product-body h3 {
  min-height: 48px;
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.product-body small {
  display: block;
  min-height: 18px;
  margin-bottom: 8px;
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 800;
}

.product-body p {
  display: -webkit-box;
  min-height: 63px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.whatsapp-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 28;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 17px;
  border-radius: 8px;
  background: #168a52;
  color: #fff;
  box-shadow: 0 12px 30px rgba(22, 138, 82, 0.28);
  font-weight: 800;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 18px;
}

.price {
  font-size: 20px;
  font-weight: 800;
}

.add-button {
  min-width: 120px;
  padding: 0 14px;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.detail-page {
  padding: 44px clamp(18px, 5vw, 72px) 72px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.detail-gallery,
.detail-info {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-main-image {
  display: grid;
  min-height: 420px;
  place-items: center;
  background: #f0f5f2;
}

.detail-main-image img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  padding: 22px;
  background: #fff;
}

.detail-main-image .product-shape {
  width: 150px;
  height: 150px;
  font-size: 48px;
}

.thumbs {
  display: flex;
  gap: 10px;
  padding: 12px;
  overflow-x: auto;
}

.thumbs img {
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  padding: 6px;
  background: #fff;
}

.detail-info {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 32px);
}

.detail-info h1 {
  font-size: clamp(32px, 5vw, 58px);
}

.detail-info p {
  color: var(--muted);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-meta span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page);
  font-weight: 800;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
  margin: 0 clamp(18px, 5vw, 72px) 64px;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.school-list-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 30px;
  align-items: start;
  margin: 0 clamp(18px, 5vw, 72px) 64px;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eaf2ee;
}

.school-list-band form,
.account-forms form,
.review-form {
  display: grid;
  gap: 11px;
}

.school-list-band label,
.account-forms label,
.review-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.school-list-band input,
.school-list-band textarea,
.account-forms input,
.review-form input,
.review-form textarea,
.review-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
}

.contact-info {
  display: grid;
  gap: 10px;
}

.contact-info a,
.contact-info span {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page);
  font-weight: 700;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(420px, 100vw);
  height: 100vh;
  background: #fff;
  box-shadow: -20px 0 50px rgba(38, 50, 56, 0.18);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-header,
.cart-footer {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h2 {
  font-size: 24px;
}

.cart-header button {
  min-height: 38px;
  padding: 0 12px;
  border-color: var(--line);
}

.cart-items {
  overflow: auto;
  padding: 14px 18px;
}

.empty-cart {
  color: var(--muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item h3 {
  margin: 0;
  font-size: 15px;
}

.cart-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.quantity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page);
  cursor: pointer;
  font-weight: 800;
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 18px;
}

.checkout-button {
  width: 100%;
}

.shipping-note,
.form-message {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.shipping-note {
  padding: 14px 0;
}

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.order-modal.open {
  display: flex;
}

.order-dialog {
  width: min(560px, 100%);
  max-height: min(760px, 92vh);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(38, 50, 56, 0.24);
  overflow: auto;
}

.detail-dialog {
  width: min(1120px, 100%);
  max-height: min(820px, 94vh);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(38, 50, 56, 0.24);
  overflow: auto;
}

.account-dialog {
  width: min(820px, 100%);
  max-height: 92vh;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(38, 50, 56, 0.24);
  overflow: auto;
}

.account-content {
  padding: 18px;
}

.account-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-forms form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-profile {
  display: grid;
  gap: 12px;
}

.account-order,
.review-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page);
}

.review-section {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 18px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.review-list {
  display: grid;
  gap: 10px;
}

.review-card p {
  margin-bottom: 0;
}

.stars {
  color: #a66c00;
  font-weight: 800;
}

.detail-dialog .product-detail {
  padding: 18px;
}

.order-form {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.order-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.order-form input,
.order-form textarea,
.order-form select,
.variant-picker select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
}

.invoice-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.variant-picker {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.order-form textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  background: rgba(38, 50, 56, 0.35);
}

.overlay.open {
  display: block;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero,
  .contact-band,
  .school-list-band,
  .shop-layout,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .account-forms,
  .review-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  h1 {
    font-size: 58px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: 44px;
  }

  .hero-visual,
  .shelf {
    min-height: 320px;
  }

  .pencils {
    top: 34px;
    left: 14%;
  }

  .pencils i {
    height: 150px;
  }

  .blocks {
    grid-template-columns: repeat(3, 58px);
  }

  .blocks span {
    width: 58px;
    height: 58px;
  }

  .blocks span:nth-child(2) {
    height: 78px;
  }

  .notebook {
    width: 112px;
    height: 150px;
  }

  .ball {
    width: 70px;
    height: 70px;
  }

  .trust-strip,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    display: grid;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .invoice-fields {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 0;
  }
}
