:root {
  --green: #00704f;
  --green-dark: #005c42;
  --orange: #f7941d;
  --ink: #111814;
  --muted: #68716c;
  --line: #dfe4e1;
  --soft: #f4f6f5;
  --white: #ffffff;
  --content: 1480px;
}
* { box-sizing: border-box; }
html { font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--white); }
body { margin: 0; line-height: 1.4; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.topbar { max-width: var(--content); min-height: 74px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 260px minmax(320px, 620px) 1fr; gap: 30px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; font-weight: 700; }
.brand img { width: 50px; height: 50px; object-fit: contain; }
.brand span { font-size: 16px; }
.header-search { display: grid; grid-template-columns: 1fr auto; border: 1px solid #aeb7b2; border-radius: 2px; overflow: hidden; background: #fff; }
.header-search input { border: 0; padding: 11px 13px; outline: 0; min-width: 0; }
.header-search button { border: 0; border-left: 1px solid #c8ceca; background: #fff; color: var(--green); padding: 0 16px; font-weight: 700; cursor: pointer; }
.header-actions { justify-self: end; display: flex; align-items: center; font-size: 13px; font-weight: 700; }
.cart-link { display: inline-flex; gap: 8px; align-items: center; }
.cart-icon { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-icon circle { fill: currentColor; stroke: none; }
.cart-count { min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--orange); color: #fff; border-radius: 50%; font-size: 11px; }
.shop-nav { background: var(--green); color: #fff; }
.shop-nav-inner { max-width: var(--content); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 34px; }
.shop-nav a { padding: 13px 0 12px; font-size: 14px; font-weight: 700; border-bottom: 3px solid transparent; }
.shop-nav a:hover { border-bottom-color: var(--orange); }

.catalogue-page { max-width: var(--content); margin: 0 auto; padding: 24px 24px 72px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; margin-bottom: 22px; }
.breadcrumb strong { color: var(--ink); font-weight: 700; }
.catalogue-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 18px; }
.catalogue-head h1 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; }
.catalogue-head p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.sort-form label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.sort-form select { min-width: 190px; border: 1px solid #bec6c1; background: #fff; padding: 9px 10px; }

.type-strip { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.type-strip a { flex: 0 0 auto; border: 1px solid #bac4be; padding: 9px 14px; font-size: 13px; background: #fff; }
.type-strip a:hover, .type-strip a.active { border-color: var(--green); color: var(--green); }
.type-strip a.active { font-weight: 700; box-shadow: inset 0 -2px 0 var(--green); }

.catalogue-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 26px; align-items: start; }
.filter-sidebar { border-right: 1px solid var(--line); padding-right: 22px; }
.filter-sidebar form { display: grid; gap: 0; }
.filter-sidebar fieldset { margin: 0; padding: 0 0 18px; border: 0; border-bottom: 1px solid var(--line); }
.filter-sidebar fieldset + fieldset { padding-top: 18px; }
.filter-sidebar legend { padding: 0; margin-bottom: 12px; font-size: 13px; font-weight: 700; }
.filter-sidebar label { display: flex; gap: 8px; align-items: center; margin: 8px 0; font-size: 13px; cursor: pointer; }
.filter-sidebar input[type="radio"] { width: auto; accent-color: var(--green); }
.filter-sidebar button { margin-top: 18px; border: 1px solid var(--green); background: var(--green); color: #fff; padding: 10px 12px; font-weight: 700; cursor: pointer; }
.clear-filters { margin-top: 10px; text-align: center; color: var(--green); font-size: 12px; font-weight: 700; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 30px 14px; }
.product-card { min-width: 0; }
.product-image { display: block; aspect-ratio: 4 / 5; background: #f2f3f2; overflow: hidden; }
.product-image > img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-placeholder { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 12px; color: #68716c; background: linear-gradient(#f5f6f5, #eff2f0); }
.product-placeholder img { width: 54px; height: 54px; object-fit: contain; opacity: .38; }
.product-placeholder span { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.product-body { padding: 9px 0 0; }
.product-meta { margin: 0 0 2px; color: #7b837f; font-size: 12px; min-height: 17px; }
.product-body h2 { margin: 0; font-size: 14px; line-height: 1.35; font-weight: 400; }
.product-body h2 a:hover { text-decoration: underline; }
.price { margin: 3px 0 0; font-size: 14px; font-weight: 700; }
.empty-state { padding: 70px 20px; text-align: center; border: 1px solid var(--line); }
.empty-state h2 { margin: 0 0 8px; font-size: 20px; }
.empty-state p { margin: 0; color: var(--muted); }

.product-detail { max-width: 1180px; margin: 0 auto; padding: 40px 24px 72px; display: grid; grid-template-columns: minmax(0,1fr) 420px; gap: 56px; }
.detail-image { aspect-ratio: 4 / 5; background: #f3f4f3; }
.detail-image > img { width: 100%; height: 100%; object-fit: contain; }
.image-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: #f3f4f3; }
.image-placeholder img { width: 70px; opacity: .35; }
.back { display: inline-block; margin-bottom: 20px; color: var(--green); font-size: 13px; font-weight: 700; }
.detail-copy h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.15; }
.price.big { font-size: 22px; }
.description { margin: 22px 0; line-height: 1.65; }
.sku, .fulfilment-note, .sizes { color: var(--muted); font-size: 13px; }
.buy-box { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; display: grid; grid-template-columns: 1fr 90px; gap: 12px; align-items: end; }
.buy-box label, .checkout-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.buy-box select, .buy-box input, .checkout-form input, .checkout-form textarea { width: 100%; border: 1px solid #bdc6c1; padding: 10px 11px; background: #fff; }
.buy-box button, .button, .checkout-form button { border: 1px solid var(--green); background: var(--green); color: #fff; padding: 11px 16px; font-weight: 700; cursor: pointer; }
.buy-box button { grid-column: 1 / -1; }
.button.secondary { background: #fff; color: var(--green); }

.narrow { max-width: 920px; margin: 0 auto; padding: 40px 24px 72px; }
.page-head { margin-bottom: 24px; }
.page-head h1 { margin: 0; font-size: 30px; }
.cart-list { border-top: 1px solid var(--line); }
.cart-row { display: grid; grid-template-columns: 1fr 120px 200px; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-row span { color: var(--muted); font-size: 13px; }
.cart-row form { display: flex; gap: 8px; }
.cart-row input { width: 70px; border: 1px solid #bdc6c1; padding: 9px; }
.small { padding: 9px 11px; }
.cart-total { display: flex; justify-content: space-between; padding: 18px 0; font-size: 19px; }
.cart-actions { display: flex; justify-content: space-between; gap: 12px; }

.checkout-grid { max-width: 1080px; margin: 0 auto; padding: 40px 24px 72px; display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 48px; }
.checkout-form { display: grid; gap: 14px; }
.checkout-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: grid !important; grid-template-columns: auto 1fr !important; align-items: start; gap: 9px !important; font-weight: 400 !important; }
.check input { width: auto; margin-top: 3px; }
.order-summary { border-left: 1px solid var(--line); padding-left: 28px; height: max-content; }
.order-summary h2 { margin: 0 0 14px; font-size: 20px; }
.order-summary > div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary-total { border-top: 2px solid var(--ink); margin-top: 12px; font-size: 17px !important; }
.order-summary p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.result { text-align: center; }
.status-mark { width: 54px; height: 54px; margin: 0 auto 20px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 50%; font-size: 24px; font-weight: 700; }
.status-mark.ok { color: var(--green); border-color: var(--green); }
.result h1 { margin: 0 0 12px; font-size: 30px; }
.result p { color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); background: #fafbfa; }
.site-footer-inner { max-width: var(--content); margin: 0 auto; padding: 24px; display: flex; color: var(--muted); font-size: 12px; }

@media (max-width: 1100px) {
  .topbar { grid-template-columns: 210px 1fr auto; }
  .brand span { display: none; }
  .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .topbar { grid-template-columns: auto 1fr; min-height: auto; padding-top: 12px; padding-bottom: 12px; }
  .header-search { grid-column: 1 / -1; grid-row: 2; }
  .header-actions { gap: 14px; font-size: 12px; }
  .shop-nav-inner { gap: 22px; overflow-x: auto; }
  .catalogue-layout { grid-template-columns: 1fr; }
  .filter-sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 18px; }
  .filter-sidebar form { grid-template-columns: 1fr 1fr; gap: 20px; }
  .filter-sidebar fieldset + fieldset { padding-top: 0; }
  .filter-sidebar button, .clear-filters { align-self: end; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-detail, .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
}
@media (max-width: 560px) {
  .topbar, .shop-nav-inner, .catalogue-page, .product-detail, .narrow, .checkout-grid { padding-left: 14px; padding-right: 14px; }
  .catalogue-head { align-items: flex-start; flex-direction: column; }
  .sort-form, .sort-form label, .sort-form select { width: 100%; }
  .filter-sidebar form { grid-template-columns: 1fr; }
  .product-grid { gap: 24px 10px; }
  .product-body h2, .price { font-size: 13px; }
  .cart-row { grid-template-columns: 1fr; }
  .cart-actions, .site-footer-inner { flex-direction: column; }
  .checkout-form .two { grid-template-columns: 1fr; }
}
.sort-form { display: flex; align-items: flex-end; gap: 8px; }
.sort-submit { border: 1px solid #bec6c1; background: #fff; color: var(--green); padding: 9px 12px; font-weight: 700; cursor: pointer; }
.availability { margin: 5px 0 0; font-size: 12px; color: #6d756f; }
.stock-message { border-top: 1px solid #e1e5e2; border-bottom: 1px solid #e1e5e2; padding: 14px 0; font-weight: 700; color: #69716c; }
.buy-box button:disabled { background: #e4e7e5; border-color: #e4e7e5; color: #6e7671; cursor: not-allowed; }
.product-card .product-image img { object-fit: contain; }
