:root{color-scheme:light;--paper:#f8f6f0;--white:#fffdf9;--ink:#261b1a;--muted:#635352;--wine:#602332;--dark:#35131b;--line:#ded5cd;--gold:#d3a574;--focus:#9d4e16;--radius:14px;--heading:Georgia,"Noto Serif Armenian",Sylfaen,serif;--body:system-ui,"Noto Sans Armenian",Sylfaen,sans-serif}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.55 var(--body)}
body>main{min-height:calc(100svh - 174px)}
a{color:var(--wine);text-underline-offset:.2em}
button,input,select{font:inherit;color:inherit}
button,select{cursor:pointer}
img{display:block;width:100%;height:100%;object-fit:cover}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
[hidden]{display:none!important}
.wrap{width:min(calc(100% - 64px),1200px);margin-inline:auto}
.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip:focus{position:absolute;z-index:2;top:10px;left:10px;background:var(--white);padding:10px}
.site-header{background:var(--white);border-bottom:1px solid var(--line)}
.nav-wrap{min-height:80px;display:flex;align-items:center;justify-content:space-between;gap:22px}
.brand{display:inline-flex;align-items:center;gap:9px;flex:none;text-decoration:none}
.brand small{color:var(--wine);font-size:.65rem;font-weight:800;letter-spacing:.08em}
/* Frame the official JPEG around the artwork inside its white margins. */
.brand-logo{position:relative;display:block;width:clamp(118px,12vw,145px);aspect-ratio:920/450;overflow:hidden;mix-blend-mode:multiply}
.brand-logo img{position:absolute;left:-2.17%;top:-38.67%;width:104.35%;height:auto}
nav,.nav-end{display:flex;align-items:center;gap:23px}
nav a{color:var(--muted);text-decoration:none;font-size:.9rem;font-weight:650}
nav a[aria-current=page]{color:var(--wine);text-decoration:underline;text-underline-offset:6px}
#language{width:auto;background:none;padding:8px;border:0;font-size:.85rem;font-weight:750}
.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:46px;padding:10px 18px;border:1px solid transparent;border-radius:8px;background:var(--wine);color:white;font-size:.92rem;line-height:1.3;font-weight:730;text-decoration:none;text-align:center}
.button:hover{background:#4d1a27}.button.secondary{background:transparent;border-color:#a88e89;color:var(--wine)}
.button.secondary:hover{background:#f4ece7}.button.light{background:#f1d3aa;color:var(--dark)}
.button.light:hover{background:#ffe4bb}.button.ghost{background:transparent;border-color:#a86d75;color:#fff8e9}.button.ghost:hover{background:#612933}
.button.small{min-height:40px;padding:8px 13px}.button:disabled{opacity:.6;cursor:wait}
.hero{display:grid;grid-template-columns:1fr 1fr;margin-top:30px;min-height:465px;background:var(--dark);border-radius:20px;overflow:hidden;color:#fffbf3}
.hero-copy{padding:clamp(28px,4.6vw,72px);align-self:center}
.hero-media{background:linear-gradient(145deg,#653644,#3a141b 54%,#87563a);height:100%;min-width:0;min-height:260px}
.hero-media img{object-position:56% 51%}
.eyebrow{margin:0 0 15px;color:var(--wine);font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;font-weight:780}
.hero .eyebrow{color:#f0be87}.hero .intro{color:#f1dfe0}
h1,h2,h3,p{margin-top:0}h1,h2{font-family:var(--heading);font-weight:500;letter-spacing:-.038em;line-height:1.08}
h1{font-size:clamp(2.5rem,5.1vw,4.5rem);margin-bottom:17px}h2{font-size:clamp(2rem,3.5vw,3rem);margin-bottom:13px}h3{font-size:1.08rem}
.intro{max-width:58ch;color:var(--muted);margin-bottom:23px}
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:20px}
.workflow{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;padding:23px 0 25px;margin:19px auto 58px;border-bottom:1px solid var(--line)}
.workflow article{padding:0 20px;border-right:1px solid var(--line)}.workflow article:first-child{padding-left:0}.workflow article:last-child{border:0}
.workflow h3{margin-bottom:4px;color:var(--dark)}.workflow p{margin:0;color:var(--muted);font-size:.91rem}
.section{padding-bottom:68px}.section-title{padding-top:43px;margin-bottom:25px}.section-title>.intro{margin-bottom:0}
.panel{border-radius:var(--radius);border:1px solid var(--line);background:var(--white);padding:clamp(20px,4vw,38px)}
.registration{display:grid;grid-template-columns:1.7fr 1fr;gap:25px;align-items:start}
.sidebar{background:#ede4d9}.sidebar h2{font-size:1.8rem}.sidebar p:last-child{margin-bottom:0}
fieldset{border:0;padding:0;margin:0 0 24px;min-width:0}fieldset+fieldset{border-top:1px solid var(--line);padding-top:18px}
legend{font-weight:800;font-size:1.12rem;padding:0;margin-bottom:10px}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.field{display:grid;gap:5px;min-width:0;font-size:.91rem;font-weight:700}.wide{grid-column:1/-1}
input:not([type=checkbox]),select{border:1px solid #baaca5;border-radius:8px;padding:9px 11px;min-height:44px;background:var(--white);width:100%}
input[type=file]{max-width:100%;font-size:.86rem}.field small,.hint{font-size:.86rem;color:var(--muted);font-weight:400}
.narrow{max-width:560px}.notice{background:#f0e5df;color:#542331;border-radius:8px;padding:11px 14px;margin:13px 0}
.error{background:#f5e0df;color:#731c24}.success{background:#e4ebdf;color:#24432c}
.toolbar{display:grid;grid-template-columns:minmax(170px,2fr) minmax(150px,1fr);gap:14px;margin:20px 0}
.products{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}
.product{min-height:174px;padding:20px;display:flex;flex-direction:column}.product :is(h3,h4,h5){margin:11px 0 19px}.product p:last-child{margin:auto 0 0}.product .eyebrow{margin-bottom:0}
.price{color:var(--wine);font-weight:800}.lock{font-size:.86rem;color:var(--muted)}
.previous-price{font-weight:500;color:var(--muted);margin-inline-end:.35em}
.volume-offer{color:var(--wine);font-weight:700;font-size:.9rem}
.admin-row{margin-top:12px}.admin-row h3{margin-bottom:3px}.admin-top{display:flex;justify-content:space-between;align-items:start;gap:12px}.admin-row summary{cursor:pointer;font-weight:700;margin-top:12px}.admin-row details p{margin:8px 0}
.badge{display:inline-flex;align-items:center;border-radius:30px;padding:4px 10px;background:#ede3db;color:#52232c;font-size:.76rem;font-weight:750}.badge.approved{background:#e0eddf;color:#274c30}
.admin-actions{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin-top:12px}.admin-actions .field{max-width:160px}
.site-footer{border-top:1px solid var(--line);background:var(--white)}
.footer-wrap{padding:25px 0;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:.88rem;color:var(--muted)}
.footer-wrap p{margin:0}
@media(max-width:880px){.wrap{width:min(calc(100% - 36px),1200px)}.hero-copy{padding:30px}.products{grid-template-columns:repeat(2,1fr)}.registration{grid-template-columns:minmax(0,1fr)}.sidebar{grid-row:1}}
@media(max-width:650px){.nav-wrap{gap:12px;padding:12px 0;flex-wrap:wrap}.nav-wrap nav{order:3;width:100%;gap:14px;flex-wrap:wrap}.nav-end{gap:6px}.brand{gap:5px}.brand-logo{width:clamp(96px,29vw,116px)}.button.small{padding:7px 9px;font-size:.83rem}.hero{grid-template-columns:1fr;margin-top:15px}.hero-media{min-height:0;height:245px}.hero-copy{padding:31px 23px}.workflow{grid-template-columns:1fr;gap:17px;margin-bottom:38px}.workflow article,.workflow article:first-child{padding:0;border:none}.products{grid-template-columns:1fr}.product{min-height:0}.section-title{padding-top:28px}}
@media(max-width:395px){.fields,.toolbar{grid-template-columns:1fr}.wrap{width:calc(100% - 26px)}}




/* Armenian holiday table on the home page */
.hero-festive{background:linear-gradient(145deg,#f9ecd9,#edd1b7);color:#352237}
.hero-festive .hero-copy{--garland-height:clamp(76px,11.5vw,148px);position:relative;isolation:isolate;align-self:stretch;
  display:flex;flex-direction:column;justify-content:center;padding-block:calc(var(--garland-height) + 13px) clamp(36px,4vw,52px)}
.hero-festive .hero-copy::before,.hero-festive .hero-copy::after{content:"";position:absolute;z-index:-1;pointer-events:none}
.hero-festive .hero-copy::before{inset:0 0 auto;height:var(--garland-height);
  background:url("/hero-festive-garland.png") center top/100% 100% no-repeat}
.hero-festive .hero-copy::after{inset:auto 0 0;height:13px;border-block:1px solid #bb7a4b;
  background:repeating-conic-gradient(from 45deg,#9a463e 0% 25%,#e7b681 0% 50%) center/11px 11px}
.hero-festive h1{font-size:clamp(2.5rem,4.2vw,4.1rem)}
@media(max-width:650px){.hero-festive .hero-copy{--garland-height:clamp(88px,25vw,145px)}}
.hero-festive .eyebrow{color:#8b3d38}
.hero-festive .intro{color:#584454}
.hero-festive .button.light{background:#8a3046;color:#fffaf2}
.hero-festive .button.light:hover{background:#712439}
.hero-festive .button.ghost{border-color:#b28275;color:#662a3d}
.hero-festive .button.ghost:hover{background:#f5d9c7}
.hero-media.festive-media{min-height:0;height:auto;aspect-ratio:1;background:#ad7455}
.hero-media .festive-art{display:block;width:100%;height:100%;object-fit:cover;object-position:center}

/* Customer-facing information pages */
.nav-wrap #nav{flex-wrap:wrap;column-gap:clamp(12px,1.65vw,23px);row-gap:8px}
.site-footer-links{flex-wrap:wrap;gap:7px 15px}
.footer-wrap .footer-preview{margin-top:5px}
.home-departments{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr));gap:13px}
.home-department{display:flex;flex-direction:column;justify-content:space-between;min-width:0;overflow:hidden;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);text-decoration:none;font-weight:730}
.home-department:hover{border-color:var(--wine);background:#f5ebe5}
.home-department-photo{display:grid;place-items:center;height:128px;padding:10px;background:#fff;border-bottom:1px solid var(--line)}
.home-department-photo img{width:100%;height:108px;object-fit:contain}
.home-department>span{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:60px;padding:12px 15px;line-height:1.25}
.site-document{max-width:865px}
.site-prose h2{font-size:clamp(1.22rem,2.3vw,1.55rem);letter-spacing:-.02em}
.site-prose section+section{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.site-prose section p:last-child,.site-prose>p:last-child{margin-bottom:0}
.site-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.site-prose address{font-style:normal}
.site-details,.site-hours{margin:19px 0 0}
.site-details div,.site-hours div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;padding:9px 0;border-top:1px solid var(--line)}
.site-details dd,.site-hours dd{margin:0;overflow-wrap:anywhere}
.site-cookie-table{overflow:auto;margin-bottom:18px}
.site-cookie-table table{width:100%;border-collapse:collapse;text-align:left}
.site-cookie-table th,.site-cookie-table td{padding:9px;border-bottom:1px solid var(--line);vertical-align:top}
@media(max-width:650px){.site-contact-grid{grid-template-columns:1fr}}

/* Catalogue and product administration */
.catalogue-toolbar{grid-template-columns:minmax(175px,1.5fr) repeat(2,minmax(140px,1fr))}
.catalogue-toolbar select:disabled{background:#efeae4;color:var(--muted)}
.catalogue-photo{display:grid;grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center;flex:none;width:100%;height:195px;padding:9px;overflow:hidden;background:#fff;color:var(--muted);text-decoration:none;text-align:center}
.catalogue-photo img{width:100%;height:100%;min-width:0;min-height:0;object-fit:contain}
.thumb img,.photo-strip img{max-width:100%;object-fit:contain}
.panel.product{padding:0;overflow:hidden;border-radius:12px;min-width:0}
.product-copy{display:flex;flex-direction:column;align-items:flex-start;flex:1;padding:16px 18px 18px;border-top:1px solid #ede7e1}
.product-copy .eyebrow{line-height:1.4;margin:0}.product :is(h3,h4,h5){margin:9px 0 15px}.product :is(h3,h4,h5) a{color:var(--ink);text-decoration:none}
.product :is(h3,h4) a:hover{text-decoration:underline}.product-copy .price,.product-copy .lock{margin:auto 0 0}
.product-copy .carton-count,.product-copy .badge{margin:8px 0 0}
.pager,.admin-navigation{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.pager{justify-content:center;margin-top:20px}.pager:empty{display:none}.pager button:disabled{cursor:default}
.admin-navigation{margin:0 0 17px}.admin-navigation a.button[aria-current=page]{background:var(--wine);color:white;text-decoration:none}
.catalogue-brand-order{margin:0 0 12px}
.catalogue-brand-order summary{cursor:pointer;font-weight:700}
.catalogue-brand-order ol{max-width:36rem;padding-inline-start:2rem;margin-block:12px}
.catalogue-brand-order li{padding:5px 0;border-bottom:1px solid var(--line)}
.catalogue-brand-order li > div{display:inline-flex;gap:6px;margin-inline-start:8px}
.admin-product-results{display:grid;gap:8px}
.admin-product-row{display:grid;grid-template-columns:58px minmax(0,1fr) 130px minmax(0,min(40%,28rem));grid-template-areas:"photo label meta controls";align-items:center;gap:14px;padding:10px 14px;background:var(--white);border:1px solid var(--line);border-radius:10px}
.admin-product-row .hint,.admin-product-row h3{margin:0}.admin-product-row h3{font-size:1rem;overflow-wrap:anywhere}
.admin-product-row .thumb{grid-area:photo;width:58px;height:58px;display:grid;place-items:center;background:white;border-radius:6px}
.admin-product-label{grid-area:label}
.admin-product-controls{grid-area:controls;display:flex;flex-wrap:wrap;gap:7px}
.admin-product-meta{grid-area:meta;display:grid;gap:5px;justify-items:start;font-size:.85rem;color:var(--muted)}
@media(max-width:1040px){.admin-product-row{grid-template-columns:58px minmax(0,1fr) 130px;grid-template-areas:"photo label meta" ". controls controls";row-gap:8px}}
.news-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.news-products{max-height:30rem;overflow:auto;padding-inline-end:8px}
.news-product{margin:0 0 10px;padding:9px 12px}
.news-product legend{font-size:.95rem}
.news-product .actions{margin:0;gap:8px 14px}
.news-mail{border:1px solid var(--line);background:var(--white);border-radius:10px;padding:16px;margin:0 0 16px}
.news-preview-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin:12px 0}
.news-preview-heading p,.news-history-row p{margin:0}
.news-history-row{padding-block:10px;border-top:1px solid var(--line)}
.news-history-row h3{margin:0 0 4px}
#news-history,#customer-news{margin-top:16px}
@media(max-width:850px){.news-layout{grid-template-columns:1fr}}
.product-editor,.product-detail{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:20px;align-items:start}
.product-detail{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}
.product-detail h1{font-size:clamp(1.4rem,2.6vw,2.25rem);line-height:1.16;overflow-wrap:anywhere}
.product-detail .price{font-size:clamp(1.15rem,2vw,1.5rem);line-height:1.3}
.product-detail .price small{font-size:.85rem}
.product-editor{grid-template-columns:minmax(0,1fr)}
.product-photo-selection{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,150px));gap:12px;margin:0 0 12px}
.product-photo-selection label{display:grid;gap:5px;font-size:.86rem}
.product-photo-selection .catalogue-photo{height:105px;border:1px solid var(--line);border-radius:6px}
.detail-photo{height:clamp(240px,39vw,440px);border:1px solid var(--line);border-radius:8px}
.photo-strip{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.photo-strip button{width:66px;height:66px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:4px}
.photo-strip button[aria-pressed=true]{border:2px solid var(--wine)}
.product-specs{display:grid;grid-template-columns:auto 1fr;gap:5px 17px;border-top:1px solid var(--line);padding-top:16px}
.product-specs dd{margin:0;font-weight:700}
@media(max-width:720px){.catalogue-toolbar{grid-template-columns:1fr 1fr}.catalogue-toolbar label:first-child{grid-column:1/-1}.product-editor,.product-detail{grid-template-columns:1fr}}
@media(max-width:540px){.admin-product-row{grid-template-columns:47px minmax(0,1fr);grid-template-areas:"photo label" ". meta" "controls controls";gap:8px;padding:9px}.admin-product-row .thumb{width:47px;height:47px}.product-detail .detail-photo{height:255px}}
@media(max-width:390px){.catalogue-toolbar{grid-template-columns:1fr}.catalogue-toolbar label:first-child{grid-column:auto}}

/* Cart and preparation slips */
#add-cart-form .field{max-width:150px}
#add-cart-form .actions{align-items:end}
.order-lines{display:grid;gap:10px}
.order-line{display:grid;grid-template-columns:80px minmax(0,1fr) minmax(112px,150px) minmax(110px,190px);align-items:center;gap:15px;padding:14px 16px}
.order-photo{display:grid;place-items:center;width:80px;height:80px;padding:4px;background:#fff;border:1px solid #eee7e0;border-radius:7px;text-align:center}
.order-photo img{max-width:100%;object-fit:contain}
.order-line h3,.order-list-row h3{margin:0 0 3px;overflow-wrap:anywhere}
.order-line-name p,.order-list-row p{margin:0}
.order-line-numbers,.order-line-actions{display:grid;gap:5px;justify-items:start}
.order-line-numbers span,.check-line{font-size:.82rem;color:var(--muted)}
.check-line{display:flex;align-items:start;gap:7px;line-height:1.35}
.check-line input{flex:0 0 auto}
.cart-summary,.order-header,.order-totals,.withdrawn-section{margin-top:14px}
#cart-summary>p,.order-header p{margin:0}.order-header h2{margin:0 0 6px}
.order-totals,.order-header,.order-list-row{display:flex;align-items:center;justify-content:space-between;gap:15px}
.order-totals{margin-bottom:15px;padding:16px 20px}
.order-totals strong{color:var(--wine)}
.order-list-row{padding:16px 20px;margin-bottom:9px}.order-list-summary{display:grid;gap:2px;white-space:nowrap}
.withdrawn-section{border-top:1px solid var(--line);padding-top:14px}
.removed-order-line{background:#f4efea}
@media(max-width:850px){.site-header nav{flex-wrap:wrap;gap:10px 15px}.order-line{grid-template-columns:65px minmax(0,1fr) minmax(95px,130px);gap:10px}.order-photo{width:65px;height:65px}.order-line-actions{grid-column:2/-1;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}}
@media(max-width:560px){.order-line{grid-template-columns:55px minmax(0,1fr);padding:10px;align-items:start}.order-photo{width:55px;height:58px}.order-line>.field,.order-line-numbers{grid-column:2}.order-line>.field{max-width:125px}.order-line-actions{justify-content:flex-start}.order-list-row,.order-header,.order-totals{flex-wrap:wrap}.order-totals{gap:6px 12px}}
@media print{
  @page{margin:12mm}
  body{background:white;color:#111}
  body>main{min-height:0}
  .site-header,.site-footer,.skip,.no-print,.admin-navigation{display:none!important}
  .wrap{width:100%}
  .order-page .section-title{padding-top:0;margin-bottom:10px}
  .order-page h1{font-size:24pt}
  .order-page h2{font-size:17pt}
  .order-page .panel{background:white;border-color:#aaa}
  .order-line{grid-template-columns:64px minmax(0,1fr) 112px;gap:10px;break-inside:avoid}
  .order-photo{width:64px;height:64px}
  .order-totals{break-inside:avoid}
}

/* Invoice editor */
.invoice-page fieldset.panel{margin:18px 0;padding:18px 21px}
.invoice-page fieldset.panel legend{margin:0 0 5px;padding:0 8px;color:var(--wine)}
.invoice-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.invoice-page textarea{width:100%;border:1px solid #baaca5;border-radius:8px;padding:8px 11px;background:var(--white);font:inherit;font-weight:400;resize:vertical}
.invoice-edit-line{display:grid;grid-template-columns:minmax(150px,2.6fr) minmax(74px,0.9fr) minmax(80px,1fr) minmax(90px,1fr) minmax(75px,auto) auto;gap:9px;align-items:end;padding:12px 0;border-top:1px solid var(--line)}
.invoice-packing{grid-column:1/-1;display:block;margin:0;line-height:1.35}
.invoice-edit-line output{padding-bottom:10px;white-space:nowrap;color:var(--wine);font-weight:700}
.bill-rates{margin:0 0 12px}
.invoice-totals{margin:12px 0}.invoice-totals dl{margin:0 0 0 auto;max-width:410px}
.invoice-totals dl div{display:flex;justify-content:space-between;gap:9px;padding:4px 0}.invoice-totals dt,.invoice-totals dd{margin:0}
.invoice-totals dl div:last-child{font-weight:800;border-top:1px solid var(--line);color:var(--wine);margin-top:7px;padding-top:10px}
.invoice-panels section.panel,.bill-issued-lines{margin-top:14px}
.bill-issued-line{display:grid;grid-template-columns:2fr 1fr .7fr .8fr;gap:10px;align-items:center;border-top:1px solid var(--line);padding:8px 0}
.bill-file-actions a[aria-disabled=true]{opacity:.55;cursor:default}
.bill-legal{margin:12px 0 0}
@media(max-width:900px){.invoice-edit-line{grid-template-columns:repeat(3,minmax(0,1fr))}.invoice-edit-line>.field:first-child{grid-column:1/-1}.invoice-edit-line output{grid-column:1/3}}
@media(max-width:650px){.invoice-panels{grid-template-columns:1fr;gap:0}.invoice-edit-line{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-edit-line output{grid-column:auto}.invoice-edit-line button{grid-column:1/-1;justify-self:start}.bill-issued-line{grid-template-columns:1fr 1fr}.bill-issued-line span:first-child{grid-column:1/-1}.invoice-page fieldset.panel{padding:12px}}

/* Credit note forms */
.credit-history{margin-top:14px}
.credit-history h3,.credit-history p,.credit-line p{margin:0 0 5px}
.credit-history ul{padding-left:20px}
.credit-mode{display:flex;flex-wrap:wrap;gap:10px 26px;margin-bottom:14px}
.credit-mode label{display:flex;align-items:center;gap:7px}
.credit-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(126px,175px);align-items:center;gap:10px 20px;padding:10px 0;border-top:1px solid var(--line)}
.credit-line strong,.credit-reason{overflow-wrap:anywhere}
.credit-reason{white-space:pre-wrap}
@media(max-width:490px){.credit-line{grid-template-columns:1fr}.credit-line .field{max-width:170px}}

.pricing-rules{margin-top:25px}
.pricing-rule{display:grid;grid-template-columns:minmax(0,1fr) minmax(108px,150px) auto;gap:14px;align-items:end;padding:15px 18px;margin-bottom:9px}
.pricing-rule h3,.pricing-rule p,.customer-markup{margin:0}
.pricing-rule .actions{margin:0}
.customer-markup{margin:12px 0 0}
.customer-markup-input{max-width:240px}
.customer-markup-input .hint{margin:5px 0 0}
.customer-markup-input .field{max-width:none}
@media(max-width:620px){.pricing-rule{grid-template-columns:minmax(0,1fr) minmax(108px,150px)}.pricing-rule .actions{grid-column:1/-1}}

.sales-fields{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr)) repeat(3,minmax(0,1.2fr));gap:12px;align-items:end}
.sales-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:15px 0}
.sales-metrics .panel{padding:16px 19px}.sales-metrics span{display:block;color:var(--muted);font-size:.9rem}
.sales-metrics strong{display:block;margin-top:5px;color:var(--wine);font-size:clamp(1.04rem,2.5vw,1.55rem)}
.sales-table-wrap{overflow:auto;padding:0}.sales-table-wrap table{border-collapse:collapse;min-width:610px;width:100%}
.sales-table-wrap th,.sales-table-wrap td{border-bottom:1px solid var(--line);padding:12px 15px;text-align:right;vertical-align:top}
.sales-table-wrap th:first-child{text-align:left}.sales-table-wrap small{display:block;margin-top:2px;color:var(--muted);font-weight:400}
.sales-table-wrap thead,.sales-table-wrap tfoot{background:#f4efea}.sales-table-wrap tfoot th,.sales-table-wrap tfoot td{border-bottom:none}
@media(max-width:790px){.sales-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.sales-metrics{grid-template-columns:1fr;gap:7px}.sales-metrics .panel{display:flex;align-items:center;justify-content:space-between;padding:12px 15px;gap:8px}.sales-metrics strong{margin:0}}

.online-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.45fr);align-items:start;gap:16px;padding:18px 21px;margin-bottom:10px}
.online-card h3,.online-card p{margin:0 0 3px}
.online-card>div>strong{display:block}
.online-card strong,.online-card h3{overflow-wrap:anywhere}
.online-card ul{list-style:none;padding:0;margin:0;display:grid;gap:9px}
.online-card .badge{margin-left:7px}
#online-count{font-weight:700}
@media(max-width:650px){.online-card{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}.online-client{grid-column:1/-1}}
@media(max-width:360px){.online-card{grid-template-columns:1fr}.online-client{grid-column:auto}}

.backup-list{list-style:none;margin:0;padding:0}
.backup-list li{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 0}
.backup-list li+li{border-top:1px solid var(--line)}

.client-toolbar{grid-template-columns:minmax(175px,1.5fr) repeat(2,minmax(140px,1fr))}
.client-permanent{margin-bottom:8px}
@media(max-width:680px){.client-toolbar{grid-template-columns:1fr}.client-permanent{width:100%;margin-bottom:0}}

.preparation-header{align-items:flex-start;flex-wrap:wrap;margin-bottom:14px}
.preparation-company{min-width:min(235px,100%);max-width:100%;overflow-wrap:anywhere}
.preparation-company h3{margin:0 0 5px}
.preparation-company address{font-style:normal;margin-bottom:4px}
.preparation-original{margin:12px 0}
.preparation-totals{margin:14px 0;padding:16px 20px;break-inside:avoid}
.preparation-totals h3{margin:0 0 10px}
.preparation-totals dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
.preparation-totals dt{color:var(--muted)}
.preparation-totals dd{margin:3px 0 0;font-size:1.15rem;font-weight:750;color:var(--wine)}
@media print{.preparation-header,.preparation-original{break-inside:avoid}}
.preparation-review{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px}
.preparation-review .notice{margin:0}

.catalogue-departments{display:grid;grid-template-columns:auto 1fr;align-items:start;gap:14px;padding:14px 16px;background:var(--white);border:1px solid var(--line);border-radius:12px}
.catalogue-departments>strong{padding:9px 0;color:var(--muted);font-size:.8rem;letter-spacing:.05em;white-space:nowrap;text-transform:uppercase}
.catalogue-chips{display:flex;gap:7px;flex-wrap:wrap}
.catalogue-chip{appearance:none;border:1px solid var(--line);border-radius:7px;background:#f4eeea;color:var(--wine);padding:8px 12px;min-height:38px;text-align:left;font:inherit;font-size:.87rem;font-weight:650;cursor:pointer}
.catalogue-chip:hover{border-color:var(--wine)}
.catalogue-chip[aria-pressed=true]{border-color:var(--wine);background:var(--wine);color:white}
.catalogue-heading{margin:25px 0 11px}
.catalogue-heading h2{margin:0}
.catalogue-subdepartments{padding-bottom:12px;border-bottom:1px solid var(--line)}
.catalogue-subdepartments[hidden]{display:none}
.catalogue-public-filters{grid-template-columns:minmax(0,1fr) minmax(180px,260px);margin:14px 0 8px}
.catalogue-brand-groups{display:grid;gap:24px}
.catalogue-brand-group > :is(h3,h4){display:flex;align-items:center;gap:13px;margin:0 0 12px;font-size:1.05rem}
.catalogue-brand-group > :is(h3,h4)::after{content:"";flex:1;border-bottom:1px solid var(--line)}
@media(max-width:620px){.catalogue-departments{grid-template-columns:1fr;gap:6px;padding:11px}.catalogue-departments>strong{padding:0}.catalogue-public-filters{grid-template-columns:1fr}.catalogue-heading{margin-top:18px}}

.customer-invoice-row,.active-cart{margin-top:14px}
.customer-invoice-row h3,.active-cart h3{margin:0 0 5px}
.customer-invoice-row p,.active-cart p{margin:0}
.active-cart ul{list-style:none;padding:0;margin:10px 0 0}
.active-cart li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;border-top:1px solid var(--line);padding:8px 0}
@media(max-width:530px){.active-cart li{grid-template-columns:minmax(0,1fr) auto}.active-cart li span:last-child{grid-column:1/-1}}

.catalogue-department-results{display:grid;gap:16px}
.catalogue-department-results > h3{margin:0;font-size:1.35rem}
.catalogue-department-results .product h5{font-size:1rem}

.client-toolbar{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))}
