
/* Keep the top navigation on one line at desktop widths. */
.mainnav { gap: .1rem; min-width: 0; }
.mainnav a { white-space: nowrap; padding: .5rem .55rem; font-size: .875rem; }
@media (min-width: 1400px) {
  .mainnav a { padding: .55rem .8rem; font-size: .9rem; }
}

/* Keep the top navigation on one line at desktop widths. */
.mainnav { gap: .1rem; min-width: 0; }
.mainnav a { white-space: nowrap; padding: .5rem .55rem; font-size: .875rem; }
@media (min-width: 1400px) {
  .mainnav a { padding: .55rem .8rem; font-size: .9rem; }
}
/* =========================================================================
   XpertOne Prints — Design System
   Single stylesheet. No build step. Bootstrap 5 is loaded first and this
   file overrides it. All design tokens live in :root below.
   ========================================================================= */

:root {
  /* --- Brand ------------------------------------------------------------ */
  --xo-amber:        #FFB800;   /* primary action / brand accent          */
  --xo-amber-600:    #E5A300;
  --xo-amber-100:    #FFF6DF;
  --xo-ink:          #0E1116;   /* near-black, headings + primary surface */
  --xo-ink-800:      #1B2128;
  --xo-ink-600:      #39414B;

  /* --- Neutrals --------------------------------------------------------- */
  --xo-body:         #4A535E;
  --xo-muted:        #6B7480;
  --xo-line:         #E4E7EC;
  --xo-line-strong:  #CBD2DA;
  --xo-surface:      #FFFFFF;
  --xo-surface-alt:  #F6F7F9;
  --xo-surface-deep: #EEF1F4;

  /* --- Semantic --------------------------------------------------------- */
  --xo-success:      #0E9F6E;
  --xo-success-bg:   #E7F7F1;
  --xo-danger:       #D64545;
  --xo-danger-bg:    #FDECEC;
  --xo-info:         #1D6FD4;

  /* --- Shape & motion --------------------------------------------------- */
  --xo-r-sm: 6px;
  --xo-r:    10px;
  --xo-r-lg: 16px;
  --xo-shadow-sm: 0 1px 2px rgba(14,17,22,.06), 0 1px 3px rgba(14,17,22,.04);
  --xo-shadow:    0 4px 12px rgba(14,17,22,.07), 0 2px 4px rgba(14,17,22,.04);
  --xo-shadow-lg: 0 18px 40px rgba(14,17,22,.12), 0 4px 12px rgba(14,17,22,.06);
  --xo-t: 180ms cubic-bezier(.2,.7,.3,1);

  /* --- Layout ----------------------------------------------------------- */
  --xo-header-h: 72px;
  --xo-maxw: 1240px;
}

/* =========================================================================
   Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--xo-body);
  background: var(--xo-surface);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv02','cv03','cv04','tnum';
}

/* 2026 storefront refinement: quieter surfaces, sharper hierarchy, product-first rhythm. */
:root {
  --xo-amber: #F5B301;
  --xo-amber-600: #D99C00;
  --xo-amber-100: #FFF7DC;
  --xo-ink: #0A0D12;
  --xo-ink-800: #151A21;
  --xo-ink-600: #343D49;
  --xo-body: #46505C;
  --xo-muted: #697381;
  --xo-line: #E7E9ED;
  --xo-surface-alt: #F7F8FA;
  --xo-r-sm: 8px;
  --xo-r: 12px;
  --xo-r-lg: 18px;
  --xo-shadow: 0 14px 36px rgba(10,13,18,.08);
  --xo-shadow-lg: 0 24px 60px rgba(10,13,18,.16);
  --xo-maxw: 1320px;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
  font-family: inherit;
  color: var(--xo-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 .5rem;
}

h1, .h1 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem); letter-spacing: -.035em; }
h2, .h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem); letter-spacing: -.03em; }
h3, .h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); }

p { margin: 0 0 1rem; }
a { color: var(--xo-ink); text-decoration: none; transition: color var(--xo-t); }
a:hover { color: var(--xo-amber-600); }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--xo-line); opacity: 1; margin: 2rem 0; }

.container { max-width: var(--xo-maxw); }

:focus-visible {
  outline: 3px solid rgba(255,184,0,.55);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--xo-ink); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--xo-r) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* =========================================================================
   Typographic utilities
   ========================================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--xo-muted);
}
.eyebrow--amber { color: var(--xo-amber-600); }
.eyebrow::before {
  content: ''; width: 22px; height: 2px; background: var(--xo-amber); border-radius: 2px;
}
.lead { font-size: 1.075rem; color: var(--xo-body); }
.text-muted-xo { color: var(--xo-muted) !important; }
.num { font-variant-numeric: tabular-nums; }
.section { padding: clamp(3rem, 1.5rem + 5vw, 5.5rem) 0; }
.section--alt { background: var(--xo-surface-alt); }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  --bs-btn-focus-box-shadow: none;
  font-weight: 600;
  border-radius: var(--xo-r-sm);
  padding: .7rem 1.35rem;
  border: 1px solid transparent;
  transition: transform var(--xo-t), background var(--xo-t), border-color var(--xo-t), color var(--xo-t), box-shadow var(--xo-t);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  line-height: 1.25;
}
.btn:active { transform: translateY(1px); }

.btn-xo {
  background: var(--xo-amber); color: var(--xo-ink); border-color: var(--xo-amber);
  box-shadow: var(--xo-shadow-sm);
}
.btn-xo:hover { background: var(--xo-amber-600); border-color: var(--xo-amber-600); color: var(--xo-ink); }

