@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  --bg: #fbfcf9;
  --surface: #fff;
  --ink: #183b2e;
  --muted: #68766c;
  --green: #125c42;
  --pale: #edf3e9;
  --line: #e1e7de;
  --danger: #a72c35;
  --radius: 16px;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button,
a {
  touch-action: manipulation;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
h4 {
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.23;
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.045em;
  font-weight: 800;
}
h2 {
  font-size: 1.65rem;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.12rem;
}
p {
  line-height: 1.7;
  margin: 0 0 16px;
}
small,
.muted {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #71a982;
  outline-offset: 4px;
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 10;
  background: white;
  padding: 16px;
}
.skip-link:focus {
  top: 8px;
}
.topline {
  background: var(--green);
  color: #fff;
  text-align: center;
  font-size: 0.75rem;
  padding: 10px 24px;
  letter-spacing: 0.025em;
}
.topline span {
  margin-left: 26px;
  color: #d6eadc;
}
.site-header {
  max-width: 1240px;
  margin: auto;
  min-height: 96px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 32px;
}
.site-header.auth-header {
  justify-content: center;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Manrope, sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  border-radius: 50%;
}
.brand small {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 0.67rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  margin-top: 4px;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.875rem;
}
.shell {
  max-width: 1176px;
  padding: 32px 0 72px;
  margin: auto;
  min-height: 60vh;
}
.button,
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 11px 20px;
  background: var(--green);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.button:hover,
button:hover {
  text-decoration: none;
  filter: brightness(0.95);
}
.button.secondary,
button.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.button.subtle,
button.subtle {
  background: var(--pale);
  color: var(--green);
}
.compact {
  padding: 9px 14px;
  min-height: 38px;
}
.text-button {
  background: transparent;
  color: var(--green);
  border: 0;
  padding: 6px;
  min-height: 34px;
  font-size: 0.84rem;
}
.danger {
  color: var(--danger);
}
.full {
  width: 100%;
}
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 42px;
  align-items: center;
  background: #edf2e7;
  border: 1px solid #e4eadc;
  border-radius: 22px;
  padding: 52px 58px;
  overflow: hidden;
}
.eyebrow,
.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 18px;
}
.hero h1 {
  max-width: 620px;
  font-size: clamp(2.4rem, 4.5vw, 3.75rem);
}
.hero h1 em {
  font-style: normal;
  color: #498156;
}
.hero p {
  max-width: 450px;
  color: #5e7062;
  font-size: 0.98rem;
}
.hero .button {
  margin-top: 8px;
}
.hero-art {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.hero-art .book-shape {
  width: 150px;
  height: 213px;
  padding: 25px 18px;
  background: var(--green);
  border-radius: 3px 12px 12px 3px;
  box-shadow: 10px 14px 22px #1b3e2b20;
  border-left: 5px solid #ffffff26;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #e4efcf;
  transform: rotate(-9deg);
}
.hero-art .book-shape:nth-child(2) {
  background: #d4e1bd;
  color: #234c39;
  transform: rotate(11deg);
  margin-top: 55px;
}
.book-shape span {
  font-size: 0.57rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.book-shape strong {
  font-family: Manrope, sans-serif;
  font-size: 1.45rem;
  line-height: 1.2;
}
.book-shape small {
  color: inherit;
  font-size: 0.58rem;
}
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 24px 16px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
  margin-bottom: 42px;
}
.benefits > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.82rem;
}
.benefits svg {
  width: 22px;
  height: 22px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.6;
}
.benefits small {
  display: block;
  margin-top: 4px;
  font-size: 0.73rem;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}
