:root {
  --navy: #34415c;
  --navy-2: #42506b;
  --sage: #9cad98;
  --sage-light: #e5ebe1;
  --amber: #e6b45c;
  --coral: #df9278;
  --cream: #f8f4ed;
  --paper: #fffdfa;
  --ink: #333a43;
  --muted: #6d7074;
  --line: rgba(31, 42, 68, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--navy);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 98px;
  display: flex;
  align-items: center;
  gap: 42px;
  padding: 0 5vw;
  background: rgba(255, 253, 249, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 275px; }
.brand-mark {
  width: 66px;
  height: 66px;
  overflow: hidden;
  border-radius: 21px;
  background: var(--cream);
  box-shadow: 0 8px 24px rgba(31, 42, 68, .10);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.11); }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 23px; letter-spacing: .055em; }
.brand-copy small { margin-top: 9px; color: var(--sage); font-size: 14px; letter-spacing: .08em; }
.brand-copy i { display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px; border-radius: 50%; background: var(--amber); }
.desktop-nav { margin-left: auto; display: flex; gap: clamp(20px, 2.4vw, 42px); color: var(--ink); font-size: 15px; }
.desktop-nav a { position: relative; padding: 12px 0; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 2px; background: var(--amber); transition: right .2s ease; }
.desktop-nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-button { position: relative; display: grid; place-items: center; width: 44px; height: 44px; }
.cart-button b { position: absolute; right: -3px; top: -3px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: white; background: var(--coral); font-size: 12px; }
.fly-to-cart { position: fixed; z-index: 80; width: 68px; height: 68px; object-fit: cover; border: 2px solid white; border-radius: 18px; box-shadow: 0 12px 30px rgba(52,65,92,.25); pointer-events: none; transition: transform .62s cubic-bezier(.2,.72,.2,1), opacity .58s ease; }
.cart-button.cart-bump { animation: cart-bump .36s ease; }
@keyframes cart-bump { 0%,100% { transform: scale(1); } 45% { transform: scale(1.22) rotate(-7deg); } }
.bag-icon { position: relative; width: 24px; height: 24px; border: 2px solid var(--navy); border-radius: 3px 3px 7px 7px; }
.bag-icon::before { content: ""; position: absolute; left: 5px; top: -8px; width: 10px; height: 9px; border: 2px solid var(--navy); border-bottom: 0; border-radius: 8px 8px 0 0; }
.menu-button { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.menu-button span { display: block; height: 2px; margin: 5px 0; background: var(--navy); border-radius: 2px; }
.mobile-nav { display: none; }

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 92px);
  overflow: hidden;
  padding: 68px 6vw 78px;
  background: linear-gradient(115deg, #f9f5ee 0%, #f8f2e9 47%, #eef1ea 100%);
}
.hero::after { content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none; background-image: radial-gradient(rgba(31, 42, 68, .13) .65px, transparent .65px); background-size: 8px 8px; }
.hero-copy, .hero-visual { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 21px; color: var(--sage); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { width: 34px; height: 2px; background: var(--amber); }
.hero h1 { max-width: 690px; margin: 0; font-size: clamp(53px, 5.7vw, 88px); line-height: .98; letter-spacing: -.045em; }
.hero-lead { max-width: 620px; margin: 30px 0 0; color: #555a60; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.primary-button { display: inline-flex; align-items: center; gap: 20px; min-height: 58px; padding: 0 27px; border-radius: 14px; color: white; background: var(--amber); box-shadow: 0 12px 30px rgba(242, 169, 0, .24); font-size: 17px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(242, 169, 0, .32); }
.primary-button span { font-size: 23px; }
.text-link { padding: 8px 0; border-bottom: 1px solid rgba(31, 42, 68, .35); font-size: 15px; }
.hero-note { display: flex; align-items: center; gap: 13px; margin-top: 38px; color: var(--ink); }
.hero-note-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--sage); background: white; box-shadow: 0 5px 18px rgba(31, 42, 68, .09); font-weight: 800; }
.hero-note > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.hero-note strong { font-size: 14px; }
.hero-note small { color: var(--muted); font-size: 13px; }

.hero-visual { min-height: 530px; display: grid; place-items: center; }
.photo-card { position: relative; width: min(100%, 650px); height: 510px; overflow: hidden; border-radius: 56px 20px 56px 20px; background: #d8ddcf; box-shadow: 0 35px 75px rgba(31, 42, 68, .18); transform: rotate(1.4deg); }
.photo-card::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.38); border-radius: inherit; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; transform: scale(1.16); }
.floating-card { position: absolute; display: flex; align-items: center; padding: 14px 18px; border: 1px solid rgba(255,255,255,.78); border-radius: 18px; background: rgba(255, 253, 249, .88); box-shadow: 0 16px 38px rgba(31,42,68,.14); backdrop-filter: blur(10px); }
.floating-card-top { top: 10px; right: 1%; gap: 8px; color: var(--sage); font-size: 13px; }
.floating-card-top b { color: var(--amber); }
.floating-card-bottom { left: -18px; bottom: 32px; gap: 12px; }
.floating-card-bottom .spark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; color: white; background: var(--amber); }
.floating-card-bottom div { display: flex; flex-direction: column; gap: 3px; }
.floating-card-bottom b { font-size: 13px; }
.floating-card-bottom small { color: var(--muted); font-size: 12px; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .65; }
.hero-glow-one { width: 360px; height: 360px; right: -130px; top: -150px; background: rgba(242, 169, 0, .12); }
.hero-glow-two { width: 270px; height: 270px; left: 42%; bottom: -180px; background: rgba(143, 162, 139, .18); }