.btn-ink { background: var(--xo-ink); color: #fff; border-color: var(--xo-ink); }
.btn-ink:hover { background: var(--xo-ink-800); color: #fff; }

.btn-outline-xo { background: transparent; color: var(--xo-ink); border-color: var(--xo-line-strong); }
.btn-outline-xo:hover { border-color: var(--xo-ink); background: var(--xo-surface-alt); color: var(--xo-ink); }

.btn-wa { background: #25D366; color: #fff; border-color: #25D366; }
.btn-wa:hover { background: #1EBE5A; border-color: #1EBE5A; color: #fff; }

.btn-lg-xo { padding: .95rem 1.9rem; font-size: 1rem; }
.btn-sm-xo { padding: .45rem .85rem; font-size: .85rem; }
.btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* =========================================================================
   Header
   ========================================================================= */
.topbar {
  background: var(--xo-ink); color: rgba(255,255,255,.72);
  font-size: .8rem; padding: .5rem 0;
}
.topbar a { color: rgba(255,255,255,.72); }
.topbar a:hover { color: var(--xo-amber); }
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; }

.site-header {
  position: sticky; top: 0; z-index: 1020;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--xo-line);
}
.site-header__inner { height: var(--xo-header-h); display: flex; align-items: center; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; flex: 0 0 auto; }
.brand__logo { width: 38px; height: 46px; object-fit: contain; display: block; flex: 0 0 auto; }
.brand__logo--footer { filter: drop-shadow(0 4px 12px rgba(0,0,0,.2)); }
.brand__mark {
  width: 38px; height: 38px; border-radius: 9px; flex: 0 0 auto;
  background: var(--xo-ink); color: var(--xo-amber);
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; letter-spacing: -.04em;
}
.brand__name { font-weight: 800; color: var(--xo-ink); letter-spacing: -.03em; font-size: 1.08rem; line-height: 1.1; }
.brand__tag { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--xo-muted); }

.mainnav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.mainnav a {
  padding: .55rem .85rem; border-radius: var(--xo-r-sm);
  font-weight: 600; font-size: .92rem; color: var(--xo-ink-600);
}
.mainnav a:hover { background: var(--xo-surface-alt); color: var(--xo-ink); }
.mainnav a.is-active { color: var(--xo-ink); background: var(--xo-surface-deep); }

.header-actions { display: flex; align-items: center; gap: .5rem; }

.cart-btn { position: relative; }
.cart-btn__count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: 10px; background: var(--xo-amber); color: var(--xo-ink);
  font-size: .7rem; font-weight: 800; display: grid; place-items: center;
  border: 2px solid #fff;
}
.cart-btn__count[data-empty='true'] { display: none; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative; overflow: hidden;
  background: var(--xo-ink);
  color: rgba(255,255,255,.78);
  padding: clamp(3.5rem, 2rem + 6vw, 6.5rem) 0;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 480px at 83% 12%, rgba(245,179,1,.2), transparent 62%),
    linear-gradient(115deg, transparent 58%, rgba(255,255,255,.025) 58% 59%, transparent 59%);
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 14ch; font-size: clamp(2.65rem, 1.6rem + 4vw, 5rem); line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--xo-amber); }
.hero__sub { font-size: 1.08rem; max-width: 58ch; color: rgba(255,255,255,.7); line-height: 1.75; }

.hero__stats { display: flex; flex-wrap: wrap; gap: 2.25rem; margin-top: 2.5rem; }
.hero__stat b { display: block; color: #fff; font-size: 1.65rem; font-weight: 800; letter-spacing: -.03em; }
.hero__stat span { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); font-weight: 600; }

.hero__card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--xo-r-lg);
  padding: clamp(1.5rem, 3vw, 2.35rem);
  backdrop-filter: blur(6px);
}
.hero__card h3 { color: #fff; font-size: 1.05rem; }
.hero__card ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.hero__card li { display: flex; gap: .7rem; padding: .5rem 0; font-size: .93rem; }
.hero__card li i { color: var(--xo-amber); margin-top: .25rem; }

/* =========================================================================
   Trust strip
   ========================================================================= */
.trustbar { border-bottom: 1px solid var(--xo-line); background: var(--xo-surface); }
.trustbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trustbar__item {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 1.5rem 1.25rem; border-right: 1px solid var(--xo-line);
}
.trustbar__item:last-child { border-right: 0; }
.trustbar__item i { color: var(--xo-amber-600); font-size: 1.15rem; margin-top: .15rem; }
.trustbar__item b { display: block; color: var(--xo-ink); font-size: .93rem; }
.trustbar__item span { font-size: .84rem; color: var(--xo-muted); }
@media (max-width: 991px) {
  .trustbar__grid { grid-template-columns: repeat(2, 1fr); }
  .trustbar__item:nth-child(2n) { border-right: 0; }
  .trustbar__item:nth-child(-n+2) { border-bottom: 1px solid var(--xo-line); }
}
@media (max-width: 575px) {
  .trustbar__grid { grid-template-columns: 1fr; }
  .trustbar__item { border-right: 0; border-bottom: 1px solid var(--xo-line); }
}

/* =========================================================================
   Category tiles
   ========================================================================= */
.cat-tile {
  display: block; position: relative; overflow: hidden;
  border: 1px solid var(--xo-line); border-radius: var(--xo-r-lg);
  background: var(--xo-surface); height: 100%;
  transition: border-color var(--xo-t), box-shadow var(--xo-t), transform var(--xo-t);
}
.cat-tile:hover { border-color: #C8CDD4; box-shadow: var(--xo-shadow); transform: translateY(-4px); }
.cat-tile__media {
  aspect-ratio: 1 / 1; background: #fff;
  display: grid; place-items: center; padding: 0;
}
.cat-tile__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cat-tile__body { padding: 1.25rem 1.35rem 1.5rem; }
.cat-tile__body h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.cat-tile__body p { font-size: .87rem; color: var(--xo-muted); margin: 0; }
.cat-tile__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: .8rem; font-weight: 700; font-size: .87rem; color: var(--xo-ink); }
.cat-tile:hover .cat-tile__more { color: var(--xo-amber-600); }

/* =========================================================================
   Product card
   ========================================================================= */
.product-card {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  background: var(--xo-surface);
  border: 1px solid var(--xo-line);
  border-radius: var(--xo-r-lg);
  overflow: hidden;
  transition: border-color var(--xo-t), box-shadow var(--xo-t), transform var(--xo-t);
}
.product-card:hover { border-color: #C8CDD4; box-shadow: var(--xo-shadow); transform: translateY(-4px); }

.product-card__media {
  position: relative; aspect-ratio: 1 / 1; background: var(--xo-surface-alt);
  display: grid; place-items: center; padding: 1.1rem; overflow: hidden;
}
.product-card__media img {
  max-height: 100%; max-width: 100%; object-fit: contain;
  mix-blend-mode: multiply; transition: transform 400ms cubic-bezier(.2,.7,.3,1);
}
.product-card:hover .product-card__media img { transform: scale(1.045); }

.product-card__body { padding: 1.15rem 1.2rem 1.25rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.product-card__cat { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--xo-muted); }
.product-card__title {
  font-size: .97rem; font-weight: 700; color: var(--xo-ink);
  margin: .3rem 0 .5rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__sizes { font-size: .78rem; color: var(--xo-muted); margin-bottom: .75rem; }
.product-card__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; }
.product-card__price b { display: block; font-size: 1.2rem; font-weight: 800; color: var(--xo-ink); letter-spacing: -.02em; }
.product-card__price span { font-size: .74rem; color: var(--xo-muted); }

.badge-xo {
  display: inline-block; padding: .28rem .55rem; border-radius: 999px;
  font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}
.badge-xo--amber { background: var(--xo-amber-100); color: #8A6200; }
.badge-xo--ink   { background: var(--xo-surface-deep); color: var(--xo-ink-600); }
.badge-xo--green { background: var(--xo-success-bg); color: var(--xo-success); }
.product-card__badge { position: absolute; top: .75rem; left: .75rem; z-index: 2; }

/* =========================================================================
   Size / quantity matrix  — the core order-flow fix
   ========================================================================= */
.qty-matrix { border: 1px solid var(--xo-line); border-radius: var(--xo-r); overflow: hidden; }
.qty-matrix__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1rem; background: var(--xo-surface-alt);
  border-bottom: 1px solid var(--xo-line);
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--xo-ink-600);
}
.qty-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 1px; background: var(--xo-line);
}
.qty-cell { background: var(--xo-surface); padding: .75rem .6rem; text-align: center; }
.qty-cell label {
  display: block; font-size: .74rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--xo-muted); margin-bottom: .4rem;
}
.qty-cell input {
  width: 100%; text-align: center; font-weight: 700; font-size: 1rem;
  padding: .45rem .3rem; border: 1px solid var(--xo-line-strong); border-radius: var(--xo-r-sm);
  background: var(--xo-surface); color: var(--xo-ink);
  font-variant-numeric: tabular-nums; transition: border-color var(--xo-t), box-shadow var(--xo-t);
  -moz-appearance: textfield;
}
.qty-cell input::-webkit-outer-spin-button,
.qty-cell input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-cell input:focus { border-color: var(--xo-amber); box-shadow: 0 0 0 3px rgba(255,184,0,.2); outline: none; }
.qty-cell.is-filled { background: var(--xo-amber-100); }

