:root {
  color-scheme: light;
  --ink: #202820;
  --muted: #6b756d;
  --green: #2f5b43;
  --green-dark: #234632;
  --lime: #d8edaa;
  --paper: #f7f8f3;
  --card: #fff;
  --line: #e4e9df;
  --error: #b42318;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.site-header { height: 82px; padding: 0 max(5vw, 22px); display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--green); color: #fff; font: 800 17px "Segoe UI", sans-serif; }
.brand strong, .brand small { display: block; }
.brand strong { font: 800 15px "Segoe UI", sans-serif; letter-spacing: -.03em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.header-actions, .catalog-tools { display: flex; align-items: center; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 17px; border: 0; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 13px; cursor: pointer; transition: .18s ease; }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.button-quiet { background: #f0f3ec; color: var(--ink); }
.button-quiet:hover { background: #e6ecdf; }
.button-dark { background: #202820; color: #fff; }
.button-wide { width: 100%; }
#cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; padding: 0 5px; background: #ffffff2b; }
.page { max-width: 1240px; margin: auto; padding: 0 26px; }
.intro { min-height: 410px; margin: 36px 0 78px; padding: 54px 7%; display: flex; align-items: center; justify-content: space-between; gap: 50px; border-radius: 18px; color: #fff; background: radial-gradient(circle at 90% 15%, #70906b 0, transparent 33%), linear-gradient(120deg, #274a36, #3f6245); overflow: hidden; }
.intro > div:first-child { max-width: 620px; }
.eyebrow { margin: 0 0 12px; color: #739167; text-transform: uppercase; font-weight: 700; font-size: 10px; letter-spacing: .16em; }
.intro .eyebrow { color: var(--lime); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Segoe UI", Arial, sans-serif; }
.intro h1 { margin: 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.07; letter-spacing: -.06em; }
.intro h1 span { color: var(--lime); }
.intro-copy { max-width: 500px; margin: 21px 0 26px; color: #dce5dc; line-height: 1.7; font-size: 14px; }
.intro .button { background: var(--lime); color: #263b2b; }
.intro-note { width: min(250px, 30%); padding: 25px; border: 1px solid #ffffff36; border-radius: 14px; background: #ffffff0d; backdrop-filter: blur(6px); }
.note-icon { display: block; margin-bottom: 19px; color: var(--lime); font-size: 35px; }
.intro-note strong { font: 700 17px/1.35 "Segoe UI", sans-serif; }
.intro-note p { margin: 10px 0 0; color: #dce5dc; font-size: 12px; line-height: 1.65; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 23px; }
.section-heading h2, .contact-strip h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.05em; }
.search-box { display: flex; align-items: center; gap: 8px; width: 220px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); }
.search-box input { width: 100%; height: 42px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.search-box span { font-size: 22px; }
.category-list { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 17px; scrollbar-width: thin; }
.category-chip { flex: 0 0 auto; padding: 9px 14px; border: 1px solid var(--line); border-radius: 30px; background: #fff; color: var(--muted); font-size: 12px; cursor: pointer; }
.category-chip.active, .category-chip:hover { border-color: var(--green); background: var(--green); color: #fff; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; min-height: 220px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--card); transition: .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px #233b2910; }
.product-gallery { min-width: 0; background: #edf0e9; }
.product-image { position: relative; display: block; width: 100%; aspect-ratio: 1/1; padding: 0; border: 0; background: #edf0e9; overflow: hidden; cursor: pointer; }
.product-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.photo-count { position: absolute; right: 12px; bottom: 12px; padding: 6px 9px; border-radius: 20px; background: #202820c9; color: #fff; font-size: 10px; }
.product-thumbnails { display: flex; gap: 6px; overflow-x: auto; padding: 8px; scrollbar-width: thin; }
.product-thumb { flex: 0 0 42px; width: 42px; height: 42px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 6px; background: #fff; cursor: pointer; }
.product-thumb.active { border-color: var(--green); }
.product-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-info { display: flex; flex: 1; flex-direction: column; padding: 17px; }
.product-category { margin: 0 0 6px; color: #76906f; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.product-info h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.35; letter-spacing: -.03em; }
.product-description { display: -webkit-box; min-height: 42px; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.6; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 15px; }
.product-price { font: 800 18px "Segoe UI", sans-serif; }
.product-price small { display: block; margin-top: 3px; color: var(--muted); font: 500 10px "Segoe UI", sans-serif; }
.detail-button { min-height: 38px; padding: 0 12px; font-size: 11px; }
.loading, .empty-state { grid-column: 1/-1; padding: 55px 20px; text-align: center; color: var(--muted); }
.seo-product-page { min-height: calc(100vh - 150px); padding-top: 25px; padding-bottom: 60px; }
.seo-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: var(--muted); font-size: 12px; }
.seo-breadcrumbs a { color: var(--green); text-decoration: none; }
.seo-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 38px; align-items: start; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.seo-product-image { overflow: hidden; border-radius: 10px; background: #edf0e9; }
.seo-product-image img { display: block; width: 100%; aspect-ratio: 1/1; object-fit: contain; }
.seo-product-info h1 { margin: 0 0 12px; font-size: clamp(26px, 4vw, 40px); line-height: 1.15; letter-spacing: -.04em; }
.seo-product-sku { color: var(--muted); font-size: 12px; }
.seo-product-description { color: var(--muted); font-size: 14px; line-height: 1.75; white-space: pre-line; }
.seo-product-price { margin: 22px 0; font-size: 24px; font-weight: 800; }
.contact-strip { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 25px; margin: 82px 0 45px; padding: 28px 32px; border-radius: 14px; background: #e9eee4; }
.contact-strip .eyebrow { margin-bottom: 7px; }
.contact-strip h2 { font-size: 24px; }
.contact-strip > p { max-width: 330px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px max(5vw, 22px); border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.site-footer a { color: var(--green); text-decoration: none; }
dialog.modal { position: fixed; width: min(780px, calc(100vw - 28px)); max-width: none; max-height: min(90vh, 900px); padding: 28px; border: 0; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 25px 90px #121c1690; overflow: auto; }
dialog.modal::backdrop { background: #17231bb8; backdrop-filter: blur(3px); }
.modal-close { position: absolute; top: 13px; right: 15px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f0f3ec; color: var(--ink); font-size: 23px; cursor: pointer; }
.modal-heading { margin-bottom: 19px; }
.modal-heading .eyebrow { margin-bottom: 5px; }
.modal-heading h2, .success-modal h2 { margin: 0; font-size: 27px; letter-spacing: -.05em; }

.product-detail-layout { display: grid; grid-template-columns: 1fr; gap: 26px; padding-top: 10px; }
.detail-title { margin: 0 42px 12px 0; color: var(--ink); font-size: 24px; line-height: 1.2; letter-spacing: -.05em; }
.detail-config { margin: 12px 0 18px; }
.detail-config > .field-label { max-width: 260px; }
.detail-designs { margin-top: 14px; }
.design-color { margin: -2px 0 9px; color: var(--muted); font-size: 11px; }
.design-color strong { color: var(--ink); }
.detail-main-image { width: 100%; aspect-ratio: 1/1; object-fit: contain; border-radius: 10px; background: #edf0e9; }
.detail-thumbnails, .mockup-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.detail-thumb { width: 58px; height: 58px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 7px; background: #edf0e9; cursor: pointer; }
.detail-thumb.active { border-color: var(--green); }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy h2 { margin: 0 32px 10px 0; font-size: 24px; line-height: 1.2; letter-spacing: -.05em; }
.detail-copy > p { color: var(--muted); font-size: 13px; line-height: 1.7; white-space: pre-line; }
.detail-copy .detail-price { margin: 17px 0; font: 800 25px "Segoe UI", sans-serif; }
.detail-copy .detail-price span { display: block; margin-top: 4px; color: var(--muted); font: 500 11px "Segoe UI", sans-serif; }
.field-label { display: block; margin: 13px 0 6px; font-size: 11px; font-weight: 700; }
.field-control { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); }
.mockup-list { align-items: flex-start; }
.mockup-item { display: grid; justify-items: center; gap: 5px; }
.mockup-choice { position: relative; display: grid; place-items: center; width: 100px; height: 100px; min-width: 100px; min-height: 100px; padding: 0; border: 2px solid transparent; border-radius: 8px; background: #f2f4ef; overflow: hidden; cursor: pointer; }
.mockup-choice.active { border-color: var(--green); box-shadow: 0 0 0 2px #cfe1c4; }
.mockup-choice.active:not(.mockup-clear)::after { content: "✓"; position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #fff; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 1px 3px rgb(0 0 0 / 25%); }
.mockup-choice img { display: block; width: 96px; height: 96px; object-fit: contain; }
.mockup-clear { align-content: center; gap: 2px; padding: 5px; color: var(--muted); font-size: 9px; text-align: center; }
.clear-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px dashed #9aa597; border-radius: 6px; font-size: 23px; }
.mockup-zoom { padding: 3px 4px; border: 0; border-radius: 4px; background: #f0f3ec; color: var(--green); font-size: 9px; cursor: pointer; }
.mockup-zoom:hover { background: #e6ecdf; }
.custom-layout-toggle { margin-top: 13px; }
.custom-layout-toggle.active { background: var(--green); color: #fff; }
.custom-layout-form { margin-top: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fafbf8; }
.custom-layout-form[hidden] { display: none; }
.custom-layout-form input[type=file] { min-height: 0; }
.custom-layout-form textarea { resize: vertical; }
.custom-layout-status { margin: 5px 0; color: var(--muted); font-size: 11px; }
.custom-layout-preview { display: block; width: 100px; height: 100px; margin: 8px 0; object-fit: contain; border-radius: 7px; background: #edf0e9; }
.custom-layout-files { margin: 6px 0; padding-left: 18px; color: var(--muted); font-size: 11px; }
.custom-layout-form .button { min-height: 36px; margin-top: 5px; font-size: 11px; }
.mockup-preview-modal { width: min(370px, calc(100vw - 28px)) !important; text-align: center; }
.mockup-preview-modal img { display: block; width: 280px; height: 280px; margin: 15px auto 0; object-fit: contain; }
.detail-actions { display: flex; gap: 10px; margin-top: 20px; }
.quantity-input { width: 70px; text-align: center; }
.cart-modal { width: min(640px, calc(100vw - 28px)) !important; }
.cart-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 56px; height: 56px; border-radius: 7px; object-fit: cover; background: #edf0e9; }
.cart-line strong { display: block; font-size: 12px; }
.cart-line small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.cart-custom-layout { display: flex; align-items: flex-start; gap: 7px; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.cart-custom-layout img { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 5px; object-fit: cover; background: #edf0e9; }
.cart-custom-layout strong { display: inline; color: var(--ink); font-size: inherit; }
.cart-custom-layout ul { margin: 3px 0 0; padding-left: 15px; }
.cart-line-tools { display: flex; align-items: center; gap: 7px; }
.cart-line-tools button { width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; margin: 18px 0; font-weight: 800; }
.cart-notice { margin: 0 0 10px; padding: 9px 11px; border-radius: 7px; background: #f4f7ef; color: var(--muted); font-size: 11px; line-height: 1.5; }
.checkout-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-form .full { grid-column: 1/-1; }
.checkout-form input, .checkout-form textarea, #tier-code { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 7px; }
.checkout-form textarea { min-height: 75px; resize: vertical; }
.form-error { min-height: 18px; color: var(--error); font-size: 11px; }
.client-status { margin: 0 0 12px; padding: 11px 13px; border-radius: 8px; background: #eef3e8; color: var(--green-dark); font-size: 12px; line-height: 1.55; }
.code-modal #client-logout { margin-top: 9px; }
.success-modal { width: min(430px, calc(100vw - 28px)) !important; text-align: center; }
.success-mark { display: grid; place-items: center; width: 55px; height: 55px; margin: 15px auto; border-radius: 50%; background: #e6f4dd; color: var(--green); font-size: 28px; }
.success-modal > p:not(.eyebrow) { margin: 12px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.success-modal .print-hint { margin: 8px 0 12px; font-size: 11px; }
.success-modal > .button + .button { margin-top: 10px; }
@media (max-width: 850px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro-note { width: 220px; }
  .contact-strip { grid-template-columns: 1fr 1fr; }
  .contact-strip .button { grid-column: 1/-1; justify-self: start; }
  .seo-product { gap: 24px; }
}
@media (max-width: 600px) {
  .site-header { height: 68px; padding: 0 15px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand small { display: none; }
  .header-actions { gap: 7px; }
  .header-actions .button { min-height: 39px; padding: 0 10px; font-size: 10px; }
  .page { padding: 0 15px; }
  .intro { min-height: 0; margin: 17px 0 52px; padding: 32px 23px; }
  .intro-note { display: none; }
  .intro h1 { font-size: 39px; }
  .intro-copy { font-size: 12px; }
  .section-heading { display: block; }
  .catalog-tools { margin-top: 15px; }
  .search-box { flex: 1; width: auto; }
  .catalog-tools .button { padding: 0 10px; font-size: 10px; }
  .catalog-grid { grid-template-columns: 1fr; gap: 12px; }
  .product-card { display: grid; grid-template-columns: 37% 1fr; }
  .product-gallery { align-self: start; }
  .product-image { height: auto; min-height: 0; }
  .product-thumbnails { gap: 4px; padding: 5px; }
  .product-thumb { flex-basis: 34px; width: 34px; height: 34px; }
  .product-info { padding: 12px; }
  .product-info h3 { font-size: 14px; }
  .product-description { min-height: 0; font-size: 10px; }
  .product-card-bottom { align-items: start; flex-direction: column; margin-top: auto; padding-top: 10px; }
  .product-price { font-size: 15px; }
  .detail-button { min-height: 32px; }
  .contact-strip { grid-template-columns: 1fr; margin: 52px 0 30px; padding: 23px; }
  .contact-strip .button { grid-column: auto; }
  .seo-product { grid-template-columns: 1fr; gap: 20px; padding: 15px; }
  .seo-product-page { padding-top: 18px; }
  .site-footer { flex-wrap: wrap; padding: 18px 15px; }
  dialog.modal { padding: 23px 17px; }
  .product-detail-layout { grid-template-columns: 1fr; gap: 17px; }
  .detail-main-image { max-height: 290px; }
  .checkout-form { grid-template-columns: 1fr; }
  .checkout-form .full { grid-column: auto; }
}
@media print {
  .site-header, .intro, .catalog-tools, .category-list, .detail-button, .contact-strip, .site-footer, dialog { display: none !important; }
  body { background: #fff; }
  .page { max-width: none; padding: 0; }
  .catalog-section { margin: 0; }
  .catalog-grid { display: block; }
  .product-card { display: flex; break-inside: avoid; margin: 0 0 10px; border: 1px solid #ddd; }
  .product-thumbnails, .photo-count { display: none !important; }
  .product-gallery { width: 100px; flex: 0 0 100px; }
  .product-image { width: 100px; height: 100px; flex: 0 0 100px; }
}
