/* Selecciones Premium v1.3.8 — showcase-wide UI conversion.
   Pure presentation: financials, authentication, API, inventory and business rules unchanged. */
:root{
  --bg:#110a11;--surface:#22131f;--surface-2:#372231;--ink:#fff7f1;
  --muted:#e1c1d0;--line:#ba7b4e;--navy:#ffe0a4;--primary:#f64a93;
  --primary-dark:#b90f62;--success:#a5eabe;--warning:#ffd493;--danger:#ffb9c4;
  --rose:#fb4b99;--gold:#ffd995;--gold-deep:#bd8046;--glass:rgba(27,13,25,.88);
  --shadow:0 16px 45px #050207a8;--max:1400px;--radius:18px;
}
html{background:#120910}
body{
  min-height:100vh;color:var(--ink);
  background-color:#120810;
  background-image:linear-gradient(90deg,rgba(9,4,10,.19) 0%,rgba(19,6,17,.52) 38%,rgba(24,9,20,.52) 65%,rgba(12,5,13,.23) 100%),
    radial-gradient(ellipse at 43% 20%,rgba(91,21,55,.22),transparent 59%),url('/assets/boutique-ambient.webp');
  background-size:cover,cover,cover;background-position:center;background-attachment:fixed;
  font-family:Inter,'Segoe UI',system-ui,-apple-system,sans-serif;
}
body::after{content:'';position:fixed;pointer-events:none;inset:0;z-index:-1;background:radial-gradient(circle at 12% 83%,rgba(239,67,139,.16),transparent 29%),radial-gradient(circle at 88% 24%,rgba(245,85,156,.11),transparent 27%)}
/* Header: glassy rose metallic instead of a flat pink stripe. */
.topbar{
  position:sticky;top:0;z-index:50;background:
    radial-gradient(ellipse 30% 170% at 49% -27%,#fff5ec80,transparent 80%),
    linear-gradient(112deg,rgba(30,10,24,.92) 0%,rgba(162,36,85,.93) 32%,rgba(249,92,150,.89) 49%,rgba(92,24,54,.93) 73%,rgba(23,11,23,.94) 100%);
  border-bottom:1px solid #dda067;box-shadow:0 6px 30px #0009,inset 0 1px #ffe9d66b;
  -webkit-backdrop-filter:blur(18px) saturate(1.2);backdrop-filter:blur(18px) saturate(1.2)
}
.topbar-inner{max-width:1600px;padding:8px 20px;min-height:80px;gap:12px}
.brand{gap:10px;min-width:0}.brand-logo{width:62px!important;height:62px!important;min-width:62px!important;object-fit:contain;filter:drop-shadow(0 0 8px #ffaddb8f)!important;box-shadow:none!important}
.topbar .brand-copy strong{color:#ffe0a7;letter-spacing:.08em;font-size:11px;text-shadow:0 2px 5px #20050c}
.topbar .brand-copy span{color:#ffb0d1;font-size:clamp(16px,1.35vw,20px);text-shadow:0 1px 5px #000}
.topbar .tagline{color:#ffdde4;font-size:11px;text-shadow:0 1px 3px #000}
.topbar .lang-toggle{background:rgba(33,9,26,.60);border:1px solid #ffdca53a}
.topbar .lang-toggle button{color:#ffe1d0}.topbar .lang-toggle button.active{background:linear-gradient(135deg,#e02d79,#973059);color:#fff5e2}
.topbar .btn-secondary,.topbar .btn-primary{background:linear-gradient(135deg,#2e1224,#512038);color:#ffe0a2;border:1px solid #b98961;box-shadow:0 1px 6px #0007;border-radius:11px}
.topbar .btn-secondary:hover{border-color:#ffc583;background:#6d2545}
.topbar .top-actions{flex-shrink:0;gap:10px}
.showcase-quick-nav{display:flex;align-items:center;gap:7px;margin:auto;white-space:nowrap}
.showcase-quick-nav button{min-height:38px;border:1px solid transparent;border-radius:11px;background:rgba(30,12,24,.42);color:#fff1e5;padding:8px 12px;font-size:13px;font-weight:800;cursor:pointer}
.showcase-quick-nav button:hover,.showcase-quick-nav button.active{background:linear-gradient(115deg,#c91365,#f65798);border-color:#ffc586;box-shadow:0 2px 11px #ff459644}
.showcase-quick-nav .nav-glyph,.sidebar .nav-glyph{font-size:16px;display:inline-flex;width:22px;justify-content:center;margin-right:4px;vertical-align:-1px}
/* Cohesive luxury glass card system on ALL views. */
.card,.hero-card,.metric,.product-card,.table-wrap,.box-summary,.auth-card,.modal,.list-row,.analysis-box,.dropzone,.inventory-preview-panel,
#productFormCard,.diagnostic-grid>div,.notice,.details-panel{
  color:var(--ink);background:linear-gradient(153deg,rgba(38,19,34,.94) 0%,rgba(21,12,23,.94) 72%,rgba(39,16,31,.92) 100%);
  border:1px solid rgba(215,151,89,.65);border-radius:17px;box-shadow:0 11px 27px #07030ca6,inset 0 1px #ffdcc11a
}
.card,.metric{padding:clamp(15px,1.55vw,23px)}
.card h2,.card h3,.section-title h1,.section-title h2,#productFormCard>h2{color:var(--gold)}
.section-title h1{font-size:clamp(26px,2.3vw,40px);line-height:1.12;letter-spacing:-.02em}
.section-title p,.card .muted,.muted,.help,.small.muted{color:var(--muted)}
.section-title{margin:10px 0 20px;align-items:center}
.card h3{font-weight:800}.metric-value,.box-summary .big{color:var(--gold);text-shadow:0 2px 8px #0009}
.metric{background:linear-gradient(125deg,rgba(63,26,48,.94),rgba(23,12,24,.93))}
.metric-label{color:#ffd0de}.metric-sub{color:#edcad9}
.progress-wrap{background:#613548}.progress-bar{background:linear-gradient(90deg,#e62b83,#ff92c4,#ffd18b);box-shadow:0 0 13px #ff43915e}
.btn{border-radius:11px;transition:background .15s ease,transform .15s ease,box-shadow .15s ease}
.btn:focus-visible,.nav-btn:focus-visible,.tab-btn:focus-visible,.showcase-quick-nav button:focus-visible,
.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible{outline:2px solid #ffe0a1;outline-offset:2px}
.btn-primary{background:linear-gradient(105deg,#c80a61 0%,#f32d8b 58%,#ff85b6 100%);color:white;border:1px solid #ffc37c;box-shadow:0 4px 13px #f3438459,inset 0 1px #ffdfdc5c}
.btn-primary:hover{transform:translateY(-1px);background:linear-gradient(105deg,#b5095b,#f63084,#ff78a8);box-shadow:0 6px 19px #f3438470}
.btn-secondary,.btn-dark{background:linear-gradient(135deg,#2d1728,#422538);color:#ffe0a1;border:1px solid #b88454}
.btn-secondary:hover,.btn-dark:hover{background:#59263f;border-color:#ffd49d}
.eyebrow{background:linear-gradient(115deg,#6a2341,#38192d);color:#ffdf94;border:1px solid #b47a54;font-size:11px;letter-spacing:.075em}
.notice{box-shadow:none;border-color:#ad7954;background:rgba(75,37,55,.59);color:#ffe3d4}
.notice.error{background:#601b3a;border-color:#ca6a81;color:#ffe1eb}
.notice.success{background:#173f31;border-color:#51856e;color:#ddffec}
.notice.warning{background:#654225;border-color:#b99159;color:#ffe8bd}
/* Home / hero visual matches showcase's high-contrast foreground and scenic surroundings. */
.container{max-width:1440px;padding:22px clamp(18px,3vw,36px) 80px}
.hero{grid-template-columns:minmax(0,1.08fr) minmax(340px,.8fr);min-height:calc(100svh - 106px);gap:clamp(25px,4.1vw,58px);padding:26px 0 36px;align-items:center}
.hero>div:first-child{min-width:0}.hero-heading{display:flex;flex-direction:column;align-items:flex-start;gap:13px}
.hero-heading .hero-logo{align-self:center;display:block;width:clamp(124px,12.2vw,192px);max-width:60%;filter:drop-shadow(0 5px 19px #f36bba66)!important}
.hero-heading .eyebrow{align-self:center;max-width:100%;margin:0;padding:5px 13px;text-align:center}
.hero-heading h1{font-size:clamp(38px,4.5vw,66px);line-height:1.05;letter-spacing:-.035em;margin:7px 0 0;font-weight:900;text-shadow:0 4px 13px #07010bc2}
.hero h1 span{color:#ffda92}.hero p{margin:18px 0 0;font-size:clamp(15px,1.5vw,19px);color:#fff0e9;text-shadow:0 1px 8px #000}
.hero-actions{margin-top:22px}.hero-card{padding:clamp(18px,2vw,28px);border-radius:24px;background:linear-gradient(136deg,rgba(30,15,27,.85),rgba(20,13,20,.93));box-shadow:0 19px 55px #07020cb3,0 0 24px #ec639323}
.box-visual{border-radius:19px;border:1px solid #e2a577;background:radial-gradient(ellipse at 87% 18%,#ab416a 0%,#78314f 28%,#432338 70%,#2e1a2a 100%);box-shadow:inset 0 2px #ffcfa33a;aspect-ratio:1.26}
.box-visual:before{color:#ffdda1;font-size:clamp(41px,4.5vw,69px);text-shadow:0 4px 4px #05020ad1;max-width:95%;letter-spacing:-.04em}
.box-visual:after{background:#35202b;border:1px solid #ae6962;color:#ffdfa3;box-shadow:0 2px 10px #0008}
.hero-point{border:1px solid #b6825e;border-radius:15px;background:linear-gradient(135deg,rgba(60,28,45,.88),rgba(25,14,22,.94));box-shadow:0 6px 15px #0007}
.hero-point strong{color:var(--gold)}
/* Sign-in and create-account: boutique glass modal and consistent form controls. */
.modal-backdrop{z-index:100;background:rgba(8,3,9,.79);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}
.modal{border-radius:24px;border:1px solid #ef91ab;background:linear-gradient(160deg,rgba(39,21,35,.985),rgba(19,12,23,.985));box-shadow:0 24px 68px #000e,0 0 42px #ff3f792b;max-height:calc(100dvh - 24px)}
#authModal .modal{width:min(540px,calc(100vw - 26px));padding:clamp(16px,2.3vw,28px)}
.login-brand{margin:0 0 12px;gap:12px}.login-brand img{width:72px;height:72px;filter:drop-shadow(0 5px 10px #ee70a344)!important}
.login-brand strong{font-size:clamp(19px,2vw,25px);color:#ffdda1}.login-brand span{font-size:18px;color:#ff94c1}
#authModal h2{font-size:24px;color:#fff0e5}
.tabs{background:#382436;border:1px solid #634452;padding:5px;margin:12px 0 17px}
.tab-btn{min-height:42px;color:#e0bdc9}.tab-btn.active{background:linear-gradient(115deg,#d51b77,#a82a68);color:#fff6f1;box-shadow:0 3px 12px #c72e777d}
.field label{color:#ffdfbc;font-weight:750;font-size:12px}
.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea,
#categoryFilter,#genderFilter,#paymentStatusFilter,.compact-input{background:rgba(15,13,22,.83);border:1px solid #977047;color:#fff3ee;border-radius:10px;box-shadow:inset 0 1px #d7a77d12}
.field input::placeholder,.field textarea::placeholder{color:#b4a3ae}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#ff85b8;box-shadow:0 0 0 3px #fa529136}
.field input[type=checkbox],.field input[type=radio]{accent-color:#f74d98}
.password-visibility{margin-top:4px;align-self:flex-end;min-height:31px;font-size:12px}
.bot-check{border:1px solid #bb8656;border-radius:13px;background:linear-gradient(140deg,rgba(32,16,30,.82),rgba(19,12,22,.9));padding:11px}
.bot-widget iframe{max-width:100%!important}.bot-check-status{color:#ffd9e4}
#authModal .btn-block{min-height:43px}
/* Customer and administration navigation resemble the showcase's black glass left rail. */
.app-layout{grid-template-columns:210px minmax(0,1fr);min-height:calc(100vh - 80px)}
.sidebar{background:linear-gradient(167deg,rgba(13,7,15,.96),rgba(26,11,24,.95));border-right:1px solid #bb794e;padding:22px 10px;top:80px;height:calc(100vh - 80px);z-index:5;box-shadow:inset -5px 0 16px #08030b9c}
.nav-list{gap:7px}.nav-btn{display:flex;align-items:center;color:#f2d6df;font-size:13px;min-height:42px;border:1px solid transparent;border-radius:11px;padding:10px 12px}
.nav-btn:hover{background:rgba(187,44,105,.26);color:#ffeff2}
.nav-btn.active{border:1px solid #f67db0;background:linear-gradient(108deg,#b20e59,#f64d97 90%);color:#fff;box-shadow:0 3px 19px #ed33865f}
.app-main{padding:clamp(17px,1.6vw,30px) clamp(13px,1.5vw,30px) 96px}
#admin-inventory .section-title h1{color:#ffe0ac}
#productFormCard{background:linear-gradient(140deg,#1b111cf7,#241322fa);border:1px solid #c99565;padding:clamp(15px,1.8vw,27px)}
#productFormCard>h2{font-family:Georgia,serif;font-size:clamp(28px,3vw,39px);color:#ffe0a5}
#productForm .dropzone{background:linear-gradient(133deg,rgba(19,13,21,.97),rgba(48,20,39,.85));border:1px dashed #b98053}
#productForm .dropzone>strong{color:#ffdfad}.inventory-composer{grid-template-columns:minmax(0,1.45fr) minmax(305px,.9fr);gap:18px}
#productForm .preview-grid{grid-template-columns:repeat(auto-fill,minmax(75px,108px));gap:10px}
#productForm .preview{border-color:#bc895f;background:#19111b;border-radius:11px}
#productForm .preview.active{box-shadow:0 0 0 2px #ff83bd,0 0 18px #f3499380}
#productForm .photo-workflow{border:1px solid #a4724b;background:#301c2b}
#productForm .number-row>div{border-color:#875b43;background:#190e1a}
#productForm .item-number-display{background:linear-gradient(110deg,#291922,#452438);border:1px solid #b98c5d}
#productForm .details-panel{background:linear-gradient(115deg,#3e2830,#342139);border-color:#bd8b64}
.inventory-preview-panel{border:1px solid #ff6fab;box-shadow:0 9px 28px #000a,0 0 18px #e03b782e;background:linear-gradient(130deg,#211422f7,#150f19f7);top:102px}
.inventory-preview-panel>h3{color:#ffdea3}
.inventory-preview-panel #selectedInventoryImage{background:linear-gradient(145deg,#2e2030,#231826);color:transparent;min-height:260px;border-color:#bd8d59}
.inventory-preview-panel #selectedInventoryImage:not([src]){visibility:hidden}
.inventory-preview-panel .photo-stage{position:relative;min-height:260px}
.inventory-preview-panel .photo-stage:has(img:not([src])):before{content:'✧';position:absolute;top:39%;left:50%;transform:translate(-50%,-50%);font-size:76px;color:#ff79b8;text-shadow:0 0 18px #fa4796;pointer-events:none}
.inventory-preview-panel .photo-stage:has(img:not([src])):after{content:'Select an uploaded photograph';position:absolute;top:60%;left:0;width:100%;text-align:center;color:#f3d1df;font-size:13px;pointer-events:none}
#productForm .inventory-form-actions .btn-primary{min-width:180px}
/* Catalog cards, checkout and orders share the same premium surfaces. */
.product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.product-card{border:1px solid #b98557;background:linear-gradient(160deg,#241521,#150f19);box-shadow:0 10px 22px #070208ad;border-radius:14px}
.product-card:hover{border-color:#ff8db9;box-shadow:0 10px 23px #070208ad,0 0 13px #f3457e4f}
.product-photo{background:#302130}.product-photo img{object-fit:contain;background:#f7f5f2}
.product-body{gap:6px}.product-name{color:#fff1dd}.product-footer .btn{font-size:12px;padding:8px 10px}
.chip{background:#592e47;color:#ffe2eb}.chip.premium{background:#5b3f30;color:#ffe2b2}
.list-row{background:linear-gradient(135deg,#311d2b,#1e1422);border-color:#ab7859}
.table-wrap{overflow:auto}.table th{background:#42263b;color:#ffdc9e}.table td{background:rgba(23,13,23,.75);border-color:#7d5442}.table tr:hover td{background:#45243a}
.filterbar{gap:9px}.filterbar .field{min-width:0}
.box-summary{top:96px;border-color:#ef8e79;box-shadow:0 12px 27px #0009,0 0 22px #ff347127}
.gallery-main{background:#f7f5f0}.gallery-thumbs button{border-color:#cf986b}
.status{border:1px solid #b18361}
.modal-wide{width:min(950px,100%)}
.analysis-value{border-color:#805641;background:#271824}
.diagnostic-grid>div{background:#231623}
/* Responsive: keep all workflows usable; never hide core form controls. */
@media(min-width:1550px){.app-layout{grid-template-columns:230px minmax(0,1fr)}}
@media(max-width:1320px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.showcase-quick-nav button{padding:7px 9px;font-size:12px}.hero-heading h1{font-size:clamp(38px,4.6vw,58px)}}
@media(max-width:1080px){.app-layout{grid-template-columns:175px minmax(0,1fr)}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-composer{grid-template-columns:minmax(0,1fr) minmax(230px,.8fr)}.hero{grid-template-columns:1fr minmax(295px,.85fr);gap:22px}.showcase-quick-nav{gap:4px}.showcase-quick-nav button{font-size:11px;padding:7px}.showcase-quick-nav .nav-glyph{display:none}}
@media(max-width:820px){
  body{background-attachment:scroll;background-position:center}
  .topbar-inner{min-height:72px}.brand-logo{width:51px!important;height:51px!important;min-width:51px!important}
  .showcase-quick-nav{display:none}.app-layout{display:block}.sidebar{display:none}.app-main{padding:20px 15px 110px}
  .hero{grid-template-columns:1fr;min-height:0;gap:22px;padding:28px 0}.hero-heading h1{font-size:clamp(36px,6vw,55px)}
  .hero-card{width:min(550px,100%);margin-inline:auto}.box-visual:before{font-size:clamp(43px,7vw,68px)}
  .inventory-composer{grid-template-columns:1fr}.inventory-preview-panel{position:static}
  .mobile-nav{background:linear-gradient(110deg,rgba(56,14,41,.97),rgba(17,10,21,.97));border-top:1px solid #c58b5e;box-shadow:0 -3px 18px #000a}
  .mobile-nav button.active{background:#bb1b66;color:#fff7e4;border-radius:9px}
  .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:600px){
  .topbar-inner{padding:6px 10px;gap:8px}.brand{gap:6px}.brand-logo{width:44px!important;height:44px!important;min-width:44px!important}
  .topbar .brand-copy strong{font-size:9px;letter-spacing:.04em}.topbar .brand-copy span{font-size:14px}.topbar .tagline{font-size:9px}
  .top-actions{gap:5px}.top-actions .btn-sm{font-size:11px;padding:7px}.topbar .lang-toggle button{padding:7px;font-size:11px}
  .container{padding:16px 14px 75px}.hero{padding-top:15px;gap:19px}.hero-heading{gap:9px}
  .hero-heading .hero-logo{width:clamp(115px,32vw,162px)}.hero-heading .eyebrow{font-size:10px}
  .hero-heading h1{font-size:clamp(33px,8.3vw,47px)}.hero p{font-size:15px}.hero-actions{gap:9px}
  .hero-point{padding:11px}.hero-card{padding:14px}.box-visual:before{font-size:clamp(40px,12vw,61px)}
  .grid-4,.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-2{grid-template-columns:1fr}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .catalog-layout{grid-template-columns:1fr}.filterbar{grid-template-columns:1fr 1fr}
  #authModal .modal{padding:15px;max-height:calc(100dvh - 12px)}.login-brand img{width:58px;height:58px}.login-brand strong{font-size:19px}
  .inventory-preview-panel #selectedInventoryImage{height:min(48vh,400px)}
  .section-title{flex-wrap:wrap}.section-title .btn{min-height:37px}
}
@media(max-width:380px){.topbar .brand-copy span{font-size:12px}.topbar .brand-copy strong{font-size:8px}.topbar .tagline{font-size:8px}.topbar .btn-secondary{padding:7px 8px;font-size:10px}.hero-heading h1{font-size:32px}.filterbar{grid-template-columns:1fr}.box-visual:before{font-size:clamp(37px,11.6vw,50px)}.metric-value{font-size:24px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Build My Box: showcase's category column, merchandise grid, and box review. */
#view-build .catalog-layout{grid-template-columns:175px minmax(0,1fr) 272px;gap:14px;align-items:start}
.showcase-categories{min-width:0;padding:15px 11px;border:1px solid #b88556;border-radius:16px;background:linear-gradient(155deg,#140f19f0,#291629f5);box-shadow:0 12px 26px #000a;position:sticky;top:101px;max-height:calc(100vh - 130px);overflow-y:auto}
.category-title{font-size:14px;color:#ffdf9f;display:block;margin-bottom:13px}
.category-search-label input{width:100%;min-width:0;background:#251924;border:1px solid #85593c;border-radius:9px;color:#fff;padding:8px 9px;font-size:12px;margin-bottom:10px;outline:none}
.category-search-label input::placeholder{color:#d3afba}
.category-buttons{display:grid;gap:5px}
.category-buttons button{border:1px solid transparent;background:transparent;min-height:35px;color:#f6d5e3;text-align:left;padding:7px 8px;border-radius:9px;font-size:12px;cursor:pointer}
.category-buttons button:hover{background:#79334c;color:#fff}
.category-buttons button.active{background:linear-gradient(110deg,#d11668,#f45591);border-color:#fa9fba;color:#fff;box-shadow:0 4px 12px #ef3e8650}
#view-build .box-summary{min-width:0;padding:17px}
#view-build .product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#view-build .product-body{padding:10px}.product-card .btn{min-width:0}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Thumb gallery layout and graceful empty photo preview. */
#productForm .preview-grid{margin:14px 0;grid-template-columns:repeat(auto-fill,minmax(80px,106px))}
#productForm .dropzone:before{content:'☁';display:block;text-align:center;color:#f55ba1;font-size:30px;line-height:1}
#admin-inventory .table-wrap{margin-top:15px}
@media(max-width:1430px){#view-build .catalog-layout{grid-template-columns:158px minmax(0,1fr) 244px;gap:10px}#view-build .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1100px){#view-build .catalog-layout{grid-template-columns:152px minmax(0,1fr)}#view-build .catalog-layout>.box-summary{grid-column:1/-1;position:static}#view-build .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.showcase-categories{position:static;max-height:355px}#view-build .catalog-layout{grid-template-columns:165px minmax(0,1fr)}#view-build .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){#view-build .catalog-layout{grid-template-columns:1fr}.showcase-categories{max-height:none;padding:12px}.category-buttons{display:flex;overflow-x:auto;gap:7px}.category-buttons button{white-space:nowrap;flex:0 0 auto;min-height:32px}#view-build .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-search-label input{max-width:100%}}

/* Meaningful sidebar pictograms added without altering translated button labels. */
.sidebar .nav-btn:before{display:inline-grid;place-items:center;width:21px;margin-right:8px;flex:0 0 21px;color:#ffcf9e;font-size:16px}
.sidebar [data-view="home"]:before,.sidebar [data-admin-view="dashboard"]:before{content:'⌂'}
.sidebar [data-view="build"]:before,.sidebar [data-admin-view="inventory"]:before{content:'▣'}
.sidebar [data-view="requests"]:before,.sidebar [data-admin-view="requests"]:before{content:'◇'}
.sidebar [data-view="orders"]:before,.sidebar [data-admin-view="boxes"]:before{content:'▤'}
.sidebar [data-view="balance"]:before,.sidebar [data-admin-view="payments"]:before{content:'＄'}
.sidebar [data-view="account"]:before,.sidebar [data-admin-view="customers"]:before{content:'♙'}
.sidebar [data-admin-view="settings"]:before{content:'⚙'}

/* Showcase two-line Arma Tu Caja artwork on desktop as well as mobile. */
.box-visual:before{content:"Arma Tu\A Caja";white-space:pre;max-width:100%;width:100%;letter-spacing:-.055em;line-height:1.05;text-align:center;font-size:clamp(44px,4.5vw,70px)}
.showcase-quick-nav [data-view]:before{color:#ffdbac;font-size:17px;margin-right:7px;vertical-align:-1px}
.showcase-quick-nav [data-view="home"]:before{content:'⌂'}
.showcase-quick-nav [data-view="build"]:before{content:'▣'}
.showcase-quick-nav [data-view="orders"]:before{content:'▤'}
.showcase-quick-nav [data-view="account"]:before{content:'◉'}
#authModal .field:has(input[type=email]),#authModal .field:has(input[type=password]){position:relative}
#authModal .field:has(input[type=email]) input,#authModal .field:has(input[type=password]) input{padding-left:38px}
#authModal .field:has(input[type=email]):after,#authModal .field:has(input[type=password]):after{position:absolute;top:35px;left:13px;color:#f9c893;font-size:17px;pointer-events:none}
#authModal .field:has(input[type=email]):after{content:'✉'}
#authModal .field:has(input[type=password]):after{content:'⌑'}
@media(max-width:600px){.box-visual:before{font-size:clamp(40px,12vw,60px)}}
/* Older releases hid the mobile Sign In/Sign Out button; restore this vital control. */
@media(max-width:600px){
  .top-actions .btn{display:inline-flex!important;min-height:35px;padding:6px 9px;font-size:11px;white-space:nowrap}
  .topbar-inner{justify-content:space-between;gap:5px}
  .brand{min-width:0;flex:0 1 auto}
  .brand-copy{min-width:0}.topbar .brand-copy span{max-width:160px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  .topbar .brand-logo{width:40px!important;height:40px!important;min-width:40px!important}
  .topbar .top-actions{gap:4px;margin-left:auto}
  .topbar .lang-toggle button{padding:5px 7px;font-size:10px}
}
@media(max-width:380px){.topbar .brand-copy span{display:none}.topbar .brand-copy strong{font-size:9px}.topbar .top-actions .btn{padding:6px 8px}}

/* v1.3.8 — remove backdrop blur from showcase scenery. Dark overlays stay
   on components for contrast, not as a blur filter across the photography. */
body{
  background-image:linear-gradient(90deg,rgba(9,3,10,.22),rgba(19,6,17,.33) 42%,rgba(18,5,17,.33) 64%,rgba(7,3,9,.21)),
   url('/assets/boutique-sharp-v138.webp');
  background-size:cover,cover;
  background-position:center,center;
}
.topbar,.sidebar,.modal-backdrop{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.modal-backdrop{background:rgba(8,2,12,.58)!important}
#authModal .bot-check{
  background:linear-gradient(145deg,#160e1b,#261324)!important;
  border:1px solid #c98b60;
  box-shadow:inset 0 1px rgba(255,208,161,.15),0 5px 16px rgba(0,0,0,.48);
}
#authModal .bot-check-status{
  color:#fff0e2!important;font-weight:700;
  text-shadow:0 1px 2px rgba(0,0,0,.72);
  background:rgba(0,0,0,.30);
  border-radius:8px;padding:8px 10px;
}
#editProductModal .field select{width:100%;min-width:0;max-width:100%}
#editProductModal .field input[id$="Other"]{margin-top:8px;width:100%}
#editProductModal .field input[id$="Other"].hidden{display:none!important}
@media(max-width:820px){body{background-attachment:scroll}}


/* v1.3.9 — showcase immersion upgrade.
   Goal: make the live website look much closer to the approved UI showcase,
   with a complete, detailed boutique background and brighter pink-gold luxury styling. */
:root{
  --surface:#1f101c;
  --surface-2:#3a2032;
  --muted:#f0cbda;
  --primary:#ff4e99;
  --primary-dark:#c81769;
  --gold:#ffe0a6;
  --gold-deep:#d99759;
}
body{
  background-color:#140813;
  background-image:
    radial-gradient(circle at 18% 16%, rgba(255,170,206,.15), transparent 20%),
    radial-gradient(circle at 82% 15%, rgba(255,200,120,.11), transparent 18%),
    linear-gradient(90deg, rgba(7,2,10,.35) 0%, rgba(28,8,22,.18) 14%, rgba(30,9,24,.10) 38%, rgba(29,9,24,.10) 62%, rgba(27,7,22,.18) 84%, rgba(8,2,10,.34) 100%),
    url('/assets/boutique-showcase-v139.webp');
  background-size:cover,cover,cover,cover;
  background-position:center,center,center,center;
  background-attachment:fixed;
}
body::after{
  background:
    radial-gradient(circle at 9% 84%, rgba(255,98,167,.15), transparent 24%),
    radial-gradient(circle at 92% 10%, rgba(255,170,84,.12), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 18%);
}
.topbar{
  background:
    radial-gradient(ellipse 24% 160% at 50% -20%, rgba(255,241,226,.56), transparent 75%),
    linear-gradient(100deg, rgba(35,10,31,.96) 0%, rgba(133,23,74,.95) 20%, rgba(241,113,167,.95) 50%, rgba(135,28,79,.95) 78%, rgba(31,11,29,.96) 100%);
  border-bottom:1px solid rgba(255,195,124,.95);
  box-shadow:0 10px 34px rgba(0,0,0,.46), inset 0 1px rgba(255,236,219,.42), inset 0 -1px rgba(255,175,213,.14);
}
.topbar-inner{max-width:1680px; padding:8px 22px;}
.topbar .brand-copy strong{font-size:11px; letter-spacing:.1em; color:#ffe2ad;}
.topbar .brand-copy span{font-size:clamp(18px,1.4vw,22px); font-weight:900; color:#ffd0e3;}
.topbar .tagline{color:#fff0f6; opacity:.95;}
.topbar .btn-secondary,.topbar .btn-primary{
  background:linear-gradient(135deg, rgba(55,15,39,.96), rgba(95,31,65,.94));
  color:#ffe3a8; border:1px solid rgba(255,204,142,.9);
}
.topbar .lang-toggle{background:rgba(53,12,37,.64); border-color:rgba(255,208,165,.35);}
.topbar .lang-toggle button.active{
  background:linear-gradient(135deg,#f73488,#9d285b); color:#fff7ec; box-shadow:0 3px 14px rgba(247,52,136,.35);
}
.container{max-width:1520px; padding:24px clamp(20px,3vw,44px) 88px;}
.hero{min-height:calc(100svh - 100px); gap:clamp(28px,4vw,70px);}
.hero h1 span{color:#ffd99a;}
.hero p{max-width:760px; color:#fff4ec;}
.hero-card{
  background:linear-gradient(145deg, rgba(33,15,30,.88), rgba(17,10,19,.94));
  border:1px solid rgba(232,162,109,.72);
  box-shadow:0 24px 60px rgba(8,3,12,.68), 0 0 26px rgba(255,83,151,.18), inset 0 1px rgba(255,228,190,.14);
}
.box-visual{
  background:
    radial-gradient(circle at 78% 24%, rgba(255,121,188,.28), transparent 25%),
    linear-gradient(145deg, rgba(169,83,121,.92) 0%, rgba(140,62,101,.92) 24%, rgba(95,47,76,.94) 55%, rgba(60,33,49,.96) 100%);
  border:1px solid rgba(226,166,121,.72);
  box-shadow:inset 0 1px rgba(255,223,189,.18), 0 12px 32px rgba(0,0,0,.28);
}
.box-visual:before{color:#ffe1a0; text-shadow:0 4px 12px rgba(0,0,0,.48), 0 0 18px rgba(255,210,140,.14);}
.box-visual:after{background:rgba(54,27,41,.88); border-color:rgba(222,154,122,.8);}
.hero-point{background:linear-gradient(140deg, rgba(66,29,47,.9), rgba(28,15,23,.96)); border-color:rgba(216,153,102,.72);}
.sidebar{
  background:linear-gradient(180deg, rgba(17,8,18,.96) 0%, rgba(30,10,26,.94) 100%);
  border-right:1px solid rgba(213,147,92,.52);
}
.sidebar .nav-btn{
  color:#ffe8db;
  border-radius:14px;
  font-weight:800;
}
.sidebar .nav-btn.active,
.sidebar .nav-btn:hover{
  background:linear-gradient(115deg, #d3186a 0%, #ff5a9c 100%);
  border-color:rgba(255,199,140,.86);
  color:#fff8ef;
  box-shadow:0 8px 18px rgba(246,67,140,.28);
}
.mobile-nav{background:linear-gradient(110deg, rgba(63,15,46,.98), rgba(17,8,19,.98));}
.section-title h1,.card h2,.card h3,#productFormCard>h2{color:#ffdfa2;}
.card,.metric,.table-wrap,.product-card,.box-summary,.inventory-preview-panel,#productFormCard,.modal,.notice,.dropzone,.details-panel{
  background:linear-gradient(155deg, rgba(38,18,33,.92) 0%, rgba(19,11,22,.95) 78%, rgba(43,18,33,.92) 100%);
}
#authModal .bot-check-status{
  background:rgba(7,6,12,.62);
  border:1px solid rgba(210,142,100,.32);
}
@media(max-width:820px){
  body{background-attachment:scroll; background-position:center top, center top, center top, center top;}
}

/* v1.3.10 — Inventory image detail, watermark visibility and contrast. */
.inventory-open-photo{
  display:inline-flex; padding:3px; background:transparent;
  border:1px solid rgba(247,130,182,.4); border-radius:11px;
  cursor:zoom-in; transition:box-shadow .15s ease,border-color .15s ease;
}
.inventory-open-photo:hover,.inventory-open-photo:focus-visible{
  border-color:#ffbed7; box-shadow:0 0 0 3px rgba(255,83,151,.32);
}
.inventory-open-photo .list-thumb{display:block; width:66px; height:80px;object-fit:contain;background:#fff;}
.inventory-lightbox-modal{
  width:min(1060px,calc(100vw - 28px));max-height:95dvh;display:flex;
  flex-direction:column;gap:12px;padding:clamp(12px,2.6vw,24px);
}
.inventory-lightbox-modal h2{font-size:clamp(17px,2vw,24px);margin:5px 0;color:#ffe1ad;overflow-wrap:anywhere}
.inventory-lightbox-stage{display:grid;justify-items:center;gap:12px;min-height:0}
#inventoryLightboxImage{
  display:block; width:auto;max-width:100%;height:auto;
  max-height:min(67dvh,760px);object-fit:contain;border-radius:12px;
  background:#f9f9f8;border:1px solid rgba(255,210,166,.6);
}
.inventory-lightbox-controls{display:flex;align-items:center;justify-content:space-between;width:min(520px,100%);gap:12px}
.inventory-lightbox-controls .btn:disabled{opacity:.45;cursor:default}
.inventory-lightbox-modal .modal-head{flex-shrink:0}
#editProductModal .edit-photo-image{position:relative;display:block}
#editProductModal .edit-photo-image::after{
  content:'';position:absolute;bottom:7px;right:7px;
  background:url('/assets/inventory-watermark.png') center/contain no-repeat;
  width:clamp(42px,4.4vw,66px);aspect-ratio:1;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.4));pointer-events:none;
}
@media(max-width:600px){
  .inventory-lightbox-modal{max-height:calc(100dvh - 12px)}
  #inventoryLightboxImage{max-height:65dvh}
  .inventory-lightbox-controls{gap:6px}
  .inventory-lightbox-controls .btn{font-size:11px;padding:8px}
}


/* ================================================================
   v1.3.11 BACKGROUND RESTORATION — SELF-CONTAINED INSTALL ASSET
   ---------------------------------------------------------------
   Uses a versioned, bundled JPEG at /assets/boutique-showcase-v1311.jpg.
   Unlike v1.3.10, this update ZIP includes the referenced image.
   Applied to the global document, including Customer and Admin.
   ================================================================ */
html{background-color:#180813;}
html body{
  min-height:100vh;
  background-color:#180813;
  background-image:
    linear-gradient(90deg,
      rgba(9,2,10,.39) 0%,
      rgba(17,4,14,.40) 26%,
      rgba(20,5,18,.33) 52%,
      rgba(17,4,15,.34) 74%,
      rgba(8,2,10,.38) 100%),
    url('/assets/boutique-showcase-v1311.jpg');
  background-repeat:no-repeat,no-repeat;
  background-size:cover,cover;
  background-position:center center,center center;
  background-attachment:fixed,fixed;
}
/* Background is decorative: keep cards legible while revealing the scene. */
html body::after{
  background:radial-gradient(ellipse at 48% 20%, rgba(255,93,163,.07), transparent 49%);
}
@media(max-width:820px){
  html body{
    background-position:center center,34% top;
    background-size:cover,auto max(100vh,850px);
    background-attachment:scroll,scroll;
  }
}
@media(max-width:540px){
  html body{
    background-position:center center,26% top;
    background-size:cover,auto max(100vh,850px);
  }
}

/* v1.3.12 account management and crop editor */
.crop-photo-modal{width:min(970px,calc(100vw - 20px));max-height:96dvh;overflow:auto}
.crop-stage{display:flex;align-items:center;justify-content:center;background:rgba(7,6,11,.95);border:1px solid #a97a59;border-radius:13px;padding:10px;min-height:170px}
#photoCropCanvas{max-width:100%;height:auto;max-height:min(60vh,570px);touch-action:none;cursor:crosshair;border-radius:8px;display:block}
.crop-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px;justify-content:flex-end}
.edit-photo-tile [data-edit-crop]{margin-top:7px;width:100%}
.account-table-wrap{overflow-x:auto;background:transparent;box-shadow:none}
#admin-accounts .table{min-width:620px}
#admin-accounts .table td:last-child{white-space:nowrap}
#admin-accounts .card{margin-bottom:14px}
@media(max-width:600px){.crop-photo-modal{padding:13px}.crop-actions .btn{flex:1 1 130px}}

#photoCropModal{z-index:1000!important}
#photoCropModal .modal{position:relative;z-index:1001}

/* Keep new administrative account controls reachable on phones. */
.sidebar [data-admin-view="accounts"]:before{content:'♙'}
@media(max-width:820px){.mobile-nav{grid-template-columns:repeat(6,minmax(0,1fr));gap:1px}.mobile-nav button{font-size:clamp(8px,2.1vw,10px);white-space:nowrap;padding:8px 1px}}

/* v1.3.13 — explicit unlimited-box customer control and translated request actions. */
.customer-box-limit{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:175px}
.customer-box-limit .limit-unlimited{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;color:var(--gold,#ffe0a6);font-size:12px}
.customer-box-limit .limit-unlimited input{accent-color:#f64a93;min-width:15px;min-height:15px}
.customer-box-limit [data-maxbox]{width:75px;min-width:65px}
.customer-box-limit [data-maxbox]:disabled{opacity:.45}
#requestsBody [data-delete-request]{white-space:nowrap}
@media(max-width:600px){.customer-box-limit{min-width:135px;align-items:flex-start;gap:6px}}

/* v1.3.15 request workflow */
.request-entry{min-width:0;border:1px solid #bb865b;border-radius:15px;margin:0 0 16px;padding:16px;background:rgba(23,11,20,.76)}
.request-entry legend{color:#ffdc9f;font-weight:800;padding:0 10px}
.request-compose-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:16px}
.request-other{margin-top:7px}.request-list-row{align-items:start;gap:10px}
.request-item-main{flex:1;min-width:0}.request-buttons{display:flex;gap:7px;flex-wrap:wrap}
.request-status{margin-top:8px;color:#ffe4bf;font-size:13px}
.request-match{margin-top:10px;display:flex;align-items:center;gap:9px;color:#ffdfac}
.request-match img{width:110px;height:110px;object-fit:contain;background:#fff;border-radius:8px}
.request-admin-thumb{display:block;margin-top:6px;max-width:90px;max-height:100px;object-fit:contain;background:#fff;border-radius:8px}
#requestAssignmentField{border:1px solid #a8745b;border-radius:12px;padding:13px;background:rgba(36,17,32,.8)}
#requestAssignmentField select{width:100%;max-width:100%;min-width:0}
@media(max-width:600px){.request-compose-actions{flex-direction:column}.request-compose-actions button{width:100%}.request-list-row{display:flex;flex-wrap:wrap}.request-buttons{width:100%}}

/* v1.3.15 h2 — currency control; consistent responsive theme. */
.currency-toggle{display:flex;gap:1px;padding:3px;border-radius:16px;border:1px solid #e6aa8066;background:rgba(41,12,36,.78);white-space:nowrap}
.currency-toggle button{color:#ffe2c6;background:transparent;font-size:11px;font-weight:800;border:0;border-radius:12px;padding:6px 8px;cursor:pointer}
.currency-toggle button.active{background:linear-gradient(135deg,#d31b72,#f35c9c);color:#fff;box-shadow:0 2px 8px #0005}
@media(max-width:600px){.currency-toggle{padding:1px;gap:0}.currency-toggle button{font-size:9px;padding:5px 5px}.topbar .top-actions{gap:3px!important}}
@media(max-width:380px){.currency-toggle button{font-size:8px;padding:5px 4px}}

/* v1.3.15: account profile details and destination form controls */
.account-profile-modal{width:min(780px,100%)}
.account-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 22px}
.account-profile-field{padding:12px 14px;border:1px solid var(--line,rgba(183,144,113,.25));border-radius:12px;overflow-wrap:anywhere;background:rgba(255,255,255,.035)}
.account-profile-field strong{display:block;margin-top:3px}
.account-profile-destination{overflow-wrap:anywhere}
.destination-form-actions{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap}
#destinationCountry{max-width:100%;width:100%}
@media(max-width:560px){.account-profile-grid{grid-template-columns:1fr}.destination-form-actions .btn{flex:1}}

/* v1.3.15 h6 — coordinated header toggles: matching dimensions, distinct meaning.
   Language stays rose/pink; currency uses complementary teal. Presentation only. */
.topbar .lang-toggle,
.topbar .currency-toggle{
  box-sizing:border-box;
  display:flex;
  flex:0 0 96px;
  width:96px;
  height:38px;
  padding:3px;
  gap:2px;
  align-items:stretch;
  border-radius:999px;
  white-space:nowrap;
}
.topbar .lang-toggle button,
.topbar .currency-toggle button{
  box-sizing:border-box;
  flex:1 1 0;
  min-width:0;
  height:30px;
  padding:0 2px;
  margin:0;
  border:0;
  border-radius:999px;
  font-size:11px;
  line-height:1;
  font-weight:800;
  text-align:center;
  cursor:pointer;
}
.topbar .currency-toggle{
  background:linear-gradient(145deg,rgba(4,38,48,.96),rgba(11,61,66,.94));
  border:1px solid rgba(113,226,218,.75);
  box-shadow:inset 0 1px rgba(204,255,250,.10),0 2px 10px rgba(2,30,35,.22);
}
.topbar .currency-toggle button{color:#a5f2e8;background:transparent}
.topbar .currency-toggle button.active{
  background:linear-gradient(135deg,#069b98,#12bbb0);
  color:#fff;
  box-shadow:0 2px 9px rgba(1,27,35,.42);
}
.topbar .currency-toggle button:hover:not(.active){background:rgba(104,218,205,.16)}
.topbar .lang-toggle button:focus-visible,
.topbar .currency-toggle button:focus-visible{
  outline:2px solid #ffe6a8;
  outline-offset:2px;
}
@media(max-width:600px){
  .topbar .lang-toggle,.topbar .currency-toggle{
    flex-basis:82px;width:82px;height:34px;padding:2px;gap:1px;
  }
  .topbar .lang-toggle button,.topbar .currency-toggle button{
    height:28px;font-size:10px;padding:0 1px;
  }
}
@media(max-width:380px){
  .topbar .lang-toggle,.topbar .currency-toggle{
    flex-basis:74px;width:74px;height:32px;padding:2px;gap:1px;
  }
  .topbar .lang-toggle button,.topbar .currency-toggle button{
    height:26px;font-size:9px;padding:0 1px;
  }
}

/* Payment-method selector: keep details legible on desktop and mobile. */
.payment-detail-card{background:linear-gradient(145deg,rgba(34,15,31,.97),rgba(13,13,22,.97));border:1px solid #cb8a58;padding:16px;border-radius:14px;overflow-wrap:anywhere}
.payment-detail-card h4{margin:0 0 12px;color:#ffe0ad;font-size:1.1rem}
.payment-info-row{margin:8px 0;line-height:1.5;color:#fff3eb}
.payment-info-row strong{color:#ffd9a5}
.payment-qr-image,.payment-qr-preview img{display:block;max-height:245px;max-width:245px;width:auto;height:auto;object-fit:contain;background:white;padding:8px;border-radius:12px;margin:10px 0}
.payment-detail-card a.btn{display:inline-flex;margin:8px 0;max-width:100%;white-space:normal}
.payment-qr-preview{min-height:8px}


/* v1.3.15 h8: role-complete navigation below the header, responsive without hidden routes. */
.app-layout{display:block!important;min-height:calc(100dvh - 140px);grid-template-columns:none!important}
.app-layout>.app-main{margin:0 auto;max-width:1680px;width:100%;min-width:0;padding:clamp(16px,2vw,30px) clamp(12px,2vw,28px) 90px}
.app-layout>.sidebar,.mobile-nav,.showcase-quick-nav{display:none!important}
.primary-nav-shell{position:relative;z-index:41;border-bottom:1px solid rgba(255,190,126,.65);background:linear-gradient(110deg,rgba(37,11,30,.97),rgba(101,20,59,.96) 52%,rgba(30,12,30,.98));box-shadow:0 6px 18px #0008}
.primary-nav-inner{max-width:1680px;margin:0 auto;padding:7px clamp(12px,2vw,26px)}
.primary-nav{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px}
.primary-nav-item{appearance:none;min-width:0;min-height:43px;padding:9px 6px;border-radius:10px;border:1px solid rgba(255,201,155,.26);color:#ffe9d1;background:rgba(18,7,19,.42);font-size:clamp(11px,.91vw,14px);font-weight:800;line-height:1.22;cursor:pointer;white-space:normal;overflow-wrap:break-word;box-shadow:inset 0 1px #ffffff10;transition:background .16s ease,box-shadow .16s ease}
.primary-nav-item:hover,.primary-nav-item:focus-visible{border-color:#ffd18e;background:#6c244d;outline-offset:2px}
.primary-nav-item.active{border-color:#ffdea5;background:linear-gradient(115deg,#ca176f,#fa5299);color:white;box-shadow:0 2px 12px #ef419d80,inset 0 1px #ffeacb66}
.primary-nav-trigger{display:none}
/* Keep toolbar content in a separate row before it can collide with branding. */
.topbar-inner{min-width:0}
.topbar .brand{min-width:0;flex-shrink:1}
.topbar .brand-copy{min-width:0}
.topbar .top-actions{min-width:0}
.topbar .top-actions>.small.strong{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1220px){.primary-nav{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){
 .primary-nav-inner{padding:6px 12px}
 .primary-nav-trigger{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:44px;padding:9px 14px;border-radius:10px;background:linear-gradient(105deg,#84234e,#dc3584);color:#fff7e6;border:1px solid #f6c484;font-weight:850;letter-spacing:.02em;box-shadow:0 2px 13px #0007;cursor:pointer}
 .primary-nav-chevron{margin-left:auto;transition:transform .15s ease}
 .menu-open .primary-nav-chevron{transform:rotate(180deg)}
 .primary-nav{display:none;grid-template-columns:repeat(2,minmax(0,1fr));padding:9px 0 5px;gap:7px}
 .menu-open .primary-nav{display:grid}
 .primary-nav-item{font-size:13px;min-height:48px;padding:10px 8px}
 .topbar-inner{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:8px 12px;min-height:unset}
 .topbar .brand{flex:1 1 180px;max-width:100%;gap:8px}
 .topbar .top-actions{flex:1 1 100%;width:100%;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:7px!important;margin:0!important}
 .topbar .brand-copy span{display:block;max-width:100%;font-size:clamp(14px,3vw,19px)}
 .topbar .brand-logo{width:46px!important;height:46px!important;min-width:46px!important}
 .topbar .lang-toggle,.topbar .currency-toggle{flex:0 0 86px;width:86px;height:36px;padding:2px;gap:1px}
 .topbar .lang-toggle button,.topbar .currency-toggle button{height:30px;font-size:10px}
 .app-layout>.app-main{padding-bottom:48px}
}
@media(max-width:480px){
 .topbar-inner{padding:7px 9px}
 .topbar .top-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important}
 .topbar .lang-toggle,.topbar .currency-toggle{width:100%;height:37px;max-width:none;flex-basis:auto}
 .topbar .lang-toggle button,.topbar .currency-toggle button{height:31px;font-size:11px}
 .topbar .top-actions>.small.strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;text-align:center;font-size:12px}
 .topbar .top-actions>.btn{display:inline-flex!important;width:100%;font-size:12px;min-height:36px;padding:6px 7px;white-space:nowrap}
 .topbar .brand{flex-basis:100%}
 .topbar .brand-copy strong{font-size:10px}
 .topbar .brand-copy span{font-size:17px}
 .primary-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
 .modal,.card,.table-wrap{max-width:100%}
}
@media(max-width:350px){.topbar .brand-copy span{font-size:15px}.primary-nav{grid-template-columns:1fr}}

/* v1.3.16: pinned two-row header and portable back-to-top affordance. */
:root{--sp-topbar-height:80px;--sp-nav-height:58px;--admin-heading-pink:#f2a9c5}
.topbar{position:sticky!important;top:0!important;z-index:80!important}
.primary-nav-shell{position:sticky!important;top:var(--sp-topbar-height)!important;z-index:79!important;-webkit-backdrop-filter:blur(13px);backdrop-filter:blur(13px)}
.view{scroll-margin-top:calc(var(--sp-topbar-height) + var(--sp-nav-height) + 12px)}
.sp-back-to-top{position:fixed;right:max(15px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));z-index:84;border:1px solid #ffc48d;background:linear-gradient(130deg,#c50d64,#fa5e9f);color:#fff;box-shadow:0 7px 23px #000b;border-radius:100px;min-width:49px;min-height:49px;font-size:25px;font-weight:900;cursor:pointer}
.sp-back-to-top[hidden]{display:none!important}
.sp-back-to-top:focus-visible{outline:3px solid #ffe2b7;outline-offset:3px}
/* Admin titles use requested faded pink, including nested panel headings. */
body:has(#admin-dashboard) .app-main .section-title h1,
body:has(#admin-dashboard) .app-main .section-title h2,
body:has(#admin-dashboard) .app-main .card > h2,
body:has(#admin-dashboard) .app-main .card > h3,
body:has(#admin-dashboard) #productFormCard > h2{color:var(--admin-heading-pink)!important}
/* Collapse without relocating form fields or breaking listeners. */
.admin-collapsible-card{position:relative;padding-top:56px}
.admin-collapsible-card>.panel-collapse-button{position:absolute;right:12px;top:10px;z-index:1}
.admin-collapsible-card.admin-panel-collapsed{min-height:59px;padding-top:45px;padding-bottom:7px}
.admin-collapsible-card.admin-panel-collapsed> :not(.panel-collapse-button){display:none!important}
.admin-collapsible-card.admin-panel-collapsed:before{content:attr(data-panel-label);position:absolute;top:17px;left:14px;color:var(--admin-heading-pink);font-weight:800;font-size:14px;max-width:calc(100% - 122px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Collapsed state applies only to explicit admin-collapsible-card and settings-accordion panels. */
.section-collapse-button{margin-inline-start:auto;flex-shrink:0}
.command-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
#admin-command .field{margin:10px 0}
#admin-command .field input[type=password],#admin-command .field input:not([type=checkbox]){width:100%}
#admin-command .box-summary-row{gap:12px;min-width:0}
#admin-command .box-summary-row span{overflow-wrap:anywhere}
#commandAuditCard .table-wrap{max-height:360px;overflow:auto}
#commandSecurityMessage{min-height:1.5em}
@media(max-width:700px){.section-title{flex-wrap:wrap}.section-collapse-button{margin-inline-start:0}.sp-back-to-top{right:12px;bottom:calc(14px + env(safe-area-inset-bottom));min-width:46px;min-height:46px}}

@media(min-width:1221px){#primaryNav:has([data-admin-view=command]){grid-template-columns:repeat(9,minmax(0,1fr))}}

body:has(#admin-dashboard) .app-main .view h1,body:has(#admin-dashboard) .app-main .view h2,body:has(#admin-dashboard) .app-main .view h3{color:var(--admin-heading-pink)!important}
/* Command Center stacks at phone/tablet widths; never force a two-column min-width overflow. */
#admin-command>.grid,#admin-command>.grid.grid-2{min-width:0}
#admin-command .card,#admin-command .table-wrap{min-width:0;max-width:100%}
@media(max-width:900px){#admin-command>.grid.grid-2{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:470px){#admin-command>.grid.grid-4{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}#admin-command .metric{min-width:0}}


/* v1.3.16 admin-collapse readability & Settings accordion correction (visual only). */
:root{--admin-heading-dark:#672544;--admin-heading-blush:rgba(255,228,233,.97)}
body:has(#admin-dashboard) .app-main .view .section-title h1,
body:has(#admin-dashboard) .app-main .view .section-title h2,
body:has(#admin-dashboard) .app-main .view .card > h2,
body:has(#admin-dashboard) .app-main .view .card > h3,
body:has(#admin-dashboard) .app-main .view .card > .section-title h3,
body:has(#admin-dashboard) .app-main .view #productFormCard > h2,
body:has(#admin-dashboard) .app-main .settings-accordion h3{
 color:var(--admin-heading-dark)!important;
 background:linear-gradient(100deg,var(--admin-heading-blush),rgba(255,205,222,.95));
 border:1px solid rgba(122,44,77,.34);border-radius:9px;
 padding:5px 10px;display:inline-block;width:max-content;max-width:100%;
 line-height:1.25;text-shadow:none!important;box-shadow:0 2px 9px rgba(12,3,13,.27);
 overflow-wrap:anywhere;
}
/* Collapsed cards must NOT stretch to fill the height of an expanded neighboring grid card. */
body:has(#admin-dashboard) .app-main .grid{align-items:start}
body:has(#admin-dashboard) .app-main .admin-collapsible-card{align-self:start;min-height:0}
body:has(#admin-dashboard) .app-main .admin-collapsible-card.admin-panel-collapsed{
 box-sizing:border-box;height:57px!important;min-height:57px!important;max-height:57px!important;
 padding:0 12px!important;overflow:hidden;align-self:start;
}
body:has(#admin-dashboard) .app-main .admin-collapsible-card.admin-panel-collapsed:before{
 content:attr(data-panel-label);left:13px;top:16px;max-width:calc(100% - 120px);
 color:#ffe3cc;font-weight:800;
}
body:has(#admin-dashboard) .app-main .admin-collapsible-card.admin-panel-collapsed>.panel-collapse-button{top:9px}
body:has(#admin-dashboard) .app-main .admin-collapsible-card.admin-panel-collapsed> :not(.panel-collapse-button){display:none!important}
body:has(#admin-dashboard) .app-main .section-collapse-button{white-space:nowrap}
/* Preserve form semantics and the two-column field layout inside expandable Settings groups. */
#admin-settings #settingsForm>.settings-accordion{grid-column:1/-1;min-width:0;min-height:0;
 border:1px solid rgba(225,163,115,.63);border-radius:13px;background:rgba(20,10,23,.54);padding:13px 15px;
}
#admin-settings .settings-accordion-header{display:flex;gap:12px;align-items:center;justify-content:space-between;min-width:0}
#admin-settings .settings-accordion-header>.settings-accordion-title{min-width:0;flex:1}
#admin-settings .settings-accordion-header .settings-accordion-title h3,
#admin-settings .settings-accordion-header .settings-accordion-title>h3{margin:0 0 5px}
#admin-settings .settings-accordion-header .settings-accordion-title .small{margin:3px 0;color:#ffe2d4}
#admin-settings .settings-accordion-toggle{flex-shrink:0;white-space:nowrap}
#admin-settings .settings-accordion-body{margin-top:15px;min-width:0}
#admin-settings .settings-group-collapsed .settings-accordion-body{display:none!important}
#admin-settings .settings-group-collapsed{padding-top:10px!important;padding-bottom:10px!important}
#admin-settings .settings-accordion .field{min-width:0}
@media(max-width:560px){#admin-settings .settings-accordion-body{grid-template-columns:minmax(0,1fr)}
#admin-settings .settings-accordion-header{align-items:start}#admin-settings #settingsForm>.settings-accordion{padding:12px 10px}}

/* v1.3.16 order-actions usability: teal save action distinguishes it from Cancel/Advance. */
.btn-save-pricing{background:linear-gradient(112deg,#087f77,#11b8a6)!important;color:#fff!important;border:2px solid #d4f8e7!important;box-shadow:0 7px 18px rgba(0,10,12,.45),0 0 0 1px #d0aa66!important;font-weight:900!important}
.btn-save-pricing:hover,.btn-save-pricing:focus-visible{background:linear-gradient(112deg,#06594f,#0ca996)!important;outline:2px solid #fff2cb;outline-offset:2px}
.order-actions{white-space:nowrap}.order-actions>.btn{margin:2px}