.quickfill { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.quickfill span { font-size: .78rem; color: var(--xo-muted); font-weight: 600; margin-right: .2rem; }
.quickfill button {
  border: 1px solid var(--xo-line-strong); background: var(--xo-surface);
  border-radius: 999px; padding: .28rem .75rem; font-size: .8rem; font-weight: 700;
  color: var(--xo-ink-600); cursor: pointer; transition: all var(--xo-t);
}
.quickfill button:hover { border-color: var(--xo-ink); background: var(--xo-ink); color: #fff; }

/* Live order summary panel */
.order-panel {
  border: 1px solid var(--xo-line); border-radius: var(--xo-r);
  background: var(--xo-surface-alt); padding: 1.1rem 1.25rem;
}
.order-panel__row { display: flex; justify-content: space-between; align-items: baseline; padding: .3rem 0; font-size: .92rem; }
.order-panel__row b { color: var(--xo-ink); font-variant-numeric: tabular-nums; }
.order-panel__total { border-top: 1px dashed var(--xo-line-strong); margin-top: .5rem; padding-top: .7rem; }
.order-panel__total b { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }

.tier-table { width: 100%; font-size: .87rem; border-collapse: collapse; }
.tier-table th, .tier-table td { padding: .5rem .7rem; border-bottom: 1px solid var(--xo-line); text-align: left; }
.tier-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--xo-muted); font-weight: 700; }
.tier-table tr.is-active { background: var(--xo-amber-100); }
.tier-table tr.is-active td { font-weight: 700; color: var(--xo-ink); }

/* =========================================================================
   Product detail
   ========================================================================= */
.gallery__main {
  border: 1px solid var(--xo-line); border-radius: var(--xo-r-lg);
  background: var(--xo-surface-alt); aspect-ratio: 1/1;
  display: grid; place-items: center; padding: 2rem; overflow: hidden;
}
.gallery__main img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__thumbs { display: flex; gap: .6rem; margin-top: .75rem; flex-wrap: wrap; }
.gallery__thumb {
  width: 72px; height: 72px; border-radius: var(--xo-r-sm); border: 1px solid var(--xo-line);
  background: var(--xo-surface-alt); display: grid; place-items: center; padding: .35rem;
  cursor: pointer; transition: border-color var(--xo-t);
}
.gallery__thumb.is-active, .gallery__thumb:hover { border-color: var(--xo-ink); }
.gallery__thumb img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li { display: flex; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--xo-line); font-size: .92rem; }
.spec-list li b { flex: 0 0 42%; color: var(--xo-ink); font-weight: 600; }

/* Manufacturer bullet points on the product page. */
.feature-list { margin: 0; padding-left: 1.15rem; font-size: .92rem; color: var(--xo-ink-600); }
.feature-list li { margin-bottom: .3rem; }

/* Shown wherever a price is still a placeholder. */
.price-note {
  font-size: .86rem; line-height: 1.5; color: var(--xo-ink-600);
  background: var(--xo-surface-alt); border: 1px solid var(--xo-line);
  border-left: 3px solid var(--xo-amber-600);
  border-radius: var(--xo-r-sm); padding: .6rem .8rem; max-width: 62ch;
}
.price-note i { color: var(--xo-amber-600); margin-right: .35rem; }

/* =========================================================================
   Cart & checkout
   ========================================================================= */
.cart-line {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 1.1rem;
  padding: 1.25rem 0; border-bottom: 1px solid var(--xo-line);
}
.cart-line__media {
  width: 92px; height: 92px; border-radius: var(--xo-r-sm);
  background: var(--xo-surface-alt); display: grid; place-items: center; padding: .5rem;
  border: 1px solid var(--xo-line);
}
.cart-line__media img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cart-line__title { font-weight: 700; color: var(--xo-ink); font-size: 1rem; margin-bottom: .15rem; }
.cart-line__sizes { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.size-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--xo-surface-alt); border: 1px solid var(--xo-line);
  border-radius: 999px; padding: .2rem .6rem; font-size: .8rem; font-weight: 600; color: var(--xo-ink-600);
}
.size-chip b { color: var(--xo-ink); font-variant-numeric: tabular-nums; }
.cart-line__amount { text-align: right; font-weight: 800; color: var(--xo-ink); font-size: 1.1rem; white-space: nowrap; }
@media (max-width: 575px) {
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line__media { width: 64px; height: 64px; }
  .cart-line__amount { grid-column: 2; text-align: left; }
}

