:root{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#171717;background:#f7f7f7;--orange:#f97316;--orange2:#ea580c;--text:#171717;
  --muted:#777;--line:#e6e6e6;--soft:#f4f4f4;--card:#fff;--shadow:0 8px 24px rgba(0,0,0,.07)
}
*{box-sizing:border-box}html{background:#f7f7f7}body{margin:0;background:#f7f7f7;color:var(--text)}
button,input,select,textarea{font:inherit}.app-shell{min-height:100vh}
.page-wrap{max-width:1540px;margin:0 auto;padding:0 18px 110px}
.desktop-header{background:#fff;border-bottom:1px solid #ececec;box-shadow:0 2px 8px rgba(0,0,0,.04);position:sticky;top:0;z-index:50}
.header-inner{max-width:1540px;margin:auto;padding:12px 18px 16px}
.header-row{display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand-zone{display:flex;align-items:center;gap:12px;min-width:220px}.brand-logo{width:58px;height:58px;border-radius:17px;background:#141414;color:#fff;display:grid;place-items:center;font-weight:1000;font-size:21px;letter-spacing:-1px}.brand-copy h1{margin:0;font-size:20px;line-height:1;font-weight:900}.brand-copy small{display:block;margin-top:6px;color:#7c7c7c;font-size:12px;font-weight:700}
.header-actions{display:flex;align-items:center;gap:16px}.points-pill{background:#f3f3f3;border-radius:28px;padding:9px 16px;min-width:144px}.points-pill small{display:block;font-size:10px;color:#8c8c8c;font-weight:800}.points-pill strong{font-size:14px}.cart-top{position:relative;width:48px;height:48px;border:0;background:#fff;border-radius:50%;display:grid;place-items:center;cursor:pointer;font-size:25px}.cart-badge{position:absolute;right:0;top:0;min-width:20px;height:20px;border-radius:999px;background:var(--orange);color:#fff;font-size:11px;font-weight:900;display:grid;place-items:center;padding:0 5px;border:2px solid #fff}
.search-row{margin-top:12px;display:flex;align-items:center;gap:10px;background:#f3f3f3;border-radius:28px;padding:4px 6px 4px 18px}.search-row .search-ico{font-size:22px;color:#8a8a8a}.search-row input{flex:1;border:0;background:transparent;outline:none;padding:12px 4px;font-size:17px}.camera-btn{width:50px;height:50px;border-radius:50%;border:0;background:var(--orange);color:#fff;font-size:22px;cursor:pointer}
.announcement{margin-top:0;background:var(--orange);color:#fff;padding:13px 24px;font-weight:900;font-size:14px;letter-spacing:.1px}
.hero-card{margin:24px auto 0;background:#fff;border:1px solid #e5e5e5;border-radius:24px;padding:32px;display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center;box-shadow:0 1px 2px rgba(0,0,0,.02)}
.hero-card .eyebrow{color:#666;font-weight:700;font-size:14px}.hero-card h2{font-size:34px;margin:4px 0 10px;font-weight:1000}.hero-card .tagline{font-size:18px;color:#6b6b6b;margin-bottom:24px}.hero-buttons{display:flex;gap:12px;flex-wrap:wrap}.primary-btn,.soft-btn{border:0;border-radius:22px;padding:13px 20px;font-weight:900;cursor:pointer}.primary-btn{background:var(--orange);color:#fff}.soft-btn{background:#f2f2f2;border:1px solid #e1e1e1;color:#222}.hero-logo-card{width:150px;text-align:center}.hero-logo-box{width:130px;height:130px;border-radius:18px;background:#171717;color:#fff;display:grid;place-items:center;font-size:48px;font-weight:1000;margin:auto;box-shadow:0 8px 16px rgba(0,0,0,.15)}.hero-logo-card em{display:block;margin-top:8px;color:#777;font-size:12px}
.benefits{display:flex;gap:16px;flex-wrap:wrap;margin:28px 0 22px}.benefit{background:#fff;border:1px solid #e3e3e3;border-radius:16px;padding:13px 20px;font-weight:800;display:flex;gap:9px;align-items:center}
.full-catalog{width:100%;border:0;border-radius:18px;padding:18px;background:var(--orange);color:#fff;font-size:16px;font-weight:1000;cursor:pointer;box-shadow:0 6px 12px rgba(249,115,22,.24)}
.rail-section{margin-top:34px}.rail-head{display:flex;align-items:center;justify-content:space-between;border-left:5px solid var(--rail,#fb923c);background:var(--railbg,#fff1e8);padding:14px 18px 14px 22px}.rail-title{display:flex;align-items:center;gap:14px}.rail-icon{width:50px;height:50px;border-radius:14px;background:var(--rail,#fb923c);color:#fff;display:grid;place-items:center;font-size:23px;box-shadow:0 5px 12px rgba(0,0,0,.12)}.rail-title h3{margin:0;font-size:20px}.rail-title p{margin:2px 0 0;color:#777;font-size:13px}.rail-controls{display:flex;align-items:center;gap:12px}.view-all{border:0;background:transparent;color:var(--orange2);font-weight:900;cursor:pointer}.arrow-btn{width:42px;height:42px;border-radius:50%;background:#fff;border:1px solid #ddd;font-size:24px;cursor:pointer}
.products-rail{display:flex;gap:18px;overflow-x:auto;padding:18px 2px 10px;scroll-snap-type:x mandatory;scrollbar-width:thin}.product-card{flex:0 0 258px;background:#fff;border:1px solid #e3e3e3;border-radius:20px;overflow:hidden;scroll-snap-align:start;box-shadow:0 2px 6px rgba(0,0,0,.05);position:relative}.latest-badge{position:absolute;top:12px;left:12px;z-index:2;background:#ff7600;color:#fff;border-radius:999px;padding:5px 12px;font-size:11px;font-weight:900}.product-img{width:100%;height:260px;object-fit:cover;background:#eee}.product-body{padding:14px 15px 16px}.category-label{font-size:12px;color:#777;text-transform:uppercase;margin-bottom:4px}.product-name{font-size:17px;font-weight:1000;line-height:1.22;min-height:42px;margin:0 0 6px}.price-line{display:flex;align-items:center;gap:8px}.price{font-size:20px;font-weight:1000}.discount-pill{margin-left:auto;background:#fff0e8;color:var(--orange2);font-weight:900;font-size:11px;border-radius:999px;padding:5px 9px}.discount-price{font-size:12px;color:var(--orange2);font-weight:900;margin-top:1px}
.qty-box{margin-top:12px;border:1px solid #e2e2e2;border-radius:14px;background:#fafafa;padding:7px 10px;display:flex;align-items:center;justify-content:space-between}.qty-box span:first-child{font-size:12px;color:#757575;font-weight:800}.qty-controls{display:flex;align-items:center;gap:12px}.qty-controls button{width:31px;height:31px;border-radius:50%;border:1px solid #e1e1e1;background:#fff;font-size:20px;cursor:pointer}.qty-controls b{font-size:16px}.max-stock{text-align:center;color:#777;font-size:11px;margin:10px 0 7px}
.card-actions{display:grid;gap:8px}.outline-orange,.buy-now,.price-match{width:100%;border-radius:14px;padding:11px 10px;font-weight:900;cursor:pointer}.outline-orange{background:#fff7f2;border:1.5px solid #ffc4a5;color:var(--orange2)}.buy-now{background:#fff5ec;border:1px solid #f2dfd1;color:#c84b0b}.price-match{background:#fff;border:1.5px dashed #ffab78;color:#f05a11}
.floating-chat{position:fixed;right:24px;bottom:28px;z-index:80;width:70px;height:70px;border-radius:50%;background:var(--orange);color:#fff;border:5px solid #fff;box-shadow:0 8px 20px rgba(0,0,0,.22);display:grid;place-items:center;font-size:32px;cursor:pointer}.floating-chat-label{position:fixed;right:12px;bottom:8px;background:#444;color:#fff;border-radius:999px;padding:4px 11px;font-size:10px;z-index:79}
.inner-page{padding-top:28px}.page-title{display:flex;justify-content:space-between;align-items:end;margin-bottom:14px}.page-title h2{margin:0;font-size:28px}.page-title span{color:#777}.panel{background:#fff;border:1px solid #e4e4e4;border-radius:18px;padding:18px;margin-bottom:14px}.cart-item{display:grid;grid-template-columns:72px 1fr auto;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid #eee}.cart-item:last-child{border-bottom:0}.cart-item img{width:72px;height:72px;object-fit:cover;border-radius:14px}.cart-total{display:flex;justify-content:space-between;font-size:20px;font-weight:1000;margin-top:16px}.empty{text-align:center;padding:50px 20px;color:#777}.field{display:grid;gap:6px;margin-bottom:12px}.field label{font-size:12px;color:#777;font-weight:800}.field input,.field select,.field textarea{border:1px solid #ddd;border-radius:12px;padding:12px;background:#fff}.admin-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.admin-card{background:#fff;border:1px solid #e3e3e3;border-radius:16px;padding:16px;min-height:110px}.admin-card i{font-style:normal;font-size:24px}.admin-card b{display:block;margin-top:9px}.admin-card span{font-size:12px;color:#777}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.kpi{background:#fff;border:1px solid #e3e3e3;border-radius:16px;padding:16px}.kpi strong{display:block;font-size:24px}.kpi small{color:#777}
.mobile-nav{display:none}
@media(max-width:780px){
  .page-wrap{padding:0 10px 90px}.header-inner{padding:10px}.brand-logo{width:46px;height:46px;border-radius:14px}.brand-copy h1{font-size:16px}.brand-copy small{font-size:10px}.points-pill{display:none}.header-actions{gap:4px}.cart-top{width:42px;height:42px}.search-row{margin-top:10px;padding-left:12px}.search-row input{font-size:15px}.camera-btn{width:44px;height:44px}
  .announcement{padding:11px 14px;font-size:12px}.hero-card{grid-template-columns:1fr;padding:22px 18px;margin-top:14px}.hero-card h2{font-size:28px}.hero-card .tagline{font-size:15px}.hero-logo-card{display:none}.benefits{gap:8px;margin:14px 0}.benefit{font-size:12px;padding:10px 12px}.full-catalog{padding:15px}
  .rail-section{margin-top:24px}.rail-head{padding:11px 10px}.rail-icon{width:42px;height:42px}.rail-title h3{font-size:16px}.rail-title p{font-size:11px}.rail-controls .arrow-btn{display:none}.product-card{flex-basis:78vw;max-width:300px}.product-img{height:255px}.floating-chat{width:62px;height:62px;right:14px;bottom:78px}.floating-chat-label{display:none}
  .mobile-nav{display:block;position:fixed;bottom:0;left:0;right:0;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-top:1px solid #e6e6e6;z-index:70;padding:6px 4px max(7px,env(safe-area-inset-bottom))}.mobile-nav-inner{display:grid;grid-template-columns:repeat(5,1fr);max-width:760px;margin:auto}.mobile-nav button{border:0;background:none;color:#777;font-size:10px;padding:5px;display:grid;gap:2px;place-items:center}.mobile-nav button span{font-size:19px}.mobile-nav button.active{color:var(--orange2);font-weight:900}
  .admin-grid{grid-template-columns:repeat(2,1fr)}.kpis{grid-template-columns:repeat(2,1fr)}.cart-item{grid-template-columns:56px 1fr auto}.cart-item img{width:56px;height:56px}
}

.toast{position:fixed;left:50%;bottom:95px;transform:translateX(-50%);z-index:120;background:#171717;color:#fff;padding:10px 16px;border-radius:999px;font-size:12px;font-weight:800;box-shadow:0 8px 24px rgba(0,0,0,.22)}
.catalog-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.catalog-filters .soft-btn{padding:9px 14px}.filter-active{background:#fff0e8!important;border-color:#ffb98e!important;color:#d94d00!important}.catalog-grid{flex-wrap:wrap;overflow:visible}
.cart-meta{color:#777;font-size:12px;margin-top:5px}.checkout-btn{margin-top:18px}.delivery-total{font-size:15px}.order-panel{border-left:4px solid var(--orange)}.order-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.order-panel p{color:#777;font-size:12px}.order-tag{font-size:11px;font-weight:900;padding:5px 9px;border-radius:999px;background:#fff0e8;color:#d94d00}.community-post{display:grid;grid-template-columns:48px 1fr;gap:12px}.community-post p{color:#666}.community-avatar{width:48px;height:48px;border-radius:50%;background:linear-gradient(145deg,#f97316,#ea580c);color:#fff;display:grid;place-items:center;font-weight:1000}.account-head{display:flex;justify-content:space-between;align-items:center}.account-head p{margin:4px 0 0;color:#777;font-size:12px}.account-actions{display:grid;gap:10px}
.photo-modal{position:fixed;inset:0;z-index:150;background:rgba(0,0,0,.58);display:grid;place-items:center;padding:18px}.photo-sheet{position:relative;width:min(430px,100%);background:#fff;border-radius:24px;padding:22px;box-shadow:0 22px 60px rgba(0,0,0,.28)}.photo-close{position:absolute;right:14px;top:12px;width:34px;height:34px;border-radius:50%;border:0;background:#f2f2f2;font-size:24px;cursor:pointer}.photo-title{font-size:22px;font-weight:1000;padding-right:42px}.photo-sub{font-size:13px;color:#777;margin:6px 0 14px;line-height:1.45}.photo-preview{display:block;width:100%;max-height:330px;object-fit:contain;border-radius:16px;background:#f2f2f2;border:1px solid #eee}.photo-actions{display:grid;gap:9px;margin-top:15px}.photo-send{width:100%}.photo-note{font-size:11px;color:#888;line-height:1.45;margin-top:12px}
@media(max-width:780px){.catalog-grid .product-card{flex-basis:calc(50% - 7px);max-width:none}.catalog-grid .product-img{height:180px}.catalog-grid .product-name{font-size:14px}.catalog-grid .card-actions .price-match{display:none}.photo-sheet{padding:18px}.photo-preview{max-height:45vh}}
@media(max-width:520px){.catalog-grid{gap:10px}.catalog-grid .product-card{flex-basis:calc(50% - 5px)}.catalog-grid .product-body{padding:10px}.catalog-grid .product-img{height:150px}.catalog-grid .price{font-size:16px}.catalog-grid .qty-box{padding:5px 7px}.catalog-grid .qty-box>span{display:none}.catalog-grid .max-stock{font-size:10px}.catalog-grid .outline-orange,.catalog-grid .buy-now{font-size:11px;padding:9px 6px}}

/* ===== D'CARLOS BLUE PREMIUM — 2026-10-05 ===== */
:root{
  --orange:#2563eb;
  --orange2:#1d4ed8;
  --dc-blue:#2563eb;
  --dc-blue-dark:#0b1f3a;
  --dc-blue-deep:#071426;
  --dc-cyan:#38bdf8;
  --dc-ice:#eff6ff;
  --dc-line:#dbe7f5;
}
html,body{background:#f3f7fc}
.desktop-header{
  background:rgba(255,255,255,.94);
  border-bottom:1px solid #dfe9f5;
  box-shadow:0 8px 30px rgba(15,49,88,.06);
  backdrop-filter:blur(18px)
}
.header-inner{padding-top:14px;padding-bottom:14px}
.brand-logo{
  background:linear-gradient(145deg,#0b1f3a,#2563eb);
  box-shadow:0 9px 24px rgba(37,99,235,.22);
  border-radius:18px
}
.brand-copy h1{letter-spacing:-.5px;color:#0b1f3a}
.brand-copy small{color:#6b7f99}
.points-pill{background:#eff6ff;border:1px solid #dbeafe}
.points-pill strong{color:#1d4ed8}
.cart-top{background:#eef5ff;color:#12315a}
.cart-badge{background:#2563eb}
.search-row{
  background:#f5f8fc;
  border:1px solid #e0e9f4;
  box-shadow:inset 0 1px 0 #fff
}
.search-row:focus-within{
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(59,130,246,.10)
}
.camera-btn{
  background:linear-gradient(145deg,#2563eb,#0ea5e9);
  box-shadow:0 7px 18px rgba(37,99,235,.25)
}
.announcement{
  max-width:1540px;
  margin:16px auto 0;
  width:calc(100% - 36px);
  border-radius:14px;
  background:linear-gradient(90deg,#0b1f3a,#123e75);
  color:#dbeafe;
  box-shadow:0 12px 30px rgba(11,31,58,.10)
}
.page-wrap{padding-top:4px}
.hero-card{
  min-height:340px;
  padding:46px 48px;
  border:0;
  background:
    radial-gradient(circle at 82% 20%,rgba(56,189,248,.25),transparent 28%),
    radial-gradient(circle at 92% 90%,rgba(59,130,246,.28),transparent 32%),
    linear-gradient(135deg,#071426,#0b2749 62%,#123e75);
  box-shadow:0 24px 55px rgba(8,35,67,.22);
  color:white;
  position:relative;
  overflow:hidden
}
.hero-card:before{
  content:"";
  position:absolute;
  width:250px;height:250px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:50%;
  right:60px;top:-95px
}
.hero-card:after{
  content:"";
  position:absolute;
  width:360px;height:360px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:50%;
  right:-110px;bottom:-225px
}
.hero-card>div{position:relative;z-index:2}
.hero-card .eyebrow{
  display:inline-flex;
  color:#bfdbfe;
  background:rgba(59,130,246,.15);
  border:1px solid rgba(147,197,253,.20);
  border-radius:999px;
  padding:7px 12px;
  font-size:11px;
  letter-spacing:.7px;
  text-transform:uppercase
}
.hero-card h2{
  font-size:44px;
  line-height:1.02;
  max-width:720px;
  letter-spacing:-1.4px;
  margin-top:15px
}
.hero-card .tagline{color:#b9cbe0;max-width:650px}
.primary-btn{
  background:linear-gradient(135deg,#3b82f6,#2563eb);
  box-shadow:0 8px 22px rgba(37,99,235,.25)
}
.hero-card .primary-btn{
  background:#fff;
  color:#0b2749;
  box-shadow:0 8px 24px rgba(0,0,0,.18)
}
.hero-card .soft-btn{
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.18);
  color:#fff
}
.hero-logo-card{width:180px}
.hero-logo-box{
  width:150px;height:150px;
  background:linear-gradient(145deg,#fff,#e9f4ff);
  color:#123e75;
  box-shadow:0 18px 40px rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.75)
}
.hero-logo-card em{color:#bdd0e6}
.benefits{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin:18px 0
}
.benefit{
  border:1px solid #dce8f5;
  background:rgba(255,255,255,.93);
  border-radius:17px;
  box-shadow:0 7px 20px rgba(18,62,117,.05);
  color:#16395f
}
.full-catalog{
  background:linear-gradient(90deg,#2563eb,#0284c7);
  border-radius:16px;
  box-shadow:0 9px 24px rgba(37,99,235,.20)
}
.rail-section{
  background:#fff;
  padding:18px;
  border:1px solid #e2ebf5;
  border-radius:24px;
  box-shadow:0 10px 30px rgba(22,57,95,.06);
  margin-top:22px
}
.rail-head{
  border-left:0;
  background:transparent!important;
  padding:2px 2px 12px
}
.rail-icon{
  background:linear-gradient(145deg,#dbeafe,#bfdbfe)!important;
  color:#1d4ed8;
  box-shadow:none;
  border:1px solid #bfdbfe
}
.rail-title h3{color:#102a49;letter-spacing:-.25px}
.rail-title p{color:#7890a9}
.view-all{color:#2563eb}
.arrow-btn{color:#2563eb;border-color:#d7e4f3;background:#f8fbff}
.products-rail{
  gap:14px;
  padding-top:7px;
  scrollbar-color:#b8cce4 transparent
}
.product-card{
  flex-basis:242px;
  border:1px solid #e0e9f3;
  border-radius:20px;
  box-shadow:none;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease
}
.product-card:hover{
  transform:translateY(-4px);
  border-color:#bfdbfe;
  box-shadow:0 14px 32px rgba(30,64,175,.10)
}
.product-img{height:230px;background:#eef4fb}
.latest-badge{
  background:rgba(7,20,38,.92);
  color:#fff;
  box-shadow:0 5px 14px rgba(7,20,38,.16)
}
.category-label{color:#64748b;font-weight:800;letter-spacing:.3px}
.product-name{color:#10233e}
.price{color:#071426}
.discount-pill{
  background:#e8f1ff;
  color:#1d4ed8
}
.discount-price{color:#2563eb}
.qty-box{
  background:#f7faff;
  border-color:#dae6f2
}
.qty-controls button{color:#1d4ed8;border-color:#d5e2f0}
.outline-orange{
  background:#eef5ff;
  border-color:#b9d5ff;
  color:#1d4ed8
}
.buy-now{
  background:#0b2749;
  border-color:#0b2749;
  color:#fff
}
.price-match{
  border-color:#93c5fd;
  color:#2563eb;
  background:#fff
}
.floating-chat{
  background:linear-gradient(145deg,#2563eb,#0284c7);
  box-shadow:0 10px 28px rgba(37,99,235,.30)
}
.panel,.admin-card,.kpi{
  border-color:#dfe9f4;
  box-shadow:0 8px 24px rgba(22,57,95,.05)
}
.page-title h2{color:#102a49}
.order-tag{background:#eaf2ff;color:#1d4ed8}
.community-avatar{background:linear-gradient(145deg,#2563eb,#0ea5e9)}
.photo-sheet{border:1px solid #dce8f5}
.photo-title{color:#102a49}
.photo-modal{background:rgba(3,15,31,.68)}
.filter-active{
  background:#eaf2ff!important;
  border-color:#9fc2f7!important;
  color:#1d4ed8!important
}
.mobile-nav{
  border-top-color:#dce6f1;
  box-shadow:0 -8px 24px rgba(15,49,88,.06)
}
.mobile-nav button.active{color:#2563eb}
@media(max-width:780px){
  .announcement{width:calc(100% - 20px);margin-top:10px;border-radius:12px}
  .hero-card{min-height:auto;padding:28px 22px;border-radius:22px}
  .hero-card h2{font-size:34px;max-width:520px}
  .benefits{grid-template-columns:1fr 1fr}
  .benefit:last-child{grid-column:1/-1}
  .rail-section{padding:12px;border-radius:20px;margin-top:15px}
  .product-card{flex-basis:76vw}
  .product-img{height:235px}
  .floating-chat{bottom:80px}
}

/* ===== PRODUCT GRID MOBILE FIX ===== */
.catalog-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  overflow:visible!important;
  padding:4px 0 12px!important;
}
.catalog-grid .product-card{
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  flex:none!important;
}
.catalog-grid .product-img{
  width:100%;
  aspect-ratio:1/1;
  height:auto!important;
  object-fit:cover;
}
.catalog-grid .product-body{padding:12px}
.catalog-grid .product-name{
  min-height:40px;
  font-size:15px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden
}
.catalog-grid .price{font-size:18px}
.catalog-grid .qty-box{margin-top:9px}
.catalog-grid .card-actions{gap:7px}
.catalog-grid .outline-orange,
.catalog-grid .buy-now,
.catalog-grid .price-match{font-size:12px;padding:10px 7px}
@media(max-width:1100px){
  .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:780px){
  .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .catalog-grid .product-card{border-radius:16px}
  .catalog-grid .latest-badge{top:8px;left:8px;padding:4px 8px;font-size:9px}
  .catalog-grid .product-body{padding:9px}
  .catalog-grid .category-label{font-size:9px}
  .catalog-grid .product-name{font-size:13px;line-height:1.18;min-height:31px}
  .catalog-grid .price{font-size:16px}
  .catalog-grid .discount-pill{font-size:9px;padding:4px 6px}
  .catalog-grid .discount-price{font-size:10px}
  .catalog-grid .qty-box{padding:5px 6px;border-radius:11px}
  .catalog-grid .qty-box>span{display:none}
  .catalog-grid .qty-controls{width:100%;justify-content:space-between;gap:4px}
  .catalog-grid .qty-controls button{width:28px;height:28px;font-size:17px}
  .catalog-grid .qty-controls b{font-size:14px}
  .catalog-grid .max-stock{font-size:9px;margin:7px 0 5px}
  .catalog-grid .outline-orange,
  .catalog-grid .buy-now{font-size:10px;padding:8px 5px;border-radius:10px}
  .catalog-grid .price-match{display:none}
}
@media(max-width:390px){
  .catalog-grid{gap:8px}
  .catalog-grid .product-name{font-size:12px}
  .catalog-grid .price{font-size:15px}
}

/* ===== ORDER FLOW DETAILS ===== */
.order-customer{display:grid;gap:3px;margin:12px 0;padding:10px 12px;border-radius:12px;background:#f7faff;border:1px solid #e1eaf4}
.order-customer span{font-size:12px;color:#334155}.order-customer small{font-size:11px;color:#64748b}
.order-lines{display:grid;gap:7px;margin:12px 0;padding-top:10px;border-top:1px solid #e6edf5}
.order-lines>div{display:flex;justify-content:space-between;gap:12px;font-size:12px}
.order-lines>div span{color:#334155}.order-lines>div b{white-space:nowrap;color:#0f2747}
.order-payment{margin-top:12px;padding-top:12px;border-top:1px solid #e6edf5}
.order-payment span{font-size:11px;color:#64748b;max-width:72%}

/* ===== COMMUNITY WHATSAPP COMPOSER ===== */
.community-page{padding-bottom:150px}
.community-hero{
  display:flex;justify-content:space-between;align-items:center;gap:18px;
  background:linear-gradient(135deg,#0b1f3a,#123e75);
  color:#fff;border-radius:22px;padding:24px 22px;margin-bottom:14px;
  box-shadow:0 16px 34px rgba(11,31,58,.16)
}
.community-hero h2{margin:5px 0 8px;font-size:26px;line-height:1.06}
.community-hero p{margin:0;color:#c7d8eb;max-width:620px;font-size:13px;line-height:1.5}
.zone-kicker{font-size:10px;font-weight:900;letter-spacing:1px;color:#93c5fd}
.community-badge{width:64px;height:64px;border-radius:18px;background:#fff;color:#2563eb;display:grid;place-items:center;font-size:30px;flex:none}
.community-tabs{display:flex;gap:8px;overflow:auto;padding:2px 0 12px}
.community-tabs button{white-space:nowrap;border:1px solid #dce7f2;background:#fff;border-radius:999px;padding:9px 13px;color:#64748b;font-weight:800;font-size:12px}
.community-tabs .active{background:#2563eb;color:#fff;border-color:#2563eb}
.community-post-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.community-post-top span{font-size:10px;font-weight:900;padding:4px 8px;border-radius:999px;background:#eef5ff;color:#2563eb}
.community-create-fab{
  position:fixed;left:20px;bottom:28px;z-index:85;
  border:0;border-radius:999px;padding:15px 19px;
  background:linear-gradient(135deg,#2563eb,#0ea5e9);color:#fff;
  font-weight:1000;box-shadow:0 14px 28px rgba(37,99,235,.28);
  display:flex;align-items:center;gap:8px;cursor:pointer
}
.community-create-fab span{font-size:23px;line-height:1}
.community-compose-modal{position:fixed;inset:0;z-index:170;background:rgba(3,15,31,.70);display:grid;place-items:center;padding:16px}
.community-compose-sheet{position:relative;width:min(480px,100%);background:#fff;border-radius:24px;padding:22px;box-shadow:0 26px 70px rgba(0,0,0,.28)}
.community-compose-sheet h3{margin:6px 0 8px;font-size:23px;color:#102a49}
.community-compose-sheet>p{margin:0 0 16px;color:#64748b;font-size:13px;line-height:1.5}
.community-compose-actions{display:grid;grid-template-columns:1fr auto;gap:9px;margin-top:14px}
.community-compose-note{display:block;color:#8898aa;font-size:10px;line-height:1.4;margin-top:10px}
@media(max-width:780px){
  .community-page{padding-bottom:180px}
  .community-hero{padding:20px 17px;border-radius:18px}
  .community-hero h2{font-size:22px}
  .community-badge{width:52px;height:52px}
  .community-create-fab{left:16px;bottom:82px;padding:13px 17px}
  .community-compose-sheet{padding:18px}
  .community-compose-actions{grid-template-columns:1fr}
}

/* ===== SUPPORT CHAT LINK ===== */
.support-chat-modal{position:fixed;inset:0;z-index:180;background:rgba(3,15,31,.72);display:grid;place-items:center;padding:16px}
.support-chat-sheet{width:min(500px,100%);background:#fff;border-radius:24px;padding:20px;box-shadow:0 26px 70px rgba(0,0,0,.3)}
.support-chat-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.support-chat-head h3{margin:5px 0 12px;font-size:23px;color:#102a49}
.support-chat-bubble{padding:12px 14px;border-radius:15px;margin-bottom:12px;font-size:13px;line-height:1.45}
.support-chat-bubble.bot{background:#eef5ff;color:#16395f;border:1px solid #dbeafe}
.support-chat-options{display:flex;gap:7px;overflow:auto;padding:1px 0 12px}
.support-chat-options button{white-space:nowrap;border:1px solid #dbe7f3;background:#fff;border-radius:999px;padding:8px 11px;font-size:11px;font-weight:800;color:#64748b}
.support-chat-options button.active{background:#2563eb;color:#fff;border-color:#2563eb}
.support-chat-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
@media(max-width:560px){.support-chat-sheet{padding:17px}.support-chat-actions{grid-template-columns:1fr}.support-chat-options{scrollbar-width:none}}

/* ===== DELIVERY LOCATION ===== */
.delivery-location-card{display:grid;gap:14px}
.delivery-location-head{display:flex;align-items:center;gap:12px}
.delivery-location-icon{width:48px;height:48px;border-radius:14px;background:#eaf2ff;color:#2563eb;display:grid;place-items:center;font-size:24px}
.delivery-location-head b{font-size:17px;color:#102a49}.delivery-location-head p{margin:3px 0 0;color:#64748b;font-size:12px}
.map-placeholder{min-height:160px;border-radius:18px;background:linear-gradient(145deg,#eaf2ff,#f8fbff);border:1px solid #dbe7f3;display:grid;place-items:center;text-align:center;padding:22px}
.map-placeholder span{font-size:42px}.map-placeholder strong{display:block;color:#16395f}.map-placeholder small{color:#64748b;max-width:90%;overflow-wrap:anywhere}
.delivery-location-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.map-link{text-decoration:none;text-align:center}
.delivery-location-modal{position:fixed;inset:0;z-index:190;background:rgba(3,15,31,.72);display:grid;place-items:center;padding:16px}
.delivery-location-sheet{position:relative;width:min(500px,100%);background:#fff;border-radius:24px;padding:22px;box-shadow:0 26px 70px rgba(0,0,0,.3)}
.location-modal-title{font-size:23px;font-weight:1000;color:#102a49;padding-right:40px}.delivery-location-sheet>p{color:#64748b;line-height:1.5;font-size:13px}
.location-current-btn{width:100%;border:0;border-radius:14px;background:linear-gradient(135deg,#2563eb,#0ea5e9);color:#fff;padding:14px;font-weight:900}
.location-current-btn:disabled{opacity:.65}
.location-divider{display:flex;align-items:center;gap:10px;color:#94a3b8;margin:14px 0}.location-divider:before,.location-divider:after{content:"";height:1px;background:#e2e8f0;flex:1}
.location-save-link{width:100%}.location-tip{display:block;color:#7c8fa4;font-size:10px;line-height:1.5;margin-top:10px}
.location-status{margin-top:10px;color:#b45309;font-size:11px;line-height:1.4}
.checkout-location-btn{margin-top:7px}
@media(max-width:560px){.delivery-location-actions{grid-template-columns:1fr}.delivery-location-sheet{padding:18px}.map-placeholder{min-height:135px}}

/* ===== DELIVERY LOCATION ===== */
.delivery-location-card{display:grid;gap:14px}
.delivery-location-head{display:flex;align-items:center;gap:12px}
.delivery-location-icon{width:48px;height:48px;border-radius:15px;background:#eef5ff;color:#2563eb;display:grid;place-items:center;font-size:24px}
.delivery-location-head b{font-size:17px;color:#102a49}.delivery-location-head p{margin:3px 0 0;color:#64748b;font-size:12px}
.map-placeholder{min-height:170px;border-radius:18px;background:
 linear-gradient(145deg,rgba(219,234,254,.95),rgba(239,246,255,.95)),
 repeating-linear-gradient(0deg,transparent,transparent 25px,rgba(37,99,235,.05) 26px);
 border:1px solid #dbeafe;display:grid;place-items:center;text-align:center;padding:22px}
.map-placeholder span{font-size:34px}.map-placeholder strong{display:block;color:#173a63}.map-placeholder small{color:#64748b;max-width:92%;word-break:break-word}
.delivery-location-actions{display:flex;gap:9px;flex-wrap:wrap}.map-link{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.delivery-location-modal{position:fixed;inset:0;z-index:190;background:rgba(3,15,31,.72);display:grid;place-items:center;padding:16px}
.delivery-location-sheet{position:relative;width:min(500px,100%);background:#fff;border-radius:24px;padding:22px;box-shadow:0 26px 70px rgba(0,0,0,.30)}
.location-modal-title{font-size:23px;font-weight:1000;color:#102a49;padding-right:42px}
.delivery-location-sheet>p{color:#64748b;line-height:1.5;font-size:13px}
.location-current-btn{width:100%;border:0;border-radius:15px;padding:14px;background:linear-gradient(135deg,#2563eb,#0ea5e9);color:#fff;font-weight:1000;cursor:pointer}
.location-current-btn:disabled{opacity:.65}
.location-divider{display:flex;align-items:center;gap:10px;color:#94a3b8;margin:14px 0}
.location-divider:before,.location-divider:after{content:"";height:1px;background:#e2e8f0;flex:1}
.location-save-link{width:100%;margin-top:4px}
.location-tip{display:block;margin-top:11px;color:#94a3b8;line-height:1.4}
.location-status{margin-top:10px;color:#b45309;font-size:12px}
.checkout-location-btn{margin-top:7px;width:100%}
@media(max-width:560px){.delivery-location-actions{display:grid}.delivery-location-sheet{padding:18px}.map-placeholder{min-height:145px}}

/* ===== ORDER PROGRESS TRACKER ===== */
.order-current-state{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:14px 0;padding:14px 15px;border-radius:16px;background:linear-gradient(135deg,#eef5ff,#f8fbff);border:1px solid #d9e6f4}
.order-current-state small{display:block;font-size:9px;letter-spacing:.9px;color:#6b7f99;font-weight:900}.order-current-state strong{display:block;font-size:21px;color:#123e75;margin:3px 0}.order-current-state span{font-size:11px;color:#64748b}
.order-current-icon{width:50px;height:50px;border-radius:50%;background:#2563eb;color:#fff;display:grid;place-items:center;font-size:21px;box-shadow:0 8px 18px rgba(37,99,235,.2);flex:none}
.order-progress{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:16px 0 18px;position:relative}
.order-progress:before{content:"";position:absolute;left:6%;right:6%;top:16px;height:3px;background:#dbe7f3;z-index:0}
.order-step{position:relative;z-index:1;display:grid;justify-items:center;text-align:center;gap:6px}
.order-step-dot{width:34px;height:34px;border-radius:50%;background:#f1f5f9;border:2px solid #d6e0ea;color:#94a3b8;display:grid;place-items:center;font-size:12px;font-weight:900}
.order-step.done .order-step-dot{background:#2563eb;border-color:#2563eb;color:#fff}
.order-step.current .order-step-dot{box-shadow:0 0 0 5px rgba(37,99,235,.12)}
.order-step-copy b{display:block;font-size:10px;color:#64748b}.order-step.done .order-step-copy b{color:#123e75}
.order-step-copy small{display:block;margin-top:2px;font-size:8px;color:#94a3b8;line-height:1.2;min-height:18px}
.admin-orders-title{margin-top:28px}.admin-order-progress p{margin:3px 0 0;color:#64748b;font-size:11px}.admin-order-actions{margin-top:12px;padding-top:12px;border-top:1px solid #e4edf6}.admin-order-actions .primary-btn{padding:10px 13px;font-size:12px}.delivered-badge{font-size:11px;font-weight:900;color:#15803d;background:#ecfdf5;border:1px solid #bbf7d0;padding:7px 10px;border-radius:999px}
@media(max-width:560px){
 .order-progress{overflow-x:auto;grid-template-columns:repeat(5,82px);justify-content:start;padding-bottom:4px}
 .order-progress:before{left:41px;right:auto;width:328px}
 .order-step-copy b{font-size:9px}.order-step-copy small{font-size:7px}
 .order-current-state strong{font-size:19px}
 .admin-order-actions{align-items:flex-start}.admin-order-actions .primary-btn{max-width:65%}
}

/* ===== ADMIN CONNECTED SECTIONS ===== */
.admin-card-link{appearance:none;text-align:left;cursor:pointer;color:inherit;font:inherit;width:100%}
.admin-card-link em{display:block;margin-top:10px;font-size:11px;font-style:normal;color:#2563eb;font-weight:900}
.admin-card-link:hover{border-color:#bfdbfe;box-shadow:0 10px 24px rgba(37,99,235,.08);transform:translateY(-2px)}
.admin-section-page{padding-bottom:110px}
.admin-back{border:0;background:#eef5ff;color:#1d4ed8;border-radius:999px;padding:9px 13px;font-weight:900;margin-bottom:14px}
.admin-section-hero{display:flex;gap:14px;align-items:center;background:linear-gradient(135deg,#0b1f3a,#123e75);color:#fff;border-radius:20px;padding:20px;margin-bottom:14px}
.admin-section-icon{width:56px;height:56px;border-radius:16px;background:#fff;color:#2563eb;display:grid;place-items:center;font-size:27px;flex:none}
.admin-section-hero span{font-size:9px;letter-spacing:.9px;color:#93c5fd;font-weight:900}.admin-section-hero h2{margin:4px 0 4px;font-size:24px}.admin-section-hero p{margin:0;color:#c7d8eb;font-size:12px}
.admin-section-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0}.admin-section-toolbar b{font-size:24px;color:#102a49}.admin-section-toolbar small{color:#64748b}
.admin-list{display:grid;gap:10px}.admin-list-row{display:grid;grid-template-columns:38px 1fr auto;gap:12px;align-items:center;background:#fff;border:1px solid #e0e9f3;border-radius:15px;padding:12px}
.admin-list-index{width:34px;height:34px;border-radius:50%;background:#eef5ff;color:#2563eb;display:grid;place-items:center;font-weight:900}
.admin-list-row b{display:block;color:#102a49}.admin-list-row span{display:block;color:#64748b;font-size:11px;margin-top:3px}.admin-list-row strong{font-size:11px;color:#2563eb;text-align:right;max-width:120px}
.admin-empty div{font-size:34px;margin-bottom:8px}.admin-empty b{display:block;color:#102a49}.admin-empty p{font-size:12px;line-height:1.45;color:#64748b;max-width:420px;margin:6px auto 0}
@media(max-width:700px){.admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-card-link{min-height:124px}.admin-section-toolbar .primary-btn{font-size:11px;padding:10px 12px}.admin-list-row{grid-template-columns:32px 1fr}.admin-list-row>strong{grid-column:2;text-align:left;max-width:none}}

/* ===== SAVED LOCATION MAP ===== */
.saved-map-wrap{overflow:hidden;border-radius:18px;border:1px solid #dbe7f3;background:#eef5ff}
.saved-map-wrap iframe{display:block;width:100%;height:230px;border:0;background:#e8eef5}
.saved-map-caption{display:grid;gap:3px;padding:12px 14px;background:#fff}
.saved-map-caption b{color:#102a49;font-size:13px}
.saved-map-caption small{color:#64748b;font-size:10px;overflow-wrap:anywhere}
@media(max-width:560px){.saved-map-wrap iframe{height:210px}}

.saved-map-link{display:block;text-decoration:none;color:inherit;cursor:pointer}
.saved-map-link iframe{pointer-events:none}
.saved-map-caption span{font-size:11px;color:#2563eb;font-weight:900;margin-top:4px}

/* ===== MOBILE SAFE AREA FOR FIXED NAV ===== */
@media(max-width:780px){
  .inner-page{padding-bottom:120px!important}
  .checkout-btn{margin-bottom:8px}
}

/* ===== TOAST MUST NOT BLOCK TOUCHES ===== */
.toast{pointer-events:none!important}

/* ===== D'CARLOS APP CONCEPT V3 ===== */
:root{
  --dc-blue:#1268ff;
  --dc-blue-2:#0b4bc4;
  --dc-navy:#0a2346;
  --dc-ink:#10213a;
  --dc-soft:#f5f8fc;
  --dc-line:#e5edf7;
  --dc-amber:#ffb11b;
}
body{background:#f4f7fb}
.page-wrap{max-width:1180px}
.desktop-header{background:linear-gradient(180deg,#0c56cf,#0a45ad);color:#fff;border:0;box-shadow:0 10px 30px rgba(11,75,196,.18)}
.brand-logo{background:#fff!important;color:#1268ff!important;box-shadow:none!important}
.brand-copy h1,.brand-copy small{color:#fff!important}
.points-pill{background:rgba(255,255,255,.14)!important;color:#fff!important;border-color:rgba(255,255,255,.18)!important}
.cart-top{background:#fff!important;color:#0d4fc5!important}
.search-row{background:#fff!important;border:0!important;box-shadow:0 8px 24px rgba(4,32,76,.16)}
.search-row input{color:#172033}
.search-row input::placeholder{color:#9aa8b8}
.camera-btn{background:linear-gradient(135deg,#1169ff,#1ca8ff)!important}

/* home */
.home-v2{padding-top:18px}
.hero-v2{
  min-height:320px;
  display:grid!important;
  grid-template-columns:minmax(0,1.5fr) minmax(240px,.7fr);
  align-items:center;
  overflow:hidden;
  padding:38px!important;
  border:0!important;
  background:
    radial-gradient(circle at 85% 15%,rgba(40,153,255,.45),transparent 28%),
    radial-gradient(circle at 70% 100%,rgba(255,177,27,.22),transparent 30%),
    linear-gradient(135deg,#071c3b 0%,#0c3f93 55%,#1169ff 100%)!important;
}
.hero-v2:after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;border:38px solid rgba(255,255,255,.06);right:-80px;bottom:-90px}
.hero-v2-copy{position:relative;z-index:2}
.hero-v2 .eyebrow{display:inline-flex;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.12);color:#bdddff;font-size:10px;font-weight:900;letter-spacing:1px}
.hero-v2 h2{font-size:44px!important;line-height:1.02!important;letter-spacing:-1.5px;margin:14px 0 10px!important;text-transform:none!important}
.hero-v2 .tagline{max-width:520px;font-size:15px;color:#dcecff!important}
.hero-v2 .primary-btn{background:#fff!important;color:#0d54cc!important}
.hero-v2 .soft-btn{background:rgba(255,255,255,.1)!important;color:#fff!important;border-color:rgba(255,255,255,.22)!important}
.promo-art{position:relative;z-index:2;background:rgba(255,255,255,.11)!important;border:1px solid rgba(255,255,255,.18)!important;backdrop-filter:blur(14px);min-height:190px;display:flex!important;flex-direction:column;justify-content:center;gap:5px;color:#fff}
.promo-art .hero-logo-box{background:#fff!important;color:#1268ff!important}
.promo-art strong{font-size:22px}.promo-art small{color:#cfe3ff}

.quick-categories{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0}
.quick-categories button{border:1px solid var(--dc-line);background:#fff;border-radius:18px;padding:14px 10px;display:grid;justify-items:center;gap:8px;color:var(--dc-ink);font-weight:900;box-shadow:0 8px 24px rgba(20,56,94,.05)}
.quick-categories span{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#edf4ff;font-size:23px}
.quick-categories button:nth-child(3) span{background:#fff6df}.quick-categories button:nth-child(4) span{background:#eaf8ff}
.home-promo-grid{display:grid;grid-template-columns:1.5fr .8fr;gap:12px;margin:12px 0 14px}
.promo-tile{min-height:150px;border:0;border-radius:22px;padding:22px;text-align:left;color:#fff;position:relative;overflow:hidden}
.promo-tile:after{content:"";position:absolute;width:120px;height:120px;border-radius:50%;right:-24px;bottom:-32px;background:rgba(255,255,255,.14)}
.promo-main{background:linear-gradient(135deg,#0b2f6d,#1268ff)}
.promo-side{background:linear-gradient(135deg,#ff9f0a,#ffc44e);color:#3a2500}
.promo-tile small,.promo-tile span{display:block;font-weight:800}.promo-main strong{display:block;font-size:38px;margin:3px 0}.promo-side strong{font-size:22px;line-height:1.05}
.quick-services{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0 24px}
.quick-services button{border:1px solid var(--dc-line);background:#fff;border-radius:17px;padding:13px;display:flex;align-items:center;gap:10px;text-align:left;box-shadow:0 8px 22px rgba(20,56,94,.04)}
.quick-services button>span{width:38px;height:38px;border-radius:12px;background:#eff5ff;display:grid;place-items:center}
.quick-services b,.quick-services small{display:block}.quick-services b{color:var(--dc-ink);font-size:12px}.quick-services small{color:#7b8ca2;font-size:9px;margin-top:2px}
.section-heading{display:flex;justify-content:space-between;align-items:end;margin:18px 0 10px}.section-heading small{font-size:9px;color:#1268ff;font-weight:900;letter-spacing:1px}.section-heading h3{margin:3px 0 0;font-size:22px;color:var(--dc-ink)}

/* products */
.inner-page .page-title h2{color:var(--dc-ink);letter-spacing:-.5px}
.catalog-filters{position:sticky;top:0;z-index:20;background:rgba(244,247,251,.92);backdrop-filter:blur(12px);padding:8px 0}
.catalog-filters .soft-btn{border-radius:999px!important}
.catalog-grid .product-card{border:1px solid #e6edf6!important;box-shadow:0 10px 24px rgba(10,35,70,.06)!important}
.catalog-grid .product-img{background:linear-gradient(180deg,#f7f9fc,#eef3f8)}
.catalog-grid .latest-badge{background:#eaf8ef!important;color:#159447!important}
.catalog-grid .buy-now{background:linear-gradient(135deg,#0b3b78,#0d2b55)!important}
.catalog-grid .outline-orange{background:linear-gradient(135deg,#1268ff,#0d5be6)!important;color:#fff!important;border:0!important}
.catalog-grid .discount-pill{background:#fff0e5!important;color:#f06416!important}

/* checkout */
.inner-page:has(#placeOrder) .panel{border:0!important;box-shadow:0 16px 36px rgba(12,43,86,.08)!important;border-radius:24px!important}
.inner-page:has(#placeOrder) .field{background:#f8fafd;border:1px solid #e7eef6;border-radius:16px;padding:12px;margin-bottom:10px}
.inner-page:has(#placeOrder) .field label{font-size:10px;letter-spacing:.4px;color:#64748b;font-weight:900}
.inner-page:has(#placeOrder) input,.inner-page:has(#placeOrder) select,.inner-page:has(#placeOrder) textarea{background:#fff!important;border:1px solid #dfe8f2!important;border-radius:12px!important}
.inner-page:has(#placeOrder) .cart-total{padding:12px 0}
.inner-page:has(#placeOrder) #placeOrder{position:sticky;bottom:84px;z-index:18;box-shadow:0 12px 28px rgba(18,104,255,.24)}

/* community */
.community-page .community-hero{background:linear-gradient(135deg,#eef5ff,#fff)!important;color:var(--dc-ink)!important;border:1px solid #dfeaf7!important;box-shadow:0 12px 30px rgba(24,72,125,.06)!important}
.community-page .community-hero p{color:#687b93!important}.community-page .zone-kicker{color:#1268ff!important}
.community-page .community-badge{background:linear-gradient(135deg,#1268ff,#8d5cff)!important;color:#fff!important}
.community-post{border:1px solid #e4ebf4!important;box-shadow:0 8px 20px rgba(14,47,87,.04)!important}
.community-create-fab{background:linear-gradient(135deg,#1268ff,#6d5cff)!important}

/* admin */
.kpis{gap:12px!important}.kpi{min-height:116px;border:0!important;border-radius:20px!important;color:#fff!important;box-shadow:0 14px 28px rgba(15,54,99,.10)!important}
.kpi:nth-child(1){background:linear-gradient(135deg,#1268ff,#0d4fc4)!important}.kpi:nth-child(2){background:linear-gradient(135deg,#14b86e,#0a9a5a)!important}.kpi:nth-child(3){background:linear-gradient(135deg,#ff9f12,#ffbd48)!important}.kpi:nth-child(4){background:linear-gradient(135deg,#7f5cff,#9e6cff)!important}
.kpi small,.kpi strong{color:#fff!important}
.admin-grid{gap:10px!important}.admin-card-link{background:#fff!important;border:1px solid #e3ebf5!important;border-radius:17px!important;box-shadow:0 8px 20px rgba(18,52,88,.04)!important}
.admin-card-link i{width:40px;height:40px;border-radius:12px;background:#edf4ff;display:grid;place-items:center}
.admin-card-link em{color:#1268ff!important}

/* nav */
.mobile-nav{background:rgba(255,255,255,.93)!important;backdrop-filter:blur(18px);border-top:1px solid #e6edf5!important;box-shadow:0 -8px 30px rgba(14,47,87,.08)}
.mobile-nav button.active{color:#1268ff!important}

/* responsive */
@media(max-width:780px){
 .desktop-header{border-radius:0 0 22px 22px}
 .hero-v2{grid-template-columns:1fr;padding:24px 20px!important;min-height:300px}
 .hero-v2 h2{font-size:34px!important}.promo-art{display:none!important}
 .quick-categories{grid-template-columns:repeat(4,1fr);gap:7px}.quick-categories button{padding:10px 4px;font-size:9px}.quick-categories span{width:42px;height:42px}
 .home-promo-grid{grid-template-columns:1.35fr .8fr}.promo-tile{min-height:132px;padding:17px}.promo-main strong{font-size:32px}.promo-side strong{font-size:18px}
 .quick-services{grid-template-columns:repeat(2,1fr)}
 .section-heading h3{font-size:19px}
 .rail-section{border-radius:20px!important}
}

/* ===== CUSTOMER AUTH FLOW ===== */
.auth-page{min-height:calc(100vh - 120px);padding:28px 16px 120px;background:radial-gradient(circle at 50% -20%,#dceaff 0,transparent 42%),#f5f8fc}
.auth-shell{width:min(520px,100%);margin:0 auto}
.auth-brand{display:flex;align-items:center;gap:14px;margin:10px 0 18px;padding:0 4px}
.auth-logo{width:62px;height:62px;border-radius:19px;background:linear-gradient(135deg,#0b3f9c,#1268ff);color:#fff;display:grid;place-items:center;font-size:24px;font-weight:1000;box-shadow:0 14px 28px rgba(18,104,255,.24)}
.auth-brand small{font-size:9px;font-weight:900;letter-spacing:1.2px;color:#1268ff}.auth-brand h2{margin:3px 0 2px;font-size:28px;color:#10213a}.auth-brand p{margin:0;color:#708198;font-size:12px}
.auth-card{background:#fff;border:1px solid #e2ebf5;border-radius:24px;padding:22px;box-shadow:0 18px 42px rgba(11,52,100,.08)}
.auth-heading{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:15px}.auth-heading h3{margin:0;font-size:23px;color:#10213a}.auth-heading span{font-size:10px;color:#7d8da1}
.auth-card .field{margin-bottom:12px}.auth-card .field label{display:block;font-size:10px;font-weight:900;color:#617289;margin-bottom:6px}
.auth-card .field input{width:100%;box-sizing:border-box;border:1px solid #dce6f1;border-radius:14px;padding:13px 14px;background:#f9fbfd;font-size:14px;outline:none}.auth-card .field input:focus{border-color:#1268ff;box-shadow:0 0 0 4px rgba(18,104,255,.09);background:#fff}
.auth-submit{width:100%;padding:14px!important;border-radius:14px!important;margin-top:4px}
.auth-switch{text-align:center;margin-top:15px;color:#75869c;font-size:11px}.auth-switch button{border:0;background:none;color:#1268ff;font-weight:900;padding:0 3px}
.auth-back{display:block;margin:14px auto 0;border:0;background:none;color:#64748b;font-weight:800;font-size:11px}
.auth-preview-note{display:block;text-align:center;color:#9aa7b8;font-size:9px;line-height:1.45;margin:14px auto 0;max-width:430px}
.auth-error{min-height:18px;color:#c2410c;font-size:10px;font-weight:800;margin:2px 0 6px}
.checkout-account-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(135deg,#edf5ff,#f8fbff);border:1px solid #dbe9f8;border-radius:16px;padding:12px 14px;margin-bottom:12px}
.checkout-account-strip small,.checkout-account-strip b,.checkout-account-strip span{display:block}.checkout-account-strip small{font-size:8px;letter-spacing:.8px;color:#6880a0;font-weight:900}.checkout-account-strip b{color:#10213a;font-size:14px;margin:2px 0}.checkout-account-strip span{color:#6f8096;font-size:10px}
.profile-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.profile-mini-grid>div{background:#f7fafe;border-radius:14px;padding:12px}.profile-mini-grid small,.profile-mini-grid b{display:block}.profile-mini-grid small{font-size:9px;color:#7a8ca4}.profile-mini-grid b{font-size:12px;color:#10213a;margin-top:3px;overflow-wrap:anywhere}
.logout-btn{border:1px solid #fed7d7;background:#fff7f7;color:#b42318;border-radius:13px;padding:12px;font-weight:900}
@media(max-width:560px){
 .auth-page{padding-top:18px}.auth-card{padding:18px;border-radius:20px}.auth-logo{width:54px;height:54px;border-radius:16px}.auth-brand h2{font-size:24px}
 .auth-heading{display:block}.auth-heading span{display:block;margin-top:3px}.profile-mini-grid{grid-template-columns:1fr}
}

/* ===== CUSTOMER ORDER STATUS HIGHLIGHT ===== */
.order-current-state p{margin:5px 0 6px;color:#586d86;font-size:11px;line-height:1.45;max-width:520px}
.order-percent{display:flex;align-items:center;gap:12px;margin:10px 0 14px}
.order-percent>div:first-child{min-width:72px}.order-percent b{display:block;color:#1268ff;font-size:16px}.order-percent span{font-size:9px;color:#7b8ca1}
.order-percent-track{height:8px;flex:1;background:#e7eef7;border-radius:999px;overflow:hidden}
.order-percent-track i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#1268ff,#15a4ff)}
.active-order-card{border:1px solid #dce8f6!important;background:linear-gradient(145deg,#ffffff,#f6faff)!important;box-shadow:0 14px 30px rgba(18,73,135,.08)!important}
.active-order-top,.active-order-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}
.active-order-top small{display:block;font-size:8px;letter-spacing:1px;color:#1268ff;font-weight:900}.active-order-top b{display:block;color:#10213a;font-size:15px;margin-top:3px}
.active-order-main{display:flex;align-items:center;gap:12px;margin:14px 0}
.active-order-icon{width:52px;height:52px;border-radius:16px;background:linear-gradient(135deg,#1268ff,#0d54cf);color:#fff;display:grid;place-items:center;font-size:22px;box-shadow:0 10px 20px rgba(18,104,255,.18)}
.active-order-main strong{display:block;color:#10213a;font-size:20px}.active-order-main p{margin:4px 0 0;color:#64748b;font-size:11px;line-height:1.45}
.active-order-bar{height:9px;background:#e7eef7;border-radius:999px;overflow:hidden;margin:2px 0 10px}.active-order-bar i{display:block;height:100%;background:linear-gradient(90deg,#1268ff,#16a7ff);border-radius:999px}
.active-order-bottom span{font-size:10px;color:#6b7d92;font-weight:800}.active-order-bottom .primary-btn{padding:9px 12px!important;font-size:10px!important}
.no-active-order{text-align:center}.no-active-order>div{font-size:34px}.no-active-order b{display:block;color:#10213a;margin-top:4px}.no-active-order p{color:#708198;font-size:11px;line-height:1.4}

/* ADMIN MOBILE FIX */
.admin-header{background:linear-gradient(180deg,#0b2f6d,#082651)!important}
.admin-title-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-x:hidden}
button,a{touch-action:manipulation}
@media(max-width:780px){input,select,textarea{font-size:16px!important}.auth-card .field input{font-size:16px!important}.search-row input{font-size:16px!important}.mobile-nav{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#fff!important}.catalog-filters{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#f4f7fb!important}.admin-header .admin-role-pill{display:none!important}.admin-header .brand-copy h1{font-size:16px!important}.admin-header .brand-copy small{font-size:9px!important;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-title-actions{width:100%;justify-content:space-between}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.kpi{min-height:92px!important}}

/* ===== WEB PUSH OPT-IN ===== */
.notification-optin{display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(135deg,#edf5ff,#fff)!important;border:1px solid #dce8f7!important}
.notification-optin b{display:block;color:#10213a;font-size:14px}.notification-optin p{margin:4px 0 0;color:#66788f;font-size:11px;line-height:1.45;max-width:560px}
.notification-optin .primary-btn,.admin-push-btn{white-space:nowrap}
@media(max-width:560px){.notification-optin{display:grid}.notification-optin .primary-btn{width:100%}.admin-title-actions .admin-push-btn{width:100%;order:3}}

/* ===== ADMIN RE-ENTRY ===== */
.admin-entry{display:flex;align-items:center;justify-content:center;gap:10px;margin:22px 0 110px;padding:10px}
.admin-entry button,.auth-admin-link{border:0;background:none;color:#64748b;font-size:11px;font-weight:900;cursor:pointer;padding:8px 10px;border-radius:10px}
.admin-entry button:hover,.auth-admin-link:hover{background:#edf3fb;color:#1268ff}
.admin-entry small{font-size:9px;color:#9aa7b8}
.auth-admin-link{display:block;margin:8px auto 0}
@media(max-width:780px){.admin-entry{margin-bottom:100px;flex-direction:column;gap:2px}}

/* ===== HIGH-VOLUME ADMIN RECORDS ===== */
.admin-order-tools{display:grid;grid-template-columns:minmax(0,1fr) 180px auto;gap:12px;align-items:end;margin:14px 0 18px}
.admin-order-tools .field{margin:0}.admin-order-count{display:flex;align-items:baseline;gap:5px;padding:12px 14px;border:1px solid var(--dc-line);border-radius:14px;background:#fff;min-height:48px}.admin-order-count b{font-size:20px;color:var(--dc-navy)}.admin-order-count small{color:#75859a}.admin-order-progress .order-row small{display:block;margin-top:4px;color:#75859a;font-size:10px;line-height:1.35}.admin-order-progress .order-row p strong{color:var(--dc-blue)}.customer-record small{display:block;color:#75859a;margin-top:3px;font-size:10px}.customer-tools{grid-template-columns:minmax(0,1fr) auto}
@media(max-width:780px){.admin-order-tools,.customer-tools{grid-template-columns:1fr}.admin-order-count{justify-content:center}.admin-order-progress .order-row{align-items:flex-start;gap:10px}.admin-order-progress .order-row>div{min-width:0}.admin-order-progress .order-row p,.admin-order-progress .order-row small{overflow-wrap:anywhere}}

/* ===== DELIVERY / COURIER MODULE ===== */
.delivery-header{background:linear-gradient(180deg,#0d5b4c,#073d35)!important}
.delivery-admin-summary,.courier-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 18px}
.delivery-admin-summary>div,.courier-summary>div{background:#fff;border:1px solid var(--dc-line);border-radius:16px;padding:14px}
.delivery-admin-summary small,.courier-summary small{display:block;color:#75859a;font-size:10px;font-weight:800;text-transform:uppercase}
.delivery-admin-summary strong,.courier-summary strong{display:block;margin-top:4px;font-size:24px;color:var(--dc-navy)}
.admin-delivery-order{display:grid;gap:12px}
.admin-delivery-assign{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
.admin-delivery-assign select,.courier-incident-box select,.courier-incident-box input{width:100%;border:1px solid var(--dc-line);border-radius:12px;padding:11px 12px;background:#fff;font:inherit}
.assigned-courier{display:flex;justify-content:space-between;gap:10px;padding:11px 12px;border-radius:12px;background:#eefbf6;color:#164f45}
.assigned-courier span{font-size:11px;color:#55756f}
.courier-create-panel h3{margin-top:0}.courier-create-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.performance-note{margin-top:16px}.performance-note p{margin-bottom:0;color:#66788f}
.courier-page{max-width:880px}.courier-list{display:grid;gap:14px}.courier-card{display:grid;gap:12px}.courier-card-done{opacity:.78}.courier-card-top{display:flex;justify-content:space-between;gap:12px}.courier-card-top small{font-size:9px;color:#7a899a;font-weight:900}.courier-card-top h3{margin:2px 0;font-size:18px}.courier-card-top p{margin:0;color:#5f7186;font-size:12px}.courier-address{display:grid;gap:3px;padding:12px;border-radius:14px;background:#f6f9fd}.courier-address small{color:#75859a}.courier-contact-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.courier-contact-actions .soft-btn{text-align:center;text-decoration:none}.courier-order-lines{border-top:1px solid var(--dc-line);border-bottom:1px solid var(--dc-line);padding:8px 0}.courier-order-lines div{padding:4px 0;font-size:12px}.courier-pay{display:grid;grid-template-columns:1fr 1fr;gap:10px}.courier-pay>div{padding:10px;border-radius:12px;background:#f7f9fc}.courier-pay small{display:block;color:#7b8999;font-size:9px}.courier-pay strong{font-size:18px;color:#0a7d60}.courier-actions{display:grid;gap:10px}.courier-incident-box{display:grid;grid-template-columns:1fr 1fr auto;gap:8px}.courier-incident-current{padding:10px 12px;border-radius:12px;background:#fff6e6;color:#8a5b00;font-size:11px}
.customer-courier-box{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:12px;border-radius:14px;background:#eef8ff;border:1px solid #d8ebfb;margin:12px 0}.customer-courier-box small,.customer-courier-box span{display:block;color:#668095;font-size:10px}.customer-courier-box b{display:block;margin:2px 0}.customer-courier-actions{display:flex;gap:7px}.customer-courier-actions a{text-decoration:none}
.courier-review-form,.courier-review-done{margin-top:14px;padding:14px;border-radius:14px;background:#fff9e9;border:1px solid #f3e2aa}.courier-review-form>div:first-child span{display:block;color:#7b6f54;font-size:11px;margin-top:3px}.review-stars{display:flex;gap:4px;margin:10px 0}.review-stars button{border:0;background:none;font-size:28px;line-height:1;color:#f4a900;cursor:pointer;padding:2px}.courier-review-form textarea{width:100%;min-height:70px;border:1px solid #e5d7ab;border-radius:10px;padding:9px;resize:vertical;font:inherit;margin-bottom:8px}.courier-review-done b{display:block;color:#e99b00;font-size:20px;letter-spacing:2px}.courier-review-done span{display:block;font-size:11px;color:#786b4e}.courier-review-done p{margin:7px 0 0;font-size:12px}
@media(max-width:780px){.delivery-admin-summary,.courier-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.courier-create-grid,.admin-delivery-assign,.courier-incident-box{grid-template-columns:1fr}.courier-contact-actions{grid-template-columns:1fr}.customer-courier-box{display:grid}.customer-courier-actions{display:grid;grid-template-columns:1fr 1fr}.assigned-courier{display:grid}}


/* ===== PREVIEW | PUBLIC FLOATING QUICK ACTIONS ===== */
.floating-actions{
 position:fixed;right:22px;bottom:28px;z-index:89;
 display:flex;flex-direction:column;align-items:flex-end;gap:11px
}
.floating-action{
 position:relative;display:grid;place-items:center;width:58px;height:58px;
 padding:0;border:3px solid #fff;border-radius:20px;color:#fff;
 text-decoration:none;cursor:pointer;
 box-shadow:0 10px 24px rgba(10,42,81,.24),0 3px 0 rgba(4,25,48,.12);
 transition:transform .16s ease,box-shadow .16s ease
}
.floating-action:hover,.floating-action:focus-visible{
 transform:translateY(-3px);
 box-shadow:0 15px 28px rgba(10,42,81,.29)
}
.floating-action:focus-visible{outline:3px solid #fbbf24;outline-offset:2px}
.floating-action-icon{font-size:25px;line-height:1;font-weight:950}
.floating-action-whatsapp{background:linear-gradient(145deg,#28c764,#169b4a)}
.floating-action-chat{background:linear-gradient(145deg,#159fff,#1a63e9)}
.floating-action-cart{background:linear-gradient(145deg,#194e91,#0b2f68)}
.floating-action-label{
 position:absolute;right:calc(100% + 12px);top:50%;
 transform:translate(5px,-50%);
 background:#0b2749;color:#fff;border-radius:11px;
 padding:8px 11px;font-size:11px;line-height:1.15;font-weight:900;
 box-shadow:0 6px 16px rgba(10,42,81,.2);
 pointer-events:none;opacity:0;white-space:nowrap;
 transition:opacity .16s ease,transform .16s ease
}
.floating-action:hover .floating-action-label,
.floating-action:focus-visible .floating-action-label{
 opacity:1;transform:translate(0,-50%)
}
.floating-cart-count{
 position:absolute;top:-8px;right:-7px;min-width:22px;height:22px;
 display:grid;place-items:center;padding:0 5px;
 border:2px solid #fff;border-radius:999px;
 background:#f97316;color:#fff;font-size:10px;font-weight:950
}
@media(max-width:780px){
 .floating-actions{right:12px;bottom:calc(83px + env(safe-area-inset-bottom));gap:9px}
 .floating-action{width:49px;height:49px;border-radius:17px;border-width:2px}
 .floating-action-icon{font-size:22px}
 .floating-action-label{display:none}
}
@media(prefers-reduced-motion:reduce){
 .floating-action,.floating-action-label{transition:none}
}


/* ===== PREVIEW | PHASE 4 MOBILE APP FINISH ===== */
html{scroll-padding-top:90px}
:where(button,a,input,select,textarea):focus-visible{
 outline:3px solid #2563eb;outline-offset:3px
}
@media(max-width:780px){
 body{overscroll-behavior-y:contain}
 .page-wrap{padding-bottom:calc(112px + env(safe-area-inset-bottom))}
 .inner-page{padding-bottom:calc(134px + env(safe-area-inset-bottom))!important}
 .mobile-nav{padding-bottom:max(9px,env(safe-area-inset-bottom))!important}
 .mobile-nav-inner button{min-height:49px;min-width:0}
 .mobile-nav-inner button span{line-height:1.1}
 .floating-actions{bottom:calc(88px + env(safe-area-inset-bottom))}
 .toast{max-width:calc(100vw - 24px);text-align:center;white-space:normal}
 .admin-order-progress,.admin-delivery-order,.courier-card{min-width:0;overflow-wrap:anywhere}
 .admin-order-actions{flex-wrap:wrap;gap:10px}
 .admin-order-actions button{min-height:44px}
 .courier-page .page-title{align-items:flex-start;flex-wrap:wrap;gap:12px}
 .courier-page .page-title .admin-title-actions{width:100%}
 .courier-page .page-title .admin-title-actions button{flex:1;min-height:44px}
 .courier-contact-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .courier-contact-actions .soft-btn{padding:11px 5px!important;font-size:11px;text-align:center}
 .courier-incident-box{grid-template-columns:1fr!important}
 .courier-incident-box button{min-height:44px}
 .admin-delivery-assign button{min-height:44px}
}
@media(max-width:390px){
 .header-inner{padding-left:8px;padding-right:8px}
 .brand-zone{min-width:0;gap:8px}
 .brand-copy h1{font-size:14px!important}
 .brand-copy small{font-size:9px!important}
 .search-row input{min-width:0}
 .floating-action{width:46px;height:46px}
 .floating-action-icon{font-size:20px}
 .floating-actions{right:9px;gap:8px}
 .page-title h2{font-size:22px}
 .admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important}
}

/* ===== FASE 5A · PRODUCTS ADMIN (PREVIEW ONLY) ===== */
.catalog-admin{max-width:1120px}
.catalog-admin-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:16px 0}
.catalog-admin-toolbar b{color:#153354}
.product-edit-panel{border:1px solid #cce0f7;box-shadow:0 15px 36px rgba(15,56,110,.10)}
.product-edit-panel h3{margin:0 0 18px;color:#122d50}
.product-edit-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.product-edit-form .field{margin-bottom:0;min-width:0}
.product-edit-form input:not([type="checkbox"]),.product-edit-form textarea{width:100%;max-width:100%;font-size:16px}
.product-edit-wide{grid-column:1/-1}
.product-active-toggle{display:flex;gap:10px;align-items:center;font-weight:800;color:#143352;min-height:42px}
.product-active-toggle input{width:22px;height:22px}
.product-form-actions{display:flex;gap:10px;flex-wrap:wrap}
.product-form-actions button{min-height:45px}
.product-image-upload{margin-top:20px;padding-top:18px;border-top:1px solid #e1eaf5}
.product-image-upload h3{margin:0 0 5px}
.product-image-upload p,.product-image-hint{font-size:12px;color:#738298;line-height:1.5}
.catalog-photo-label{display:inline-flex;position:relative;align-items:center;cursor:pointer;min-height:45px;margin:10px 0}
.catalog-photo-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:12px 0}
.catalog-photo-grid>div{position:relative;aspect-ratio:1}
.catalog-photo-grid img{width:100%;height:100%;object-fit:cover;border-radius:14px;border:1px solid #d9e5f1}
.catalog-photo-grid button{position:absolute;right:5px;top:5px;width:29px;height:29px;border:0;border-radius:50%;background:#be123c;color:#fff;font-size:19px;cursor:pointer}
.catalog-admin-list{display:grid;gap:10px;margin:20px 0}
.catalog-admin-product{display:grid;grid-template-columns:78px minmax(0,1fr) auto;align-items:center;gap:13px;margin:0}
.catalog-admin-product>img{width:78px;height:78px;object-fit:cover;background:#eef4fd;border-radius:12px}
.catalog-admin-product>div{min-width:0;display:grid;gap:4px}
.catalog-admin-product b{color:#153354}
.catalog-admin-product small{font-size:11px;color:#708196;overflow-wrap:anywhere}
.catalog-admin-product span{font-size:12px;font-weight:850}
.catalog-admin-product em{font-style:normal;color:#2563eb;font-size:10px}
.catalog-admin-product button{min-height:42px}
.product-card [disabled]{opacity:.48;cursor:not-allowed}
@media(max-width:640px){
 .catalog-admin-toolbar{align-items:stretch;flex-direction:column}
 .product-edit-form{grid-template-columns:1fr}
 .catalog-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .catalog-admin-product{grid-template-columns:62px minmax(0,1fr) auto;gap:9px;padding:11px}
 .catalog-admin-product>img{width:62px;height:62px}
 .catalog-admin-product button{padding:9px 10px;font-size:12px}
 .product-form-actions button{flex:1}
}

/* Preview photo upload feedback persists after each upload. */
.catalog-upload-status{min-height:23px;font-size:13px;font-weight:700;color:#2563eb;line-height:1.5;overflow-wrap:anywhere}
.catalog-photo-label:has(input:disabled){opacity:.58;cursor:progress}

/* Preview: tappable product photo carousel, like modern retail galleries. */
.product-photo-open{display:block;width:100%;padding:0;margin:0;background:transparent;border:0;position:relative;cursor:zoom-in;text-align:inherit}
.product-photo-open .product-img{display:block}
.product-photo-hint{position:absolute;right:10px;bottom:10px;z-index:3;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:850;color:#133b69;background:rgba(255,255,255,.94);box-shadow:0 4px 14px rgba(0,32,80,.20)}
.product-photo-open:focus-visible{outline:3px solid #2563eb;outline-offset:-3px}
.product-gallery-open{overflow:hidden!important}
.product-gallery-backdrop{position:fixed;inset:0;z-index:99999;background:rgba(8,21,45,.85);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);display:flex;justify-content:center;align-items:center;padding:12px}
.product-gallery-panel{width:min(850px,100%);max-height:calc(100dvh - 24px);overflow:auto;background:#fff;border-radius:24px;box-shadow:0 18px 70px rgba(0,0,0,.30);display:flex;flex-direction:column}
.product-gallery-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 22px 10px}
.product-gallery-head small{color:#2b6dc2;letter-spacing:.11em;font-size:10px;font-weight:900}
.product-gallery-head h2{font-size:20px;margin:4px 0 0;overflow-wrap:anywhere;color:#193553}
.product-gallery-close{width:42px;height:42px;flex:0 0 42px;border:0;border-radius:50%;background:#edf3fb;color:#0b2c55;font-size:30px;cursor:pointer}
.product-gallery-stage{min-height:200px;height:min(55dvh,520px);display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;justify-items:center;background:linear-gradient(180deg,#f8fbff,#eaf3ff);padding:10px;touch-action:pan-y}
.product-gallery-stage img{width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-select:none}
.product-gallery-arrow{border:0;border-radius:50%;width:42px;height:42px;background:white;color:#183e68;font-size:35px;line-height:1;box-shadow:0 4px 12px rgba(9,44,86,.15);cursor:pointer}
.product-gallery-arrow:disabled{opacity:.25;cursor:default}
.product-gallery-footer{padding:12px 20px 20px;text-align:center}
.product-gallery-count{font-size:12px;font-weight:850;color:#5b728d;margin-bottom:8px}
.product-gallery-thumbs{display:flex;justify-content:center;gap:8px;overflow-x:auto;padding:4px 2px 10px}
.product-gallery-thumbs button{width:62px;height:62px;flex:0 0 62px;padding:3px;border:2px solid #d6e5f5;background:white;border-radius:12px;cursor:pointer}
.product-gallery-thumbs button.active{border-color:#236af2;box-shadow:0 0 0 2px #d8e7ff}
.product-gallery-thumbs img{width:100%;height:100%;object-fit:contain;border-radius:7px}
.product-gallery-info{display:flex;justify-content:center;gap:18px;align-items:center;color:#173c61;font-size:13px}
.product-gallery-info b{font-size:20px}
@media(max-width:640px){
 .product-gallery-backdrop{padding:0;align-items:stretch}
 .product-gallery-panel{width:100%;max-height:100dvh;border-radius:0}
 .product-gallery-head{padding:15px 14px 12px}
 .product-gallery-head h2{font-size:17px}
 .product-gallery-stage{height:min(56dvh,510px);grid-template-columns:35px minmax(0,1fr) 35px;padding:6px}
 .product-gallery-arrow{width:33px;height:40px;font-size:29px}
 .product-gallery-footer{padding-bottom:calc(15px + env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.product-gallery-backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}}

/* Gallery shopping detail: immersive photo + immediately usable purchase panel. */
.product-gallery-backdrop{background:#050508}
.product-gallery-panel{height:min(94dvh,900px);max-height:calc(100dvh - 20px);border-radius:22px;background:#fff}
.product-gallery-head{background:#101115;color:white}
.product-gallery-head h2{color:#fff;font-size:15px}
.product-gallery-head small{color:#b5c6da}
.product-gallery-close{background:#25282d;color:white;border:1px solid #62666d}
.product-gallery-stage{flex:1;min-height:180px;height:auto;background:#08090c;overflow:hidden}
.product-gallery-stage img{object-fit:contain;min-height:0;max-height:100%}
.product-gallery-arrow{background:rgba(255,255,255,.16);color:white;border:1px solid rgba(255,255,255,.3)}
.product-gallery-footer{flex:0 0 auto;max-height:48%;overflow:auto;background:#fff;padding:10px 22px 20px;text-align:left}
.product-gallery-count{text-align:center}
.product-gallery-thumbs{justify-content:center}
.product-gallery-detail{display:grid;justify-items:start;gap:8px}
.product-gallery-detail>small{font-size:12px;color:#6d7887;text-transform:uppercase}
.product-gallery-detail h3{font-size:21px;line-height:1.25;overflow-wrap:anywhere;margin:0;color:#101827}
.product-gallery-stock{display:inline-flex;align-items:center;background:#e9f8f0;color:#166534;font-size:12px;font-weight:850;border-radius:999px;padding:6px 10px}
.product-gallery-stock.soldout{background:#fef0f0;color:#b91c1c}
.product-gallery-price{font-size:27px;font-weight:950;color:#111827}
.product-gallery-description{margin:0 0 4px;font-size:13px;color:#556274;white-space:pre-wrap;overflow-wrap:anywhere}
.product-gallery-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.product-gallery-actions button{font-size:14px;min-height:48px;border-radius:12px;font-weight:900;padding:10px}
.product-gallery-cart{background:#fff0e8;color:#a94e15;border:1px solid #ffccaf}
.product-gallery-buy{background:#1463cf;color:white;border:1px solid #1463cf}
.product-gallery-actions button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:640px){
 .product-gallery-backdrop{align-items:stretch}
 .product-gallery-panel{height:100dvh;max-height:100dvh;border-radius:0}
 .product-gallery-head{min-height:56px;padding:8px 14px}
 .product-gallery-head h2{font-size:14px}
 .product-gallery-stage{min-height:190px;grid-template-columns:35px minmax(0,1fr) 35px}
 .product-gallery-footer{max-height:48dvh;padding:10px 18px calc(20px + env(safe-area-inset-bottom))}
 .product-gallery-detail h3{font-size:19px}
 .product-gallery-price{font-size:25px}
 .product-gallery-actions{grid-template-columns:1fr;gap:7px}
 .product-gallery-actions button{min-height:45px}
}

/* Gallery zoom: touch pinch, double-tap and zoom controls. */
.product-gallery-image-viewport{height:100%;width:100%;min-width:0;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:none;cursor:zoom-in}
.product-gallery-image-viewport img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;transform-origin:center center;will-change:transform;pointer-events:none}
.product-gallery-stage{touch-action:none}
.product-gallery-zoom-controls{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px;color:#657187;font-size:11px}
.product-gallery-zoom-controls>div{display:flex;align-items:center;gap:5px}
.product-gallery-zoom-controls button{border:1px solid #d3e3f4;background:#f4f8ff;color:#154d93;border-radius:9px;min-height:32px;min-width:32px;font-weight:900;font-size:18px}
.product-gallery-zoom-controls output{min-width:42px;text-align:center;font-weight:850}
@media(max-width:640px){.product-gallery-zoom-controls{flex-wrap:wrap;font-size:10px}.product-gallery-zoom-controls button{min-width:35px;min-height:35px}}

/* Phase 5B — inventory dashboard. */
.inventory-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}
.inventory-overview>div{background:#f1f7ff;border:1px solid #dceafa;border-radius:16px;padding:15px;display:grid;gap:6px}
.inventory-overview small{font-size:11px;color:#536c88}
.inventory-overview strong{font-size:25px;color:#164578}
.inventory-management,.inventory-history-panel{margin:14px 0}
.inventory-management h3,.inventory-history-panel h3{margin:0 0 14px;color:#163c68}
.inventory-movement-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:10px 16px}
.inventory-movement-form input,.inventory-movement-form select{width:100%;max-width:100%;min-height:44px;font-size:16px}
.inventory-movement-form button{min-height:44px}
.inventory-note{color:#7085a1;font-size:12px;margin:13px 0 0}
.inventory-history-list{display:grid;gap:6px}
.inventory-history-list>div{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:9px 0;border-bottom:1px solid #e3edf7}
.inventory-history-list>div span{color:#155d9f;font-weight:900}
.inventory-history-list>div small{grid-column:1/-1;color:#8293a8}
@media(max-width:650px){.inventory-movement-form{grid-template-columns:1fr}.inventory-overview strong{font-size:19px}.inventory-overview>div{padding:9px}.inventory-overview small{font-size:10px}}

/* Payments must be confirmed, not inferred from order totals. */
.payment-order-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.customer-payment-status{padding:9px 12px;font-size:12px;font-weight:850;color:#314868;background:#eff6ff;border-radius:10px;margin-top:10px}
.order-canceled-banner{padding:12px;background:#fff1f2;color:#a32035;font-weight:900;border-radius:10px}

.payment-audit-ledger{margin:20px 0}
.payment-audit-ledger h3{color:#204568;margin:0 0 8px}
.payment-audit-ledger>p{font-size:12px;color:#687c96}
.payment-ledger-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:12px 2px;border-bottom:1px solid #e5eef7}
.payment-ledger-row span{font-weight:850;color:#164f91}
.payment-ledger-row small{grid-column:1/-1;color:#697e92;overflow-wrap:anywhere}
