@import url("https://use.typekit.net/dpz6lzv.css");

:root {
  --ink: #1d1e26;
  --ink-soft: #333743;
  --steel: #858689;
  --concrete: #b8b4b4;
  --paper: #f4f2ee;
  --paper-bright: #fbfaf7;
  --purple: #725f97;
  --purple-dark: #594675;
  --line: rgba(29, 30, 38, .18);
  --shadow: 0 22px 60px rgba(29, 30, 38, .14);
  --bs-primary: #725f97;
  --bs-primary-rgb: 114,95,151;
  --bs-link-color: #594675;
  --bs-link-hover-color: #1d1e26;
  --bs-border-radius: .45rem;
  --bs-border-radius-lg: .65rem;
  --bs-border-radius-pill: .65rem;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ink);
  background: #b8b4b4 url("https://www.b1of1.com/concrete_wall_pattern.png") repeat;
  font-family: "Manrope", sans-serif;
  padding-top: 96px;
}

.dot-field-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}
.dot-field-background canvas { display: block; width: 100%; height: 100%; }
#main-content { position: relative; z-index: 1; }

h1, h2, h3, h4, h5, h6, .brand-type, .eyebrow, .btn, .nav-link {
  font-family: dazzle-unicase, "Manrope", sans-serif;
  text-transform: uppercase;
}
h1, h2, h3, h4 { color: var(--ink); letter-spacing: .08em; }
a { color: inherit; }
.letterwide { letter-spacing: .22em; }
.eyebrow { letter-spacing: .32em; font-size: .66rem; font-weight: 600; color: #5c5d62; }

/* Sandbox 3.4.1 ships malformed fs-* values (for example fs-4: .2rem).
   Restore a readable, responsive type scale for every utility heading. */
.fs-1 { font-size: clamp(2.15rem, 4vw, 3rem) !important; }
.fs-2 { font-size: clamp(1.65rem, 3vw, 2.15rem) !important; }
.fs-3 { font-size: clamp(1.35rem, 2.3vw, 1.75rem) !important; }
.fs-4 { font-size: clamp(1.08rem, 1.7vw, 1.35rem) !important; }
.fs-5 { font-size: clamp(.96rem, 1.35vw, 1.15rem) !important; }
.fs-6 { font-size: clamp(.82rem, 1vw, 1rem) !important; }
.text-purple { color: var(--purple) !important; }
.bg-ink { background: var(--ink) !important; }
.bg-paper { background: var(--paper) !important; }

.site-header {
  height: 62px;
  background: var(--ink);
  color: white;
  position: fixed;
  inset: 0 0 auto;
  z-index: 1040;
}
.site-header-inner {
  display: grid;
  grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr);
  align-items: center;
  gap: 1rem;
}
.site-header-balance { grid-column: 1; }
.site-brand { grid-column: 2; justify-self: center; min-width: 0; }
.site-header-actions { grid-column: 3; justify-self: end; }
.site-header-inner.header-align-left { grid-template-columns: auto 1fr auto; }
.site-header-inner.header-align-left .site-header-balance { display: none; }
.site-header-inner.header-align-left .site-brand { grid-column: 1; justify-self: start; }
.site-header-inner.header-align-left .site-header-actions { grid-column: 3; }
.brand-logo { width: auto; height: 42px; object-fit: contain; flex: 0 0 auto; }
.brand-mark {
  width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.7); border-radius: 4px;
  display: inline-grid; place-items: center; color: white; font: 700 17px/1 Georgia, serif;
  transform: rotate(45deg); flex: 0 0 auto;
}
.brand-mark span { transform: rotate(-45deg); }
.brand-type { color: white; letter-spacing: .28em; font-size: .72rem; line-height: 1.3; }
.site-header .icon-link { color: white; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; }
.mobile-menu-toggle { width: 38px; height: 38px; padding: 6px; border: 0; border-radius: 0; background: transparent; color: white; display: grid; align-content: center; gap: 5px; }
.mobile-menu-toggle span { width: 25px; height: 2px; background: currentColor; display: block; transition: transform .2s, opacity .2s; }
.mobile-menu-toggle:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.cart-count { position: absolute; margin: -5px 0 0 22px; background: var(--purple); color: white; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; }

