:root { --ink:#22241f; --muted:#71766d; --line:#e7e8e3; --paper:#fffefa; --cream:#f4f3eb; --gold:#caa342; --red:#b20c09; --green:#116942; --shadow:0 16px 40px rgba(26,28,20,.1); }
.validity-layer{position:absolute;inset:0}.validity-layer.configurable{cursor:crosshair}.validity-layer.configurable .validity-preview{outline:1px dashed rgba(174,158,99,.7);outline-offset:5px}.validity-preview{position:absolute;transform:translate(-50%,-50%);padding:0;text-align:center;background:transparent;border:0;font-family:"League Spartan";box-shadow:none;white-space:nowrap}.validity-preview strong{display:block;font:800 1em "League Spartan";line-height:1;text-transform:uppercase}.validity-readout{padding:11px;border-radius:8px;background:#f7f2e2;color:#65511d;font-size:12px;line-height:1.5}.validity-readout b{display:block;font:700 18px "League Spartan";color:#27281f}
*{box-sizing:border-box} body{margin:0;background:var(--cream);color:var(--ink);font-family:"DM Sans",sans-serif;font-size:14px} button,input,select,textarea{font:inherit} button{cursor:pointer;border:0} .app{min-height:100vh}.topbar{height:74px;padding:0 30px;background:#20231e;color:#fff;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;font-family:"League Spartan";font-size:21px;font-weight:700}.brand-mark{width:34px;height:34px;border-radius:50%;background:var(--gold);display:grid;place-items:center;color:#20231e;font-size:19px}.top-actions,.toolbar,.row{display:flex;align-items:center;gap:10px}.action{background:#30352d;color:#f5f5ef;padding:10px 13px;border-radius:8px}.action.primary,.primary{background:var(--gold);color:#29281d;font-weight:700}.layout{display:grid;grid-template-columns:280px minmax(480px,1fr) 310px;min-height:calc(100vh - 74px)}.sidebar,.properties{background:#fff;border-right:1px solid var(--line);padding:23px 18px}.properties{border-left:1px solid var(--line);border-right:0}.project-label,.eyebrow{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.09em;font-weight:700}.project-name{font-family:"League Spartan";font-size:21px;margin:4px 0 19px}.section-head{display:flex;justify-content:space-between;align-items:center;margin:22px 0 10px;font-weight:700}.icon-button{background:#f0f1eb;color:#3c4138;border-radius:7px;width:29px;height:29px;font-size:18px}.page-list{display:flex;flex-direction:column;gap:7px}.page-item{display:flex;gap:10px;align-items:center;width:100%;padding:8px;background:white;border-radius:9px;text-align:left;color:var(--ink)}.page-item.selected{background:#f7f2e2;box-shadow:inset 3px 0 var(--gold)}.page-thumb{width:43px;height:53px;background:#edece7 center/cover;border-radius:5px;border:1px solid #e5e2d6}.page-info b{display:block;font-size:13px}.page-info small{color:var(--muted);font-size:11px}.status{margin-left:auto;width:8px;height:8px;border-radius:50%;background:#e0ab27}.status.ok{background:#37a46d}.new-page{width:100%;color:var(--green);border:1px dashed #a8c4b2;background:#f7fbf8;padding:10px;border-radius:8px;font-weight:700;margin-top:10px}.workspace{padding:22px 28px 45px;overflow:hidden}.breadcrumbs{color:var(--muted);margin-bottom:16px}.breadcrumbs span{color:var(--ink);font-weight:600}.canvas-toolbar{height:50px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:0 11px;display:flex;align-items:center;gap:3px;box-shadow:0 3px 8px rgba(0,0,0,.02)}.tool{padding:8px 10px;border-radius:6px;background:white;color:#535850}.tool:hover,.tool.active{background:#f2f2ec}.zoom{margin-left:auto;color:var(--muted);font-size:12px}.canvas-area{min-height:calc(100vh - 190px);display:grid;place-items:start center;padding:26px 0;background:linear-gradient(45deg,#eeeee8 25%,transparent 25%) 0 0/14px 14px,linear-gradient(-45deg,#eeeee8 25%,transparent 25%) 0 7px/14px 14px,linear-gradient(45deg,transparent 75%,#eeeee8 75%) 7px -7px/14px 14px,linear-gradient(-45deg,transparent 75%,#eeeee8 75%) -7px 0/14px 14px;border-radius:12px}.page-canvas{width:min(55vh,620px);aspect-ratio:1077/1339;background:white center/cover no-repeat;box-shadow:var(--shadow);position:relative;overflow:hidden}.canvas-empty{position:absolute;inset:0;display:grid;place-items:center;text-align:center;background:rgba(255,255,255,.88);padding:50px}.canvas-empty h2{font-family:"League Spartan";font-size:26px;margin:10px}.canvas-empty p{color:var(--muted);line-height:1.5}.page-canvas.reference{background-image:url('./modelo/3limpo.png')}.canvas-overlay{position:absolute;border:2px solid #caa342;background:rgba(202,163,66,.12);cursor:move}.canvas-overlay .handle{position:absolute;width:8px;height:8px;background:#caa342;right:-5px;bottom:-5px}.offer-name{position:absolute;left:4%;bottom:5.4%;font:700 clamp(12px,1.55vw,17px) "League Spartan";max-width:37%}.offer-price{position:absolute;right:4%;bottom:5%;font:800 clamp(20px,4vw,44px) "League Spartan";color:#b20c09;letter-spacing:-.06em}.offer-price small{font-size:.43em;letter-spacing:0}.right-title{font-family:"League Spartan";font-size:20px;margin:4px 0 20px}.field{margin-bottom:15px}.field label{display:block;color:#656960;font-size:12px;font-weight:700;margin-bottom:6px}.field input,.field textarea,.field select{width:100%;border:1px solid #dfe1da;border-radius:7px;padding:10px;background:#fff;color:var(--ink)}.field textarea{resize:vertical;min-height:70px}.properties hr{border:0;border-top:1px solid var(--line);margin:22px 0}.lock-row{display:flex;justify-content:space-between;align-items:center;background:#f7f7f2;padding:10px;border-radius:8px;color:#565a53;font-size:12px}.save-note{margin-top:22px;text-align:center;font-size:11px;color:var(--muted)}.modal-backdrop{position:fixed;inset:0;background:rgba(19,22,18,.52);display:grid;place-items:center;padding:20px;z-index:10}.modal{background:#fff;border-radius:14px;padding:26px;box-shadow:var(--shadow);width:min(520px,100%)}.modal h2{font:700 26px "League Spartan";margin:0 0 5px}.modal p{color:var(--muted);margin:0 0 20px;line-height:1.5}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.secondary{padding:10px 14px;border-radius:8px;background:#eef0ea;color:#3f453c;font-weight:700}.primary{padding:10px 14px;border-radius:8px}.template-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.template-card{border:1px solid var(--line);background:#fff;border-radius:9px;padding:13px;text-align:left}.template-card.active{border-color:var(--gold);box-shadow:0 0 0 2px #f5eed8}.template-card small{color:var(--muted);display:block;margin-top:3px}.validation{padding:5px 0}.check{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.check .symbol{width:20px;height:20px;display:grid;place-items:center;border-radius:50%;font-size:12px;font-weight:800}.check.good .symbol{background:#dff3e7;color:#177343}.check.bad .symbol{background:#fae3e0;color:#b20c09}.validation-summary{padding:12px;background:#fbf4e0;border-radius:8px;margin:12px 0;color:#735d21}.dashboard{max-width:1100px;margin:0 auto;padding:48px 30px}.dashboard h1{font:700 42px "League Spartan";margin:8px 0}.dashboard-head{display:flex;align-items:end;justify-content:space-between}.project-card{margin-top:32px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:20px;display:flex;align-items:center;gap:18px;box-shadow:0 4px 18px rgba(0,0,0,.03)}.card-cover{width:72px;height:90px;background:url('./modelo/3.png') center/cover;border-radius:6px}.card-main{flex:1}.card-main h3{margin:0 0 4px;font:700 20px "League Spartan"}.card-main p{color:var(--muted);margin:0}.pill{font-size:11px;background:#e7f4e9;color:#177343;padding:5px 8px;border-radius:20px;font-weight:700}@media(max-width:980px){.layout{grid-template-columns:220px 1fr}.properties{display:none}.workspace{padding:18px}.page-canvas{width:min(65vw,530px)}}@media(max-width:660px){.layout{display:block}.sidebar{display:none}.topbar{padding:0 15px}.top-actions .action:not(.primary){display:none}.workspace{padding:14px}.page-canvas{width:85vw}.dashboard{padding:30px 18px}.dashboard h1{font-size:34px}}
/* Product coordinates follow the unchanged 1077 × 1339 reference. */
.page-canvas{container-type:inline-size;background-size:100% 100%}
.product-slot{position:absolute;background:transparent;border:0;border-radius:0;padding:0;color:#080808;text-align:left;font-family:'League Spartan',sans-serif;overflow:hidden}
.product-slot.is-selected{outline:1px dashed #ae9e63;outline-offset:-4px}
.product-slot:hover{box-shadow:inset 0 0 0 1px #ae9e63}
.product-image{position:absolute;left:6%;top:8%;width:88%;height:70%;object-fit:contain;pointer-events:none}
.product-bottom{position:absolute;left:4%;right:4%;bottom:2.5%;height:15%;display:flex;align-items:center;justify-content:space-between;gap:2%}
.product-name{font-size:1.7cqw;font-weight:600;line-height:1;white-space:pre-wrap;overflow-wrap:anywhere;max-width:51%;text-transform:uppercase}
.product-money{color:#a30700;display:flex;align-items:baseline;position:relative;white-space:nowrap;font-weight:800;line-height:1;padding-bottom:1cqw;letter-spacing:-.08cqw}
.product-money b{font-size:5.1cqw}.product-money .cents{font-size:3.8cqw}.product-money .currency{font-size:2cqw;letter-spacing:-.06cqw}.product-money small{position:absolute;right:0;bottom:0;font-size:1.3cqw;letter-spacing:0}
.package-note{position:absolute;top:7%;left:4%;right:4%;display:flex;justify-content:space-between;align-items:start;font-size:1.7cqw;line-height:.95;font-weight:600}
.package .product-image{top:25%;height:53%}
.super-price{color:#a30700;font-size:2.8cqw;line-height:.92;text-align:center}
.pickup-name{position:absolute;top:5%;left:4%;right:4%;text-align:center}.pickup-name .product-name{max-width:100%;display:block}
.pickup .product-image{top:14%;height:63%}
.pickup-prices{position:absolute;bottom:3%;left:4%;right:4%;display:flex;justify-content:space-between;gap:4%;font-size:1.7cqw;font-weight:600}
.pickup-prices>div{display:flex;flex-direction:column}.pickup-prices .product-money b{font-size:4.8cqw}.pickup-prices .product-money .cents{font-size:3.5cqw}
.product-placeholder{position:absolute;left:10%;right:10%;top:43%;text-align:center;font:500 1.7cqw 'DM Sans';color:#8c8c82}
.offer-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:20px}.offer-picker .chosen{background:#caa342}.offer-help{font-size:12px;color:#71766d;line-height:1.5}
@media(max-width:980px){.properties{display:block;grid-column:1/-1}.page-canvas{max-width:100%}}
@media print{.product-slot.is-selected{outline:0}.product-placeholder{display:none}}

/* Match the reference: fixed areas keep price labels and package notes apart. */
.product-money{flex-shrink:0;align-items:baseline}
.product-money b{font-size:5.1cqw;line-height:.85}
.product-money .cents{font-size:3.8cqw;line-height:1;align-self:flex-start}
.product-name{min-width:0;flex:1}
.package-note{top:7.2%;left:4.2%;right:4.2%;height:15%;display:grid;grid-template-columns:52% 48%;gap:0;font-size:1.7cqw;line-height:.92}
.package-note>.product-money{justify-self:end;align-self:start;padding-bottom:0}
.package-note .product-money small:empty{display:none}
.package .product-image{left:6%;width:88%;top:27%;height:42%}
.package .product-bottom{left:6%;right:2%;bottom:3%;height:14%;gap:1%}
.package .product-bottom .product-name{max-width:48%}
.package .product-bottom .product-money b{font-size:5.1cqw}
.pickup .product-image{top:10%;height:68%;left:6%;width:88%}
.pickup-prices{top:79%;bottom:3.5%;left:3.8%;right:3.8%;display:grid;grid-template-columns:1fr 1fr;gap:5%;font-size:1.7cqw;line-height:1}
.pickup-prices>div{min-width:0;display:flex;align-items:flex-start;flex-direction:column}
.pickup-prices>div:last-child{align-items:flex-end}
.pickup-prices>div>span:first-child{display:block;margin-bottom:.15cqw}
.pickup-prices .product-money{padding-bottom:1.2cqw}
.pickup-prices .product-money b{font-size:5.1cqw}
.pickup-prices .product-money .cents{font-size:3.8cqw}
.pricing-reference{border:1px solid #e7e8e3;border-radius:8px;padding:10px;margin-bottom:18px}
.pricing-reference summary{cursor:pointer;font-size:12px;font-weight:700}
.pricing-reference-crop{background-repeat:no-repeat;width:100%;margin:10px 0}
.pricing-reference .secondary{font-size:11px;width:100%}
.reference-modal{width:min(850px,95vw);max-height:90vh;overflow:auto}

.delete-page{padding:8px 10px;border-radius:6px;background:#fae3e0;color:#a30700;font-size:12px;margin-left:auto}.delete-page + .zoom{margin-left:8px}

.imported-product-image{position:absolute;overflow:hidden;pointer-events:none}

.page-canvas:has(> .solo-art){aspect-ratio:auto;background:none}.solo-art{display:block;width:100%;height:auto;pointer-events:none}
.export-progress{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:100;background:#20231e;color:white;padding:16px 24px;border-radius:10px;box-shadow:0 4px 20px #0003}button:disabled{cursor:wait;opacity:.55}.top-actions{flex-wrap:wrap}.topbar{min-height:74px;height:auto;padding-top:12px;padding-bottom:12px}

/* Live miniatures share the offer renderer, without editor controls. */
.page-thumb{position:relative;display:block;flex:0 0 43px;width:43px;height:54px;overflow:hidden;background:#fff;pointer-events:none}
.thumb-sheet{display:block;position:absolute;left:0;top:0;width:1077px;height:1339px;container-type:inline-size;transform:scale(.03992572);transform-origin:top left;background-color:white;background-size:100% 100%;background-repeat:no-repeat}
.thumb-full-image{width:100%;height:100%;object-fit:contain;display:block}
.thumb-sheet .product-slot{display:block;outline:none;box-shadow:none;pointer-events:none}
.thumb-sheet .product-placeholder{display:none}
.thumb-validity{position:absolute;transform:translate(-50%,-50%);text-align:center;font-family:'League Spartan';font-weight:800;white-space:nowrap;line-height:1}
.thumb-empty{display:grid;place-items:center;height:100%;color:#aaa}

/* Shared photo area for every product; contain preserves the original shape. */
.product-slot .product-image{left:50%;top:7%;width:26cqw;height:22cqw;transform:translateX(-50%);object-fit:contain;overflow:hidden}
.product-slot.package .product-image{top:26%;height:16cqw}
.library-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:55vh;overflow:auto}
.library-card{background:#fafaf7;border:1px solid #e0e1d9;border-radius:8px;padding:10px;text-align:center;font-size:12px}
.library-picture{display:block;position:relative;height:130px;margin-bottom:10px}
.library-picture .product-image{position:static;width:100%;height:100%;object-fit:contain;transform:none;overflow:hidden}

/* A price is one indivisible text run, including the comma, in every output. */
.product-money.price-stable{display:inline-flex;align-items:baseline;gap:.22cqw;flex:0 0 auto;position:relative;white-space:nowrap;letter-spacing:normal;line-height:1.1;padding:0 0 1.45cqw;max-width:100%;overflow:visible;font-family:'League Spartan',Arial,sans-serif;font-weight:800}
.product-money.price-stable .currency{position:static;font-size:1.8cqw;line-height:1.1;letter-spacing:normal;flex:0 0 auto}
.product-money.price-stable .price-amount{display:block;flex:0 0 auto;font-size:var(--price-size);line-height:1.1;letter-spacing:0;font-kerning:none;font-variant-numeric:lining-nums tabular-nums;white-space:nowrap;overflow:visible}
.product-money.price-stable small{font-size:1.25cqw;line-height:1;bottom:0;right:0;letter-spacing:0}
.package-note .product-money.price-stable{padding-bottom:0}
.pickup-prices .product-money.price-stable{gap:.15cqw;padding-bottom:1.45cqw}
.pickup-prices .product-money.price-stable .price-amount{font-size:min(var(--price-size),4.2cqw)}
.product-bottom{gap:1cqw}
.product-bottom .product-name{max-width:none;flex:1 1 0;min-width:0}

.bulk-offers{border:1px solid #d6c592;background:#fffdf4;border-radius:8px;padding:12px;margin-bottom:18px}.bulk-offers summary{font-weight:700;cursor:pointer}.bulk-offers textarea{min-height:120px}

/* Traditional price hierarchy, with natural inline spacing and a shared baseline. */
.product-money.price-stable{gap:.38cqw}
.product-money.price-stable .price-amount{display:block;line-height:1.1;letter-spacing:0;font-kerning:none}
.product-money.price-stable .price-whole{font-size:1em;line-height:inherit;vertical-align:baseline;letter-spacing:0}
.product-money.price-stable .price-decimal{font-size:.68em;line-height:inherit;vertical-align:baseline;letter-spacing:0;margin-left:.03em}
.pickup-prices .product-money.price-stable{gap:.3cqw}
/* Fine adjustment: compact digits, raised cents, unit directly below them. */
.product-money.price-stable .price-whole{letter-spacing:-.025em}
.product-money.price-stable .price-decimal{font-size:.612em;letter-spacing:-.015em;margin-left:0;position:relative;top:-.12em}
.product-money.price-stable{padding-bottom:.8cqw}
.product-money.price-stable small{bottom:.55cqw;right:0;line-height:1}
.pickup-prices .product-money.price-stable{padding-bottom:.8cqw}

/* Same embedded font in the editor and export; comma belongs to the whole part. */
.product-money.price-stable .price-decimal{font-size:.4896em;top:-.64em;margin-left:.015em;letter-spacing:-.015em}

.photo-cleanup{padding:12px;background:#f4f3eb;border-radius:8px;margin:12px 0}.photo-cleanup label{font-size:12px}.photo-cleanup input{width:100%;margin:12px 0}.photo-cleanup .row{flex-wrap:wrap}

.current-product-preview{position:relative;width:100%;height:260px;margin:12px 0;background:#fff}
.current-product-preview .product-image{display:block;position:static;width:100%;height:100%;object-fit:contain;transform:none;overflow:hidden}

.product-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:18px}.catalog-card{background:white;padding:18px;border:1px solid #e7e8e3;border-radius:12px}.catalog-card h3{font-size:14px;min-height:36px;white-space:pre-line}.catalog-card .library-picture{height:180px}.catalog-card .delete-page{margin-left:0}

.project-card{border:2px solid var(--project-border,#caa342);border-radius:18px}
.project-kind-ofertas{--project-border:#caa342}
.project-kind-fecha_mes{--project-border:#c62828}
.project-kind-lion_day{--project-border:#161616}
.project-kind-vinhos{--project-border:#722f46}
.project-cover-image,.project-cover-empty{width:80px;height:100px;flex:0 0 80px;border-radius:8px;border:1px solid var(--project-border);object-fit:contain;background:#faf9f4}
.project-cover-empty{display:grid;place-items:center;font-size:12px;color:#777;text-align:center}

.fecha-cover-art{display:block;width:100%;height:100%;position:absolute;inset:0}.project-cover-image:has(.fecha-cover-art){position:relative;overflow:hidden}

.page-canvas .fecha-logo{cursor:grab;touch-action:none;user-select:none}.page-canvas .fecha-logo:active{cursor:grabbing}

.fecha-cover-art{pointer-events:none}.page-canvas .fecha-logo{pointer-events:all}