.section-heading h2 {
  margin-bottom: 6px;
}
.section-heading p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}
.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  background: white;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 24px;
  min-height: 38px;
  padding: 8px 17px;
  font-size: 0.8rem;
}
.chip.selected {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.search {
  max-width: 280px;
  width: 100%;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.product-card {
  position: relative;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-share {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 32px;
  z-index: 2;
}
.card-share:hover {
  background: var(--green);
}
.card-share img {
  height: 17px;
  width: 17px;
}
.card-share:hover img {
  filter: brightness(0) invert(1);
}
.card-art {
  height: 245px;
  background: #f0f3ec;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 24px;
}
.card-art img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(4px 8px 5px #182b1820);
}
.card-type {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  border-radius: 5px;
  background: #fffffff0;
  padding: 6px 9px;
  z-index: 1;
}
.card-body {
  padding: 21px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card h3 {
  font-size: 1.03rem;
  line-height: 1.5;
  margin-bottom: 8px;
}
.card-body > p {
  font-size: 0.83rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px;
}
.price {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 1.22rem;
  color: var(--green);
}
.old-price {
  font-size: 0.79rem;
  font-weight: 400;
  color: #8a918b;
  text-decoration: line-through;
  margin-left: 8px;
}
.price-row {
  margin-top: auto;
  margin-bottom: 18px;
}
.card-actions {
  display: flex;
  gap: 8px;
}
.card-actions > * {
  flex: 1;
  font-size: 0.78rem;
  padding: 10px 8px;
}
.card-sample {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
}
.product-rating {
  color: #b77900;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 10px 0 2px;
}
.product-rating span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
}
.detail-rating {
  font-size: 0.95rem;
  margin: 16px 0;
}
.detail-rating span {
  font-size: 0.88rem;
}
.buy-icon {
  filter: brightness(0) invert(1);
  height: 15px;
  margin-right: 5px;
  vertical-align: -2px;
  width: 15px;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 54px max(32px, calc((100% - 1176px) / 2)) 24px;
  background: #f4f6f0;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(230px, 2fr) repeat(3, minmax(130px, 1fr));
  gap: 36px;
}
.footer-intro {
  max-width: 290px;
}
.footer-brand {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.05em;
}
.site-footer p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.6;
}
.footer-delivery {
  display: inline-flex;
  margin-top: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e7f0e6;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
}
.footer-group {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  border: 0;
  padding: 0;
  justify-content: stretch;
}
.footer-group h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-group a {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  overflow-wrap: anywhere;
}
.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom {
  width: 100%;
  border-top: 1px solid var(--line);
  margin-top: 42px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 0.7rem;
}
.payment-footer {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.payment-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.payment-label img {
  width: 18px;
  height: 18px;
}
.payment-marks {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.payment-mark {
  height: 28px;
  width: 58px;
  min-width: 58px;
  flex: 0 0 58px;
  overflow: hidden;
  border: 1px solid #d7dfd4;
  border-radius: 4px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.visa {
  color: #173a8d;
  font-family: Arial, sans-serif;
  font-size: 0.65rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.05em;
}
.mastercard {
  width: 58px;
  position: relative;
  gap: 0;
  overflow: hidden;
}
.mastercard i {
  position: absolute;
  top: 5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #eb001b;
}
.mastercard i:first-child {
  left: 17px;
}
.mastercard i:nth-child(2) {
  left: 26px;
  background: #f79e1b;
  opacity: 0.95;
}
.mastercard b {
  color: #242424;
  font-family: Arial, sans-serif;
  font-size: 0.36rem;
  font-weight: 700;
  position: absolute;
  bottom: 2px;
}
.payment-mark.amex {
  padding: 2px;
}
.payment-mark.amex img {
  width: 48px;
  height: 22px;
  object-fit: contain;
}
.card-picker {
  border: 0;
  margin: 0;
  padding: 0;
}
.card-picker legend {
  font-weight: 700;
  margin-bottom: 8px;
}
.card-picker-options {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card-picker-options label {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  min-height: 52px;
  padding: 8px;
}
.card-picker-options label:has(input:checked) {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(18, 92, 66, 0.15);
}
.card-picker-options input {
  accent-color: var(--green);
  appearance: auto;
  flex: 0 0 18px;
  height: 18px;
  margin: 0;
  min-height: 0;
  padding: 0;
  width: 18px;
}
.card-picker-options b {
  font-size: 0.92rem;
}
.card-picker-options .mastercard b {
  display: none;
}
@media (max-width: 600px) {
  .card-picker-options {
    grid-template-columns: 1fr;
  }
}
.panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.page-heading {
  margin-bottom: 30px;
}
.page-heading h1 {
  font-size: 2.3rem;
}
.page-heading p {
  color: var(--muted);
}
.auth-wrap {
  max-width: 470px;
  margin: 20px auto;
}
.auth-wrap h1 {
  font-size: 1.9rem;
}
.auth-wrap > p {
  color: var(--muted);
  font-size: 0.88rem;
}
.auth-benefit {
  background: var(--pale);
  border: 1px solid #d9e6d5;
  border-radius: 10px;
  color: var(--green);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 18px 0;
  padding: 11px 14px;
}
.stack {
  display: grid;
  gap: 18px;
}
.stack p {
  margin: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.81rem;
  font-weight: 600;
}
.field small {
  font-weight: 400;
  line-height: 1.5;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d5ded3;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 12px 13px;
  min-height: 44px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #558964;
  outline: 2px solid #e2efdf;
  outline-offset: 1px;
}
textarea {
  resize: vertical;
  min-height: 96px;
}
input[type="checkbox"] {
  width: 17px;
  min-height: 17px;
  flex-shrink: 0;
  margin: 3px 0;
  accent-color: var(--green);
}
input[type="file"] {
  font-size: 0.8rem;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  line-height: 1.6;
  font-weight: 400;
}
.check-row strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
}
.check-row small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}
.check-row a,
.inline-link {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.73rem;
  color: var(--muted);
  margin: 24px 0;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.google-signin {
  position: relative;
}
.google-mark {
  width: 18px;
  height: 18px;
}
.auth-footer {
  text-align: center;
  font-size: 0.81rem;
  margin-top: 23px !important;
}
.notice {
  padding: 14px 18px;
  background: #edf4ea;
  border: 1px solid #d5e4d0;
  border-radius: 9px;
  font-size: 0.84rem;
  line-height: 1.6;
  margin: 16px 0;
}
.notice.warning {
  background: #fff8e8;
  border-color: #e9ddb7;
  color: #715e26;
}
.notice.error,
.form-error {
  color: var(--danger);
  background: #fff2f1;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 0.83rem;
  line-height: 1.6;
}
.empty {
  padding: 56px 24px;
  text-align: center;
  border: 1px dashed #cdd9c9;
  border-radius: 14px;
  background: #f5f8f1;
  grid-column: 1/-1;
}
.empty h3 {
  font-size: 1.25rem;
}
.empty p {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 480px;
  margin: 0 auto 20px;
}
.split {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 28px;
  align-items: start;
}
.line-item {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.line-item img {
  width: 68px;
  height: 82px;
  object-fit: contain;
  background: var(--pale);
  border-radius: 6px;
}
.line-item .item-copy {
  flex: 1;
  min-width: 0;
}
.line-item h3 {
  font-size: 0.9rem;
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}
.line-item small {
  display: block;
  font-size: 0.74rem;
}
.line-item .price {
  font-size: 0.98rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  font-size: 0.9rem;
}
.summary-row.total {
  font-weight: 700;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
  margin-top: 10px;
  padding: 18px 0;
}
.summary-group + .summary-group {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 22px;
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 55px;
  align-items: start;
}
.product-detail .product-cover {
  padding: 40px;
  background: var(--pale);
  border-radius: 18px;
}
.product-cover img {
  width: 100%;
  max-height: 530px;
  object-fit: contain;
}
.product-detail h1 {
  font-size: 2.2rem;
  margin-top: 16px;
}
.product-detail .price {
  font-size: 1.8rem;
}
.product-detail .card-actions {
  margin: 28px 0 16px;
}
.product-detail .card-actions > * {
  font-size: 0.9rem;
}
.prose {
  white-space: pre-line;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.breadcrumb {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 25px;
}
.related {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.badge {
  display: inline-block;
  border-radius: 20px;
  background: #edf3e9;
  color: var(--green);
  padding: 5px 10px;
  font-size: 0.69rem;
  white-space: nowrap;
}
.badge.pending,
.badge.review {
  background: #fff3d7;
  color: #816015;
}
.badge.failed,
.badge.cancelled,
.badge.chargeback {
  background: #fce8e7;
  color: #9f4141;
}
.badge.refunded {
  background: #ececf7;
  color: #575575;
}
.order-card {
  margin-bottom: 18px;
}
.order-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.order-head p {
  margin: 5px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.order-head strong {
  font-size: 0.87rem;
}
.order-card .line-item:last-child {
  border: 0;
  padding-bottom: 0;
}
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 26px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stat {
  padding: 22px;
}
.stat strong {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 1.8rem;
  margin-top: 10px;
}
.stat small {
  font-size: 0.75rem;
}
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}
.admin-aside {
  background: var(--pale);
  border-radius: 12px;
  padding: 22px;
  font-size: 0.82rem;
  line-height: 1.8;
}
.admin-aside ol {
  padding-left: 20px;
  margin-bottom: 0;
}
.form-section {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.form-section h3 {
  margin-bottom: 20px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.82rem;
}
th {
  text-align: left;
  padding: 16px 18px;
  background: #f1f5ee;
  font-weight: 600;
  white-space: nowrap;
}
td {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
td small {
  display: block;
  margin-top: 5px;
}
td:first-child {
  max-width: 360px;
  overflow-wrap: anywhere;
}
.table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.file-note {
  font-size: 0.74rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.pagination {
  display: flex;
  gap: 12px;
  justify-content: end;
  align-items: center;
  margin-top: 20px;
  font-size: 0.8rem;
}
.loading {
  padding: 80px 24px;
  text-align: center;
  color: var(--muted);
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #183b2e;
  color: #fff;
  box-shadow: 0 8px 28px #0002;
  border-radius: 12px;
  padding: 14px 22px;
  max-width: calc(100vw - 32px);
  width: max-content;
  z-index: 20;
  font-size: 0.87rem;
}
.policy-shell {
  max-width: 860px;
  padding: 30px 24px 70px;
  margin: auto;
}
.policy-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--green);
}
.policy-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
}
.policy-card h3 {
  margin-top: 30px;
}
.policy-card p,
.policy-card li {
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--muted);
}
.policy-card a {
  color: var(--green);
  text-decoration: underline;
}
.policy-card ul {
  padding-left: 22px;
}
.policy-card li {
  margin-bottom: 10px;
}
.policy-card strong {
  color: var(--ink);
}
@media (max-width: 1240px) {
  .shell {
    margin: 0 32px;
  }
  .hero {
    padding: 42px;
  }
}
@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
  .hero {
    grid-template-columns: 1fr 1fr;
    padding: 32px;
    gap: 18px;
  }
  .hero-art {
    gap: 10px;
  }
  .hero-art .book-shape {
    width: 120px;
    height: 180px;
    padding: 18px 12px;
  }
  .book-shape strong {
    font-size: 1.15rem;
  }
  .product-grid {
    gap: 16px;
  }
  .card-body {
    padding: 16px;
  }
  .card-art {
    height: 205px;
  }
  .site-header {
    padding: 16px 24px;
  }
  nav {
    gap: 15px;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-aside {
    display: none;
  }
  .split {
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
  }
  .product-detail {
    gap: 30px;
  }
}
@media (max-width: 640px) {
  .topline {
    font-size: 0.65rem;
    padding: 9px;
  }
  .topline span {
    display: none;
  }
  .site-header {
    min-height: auto;
    padding: 13px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 1rem;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .brand small {
    font-size: 0.67rem;
  }
  nav {
    gap: 8px;
    font-size: 0.85rem;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    justify-content: space-between;
  }
  nav .button {
    min-height: 38px;
    font-size: 0.85rem;
  }
  .shell {
    margin: 0 12px;
    padding: 16px 0 40px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero p {
    font-size: 0.88rem;
  }
  .hero-art {
    display: none;
  }
  .benefits {
    gap: 12px;
    padding: 20px 0;
    margin-bottom: 28px;
  }
  .benefits > div {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    font-size: 0.69rem;
  }
  .benefits small {
    display: none;
  }
  .benefits svg {
    height: 20px;
  }
  .section-heading {
    align-items: start;
  }
  .section-heading h2 {
    font-size: 1.4rem;
  }
  .section-heading p {
    font-size: 0.79rem;
  }
  .catalog-tools {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
  }
  .search {
    max-width: none;
  }
  .filters {
    gap: 6px;
    flex-wrap: nowrap;
    margin: 0 -12px;
    overflow-x: auto;
    padding: 2px 12px 6px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar {
    display: none;
  }
  .chip {
    flex: 0 0 auto;
    font-size: 0.75rem;
    padding: 8px 14px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .card-art {
    height: 178px;
    padding: 18px;
  }
  .card-type {
    font-size: 0.52rem;
    top: 10px;
    left: 10px;
  }
  .card-body {
    padding: 14px 12px;
  }
  .product-card h3 {
    font-size: 0.82rem;
  }
  .card-body > p {
    font-size: 0.74rem;
  }
  .price {
    font-size: 1rem;
  }
  .old-price {
    display: block;
    font-size: 0.7rem;
    margin: 5px 0 0;
  }
  .card-actions {
    flex-direction: column;
  }
  .card-actions > * {
    font-size: 0.7rem;
    padding: 9px 5px;
    min-height: 38px;
  }
  .card-sample {
    font-size: 0.65rem;
  }
  .site-footer {
    padding: 34px 20px 20px;
  }
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }
  .footer-intro {
    grid-column: 1 / -1;
  }
  .footer-group {
    gap: 2px;
    border: 0;
    padding: 0;
    justify-content: stretch;
  }
  .footer-group:last-child {
    grid-column: 1 / -1;
  }
  .footer-group h2 {
    font-size: 0.68rem;
  }
  .footer-group a {
    font-size: 0.8125rem;
  }
  .footer-bottom {
    margin-top: 28px;
    font-size: 0.75rem;
    flex-direction: column;
    gap: 12px;
  }
  .payment-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .split,
  .product-detail {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 20px 16px;
  }
  .two-fields {
    grid-template-columns: 1fr;
  }
  .page-heading h1 {
    font-size: 1.9rem;
  }
  .product-detail .product-cover {
    padding: 26px;
  }
  .product-cover img {
    max-height: 350px;
  }
  .product-detail h1 {
    font-size: 1.7rem;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 14px;
  }
  .stat strong {
    font-size: 1.1rem;
  }
  .stat small {
    font-size: 0.65rem;
  }
  .line-item {
    gap: 12px;
    flex-wrap: wrap;
  }
  .line-item img {
    width: 50px;
    height: 65px;
  }
  .order-head {
    align-items: start;
  }
  .order-head strong {
    font-size: 0.78rem;
  }
  .admin-toolbar {
    align-items: start;
    flex-direction: column;
  }
  .policy-card {
    padding: 24px;
  }
  .policy-shell {
    padding: 24px 16px;
  }
  .policy-card h2 {
    font-size: 1.65rem;
  }
  .auth-wrap {
    margin: 4px auto;
  }
  .auth-wrap .panel {
    padding: 22px 16px;
  }
  .auth-wrap h1 {
    font-size: 1.7rem;
  }
  .auth-wrap > p,
  .auth-wrap .notice,
  .auth-wrap .auth-footer {
    font-size: 0.9rem;
  }
  .auth-wrap .field {
    font-size: 0.92rem;
  }
  .auth-wrap input,
  .auth-wrap button,
  .auth-wrap .button {
    font-size: 16px;
    min-height: 48px;
  }
  .auth-wrap .check-row {
    font-size: 0.82rem;
  }
  .auth-wrap .divider {
    margin: 18px 0;
  }
  .product-detail .old-price {
    display: inline;
    margin-left: 8px;
  }
  .empty {
    padding: 38px 16px;
  }
}
@media (max-width: 430px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .card-art {
    height: 260px;
  }
  .card-body {
    padding: 16px;
  }
  .product-card h3 {
    font-size: 1rem;
  }
  .card-body > p {
    font-size: 0.86rem;
  }
  .card-actions {
    flex-direction: row;
  }
  .card-actions > * {
    font-size: 0.82rem;
    min-height: 42px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .button,
  button {
    transition:
      background 0.15s,
      filter 0.15s;
  }
  .product-card {
    transition: box-shadow 0.2s;
  }
  .product-card:hover {
    box-shadow: 0 8px 22px #163c2610;
  }
}