.studio-nav { height: 34px; position: fixed; top: 62px; inset-inline: 0; z-index: 1035; background: var(--steel); }
.studio-nav .nav-link { padding: .25rem .85rem; color: var(--ink); font-size: .62rem; letter-spacing: .22em; }
.studio-nav .nav-link:hover, .studio-nav .nav-link.active { color: white; }
.offcanvas { background: var(--ink); color: white; }
.mobile-navigation { width: min(78vw, 320px); border-right: 1px solid rgba(255,255,255,.15); }
.mobile-navigation .offcanvas-body { padding: .35rem 1.25rem 1.5rem; }
.mobile-nav-link { color: rgba(255,255,255,.78); padding: 1rem .15rem; border-bottom: 1px solid rgba(255,255,255,.13); font-family: dazzle-unicase, "Manrope", sans-serif; text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; text-decoration: none; }
.mobile-nav-link:hover, .mobile-nav-link:focus, .mobile-nav-link.active { color: white; }

.btn { letter-spacing: .1em; font-size: .68rem; border-radius: .45rem !important; padding: .78rem 1.2rem; }
.btn-sm { padding: .46rem .72rem; font-size: .6rem; }
.btn-primary { background: var(--purple); border-color: var(--purple); }
.btn-primary:hover { background: var(--purple-dark); border-color: var(--purple-dark); }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); }
.form-control, .form-select, .input-group-text { border-radius: .42rem; border-color: rgba(29,30,38,.24); color: var(--ink); }
.form-control:focus, .form-select:focus { border-color: var(--purple); box-shadow: 0 0 0 .2rem rgba(114,95,151,.17); }
.form-check-input:checked { background-color: var(--purple); border-color: var(--purple); }

.panel {
  background: rgba(244,242,238,.94);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: var(--shadow);
  border-radius: 10px;
}
.panel-dark { background: var(--ink); color: white; border-radius: 10px; box-shadow: var(--shadow); }
.panel-dark h2, .panel-dark h3, .panel-dark h4 { color: white; }
.hairline { border-color: var(--line) !important; }

.hero { display: flex; align-items: center; padding: clamp(8rem, 12.7vw, 11.25rem) 0; overflow: hidden; }
.hero-title { font-size: clamp(2.7rem, 8vw, 7.8rem); line-height: .86; letter-spacing: .04em; }
.hero-title .offset { display: block; margin-left: clamp(1rem, 8vw, 7rem); color: transparent; -webkit-text-stroke: 1px var(--ink); }
.hero-object { min-height: 540px; position: relative; display: grid; place-items: center; }
.hero-object:before { content: ""; position: absolute; width: 82%; aspect-ratio: 1; border: 1px solid rgba(29,30,38,.32); transform: rotate(9deg); }
.hero-object:after { content: "EDITION 01"; position: absolute; right: 0; bottom: 8%; writing-mode: vertical-rl; letter-spacing: .45em; font-size: .6rem; }
.hero-object img { position: relative; width: min(100%, 530px); filter: drop-shadow(0 28px 20px rgba(29,30,38,.18)); }
.hero-rule { height: 1px; background: var(--ink); width: 120px; display: inline-block; vertical-align: middle; }

