:root {
  --ink: #17324d;
  --ink-soft: #52677b;
  --navy: #123a58;
  --navy-deep: #0b2b43;
  --teal: #087f8c;
  --teal-dark: #05636d;
  --teal-soft: #e5f5f4;
  --gold: #e7a53c;
  --paper: #fff;
  --canvas: #f5f8f8;
  --line: #dce5e8;
  --danger: #b4233b;
  --success: #16734a;
  --accent-rgb: 8, 127, 140;
  --navy-rgb: 18, 58, 88;
  --accent-border: #b9dedd;
  --accent-line: #bcd3d8;
  --accent-surface: #eaf2f3;
  --accent-row: #edf7f6;
  --surface-soft: #f1f7f7;
  --shadow-sm: 0 4px 16px rgba(var(--navy-rgb), .08);
  --shadow-md: 0 14px 38px rgba(var(--navy-rgb), .13);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
}

:root[data-theme="sage"] {
  --ink: #34463f; --ink-soft: #63736b; --navy: #52685d; --navy-deep: #34473e;
  --teal: #708b7b; --teal-dark: #566f62; --teal-soft: #edf3ef; --gold: #c39a61;
  --canvas: #f5f6f3; --line: #dce4df; --accent-rgb: 112, 139, 123; --navy-rgb: 82, 104, 93;
  --accent-border: #cbd9d0; --accent-line: #c8d5ce; --accent-surface: #edf2ef; --accent-row: #f0f4f1; --surface-soft: #f2f5f3;
}
:root[data-theme="slate"] {
  --ink: #344250; --ink-soft: #65717c; --navy: #4b5f73; --navy-deep: #344557;
  --teal: #71879a; --teal-dark: #586f82; --teal-soft: #eef2f5; --gold: #c39b67;
  --canvas: #f5f5f3; --line: #dce1e5; --accent-rgb: 113, 135, 154; --navy-rgb: 75, 95, 115;
  --accent-border: #ccd6de; --accent-line: #c8d3dc; --accent-surface: #edf1f4; --accent-row: #f0f3f5; --surface-soft: #f2f4f5;
}
:root[data-theme="plum"] {
  --ink: #493f48; --ink-soft: #746873; --navy: #655160; --navy-deep: #493b47;
  --teal: #8b7183; --teal-dark: #705969; --teal-soft: #f4eef2; --gold: #c39b6a;
  --canvas: #f7f4f5; --line: #e4dce1; --accent-rgb: 139, 113, 131; --navy-rgb: 101, 81, 96;
  --accent-border: #ddced8; --accent-line: #d9ccd5; --accent-surface: #f2edf0; --accent-row: #f5f0f3; --surface-soft: #f6f1f4;
}
:root[data-theme="indigo"] {
  --ink: #282b52; --ink-soft: #63678a; --navy: #4338a8; --navy-deep: #2d276f;
  --teal: #087b9c; --teal-dark: #06627c; --teal-soft: #e4f5fa; --gold: #f1ad3d;
  --canvas: #f5f5fc; --line: #dedff0; --accent-rgb: 8,123,156; --navy-rgb: 67,56,168;
  --accent-border: #badde7; --accent-line: #c8d8eb; --accent-surface: #ececf9; --accent-row: #edf7fa; --surface-soft: #f0f1fa;
}
:root[data-theme="coral"] {
  --ink: #50373d; --ink-soft: #7c666b; --navy: #713d49; --navy-deep: #542d37;
  --teal: #c15548; --teal-dark: #9b4036; --teal-soft: #fbecea; --gold: #df9a3d;
  --canvas: #faf5f3; --line: #eadbd8; --accent-rgb: 193,85,72; --navy-rgb: 113,61,73;
  --accent-border: #e7c4bf; --accent-line: #e2cbc7; --accent-surface: #f7eae7; --accent-row: #fbedeb; --surface-soft: #f8efed;
}
:root[data-theme="forest"] {
  --ink: #29463a; --ink-soft: #62776d; --navy: #24533f; --navy-deep: #173c2d;
  --teal: #378263; --teal-dark: #28664c; --teal-soft: #e8f4ed; --gold: #d8a63c;
  --canvas: #f4f7f2; --line: #d9e4dc; --accent-rgb: 55,130,99; --navy-rgb: 36,83,63;
  --accent-border: #c3dccd; --accent-line: #c9d9ce; --accent-surface: #eaf2ec; --accent-row: #edf6f0; --surface-soft: #eff5f0;
}
:root[data-theme="azure"] {
  --ink: #284652; --ink-soft: #607983; --navy: #155e75; --navy-deep: #104659;
  --teal: #117995; --teal-dark: #0d6077; --teal-soft: #e5f5f8; --gold: #dc8f45;
  --canvas: #f7f5ef; --line: #d9e5e5; --accent-rgb: 17,121,149; --navy-rgb: 21,94,117;
  --accent-border: #bddde3; --accent-line: #c5dadd; --accent-surface: #e9f2f2; --accent-row: #ecf7f8; --surface-soft: #f1f5f3;
}

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  background: radial-gradient(circle at 8% 0%, rgba(var(--accent-rgb), .09), transparent 25rem), linear-gradient(180deg, #fbfdfd 0, var(--canvas) 34rem);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
main { max-width: 1240px; padding: 36px 24px 64px; }
.catalogue-page { max-width: 1440px; padding-inline: 10px; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(var(--accent-rgb), .3); outline-offset: 3px; }
h1, h2, h3, h4 { color: var(--navy-deep); letter-spacing: -.025em; }

.catalogue-header {
  margin: -36px -10px 30px;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(var(--navy-rgb), .1);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 25px rgba(var(--navy-rgb), .07);
  backdrop-filter: blur(14px);
}
.catalogue-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--navy-deep); font-size: 1.08rem; letter-spacing: -.02em; }
.catalogue-brand::before { width: 13px; height: 13px; border: 4px solid var(--teal); border-radius: 50%; content: ""; box-shadow: 8px 0 0 -2px var(--gold); }
.catalogue-intro { margin: 12px 0 24px; }
.catalogue-eyebrow { margin: 0 0 5px; color: var(--teal-dark); font-size: .77rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.catalogue-intro h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.25rem); }
.catalogue-lead { max-width: 700px; margin: 8px 0 0; color: var(--ink-soft); font-size: 1.03rem; }
@media (min-width: 901px) {
  .catalogue-intro h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .catalogue-lead { margin-top: 0; }
}

