:root {
  color-scheme: light;
  --ink: #172f3e;
  --muted: #526571;
  --line: #d5dce0;
  --blue: #e8f2f9;
  --sand: #f1ede5;
  --sand-dark: #966946;
  --serif: Georgia, "Times New Roman", serif;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fdfcf9;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { color: inherit; }
button { cursor: pointer; }
a { text-decoration: none; }
button { border: 0; background: none; }
[hidden] { display: none !important; }
:where(button, a, input):focus-visible { outline: 3px solid #317da5; outline-offset: 3px; }
:disabled { cursor: default; opacity: .55; }
html { scroll-behavior: smooth; }
.wrap { max-width: 1440px; margin: 0 auto; padding-inline: clamp(16px, 5vw, 80px); }
#startup-status {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding-block: clamp(24px, 5vw, 48px);
  color: var(--muted);
  line-height: 1.5;
}
@media (scripting: none) { #startup-status { display: none; } }
.icon { width: 1.16em; height: 1.16em; display: block; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; z-index: 20; left: 10px; top: -70px; background: white; padding: 12px; }
.skip:focus { top: 8px; }
.site-head { border-bottom: 1px solid var(--line); background: #fdfcf9; }
.bar { display: flex; align-items: center; min-height: 78px; gap: 20px; }
.brand, .footer-brand { font: 500 39px/.95 "Times New Roman", var(--serif); letter-spacing: -2.5px; white-space: nowrap; }
.trade-mark { border-left: 1px solid #abb5b9; padding-left: 18px; color: var(--muted); text-transform: uppercase; font-weight: 650; font-size: 10px; line-height: 1.8; letter-spacing: 1.6px; }
.head-actions { display: flex; gap: 14px; align-items: center; margin-left: auto; }
.head-actions button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 5px 10px; font-size: 14px; font-weight: 600; }
#casa-coins-link { min-height:44px; padding:7px 11px; border:1px solid #c4d7e5; border-radius:9px; background:#edf5fb; color:#244b68; font-size:.875rem; white-space:nowrap; }
.casa-coin-symbol { display:grid; place-items:center; flex:none; width:24px; height:24px; border:1px solid #b79236; border-radius:50%; background:#fff3cc; color:#79591d; font-size:1rem; font-weight:750; }
.casa-coins-balance { padding-left:7px; border-left:1px solid #c4d7e5; font-size:1rem; }
#casa-coins-dialog { width:min(430px,calc(100% - 24px)); max-height:calc(100dvh - 32px); border-radius:12px; }
#casa-coins-dialog .dialog-head { gap:14px; }
#casa-coins-dialog .dialog-head form { margin:0; }
#casa-coins-dialog h2 { font:650 1.25rem/1.3 "Segoe UI",Arial,sans-serif; letter-spacing:0; }
#casa-coins-dialog p { font-size:1rem; line-height:1.55; }
#casa-coins-dialog .casa-coins-value { margin-top:0; padding:14px; border-radius:8px; background:#edf5fb; color:#244b68; font-size:1.25rem; font-weight:700; }
.casa-coins-note { color:var(--muted); }
@media (max-width:680px) { .head-actions #account-link.desktop-profile { display:none; } #casa-coins-link { padding-inline:8px; gap:6px; } }
#bag-link { border: 1px solid #bac5c9; border-radius: 4px; padding-inline: 14px; }
#bag-count { padding: 0 5px; min-width: 18px; height: 19px; font-size: 11px; line-height: 19px; border-radius: 3px; background: var(--ink); color: #fff; }
.hero { display: grid; grid-template-columns: 1.02fr 1fr; margin: 26px 0 42px; background: var(--sand); overflow: hidden; border-radius: 5px; }
.hero-copy { padding: clamp(23px,3.3vw,50px) clamp(22px,4vw,64px); align-self: center; }
.overline { display: flex; align-items: center; gap: 8px; margin: 0 0 19px; color: #455c63; font-size: 10px; font-weight: 700; letter-spacing: 1.9px; text-transform: uppercase; }
.overline i { display: block; width: 25px; height: 1px; background: var(--sand-dark); }
.hero h1 { margin: 0; font: 400 clamp(46px,5.35vw,81px)/.97 var(--serif); letter-spacing: -.06em; }
.hero h1 em { color: #46646b; font-weight: 400; }
#hero-intro { max-width: 352px; margin: 16px 0 20px; color: #44575c; font-size: 14px; line-height: 1.5; }
.hero-cta, .solid, .outline { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 42px; padding: 9px 16px; border-radius: 4px; font-size: 14px; font-weight: 650; }
.hero-cta, .solid { background: var(--ink); color: white; }
.outline { border: 1px solid #aebac0; background: white; }
.hero-cta .icon { width: 18px; }
.hero-photo { position: relative; min-height: 290px; isolation: isolate; background: #d8cbbd; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 43%; }
.photo-caption { position: absolute; bottom: 14px; right: 16px; padding: 5px 9px; background: #fffdf5ed; border: 1px solid #fff7; border-radius: 2px; font-size: 11px; color: #344b50; }
#catalogue { scroll-margin-top: 12px; padding-bottom: 46px; min-height: 320px; }
h2 { font: 400 clamp(27px,3.1vw,42px)/1.12 var(--serif); letter-spacing: -.05em; margin: 0; }
#search-form { display: flex; align-items: center; gap: 8px; margin-inline-start:auto; width: min(340px,100%); height: 43px; padding: 0 5px 0 13px; color: var(--muted); border-radius: 5px; border: 1px solid #c7ced0; background: white; }
#search-form input { background: transparent; color: var(--ink); border: 0; padding: 6px 0; width: 100%; min-width: 0; font-size: 14px; }
#search-form button { min-width: 34px; min-height: 32px; display: grid; place-items: center; }
.category-bar { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: thin; padding: 18px 2px 14px; margin: 0 -2px 14px; }
.category-bar button { flex: none; border-radius: 24px; min-height: 35px; padding: 6px 14px; background: #f1f2ef; border: 1px solid #e1e4e1; color: #41565e; font-size: 12px; font-weight: 600; }
.category-bar button[aria-pressed=true] { color: white; border-color: var(--ink); background: var(--ink); }
.products { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px 17px; align-items: stretch; }
.product { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: white; }
.product-photo { position:relative; display:grid; grid-template-columns:minmax(0,1fr); grid-template-areas:"photo"; align-items:start; align-content:start; isolation:isolate; background:white; border-bottom:1px solid #e2e4df; }
.product-photo .cover { position:relative; grid-area:photo; display:block; width:100%; min-width:0; padding:0; aspect-ratio:1; background:white; }
.product-photo .cover img { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:contain; object-position:center; }
.product-photo .photo-placeholder { position:absolute; inset:0; }
.photo-placeholder { display: grid; height: 100%; place-items: center; color: var(--muted); font-size: 13px; }
.product-info { flex: 1; display: flex; flex-direction: column; padding: 14px; gap: 8px; }
.product-type { color: #5d6c6b; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.name { color: var(--ink); padding: 0; text-align: left; font: 600 clamp(14px,1.3vw,19px)/1.28 "Segoe UI",Arial,sans-serif; }
.material { color: var(--muted); font-size: 12px; }
.video-pill { display:inline-grid; place-items:center; min-height:2.75rem; padding:0; color:#153e58; }
.video-pill > span { display:inline-flex; align-items:center; gap:3px; padding:5px 7px; border:1px solid #c2d2d9; border-radius:5px; background:#eef4f7; font-size:.8125rem; line-height:1.25; font-weight:650; }
.video-pill .icon { width:.8125rem; height:.8125rem; fill:currentColor; }
.mrp { color: #204460; background: var(--blue); padding: 5px 7px; border: 1px solid #bbd1df; border-radius:3px; font-size:11px; font-weight:650; }
.card-action { display: flex; align-items: center; gap: 6px; align-self: stretch; min-height: 37px; border-top: 1px solid #e4e8e7; padding: 9px 0 1px; margin-top: auto; text-align: left; color: #385865; font-size: 12px; font-weight: 650; }
.card-action .icon:last-child { margin-left: auto; }
.register-prices, #account-link.register-prices { min-height:2.75rem; font-size:.9375rem; font-weight:750; line-height:1.25; }
.product .register-prices { width:100%; margin-top:auto; padding-inline:4px; }
#account-link.register-prices #account-name { max-width:none; }
.rate { font-size: 19px; font-weight: 700; }
#catalogue-state { color: var(--muted); line-height: 1.5; padding: 12px 0; }
#catalogue-state:empty { display: none; }
.catalogue-more { min-height: 2rem; margin: 25px auto 0; text-align: center; color: var(--muted); }
.foot { display: flex; align-items: center; gap: 16px; min-height: 75px; font-size: 12px; color: var(--muted); }
footer { border-top: 1px solid var(--line); background: #f5f3ed; }
.footer-brand { font-size: 26px; letter-spacing: -1.6px; color: var(--ink); }
.foot a { margin-left: auto; }
dialog { color: var(--ink); width: min(570px,calc(100% - 24px)); max-height: min(87dvh,900px); border: none; background: white; border-radius: 8px; padding: 0; box-shadow: 0 14px 70px #14243136; }
dialog::backdrop { background: #162b35aa; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 17px 21px; border-bottom: 1px solid var(--line); background: white; }
.dialog-head h2 { font: 600 20px/1.25 "Segoe UI",Arial,sans-serif; letter-spacing: -.025em; }
.dialog-body { padding: 18px 21px 22px; }
.square { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 4px; }
.dialog-body p { margin: 0 0 15px; color: var(--muted); line-height: 1.55; }
.viewer-photo { display:block; width:100%; height:auto; max-height:min(56dvh,34rem); object-fit:contain; object-position:center; background:white; }
.viewer-fallback { min-height: 170px; height: auto; background: #f5f4f0; }
.gallery-controls, .dialog-actions, .quantity-row, .form-tabs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gallery-controls { justify-content: space-between; margin-top: 10px; font-size: 13px; }
.product-facts { display: flex; gap: 6px 15px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin: 14px 0; }
.video { width: 100%; min-height: 160px; max-height: 52dvh; background: #0b1a23; border: 0; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 14px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #e3e9e9; }
th { font-weight: 650; color: var(--muted); }
td:last-child, th:last-child { text-align: right; }
tr.selected { background: var(--blue); }
.form-tabs { margin-bottom: 14px; }
.form-tabs button { padding: 7px 12px; border-bottom: 2px solid transparent; }
.form-tabs button[aria-pressed=true] { font-weight: 650; border-color: var(--ink); }
.account-form { display: grid; gap: 12px; }
label.field { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
.field input, .quantity-row input, .cart-line input { border: 1px solid #bac5ca; background: white; color: var(--ink); min-height: 42px; border-radius: 4px; padding: 7px 10px; font-size: 16px; }
.quantity-row input,.cart-line input { width: 72px; }
.quantity-row { margin-block: 12px; }
.form-error { color: #9b302d; font-size: 13px; }
.check-list { list-style: none; padding: 0; margin: 0 0 15px; }
.cart-line { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line small { display: block; color: var(--muted); margin-top: 4px; }
.cart-line button { display: block; padding: 6px 0; text-decoration: underline; font-size: 12px; }
.ops-group { border-top: 1px solid var(--line); padding: 12px 0; }
.ops-group h3 { margin: 0 0 8px; font-size: 16px; }
.ops-group p { margin-bottom: 6px; font-size: 13px; overflow-wrap: anywhere; }
.order-list { list-style: none; margin: 0 0 16px; padding: 0; }
.order { border-bottom: 1px solid var(--line); }
.order summary { cursor: pointer; display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; align-items: center; padding: 14px 0; overflow-wrap: anywhere; }
.order summary::after { content: "›"; font-size: 20px; }
.order[open] summary::after { transform: rotate(90deg); }
.order summary small { display: block; color: var(--muted); margin-top: 4px; font-size: 12px; }
.order-value { text-align: right; }
.order-value small { text-transform: capitalize; }
.order-lines { padding: 0 0 8px; }
.order-lines caption { text-align: left; font-weight: 600; margin-bottom: 6px; }
.order-lines td { overflow-wrap: anywhere; }
.order-list > li + li { margin-top: .7rem; }
.retailer-order { min-width: 0; border: 1px solid #dce5e0; border-radius: 14px; background: #fff; box-shadow: 0 3px 14px #18372b05; overflow: hidden; }
.retailer-order > summary { padding: 1rem; gap: .75rem; grid-template-columns: minmax(0,1fr) auto; }
.retailer-order > summary::after { content: ""; width: .45rem; height: .45rem; border: solid #6c7e76; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.retailer-order[open] > summary::after { transform: rotate(225deg); }
.retailer-order-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .45rem .6rem; align-items: center; }
.retailer-order-heading strong { font-size: 1rem; font-weight: 650; }
.retailer-order-heading .order-status { margin: 0; padding: .25rem .55rem; border-radius: 1rem; background: #edf4ef; color: #315947; font-size: .8125rem; font-weight: 600; text-align: center; }
.retailer-order-heading .order-date { color: var(--muted); font-size: .8125rem; }
.retailer-order-heading .order-total { font-size: 1.0625rem; font-variant-numeric: tabular-nums; text-align: right; }
.retailer-order .order-lines { padding: 0 1rem 1rem; }
.compact-order-items { border-top: 1px solid #edf0ee; margin-top: .85rem; padding-top: .7rem; }
.compact-order-items[hidden] { display: none; }
.compact-items-heading { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .35rem; font-size: .875rem; font-weight: 600; }
.compact-items-heading small { font-size: .8125rem; color: var(--muted); font-weight: 400; }
.compact-order-items ul { list-style: none; margin: 0; padding: 0; }
.compact-order-items li { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: .5rem; align-items: start; padding: .45rem 0; font-size: .875rem; line-height: 1.35; }
.compact-order-items li + li { border-top: 1px solid #f1f3f2; }
.compact-item-name { overflow-wrap: anywhere; }
.compact-item-quantity { color: var(--muted); white-space: nowrap; }
.compact-item-total { white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.order-fulfilment [role=status] { color: var(--muted); font-size: .875rem; margin: 0 0 .45rem; }
.order-fulfilment [role=status]:empty { display: none; }
.fulfilment-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .45rem; }
.order-action-group { display: flex; min-width: 0; flex-direction: column; gap: .4rem; }
.order-action { display: flex; width: 100%; min-width: 0; min-height: 64px; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; padding: .45rem .25rem; border: 1px solid #244c3c; border-radius: 8px; background: #244c3c; color: #fff; font-size: .875rem; font-weight: 600; line-height: 1.25; text-align: center; overflow-wrap: anywhere; text-decoration: none; }
.order-action:hover:not(:disabled) { background: #193c2e; }
.order-action:focus-visible { outline: 2px solid #315947; outline-offset: 2px; }
.order-action:disabled { opacity: 1; background: #f7f9f8; color: #53645b; border-color: #e4e9e5; cursor: default; }
.order-action small { color: inherit; opacity: .8; font-size: .75rem; font-weight: 400; }
#order-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
#order-search label { flex: 1 1 130px; min-width: 0; }
#order-search input { width: 100%; }
.notice { position: fixed; z-index: 3; bottom: 14px; right: 16px; padding: 12px 15px; max-width: calc(100% - 32px); background: var(--ink); color: white; font-size: 14px; border-radius: 4px; }
@media (min-width: 1600px) { .hero-photo { min-height: 380px; } }
@media (max-width: 940px) { .products { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 680px) {
  .bar { min-height: 59px; gap: 9px; } .brand { font-size: 30px; letter-spacing: -2px; } .trade-mark { display:none; }
  .head-actions { gap: 3px; } .head-actions button { gap: 5px; font-size: 12px; padding-inline: 7px; } #bag-link { padding: 3px 8px; } .cart-label { display:none; }
  .hero { grid-template-columns: 1.28fr .9fr; margin: 15px 0 28px; }
  .hero-copy { padding: 20px 12px 20px 15px; }
  .hero h1 { font-size: clamp(28px,6.7vw,42px); }
  .hero .overline { font-size: 8px; letter-spacing: 1.1px; gap: 4px; margin-bottom: 12px; } .overline i { width: 12px; }
  #hero-intro { font-size: 11px; line-height: 1.49; margin: 10px 0 12px; }
  .hero-cta { font-size: 11px; min-height: 36px; padding: 6px 9px; gap: 4px; }
  .hero-photo { min-height: 0; }.hero-photo img { object-position: 36% 48%; }.photo-caption { bottom: 6px; right: 4px; left: 4px; font-size: 9px; padding: 3px; text-align:center; }
  #search-form { width: 100%; } .category-bar { padding-block: 12px 6px; margin-bottom: 10px; } .category-bar button { font-size: 11px; padding: 5px 11px; }
  .products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 8px; }.product-info { padding: 10px 8px; gap: 5px; }.product-type { font-size: 9px; letter-spacing: .7px; }.name { font-size: 14px; }.card-action { font-size: 10px; padding-top: 7px; }.cover { aspect-ratio: 1.1; }.material { font-size: 10px; }
  .mrp { font-size:10px; padding:3px 4px; }
  .dialog-body { padding: 16px; } .dialog-head { padding: 12px 16px; }.foot { gap: 9px; font-size:10px; }
}
@media (max-width: 355px) { .wrap { padding-inline: 10px; } .hero-copy { padding-inline: 10px; } #account-name { max-width: 72px; overflow: hidden; text-overflow: ellipsis; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Trade catalogue */
:root { --ink:#172f40; --muted:#576970; --line:#d9dcd7; --blue:#e5f1fa; --sand:#e9e5da; background:#fbfaf7; }
.site-head { background:#fffefa; }
.bar { min-height:75px; }
#account-link { font-size:13px; }
#bag-link { border:1px solid #adbabd; border-radius:5px; padding-inline:13px; }
.hero { margin-top:25px; margin-bottom:44px; border-radius:6px; grid-template-columns:1.02fr 1fr; background:#eae7de; }
.hero-copy { padding:clamp(26px,3.5vw,57px) clamp(25px,4.4vw,75px); }
.hero h1 { font-size:clamp(63px,6.1vw,88px); line-height:.91; }
.hero h1 em { color:#556b61; }
.overline { color:#526454; }.overline i { width:33px; background:#8c795c; }
#hero-intro { max-width:315px; font-size:14px; line-height:1.56; }
.hero-photo { min-height:300px; background:#dad7cc; }
.hero-photo img { object-position:50% 43%; }
.photo-caption { display:flex; align-items:center; gap:12px; right:16px; left:auto; bottom:13px; padding:7px 11px; border-radius:3px; background:#fdfcf6ea; color:#233c39; font-size:11px; }
.filters { display:flex; align-items:center; gap:12px; margin:16px 0 20px; padding:0 0 13px; border-bottom:1px solid var(--line); }
.category-bar { flex:1; padding:2px; margin:0; }
.sort-label { display:flex; align-items:center; gap:7px; margin-left:auto; color:var(--ink); }
.sort-label select { width:139px; min-height:36px; border:0; background:transparent; font-size:12px; color:var(--ink); }
.category-bar button { font-size:12px; padding-inline:13px; }
.product { background:#fff; border-color:#d8dcd9; }
.product-photo .mrp { position:absolute; top:6px; left:6px; z-index:1; margin:0; max-width:calc(100% - 76px); overflow-wrap:anywhere; }
.product-photo .video-pill { position:absolute; top:6px; right:6px; z-index:1; margin:0; min-height:0; }
.product-info { padding:16px 15px 11px; }
.name { font-size:clamp(14px,1.25vw,18px); }
.product .card-action:hover, .photo-caption:hover { color:#174969; }
@media (max-width:680px) {
  .bar { min-height:61px; }.hero { margin:15px 0 26px; grid-template-columns:1.18fr .95fr; }.hero-copy { padding:22px 12px 22px 15px; }
  .hero h1 { font-size:clamp(37px,9.1vw,54px); }.hero-photo { min-height:0; }.hero-photo img { object-position:37% 47%; }
  .photo-caption { bottom:6px; right:5px; left:5px; padding:5px 4px; justify-content:center; gap:3px; font-size:9px; }.photo-caption .icon { width:11px; }
  #hero-intro { font-size:11px; }.overline i { width:16px; }
  .filters { display:block; margin:10px 0 12px; padding-bottom:8px; }.category-bar { margin-bottom:3px; }.sort-label { justify-content:flex-end; }.sort-label select { width:132px; min-height:31px; font-size:11px; }
  .product-info { padding:10px 8px 6px; }.cover { aspect-ratio:1.13; }.name { font-size:14px; }
  #account-link { font-size:11px; }#bag-link { padding-inline:7px; }
}

.product-details { margin: 0 0 1rem; line-height: 1.5; }
.product-details summary { cursor: pointer; font-weight: 600; }
.product-details p { white-space: pre-line; overflow-wrap: anywhere; }
.product-overview { white-space:pre-line; overflow-wrap:anywhere; line-height:1.5; }
.product-details dl { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.5fr); gap:.5rem 1rem; overflow-wrap:anywhere; }
.product-details dt { font-weight:600; }
.product-details dd { margin:0; }
.variant-choices:not(:empty), .viewer-video-link { margin-block:0 1rem; }

.product-summary { display:flex; flex-direction:column; gap:inherit; min-width:0; }
.tier-sheet { width:100%; table-layout:auto; border-spacing:0; border-collapse:separate; margin:8px 0 14px; font-size:1.0625rem; font-variant-numeric:tabular-nums; line-height:1.3; }
.tier-sheet .visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.tier-sheet thead th { background:#f2f2ee; border-top:1px solid var(--line); color:#334953; font-size:.9375rem; font-weight:650; }
.tier-sheet th, .tier-sheet td { padding:7px 6px; border-bottom:1px solid #e1e6e4; vertical-align:middle; }
.tier-sheet th:first-child { width:25%; text-align:start; }
.tier-sheet :is(th,td):nth-child(2) { text-align:center; }
.tier-sheet :is(th,td):last-child { text-align:end; }
.tier-sheet abbr { text-decoration:none; }
.tier-sheet .discount-short { display:none; }
.tier-sheet tbody :is(th,td) { color:var(--ink); font-size:1.0625rem; font-weight:600; }
.tier-sheet tbody :is(th,td), .tier-sheet th button { white-space:nowrap; overflow-wrap:normal; }
.tier-sheet tbody td:last-child { font-size:1.25rem; font-weight:750; }
.tier-sheet [aria-current="true"] > * { background:#e2f2e5; color:#235d39; font-weight:700; }
.tier-sheet [aria-current="true"] th:first-child { box-shadow:none; }
.tier-sheet th button { width:100%; min-height:36px; padding:2px; text-align:start; color:inherit; font-weight:inherit; text-decoration:underline; text-decoration-color:#93a7ac; text-underline-offset:3px; }
.tier-sheet th:has(button) { padding-block:0; }
.product-info .tier-sheet { margin:3px 0 0; }
.products:has(.tier-sheet) { grid-template-columns:repeat(auto-fill,minmax(min(100%,max(15.5rem,23%)),1fr)); }
@supports (grid-template-rows:subgrid) {
  .products:has(.tier-sheet) { row-gap:0; }
  .products:has(.tier-sheet) > .product { display:grid; grid-template-columns:minmax(0,1fr); grid-row:span 5; grid-template-rows:subgrid; row-gap:0; margin-bottom:24px; }
  .products:has(.tier-sheet) .product-photo { grid-row:1; }
  .products:has(.tier-sheet) .product-info { display:grid; grid-row:2 / span 4; grid-template-rows:subgrid; grid-template-columns:minmax(0,1fr); row-gap:6px; align-items:start; }
  .products:has(.tier-sheet) .product-summary { grid-row:1; }
  .products:has(.tier-sheet) .current-rate { grid-row:2; }
  .products:has(.tier-sheet) .tier-sheet { grid-row:3; }
  .products:has(.tier-sheet) .card-action { grid-row:4; }
}
@media (max-width:680px) {
  .products:has(.tier-sheet) > .product { margin-bottom:12px; }
  .product-info .tier-sheet :is(th,td) { padding:6px 4px; }
}
@media (max-width:767px), (pointer:coarse) and (orientation:landscape) and (max-height:540px) and (max-width:950px) {
  .products, .products:has(.tier-sheet) { grid-template-columns:repeat(2,minmax(0,1fr)); }
  main.wrap { padding-inline:clamp(.5rem,2.4vw,.75rem); }
  .products { column-gap:clamp(6px,1.8vw,10px); }
  .product .product-info { padding-inline:clamp(4px,1.25vw,9px); }
  .product .tier-sheet { table-layout:fixed; }
  .product .tier-sheet th:first-child { width:26%; }
  .product .tier-sheet :is(th,td):nth-child(2) { width:24%; }
  .product .tier-sheet :is(th,td) { padding:5px 1px; }
  .product .tier-sheet thead th { font-size:clamp(.6875rem,3vw,.875rem); line-height:1.2; height:2.65em; }
  .product .tier-sheet tbody :is(th,td) { font-size:clamp(.6875rem,3.05vw,.875rem); white-space:nowrap; overflow-wrap:normal; }
  .product .tier-sheet tbody td:last-child { font-size:clamp(.9375rem,4.15vw,1.125rem); }
}
@media (max-width:510px) {
  .product .tier-sheet .discount-full { display:none; }
  .product .tier-sheet .discount-short { display:inline; }
}
@media (max-width:355px) {
  main.wrap { padding-inline:6px; }
  .product .product-info { padding-inline:3px; }
  .product .tier-sheet th:first-child { width:24%; }
  .product .tier-sheet :is(th,td):nth-child(2) { width:24%; }
  .product .tier-sheet tbody td:last-child { font-size:.875rem; }
}

#catalogue { padding-top:clamp(8px,1.5vw,20px); }
.card-buy { align-self:end; min-width:0; display:grid; gap:6px; margin-top:auto; width:100%; }
.products:has(.tier-sheet) .card-buy { grid-row:4; }
.material-badge { align-self:flex-start; max-width:100%; padding:3px 7px; border-radius:4px; background:#eceeea; color:#35473c; font-size:11px; font-weight:700; line-height:1.25; overflow-wrap:anywhere; }
.material-badge[data-family="brass"], #materials [data-family="brass"][aria-pressed="false"] { background:#f3e8cb; color:#654913; }
.material-badge[data-family="steel"], #materials [data-family="steel"][aria-pressed="false"] { background:#e4ebf2; color:#334f69; }
.material-badge[data-family="polymer"], #materials [data-family="polymer"][aria-pressed="false"] { background:#dceee6; color:#275444; }
#materials [aria-pressed="true"] { color:white; background:var(--ink); border-color:var(--ink); }
.current-rate { display:flex; flex-direction:column; align-items:flex-start; gap:1px; font-variant-numeric:tabular-nums; }
.current-rate .rate-label, .current-rate .per-unit { color:var(--muted); font-size:11px; font-weight:550; }
.current-rate [data-current-rate] { color:var(--ink); font-size:clamp(17px,1.5vw,23px); font-weight:700; line-height:1.15; overflow-wrap:anywhere; }
.dialog-body .current-rate { margin-block:12px 4px; }
.card-add { width:100%; min-height:38px; }
.all-tiers { justify-self:start; padding:1px 0; font-size:12px; text-decoration:underline; color:#385865; }
.stepper { display:grid; grid-template-columns:minmax(31px,1fr) minmax(43px,1.4fr) minmax(31px,1fr); align-items:stretch; max-width:165px; height:38px; border:1px solid #a6b9c0; border-radius:4px; overflow:hidden; }
.stepper button, .cart-line .stepper button { display:grid; place-items:center; padding:0; font-size:19px; text-decoration:none; color:var(--ink); background:#edf3f3; }
.stepper .inline-qty, .cart-line .stepper .inline-qty { text-align:center; width:100%; min-width:0; min-height:0; height:100%; padding:0 2px; border:0; border-inline:1px solid #d6e0e2; border-radius:0; background:white; font-size:16px; font-variant-numeric:tabular-nums; appearance:textfield; }
.inline-qty::-webkit-inner-spin-button, .inline-qty::-webkit-outer-spin-button { -webkit-appearance:none; }
.stepper :focus-visible { outline-offset:-3px; }
.cart-error { font-size:12px; color:#943a2e; overflow-wrap:anywhere; }
.cart-error:empty { display:none; }
#photo-buy .stepper { margin-block:14px 8px; }
.cart-line { display:grid; grid-template-columns:58px minmax(0,1fr) minmax(105px,126px); gap:11px; align-items:center; }
.cart-thumb { display:grid; place-items:center; overflow:hidden; aspect-ratio:1; border-radius:5px; border:1px solid var(--line); background:#f6f6f2; }
.cart-thumb img { width:100%; height:100%; object-fit:contain; }
.cart-description { display:grid; gap:4px; overflow-wrap:anywhere; }
.cart-line .cart-description small { margin:0; }
.cart-edit { display:grid; gap:3px; }
.cart-line .remove-item { justify-self:end; }
.cart-line .cart-error { grid-column:1/-1; }
.empty-cart { display:grid; justify-items:center; gap:12px; padding:32px 12px; }
.empty-cart>span { border-radius:50%; padding:14px; background:#ecf3f5; font-size:22px;}
.empty-cart p { margin:0; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
#trade-page { max-width:1040px; min-height:65vh; margin:0 auto; padding:clamp(20px,3vw,42px) 0 48px; }
#trade-page .dialog-head { position:static; display:grid; gap:12px; border:0; padding:0 0 20px; background:transparent; }
#trade-page h1 { font:400 clamp(31px,4.5vw,48px)/1.1 var(--serif); margin:0; letter-spacing:-.04em; }
#trade-page h1:focus { outline:none; }
.catalogue-back { width:fit-content; font-size:13px; color:var(--muted); text-decoration:underline; text-underline-offset:4px; }
#trade-page .dialog-body { padding:0; }
#trade-page .account-form, #trade-page .form-tabs, #trade-page .receipt { max-width:560px; }
#trade-page .account-form, .form-card { min-width:0; margin:0; padding:clamp(16px,2.2vw,26px); background:white; border:1px solid var(--line); border-radius:8px; display:grid; gap:14px; align-content:start; }
.form-card h2,.form-card legend { font:650 19px/1.25 "Segoe UI",Arial,sans-serif; letter-spacing:-.025em; margin:0; padding:0; }
.form-card legend { padding-inline:4px; }
.form-card .field { min-width:0; }
.form-card input:not([type="radio"]):not([type="checkbox"]) { width:100%; }
.form-card input:read-only { color:var(--muted); background:#f2f4f4; }
.form-card p { font-size:14px; margin:0; }
.form-card a[href="#cart"], .form-card a[href="#orders"]:not(.solid) { text-align:center; text-decoration:underline; }
.account-columns,.checkout-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:clamp(14px,2.2vw,28px); align-items:start; }
.checkout-fields,.address-grid { display:grid; gap:16px; min-width:0; }
.address-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.address-grid .field:nth-child(3),.address-grid .field:nth-child(4) { grid-column:1/-1; }
#billing-fields { padding:0; border:0; margin:0; min-width:0; }
.choice { display:flex; align-items:center; gap:10px; min-height:36px; cursor:pointer; }
.choice input { width:18px; height:18px; accent-color:var(--ink); flex:none; }
.choice:has(input:disabled) { color:var(--muted); }
.quote-lines { list-style:none; padding:0; margin:0 0 12px; }
.quote-lines li,.amount-line { display:flex; justify-content:space-between; gap:12px; align-items:baseline; }
.quote-lines li { border-bottom:1px solid var(--line); padding:9px 0; overflow-wrap:anywhere; }
.quote-lines small { display:block; font-size:12px; color:var(--muted); margin-top:3px; }
.quote-lines strong,.amount-line strong { white-space:nowrap; font-variant-numeric:tabular-nums; }
.amount-line { padding:5px 0; font-size:14px; }
.amount-line.total { padding-top:12px; margin-top:10px; border-top:1px solid var(--line); font-size:18px; }
.cart-checkout { display:flex; justify-content:flex-end; margin-top:15px; }
.receipt-addresses { display:flex; gap:16px 32px; flex-wrap:wrap; }
.receipt-addresses h3 { margin:0 0 5px; font-size:14px; }
.receipt-addresses address { font-style:normal; font-size:14px; line-height:1.55; color:var(--muted); overflow-wrap:anywhere; }
@media (max-width:720px) {
  .account-columns,.checkout-grid { grid-template-columns:minmax(0,1fr); }
  #trade-page { padding-inline:6px; }
}
@media (max-width:420px) {
  .address-grid { grid-template-columns:minmax(0,1fr); }
  .cart-checkout a { width:100%; }
}
.cart-subtotal { display:flex; justify-content:space-between; gap:10px; padding-block:15px 3px; font-size:17px; }
.nav-form { display:grid; gap:16px; }
.nav-form select { width:100%; padding:10px; min-height:42px; border:1px solid var(--line); border-radius:4px; background:white; font:inherit; }
#mobile-tools { display:none; }
@media (max-width:680px) {
  body { --mobile-nav-height:4.75rem; padding-bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom,0px)); }
  #search-form, .sort-label, #bag-link { display:none; }
  .filters { min-width:0; }
  .category-bar { min-width:0; overflow-x:auto; }
  #mobile-tools { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); grid-template-areas:"cart filter shop search profile"; position:fixed; z-index:2; inset:auto 0 0; min-height:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom,0px)); padding:4px 5px calc(4px + env(safe-area-inset-bottom,0px)); border-top:1px solid #c4d8ca; background:#f5faf6; gap:4px; }
  #mobile-tools [data-tool] { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-width:0; min-height:3.75rem; padding:4px 0; font-size:.875rem; line-height:1.15; font-weight:650; border-radius:8px; color:#28523b; background:#e6f0e9; border:1px solid #c4d8ca; box-shadow:0 1px 2px #173e2312; }
  #mobile-tools [data-tool="cart"] { grid-area:cart; }
  #mobile-tools [data-tool="filter"] { grid-area:filter; }
  #mobile-tools [data-tool="shop"] { grid-area:shop; }
  #mobile-tools [data-tool="search"] { grid-area:search; }
  #mobile-tools [data-tool="profile"] { grid-area:profile; }
  #mobile-tools .icon { width:1.625rem; height:1.625rem; }
  #mobile-tools [data-tool="shop"] [data-icon] { display:grid; place-items:center; width:2.75rem; height:1.875rem; border-radius:1rem; background:transparent; color:inherit; }
  #mobile-tools [aria-current="page"] { color:#ffffff; background:#356b4c; }
  #mobile-count { position:absolute; left:calc(50% + 7px); top:1px; padding:1px 4px; max-width:5em; border-radius:8px; font-size:10px; background:var(--ink); color:white; }
  body:has(dialog[open]) #mobile-tools { display:none; }
  .notice { bottom:calc(var(--mobile-nav-height) + 6px + env(safe-area-inset-bottom,0px)); }
  .cart-line { grid-template-columns:44px minmax(0,1fr) 106px; gap:8px; }
  .cart-description { font-size:13px; }
}
@media (max-width:355px) {
  .cart-line { grid-template-columns:42px minmax(0,1fr); }
  .cart-edit { grid-column:2; display:flex; align-items:center; justify-content:space-between; gap:5px; }
  .cart-edit .stepper { flex:1; }
}
#trade-page:has(.account-entry) #dialog-panel { max-width:30rem; margin-inline:auto; }
.account-entry { border:1px solid var(--line); border-radius:10px; background:#fff; }
.account-tabs { display:grid; grid-template-columns:1fr 1fr; border-bottom:1px solid var(--line); background:#f3f5f4; border-radius:9px 9px 0 0; }
.account-tabs [role=tab] { min-height:3.1rem; padding:.65rem .35rem; border:0; border-bottom:3px solid transparent; border-radius:0; color:var(--muted); font-size:1rem; line-height:1.25; font-weight:600; }
.account-tabs [role=tab]:first-child { border-top-left-radius:9px; }
.account-tabs [role=tab]:last-child { border-top-right-radius:9px; }
.account-tabs [aria-selected=true] { color:var(--ink); background:white; border-bottom-color:var(--ink); }
.account-tabs [role=tab]:focus-visible { outline-offset:-5px; }
#trade-page .account-entry .account-form { border:0; border-radius:0 0 9px 9px; }
.account-form .account-intro { margin:0 0 3px; color:var(--muted); font-size:15px; line-height:1.45; }
.registration-pin output { display:block; margin-top:.25rem; color:var(--muted); font-size:.875rem; }
.account-form .form-error:empty { display:none; }
.account-form .text-link, .browse-link { text-decoration:underline; text-underline-offset:3px; }
.account-form .text-link { width:fit-content; min-height:2.75rem; padding:0; color:var(--ink); font-size:.9375rem; }
.recovery-links { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:0 1rem; }
.browse-link { display:inline-block; margin-top:16px; font-size:14px; }
.registration-result { max-width:560px; }

#trade-page:has(.ops-layout) #dialog-title { font:600 clamp(1.5rem,2.7vw,2rem)/1.2 "Segoe UI",Arial,sans-serif; letter-spacing:-.03em; margin-bottom:1.25rem; }
.ops-layout { display:grid; grid-template-columns:minmax(10.75rem,13rem) minmax(0,1fr); gap:clamp(16px,3vw,28px); align-items:start; }
.ops-side { border:1px solid var(--line); border-radius:10px; background:#fff; padding:.45rem; min-width:0; }
.ops-nav { display:grid; gap:2px; }
.ops-nav a { min-height:44px; display:flex; align-items:center; gap:.65rem; border-radius:6px; padding:.55rem .75rem; font-size:.95rem; font-weight:600; }
.ops-nav a[aria-current] { background:#153849; color:white; }
.ops-nav .icon { width:1.15rem; height:1.15rem; flex:none; }
.ops-account { display:flex; flex-wrap:wrap; gap:4px 14px; border-top:1px solid var(--line); margin-top:.45rem; padding:.7rem .65rem .15rem; font-size:.85rem; }
.ops-account span { flex-basis:100%; overflow-wrap:anywhere; color:var(--muted); }
.ops-account a,.ops-account button { padding:.35rem 0; text-decoration:underline; text-underline-offset:3px; }
.ops-main { min-width:0; border:1px solid var(--line); border-radius:10px; background:white; padding:clamp(14px,2.5vw,26px); }
.ops-main h2 { font:600 clamp(1.15rem,2.1vw,1.4rem)/1.25 "Segoe UI",Arial,sans-serif; margin:0 0 1rem; letter-spacing:-.025em; }
.ops-section-heading { display:flex; align-items:center; justify-content:space-between; gap:.7rem; margin-bottom:1rem; }
.ops-section-heading h2 { margin:0; }
.ops-section-heading .solid { min-height:42px; padding:.45rem .7rem; font-size:.88rem; white-space:nowrap; }
.ops-create-retailer { border:1px solid #c6d6da; border-radius:8px; padding:1rem; margin:0 0 1rem; background:#f8fafb; }
.ops-create-retailer[hidden] { display:none; }
.ops-create-retailer h3 { margin:0 0 .3rem; font-size:1rem; }
.ops-main p.ops-create-note { color:var(--muted); font-size:.83rem; line-height:1.45; margin:.3rem 0 .8rem; }
.ops-create-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem 1rem; }
.ops-create-grid .field { margin:0; min-width:0; font-size:.9rem; }
.ops-create-grid input { width:100%; min-width:0; font-size:1rem; min-height:42px; }
.ops-create-state { grid-column:2; grid-row:2; }
.ops-create-state output { display:flex; align-items:center; min-height:42px; color:var(--muted); font-size:.9rem; }
.ops-create-retailer .form-error:empty { display:none; }
.ops-create-retailer .dialog-actions { margin:1rem 0 0; }
.ops-main p.ops-feedback { margin:0 0 .7rem; color:#234b4a; font-weight:600; }
.ops-main .ops-feedback:empty,.ops-main .ops-list-status:empty { display:none; }
.ops-search { display:flex; align-items:stretch; gap:6px; flex-wrap:wrap; margin:0 0 .65rem; }
.ops-search label { min-width:0; }
.ops-search label:first-child { flex:1 1 12rem; }
.ops-search input,.ops-search select { width:100%; min-height:42px; border:1px solid #aebcc2; border-radius:5px; color:var(--ink); background:#fff; padding:.45rem .55rem; font-size:.93rem; }
.ops-search .outline { padding:.4rem .7rem; }
.ops-status-filters { display:flex; flex-wrap:wrap; gap:.35rem; margin:0 0 1rem; }
.ops-status-filters a { display:inline-flex; align-items:center; justify-content:center; gap:.45rem; min-height:44px; padding:.4rem .7rem; border:1px solid var(--line); border-radius:6px; color:var(--muted); font-size:.9rem; font-weight:600; text-decoration:none; }
.ops-status-filters a[aria-current] { background:#edf3f4; border-color:#8ba5af; color:#173f54; }
.ops-status-filters [data-status-count] { min-width:1.25rem; text-align:center; font-variant-numeric:tabular-nums; font-size:.82rem; color:inherit; }
.ops-status-filters a:hover,.ops-status-filters a:focus-visible { border-color:#173f54; color:#173f54; }
.ops-list,.ops-cart-lines { padding:0; margin:0; list-style:none; }
.ops-list>li { border-top:1px solid var(--line); padding:.65rem 0; }
.ops-list>li:first-child { border-top:0; }
.ops-list .ops-directory-row,.ops-retailer-title,.ops-row-title,.ops-record,.ops-cart-lines li { display:flex; align-items:center; justify-content:space-between; gap:.75rem; }
.ops-list .ops-directory-row { padding:.25rem 0; min-height:52px; }
.ops-contact,.ops-record div,.ops-cart-lines li div,.ops-profile div { min-width:0; overflow-wrap:anywhere; }
.ops-person { color:#173f54; font-weight:650; text-decoration:none; text-underline-offset:3px; }
.ops-person:hover,.ops-person:focus-visible { text-decoration:underline; }
.ops-directory-row .ops-person { display:inline-flex; align-items:center; min-height:38px; }
.ops-contact small,.ops-record small,.ops-cart-lines small,.ops-retailer-title small { display:block; color:var(--muted); font-size:.85rem; line-height:1.45; overflow-wrap:anywhere; }
.ops-contact:has(small) .ops-person { min-height:0; padding-top:3px; }
.ops-status-actions,.ops-decisions { display:inline-flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:.3rem; }
.ops-status { display:inline-flex; align-items:center; gap:.3rem; border-radius:20px; padding:3px 8px; background:#f6efd9; color:#755713; font-size:.8rem; font-weight:650; white-space:nowrap; }
.ops-status b { font-size:.95rem; line-height:1; }
.ops-status-approved { color:#176242; background:#e6f3ea; }
.ops-status-denied { color:#962f34; background:#fae9e7; }
.ops-decision { display:inline-grid; place-items:center; width:2.75rem; height:2.75rem; border-radius:6px; font-weight:700; font-size:1.25rem; line-height:1; }
.ops-decision[data-decision="approved"] { color:#176242; background:#e6f3ea; }
.ops-decision[data-decision="denied"] { color:#962f34; background:#fae9e7; }
.ops-main .ops-more { margin-top:.7rem; }
.ops-main .ops-list-status { margin:.85rem 0 0; }
.ops-back { display:inline-flex; align-items:center; gap:.3rem; font-size:.87rem; text-decoration:underline; text-underline-offset:3px; min-height:32px; }
.ops-retailer-title { margin:.35rem 0 1rem; }
.ops-retailer-title h2 { margin:0; overflow-wrap:anywhere; }
.ops-tabs { display:flex; align-items:stretch; flex-wrap:wrap; gap:4px; margin:0 0 1rem; padding:0 0 .7rem; border-bottom:1px solid var(--line); }
.ops-tabs a { display:inline-grid; place-items:center; min-height:38px; border-radius:5px; padding:.4rem .65rem; font-size:.9rem; font-weight:600; }
.ops-tabs a[aria-current] { background:#e6eff2; color:#173e51; }
.ops-profile { margin:0 0 1rem; }
.ops-profile div { display:grid; grid-template-columns:minmax(7rem,.7fr) minmax(0,1.7fr); gap:10px; padding:.53rem 0; border-bottom:1px solid #e6ebea; align-items:baseline; }
.ops-profile dt { color:var(--muted); font-size:.9rem; }
.ops-profile dd { margin:0; font-size:.98rem; }
.ops-row-title { padding:.2rem 0 .6rem; }
.ops-row-title span,.ops-cart-lines li>span,.ops-record time { text-align:right; font-size:.85rem; color:var(--muted); }
.ops-cart-lines { padding:0 .7rem; border-radius:6px; background:#f5f7f6; }
.ops-cart-lines li { padding:.55rem 0; }
.ops-cart-lines li+li { border-top:1px solid #dce3e0; }
.ops-cart-lines li>span { flex-shrink:0; }
.ops-cart-lines strong,.ops-record strong { font-size:.95rem; }
.ops-record time { flex:0 0 auto; }
.ops-list>li.ops-activity { padding:0; }
.ops-activity details { min-width:0; }
.ops-activity summary { display:grid; grid-template-columns:8.6rem 9rem minmax(0,1fr) 12px; align-items:center; gap:.6rem; min-height:42px; padding:.45rem 0; list-style:none; cursor:pointer; font-size:.84rem; line-height:1.3; }
.ops-activity summary::-webkit-details-marker { display:none; }
.ops-activity summary::after { content:'+'; color:var(--muted); font-size:1rem; text-align:right; }
.ops-activity details[open]>summary::after { content:'−'; }
.ops-activity summary:focus-visible { outline:2px solid #478ab0; outline-offset:2px; border-radius:3px; }
.ops-activity summary>time { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--muted); font-size:.8rem; }
.ops-event { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:.22rem .4rem; border-radius:4px; font-size:.8rem; font-weight:600; color:#58616a; background:#f0f1f2; }
.ops-event-view { color:#245b8f; background:#eaf2fa; }
.ops-event-search { color:#73549b; background:#f2edf9; }
.ops-event-cart { color:#286449; background:#eaf5ee; }
.ops-event-order { color:#206775; background:#e6f3f4; }
.ops-event-video { color:#8a5d15; background:#fbf1db; }
.ops-activity-preview { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#475b63; }
.ops-activity-detail { padding:.25rem .7rem .7rem; border-radius:5px; background:#f7f9f9; font-size:.85rem; line-height:1.5; }
.ops-activity-detail p { display:grid; grid-template-columns:4rem minmax(0,1fr); gap:.65rem; margin:.35rem 0; overflow-wrap:anywhere; }
.ops-activity-detail p>span:first-child { color:var(--muted); }
.ops-list.order-list li { padding:.35rem 0; border-top:0; }
.ops-list.order-list .order { margin:0; }
.ops-list .ops-manager-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.8rem; padding:.85rem 0; }
.ops-password-reset { flex-basis:100%; margin:.75rem 0; border:1px solid var(--line,#d5dfe1); border-radius:.5rem; background:#f6f9fa; }
.ops-password-reset summary { cursor:pointer; padding:.7rem .85rem; font-size:.9rem; font-weight:600; }
.ops-password-reset form { padding:0 .85rem .85rem; }
.ops-password-reset .ops-reset-status { color:#256348; font-size:.9rem; }
.ops-manager-row .ops-contact>strong { font-size:.98rem; font-weight:600; }
.ops-manager-access { display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:.5rem .8rem; font-size:.85rem; color:var(--muted); }
.ops-access { display:inline-block; padding:.2rem .5rem; border-radius:4px; background:#edf3f0; color:#285e47; font-size:.8rem; font-weight:600; }
.ops-access-revoked { background:#f0f1f2; color:#58616a; }
@media(max-width:720px) {
  .ops-layout { grid-template-columns:minmax(0,1fr); gap:.75rem; }
  .ops-side { padding:.35rem; }
  .ops-nav { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .ops-nav a { flex-direction:column; justify-content:center; gap:.25rem; text-align:center; font-size:.84rem; padding:.45rem .1rem; line-height:1.15; }
  .ops-account { align-items:center; margin-top:.3rem; padding:.1rem .4rem 0; }
  .ops-account span { flex:1 1 auto; }
  .ops-main { padding:.8rem; }
  .ops-status-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.4rem; }
  .ops-status-filters a { padding:.4rem .45rem; justify-content:space-between; }
  .ops-manager-row { align-items:flex-start; }
  .ops-manager-access { flex-direction:column; align-items:flex-end; gap:.3rem; }
  .ops-record { align-items:flex-start; }
  .ops-record time { flex:0 1 7rem; }
  .ops-activity summary { grid-template-columns:5.3rem 7rem minmax(0,1fr) 10px; gap:.35rem; font-size:.81rem; }
  .ops-activity summary>time { font-size:.75rem; }
  .ops-event { font-size:.77rem; padding:.22rem .3rem; }
  body:has(#trade-page:not([hidden]) .ops-layout) #mobile-tools { display:none; }
  body:has(#trade-page:not([hidden]) .ops-layout) { padding-bottom:0; }
}
@media(max-width:410px) {
  .ops-create-retailer { padding:.75rem; }
  .ops-create-grid { grid-template-columns:minmax(0,1fr); gap:.7rem; }
  .ops-create-state { grid-column:auto; grid-row:auto; }
  .ops-create-state output { min-height:24px; }
  .ops-nav a { font-size:.8rem; }
  .ops-search label:first-child { flex-basis:100%; }
  .ops-search label:nth-child(2) { flex:1; }
  .ops-contact { min-width:0; flex:1 1 7rem; }
  .ops-status-actions { flex:0 1 auto; }
  .ops-directory-row:has(.ops-decisions) .ops-status,.ops-retailer-title:has(.ops-decisions) .ops-status { padding:0; background:transparent; font-size:.73rem; }
  .ops-directory-row:has(.ops-decisions) .ops-status b { display:none; }
  .ops-tabs { gap:1px; }
  .ops-tabs a { font-size:.86rem; min-height:40px; }
  .ops-profile div { grid-template-columns:minmax(5.5rem,.7fr) minmax(0,1.25fr); }
}

.gallery-stage{display:block;width:100%;height:min(56dvh,34rem);background:white;border:0;padding:0;touch-action:pan-y pinch-zoom;cursor:zoom-in;}
.gallery-stage .viewer-photo{width:100%;height:100%;max-height:none;object-fit:contain;user-select:none;}
dialog.photo-fullscreen{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;box-sizing:border-box;background:white;overflow:hidden;}
.photo-fullscreen .product-gallery{width:100%;height:100%;display:grid;grid-template-rows:minmax(0,1fr) auto;}
.photo-fullscreen .gallery-stage{height:100%;min-height:0;cursor:default;}
.photo-fullscreen .gallery-controls:not(:empty){margin:0;padding:8px max(16px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));}
.photo-fullscreen .gallery-controls:empty{display:none;}
.photo-close{position:absolute;z-index:1;top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));background:white;font-size:24px;min-width:44px;min-height:44px;}
.checkout-pin-state{display:grid;grid-column:1 / -1;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:12px;}.checkout-pin-state label,.checkout-pin-state input{min-width:0;width:100%;}.checkout-grid [aria-invalid=true]{outline:2px solid #ad342c;outline-offset:1px;}

/* Native touch scrolling keeps image swipes independent of page scrolling. */
.shop-gallery { grid-area:photo; min-width:0; overflow:hidden; }
.shop-slides { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:contain; }
.shop-slides::-webkit-scrollbar { display:none; }
.product-photo .shop-slide { flex:0 0 100%; scroll-snap-align:center; scroll-snap-stop:always; }
.shop-dots { display:flex; align-items:center; justify-content:center; gap:0; min-height:24px; background:white; }
.shop-dots button { display:grid; place-items:center; width:24px; height:24px; padding:0; }
.shop-dots span { width:5px; height:5px; border-radius:50%; background:#bdd3eb; transition:width .18s,background .18s; }
.shop-dots [aria-pressed="true"] span { width:14px; border-radius:5px; background:#2673b8; }
@media(prefers-reduced-motion:reduce){.shop-dots span{transition:none;}}
/* Compact checkout summary; keep names, quantities and all amounts visible. */
.checkout-review.form-card { padding:14px; }
.checkout-review h2 { font-size:1rem; line-height:1.3; margin:0 0 10px; }
.checkout-review .quote-lines { margin:0 0 8px; }
.checkout-review .quote-lines li { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:start; padding:6px 0; font-size:.875rem; line-height:1.3; }
.checkout-review .quote-lines li > span { min-width:0; }
.checkout-review .quote-lines small { margin-top:2px; font-size:.8125rem; line-height:1.25; }
.checkout-review .quote-lines strong { font-size:.875rem; font-weight:650; }
.checkout-review .amount-line { gap:10px; padding:4px 0; font-size:.875rem; }
.checkout-review .amount-line.total { margin-top:6px; padding-top:8px; font-size:1rem; }
.checkout-review #order-summary > p { margin:6px 0; font-size:.8125rem; line-height:1.35; }
.checkout-items { margin-bottom:10px; }
.checkout-items summary { display:flex; align-items:center; gap:8px; cursor:pointer; min-height:44px; padding:8px 10px; border:1px solid #d3e0e8; border-radius:6px; background:#eef5fa; font-size:.9375rem; font-weight:650; list-style:none; }
.checkout-items summary::-webkit-details-marker { display:none; }
.checkout-items summary span { margin-left:auto; font-size:.8125rem; font-weight:400; color:#536874; }
.checkout-items summary::after { content:'+'; font-size:1.2rem; }
.checkout-items[open] summary::after { content:'−'; }
.checkout-items summary:focus-visible { outline:2px solid #2673b8; outline-offset:2px; }
.checkout-items .quote-lines { margin-top:6px; }

.site-footer { background:#f2f6f8; border-top:1px solid #d9e3e8; }
.site-footer .foot { display:grid; grid-template-columns:minmax(0,1fr) minmax(230px,1.25fr) minmax(150px,.8fr); align-items:start; gap:24px; padding-block:20px; font-size:.875rem; line-height:1.4; }
.site-footer .foot a { margin-left:0; }
.footer-intro p { margin:10px 0 0; color:var(--muted); }
.footer-contact .footer-company { display:grid; gap:1px; margin:8px 0 0; }
.footer-company span { font-size:.8125rem; }
.footer-company strong { color:var(--ink); font-weight:600; }
.footer-contact address { margin-top:5px; font-style:normal; }
.site-footer .footer-brand { display:inline-flex; align-items:center; min-height:44px; font-size:32px; }
.footer-contact h2 { margin:0 0 6px; color:var(--ink); font-size:1rem; font-weight:650; }
.footer-contact > a { display:flex; align-items:center; justify-content:flex-start; gap:8px; min-height:32px; width:fit-content; max-width:100%; }
.footer-contact > a > span { min-width:7.75rem; }
.footer-contact strong { color:var(--ink); font-weight:600; white-space:nowrap; }
.footer-contact > .footer-email { justify-content:flex-start; overflow-wrap:anywhere; }
.footer-links { display:grid; align-content:start; }
.footer-links a { display:flex; align-items:center; min-height:44px; color:var(--ink); }
.site-footer a:hover,.information-page a:hover { text-decoration:underline; text-underline-offset:3px; }
.site-footer a:focus-visible,.information-page a:focus-visible { outline:2px solid #2673b8; outline-offset:3px; border-radius:3px; }
.information-page { max-width:760px; padding:clamp(20px,3vw,32px); background:white; border:1px solid var(--line); border-radius:10px; font-size:1rem; line-height:1.65; }
.information-page .information-lead { margin:0 0 18px; color:var(--ink); font-size:1.125rem; }
.information-page .information-meta { margin:0 0 12px; font-size:.8125rem; }
.information-page section + section { margin-top:24px; }
.information-page h2 { margin:0 0 8px; font-size:1.0625rem; line-height:1.4; font-weight:650; }
.information-page p { font-size:1rem; line-height:1.65; }
.information-page p:last-child { margin-bottom:0; }
.information-page a { color:#245f8b; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
.information-contact { padding-top:20px; border-top:1px solid var(--line); }
.account-overview { display:flex; flex-direction:column; align-items:flex-start; min-height:clamp(260px,42vh,400px); }
.account-signout { margin-top:auto; padding-top:28px; }
.account-signout button { min-height:44px; padding:8px 0; color:var(--muted); font-size:.875rem; text-decoration:underline; text-underline-offset:3px; }
.account-signout button:focus-visible { outline:2px solid #2673b8; outline-offset:3px; border-radius:3px; }
.catalogue-download { display:grid; justify-items:start; gap:16px; max-width:480px; }
.catalogue-download > p { margin:0; }
.catalogue-download-status { max-width:480px; margin-top:12px; font-size:.875rem; }
.catalogue-download-status p { margin:0; }
.catalogue-download-status .download-progress { color:var(--muted); }
.catalogue-download-error { color:#9b302d; }
.catalogue-download-error:empty { display:none; }
@media(max-width:680px) {
  .site-footer .foot { grid-template-columns:1fr; gap:10px; padding-block:16px; font-size:.875rem; }
  .footer-intro p { margin-top:4px; }
  .footer-contact { max-width:420px; }
  .footer-links { grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:16px; padding-top:10px; border-top:1px solid #d9e3e8; }
  .information-page { padding:20px 16px; }
}
/* Keep rewards and the customer contact within reach without covering the shop. */
.site-head { position:sticky; top:0; z-index:10; padding-top:env(safe-area-inset-top,0px); box-shadow:0 1px 5px #172f3e0a; }
.site-head .bar { min-height:64px; }
.header-identity { display:flex; align-items:center; flex:0 0 auto; min-width:120px; }
.header-enquiries { display:inline-flex; align-items:center; gap:7px; min-height:40px; padding:5px 9px; border:1px solid #bddbc9; border-radius:8px; background:#e9f5ed; color:#205b3c; font-size:.8125rem; font-weight:650; line-height:1.15; }
.header-enquiries .whatsapp-icon { width:20px; height:20px; flex:none; }
.enquiries-detail { display:block; font-size:.6875rem; font-weight:500; white-space:nowrap; }
.account-form .registration-enquiries { justify-self:start; min-height:44px; gap:8px; padding:8px 12px; font-size:.875rem; text-decoration:none; }
.site-head.is-scrolled .trade-mark { display:none; }
#casa-coins-link { min-height:40px; padding:5px 8px; gap:6px; font-size:.8125rem; border-radius:8px; }
.casa-coin-symbol { width:20px; height:20px; font-size:.875rem; }
.casa-coins-balance { padding-left:6px; font-size:.9375rem; }
#catalogue { scroll-margin-top:80px; }
@media(max-width:680px) {
  .site-head .bar { min-height:54px; gap:8px; padding-inline:12px; }
  .header-identity { min-width:106px; }
  .header-enquiries { gap:6px; padding:5px 7px; font-size:.75rem; }
  .header-enquiries .whatsapp-icon { width:18px; height:18px; }
  #casa-coins-link { min-height:38px; padding:5px 7px; gap:5px; font-size:.75rem; }
  .casa-coins-balance { font-size:.875rem; }
  .casa-coin-symbol { width:18px; height:18px; font-size:.8125rem; }
  #catalogue { scroll-margin-top:68px; }
}