.section-space { padding: clamp(4rem, 8vw, 8rem) 0; }
.section-title { font-size: clamp(2rem, 5vw, 4.2rem); line-height: .95; }
.catalog-card { height: 100%; background: var(--paper); border: 1px solid rgba(29,30,38,.12); border-radius: 9px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.catalog-card:hover { transform: translateY(-5px); box-shadow: 0 20px 45px rgba(29,30,38,.13); }
.catalog-card .media { background: #d0ceca; aspect-ratio: 1 / 1.03; overflow: hidden; position: relative; padding: clamp(1.25rem, 3vw, 2.25rem); }
.catalog-card .media img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform .5s; }
.catalog-card:hover .media img { transform: scale(1.025); }
.catalog-card .product-badge { position: absolute; top: 14px; left: 14px; background: rgba(29,30,38,.9); color: white; padding: .4rem .58rem; border-radius: 5px; font-size: .54rem; letter-spacing: .18em; text-transform: uppercase; }
.catalog-card .card-info { padding: 1.45rem; }
.price { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.compare-price { color: #73757a; text-decoration: line-through; font-size: .75rem; }

.service-band { background: var(--ink); color: white; }
.service-band .section-title, .service-band h3 { color: white; }
.process-heading, .process-steps { min-width: 0; }
.process-title { max-width: 11ch; font-size: clamp(2.35rem, 3.7vw, 3.5rem); overflow-wrap: break-word; }
.process-number { font-family: Georgia, serif; font-size: 3.8rem; line-height: 1; color: var(--purple); }

.shop-head { padding: 5rem 0 2.5rem; }
.filter-bar { position: sticky; top: 96px; z-index: 50; background: rgba(184,180,180,.92); backdrop-filter: blur(12px); border-block: 1px solid rgba(29,30,38,.16); }
.filter-button.active { background: var(--ink); color: white; }

.product-shell { padding: 3.5rem 0 6rem; }
.product-visual { background: rgba(244,242,238,.72); border: 1px solid rgba(29,30,38,.15); border-radius: 10px; padding: clamp(1rem, 4vw, 3rem); position: sticky; top: 120px; }
.product-visual img { width: 100%; max-height: 650px; object-fit: contain; }
.product-meta { font-size: .72rem; letter-spacing: .08em; }
.option-label { font-family: dazzle-unicase, sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; font-weight: 600; }
.tier-table { font-size: .7rem; }

.quantity-row { background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: 7px; padding: .65rem; }
.quantity-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(72px, 3fr) 46px; gap: .5rem; align-items: end; }
.quantity-field, .quantity-action { min-width: 0; }
.quantity-row .option-label, .product-option-group .option-label { display: block; min-height: 1rem; margin-bottom: .4rem; font-size: .66rem; line-height: 1; letter-spacing: .1em; }
.quantity-row .form-select, .quantity-row .form-control, .quantity-row .remove-combination { width: 100%; height: 46px; min-height: 46px; font-size: .86rem; padding-top: .55rem; padding-bottom: .55rem; }
.quantity-row .remove-combination { display: grid; place-items: center; padding-inline: 0; }
.price-dock { position: sticky; bottom: 1rem; z-index: 20; }
.price-dock .panel-dark { padding: 1rem 1.25rem; }
.price-dock .btn-light,
.price-dock .btn-light:hover,
.price-dock .btn-light:focus {
  color: var(--ink) !important;
  background-color: #fefefe !important;
  border-color: #fefefe !important;
}

.editor-shell { padding: 1rem; background: #a8a5a1; border-radius: 9px; border: 1px solid rgba(29,30,38,.18); }
.editor-toolbar { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.tool-button { width: 42px; height: 40px; border: 1px solid rgba(29,30,38,.24); background: var(--paper); color: var(--ink); border-radius: 5px; display: grid; place-items: center; font-size: .86rem; }
.tool-button:hover, .tool-button.active { background: var(--ink); color: white; }
.tool-button:disabled { opacity: .38; cursor: not-allowed; background: rgba(255,255,255,.58); color: var(--ink); }
.editor-tool-status { min-height: 1.25rem; margin: 0 0 .4rem; font-size: .66rem; color: rgba(29,30,38,.72); }
.editor-stage { background: #d0cdca; border: 1px solid rgba(29,30,38,.2); padding: 16px; display: grid; place-items: center; border-radius: 7px; overflow: auto; }
.editor-stage canvas { width: min(100%, 720px); height: auto; background: #f4f2ee; box-shadow: 0 8px 24px rgba(29,30,38,.15); touch-action: none; }
.editor-inspector { background: var(--paper); border-radius: 7px; padding: 1rem; }
.editor-note { font-size: .68rem; line-height: 1.6; }

.cart-item { display: grid; grid-template-columns: 112px 1fr auto; gap: 1.2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 112px; height: 112px; object-fit: cover; background: #d2cfca; border-radius: 7px; }
.order-summary { position: sticky; top: 120px; }

.policy-page { max-width: 860px; }
.policy-page h2 { margin-top: 2.5rem; font-size: 1.35rem; }
.policy-page p, .policy-page li { line-height: 1.8; }

.site-footer { position: relative; z-index: 1; background: var(--steel); color: var(--ink); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: white; }
.footer-wordmark { font-size: clamp(1.8rem, 6vw, 5.5rem); letter-spacing: .2em; line-height: 1; color: var(--ink); }

.setup-body { padding: 0; background: #d0cdca; }
.setup-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.setup-card { width: min(100%, 720px); background: var(--paper); border: 1px solid rgba(29,30,38,.2); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.setup-progress { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; }
.setup-progress span { height: 5px; background: #d0cdca; }
.setup-progress span.active { background: var(--purple); }

.admin-shell { min-height: 100vh; padding-top: 0; background: #eeece8; }
.admin-sidebar { width: 250px; background: var(--ink); color: white; position: fixed; inset: 0 auto 0 0; padding: 1.5rem 1rem; z-index: 100; overflow-y: auto; }
.admin-brand-logo { width: auto; height: 48px; object-fit: contain; }
.admin-login-logo { width: auto; height: 66px; object-fit: contain; }
.setup-card .brand-mark { width: 56px; height: 66px; border: 0; transform: none; background: center / contain no-repeat url("../images/maison-bijon-logo.png") !important; }
.setup-card .brand-mark span { visibility: hidden; }
.admin-sidebar a { color: rgba(255,255,255,.72); display: flex; align-items: center; gap: .65rem; padding: .68rem .8rem; margin-bottom: .2rem; border-radius: 6px; text-decoration: none; font-size: .72rem; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,.1); color: white; }
.admin-main { margin-left: 250px; padding: 2rem; }
.metric { background: white; border: 1px solid rgba(29,30,38,.1); border-radius: 8px; padding: 1.1rem; height: 100%; min-height: 126px; display: flex; flex-direction: column; align-items: flex-start; }
.metric .eyebrow { display: block; min-height: 1.35em; font-size: clamp(.54rem, .62vw, .62rem); letter-spacing: .1em; line-height: 1.35; overflow-wrap: normal; white-space: nowrap; }
.metric strong { font-size: clamp(1.45rem, 2vw, 1.7rem); line-height: 1.05; display: block; color: var(--ink); margin-top: .85rem; font-variant-numeric: tabular-nums; }
.appearance-preview { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.appearance-preview-header { min-height: 64px; display: flex; align-items: center; justify-content: center; color: white; }
.appearance-preview-nav { min-height: 34px; }
.appearance-preview-body { min-height: 220px; display: grid; place-items: center; padding: 2rem; }
.appearance-preview-logo { height: 42px; width: auto; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--purple); }
.min-w-0 { min-width: 0; }
.admin-options-json { font-size: .78rem; line-height: 1.55; tab-size: 2; }
.options-template-controls { width: min(100%, 350px); }
.options-help summary { cursor: pointer; color: var(--ink); }
.admin-print-area-stage { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin-inline: auto; overflow: hidden; border: 1px solid rgba(29,30,38,.22); border-radius: 7px; background: #d0cdca; touch-action: none; user-select: none; }
.admin-print-area-stage > img { width: 100%; height: 100%; object-fit: fill; pointer-events: none; opacity: .78; }
.admin-print-area-box { position: absolute; left: var(--print-x); top: var(--print-y); width: var(--print-width); height: var(--print-height); min-width: 22px; min-height: 22px; border: 2px dashed var(--purple); background: rgba(114,95,151,.08); color: #5f4a89; cursor: move; outline: 0; }
.admin-print-area-box:focus { box-shadow: 0 0 0 4px rgba(114,95,151,.22); }
.admin-print-area-box > span:first-child { position: absolute; left: -2px; bottom: 100%; max-width: calc(100% + 4px); padding: .15rem .3rem; background: rgba(244,242,238,.92); font-size: clamp(.42rem, 1.6vw, .62rem); line-height: 1.25; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-print-area-handle { position: absolute; right: -7px; bottom: -7px; width: 15px; height: 15px; border: 2px solid white; border-radius: 3px; background: var(--purple); cursor: nwse-resize; }
.email-log-subject:hover { color: var(--purple) !important; text-decoration: underline !important; }
.email-message-meta dt { color: #7d8494; font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; }
.email-message-body { white-space: pre-wrap; overflow-wrap: anywhere; min-height: 240px; padding: 1.25rem; border: 1px solid var(--line); border-radius: 8px; background: #f7f6f4; color: var(--ink); font: .86rem/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.email-response-editor { min-height: 190px; resize: vertical; }

@media (max-width: 991.98px) {
  body { padding-top: 62px; }
  .studio-nav { display: none; }
  .hero { padding: clamp(4.5rem, 12vw, 7rem) 0; }
  .hero-object { min-height: 400px; }
  .product-visual { position: relative; top: auto; }
  .filter-bar { top: 62px; }
  .admin-sidebar { position: relative; width: 100%; display: flex; overflow-x: auto; padding: .7rem; }
  .admin-sidebar .admin-brand { display: none; }
  .admin-sidebar a { white-space: nowrap; margin: 0 .15rem 0 0; }
  .admin-main { margin-left: 0; padding: 1.25rem; }
  .mobile-navigation { position: fixed; inset: 62px auto 0 0; height: auto !important; min-height: 0; max-height: none; z-index: 1039; overscroll-behavior: contain; }
  .mobile-navigation .offcanvas-body { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); overflow-y: auto; }
  .offcanvas-backdrop { z-index: 1030; }
}
@media (max-width: 991.98px) {
  .admin-product-table thead { display: none; }
  .admin-product-table tbody, .admin-product-table tr, .admin-product-table td { display: block; width: 100%; }
  .admin-product-table tr { position: relative; padding: 1rem 5.25rem 1rem 0; border-bottom: 1px solid var(--line); }
  .admin-product-table td { border: 0; padding: .22rem 0; overflow-wrap: anywhere; }
  .admin-product-table td:first-child { padding-bottom: .6rem; }
  .admin-product-table td:not(:first-child):not(.admin-product-action)::before { content: attr(data-label) ": "; color: #7d8494; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
  .admin-product-table .admin-product-action { position: absolute; top: 50%; right: 0; width: auto; transform: translateY(-50%); }
  .admin-product-table .admin-product-action .btn { min-width: 4.35rem; }
  .admin-options-json { font-size: .72rem; }
}
@media (max-width: 575.98px) {
  .section-space { padding-block: 3.25rem; }
  .section-title { font-size: clamp(2rem, 11vw, 3rem); line-height: 1; overflow-wrap: break-word; }
  .process-title { max-width: 12ch; font-size: clamp(2.1rem, 10vw, 2.8rem); }
  .site-header-inner { gap: .5rem; }
  .site-brand { gap: .5rem !important; }
  .brand-logo { height: 36px; }
  .site-header .brand-type { display: none; }
  .hero { padding: 3.5rem 0 4rem; }
  .hero-object { min-height: 320px; }
  .hero-title { font-size: clamp(2.65rem, 16vw, 4.3rem); }
  .hero-title .offset { margin-left: .65rem; }
  .cart-item { grid-template-columns: 76px 1fr; }
  .cart-item img { width: 76px; height: 76px; }
  .cart-item .item-total { grid-column: 2; }
  .product-shell { padding: 2rem 0 3.5rem; }
  .product-shell .container { padding-inline: .85rem; }
  .product-meta { font-size: .68rem; }
  .product-meta > div { min-width: 0; overflow-wrap: anywhere; }
  .quantity-grid { grid-template-columns: minmax(0, 1.45fr) minmax(62px, .8fr) minmax(70px, .8fr) 44px; gap: .35rem; }
  .quantity-row { padding: .55rem; }
  .quantity-row .form-select, .quantity-row .form-control, .quantity-row .remove-combination { height: 44px; min-height: 44px; font-size: .78rem; padding-inline: .65rem; }
  .quantity-row .option-label, .product-option-group .option-label { font-size: .63rem; }
  #matrixTitle + * { flex-shrink: 0; }
  .price-dock .panel-dark > .d-flex { width: 100%; flex-direction: column; }
  .price-dock .panel-dark > .d-flex .btn { width: 100%; }
  .price-dock { position: static; inset: auto; margin-top: 1rem; }
  .price-dock .panel-dark { padding: 1rem; }
  .editor-toolbar { gap: 3px; }
  .tool-button { width: 36px; height: 36px; }
  .editor-meta { flex-wrap: wrap; }
  .editor-meta label { margin-left: 0 !important; }
  #editorZoom { width: 100%; }
  .metric { min-height: 108px; padding: .85rem; }
  .metric .eyebrow { font-size: .52rem; letter-spacing: .06em; }
  .metric strong { font-size: 1.4rem; margin-top: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