.header-actions { gap: 9px; }
.seller-badge { border: 1px solid #c7e7e5; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); }
.cart-summary { padding: 10px 14px; border-radius: 999px; background: linear-gradient(135deg, var(--navy), var(--teal-dark)); box-shadow: 0 5px 16px rgba(var(--navy-rgb), .2); }
.cart-sync-pending{display:block;margin-top:2px;color:#ffe4a8;font-size:.66rem;font-weight:750;text-align:center}
.cart-sync-pending[hidden]{display:none}
.top-menu > summary { min-height: 43px; border-color: var(--line); border-radius: 999px; background: var(--paper); color: var(--navy-deep); }
.top-menu > summary:hover { border-color: var(--teal); background: var(--teal-soft); }
.menu-panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.menu-section { margin: 7px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); overflow: hidden; }
.menu-section > summary, .menu-section.filter-guide-replay { display: flex; min-height: 44px; align-items: center; gap: 8px; padding: 9px 12px; color: var(--navy-deep); font-weight: 700; cursor: pointer; list-style: none; }
.menu-section > summary::-webkit-details-marker { display: none; }
.menu-section > summary::after { content: '⌄'; margin-left: auto; color: var(--teal-dark); font-size: 1.15rem; line-height: 1; }
.menu-section[open] > summary::after { transform: rotate(180deg); }
.menu-section > summary small { margin-left: auto; color: var(--ink-soft); font-size: .72rem; font-weight: 600; }
.menu-section > summary:has(small)::after { margin-left: 0; }
.menu-section > summary:hover, .menu-section[open] > summary, .menu-section.filter-guide-replay:hover { background: var(--teal-soft); }
.menu-section-content { padding: 10px; border-top: 1px solid var(--line); background: var(--paper); }
.menu-admin-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.menu-admin-links a { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); color: var(--navy-deep); font-size: .83rem; font-weight: 650; text-decoration: none; }
.menu-admin-links a:hover, .menu-admin-links a:focus-visible { border-color: var(--teal); background: var(--teal-soft); }
.menu-section .catalogue-display-picker, .menu-section .theme-picker { margin: 0; border-radius: 0; }
.menu-section .catalogue-display-picker { border: 0; border-top: 1px solid var(--line); background: var(--paper); }
.menu-section .theme-picker { border-left: 0; border-right: 0; border-bottom: 0; background: var(--paper); }
.menu-maintenance-form > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.menu-maintenance-form label { display: flex; min-height: 40px; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--navy-deep); font-size: .82rem; cursor: pointer; }
.menu-maintenance-form label:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.menu-maintenance-form input { accent-color: var(--teal); }
.menu-maintenance-form > button { width: 100%; min-height: 39px; margin-top: 8px; border: 0; border-radius: 8px; background: var(--teal); color: #fff; font: 700 .82rem system-ui, sans-serif; cursor: pointer; }
.menu-maintenance-form > button:hover { background: var(--teal-dark); }
.theme-picker { margin: 14px 0 2px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--canvas); }
.theme-picker > strong { display: block; margin-bottom: 8px; color: var(--ink-soft); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.theme-picker > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.theme-picker button { display: flex; min-width: 0; min-height: 40px; align-items: center; gap: 7px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: 650 .75rem/1.2 system-ui, sans-serif; text-align: left; cursor: pointer; }
.theme-picker button::before { flex: 0 0 auto; width: 16px; height: 16px; border: 2px solid #fff; border-radius: 50%; background: #087f8c; box-shadow: 0 0 0 1px #b9c4c9; content: ""; }
.theme-picker button[data-theme-value="sage"]::before { background: #708b7b; }
.theme-picker button[data-theme-value="slate"]::before { background: #71879a; }
.theme-picker button[data-theme-value="plum"]::before { background: #8b7183; }
.theme-picker button[data-theme-value="indigo"]::before { background: linear-gradient(135deg,#4338a8 50%,#087b9c 50%); }
.theme-picker button[data-theme-value="coral"]::before { background: linear-gradient(135deg,#713d49 50%,#c15548 50%); }
.theme-picker button[data-theme-value="forest"]::before { background: linear-gradient(135deg,#24533f 50%,#d8a63c 50%); }
.theme-picker button[data-theme-value="azure"]::before { background: linear-gradient(135deg,#155e75 50%,#dc8f45 50%); }
.theme-picker button[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.menu-link { border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--surface-soft); color: var(--navy-deep); }
.menu-link:hover { border-color: var(--accent-border); background: var(--teal-soft); }
.menu-supplier .supplier-choices label, .location-choices label { border-color: var(--line); border-radius: var(--radius-sm); background: #fff; }
.menu-supplier .supplier-choices label:has(input:checked), .location-choices label:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); }
.menu-supplier input, .location-choices input { accent-color: var(--teal); }

.selection-submit, .account-form button, .saved-carts button, .account-page button, .order-actions button, .dialog-confirm {
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 5px 14px rgba(var(--accent-rgb), .18);
}
.selection-submit:hover, .account-form button:hover, .saved-carts button:hover, .account-page button:hover, .order-actions button:hover, .dialog-confirm:hover { background: var(--teal-dark); color: #fff; }

.login-required, .current-suppliers, .cart-autosave { border: 1px solid #cbe5e3; border-left: 5px solid var(--teal); border-radius: var(--radius-sm); background: rgba(229, 245, 244, .75); color: var(--navy); }
.login-required { border-color: #f1d49e; border-left-color: var(--gold); background: #fff8e9; color: #6f4b14; }
.current-suppliers { margin-top: 0; }
.catalogue-search { margin-inline: auto; border-color: var(--line); background: var(--paper); }
.catalogue-search::before, .catalogue-search small { color: var(--ink-soft); }
.catalogue-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .14); }
.selection-tabs button { border-color: var(--accent-border); background: linear-gradient(145deg, var(--paper), var(--accent-surface)); color: var(--navy); }
.selection-tabs button::after { color: var(--teal-dark); }
.selection-tabs button.is-active { border-color: var(--teal); background: var(--paper); box-shadow: 0 6px 18px rgba(var(--navy-rgb), .11); }
.catalogue-selection { top: var(--catalogue-header-height, 64px); margin-inline: -10px; padding: 10px 10px 4px; border: 0; background: transparent; box-shadow: none; overflow: visible; }
.catalogue-selection.is-stuck::before { background: rgba(255, 255, 255, .9); box-shadow: 0 9px 24px rgba(var(--navy-rgb), .12); }
.catalogue-header.has-stuck-selection { background: rgba(255, 255, 255, .9); }
.catalogue-selection-form { padding: 0; border: 0; background: transparent; box-shadow: none; }
.selection-panel { border-color: var(--line); background: var(--paper); box-shadow: var(--shadow-sm); }
.selection-panel:not([hidden]), .top-menu[open] > .menu-panel, .category-children[open] > .category-choices { animation: menu-reveal .22s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes menu-reveal { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .selection-panel:not([hidden]), .top-menu[open] > .menu-panel, .category-children[open] > .category-choices { animation: none; } }
.category-families { display: block; columns: 2; column-gap: 8px; }
.category-family { display: inline-block; box-sizing: border-box; width: 100%; min-width: 0; margin: 0 0 8px; break-inside: avoid; -webkit-column-break-inside: avoid; vertical-align: top; }
.category-family > label { font-weight: 700; }
.category-children { margin-top: 5px; border: 1px solid var(--accent-border); border-radius: 9px; background: var(--paper); }
.category-children > summary { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 6px 10px; color: var(--teal-dark); font-size: .82rem; font-weight: 750; cursor: pointer; list-style: none; }
.category-children > summary::-webkit-details-marker { display: none; }
.category-children > summary span { font-size: 1.1rem; transition: transform .15s; }
.category-children[open] > summary span { transform: rotate(180deg); }
.category-children > .category-choices { grid-template-columns: 1fr; padding: 5px 7px 8px; }
@media (max-width: 550px) { .category-families { columns: 1; } }
.selection-panel > .selection-submit { position: sticky; bottom: 0; z-index: 1; box-shadow: 0 -5px 12px var(--paper); }
@media (min-width: 800px) {
  .selection-panel[data-selection-panel="categories"]:not([hidden]) { display: flex; flex-direction: column; box-sizing: border-box; max-height: min(66dvh, 620px); overflow: hidden; }
  .selection-panel[data-selection-panel="categories"] .category-filter { flex: 1 1 auto; min-height: 0; margin-bottom: 8px; padding-right: 5px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
  .selection-panel[data-selection-panel="categories"] > .selection-submit { position: static; flex: none; box-shadow: none; }
}
@media (min-width: 1150px) {
  .selection-panel[data-selection-panel="categories"] .category-families { columns: 3; }
  .selection-panel[data-selection-panel="categories"] .category-family { margin-bottom: 5px; }
  .selection-panel[data-selection-panel="categories"] .category-choices { gap: 5px; }
  .selection-panel[data-selection-panel="categories"] .category-choices label { min-height: 36px; padding: 4px 7px; }
  .selection-panel[data-selection-panel="categories"] .category-children > summary { min-height: 34px; padding-block: 4px; }
}
.welcome-dialog { box-sizing: border-box; width: min(430px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); padding: 25px; overflow-y: auto; border: 1px solid var(--accent-border); border-radius: 19px; background: var(--paper); color: var(--ink); box-shadow: 0 22px 60px rgba(var(--navy-rgb), .25); }
.welcome-dialog::backdrop { background: rgba(var(--navy-rgb), .48); }
.welcome-close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); font-size: 1.4rem; cursor: pointer; }
.welcome-eyebrow { color: var(--teal-dark); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.welcome-dialog h2 { margin: 8px 32px 12px 0; font-size: 1.45rem; line-height: 1.2; }
.welcome-dialog p { margin: 0 0 12px; color: var(--ink-soft); font-size: .93rem; line-height: 1.5; }
.welcome-dialog a { color: var(--teal-dark); font-weight: 750; }
.welcome-actions { display: grid; gap: 8px; margin-top: 20px; }
.welcome-actions button { min-height: 44px; padding: 9px 14px; border: 0; border-radius: 10px; background: var(--teal); color: #fff; font: 750 .9rem system-ui, sans-serif; cursor: pointer; }
.welcome-actions [data-welcome-browse] { border: 1px solid var(--accent-border); background: var(--teal-soft); color: var(--teal-dark); }
.tour-finish-dialog { width: min(380px, calc(100vw - 28px)); }
.tour-finish-dialog [data-tour-finish-close] { width: 100%; min-height: 44px; margin-top: 10px; padding: 9px 14px; border: 0; border-radius: 10px; background: var(--teal); color: #fff; font: 750 .9rem system-ui, sans-serif; cursor: pointer; }
.cart-tour-dialog { width: min(470px, calc(100vw - 28px)); }
.cart-tour-question { margin-top: 16px; padding: 12px; border: 1px solid var(--accent-border); border-radius: 10px; background: var(--accent-surface); }
.cart-tour-question summary { color: var(--navy-deep); font-weight: 750; cursor: pointer; }
.cart-tour-question form { display: grid; gap: 10px; margin-top: 12px; }
.cart-tour-question label { display: grid; gap: 4px; color: var(--navy-deep); font-size: .85rem; font-weight: 700; }
.cart-tour-question input, .cart-tour-question textarea { box-sizing: border-box; width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--accent-border); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.cart-tour-question textarea { resize: vertical; }
.cart-tour-question button { min-height: 42px; border: 0; border-radius: 8px; background: var(--teal); color: #fff; font-weight: 750; cursor: pointer; }
.cart-tour-question button:disabled { opacity: .55; cursor: wait; }
.cart-tour-status { margin: 0 !important; color: var(--success) !important; }
.cart-tour-status.is-error { color: var(--danger) !important; }
.filter-guide-replay { width: 100%; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.catalogue-tour { position: relative; z-index: 4; box-sizing: border-box; margin: 0 0 10px; padding: 14px 16px; border: 1px solid var(--gold); border-radius: 12px; background: linear-gradient(125deg, var(--navy-deep), var(--navy)); color: #fff; box-shadow: 0 10px 26px rgba(var(--navy-rgb), .24); }
.catalogue-tour[hidden], .decor-guide-note[hidden] { display: none; }
.catalogue-tour.is-entering { animation: tour-appear .65s .18s ease-out both; }
.catalogue-tour .tour-progress { display: block; margin-bottom: 4px; color: var(--gold); font-size: .76rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.catalogue-tour > strong { display: block; color: #fff; font-size: 1.02rem; }
.catalogue-tour p { margin: 5px 0 10px; color: rgba(255,255,255,.9); font-size: .87rem; line-height: 1.4; }
.tour-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tour-actions button, .decor-guide-note button { min-height: 34px; padding: 5px 10px; border: 0; border-radius: 8px; background: var(--teal-soft); color: var(--teal-dark); font: 700 .8rem system-ui, sans-serif; cursor: pointer; }
.tour-actions [data-tour-skip], .decor-guide-note [data-tour-skip] { background: transparent; }
.catalogue-tour .tour-actions [data-tour-action] { background: var(--gold); color: var(--navy-deep); }
.catalogue-tour .tour-actions [data-tour-action][hidden] { display: none !important; }
.catalogue-tour .tour-actions [data-tour-skip] { color: #fff; }
.catalogue-tour .tour-actions [data-tour-skip] { margin-left: auto; }
.quantity-prices .tour-guide-row, .quantity-prices .tour-guide-row:last-child { background: transparent; }
.quantity-prices .tour-guide-row td { padding: 8px 6px !important; border-left: 0; white-space: normal; text-align: left; font-size: inherit; }
.catalogue-tour.is-product-step { width: 100%; max-height: none; margin: 0; overflow: visible; }
.tour-spotlight { position: fixed; inset: 0; z-index: 100; width: 100vw; height: 100dvh; pointer-events: none; }
.tour-spotlight[hidden] { display: none; }
.tour-spotlight path { fill: rgba(8, 20, 32, .65); pointer-events: visiblePainted; }
.tour-target { position: relative; outline: 3px solid #ffb703 !important; outline-offset: 3px; scroll-margin-top: 165px; animation: tour-target-pulse 1.2s ease-in-out infinite; }
.selection-panel label.tour-target { outline: 0 !important; box-shadow: inset 0 0 0 3px #ffb703; animation-name: tour-filter-choice-pulse; }
@keyframes tour-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes tour-panel-open { from { opacity: .4; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tour-target-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 183, 3, .8); outline-color: #ffb703; } 50% { box-shadow: 0 0 0 9px rgba(255, 183, 3, .55); outline-color: #fff4bd; } }
@keyframes tour-filter-choice-pulse { 0%, 100% { box-shadow: inset 0 0 0 3px #ffb703; } 50% { box-shadow: inset 0 0 0 3px #fff4bd; } }
@media (prefers-reduced-motion: reduce) { .catalogue-tour.is-entering, .tour-target { animation: none; } .tour-target { box-shadow: 0 0 0 4px rgba(255, 183, 3, .3); } }
.decor-guide-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 14px; padding: 10px 12px; border-left: 3px solid var(--teal); border-radius: 7px; background: var(--teal-soft); color: var(--navy-deep); font-size: .84rem; }
/* Le guide précède les onglets : aucun encart ne coupe leur menu déroulant. */
.catalogue-selection:has(.catalogue-tour:not(.is-product-step):not([hidden])):has(.selection-panel:not([hidden])) { display: flex; flex-direction: column; box-sizing: border-box; max-height: calc(100dvh - var(--catalogue-header-height, 64px) - 6px); }
.catalogue-selection:has(.catalogue-tour:not(.is-product-step):not([hidden])) .catalogue-tour { flex: none; max-height: min(25dvh, 220px); overflow-y: auto; }
.catalogue-selection:has(.catalogue-tour:not(.is-product-step):not([hidden])) .selection-tabs { flex: none; }
.catalogue-selection:has(.catalogue-tour:not(.is-product-step):not([hidden])) .catalogue-selection-form { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.catalogue-selection:has(.catalogue-tour:not(.is-product-step):not([hidden])) .selection-panel:not([hidden]) { display: flex; flex: 1 1 auto; flex-direction: column; box-sizing: border-box; min-height: 0; max-height: none; overflow: hidden; animation: tour-panel-open .24s ease-out; }
.catalogue-selection:has(.catalogue-tour:not(.is-product-step):not([hidden])) .selection-panel[data-selection-panel="supplier"] > fieldset { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.catalogue-selection:has(.catalogue-tour:not(.is-product-step):not([hidden])) :is(.category-filter, .location-choices) { flex: 1 1 auto; min-height: 0; margin-bottom: 8px; overflow-y: auto; overscroll-behavior: contain; }
.catalogue-selection:has(.catalogue-tour:not(.is-product-step):not([hidden])) .selection-panel > .selection-submit { position: static; flex: none; }
@media (prefers-reduced-motion: reduce) {
  .catalogue-selection:has(.catalogue-tour:not(.is-product-step):not([hidden])) .selection-panel { animation: none; }
}

.supplier-group { margin: 0 0 46px; }
.supplier-group > .category:first-of-type { margin-top: 0; }
.category { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .58); }
.category > h3 { margin: 0 0 18px; font-size: 1.35rem; }
.category > h3 a, .product-title h4 a { color: inherit; text-decoration: none; }
.category > h3 a:hover, .product-title h4 a:hover { text-decoration: underline; }
.category > h3 a:focus-visible, .product-title h4 a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.category > .suppliers { align-items: stretch; gap: 24px; }
.category .product { position: relative; display: flex; min-height: 0; flex-direction: column; overflow: hidden; padding: 0 14px 14px; border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 7px 22px rgba(var(--navy-rgb), .11); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.category .product[hidden], .category[hidden], .supplier-group[hidden] { display: none !important; }
.product-family .family-member-stage { display: flex; flex: 1 1 auto; flex-direction: column; }
.product-family .family-member:not([hidden]) { flex: 1 1 auto; }
.category .product:hover { transform: translateY(-3px); border-color: var(--accent-border); box-shadow: var(--shadow-md); }
.product-reference-bar { display: flex; margin: 0 -14px 14px; background: linear-gradient(135deg, var(--navy-deep), var(--navy)); }
.product-reference-bar .copy-reference { display: flex; flex: 1 1 auto; width: auto; min-width: 0; min-height: 58px; align-items: center; gap: 10px; padding: 15px 16px; border: 0; border-radius: 0; background: transparent; color: #fff; text-align: left; cursor: pointer; }
.product-reference-bar .copy-reference:hover { background: rgba(255, 255, 255, .08); }
.product-reference-bar .copy-reference span { color: #bcd4de; font-size: .72rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.product-reference-bar .copy-reference strong { overflow-wrap: anywhere; font: 850 .98rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .02em; }
.maintenance-edit-link { display: grid; flex: 0 0 52px; min-height: 52px; place-items: center; border-left: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .88); text-decoration: none; }
.maintenance-edit-link span { font-size: 1.22rem; line-height: 1; transition: transform .18s ease; }
.maintenance-edit-link:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.maintenance-edit-link:hover span { transform: rotate(28deg); }
.maintenance-edit-link:focus-visible { outline-color: rgba(255, 255, 255, .8); outline-offset: -5px; }
.product, .family-member { scroll-margin-top: calc(var(--catalogue-header-height, 64px) + 96px); }
.seo-page { box-sizing: border-box; max-width: 960px; min-height: 100vh; margin: 0 auto; padding: clamp(20px, 4vw, 48px); color: var(--ink); }
.seo-page nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: .9rem; }
.seo-page a { color: var(--teal-dark); }
.seo-page h1 { margin-bottom: 8px; }
.seo-supplier, .seo-reference { color: var(--ink-soft); }
.seo-photo { display: block; width: min(100%, 560px); height: auto; max-height: 420px; margin: 24px 0; object-fit: contain; background: #fff; }
.seo-description { max-width: 72ch; line-height: 1.6; }
.seo-category-links, .seo-article-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; padding: 0; list-style: none; }
.seo-category-links a, .seo-article-list a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); text-decoration: none; }
.seo-article-list a span { display: block; margin-top: 5px; color: var(--ink-soft); font-size: .85rem; }
.seo-category-links a:hover, .seo-article-list a:hover { border-color: var(--teal); text-decoration: underline; }
.seo-supplier-group { margin: 24px 0; }
.seo-directory-link { margin: 24px 0 8px; text-align: center; font-size: .9rem; }
.product-photo-frame, .product-photo, .photo-placeholder { height: 260px; }
.product-photo-frame { background: #fff; border-radius: 12px; }
.product-photo, .photo-placeholder { border-radius: 12px; background: #fff; }
.product-photo { padding: 8px; }
.photo-placeholder { color: #8293a3; }
.product-title { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 10px; margin: 10px 3px 5px; }
.product-title h4 { flex: 1 1 140px; min-width: 0; margin: 0; font-size: 1.18rem; }
.new-product-badge { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: #fff1cf; color: #805000; font-size: .7rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.photo-new-product-badge { position: absolute; z-index: 1; top: 8px; left: 8px; pointer-events: none; box-shadow: 0 2px 8px rgba(var(--navy-rgb), .14); }
.product-badges{display:flex;flex:0 1 auto;flex-direction:column;align-items:flex-end;gap:5px;max-width:100%}
.description { margin: 8px 3px 12px; color: var(--ink-soft); font-size: .94rem; }
.variant-note { border-left-color: var(--teal); border-radius: 0 8px 8px 0; background: var(--teal-soft); color: var(--navy); }
.variant-choice-badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin: 1px 3px 13px; padding: 5px 10px; border: 1px solid var(--accent-border); border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); font-size: .8rem; font-weight: 650; line-height: 1.2; }
.variant-choice-badge span { color: var(--gold); font-size: .68rem; }
.variant-choice-badge strong { color: var(--navy-deep); font-size: .88rem; }
.product-title .title-variant-badge { margin: 0; white-space: nowrap; }
html[data-catalogue-display="compact"] .product-title h4 { flex: 0 1 auto; }

.quantity-prices { margin: auto 0 0; border: 1px solid var(--accent-line); border-radius: 12px; background: #f8fbfb; }
.quantity-prices thead th { padding: 5px 6px; }
.quantity-prices tbody th, .quantity-prices tbody td { padding: 4px 6px; }
.quantity-prices caption { border-bottom: 1px solid var(--accent-line); background: var(--navy); }
.quantity-prices thead { background: var(--accent-surface); color: var(--ink-soft); }
.quantity-prices th, .quantity-prices td { border-bottom-color: var(--line); }
.quantity-prices th + th, .quantity-prices th + td, .quantity-prices td + td { border-left-color: var(--line); }
.quantity-prices tbody tr:last-child { background: var(--accent-row); }
.quantity-add { border: 0; border-radius: 8px; background: var(--teal); box-shadow: 0 3px 10px rgba(var(--accent-rgb), .18); }
.quantity-add:hover { background: var(--teal-dark); }
.quantity-add:disabled { background: #8ba0aa; }
.copy-reference { border-radius: 999px; }

.decor-dialog { border-radius: var(--radius-lg); box-shadow: 0 25px 70px rgba(11, 43, 67, .3); }
.decor-dialog::backdrop { background: rgba(11, 43, 67, .68); backdrop-filter: blur(3px); }
.decor-options span { border-color: var(--line); border-radius: 12px; }
.decor-options input:checked + span { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 0 0 2px var(--teal); }
.dialog-close { background: #edf3f4; color: var(--navy); }
.cart-toast {
  box-sizing: border-box;
  width: max-content;
  max-width: min(420px, calc(100vw - 28px));
  max-height: min(35dvh, 240px);
  overflow-y: auto;
  overflow-wrap: break-word;
  border-radius: 13px;
  line-height: 1.45;
  background: var(--success);
}
@media (max-width: 550px) {
  .cart-toast { bottom: calc(16px + env(safe-area-inset-bottom)); padding: 12px 14px; font-size: .95rem; }
}

.cart-page, .account-page { width: 100%; }
.cart-back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 5px 12px; border: 1px solid var(--accent-border); border-radius: 999px; background: var(--paper); color: var(--teal-dark); font-size: .88rem; font-weight: 750; text-decoration: none; box-shadow: var(--shadow-sm); }
.cart-back-link:hover, .cart-back-link:focus-visible { border-color: var(--teal); background: var(--teal-soft); color: var(--navy-deep); }
.cart-back-link span { font-size: 1.2rem; line-height: 1; }
.account-page { max-width: 700px; }
.account-page > h1, .cart-page-header h1, .cart-page > h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); }
.account-form, .saved-carts article, .cart-line, .cart-empty, .checkout-line { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); }
.account-form { padding: 26px; }
.account-form input, .account-form select, .account-form textarea, .cart-archive input, .cart-line-actions input { border: 1px solid #cbd9dd; border-radius: 9px; background: #fbfdfd; }
.account-form input:focus, .account-form select:focus, .account-form textarea:focus { border-color: var(--teal); }
.saved-carts { gap: 14px; }
.saved-carts article { padding: 18px 20px; }
.saved-carts article > a { padding: 10px 14px; border-radius: 9px; background: var(--teal-soft); font-weight: 750; text-decoration: none; }
.saved-cart-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.saved-cart-actions form { margin: 0; }
.saved-cart-actions .danger-button { background: var(--danger); box-shadow: 0 5px 14px rgba(180, 35, 59, .16); }
.saved-cart-actions .danger-button:hover { background: #8f1830; }
.cart-line { border-color: var(--line); box-shadow: var(--shadow-sm); }
.cart-line > img { border-radius: 10px; background: #fff; }
.cart-supplier { color: var(--teal-dark); letter-spacing: .04em; text-transform: uppercase; }
.cart-line-actions button { border-radius: 9px; background: var(--teal); }
.cart-line-actions .cart-remove { background: var(--danger); }
.cart-total { border-top-color: var(--teal); color: var(--navy-deep); }
.cart-checkout a { border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--success), #0f5c3a); box-shadow: 0 6px 18px rgba(22, 115, 74, .2); }
.cart-archive { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.order-table { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.table-scroll { width: 100%; overflow-x: auto; border-radius: var(--radius-sm); }
.order-table th { background: #eaf2f3; color: var(--navy-deep); }
.order-table th, .order-table td { border-color: #cbd9dd; }

@media (max-width: 900px) {
  .catalogue-header { box-sizing: border-box; min-height: 62px; justify-content: flex-end; margin-bottom: 18px; padding: 8px 10px; }
  .catalogue-brand, .seller-badge { display: none; }
  .header-actions { width: 100%; justify-content: flex-end; padding-left: 82px; }
  .catalogue-header .cart-summary { display: block; width: auto; }
  .top-menu { position: fixed; left: 8px; top: 8px; z-index: 46; }
  .top-menu > summary { border-radius: 11px; }
  .menu-panel { position: fixed; left: 8px; right: auto; top: 58px; width: calc(100vw - 16px); max-height: calc(100vh - 70px); border-radius: var(--radius); }
}

@media (max-width: 700px) {
  main { padding: 20px 14px 48px; }
  .catalogue-page { padding-inline: 5px; }
  .catalogue-header { margin: -20px -5px 18px; }
  .catalogue-selection { margin-inline: -5px; padding-inline: 5px; }
  .catalogue-intro { margin-top: 6px; }
  .catalogue-lead { font-size: .94rem; }
  .category { padding: 8px; border-radius: var(--radius); }
  .category > .suppliers { gap: 30px; }
  .category .product { border-color: var(--accent-line); box-shadow: 0 9px 25px rgba(var(--navy-rgb), .15); }
  .product-reference-bar .copy-reference { min-height: 58px; padding: 15px 14px; }
  .category .product:hover { transform: none; }
  .product-photo-frame, .product-photo, .photo-placeholder { height: 220px; }
  .account-form { padding: 18px; }
  .saved-carts article { align-items: stretch; flex-direction: column; }
  .saved-carts article > a { text-align: center; }
}

@media (max-width: 430px) {
  .catalogue-header { min-height: 60px; }
  .header-actions { gap: 6px; padding-left: 76px; }
  .catalogue-header .cart-summary { padding: 8px 9px; font-size: .74rem; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
@media print { body { background: #fff; } .order-table { box-shadow: none; } }

.offline-status { position: fixed; z-index: 60; left: 50%; bottom: 18px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 28px); padding: 10px 16px; border-radius: 999px; background: var(--navy); color: #fff; box-shadow: 0 8px 25px rgba(11, 43, 67, .28); font-size: .85rem; font-weight: 750; text-align: center; pointer-events: none; }
.offline-status.is-offline { background: #835711; }
.offline-status.is-syncing { background: var(--teal-dark); }
.offline-status.is-success { background: var(--success); }
.offline-status.is-error { background: var(--danger); }
.back-to-top { background: rgba(var(--navy-rgb), .68); box-shadow: 0 7px 22px rgba(var(--navy-rgb), .22); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.back-to-top:hover, .back-to-top:focus-visible { background: var(--navy); }
.account-hero { background: linear-gradient(135deg, var(--navy), var(--teal-dark)); color: #fff; box-shadow: var(--shadow-md); }
.account-hero-icon { background: rgba(255,255,255,.16); color: #fff; }
.account-hero .account-eyebrow, .account-hero p { color: rgba(255,255,255,.8); }
.account-identity, .account-shortcuts a, .account-settings details { border-color: var(--line); background: var(--paper); box-shadow: var(--shadow-sm); }
.account-shortcuts a { color: var(--navy); }
.account-shortcuts a:hover { border-color: var(--teal); transform: translateY(-1px); }
.account-shortcuts a>span { background: var(--teal-soft); color: var(--teal-dark); }
.account-settings details[open] summary { border-color: var(--line); background: var(--surface-soft); }
.category .product-family { padding: 0; }
.family-photo-navigation>button, .family-photo-navigation>button:hover, .family-photo-navigation>button:focus-visible { background: transparent; }
