* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 "DM Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
.wrap { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
h1, h2 { font-family: Manrope, sans-serif; line-height: 1.12; letter-spacing: -.045em; overflow-wrap: anywhere; }
h1 { font-size: clamp(36px, 6vw, 76px); margin: 15px 0; }
h2 { margin: 0; }
.listing-page { padding-bottom: 76px; min-height: 68vh; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; padding: 19px 0; color: var(--muted); font-size: 13px; }
.crumbs > :not(:first-child)::before { content: "/"; margin-inline-end: 10px; color: #788b9e; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); overflow-wrap: anywhere; }
.crumbs.light, .crumbs.light [aria-current] { color: #cbd9e8; }
.crumbs.light a:hover { color: white; }
.category-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: clamp(220px, 22vw, 290px);
  background: var(--wash);
}
.category-banner-copy {
  align-self: center;
  padding: clamp(24px, 4vw, 58px);
}
.category-banner h1 {
  margin: 0;
  font-size: clamp(32px, 3.65vw, 53px);
  text-wrap: balance;
}
.category-banner p {
  max-width: 50ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
}
.category-banner-photo {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 53%;
  contain: size;
}
@media (max-width: 620px) {
  .category-banner { grid-template-columns: 1fr; }
  .category-banner-copy { padding: 24px 20px 22px; }
  .category-banner-photo { height: clamp(122px, 37vw, 205px); }
  .category-banner p { margin-top: 10px; }
}
.listing-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: clamp(20px, 3vw, 42px); margin-top: 34px; }
.filter-panel nav { border-top: 1px solid var(--line); margin-bottom: 22px; padding-top: 13px; display: grid; gap: 2px; }
.filter-panel h2 { font-size: 15px; margin: 0 0 8px 9px; }
.filter-panel a { padding: 7px 9px; font-size: 14px; }
.filter-panel a[aria-current] { background: var(--wash); color: var(--ink); font-weight: 800; box-shadow: inset 2px 0 var(--accent); }
.filter-panel a:hover, .filter-panel .clear-filter { color: var(--accent); }
.results-header { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.results-header h2 { font-size: 24px; }
.results-header > span { color: var(--muted); font-size: 13px; }
.empty, .panel { background: #fff; border: 1px solid var(--line); padding: clamp(17px, 3.2vw, 32px); }
.empty { background: var(--wash); }
.empty p { margin: 0 0 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 17px; border: 1px solid var(--accent); background: var(--accent); color: white; font-size: 14px; font-weight: 700; }
.button.secondary { background: transparent; color: var(--accent); }
.button:disabled { opacity: .55; cursor: wait; }
.products { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.product { min-width: 0; background: white; border: 1px solid var(--line); }
.product:hover h2 { color: var(--accent); }
.product img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--wash); }
.product-info { padding: 16px; }
.product-info h2 { font-size: clamp(16px, 3.8vw, 23px); margin-top: 3px; }
.product-info small, .product-copy small, .hint { color: var(--muted); }
.product-page { padding-bottom: 70px; min-height: 66vh; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 5vw, 70px); margin-top: 22px; }
#zoom-photo { display: block; width: 100%; border: 0; padding: 0; background: var(--wash); cursor: zoom-in; }
#product-photo { width: 100%; aspect-ratio: 1; object-fit: contain; }
#photo-dialog { width: min(960px, calc(100% - 28px)); max-height: 92dvh; padding: 0; border: 0; background: white; }
#photo-dialog::backdrop { background: #102439c7; }
#photo-dialog img { width: 100%; max-height: 90dvh; object-fit: contain; }
.image-close { position: absolute; top: 8px; right: 8px; border: 1px solid var(--line); width: 44px; height: 44px; background: white; font-size: 24px; }
.product-copy { padding-top: clamp(8px, 3vw, 36px); }
.product-copy h1 { font-size: clamp(32px, 4vw, 56px); }
.related { border-top: 1px solid var(--line); margin-top: 54px; padding-top: 28px; }
.related > h2 { margin-bottom: 20px; font-size: 26px; }
.related .products { grid-template-columns: repeat(4,minmax(0,1fr)); }

.thumbnails { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumbnails button { padding: 2px; border: 1px solid var(--line); background: white; }
.thumbnails button[aria-pressed="true"] { border-color: var(--accent); }
.thumbnails img { width: 62px; height: 62px; object-fit: cover; }
.product-copy p { white-space: pre-wrap; overflow-wrap: anywhere; }
.admin { min-height: 70vh; padding-block: 32px 64px; }
.admin h1 { font-size: clamp(32px, 5vw, 54px); }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; gap: 16px; margin-top: 24px; }
.panel-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.panel h2 { font-size: 22px; }
.admin-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
#editor label { display: grid; gap: 4px; font-weight: 700; font-size: 14px; }
#editor :is(input, textarea, select) { width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); font-size: 16px; background: white; }
#editor textarea { resize: vertical; }
#editor label[hidden] { display: none; }
#editor .visibility { margin: 16px 0 12px; max-width: 220px; }
.hint { font-size: 13px; margin: 8px 0; }
.hint[data-error="true"] { color: #a12620; }
.image-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.image-list img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--wash); }
.image-list button { width: 100%; min-height: 44px; border: 1px solid var(--line); color: var(--ink); background: white; }
.admin-item { display: grid; gap: 4px; text-align: left; width: 100%; padding: 12px 8px; border: 0; border-top: 1px solid var(--line); color: var(--ink); background: white; overflow-wrap: anywhere; }
.admin-item[aria-current] { background: var(--wash); }
.admin-item small { color: var(--muted); }
footer { padding: 22px 0; background: var(--deep); color: white; }
.page-footer { display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 14px; }
.page-footer > span { margin-right: auto; }
.admin-header { border-bottom: 1px solid var(--line); }
.admin-header > div { display: flex; min-height: 65px; justify-content: space-between; align-items: center; font-weight: 700; }
.about-hero { padding: clamp(27px, 5vw, 70px) 0; color: white; background: linear-gradient(115deg, var(--deep), #244d72); }
.about-intro { display: grid; grid-template-columns: minmax(0,1.22fr) minmax(0,.78fr); align-items: center; gap: clamp(24px,7vw,100px); }
.about-intro .crumbs { padding-top: 0; }
.about-intro h1 { text-wrap: balance; }
.about-intro p { max-width: 62ch; color: #e5eef6; }
.market-panel { padding: clamp(20px,3vw,36px); border: 1px solid #7991a9; background: #ffffff0b; }
.market-panel h2 { font-size: clamp(22px, 3vw, 28px); }
.market-panel ul { padding: 0; margin: 19px 0 0; display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.market-panel li { border: 1px solid #7991a9; padding: 5px 9px; font-size: 13px; }
.about-section { padding-block: clamp(38px,7vw,90px); }
.section-intro { max-width: 62ch; margin: 0 0 24px; }
.section-intro h2 { font-size: clamp(28px,4vw,47px); }
.section-intro p { color: var(--muted); }
.regions, .work-grid { display: grid; gap: 16px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.regions article, .work-grid article { border-top: 2px solid var(--navy); padding: 17px 13px 10px 0; }
.regions h3, .work-grid h3 { margin: 0 0 10px; font-size: 18px; }
.regions ul { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.regions li + li { margin-top: 6px; }
.about-work { background: var(--wash); }
.work-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.work-grid p { margin: 0; color: var(--muted); }
.about-work .button { margin-top: 27px; }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .admin-layout, .product-layout, .listing-layout, .about-intro, .work-grid { grid-template-columns: 1fr; }
  .listing-layout { margin-top: 24px; gap: 15px; }
  .filter-panel nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
  .filter-panel h2 { width: 100%; margin-left: 0; }
  .filter-panel a { border: 1px solid var(--line); }
  .regions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #product-list { max-height: 250px; overflow: auto; }
  .admin-fields { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .products, .related .products { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .products, .related .products { gap: 10px; }
  .product-info { padding: 11px; }
}
@media (max-width: 350px) {
  .products, .related .products { grid-template-columns: 1fr; }
}
.product[hidden] { display: none; }