.summary-card {
  border: 1px solid var(--xo-line); border-radius: var(--xo-r-lg);
  background: var(--xo-surface); box-shadow: var(--xo-shadow-sm);
  padding: 1.4rem; position: sticky; top: calc(var(--xo-header-h) + 1.25rem);
}
.summary-card__row { display: flex; justify-content: space-between; padding: .4rem 0; font-size: .93rem; }
.summary-card__row b { font-variant-numeric: tabular-nums; color: var(--xo-ink); }
.summary-card__total { border-top: 1px solid var(--xo-line); margin-top: .6rem; padding-top: .9rem; }
.summary-card__total b { font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; }

.steps { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.step { display: flex; align-items: center; gap: .55rem; font-size: .88rem; font-weight: 600; color: var(--xo-muted); }
.step__n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--xo-surface-deep); color: var(--xo-muted); font-size: .8rem; font-weight: 800;
}
.step.is-active { color: var(--xo-ink); }
.step.is-active .step__n { background: var(--xo-amber); color: var(--xo-ink); }
.step.is-done .step__n { background: var(--xo-success); color: #fff; }
.step__sep { width: 28px; height: 1px; background: var(--xo-line-strong); }

.form-label { font-weight: 600; color: var(--xo-ink); font-size: .87rem; margin-bottom: .35rem; }
.form-control, .form-select {
  border: 1px solid var(--xo-line-strong); border-radius: var(--xo-r-sm);
  padding: .65rem .85rem; font-size: .95rem; color: var(--xo-ink);
  transition: border-color var(--xo-t), box-shadow var(--xo-t);
}
.form-control:focus, .form-select:focus {
  border-color: var(--xo-amber); box-shadow: 0 0 0 3px rgba(255,184,0,.18);
}
.form-text { font-size: .8rem; color: var(--xo-muted); }
.form-check-input:checked { background-color: var(--xo-ink); border-color: var(--xo-ink); }

.pay-option {
  display: flex; gap: .9rem; align-items: flex-start;
  border: 1px solid var(--xo-line-strong); border-radius: var(--xo-r);
  padding: 1rem 1.1rem; cursor: pointer; transition: all var(--xo-t); margin-bottom: .75rem;
}
.pay-option:hover { border-color: var(--xo-ink-600); }
.pay-option.is-selected { border-color: var(--xo-ink); background: var(--xo-surface-alt); box-shadow: var(--xo-shadow-sm); }
.pay-option b { display: block; color: var(--xo-ink); font-size: .95rem; }
.pay-option span { font-size: .84rem; color: var(--xo-muted); }

/* Empty states */
.empty-state { text-align: center; padding: clamp(2.5rem, 6vw, 5rem) 1rem; max-width: 480px; margin: 0 auto; }
.empty-state__icon {
  width: 76px; height: 76px; border-radius: 50%; background: var(--xo-surface-alt);
  display: grid; place-items: center; margin: 0 auto 1.25rem; font-size: 1.8rem; color: var(--xo-line-strong);
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--xo-ink); color: rgba(255,255,255,.62); padding: 4rem 0 0; }

/* Editorial FAQ block used for buyer questions and search relevance. */
.faq-section { background: #fff; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.faq-grid article {
  border: 1px solid var(--xo-line); border-radius: var(--xo-r-lg);
  padding: clamp(1.25rem, 2.5vw, 2rem); background: var(--xo-surface-alt);
}
.faq-grid h3 { font-size: 1.05rem; margin-bottom: .55rem; }
.faq-grid p { margin: 0; color: var(--xo-muted); font-size: .94rem; }

/* Mobile polish: immediate catalogue access, calmer header, touch-sized actions. */
@media (max-width: 991px) {
  .topbar { display: none; }
  .site-header__inner { gap: .75rem; }
  .hero { padding: 4rem 0; }
  .hero h1 { max-width: 12ch; }
  .hero__stats { gap: 1.25rem 2rem; }
}
@media (max-width: 575px) {
  .section { padding: 3.25rem 0; }
  .hero { padding: 3.25rem 0; }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 3.45rem); }
  .hero__sub { font-size: 1rem; }
  .hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
  .hero__stat b { font-size: 1.15rem; }
  .hero__stat span { font-size: .64rem; letter-spacing: .06em; }
  .faq-grid { grid-template-columns: 1fr; }
  .product-card__body { padding: .9rem; }
  .product-card__foot { align-items: stretch; flex-direction: column; }
  .product-card__foot .btn { width: 100%; }
}
.site-footer h4 {
  color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 700; margin-bottom: 1.1rem;
}
.site-footer a { color: rgba(255,255,255,.62); font-size: .91rem; }
.site-footer a:hover { color: var(--xo-amber); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .28rem 0; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding: 1.4rem 0;
  font-size: .84rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; font-size: .91rem; padding: .4rem 0; }
.footer-contact i { color: var(--xo-amber); margin-top: .28rem; width: 15px; }

/* =========================================================================
   Floating WhatsApp — single floating element, by design
   ========================================================================= */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 1030;
  display: inline-flex; align-items: center; gap: .6rem;
  background: #25D366; color: #fff; font-weight: 700; font-size: .9rem;
  padding: .8rem 1.15rem; border-radius: 999px; box-shadow: var(--xo-shadow-lg);
  transition: transform var(--xo-t), box-shadow var(--xo-t);
}
.wa-float:hover { color: #fff; transform: translateY(-2px); }
.wa-float i { font-size: 1.2rem; }
@media (max-width: 575px) { .wa-float span { display: none; } .wa-float { padding: .9rem; } }

/* =========================================================================
   Toast
   ========================================================================= */
.xo-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140%);
  background: var(--xo-ink); color: #fff; padding: .85rem 1.3rem; border-radius: var(--xo-r);
  box-shadow: var(--xo-shadow-lg); font-weight: 600; font-size: .92rem; z-index: 1080;
  display: flex; align-items: center; gap: .7rem; transition: transform 280ms cubic-bezier(.2,.8,.3,1);
  max-width: calc(100vw - 32px);
}
.xo-toast.is-visible { transform: translate(-50%, 0); }
.xo-toast i { color: var(--xo-amber); }

/* =========================================================================
   Skeleton loading
   ========================================================================= */
