:root{--ink:#171512;--muted:#716a61;--paper:#f5f3ef;--white:#fff;--line:#e2ddd5;--gold:#a27b48;--gold-dark:#75552e;--green:#1f7450;--red:#b34a45;--sidebar:#1b1916;--shadow:0 12px 34px rgba(42,34,25,.09)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--paper)}button,input,select{font:inherit}button,a{cursor:pointer}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Georgia,serif;letter-spacing:0}.eyebrow{margin-bottom:7px;color:var(--gold-dark);font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.brand{display:flex;align-items:center;gap:11px}.brand img{width:48px;height:48px;border-radius:5px;object-fit:cover}.brand span{display:grid}.brand strong{font-family:Georgia,serif;font-size:1.16rem}.brand small{color:var(--muted);font-size:.7rem;letter-spacing:.06em}.primary-button,.nav-cta{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 19px;border:1px solid var(--gold-dark);border-radius:4px;background:var(--gold-dark);color:#fff;font-weight:750}.text-link{border:0;background:transparent;color:var(--gold-dark);font-weight:750}.catalog-nav{position:sticky;z-index:5;top:0;display:flex;align-items:center;justify-content:space-between;padding:12px clamp(18px,5vw,72px);border-bottom:1px solid var(--line);background:rgba(245,243,239,.95);backdrop-filter:blur(12px)}.catalog-nav nav{display:flex;align-items:center;gap:25px;font-size:.88rem;font-weight:650}.catalog-hero{display:grid;grid-template-columns:1.1fr .9fr;min-height:570px;border-bottom:1px solid var(--line);background:#e9e4dc}.hero-copy{align-self:center;max-width:700px;padding:70px clamp(20px,7vw,110px)}.hero-copy h1{max-width:650px;margin-bottom:20px;font-size:clamp(3.1rem,6vw,6.3rem);font-weight:500;line-height:.98}.hero-copy>p:not(.eyebrow){max-width:560px;color:#5e574e;font-size:1.05rem;line-height:1.7}.hero-actions{display:flex;align-items:center;gap:25px;margin-top:30px}.hero-visual{position:relative;display:grid;place-items:center;min-height:450px;overflow:hidden;background:#8a704e}.hero-visual:before,.hero-visual:after{position:absolute;content:"";border:1px solid rgba(255,255,255,.25);border-radius:50%}.hero-visual:before{width:70%;aspect-ratio:1}.hero-visual:after{width:88%;aspect-ratio:1}.hero-visual img{z-index:1;width:min(54%,370px);border-radius:12px;box-shadow:0 30px 70px rgba(30,20,12,.32)}.hero-note{position:absolute;z-index:2;right:8%;bottom:9%;display:grid;padding:13px 16px;background:var(--paper);box-shadow:var(--shadow)}.hero-note span{font-size:.7rem;text-transform:uppercase}.catalog-section{padding:80px clamp(18px,5vw,72px)}.section-heading,.panel-head,.view-toolbar,.modal-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.section-heading h2,.panel h2{margin-bottom:0;font-size:clamp(1.7rem,3vw,2.6rem);font-weight:500}.section-heading>p{color:var(--muted)}.catalog-tools{display:grid;grid-template-columns:minmax(240px,1fr) 220px 190px auto;gap:10px;margin:30px 0}.catalog-tools input,.catalog-tools select,.form-grid input,.form-grid select{width:100%;height:44px;padding:0 12px;border:1px solid var(--line);border-radius:4px;background:var(--white);color:var(--ink)}.search-field{position:relative}.search-field span{position:absolute;top:10px;left:13px;font-size:1.3rem}.search-field input{padding-left:38px}.stock-toggle,.check-label{display:flex;align-items:center;gap:8px;padding:0 12px;white-space:nowrap}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.product-card{overflow:hidden;border:1px solid var(--line);background:#fff}.product-art{position:relative;display:grid;height:310px;place-items:center;background:#e7e0d7}.bottle{display:grid;width:44%;min-width:125px;aspect-ratio:.72;place-content:center;padding:15px;border:1px solid rgba(255,255,255,.55);border-radius:18px 18px 25px 25px;background:var(--bottle);color:#fff;text-align:center;box-shadow:0 24px 30px rgba(25,18,12,.22)}.bottle-cap{position:absolute;top:44px;width:19%;height:36px;border:1px solid rgba(255,255,255,.45);border-radius:4px 4px 0 0;background:#2f2b26}.bottle span{font-size:.65rem;letter-spacing:.12em;text-transform:uppercase}.bottle strong{margin:10px 0;font-family:Georgia,serif;font-size:1.14rem}.bottle small{font-size:.64rem}.product-info{padding:17px}.product-meta{display:flex;justify-content:space-between;color:var(--gold-dark);font-size:.7rem;font-weight:800;text-transform:uppercase}.product-info h3{min-height:48px;margin:10px 0 17px;font-size:1.17rem;line-height:1.25}.table-action{padding:7px 10px;border:1px solid var(--line);border-radius:3px;background:#fff;color:var(--gold-dark);font-size:.75rem;font-weight:750}.about-band{display:grid;grid-template-columns:auto 1fr 1fr;align-items:center;gap:35px;padding:55px clamp(18px,8vw,120px);background:#26221e;color:#fff}.about-band img{width:100px;border-radius:5px}.about-band h2{max-width:520px;margin:0;font-size:2.3rem;font-weight:500}.about-band>p{max-width:500px;margin:0;color:#c9c0b6;line-height:1.7}footer{display:flex;justify-content:space-between;padding:24px clamp(18px,5vw,72px);background:#171512;color:#aaa097;font-size:.75rem}dialog{width:min(720px,calc(100% - 28px));padding:0;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);box-shadow:0 30px 80px rgba(0,0,0,.25)}dialog::backdrop{background:rgba(25,20,15,.58)}.dialog-close{border:0;background:transparent;font-size:1.8rem}.detail-layout{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:28px}.detail-layout .product-art{height:390px}.detail-layout>div:last-child{align-self:center}.detail-layout h2{font-size:2.4rem;font-weight:500}.detail-layout p{color:var(--muted);line-height:1.65}.detail-price{display:grid;margin:22px 0;font-size:1.7rem;font-weight:800}.detail-price small{color:var(--muted);font-size:.8rem}.empty-state{grid-column:1/-1;padding:40px;border:1px dashed var(--line);color:var(--muted);text-align:center}

.admin-body{background:#f3f1ed}.sidebar{position:fixed;z-index:8;inset:0 auto 0 0;display:flex;width:245px;flex-direction:column;padding:20px 14px;background:var(--sidebar);color:#fff}.sidebar-brand{margin:0 7px 30px}.sidebar-brand img{width:43px;height:43px}.sidebar-brand small{color:#a99f92}.sidebar nav{display:grid;gap:5px}.side-link{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border:0;border-radius:4px;background:transparent;color:#aaa299;text-align:left;font-size:.86rem;font-weight:650}.side-link span{display:grid;width:21px;height:21px;place-items:center;font-size:1rem}.side-link:hover,.side-link.is-active{background:#332c24;color:#f0d6ae}.catalog-link{display:flex;align-items:center;gap:9px;margin-top:auto;padding:14px 12px;border-top:1px solid #38332e;color:#c6bfb6;font-size:.8rem}.admin-main{min-height:100vh;margin-left:245px;padding:0 31px 45px}.admin-header{display:flex;align-items:center;justify-content:space-between;min-height:96px;border-bottom:1px solid var(--line)}.admin-header h1{margin:0;font-size:2rem;font-weight:500}.admin-header-actions,.user-chip{display:flex;align-items:center;gap:12px}.icon-button{display:grid;width:39px;height:39px;place-items:center;border:1px solid var(--line);border-radius:4px;background:#fff;font-size:1.2rem}.user-chip{padding-left:12px;border-left:1px solid var(--line)}.user-chip>span{display:grid;width:36px;height:36px;place-items:center;border-radius:50%;background:var(--gold-dark);color:#fff;font-size:.72rem;font-weight:800}.user-chip div{display:grid}.user-chip small{color:var(--muted);font-size:.68rem}.admin-view{display:none;padding-top:25px}.admin-view.is-active{display:block}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:18px}.metrics.compact{grid-template-columns:repeat(3,1fr)}.metric,.panel{border:1px solid var(--line);border-radius:5px;background:#fff;box-shadow:0 3px 12px rgba(43,35,27,.025)}.metric{display:grid;gap:7px;padding:18px}.metric span,.metric small{color:var(--muted);font-size:.72rem}.metric strong{font-family:Georgia,serif;font-size:1.65rem;font-weight:500}.metric small{color:var(--green)}.dashboard-grid,.analysis-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:18px}.panel{min-width:0;padding:22px}.span-2{grid-column:1/-1}.panel-head{margin-bottom:19px}.panel-head h2{font-size:1.5rem}.bar-chart{display:flex;height:260px;align-items:end;gap:18px;padding-top:20px;border-bottom:1px solid var(--line)}.bar-group{position:relative;display:grid;height:100%;flex:1;align-items:end;text-align:center}.bar{width:55%;min-width:20px;margin:0 auto;background:#9c7950}.bar-value{position:absolute;top:calc(100% - var(--h));font-size:.65rem}.bar-group span{padding-top:7px;color:var(--muted);font-size:.68rem}.list-row,.rank-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.list-row:last-child,.rank-row:last-child{border-bottom:0}.list-row div,.rank-row div{display:grid;min-width:0;flex:1}.list-row strong,.rank-row strong{overflow:hidden;font-size:.8rem;text-overflow:ellipsis;white-space:nowrap}.list-row small,.rank-row small{margin-top:3px;color:var(--muted);font-size:.67rem}.color-dot{width:9px;height:30px;border-radius:2px}.list-row b,.rank-row b{font-size:.75rem}.rank-row>span{display:grid;width:25px;height:25px;place-items:center;background:#eee9e1;color:var(--gold-dark);font-size:.7rem;font-weight:800}.view-toolbar{margin-bottom:17px}.view-toolbar p{margin:0;color:var(--muted);font-size:.86rem}.table-panel{padding:0;overflow:hidden}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:.77rem}th,td{padding:13px 15px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}th{background:#faf9f7;color:var(--muted);font-size:.65rem;letter-spacing:.04em;text-transform:uppercase}td small{display:block;margin-top:3px;color:var(--muted);font-size:.65rem}.badge{display:inline-block;padding:4px 7px;border-radius:3px;font-size:.65rem;font-weight:800}.badge.success{background:#e5f3ea;color:var(--green)}.badge.warning{background:#f6eee0;color:#95621d}.stock-count{display:grid;width:28px;height:25px;place-items:center;border-radius:3px;background:#e5f3ea;color:var(--green);font-weight:800}.stock-count.low{background:#f8e6e4;color:var(--red)}.profit{color:var(--green);font-weight:800}.danger-text{color:var(--red)}.warning-text{color:#95621d}.switch{width:34px;height:19px;padding:2px;border:0;border-radius:12px;background:#c8c3bc}.switch span{display:block;width:15px;height:15px;border-radius:50%;background:#fff;transition:.2s}.switch.on{background:var(--green)}.switch.on span{transform:translateX(15px)}dialog form{padding:25px}.modal-head{margin-bottom:22px}.modal-head h2{margin:0;font-size:1.8rem;font-weight:500}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid label{display:grid;gap:7px;color:var(--muted);font-size:.72rem;font-weight:700}.form-grid .check-label{display:flex}.wide{grid-column:1/-1;width:100%;margin-top:6px}.toast{position:fixed;z-index:20;right:22px;bottom:22px;transform:translateY(30px);padding:12px 17px;border-radius:4px;background:#24201c;color:#fff;font-size:.8rem;opacity:0;transition:.25s}.toast.show{transform:translateY(0);opacity:1}
@media(max-width:1050px){.product-grid{grid-template-columns:repeat(3,1fr)}.catalog-tools{grid-template-columns:1fr 1fr}.sidebar{width:205px}.admin-main{margin-left:205px}.metrics{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.analysis-grid{grid-template-columns:1fr}.span-2{grid-column:auto}}
@media(max-width:760px){.catalog-nav nav a:not(.nav-cta){display:none}.catalog-hero{grid-template-columns:1fr}.hero-copy{padding:55px 20px}.hero-copy h1{font-size:3.5rem}.hero-visual{min-height:390px}.product-grid{grid-template-columns:repeat(2,1fr)}.product-art{height:250px}.about-band{grid-template-columns:1fr}.sidebar{position:sticky;top:0;width:100%;height:auto;padding:9px}.sidebar-brand,.catalog-link{display:none}.sidebar nav{display:flex;overflow-x:auto}.side-link{width:auto;min-width:max-content;padding:9px}.side-link span{display:none}.admin-main{margin-left:0;padding:0 13px 30px}.admin-header{min-height:82px}.admin-header .eyebrow,.user-chip div{display:none}.admin-header h1{font-size:1.55rem}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.detail-layout{grid-template-columns:1fr}.detail-layout .product-art{height:300px}}
@media(max-width:520px){.catalog-nav{padding:9px 12px}.catalog-nav .brand span{display:none}.catalog-tools{grid-template-columns:1fr}.product-grid{grid-template-columns:1fr}.hero-actions{align-items:flex-start;flex-direction:column}.metrics,.metrics.compact{grid-template-columns:1fr 1fr}.metric strong{font-size:1.25rem}.panel{padding:16px}.bar-chart{gap:4px}.bar-value{display:none}.bar-group span{font-size:.58rem}footer{display:grid;gap:7px}}

.badge.partial{background:#e8edf6;color:#49658d}.delivery-toggle{padding:5px 8px;border:1px solid #eadcc5;border-radius:3px;background:#f6eee0;color:#95621d;font-size:.65rem;font-weight:800}.delivery-toggle.delivered{border-color:#cfe6d7;background:#e5f3ea;color:var(--green)}.installments{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:15px;border:1px solid var(--line);border-radius:4px;background:#faf9f7}.installments>div{grid-column:1/-1;display:grid;gap:4px}.installments small,.form-help,.panel-note{color:var(--muted);font-size:.7rem}.form-help{margin:15px 0 0}.payment-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:18px;padding:13px;border:1px solid var(--line);background:#faf9f7}.payment-summary div{display:grid;gap:4px}.payment-summary span{color:var(--muted);font-size:.68rem}.payment-summary strong{font-size:.78rem}.panel-note{margin:0 22px 0 auto}.table-panel>.panel-head{padding:22px 22px 0}
.row-actions{display:flex;align-items:center;gap:6px}.danger-action,.danger-button{border:1px solid #e3c5c2;border-radius:3px;background:#fff;color:var(--red);font-size:.75rem;font-weight:750}.danger-action{padding:7px 10px}.danger-button{min-height:40px;padding:0 16px;background:#b34a45;color:#fff}.secondary-button{min-height:40px;padding:0 16px;border:1px solid var(--line);border-radius:3px;background:#fff;color:var(--ink);font-weight:750}.delete-dialog{padding:25px}.delete-dialog>p{margin:0;color:var(--muted);line-height:1.6}.delete-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}
.filter-bar{display:flex;align-items:end;gap:9px;margin-bottom:13px;padding:12px;border:1px solid var(--line);border-radius:4px;background:#ebe7e0}.filter-bar label{display:grid;gap:5px;min-width:175px}.filter-bar label span{color:var(--muted);font-size:.62rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.filter-bar input,.filter-bar select{height:38px;padding:0 10px;border:1px solid #d4cec5;border-radius:3px;background:#fff;color:var(--ink);font-size:.76rem}.filter-bar .filter-search{min-width:230px;flex:1}.clear-filter{height:38px;padding:0 11px;border:1px solid #d4cec5;border-radius:3px;background:#fff;color:var(--gold-dark);font-size:.7rem;font-weight:800}.filter-count{display:block;padding:12px 15px;border-bottom:1px solid var(--line);background:#faf9f7;color:var(--muted);font-size:.68rem}
.form-grid label small{color:var(--muted);font-size:.64rem;font-weight:500;line-height:1.4}
@media(max-width:760px){.filter-bar{align-items:stretch;flex-direction:column}.filter-bar label,.filter-bar .filter-search{width:100%;min-width:0}}

#metrics{grid-template-columns:repeat(3,1fr)}.analysis-metrics{grid-template-columns:repeat(3,1fr)}.financial-metric{border-top:3px solid var(--gold)}.financial-metric small{color:var(--muted)}.metric strong.negative{color:var(--red)}.finance-explainer{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-bottom:18px;border:1px solid var(--line);border-radius:5px;background:#fff}.finance-explainer div{display:grid;gap:5px;padding:15px;border-right:1px solid var(--line)}.finance-explainer div:last-child{border-right:0}.finance-explainer strong{color:var(--gold-dark);font-size:.75rem}.finance-explainer span{color:var(--muted);font-size:.68rem;line-height:1.5}
@media(max-width:1050px){#metrics,.analysis-metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.finance-explainer{grid-template-columns:1fr}.finance-explainer div{border-right:0;border-bottom:1px solid var(--line)}.finance-explainer div:last-child{border-bottom:0}}
@media(max-width:520px){#metrics,.analysis-metrics{grid-template-columns:1fr 1fr}}

.large-dialog{width:min(900px,calc(100% - 28px));max-height:92vh}.form-grid textarea{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--ink);font:inherit;resize:vertical}.image-upload input{height:auto;padding:11px}.image-preview-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.image-preview{position:relative;overflow:hidden;aspect-ratio:1;border:1px solid var(--line);border-radius:4px;background:#eee9e1}.image-preview img{width:100%;height:100%;object-fit:cover}.image-preview button{position:absolute;top:5px;right:5px;display:grid;width:26px;height:26px;place-items:center;border:0;border-radius:50%;background:rgba(25,20,15,.82);color:#fff;font-size:1rem}.image-empty{grid-column:1/-1;padding:18px;border:1px dashed var(--line);color:var(--muted);font-size:.72rem;text-align:center}.product-photo img{width:100%;height:100%;object-fit:contain;padding:18px}.product-gallery{display:grid;align-content:start;gap:10px}.gallery-main{height:440px;background:#eee9e1}.gallery-main img{width:100%;height:100%;object-fit:contain}.gallery-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.gallery-thumbs button{overflow:hidden;aspect-ratio:1;padding:2px;border:1px solid var(--line);border-radius:3px;background:#fff}.gallery-thumbs button.active{border:2px solid var(--gold-dark)}.gallery-thumbs img{width:100%;height:100%;object-fit:cover}.detail-copy{align-self:center}.detail-facts{display:grid;gap:0;margin:20px 0;border-top:1px solid var(--line)}.detail-facts div{display:grid;grid-template-columns:145px 1fr;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.detail-facts span{color:var(--muted);font-size:.67rem;text-transform:uppercase}.detail-facts strong{font-size:.78rem}
@media(max-width:760px){.image-preview-grid{grid-template-columns:repeat(3,1fr)}.gallery-main{height:320px}.detail-layout{grid-template-columns:1fr}.detail-facts div{grid-template-columns:1fr}}
@media(max-width:760px){.installments,.payment-summary{grid-template-columns:1fr}.installments>div{grid-column:auto}.panel-note{display:none}}

/* Public catalog photo gallery */
.product-art.product-photo{display:block;height:auto;overflow:hidden;aspect-ratio:4/5;background:#fff}
.product-photo img{display:block;width:100%;height:100%;padding:0;object-fit:contain;transition:opacity .2s ease,transform .35s ease}
.product-card:hover .product-photo img{transform:scale(1.015)}
.product-gallery{display:grid;min-width:0;align-content:start;gap:10px}
.gallery-main{position:relative;display:grid;overflow:hidden;width:100%;height:auto;max-height:65vh;aspect-ratio:1;place-items:center;background:transparent}
.gallery-main img{display:block;width:100%;height:100%;object-fit:contain}
.gallery-arrow{position:absolute;z-index:2;top:50%;display:grid;width:32px;height:54px;transform:translateY(-50%);place-items:center;border:1px solid rgba(117,85,46,.18);border-radius:4px;background:rgba(255,255,255,.82);color:var(--gold-dark);font-family:Arial,sans-serif;font-size:1.45rem;font-weight:400;line-height:1;opacity:.35;box-shadow:0 3px 12px rgba(35,27,19,.08);transition:opacity .2s ease,background .2s ease,transform .2s ease}
.gallery-main:hover .gallery-arrow,.gallery-arrow:focus-visible{opacity:.9}
.gallery-arrow:hover{transform:translateY(-50%) scale(1.04);background:#fff;opacity:1}
.gallery-prev{left:7px}
.gallery-next{right:7px}
.gallery-thumbs img{display:block}
@media(max-width:760px){.gallery-main{height:auto;max-height:none;aspect-ratio:1}.gallery-arrow{width:30px;height:48px;opacity:.78}}
.login-screen{position:fixed;z-index:50;inset:0;display:grid;place-items:center;padding:22px;background:linear-gradient(135deg,#161411 0%,#2f261d 48%,#8a704e 100%)}
.login-screen[hidden]{display:none}
.login-panel{display:grid;width:min(430px,100%);gap:13px;padding:34px;border:1px solid rgba(255,255,255,.12);border-radius:6px;background:#f8f6f1;box-shadow:0 28px 70px rgba(0,0,0,.3)}
.login-panel img{width:74px;height:74px;border-radius:6px;object-fit:cover}
.login-panel h2{margin:0;font-size:2.4rem;font-weight:500}
.login-panel p:not(.eyebrow){margin:0 0 8px;color:var(--muted);line-height:1.55}
.login-panel label{display:grid;gap:7px;color:var(--muted);font-size:.72rem;font-weight:750}
.login-panel input{width:100%;height:46px;padding:0 12px;border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--ink);font:inherit}

@media(max-width:520px){
  .catalog-section{padding:34px 10px}
  .section-heading{align-items:flex-start;flex-direction:column;gap:6px}
  .section-heading h2{font-size:2rem;line-height:1.05}
  .catalog-tools{gap:8px;margin:20px 0}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .product-art{height:auto;aspect-ratio:4/5}
  .bottle{width:58%;min-width:86px;padding:10px}
  .bottle-cap{top:22px;width:24%;height:28px}
  .bottle span{font-size:.54rem}
  .bottle strong{font-size:.92rem;line-height:1.05}
  .bottle small{font-size:.58rem}
  .product-info{padding:10px}
  .product-meta{gap:6px;font-size:.58rem}
  .product-info h3{min-height:52px;margin:8px 0 12px;font-size:.98rem;line-height:1.18}
}
.muted-cell{color:var(--muted);font-size:.7rem}
.payment-note-box{grid-column:1/-1}
.payment-note-box strong{display:grid;gap:2px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:.72rem;font-weight:700}
.payment-note-box small{color:var(--green)}
.product-picker{position:relative}
.product-picker input[name="productSearch"]{padding-right:36px}
.product-suggestions{display:none;position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:40;max-height:240px;overflow:auto;background:#fff;border:1px solid var(--line);box-shadow:0 18px 40px rgba(0,0,0,.16)}
.product-picker.is-open .product-suggestions{display:block}
.product-suggestions button{display:block;width:100%;border:0;border-bottom:1px solid var(--line);background:#fff;padding:12px 14px;text-align:left;font:600 14px var(--sans);color:var(--ink);cursor:pointer}
.product-suggestions button:hover,.product-suggestions button:focus{background:#f4efe7;color:var(--accent)}
.product-suggestion-empty{padding:12px 14px;color:var(--muted);font:600 13px var(--sans)}

@media(max-width:520px){
  .catalog-nav{min-height:82px;align-items:center}
  .catalog-nav .brand img{width:44px;height:44px}
  .catalog-section{padding:28px 10px 42px}
  .section-heading{margin-bottom:18px}
  .section-heading h2{font-size:1.9rem}
  .section-heading>p{font-size:.9rem}
  .catalog-tools{grid-template-columns:1fr;gap:8px;margin:0 0 18px}
  .catalog-tools input,.catalog-tools select{height:42px;font-size:.92rem}
  .stock-toggle{justify-content:flex-start;width:100%;height:42px;padding:0 12px;border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--ink);font-size:.92rem}
  .stock-toggle input{appearance:none;width:18px;height:18px;margin:0;border:2px solid var(--gold-dark);border-radius:3px;background:#fff}
  .stock-toggle input:checked{background:var(--gold-dark);box-shadow:inset 0 0 0 3px #fff}
  .product-grid{gap:10px}
  .product-card{min-width:0}
  .product-art{aspect-ratio:1/1.18}
  .product-photo img{padding:0;object-fit:cover}
  .product-info{display:grid;min-height:184px;padding:10px}
  .product-info h3{min-height:48px;font-size:.94rem}
}

/* Public catalog final card style */
.product-card{overflow:hidden;border-radius:12px;background:#f2f3f6}
.product-art.product-photo{position:relative;aspect-ratio:4/5;background:#ede7dd}
.product-photo img{display:block;width:100%;height:100%;padding:0;object-fit:cover}
.product-photo img.is-hover-image{background:#fff;object-fit:contain}
.product-info{display:grid;padding:16px 18px 18px;background:#f2f3f6}
.product-meta{align-items:center;color:#5d616b;font-size:.75rem;letter-spacing:.02em}
.catalog-stock{display:inline-flex;align-items:center;justify-content:center;min-height:20px;padding:3px 8px;border-radius:999px;background:#cfeede;color:#007849;font-size:.66rem;font-weight:900;line-height:1}
.product-info h3{min-height:0;margin:8px 0 4px;color:#1d2027;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:1.05rem;font-weight:900;line-height:1.18}
.product-size{margin:0 0 14px;color:#606775;font-size:.84rem;font-weight:650}
.product-price-line{display:flex;align-items:baseline;gap:6px;margin-bottom:11px}
.product-price-line strong{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:1.35rem;font-weight:900}
.product-price-line small{color:#606775;font-size:.86rem;font-weight:650}
.product-type-row{display:flex;align-items:center;gap:10px;margin-bottom:14px;color:#606775;font-size:.78rem}
.product-type-row b{display:inline-flex;min-height:24px;align-items:center;padding:3px 10px;border-radius:999px;background:#1479ff;color:#fff;font-size:.7rem;font-weight:900}
.detail-link{justify-self:start;padding:0;border:0;background:transparent;color:#3f4856;font-size:.86rem;font-weight:800;text-decoration:underline;text-underline-offset:2px}
#productDialog .gallery-main{height:auto;max-height:none;aspect-ratio:auto;overflow:visible;background:transparent}
#productDialog .gallery-main img{width:100%;height:auto;max-height:62vh;object-fit:contain}

@media(max-width:760px){
  #productDialog{width:min(94vw,680px);max-height:88dvh;overflow:auto}
  #productDialog .dialog-close{position:sticky;top:0;z-index:3;width:42px;height:42px;background:#fff;line-height:1}
  #productDialog .detail-layout{gap:18px;padding:18px}
  #productDialog .gallery-main img{max-height:46dvh}
  #productDialog .detail-copy h2{font-size:clamp(2rem,10vw,3.4rem);line-height:1.05}
  #productDialog .detail-copy p{font-size:1rem;line-height:1.6}
}

@media(max-width:520px){
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .product-card{border-radius:10px}
  .product-info{min-height:0;padding:11px 12px 13px}
  .product-meta{gap:7px;font-size:.58rem}
  .catalog-stock{min-height:17px;padding:2px 6px;font-size:.52rem;white-space:nowrap}
  .product-info h3{overflow:hidden;margin-top:7px;font-size:.82rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
  .product-size{margin-bottom:10px;font-size:.72rem}
  .product-price-line{margin-bottom:8px}
  .product-price-line strong{font-size:1rem}
  .product-price-line small{font-size:.72rem}
  .product-type-row{gap:6px;margin-bottom:10px;font-size:.64rem}
  .product-type-row b{min-height:20px;padding:2px 7px;font-size:.56rem}
  .detail-link{font-size:.72rem}
  #productDialog{width:calc(100vw - 22px);max-height:86dvh}
  #productDialog .detail-layout{padding:12px}
  #productDialog .gallery-main img{max-height:40dvh}
  #productDialog .gallery-thumbs{grid-template-columns:repeat(4,44px)}
  #productDialog .detail-copy h2{font-size:clamp(1.9rem,9vw,3rem)}
}