.feature-strip { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr) minmax(220px, .75fr); gap: 0; padding: 34px 6vw; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 -20px 45px rgba(31,42,68,.04); }
.feature-strip article { display: flex; gap: 16px; min-height: 92px; padding: 8px 28px; border-right: 1px solid var(--line); }
.feature-strip article:first-child { padding-left: 0; }
.feature-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--sage-light); border-radius: 14px; color: var(--navy); background: var(--cream); font-size: 25px; }
.feature-strip h2 { margin: 2px 0 6px; font-size: 15px; }
.feature-strip p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.hand-note { align-self: center; justify-self: center; max-width: 220px; padding-left: 24px; color: var(--sage) !important; font-family: "Segoe Script", cursive; font-size: 20px !important; line-height: 1.4 !important; transform: rotate(-2deg); }
.hand-note span { color: var(--amber); }

.catalog-intro { padding: 96px 6vw 120px; }
.section-heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.catalog-intro h2 { max-width: 800px; margin: 0; font-size: clamp(38px, 4.4vw, 64px); line-height: 1.06; letter-spacing: -.045em; }
.section-heading-row p { max-width: 650px; margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.outline-button { display: inline-flex; align-items: center; gap: 20px; flex: 0 0 auto; padding: 15px 19px; border: 1px solid var(--navy); border-radius: 12px; font-weight: 650; }
.outline-button span { font-size: 20px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; }
.empty-catalog { grid-column: 1 / -1; margin: 0; padding: 42px; border: 1px dashed var(--line); border-radius: 20px; color: var(--muted); background: var(--cream); text-align: center; }
.product-card { min-width: 0; }
.product-image { position: relative; height: 360px; overflow: hidden; border-radius: 24px; background: var(--cream); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-one img { object-position: center 63%; transform: scale(1.12); }
.product-card:hover .product-one img { transform: scale(1.17); }
.product-two img { object-position: 62% center; transform: scale(1.6); }
.product-card:hover .product-two img { transform: scale(1.66); }
.product-three img { object-position: 80% center; transform: scale(1.5); }
.product-card:hover .product-three img { transform: scale(1.56); }
.product-four img { object-position: 98% center; transform: scale(1.55); }
.product-card:hover .product-four img { transform: scale(1.61); }
.product-badge { position: absolute; left: 14px; top: 14px; padding: 7px 10px; border-radius: 9px; color: var(--navy); background: rgba(255,253,249,.88); backdrop-filter: blur(8px); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.product-image button { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--navy); background: rgba(255,253,249,.9); font-size: 23px; cursor: pointer; }
.product-info { padding: 18px 4px 0; }
.product-info > p { margin: 0 0 7px; color: var(--sage); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.product-info h3 { margin: 0; font-size: 21px; }
.product-info > div { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.product-info strong { font-size: 16px; }
.add-to-cart { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--navy); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.add-to-cart:hover { color: white; background: var(--navy); }

.story-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; padding: 100px 6vw; background: #f2efe8; }
.story-card { padding: clamp(30px, 4vw, 64px); border-radius: 30px; background: var(--paper); box-shadow: 0 20px 60px rgba(31,42,68,.07); }
.story-card h2 { max-width: 760px; margin: 0; font-size: clamp(35px, 3.8vw, 59px); line-height: 1.07; letter-spacing: -.04em; }
.story-card > p:not(.eyebrow) { max-width: 700px; margin: 25px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.story-signature { margin-top: 35px; color: var(--sage); font-family: "Segoe Script", cursive; font-size: 20px; }
.story-signature i { color: var(--amber); font-style: normal; }
.story-numbers { display: flex; flex-direction: column; justify-content: center; }
.story-numbers article { position: relative; display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto; padding: 29px 0; border-bottom: 1px solid rgba(31,42,68,.15); }
.story-numbers article:last-child { border-bottom: 0; }
.story-numbers strong { grid-row: 1 / 3; color: var(--amber); font-size: 26px; font-weight: 500; }
.story-numbers span { font-size: 22px; font-weight: 750; }
.story-numbers p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }

.order-section { display: flex; justify-content: space-between; align-items: center; gap: 70px; padding: 78px 6vw; color: white; background: var(--navy); }
.order-section > div { max-width: 860px; }
.eyebrow.light { color: #b8c7b5; }
.order-section h2 { margin: 0; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -.04em; }
.order-section p:not(.eyebrow) { max-width: 780px; margin: 21px 0 0; color: rgba(255,255,255,.7); font-size: 17px; line-height: 1.6; }
.order-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; flex: 0 0 auto; min-height: 60px; padding: 0 26px; border-radius: 14px; color: var(--navy); background: var(--amber); font-weight: 750; }

footer { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding: 62px 6vw 30px; background: #182238; color: white; }
.footer-brand { display: flex; align-items: center; gap: 15px; }
.footer-brand img { width: 66px; height: 66px; border-radius: 20px; object-fit: cover; }
.footer-brand > div { display: flex; flex-direction: column; gap: 7px; }
.footer-brand strong { font-size: 20px; letter-spacing: .06em; }
.footer-brand span { color: rgba(255,255,255,.55); font-size: 13px; }
footer > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 10px; }
footer b { margin-bottom: 6px; font-size: 14px; }
footer a { color: rgba(255,255,255,.58); font-size: 13px; }
footer > p { grid-column: 1 / -1; margin: 35px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.38); font-size: 12px; }

.drawer-overlay { position: fixed; inset: 0; z-index: 39; visibility: hidden; opacity: 0; background: rgba(24,34,56,.42); backdrop-filter: blur(3px); transition: .25s ease; }
.drawer-overlay.open { visibility: visible; opacity: 1; }
.cart-drawer { position: fixed; z-index: 40; top: 0; right: 0; width: min(470px, 100%); height: 100vh; overflow-y: auto; padding: 28px; background: var(--paper); box-shadow: -25px 0 70px rgba(31,42,68,.22); transform: translateX(105%); transition: transform .3s ease; }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cart-drawer-head p { margin: 0 0 4px; color: var(--sage); font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.cart-drawer-head h2 { margin: 0; font-size: 30px; }
.cart-drawer-head button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--navy); font-size: 26px; cursor: pointer; }
.cart-items { display: flex; flex-direction: column; gap: 10px; min-height: 130px; padding: 20px 0; }
.empty-cart { align-self: center; margin: auto; max-width: 280px; color: var(--muted); font-size: 13px; line-height: 1.55; text-align: center; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.cart-item b { font-size: 14px; }
.cart-item span { grid-column: 1; color: var(--muted); font-size: 12px; }
.cart-item button { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 31px; height: 31px; border: 0; border-radius: 9px; color: var(--coral); background: #fff0ea; cursor: pointer; }
.cart-summary { display: flex; justify-content: space-between; align-items: center; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cart-summary span { color: var(--muted); font-size: 13px; }
.cart-summary strong { font-size: 20px; }
.order-form { display: flex; flex-direction: column; gap: 13px; padding-top: 22px; }
.order-form h3 { margin: 0 0 3px; }
.order-form label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 650; }
.order-form input, .order-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; color: var(--ink); background: white; font: inherit; font-size: 13px; outline: none; }
.order-form input:focus, .order-form textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(143,162,139,.13); }
.order-form > button { min-height: 51px; border: 0; border-radius: 12px; color: white; background: var(--navy); font-weight: 750; cursor: pointer; }
.order-form > small { color: #9a9da0; font-size: 10px; line-height: 1.45; text-align: center; }
.success-toast { position: fixed; z-index: 50; right: 25px; bottom: 25px; display: flex; flex-direction: column; gap: 4px; width: min(370px, calc(100% - 40px)); padding: 17px 20px; border-radius: 14px; color: white; background: #526c51; box-shadow: 0 18px 45px rgba(31,42,68,.2); opacity: 0; transform: translateY(25px); pointer-events: none; transition: .3s ease; }
.success-toast.show { opacity: 1; transform: translateY(0); }
.success-toast b { font-size: 14px; }
.success-toast span { color: rgba(255,255,255,.72); font-size: 11px; }

.workspace-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; background: #f6f5f1; color: var(--navy); }
.workspace-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 25px 18px; color: white; background: #35415b; }
.workspace-logo { display: flex; align-items: center; gap: 12px; padding: 0 8px 27px; border-bottom: 1px solid rgba(255,255,255,.1); }
.workspace-logo img { width: 48px; height: 48px; object-fit: cover; border-radius: 15px; }
.workspace-logo span { display: flex; flex-direction: column; gap: 5px; }
.workspace-logo b { letter-spacing: .05em; font-size: 15px; }
.workspace-logo small { color: #adbea9; font-size: 11px; }
.workspace-sidebar nav { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; }
.workspace-sidebar nav a, .sidebar-bottom a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 12px; color: rgba(255,255,255,.66); font-size: 14px; }
.workspace-sidebar nav a i, .sidebar-bottom a i { width: 22px; color: #adbea9; font-size: 18px; font-style: normal; text-align: center; }
.workspace-sidebar nav a.active { color: white; background: rgba(255,255,255,.1); box-shadow: inset 3px 0 0 var(--amber); }
.workspace-sidebar nav a b { margin-left: auto; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: var(--coral); color: white; font-size: 10px; }
.sidebar-bottom { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.workspace-main { min-width: 0; padding: 32px 38px 55px; }
.workspace-header { display: flex; justify-content: space-between; align-items: center; }
.workspace-header p { margin: 0 0 5px; color: var(--muted); font-size: 13px; }
.workspace-header h1 { margin: 0; font-size: 29px; letter-spacing: -.025em; }
.workspace-user { display: flex; align-items: center; gap: 10px; }
.workspace-user button { position: relative; width: 39px; height: 39px; margin-right: 8px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.workspace-user button b { position: absolute; right: -5px; top: -6px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: white; background: var(--coral); font-size: 9px; }
.workspace-user > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--sage-light); color: var(--navy); font-weight: 750; }
.workspace-user > div { display: flex; flex-direction: column; gap: 3px; }
.workspace-user strong { font-size: 13px; }
.workspace-user small { color: var(--muted); font-size: 11px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 29px; }
.stats-grid article { display: flex; align-items: flex-start; gap: 14px; min-width: 0; padding: 21px; border: 1px solid rgba(31,42,68,.07); border-radius: 17px; background: white; box-shadow: 0 5px 25px rgba(31,42,68,.035); }
.stat-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 13px; font-size: 18px; font-weight: 750; }
.stat-icon.amber { color: #946500; background: #fff0c8; }
.stat-icon.sage { color: #596d56; background: #e4ede0; }
.stat-icon.coral { color: #a84327; background: #ffe0d6; }
.stat-icon.navy { color: var(--navy); background: #e2e7f0; }
.stats-grid article > div { min-width: 0; display: flex; flex-direction: column; }
.stats-grid p { margin: 0 0 7px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.stats-grid strong { font-size: 24px; letter-spacing: -.025em; }
.stats-grid small { margin-top: 6px; color: #8a8e92; font-size: 10px; }
.stats-grid small b { color: #5d8657; }
.workspace-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 18px; margin-top: 18px; }
.panel { min-width: 0; padding: 24px; border: 1px solid rgba(31,42,68,.07); border-radius: 18px; background: white; box-shadow: 0 5px 25px rgba(31,42,68,.035); }
.panel-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-title p { margin: 0 0 5px; color: var(--sage); font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.panel-title h2 { margin: 0; font-size: 18px; }
.panel-title a { color: var(--muted); font-size: 11px; }
.order-table { margin-top: 21px; }
.table-head, .table-row { display: grid; grid-template-columns: .7fr .9fr 1.5fr .75fr .8fr; align-items: center; gap: 12px; }
.table-head { padding: 0 10px 10px; color: #96999d; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.table-row { min-height: 54px; padding: 0 10px; border-top: 1px solid #eef0ed; font-size: 11px; }
.table-row strong { font-size: 11px; }
.table-row span { color: #565c63; }
.table-row em { justify-self: start; padding: 6px 8px; border-radius: 8px; font-size: 9px; font-style: normal; font-weight: 700; }
.table-row em.new { color: #9c512f; background: #ffe7da; }
.table-row em.print { color: #8a6500; background: #fff2cb; }
.table-row em.done { color: #52714e; background: #e4efdf; }
.add-order { width: 100%; min-height: 40px; margin-top: 15px; display: flex; align-items: center; justify-content: center; border: 1px dashed #bbc5b6; border-radius: 11px; color: #657462; background: #f6f8f4; font-weight: 650; font-size: 11px; }
.materials-list { display: flex; flex-direction: column; gap: 20px; margin-top: 23px; }
.materials-list p { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; font-size: 10px; }
.materials-list p span { color: var(--muted); }
.materials-list i { display: block; height: 6px; overflow: hidden; border-radius: 5px; background: #edf0eb; }
.materials-list i b { display: block; height: 100%; border-radius: inherit; background: var(--sage); }
.stock-alert { display: flex; gap: 11px; margin-top: 23px; padding: 12px; border-radius: 12px; background: #fff6df; }
.stock-alert > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: white; background: var(--amber); font-weight: 800; }
.stock-alert p { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.stock-alert b { font-size: 10px; }
.stock-alert small { color: #8b7651; font-size: 9px; }
.calculator-panel { background: #fefdf9; }
.formula { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--navy); background: var(--sage-light); font-size: 19px; }
.calculator-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 21px; }
.calculator-fields label { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 1px solid #e7eae4; border-radius: 11px; color: var(--muted); background: white; font-size: 10px; }
.calculator-fields input { width: 80px; padding: 6px 7px; border: 1px solid #e3e7e0; border-radius: 8px; color: var(--navy); background: #f8faf7; font-size: 10px; font-weight: 700; text-align: right; }
.calculate-button { width: 100%; min-height: 39px; margin-top: 12px; border: 0; border-radius: 10px; color: white; background: var(--sage); font-size: 11px; font-weight: 750; cursor: pointer; }
.calculation-result { display: grid; grid-template-columns: 1fr auto; align-items: center; margin-top: 14px; padding: 15px; border-radius: 12px; color: white; background: var(--navy); }
.calculation-result span { font-size: 10px; }
.calculation-result strong { grid-row: 1 / 3; grid-column: 2; font-size: 22px; }
.calculation-result small { margin-top: 4px; color: #c4d0c0; font-size: 9px; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 21px; }
.quick-actions button, .quick-actions a { display: flex; align-items: center; gap: 9px; min-height: 47px; padding: 0 12px; border: 1px solid #e6e9e3; border-radius: 11px; color: var(--navy); background: #fafbf8; font-size: 10px; text-align: left; }
.quick-actions span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: #657462; background: var(--sage-light); font-size: 14px; }

/* Pricing and budgeting */
.pricing-header > div:first-child > small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.pricing-tabs { display: flex; gap: 7px; margin: 28px 0 18px; padding: 6px; width: fit-content; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.72); }
.pricing-tabs button { min-width: 112px; padding: 10px 18px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.pricing-tabs button.active { color: white; background: var(--navy); box-shadow: 0 5px 14px rgba(52,65,92,.16); }
.pricing-tab { display: none; }
.pricing-tab.active { display: block; }
.pricing-summary, .scenario-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 18px; }
.pricing-summary article, .scenario-grid article { padding: 19px 20px; border: 1px solid rgba(52,65,92,.07); border-radius: 16px; background: white; box-shadow: 0 5px 24px rgba(52,65,92,.035); }
.pricing-summary p, .scenario-grid p { margin: 0 0 8px; color: var(--muted); font-size: 11px; }
.pricing-summary strong, .scenario-grid strong { display: block; font-size: 21px; }
.pricing-summary small, .scenario-grid small { display: block; margin-top: 6px; color: #909398; font-size: 9px; }
.positive { color: #6e8f67 !important; }
.soft-button { padding: 9px 13px; border: 1px solid #dfe6da; border-radius: 10px; color: #657861; background: #f3f7f1; font-size: 10px; font-weight: 700; cursor: pointer; }
.pricing-note { margin: 18px 0; padding: 12px 14px; border-radius: 11px; color: #677066; background: #f4f7f1; font-size: 10px; line-height: 1.55; }
.price-table { overflow-x: auto; }
.price-head, .price-row { display: grid; grid-template-columns: 1.55fr repeat(6,.72fr); align-items: center; gap: 10px; min-width: 870px; }
.price-head { padding: 10px 12px; color: #96999d; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.price-row { min-height: 53px; padding: 0 12px; border-top: 1px solid #eef0ed; font-size: 10px; }
.price-row em { justify-self: start; padding: 5px 8px; border-radius: 8px; color: #95694b; background: #fbebdf; font-style: normal; font-weight: 700; }
.two-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 20px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 9px; font-weight: 650; }
.form-grid input, .form-grid select, .filament-row input { width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid #e1e5df; border-radius: 9px; color: var(--navy); background: #fbfcfa; font: inherit; font-size: 11px; outline: none; }
.form-grid input:focus, .form-grid select:focus, .filament-row input:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(156,173,152,.13); }
.active-badge { padding: 7px 10px; border-radius: 9px; color: #63805e; background: #e6efe2; font-size: 9px; font-style: normal; font-weight: 700; }
.promo-card { display: flex; align-items: center; gap: 17px; margin-top: 22px; padding: 18px; border-radius: 14px; background: linear-gradient(130deg,#f9eee7,#f5f2e8); }
.promo-card > strong { color: var(--coral); font-size: 28px; }
.promo-card div { display: flex; flex-direction: column; gap: 5px; font-size: 11px; }
.promo-card span { color: var(--muted); font-size: 9px; }
.scenario-grid { grid-template-columns: repeat(3,1fr); }
.scenario-grid article.selected { border-color: #cbd8c7; background: #f8fbf6; box-shadow: inset 0 0 0 1px #cbd8c7; }
.budget-results > div:not(.panel-title) { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid #edf0eb; font-size: 11px; }
.budget-results > div:not(.panel-title) span { color: var(--muted); }
.planfact-table { margin-top: 22px; }
.planfact-table > div { display: grid; grid-template-columns: 1.25fr .8fr .8fr 1.4fr; gap: 15px; align-items: center; min-height: 54px; padding: 0 12px; border-top: 1px solid #edf0eb; font-size: 10px; }
.planfact-table > div:first-child { min-height: 36px; border: 0; color: #92969a; font-size: 8px; text-transform: uppercase; }
.planfact-table em { position: relative; height: 24px; padding: 6px 8px; overflow: hidden; border-radius: 8px; background: #eef2eb; font-style: normal; font-weight: 700; }
.planfact-table em i { position: absolute; inset: 0 auto 0 0; z-index: 0; opacity: .35; background: var(--sage); }
.planfact-table em i.warning { background: var(--amber); }
.advanced-calculator { margin-top: 18px; scroll-margin-top: 20px; }
.calculator-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.55fr); gap: 24px; margin-top: 20px; }
.order-basics { grid-template-columns: 1.5fr .5fr .7fr; margin-top: 0; }
.calculator-section-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 25px 0 11px; }
.calculator-section-head > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.calculator-section-head b { font-size: 12px; }
.calculator-section-head small { color: var(--muted); font-size: 9px; }
.filament-rows { display: flex; flex-direction: column; gap: 8px; }
.filament-row { display: grid; grid-template-columns: 1.4fr .7fr .65fr 35px; gap: 8px; }
.filament-row button { border: 1px solid #eadfd9; border-radius: 9px; color: #a86c58; background: #fff7f3; cursor: pointer; }
.filament-labels { display: grid; grid-template-columns: 1.4fr .7fr .65fr 35px; gap: 8px; margin-top: 5px; padding: 0 9px; color: #a2a4a6; font-size: 8px; }
.mode-switch { display: flex; padding: 3px; border-radius: 9px; background: #eff2ed; }
.mode-switch button { padding: 6px 9px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 8px; }
.mode-switch button.active { color: var(--navy); background: white; box-shadow: 0 2px 7px rgba(52,65,92,.08); }
.hidden { display: none !important; }
.calculation-card { position: sticky; top: 24px; align-self: start; padding: 24px; border-radius: 17px; color: white; background: #40506b; box-shadow: 0 16px 35px rgba(52,65,92,.18); }
.calculation-card > p { margin: 0 0 7px; color: #cdd8ca; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.calculation-card h3 { margin: 0; color: #fff1c9; font-size: 30px; }
.calculation-card > small { display: block; margin-top: 5px; color: rgba(255,255,255,.58); font-size: 8px; }
.calculation-card dl { margin: 22px 0 15px; }
.calculation-card dl div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.09); font-size: 9px; }
.calculation-card dt { color: rgba(255,255,255,.62); }
.calculation-card dd { margin: 0; font-weight: 700; }
.result-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; font-size: 9px; }
.result-total strong { font-size: 14px; }
.result-total.highlight { margin: 4px -10px; padding: 12px 10px; border-radius: 10px; color: var(--navy); background: #f5e6b9; }
.profit-line { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); }
.profit-line span { color: rgba(255,255,255,.62); font-size: 8px; }
.profit-line strong { color: #dfead9; font-size: 14px; }
.calculation-card .calculate-button { background: var(--amber); color: var(--navy); }

/* Orders journal */
.orders-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 28px 0 18px; }
.orders-stats article { display: flex; align-items: flex-start; gap: 13px; padding: 19px; border: 1px solid rgba(52,65,92,.07); border-radius: 16px; background: white; box-shadow: 0 5px 24px rgba(52,65,92,.035); }
.orders-stats article > span { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; color: #64745f; background: var(--sage-light); font-size: 16px; }
.orders-stats article > div { min-width: 0; }
.orders-stats p { margin: 0 0 6px; color: var(--muted); font-size: 10px; }
.orders-stats strong { display: block; font-size: 20px; }
.orders-stats small { display: block; margin-top: 5px; overflow: hidden; color: #929599; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.orders-journal { padding: 0; overflow: hidden; }
.orders-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 23px 25px 15px; }
.section-kicker { margin: 0 0 5px; color: var(--sage); font-size: 9px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.orders-toolbar h2 { margin: 0; font-size: 18px; }
.orders-actions { display: flex; gap: 8px; }
.primary-small { padding: 10px 14px; border: 0; border-radius: 10px; color: white; background: var(--navy); font-size: 10px; font-weight: 750; cursor: pointer; }
.orders-filters { display: grid; grid-template-columns: minmax(260px,1fr) 180px 180px; gap: 10px; padding: 0 25px 18px; border-bottom: 1px solid #edf0ed; }
.orders-filters select, .orders-search { min-height: 40px; border: 1px solid #e1e5df; border-radius: 10px; color: var(--muted); background: #fbfcfa; font: inherit; font-size: 10px; }
.orders-filters select { padding: 0 10px; }
.orders-search { display: flex; align-items: center; gap: 8px; padding: 0 11px; color: #8d918f; font-size: 18px; }
.orders-search input { width: 100%; border: 0; outline: 0; color: var(--navy); background: transparent; font: inherit; font-size: 10px; }
.journal-table { overflow-x: auto; }
.journal-head, .journal-row { display: grid; grid-template-columns: .75fr 1fr 1.4fr .55fr .8fr .75fr 34px; align-items: center; gap: 12px; min-width: 920px; }
.journal-head { min-height: 37px; padding: 0 25px; color: #989b9e; background: #fbfcfa; font-size: 8px; font-weight: 750; text-transform: uppercase; }
.journal-row { min-height: 64px; padding: 0 25px; border-top: 1px solid #edf0ed; font-size: 10px; cursor: pointer; transition: background .15s ease; }
.journal-row:hover { background: #fafbf8; }
.journal-row > div { display: flex; flex-direction: column; gap: 4px; }
.journal-row small { color: #92969a; font-size: 8px; }
.journal-row > span { color: #596067; }
.journal-row em { justify-self: start; padding: 6px 8px; border-radius: 8px; font-size: 8px; font-style: normal; font-weight: 750; }
.journal-row em.new { color: #96593f; background: #fbe9df; }
.journal-row em.agree { color: #806737; background: #f7efd9; }
.journal-row em.queue { color: #596b85; background: #e8edf3; }
.journal-row em.print { color: #82631b; background: #f8edc8; }
.journal-row em.post { color: #706383; background: #eee8f3; }
.journal-row em.done { color: #587355; background: #e5eee1; }
.journal-row em.issued { color: #4e6e69; background: #e0ece9; }
.journal-row em.cancelled { color: #8a6e67; background: #eee9e7; }
.journal-row > button { border: 0; color: #96999d; background: transparent; cursor: pointer; }
.journal-empty { padding: 50px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.journal-empty strong { color: var(--navy); font-size: 13px; }
.order-editor-overlay { position: fixed; z-index: 39; inset: 0; background: rgba(34,42,57,.32); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.order-editor-overlay.open { opacity: 1; pointer-events: auto; }
.order-editor { position: fixed; z-index: 40; top: 0; right: 0; width: min(620px,100%); height: 100vh; overflow-y: auto; padding: 26px 28px; background: #fffdfa; box-shadow: -20px 0 50px rgba(52,65,92,.16); transform: translateX(105%); transition: transform .25s ease; }
.order-editor.open { transform: translateX(0); }
.order-editor-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid #e9ece7; }
.order-editor-head p { margin: 0 0 4px; color: var(--sage); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.order-editor-head h2 { margin: 0; font-size: 21px; }
.order-editor-head > button { width: 38px; height: 38px; border: 1px solid #e2e6df; border-radius: 11px; color: var(--navy); background: white; font-size: 22px; cursor: pointer; }
.editor-section { padding: 21px 0; border-bottom: 1px solid #edf0eb; }
.editor-section h3 { margin: 0; font-size: 12px; }
.editor-finance { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 12px 14px; border-radius: 10px; color: #5f6d5b; background: #eef3eb; font-size: 10px; }
.editor-finance strong { font-size: 15px; }
.editor-comment { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 9px; font-weight: 650; }
.editor-comment textarea { width: 100%; padding: 10px; resize: vertical; border: 1px solid #e1e5df; border-radius: 9px; color: var(--navy); background: #fbfcfa; font: inherit; font-size: 10px; }
.editor-buttons { position: sticky; bottom: -26px; display: flex; justify-content: flex-end; gap: 8px; margin: 0 -28px -26px; padding: 18px 28px 24px; border-top: 1px solid #e6e9e3; background: rgba(255,253,250,.96); backdrop-filter: blur(10px); }
.danger-button { margin-right: auto; padding: 9px 12px; border: 1px solid #ead8d2; border-radius: 10px; color: #a35f4c; background: #fff6f2; font-size: 9px; font-weight: 700; cursor: pointer; }

/* Products directory */
.products-header > div:first-child > small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.products-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 28px 0 18px; }
.products-stats article { display: flex; align-items: flex-start; gap: 13px; padding: 19px; border: 1px solid rgba(52,65,92,.07); border-radius: 16px; background: white; box-shadow: 0 5px 24px rgba(52,65,92,.035); }
.products-stats article > span { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; color: #64745f; background: var(--sage-light); font-size: 16px; }
.products-stats p { margin: 0 0 6px; color: var(--muted); font-size: 10px; }
.products-stats strong { display: block; font-size: 20px; }
.products-stats small { display: block; margin-top: 5px; color: #929599; font-size: 8px; }
.products-panel { padding: 0 0 25px; overflow: hidden; }
.products-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 23px 25px 15px; }
.products-toolbar h2 { margin: 0; font-size: 18px; }
.products-actions { display: flex; gap: 8px; }
.products-filters { display: grid; grid-template-columns: minmax(260px,1fr) 180px 180px; gap: 10px; padding: 0 25px 18px; border-bottom: 1px solid #edf0ed; }
.products-filters select { min-height: 40px; padding: 0 10px; border: 1px solid #e1e5df; border-radius: 10px; color: var(--muted); background: #fbfcfa; font: inherit; font-size: 10px; }
.product-admin-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; padding: 21px 25px 0; }
.product-admin-card { min-width: 0; overflow: hidden; border: 1px solid #e7eae4; border-radius: 15px; background: #fffdfa; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.product-admin-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(52,65,92,.08); }
.product-admin-photo { position: relative; height: 185px; overflow: hidden; background: #edf0eb; }
.product-admin-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-admin-photo em { position: absolute; left: 10px; top: 10px; padding: 6px 8px; border-radius: 8px; font-size: 8px; font-style: normal; font-weight: 750; }
.product-admin-photo em.published { color: #587355; background: rgba(229,238,225,.94); }
.product-admin-photo em.draft { color: #806737; background: rgba(250,240,212,.94); }
.product-admin-body { padding: 14px; }
.product-admin-body > p { margin: 0 0 6px; overflow: hidden; color: var(--sage); font-size: 8px; font-weight: 750; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.product-admin-body h3 { margin: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.product-admin-body > small { display: block; margin-top: 6px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.product-admin-money { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 14px; padding: 11px 0; border-top: 1px solid #edf0eb; border-bottom: 1px solid #edf0eb; }
.product-admin-money span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.product-admin-money small { overflow: hidden; color: #989b9e; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.product-admin-money b { font-size: 10px; }
.product-admin-buttons { display: flex; justify-content: space-between; gap: 7px; margin-top: 12px; }
.product-admin-buttons button { min-width: 0; padding-inline: 9px; font-size: 8px; cursor: pointer; }
.product-edit { border: 0; color: var(--navy); background: transparent; font-weight: 750; }
.product-editor { width: min(680px,100%); }
.product-photo-section > small { display: block; margin-top: 9px; color: var(--muted); font-size: 8px; }
.product-photo-editor { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
#product-photo-preview { width: 116px; height: 88px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border: 1px dashed #cbd2c7; border-radius: 12px; color: #969b96; background: #f5f7f3; font-size: 9px; }
#product-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.product-photo-editor .soft-button { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.publish-switch { display: flex; align-items: center; gap: 9px; margin-top: 14px; color: #5e6e5b; font-size: 10px; font-weight: 650; }
.publish-switch input { width: 17px; height: 17px; accent-color: var(--sage); }

/* Materials and warehouse */
.materials-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 28px 0 18px; }
.materials-stats article { display: flex; align-items: flex-start; gap: 13px; padding: 19px; border: 1px solid rgba(52,65,92,.07); border-radius: 16px; background: white; box-shadow: 0 5px 24px rgba(52,65,92,.035); }
.materials-stats article > span { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; color: #657861; background: #e8efe5; font-size: 16px; }
.materials-stats p { margin: 0 0 6px; color: var(--muted); font-size: 10px; }
.materials-stats strong { display: block; font-size: 20px; }
.materials-stats small { display: block; margin-top: 5px; overflow: hidden; color: #929599; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.materials-catalog-panel { padding: 0 0 24px; overflow: hidden; }
.materials-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 23px 25px 15px; }
.materials-toolbar h2 { margin: 0; font-size: 18px; }
.materials-filters { display: grid; grid-template-columns: minmax(260px,1fr) 180px 180px; gap: 10px; padding: 0 25px 18px; border-bottom: 1px solid #edf0ed; }
.materials-filters select { min-height: 40px; padding: 0 10px; border: 1px solid #e1e5df; border-radius: 10px; color: var(--muted); background: #fbfcfa; font: inherit; font-size: 10px; }
.material-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 20px 25px 0; }
.material-card { min-width: 0; padding: 17px; border: 1px solid #e5e9e2; border-radius: 15px; background: #fffdfa; transition: transform .18s ease, box-shadow .18s ease; }
.material-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(52,65,92,.07); }
.material-card-top { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 11px; }
.spool-color { position: relative; width: 42px; height: 42px; border: 7px solid rgba(255,255,255,.62); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(31,42,68,.08), 0 2px 8px rgba(52,65,92,.09); }
.spool-color::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fffdfa; box-shadow: inset 0 0 0 1px rgba(31,42,68,.08); }
.material-card-top p { margin: 0 0 4px; color: var(--sage); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.material-card-top h3 { margin: 0; font-size: 14px; }
.material-card-top small { display: block; margin-top: 4px; color: #93979a; font-size: 8px; }
.material-card-top em { align-self: start; padding: 6px 8px; border-radius: 8px; font-size: 8px; font-style: normal; font-weight: 750; }
.material-card-top em.ok { color: #587355; background: #e5eee1; }
.material-card-top em.low { color: #82631b; background: #f8edc8; }
.material-card-top em.empty { color: #8a6e67; background: #eee9e7; }
.stock-meter { margin-top: 17px; }
.stock-meter i { display: block; height: 8px; overflow: hidden; border-radius: 6px; background: #edf0eb; }
.stock-meter i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#9bae9a,#bccab8); }
.stock-meter p { display: flex; justify-content: space-between; align-items: baseline; margin: 7px 0 0; font-size: 9px; }
.stock-meter p strong { font-size: 12px; }
.stock-meter p span { color: #96999d; }
.material-card-money { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 14px; padding: 12px 0; border-top: 1px solid #edf0eb; border-bottom: 1px solid #edf0eb; }
.material-card-money span { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.material-card-money small { overflow: hidden; color: #96999d; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.material-card-money b { font-size: 10px; }
.material-card .product-admin-buttons .material-edit { padding: 8px 3px; border: 0; color: var(--navy); background: transparent; font-size: 9px; font-weight: 750; cursor: pointer; }
.material-movements-panel { margin-top: 18px; }
.movement-table { margin-top: 18px; overflow-x: auto; }
.movement-head, .movement-row { display: grid; grid-template-columns: .7fr 1.4fr .75fr .75fr 1.35fr .65fr; align-items: center; gap: 12px; min-width: 840px; }
.movement-head { min-height: 34px; padding: 0 12px; color: #989b9e; font-size: 8px; font-weight: 750; text-transform: uppercase; }
.movement-row { min-height: 54px; padding: 0 12px; border-top: 1px solid #edf0eb; font-size: 9px; }
.movement-row > span { color: #737a7f; }
.movement-row em { justify-self: start; padding: 5px 8px; border-radius: 8px; font-size: 8px; font-style: normal; font-weight: 750; }
.movement-row em.in { color: #587355; background: #e5eee1; }
.movement-row em.out { color: #96593f; background: #fbe9df; }
.movement-row em.adjust { color: #596b85; background: #e8edf3; }
.movement-hint { margin: 13px 0 0; padding: 10px 12px; border-radius: 9px; color: #70786e; background: #f4f7f1; font-size: 9px; line-height: 1.5; }


@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .site-header { height: 86px; }
  .brand { margin-right: auto; }
  .menu-button { display: block; }
  .mobile-nav { position: fixed; z-index: 19; top: 86px; left: 0; right: 0; display: flex; flex-direction: column; gap: 4px; padding: 16px 22px 22px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 18px 35px rgba(31,42,68,.1); transform: translateY(-140%); transition: transform .25s ease; }
  .mobile-nav.open { transform: translateY(0); }
  .mobile-nav a { padding: 12px; border-radius: 10px; color: var(--ink); font-weight: 650; }
  .hero { grid-template-columns: 1fr 1fr; padding-inline: 5vw; }
  .hero h1 { font-size: clamp(50px, 6.8vw, 74px); }
  .photo-card { height: 450px; }
  .feature-strip { grid-template-columns: repeat(3, 1fr); }
  .hand-note { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .story-section { gap: 40px; }
  footer { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .workspace-shell { grid-template-columns: 78px 1fr; }
  .workspace-logo span, .workspace-sidebar nav a:not(.active) b, .workspace-sidebar nav a { font-size: 0; }
  .workspace-sidebar nav a i, .sidebar-bottom a i { width: 100%; font-size: 18px; }
  .workspace-logo { justify-content: center; padding-inline: 0; }
  .workspace-logo img { width: 46px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-summary { grid-template-columns: repeat(2,1fr); }
  .orders-stats { grid-template-columns: repeat(2,1fr); }
  .products-stats { grid-template-columns: repeat(2,1fr); }
  .materials-stats { grid-template-columns: repeat(2,1fr); }
  .product-admin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .material-card-grid { grid-template-columns: 1fr; }
  .calculator-layout { grid-template-columns: 1fr; }
  .calculation-card { position: static; }
}

@media (max-width: 760px) {
  .site-header { padding: 0 20px; }
  .brand { min-width: 0; }
  .brand-mark { width: 53px; height: 53px; border-radius: 16px; }
  .brand-copy strong { font-size: 18px; }
  .brand-copy small { font-size: 11px; margin-top: 7px; }
  .cart-button { display: grid; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 56px 22px 65px; }
  .hero h1 { font-size: clamp(48px, 14vw, 66px); }
  .hero-lead { font-size: 18px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 15px; }
  .primary-button { width: 100%; justify-content: center; }
  .hero-visual { min-height: 390px; }
  .photo-card { height: 380px; border-radius: 34px 14px 34px 14px; }
  .floating-card-top { right: -4px; top: -16px; }
  .floating-card-bottom { left: -2px; bottom: -18px; }
  .feature-strip { grid-template-columns: 1fr; padding: 22px; }
  .feature-strip article { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-strip article:last-of-type { border-bottom: 0; }
  .catalog-intro { padding: 76px 22px 96px; }
  .section-heading-row { align-items: flex-start; flex-direction: column; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image { height: 420px; }
  .story-section { grid-template-columns: 1fr; padding: 70px 22px; }
  .story-card { padding: 30px 24px; }
  .order-section { align-items: flex-start; flex-direction: column; padding: 68px 22px; }
  .order-button { width: 100%; }
  footer { grid-template-columns: 1fr 1fr; padding: 50px 22px 28px; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 18px; }
  .cart-drawer { padding: 22px; }
  .workspace-shell { display: block; }
  .workspace-sidebar { position: static; width: 100%; height: auto; padding: 15px 18px; flex-direction: row; align-items: center; }
  .workspace-logo { border: 0; padding: 0; }
  .workspace-logo span { display: none; }
  .workspace-sidebar nav { margin: 0 0 0 auto; flex-direction: row; }
  .workspace-sidebar nav a { display: none; }
  .workspace-sidebar nav a.active { display: flex; width: 46px; padding: 0; box-shadow: none; }
  .sidebar-bottom { display: none; }
  .workspace-main { padding: 25px 16px 40px; }
  .workspace-header { align-items: flex-start; }
  .workspace-header h1 { font-size: 23px; }
  .workspace-user > div, .workspace-user button { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats-grid article { padding: 15px; }
  .stat-icon { width: 35px; height: 35px; flex-basis: 35px; }
  .stats-grid strong { font-size: 19px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .table-head { display: none; }
  .table-row { grid-template-columns: .7fr 1fr 1fr; padding-block: 10px; }
  .table-row span:nth-of-type(2), .table-row span:nth-of-type(3) { display: none; }
  .calculator-fields { grid-template-columns: 1fr; }
  .pricing-tabs { width: 100%; overflow-x: auto; }
  .pricing-tabs button { min-width: 90px; padding-inline: 12px; }
  .pricing-summary, .scenario-grid, .two-panel-grid { grid-template-columns: 1fr; }
  .form-grid, .order-basics { grid-template-columns: 1fr; }
  .filament-row, .filament-labels { grid-template-columns: 1.15fr .75fr .6fr 35px; }
  .planfact-table > div { grid-template-columns: 1fr .7fr .7fr; }
  .planfact-table > div > :last-child { display: none; }
  .orders-stats { grid-template-columns: 1fr 1fr; }
  .orders-filters { grid-template-columns: 1fr; padding-inline: 16px; }
  .orders-toolbar { align-items: flex-start; padding-inline: 16px; }
  .orders-actions { flex-direction: column-reverse; }
  .products-filters { grid-template-columns: 1fr; padding-inline: 16px; }
  .products-toolbar { align-items: flex-start; padding-inline: 16px; }
  .products-actions { flex-direction: column-reverse; }
  .products-stats { grid-template-columns: 1fr 1fr; }
  .materials-stats { grid-template-columns: 1fr 1fr; }
  .product-admin-grid { grid-template-columns: 1fr; padding-inline: 16px; }
  .product-admin-photo { height: 250px; }
  .materials-filters { grid-template-columns: 1fr; padding-inline: 16px; }
  .materials-toolbar { align-items: flex-start; padding-inline: 16px; }
  .materials-toolbar .products-actions { flex-direction: column-reverse; }
  .material-card-grid { padding-inline: 16px; }
  .order-editor { padding-inline: 18px; }
  .editor-buttons { margin-inline: -18px; padding-inline: 18px; }
}