.skeleton {
  background: linear-gradient(90deg, var(--xo-surface-alt) 25%, var(--xo-surface-deep) 37%, var(--xo-surface-alt) 63%);
  background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: var(--xo-r-sm);
}
@keyframes sk { 0% { background-position: 100% 50% } 100% { background-position: 0 50% } }
.skeleton-card { height: 340px; border-radius: var(--xo-r-lg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   Print — used for the PDF quote / purchase order
   ========================================================================= */
@media print {
  .site-header, .site-footer, .wa-float, .topbar, .no-print { display: none !important; }
  body { font-size: 12px; }
  .summary-card { position: static; box-shadow: none; }
}

/* =========================================================================
   Layout corrections
   ========================================================================= */

/* Keep every category tile the same height regardless of image size. */
.cat-tile__media { overflow: hidden; }

/* Keep the top navigation on a single line at desktop widths. */
.mainnav { gap: .1rem; min-width: 0; }
.mainnav a { white-space: nowrap; padding: .5rem .58rem; font-size: .875rem; }

/* A box with aspect-ratio still grows to its content's min-content height, so
   a tall product photo used to stretch one tile out of line with the others.
   Fixing the media height and clamping the image keeps every row even. */
.cat-tile__media {
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
}
.cat-tile__media img,
.product-card__media img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.cat-tile__media img { width: 100%; height: 100%; }
.product-card__media { min-height: 0; }

/* =========================================================================
   Product designer
   ========================================================================= */

/* A CSS display value beats the browser's [hidden] rule, so restore it. */
[hidden] { display: none !important; }

.designer {
  border: 1px solid var(--xo-line);
  border-radius: var(--xo-r);
  overflow: hidden;
  background: var(--xo-surface);
}
.designer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.1rem;
  background: var(--xo-surface-alt);
  border-bottom: 1px solid var(--xo-line);
}
.designer__head b { display: block; color: var(--xo-ink); font-size: .95rem; }
.designer__head span { font-size: .84rem; color: var(--xo-muted); }
.designer #dsBody { padding: 1.1rem; }

.switch { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; white-space: nowrap; }
.switch input { width: 40px; height: 22px; appearance: none; -webkit-appearance: none;
  background: var(--xo-line-strong); border-radius: 999px; position: relative;
  cursor: pointer; transition: background var(--xo-t); flex: 0 0 auto; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: transform var(--xo-t); box-shadow: var(--xo-shadow-sm); }
.switch input:checked { background: var(--xo-amber); }
.switch input:checked::after { transform: translateX(18px); }
.switch span { font-size: .88rem; font-weight: 600; color: var(--xo-ink); }

.designer__preview { position: relative; border: 1px solid var(--xo-line);
  border-radius: var(--xo-r-sm); overflow: hidden; background: var(--xo-surface-alt); }
.designer__preview canvas { display: block; width: 100%; height: auto; }
.designer__spinner {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(255,255,255,.82); font-weight: 600; font-size: .9rem; color: var(--xo-ink);
  gap: .5rem;
}

.design-chip {
  display: flex; gap: .75rem; align-items: flex-start; margin-top: .75rem;
  padding: .6rem .75rem; border: 1px dashed var(--xo-line-strong);
  border-radius: var(--xo-r-sm); background: var(--xo-surface-alt);
}
.design-chip img { width: 60px; height: 60px; object-fit: contain; border-radius: 4px;
  background: #fff; border: 1px solid var(--xo-line); flex: 0 0 auto; }
.design-chip b { display: block; font-size: .84rem; color: var(--xo-ink); }
.design-chip span { font-size: .8rem; color: var(--xo-muted); }

.design-review { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.design-review figure { margin: 0; border: 1px solid var(--xo-line); border-radius: var(--xo-r-sm);
  overflow: hidden; background: var(--xo-surface); }
.design-review img { width: 100%; display: block; }
.design-review figcaption { padding: .5rem .6rem; font-size: .78rem; color: var(--xo-muted); }
.design-review figcaption b { display: block; color: var(--xo-ink); font-size: .82rem; }

/* --- Designer layout: preview on top, controls beneath --------------------- */
.designer__stage { padding: 1rem 1rem .5rem; }
.designer__preview { max-width: 460px; margin: 0 auto; }
.designer__stagebar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 460px; margin: .6rem auto 0; flex-wrap: wrap;
}
.designer__spots { display: inline-flex; gap: .35rem; }
.designer__spots button {
  border: 1px solid var(--xo-line-strong); background: var(--xo-surface);
  border-radius: 999px; padding: .2rem .7rem; font-size: .78rem; font-weight: 700;
  color: var(--xo-ink-600); cursor: pointer; transition: all var(--xo-t);
}
.designer__spots button.is-active { background: var(--xo-ink); border-color: var(--xo-ink); color: #fff; }
.designer__size { display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; color: var(--xo-muted); margin: 0; }
.designer__size input { width: 110px; accent-color: var(--xo-amber); }
.designer__stage .form-text { text-align: center; max-width: 460px; margin: .5rem auto 0; }
.designer__preview canvas { cursor: grab; touch-action: none; }
.designer__preview canvas:active { cursor: grabbing; }

.designer__fields {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem 1rem; padding: .25rem 1rem 1.1rem;
  border-top: 1px solid var(--xo-line); margin-top: .75rem; padding-top: 1rem;
}
.designer__field--wide { grid-column: 1 / -1; }
@media (max-width: 575px) { .designer__fields { grid-template-columns: 1fr; } }

/* --- Print colour swatches ------------------------------------------------ */
.swatches { display: flex; flex-wrap: wrap; gap: .45rem; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; padding: 0;
  background: var(--sw); border: 1px solid var(--xo-line-strong);
  box-shadow: inset 0 0 0 2px #fff;
  transition: transform var(--xo-t), box-shadow var(--xo-t), border-color var(--xo-t);
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-active {
  border-color: var(--xo-ink);
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--xo-ink);
}
/* --- Designer layout: preview on top, controls beneath --------------------- */
.designer__stage { padding: 1rem 1rem .5rem; }
.designer__preview { max-width: 460px; margin: 0 auto; }
.designer__stagebar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 460px; margin: .6rem auto 0; flex-wrap: wrap;
}
.designer__spots { display: inline-flex; gap: .35rem; }
.designer__spots button {
  border: 1px solid var(--xo-line-strong); background: var(--xo-surface);
  border-radius: 999px; padding: .2rem .7rem; font-size: .78rem; font-weight: 700;
  color: var(--xo-ink-600); cursor: pointer; transition: all var(--xo-t);
}
.designer__spots button.is-active { background: var(--xo-ink); border-color: var(--xo-ink); color: #fff; }
.designer__size { display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; color: var(--xo-muted); margin: 0; }
.designer__size input { width: 110px; accent-color: var(--xo-amber); }
.designer__stage .form-text { text-align: center; max-width: 460px; margin: .5rem auto 0; }
.designer__preview canvas { cursor: grab; touch-action: none; }
.designer__preview canvas:active { cursor: grabbing; }

.designer__fields {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem 1rem; padding: .25rem 1rem 1.1rem;
  border-top: 1px solid var(--xo-line); margin-top: .75rem; padding-top: 1rem;
}
.designer__field--wide { grid-column: 1 / -1; }
@media (max-width: 575px) { .designer__fields { grid-template-columns: 1fr; } }

/* --- Print colour swatches ------------------------------------------------ */
.swatches { display: flex; flex-wrap: wrap; gap: .45rem; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; padding: 0;
  background: var(--sw); border: 1px solid var(--xo-line-strong);
  box-shadow: inset 0 0 0 2px #fff;
  transition: transform var(--xo-t), box-shadow var(--xo-t), border-color var(--xo-t);
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-active {
  border-color: var(--xo-ink);
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--xo-ink);
}

/* ==========================================================================
   Brand kit — internal sales tool (brand-kit.html)
   ========================================================================== */

.bk-banner {
  background: var(--xo-ink); color: #fff; padding: .7rem 0; font-size: .9rem;
}
.bk-banner i { color: var(--xo-amber); font-size: 1.1rem; }
.bk-banner b { color: #fff; }

.bk-head { margin-bottom: 1.5rem; }

.bk { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 991px) { .bk { grid-template-columns: 1fr; } }

/* --- client rail ---------------------------------------------------------- */
.bk__side {
  background: var(--xo-surface); border: 1px solid var(--xo-line);
  border-radius: var(--xo-r-lg); padding: 1rem; box-shadow: var(--xo-shadow-sm);
  position: sticky; top: calc(var(--xo-header-h) + 12px);
}
@media (max-width: 991px) { .bk__side { position: static; } }

.bk__sidehead { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.bk__list { display: flex; flex-direction: column; gap: .35rem; max-height: 46vh; overflow: auto; }

.bk-client {
  display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left;
  background: none; border: 1px solid transparent; border-radius: var(--xo-r);
  padding: .5rem; cursor: pointer; transition: background var(--xo-t), border-color var(--xo-t);
}
.bk-client:hover { background: var(--xo-surface-alt); }
.bk-client.is-active { background: var(--xo-amber-100); border-color: var(--xo-amber); }
.bk-client__logo {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 8px; overflow: hidden;
  background: var(--xo-surface-alt); border: 1px solid var(--xo-line);
  display: grid; place-items: center; color: var(--xo-muted);
}
.bk-client__logo img { width: 100%; height: 100%; object-fit: contain; }
.bk-client__body { min-width: 0; display: block; }
.bk-client__body b {
  display: block; font-size: .88rem; color: var(--xo-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bk-client__body span { display: block; font-size: .78rem; color: var(--xo-muted); }

.bk__storage { font-size: .76rem; color: var(--xo-muted); margin-top: .85rem; }
.bk-meter {
  height: 4px; border-radius: 3px; background: var(--xo-surface-deep); margin-top: .3rem; overflow: hidden;
}
.bk-meter span { display: block; height: 100%; background: var(--xo-amber); }

/* --- cards ---------------------------------------------------------------- */
.bk__main { display: flex; flex-direction: column; gap: 1.25rem; }

.bk-card {
  background: var(--xo-surface); border: 1px solid var(--xo-line);
  border-radius: var(--xo-r-lg); padding: 1.35rem; box-shadow: var(--xo-shadow-sm);
}
.bk-card__head { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1.1rem; }
.bk-step {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--xo-ink); color: #fff; font-weight: 700; font-size: .85rem;
  display: grid; place-items: center;
}
.bk-hint { font-size: .82rem; color: var(--xo-muted); }
.bk-opt { font-weight: 400; font-size: .76rem; color: var(--xo-muted); }
.bk-field { margin-top: 1rem; }
.bk-note { font-size: .83rem; margin: .6rem 0 0; }
.bk-good { color: var(--xo-success); font-weight: 600; }
.bk-warn { color: var(--xo-amber-600); font-weight: 600; }
.bk-bad  { color: var(--xo-danger);  font-weight: 600; }

.bk-check { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; font-size: .9rem; }
.bk-check input { margin-top: .25rem; width: 17px; height: 17px; flex: 0 0 17px; accent-color: var(--xo-ink); }

/* --- logo drop ------------------------------------------------------------ */
.bk-drop {
  position: relative; border: 2px dashed var(--xo-line-strong); border-radius: var(--xo-r-lg);
  min-height: 210px; display: grid; place-items: center; cursor: pointer; overflow: hidden;
  background-color: var(--xo-surface-alt);
  background-image:
    linear-gradient(45deg, #E9ECEF 25%, transparent 25%, transparent 75%, #E9ECEF 75%),
    linear-gradient(45deg, #E9ECEF 25%, transparent 25%, transparent 75%, #E9ECEF 75%);
  background-size: 18px 18px; background-position: 0 0, 9px 9px;
  transition: border-color var(--xo-t), background-color var(--xo-t);
}
.bk-drop:hover, .bk-drop.is-over { border-color: var(--xo-amber); }
.bk-drop__inner {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  text-align: center; padding: 1rem; color: var(--xo-body);
}
.bk-drop__inner i { font-size: 1.9rem; color: var(--xo-muted); margin-bottom: .2rem; }
.bk-drop img { max-width: 88%; max-height: 190px; object-fit: contain; }
.bk-spin {
  position: absolute; inset: 0; display: grid; place-items: center; gap: .5rem;
  background: rgba(255, 255, 255, .88); font-weight: 600; font-size: .9rem; color: var(--xo-ink);
}

/* --- item picker ---------------------------------------------------------- */
.bk-filters { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-bottom: .9rem; }
.bk-filter { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--xo-muted); }
.bk-filter b { color: var(--xo-ink); font-size: .84rem; }
.bk-filter .btn-link { font-size: .8rem; color: var(--xo-info); text-decoration: none; }

.bk-picks {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: .6rem;
  max-height: 330px; overflow: auto; padding: .3rem;
  border: 1px solid var(--xo-line); border-radius: var(--xo-r); background: var(--xo-surface-alt);
}
.bk-pick {
  position: relative; display: block; cursor: pointer; background: var(--xo-surface);
  border: 1px solid var(--xo-line); border-radius: var(--xo-r); padding: .45rem;
  transition: border-color var(--xo-t), box-shadow var(--xo-t);
}
.bk-pick.is-on { border-color: var(--xo-ink); box-shadow: 0 0 0 1px var(--xo-ink); }
.bk-pick input { position: absolute; top: .5rem; left: .5rem; width: 16px; height: 16px; accent-color: var(--xo-ink); }
.bk-pick__img { display: block; height: 84px; }
.bk-pick__img img { width: 100%; height: 100%; object-fit: contain; }
.bk-pick__img i { display: grid; place-items: center; height: 100%; color: var(--xo-line-strong); }
.bk-pick__t {
  display: block; font-size: .74rem; line-height: 1.25; color: var(--xo-ink);
  margin-top: .3rem; max-height: 2.5em; overflow: hidden;
}

.bk-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.bk-count { font-size: .85rem; color: var(--xo-muted); }

.bk-progress { display: flex; align-items: center; gap: .8rem; margin-top: .9rem; font-size: .85rem; }
.bk-progress__bar { flex: 1; height: 6px; border-radius: 4px; background: var(--xo-surface-deep); overflow: hidden; }
.bk-progress__bar span { display: block; height: 100%; width: 0; background: var(--xo-amber); transition: width var(--xo-t); }

/* --- output --------------------------------------------------------------- */
.bk-outbar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 1rem;
}
.bk-out { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: .8rem; }
.bk-out__item {
  position: relative; display: block; background: var(--xo-surface-alt);
  border: 1px solid var(--xo-line); border-radius: var(--xo-r); padding: .5rem;
  transition: border-color var(--xo-t), box-shadow var(--xo-t), opacity var(--xo-t);
  opacity: .55;
}
.bk-out__item.is-on { opacity: 1; border-color: var(--xo-ink); box-shadow: 0 0 0 1px var(--xo-ink); }
.bk-out__tick {
  position: absolute; top: .55rem; left: .55rem; z-index: 2; cursor: pointer;
  background: rgba(255,255,255,.9); border-radius: 5px; padding: 2px; line-height: 0;
}
.bk-out__tick input { width: 17px; height: 17px; accent-color: var(--xo-ink); margin: 0; }
.bk-out__flag {
  position: absolute; top: .55rem; right: .55rem; z-index: 2;
  background: var(--xo-amber); color: var(--xo-ink); font-size: .66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 20px;
}
.bk-out__shot {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  background: none; cursor: pointer; border-radius: 6px; overflow: hidden;
}
.bk-out__item img { width: 100%; aspect-ratio: 1/1; object-fit: contain; border-radius: 6px; background: #fff; display: block; }
.bk-out__pen {
  position: absolute; inset: auto 0 0 0; background: rgba(14,17,22,.82); color: #fff;
  font-size: .76rem; font-weight: 600; padding: .35rem; opacity: 0;
  transition: opacity var(--xo-t);
}
.bk-out__shot:hover .bk-out__pen,
.bk-out__shot:focus-visible .bk-out__pen { opacity: 1; }
@media (hover: none) { .bk-out__pen { opacity: 1; } }
.bk-out__t { display: block; font-size: .78rem; font-weight: 600; color: var(--xo-ink); margin-top: .35rem; }
.bk-out__s { display: block; font-size: .72rem; color: var(--xo-muted); }

.bk-save { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding-bottom: 1rem; }

/* --- per-item editor ------------------------------------------------------ */
.bk-editor {
  position: fixed; inset: 0; z-index: 1080; background: rgba(14, 17, 22, .62);
  display: grid; place-items: center; padding: 1.5rem; overflow: auto;
}
.bk-editor[hidden] { display: none !important; }
.bk-editor__box {
  background: var(--xo-surface); border-radius: var(--xo-r-lg);
  box-shadow: var(--xo-shadow-lg); width: min(1000px, 100%); max-height: 92vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.bk-editor__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.1rem; border-bottom: 1px solid var(--xo-line);
}
.bk-editor__x {
  background: none; border: 0; font-size: 1.1rem; color: var(--xo-muted);
  cursor: pointer; line-height: 1; padding: .25rem .4rem; border-radius: 6px;
}
.bk-editor__x:hover { background: var(--xo-surface-alt); color: var(--xo-ink); }
.bk-editor__body {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.2rem;
  padding: 1.1rem; overflow: auto;
}
@media (max-width: 767px) { .bk-editor__body { grid-template-columns: 1fr; } }
.bk-editor__stage canvas {
  width: 100%; height: auto; display: block; border-radius: var(--xo-r);
  background: var(--xo-surface-alt); border: 1px solid var(--xo-line);
  touch-action: none; cursor: grab;
}
.bk-editor__stage canvas:active { cursor: grabbing; }
.bk-editor__side { display: flex; flex-direction: column; }
.bk-editor__foot { margin-top: auto; padding-top: 1rem; }

.bk-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.bk-chip {
  background: var(--xo-surface-alt); border: 1px solid var(--xo-line-strong);
  border-radius: 20px; padding: .3rem .7rem; font-size: .8rem; font-weight: 600;
  color: var(--xo-body); cursor: pointer; transition: all var(--xo-t);
}
.bk-chip:hover { border-color: var(--xo-ink); }
.bk-chip.is-active { background: var(--xo-ink); border-color: var(--xo-ink); color: #fff; }

/* --- segmented control ---------------------------------------------------- */
.bk-seg { display: flex; border: 1px solid var(--xo-line-strong); border-radius: var(--xo-r); overflow: hidden; }
.bk-seg button {
  flex: 1; background: var(--xo-surface); border: 0; padding: .4rem .3rem;
  font-size: .72rem; font-weight: 600; color: var(--xo-body); cursor: pointer;
  border-right: 1px solid var(--xo-line); transition: background var(--xo-t), color var(--xo-t);
  display: flex; flex-direction: column; align-items: center; gap: .15rem; line-height: 1.2;
}
.bk-seg button:last-child { border-right: 0; }
.bk-seg button:hover { background: var(--xo-surface-alt); }
.bk-seg button.is-active { background: var(--xo-ink); color: #fff; }

/* --- custom colour swatch ------------------------------------------------- */
.swatch--custom {
  display: grid; place-items: center; color: var(--xo-ink);
  background:
    linear-gradient(var(--sw, transparent), var(--sw, transparent)),
    conic-gradient(#FF3B30, #FFCC00, #34C759, #00C7BE, #007AFF, #AF52DE, #FF2D55, #FF3B30);
  font-size: .72rem;
}
.swatch--custom i { text-shadow: 0 0 3px rgba(255,255,255,.95); }

/* --- colour picker -------------------------------------------------------- */
.xo-picker {
  position: fixed; z-index: 1200; display: none; width: 268px;
  background: var(--xo-surface); border: 1px solid var(--xo-line-strong);
  border-radius: var(--xo-r); box-shadow: var(--xo-shadow-lg); padding: .8rem;
}
.xo-picker__top { display: flex; gap: .5rem; }
.xo-picker__sv, .xo-picker__hue { border-radius: 6px; cursor: crosshair; touch-action: none; display: block; }
.xo-picker__row { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; }
.xo-picker__chip {
  width: 34px; height: 34px; border-radius: 6px; flex: 0 0 34px;
  border: 1px solid var(--xo-line-strong); box-shadow: inset 0 0 0 2px #fff;
}
.xo-picker__hex { flex: 1; font-size: .68rem; font-weight: 700; color: var(--xo-muted); text-transform: uppercase; }
.xo-picker__hex input {
  width: 100%; border: 1px solid var(--xo-line-strong); border-radius: 6px;
  padding: .25rem .4rem; font-weight: 700; font-size: .86rem; text-transform: uppercase;
  font-variant-numeric: tabular-nums; color: var(--xo-ink);
}
.xo-picker__grid { display: grid; gap: .35rem; margin-top: .5rem; }
.xo-picker__grid[data-mode="rgb"] { grid-template-columns: repeat(3, 1fr); }
.xo-picker__grid[data-mode="cmyk"] { grid-template-columns: repeat(4, 1fr); }
.xo-picker__grid label { font-size: .66rem; font-weight: 700; color: var(--xo-muted); }
.xo-picker__grid input {
  width: 100%; border: 1px solid var(--xo-line-strong); border-radius: 6px;
  padding: .2rem .3rem; font-size: .8rem; font-weight: 600; text-align: center;
  font-variant-numeric: tabular-nums; color: var(--xo-ink);
}
.xo-picker__foot { display: flex; gap: .5rem; margin-top: .7rem; }
.xo-picker__foot button {
  flex: 1; border-radius: 7px; padding: .4rem; font-size: .8rem; font-weight: 700; cursor: pointer;
}
.xo-picker__cancel { background: var(--xo-surface); border: 1px solid var(--xo-line-strong); color: var(--xo-body); }
.xo-picker__ok { background: var(--xo-ink); border: 1px solid var(--xo-ink); color: #fff; }

/* --- layer list ----------------------------------------------------------- */
.bk-layers {
  display: flex; flex-direction: column; gap: .25rem;
  max-height: 190px; overflow: auto; padding: .25rem;
  border: 1px solid var(--xo-line); border-radius: var(--xo-r);
  background: var(--xo-surface-alt);
}
.bk-layer {
  display: flex; align-items: center; gap: .45rem; cursor: pointer;
  background: var(--xo-surface); border: 1px solid var(--xo-line);
  border-radius: 7px; padding: .3rem .35rem; transition: border-color var(--xo-t), box-shadow var(--xo-t);
}
.bk-layer:hover { border-color: var(--xo-line-strong); }
.bk-layer.is-active { border-color: var(--xo-ink); box-shadow: 0 0 0 1px var(--xo-ink); }
.bk-layer.is-linked { background: var(--xo-amber-100); }
.bk-layer__ico {
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 5px;
  background: var(--xo-surface-alt); display: grid; place-items: center;
  color: var(--xo-muted); font-size: .7rem;
}
.bk-layer__t {
  flex: 1; min-width: 0; font-size: .78rem; font-weight: 600; color: var(--xo-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bk-layer__b {
  width: 22px; height: 22px; flex: 0 0 22px; border: 0; background: none;
  color: var(--xo-muted); font-size: .74rem; cursor: pointer; border-radius: 5px; padding: 0;
}
.bk-layer__b:hover { background: var(--xo-surface-deep); color: var(--xo-ink); }
.bk-layer.is-linked .bk-layer__b[data-link] { color: var(--xo-amber-600); }
.bk-layer__b--x:hover { color: var(--xo-danger); }

/* --- second logo slot ----------------------------------------------------- */
.bk-drop--sm { min-height: 96px; margin-top: .6rem; }
.bk-drop--sm .bk-drop__inner i { font-size: 1.1rem; margin-bottom: 0; }
.bk-drop--sm img { max-height: 80px; }

/* --- selection marquee ---------------------------------------------------- */
.bk-stage { position: relative; }
.bk-marquee {
  position: absolute; border: 1px dashed var(--xo-ink);
  background: rgba(255, 184, 0, .16); pointer-events: none; border-radius: 3px;
}
.bk-marquee[hidden] { display: none; }

/* --- align toolbar -------------------------------------------------------- */
.bk-align {
  display: flex; align-items: center; gap: .15rem; flex-wrap: wrap;
  border: 1px solid var(--xo-line-strong); border-radius: var(--xo-r); padding: .25rem;
}
.bk-align button {
  width: 30px; height: 28px; border: 0; background: none; border-radius: 6px;
  color: var(--xo-body); cursor: pointer; font-size: .78rem;
}
.bk-align button:hover { background: var(--xo-ink); color: #fff; }
.bk-align__sep { width: 1px; height: 18px; background: var(--xo-line); margin: 0 .15rem; }

/* --- logo colour palette -------------------------------------------------- */
.bk-pal { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.bk-pal__c {
  position: relative; width: 34px; height: 34px; padding: 0; cursor: pointer;
  border: 1px solid var(--xo-line-strong); border-radius: 7px; background: var(--xo-surface);
  overflow: hidden;
}
.bk-pal__c span { position: absolute; inset: 2px; border-radius: 5px; display: block; }
.bk-pal__c i {
  position: absolute; right: 1px; bottom: 1px; font-size: .5rem; color: #fff;
  background: var(--xo-ink); border-radius: 3px; padding: 1px 2px;
}
.bk-pal__c:hover { border-color: var(--xo-ink); }
.bk-pal__c.is-changed { border-color: var(--xo-amber); box-shadow: 0 0 0 1px var(--xo-amber); }
.bk-pal__reset {
  width: 34px; height: 34px; border: 1px dashed var(--xo-line-strong); border-radius: 7px;
  background: none; color: var(--xo-muted); cursor: pointer; font-size: .75rem;
}
.bk-pal__reset:hover { border-color: var(--xo-ink); color: var(--xo-ink); }
