/* Febino Shop — one stylesheet for the shop, seller portal and admin portal */
:root { --ink:#0f172a; --muted:#64748b; --line:#e2e8f0; --bg:#f8fafc; --blue:#2563eb; --orange:#f97316; --green:#15803d; --red:#b91c1c; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color:var(--ink); background:var(--bg); line-height:1.5; }
a { color:var(--blue); text-decoration:none; }
a:hover { text-decoration:underline; }
h1 { font-size:1.5rem; margin:.8rem 0; }
h2 { font-size:1.2rem; }
h3 { font-size:1.05rem; margin:1rem 0 .5rem; }
img { max-width:100%; }
.wrap { max-width:1140px; margin:0 auto; padding:0 16px; }
main.wrap { padding-top:16px; padding-bottom:40px; min-height:60vh; }
.muted { color:var(--muted); font-size:.9rem; }

/* header */
.top { background:var(--ink); color:#fff; }
.bar { display:flex; align-items:center; gap:16px; flex-wrap:wrap; padding-top:10px; padding-bottom:10px; }
.brand { color:#fff; font-weight:700; font-size:1.15rem; display:flex; align-items:center; gap:8px; }
.brand img { height:34px; width:auto; background:#fff; border-radius:6px; padding:2px; }
.search { flex:1; display:flex; min-width:200px; }
.search input { flex:1; border:0; padding:9px 12px; border-radius:6px 0 0 6px; font-size:1rem; min-width:0; }
.search button { border:0; background:var(--orange); color:#fff; padding:0 16px; border-radius:0 6px 6px 0; font-weight:600; cursor:pointer; }
.top nav { display:flex; gap:14px; align-items:center; flex-wrap:wrap; margin-left:auto; }
.top nav a { color:#e2e8f0; font-size:.95rem; }
.sitelink { color:#fff; border:2px solid #f7941d; border-radius:6px; padding:4px 12px; font-weight:600; font-size:.95rem; white-space:nowrap; }
.sitelink:hover { background:#f7941d; text-decoration:none; }
.cartlink b { background:var(--orange); color:#fff; border-radius:10px; padding:0 7px; font-size:.8rem; }
.tag { background:var(--blue); color:#fff; padding:2px 10px; border-radius:12px; font-size:.8rem; }

/* home */
.hero { background:linear-gradient(120deg,#1e3a8a,#2563eb); color:#fff; border-radius:12px; padding:28px 24px; margin-bottom:16px; }
.hero h1 { margin:0 0 4px; font-size:1.8rem; }
.hero p { margin:0; }
.hero .legal { font-size:.85rem; opacity:.85; margin-top:8px; }
.perks { display:flex; gap:10px; flex-wrap:wrap; margin-top:14px !important; }
.perks span { background:rgba(255,255,255,.16); padding:4px 12px; border-radius:14px; font-size:.85rem; }
.cats { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0 18px; }
.cats a { background:#fff; border:1px solid var(--line); color:var(--ink); padding:5px 12px; border-radius:16px; font-size:.9rem; }
.cats a.on { background:var(--ink); color:#fff; border-color:var(--ink); }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:16px; }
.card { background:#fff; border:1px solid var(--line); border-radius:10px; padding:12px; color:var(--ink); display:flex; flex-direction:column; gap:3px; }
.card:hover { box-shadow:0 4px 14px rgba(15,23,42,.12); text-decoration:none; }
.card img { width:100%; aspect-ratio:1/1; object-fit:contain; background:#f1f5f9; border-radius:8px; }
.cbrand { color:var(--muted); font-size:.8rem; text-transform:uppercase; letter-spacing:.04em; }
.cname { font-weight:600; }
.cprice, .pdprice { font-weight:700; font-size:1.1rem; }
.cprice s, .pdprice s { color:var(--muted); font-weight:400; font-size:.9rem; }
.cprice em, .pdprice em { color:var(--green); font-style:normal; font-size:.85rem; }
.out { color:var(--red); font-weight:600; }
.instock { color:var(--green); font-weight:600; }
.storehead { display:flex; align-items:baseline; gap:12px; margin:22px 0 10px; border-bottom:2px solid var(--line); padding-bottom:6px; }
.storehead a { color:var(--ink); }
.storehead .more { font-size:.85rem; font-weight:400; color:var(--blue); margin-left:auto; }
.empty { background:#fff; border:1px dashed var(--line); border-radius:10px; padding:30px; text-align:center; color:var(--muted); }
.crumb { color:var(--muted); font-size:.9rem; margin:0 0 6px; }

/* product page */
.pd { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:28px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:20px; }
.pdimg img { width:100%; aspect-ratio:1/1; object-fit:contain; background:#f1f5f9; border-radius:10px; }
.pdprice { font-size:1.6rem; margin:.3rem 0; }
.addform { margin:14px 0 6px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.pdlist { padding-left:18px; color:#334155; }
.desc { color:#334155; }

/* boxes, forms, buttons */
.box { background:#fff; border:1px solid var(--line); border-radius:12px; padding:18px; margin-bottom:16px; }
.narrow { max-width:440px; margin-left:auto; margin-right:auto; }
.narrow.wide { max-width:700px; }
.center { text-align:center; }
.two { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:16px; align-items:start; }
.form label, form.form label { display:block; font-size:.9rem; font-weight:600; margin-bottom:12px; }
.form input:not([type=radio]):not([type=hidden]), .form select, .form textarea, .inlineform input, .addform select, .line select {
  display:block; width:100%; margin-top:4px; padding:9px 10px; border:1px solid #cbd5e1; border-radius:6px; font:inherit; background:#fff; }
.addform select, .line select { display:inline-block; width:auto; }
.row2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.radio { font-weight:400 !important; border:1px solid var(--line); border-radius:8px; padding:10px; }
.btn { display:inline-block; background:var(--blue); color:#fff; border:0; border-radius:6px; padding:10px 18px; font:inherit; font-weight:600; cursor:pointer; }
.btn:hover { filter:brightness(1.08); text-decoration:none; }
.btn.buy { background:var(--orange); }
.btn.block { display:block; width:100%; text-align:center; }
.link { background:none; border:0; color:var(--blue); cursor:pointer; font:inherit; padding:0; }
.link:hover { text-decoration:underline; }
form.inline { display:inline-block; margin:6px 10px 0 0; }
.inlineform { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.inlineform input { width:auto; flex:1; min-width:140px; margin-top:0; }
.thumb { width:110px; border-radius:8px; border:1px solid var(--line); }
.flash { padding:10px 14px; border-radius:8px; margin-bottom:14px; }
.flash.ok { background:#dcfce7; color:#14532d; }
.flash.err { background:#fee2e2; color:#7f1d1d; }

/* cart, orders */
.line { display:flex; gap:12px; align-items:flex-start; padding:12px 0; border-bottom:1px solid var(--line); color:var(--ink); }
.line:last-child { border-bottom:0; }
.line img { width:72px; height:72px; object-fit:contain; background:#f1f5f9; border-radius:8px; }
.grow { flex:1; min-width:0; }
.olink:hover { text-decoration:none; background:#f8fafc; }
.sum p { display:flex; justify-content:space-between; gap:12px; margin:.4rem 0; }
.sum .tot { font-weight:700; font-size:1.1rem; border-top:1px solid var(--line); padding-top:8px; }
.pill { display:inline-block; font-size:.75rem; font-weight:600; padding:2px 9px; border-radius:10px; background:#e2e8f0; color:#334155; vertical-align:middle; }
.s-placed, .s-confirmed, .p-pending, .s-awaiting_payment { background:#fef3c7; color:#92400e; }
.s-shipped { background:#dbeafe; color:#1e40af; }
.s-delivered, .p-active { background:#dcfce7; color:#166534; }
.s-cancelled, .p-hidden { background:#fee2e2; color:#991b1b; }
.hist { padding-left:18px; margin:.3rem 0; }
.hist li { margin-bottom:4px; }

/* tables, dashboard */
.tbl { width:100%; border-collapse:collapse; font-size:.92rem; }
.tbl th, .tbl td { text-align:left; padding:9px 8px; border-bottom:1px solid var(--line); vertical-align:top; }
.tbl th { color:var(--muted); font-weight:600; font-size:.8rem; text-transform:uppercase; }
.box:has(.tbl) { overflow-x:auto; }
.stats { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:12px; margin-bottom:16px; }
.stat { background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px; color:var(--ink); }
.stat b { display:block; font-size:1.6rem; }
.stat span { color:var(--muted); font-size:.9rem; }

.two.even { grid-template-columns:1fr 1fr; }
.rowact { display:inline-block; margin-right:18px; }
.rowacts form.inline { margin:0 18px 0 0; }
.rowacts { white-space:nowrap; }
.psearch { margin:0 0 14px; align-items:center; }
.psearch input { max-width:420px; }
.check { display:block; font-weight:400 !important; margin:0 0 6px !important; }
.check input { width:auto !important; display:inline-block !important; margin:0 6px 0 0 !important; }
.permform { margin-top:8px; }
details > summary.link { display:inline-block; margin:8px 0; }
.dashhead { text-align:center; font-size:1.2rem; margin:18px 0 10px; }
.vlog { max-height:372px; overflow-y:auto; }            /* about 7 rows, scroll for the rest */
.vlog th { position:sticky; top:0; background:#fff; }
.vlog details summary { cursor:pointer; list-style:none; }
.vlog details summary::-webkit-details-marker { display:none; }
.plus { display:inline-block; width:20px; height:20px; line-height:18px; text-align:center; border:1px solid var(--blue); color:var(--blue); border-radius:4px; font-weight:700; }
.vlog details[open] .plus { background:var(--blue); color:#fff; }
.vlog ol { margin:6px 0 0; padding-left:22px; }

/* footer */
.foot { background:var(--ink); color:#cbd5e1; padding:24px 0 14px; font-size:.9rem; }
.foot a { color:#93c5fd; }
.footgrid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:18px; }
.copy { margin-top:16px; padding-top:12px; border-top:1px solid #1e293b; color:#94a3b8; font-size:.8rem; }

@media (max-width:760px) {
  .pd, .two, .two.even, .row2 { grid-template-columns:1fr; }
  .top nav { margin-left:0; }
  .hero h1 { font-size:1.4rem; }
}

/* sellers list: + opens all the store details */
.sdet summary { cursor:pointer; list-style:none; }
.sdet summary::-webkit-details-marker { display:none; }
.sdet[open] .plus { background:var(--blue); color:#fff; }
.sdl { display:grid; grid-template-columns:max-content 1fr; gap:4px 14px; margin:10px 0 6px; font-size:.9rem; }
.sdl dt { color:var(--muted); }
.sdl dd { margin:0; }

/* catalogue + product details */
.cats.types a { font-size:.82rem; background:#f1f5f9; }
.cats.types { margin-top:-8px; }
.spec { border-collapse:collapse; margin-top:12px; font-size:.92rem; }
.spec th, .spec td { text-align:left; padding:6px 14px 6px 0; border-bottom:1px solid var(--line); }
.spec th { color:var(--muted); font-weight:600; }
.inlineform.mini { margin:6px 0; }
.inlineform.mini input { max-width:320px; }

/* catalogue tabs */
.cats.tabs a { font-weight:600; padding:8px 16px; border-radius:8px; }
.inlineform.mini select { width:auto; padding:9px 10px; border:1px solid #cbd5e1; border-radius:6px; font:inherit; background:#fff; }

/* who is signed in (header) */
.top nav .who { color:#fff; font-weight:600; background:rgba(255,255,255,.12); border-radius:14px; padding:3px 12px; white-space:nowrap; }
.top nav .who small { font-weight:400; font-size:.72rem; color:#fbbf24; margin-left:4px; text-transform:uppercase; letter-spacing:.04em; }

.top nav .logout { color:#cbd5e1; font-size:.8rem; background:none; border:0; padding:0; cursor:pointer; font-family:inherit; text-decoration:underline; margin-left:-8px; }
.top nav .logout:hover { color:#fff; }
.logoutform { display:inline; margin:0; }

/* ── home page ── */
.slider { position:relative; margin-bottom:14px; }
.slides { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; border-radius:14px; scrollbar-width:none; }
.slides::-webkit-scrollbar { display:none; }
.slide { flex:0 0 100%; scroll-snap-align:start; min-height:300px; display:flex; align-items:center; color:#fff; text-decoration:none;
         background:linear-gradient(120deg,#1e3a8a,#2563eb); background-size:cover; background-position:center; }
.slide:hover { text-decoration:none; }
.slide.hasimg .stext { background:rgba(15,23,42,.55); }
.stext { display:flex; flex-direction:column; gap:8px; align-items:flex-start; padding:22px 26px; margin:0 5%; max-width:560px; border-radius:12px; }
.stext b { font-size:2rem; line-height:1.15; }
.stext span { font-size:1.05rem; }
.stext em { font-style:normal; font-weight:700; background:var(--orange); color:#fff; padding:9px 20px; border-radius:6px; margin-top:6px; }
.snav { position:absolute; top:50%; transform:translateY(-50%); width:40px; height:40px; border-radius:50%; border:0; background:rgba(255,255,255,.85); color:var(--ink); font-size:1.5rem; line-height:1; cursor:pointer; }
.snav.prev { left:10px; } .snav.next { right:10px; }
.promo { background:#fff7ed; border:1px solid #fed7aa; color:#9a3412; text-align:center; font-weight:600; padding:10px 14px; border-radius:10px; margin:0 0 18px; }
.hsec { margin:0 0 26px; }
.hhead { display:flex; align-items:baseline; font-size:1.35rem; margin:0 0 12px; padding-left:12px; border-left:5px solid var(--orange); }
.hhead .more { margin-left:auto; font-size:.9rem; font-weight:400; }
.tiles { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:14px; }
.tile { background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px 12px; text-align:center; color:var(--ink); display:flex; flex-direction:column; align-items:center; gap:4px; }
.tile:hover { box-shadow:0 4px 14px rgba(15,23,42,.12); text-decoration:none; transform:translateY(-2px); }
.tile small { color:var(--muted); }
.tico { width:54px; height:54px; border-radius:50%; background:linear-gradient(135deg,#2563eb,#1e3a8a); color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.5rem; font-weight:700; margin-bottom:4px; }
.tile.store .tico { background:linear-gradient(135deg,#f97316,#c2410c); }
.trust { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:14px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:18px; margin:0 0 26px; }
.trust div { display:grid; grid-template-columns:auto 1fr; column-gap:10px; align-items:center; }
.trust span { grid-row:span 2; width:42px; height:42px; border-radius:50%; background:#eff6ff; color:var(--blue); display:flex; align-items:center; justify-content:center; font-size:1.2rem; font-weight:700; }
.trust small { color:var(--muted); }
.card { position:relative; transition:transform .15s, box-shadow .15s; }
.card:hover { transform:translateY(-3px); }
.badge { position:absolute; top:10px; left:10px; background:var(--green); color:#fff; font-size:.75rem; font-weight:700; padding:2px 8px; border-radius:10px; z-index:1; }
.bthumb { max-width:100%; max-height:140px; border-radius:8px; border:1px solid var(--line); }
@media (max-width:760px) {
  .slide { min-height:200px; }
  .stext { margin:0 12px; padding:14px 16px; }
  .stext b { font-size:1.35rem; }
  .snav { display:none; }
  .tiles { grid-template-columns:repeat(2,1fr); }
  .grid { grid-template-columns:repeat(2,1fr); gap:10px; }
}

/* advertisements on the home page */
.ad { display:flex; flex-direction:column; gap:4px; justify-content:center; text-align:center; margin:0 0 22px; padding:18px 20px; border-radius:12px; color:#fff; text-decoration:none;
      background:linear-gradient(120deg,#c2410c,#f97316); }
.ad:hover { text-decoration:none; filter:brightness(1.05); }
.ad b { font-size:1.3rem; }
.ad.adimg { padding:0; background:none; overflow:hidden; }
.ad.adimg img { display:block; width:100%; height:auto; border-radius:12px; }

/* one-line rows with arrows */
.rowwrap { position:relative; }
.hrow { display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x proximity; padding:4px 2px 10px; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.hrow::-webkit-scrollbar { display:none; }
.hrow > .card { flex:0 0 210px; scroll-snap-align:start; }
.hrow > .tile { flex:0 0 160px; scroll-snap-align:start; }
.rnav { display:none; position:absolute; top:50%; transform:translateY(-50%); z-index:2; width:40px; height:40px; border-radius:50%; border:1px solid var(--line);
        background:#fff; color:var(--ink); font-size:1.5rem; line-height:1; cursor:pointer; box-shadow:0 2px 8px rgba(15,23,42,.2); }
.rnav:hover { background:var(--ink); color:#fff; }
.rnav.prev { left:-12px; } .rnav.next { right:-12px; }
@media (max-width:760px) {
  .hrow { gap:10px; }
  .hrow > .card { flex-basis:160px; }
  .hrow > .tile { flex-basis:130px; }
  .rnav { width:34px; height:34px; font-size:1.2rem; }
  .rnav.prev { left:-4px; } .rnav.next { right:-4px; }
}

/* store search beside the Shop by Store heading */
.hheadrow { display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin:0 0 12px; }
.hheadrow .hhead { margin:0; }
.storesearch { display:flex; margin-left:6px; }  /* right after the heading text */
.storesearch input { border:1px solid #cbd5e1; border-right:0; border-radius:6px 0 0 6px; padding:8px 12px; font:inherit; min-width:220px; }
.storesearch button { border:0; background:var(--orange); color:#fff; font-weight:600; padding:0 14px; border-radius:0 6px 6px 0; cursor:pointer; font:inherit; }
.storemsg { background:#fef3c7; color:#92400e; padding:8px 12px; border-radius:8px; margin:0 0 10px; }
@media (max-width:760px) { .storesearch { margin-left:0; width:100%; } .storesearch input { flex:1; min-width:0; } }

/* hidden trap box on sign-up forms (people never see it; robots fill it in) */
.hp { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }

.psearch select { width:auto; padding:9px 10px; border:1px solid #cbd5e1; border-radius:6px; font:inherit; background:#fff; }

/* product cards: all the same size; the name is smaller and never more than two lines */
.card { height:100%; }
.card img { aspect-ratio:1/1; height:auto; object-fit:contain; }
.cbrand { height:1.3em; line-height:1.3; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.cname { font-size:.88rem; font-weight:600; line-height:1.3; height:2.6em; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.cprice { margin-top:auto; font-size:1rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.card .out { font-size:.8rem; height:1.3em; }
.hrow { align-items:stretch; }
.hrow > .card { height:auto; }
.grid { align-items:stretch; }

.row3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; }
@media (max-width:760px) { .row3 { grid-template-columns:1fr; } }

/* Takeaway: the store to collect from */
.pickup { background:#eff6ff; border:1px solid #bfdbfe; border-radius:8px; padding:10px 12px; margin:8px 0 12px; font-size:.92rem; }

.s-requested { background:#fef3c7; color:#92400e; }
.pickup select { display:block; width:100%; margin:6px 0 8px; padding:9px 10px; border:1px solid #cbd5e1; border-radius:6px; font:inherit; background:#fff; }

/* ═══════════════════════════════════════════════════════════════
   ADMIN AND OPERATOR PANEL LOOK  (Febino Digital dark + orange)
   Only the look. Everything below is limited to body.area-admin / body.area-operator,
   so the public shop and the Seller Portal are not changed.
   ═══════════════════════════════════════════════════════════════ */
:is(.area-admin, .area-operator) { --ink:#0b1016; --line:#e5e7eb; --bg:#f3f4f6; --blue:#b45309; --orange:#f7941d; background:#f3f4f6; }
:is(.area-admin, .area-operator) a { color:#b45309; }
:is(.area-admin, .area-operator) a:hover { color:#92400e; }

/* side menu */
:is(.area-admin, .area-operator) .top { background:#0b1016; box-shadow:0 2px 10px rgba(0,0,0,.25); }
:is(.area-admin, .area-operator) .top .brand { color:#fff; letter-spacing:.02em; }
:is(.area-admin, .area-operator) .top nav a { color:#cbd5e1; font-weight:500; padding:7px 12px; border-radius:8px; transition:background .15s, color .15s; }
:is(.area-admin, .area-operator) .top nav a:hover { background:#1f2937; color:#fff; text-decoration:none; }
:is(.area-admin, .area-operator) .top nav a.on { background:#f7941d; color:#0b1016; font-weight:700; }
:is(.area-admin, .area-operator) .top nav .tag { background:transparent; border:1px solid #f7941d; color:#f7941d; font-weight:700; letter-spacing:.06em; text-transform:uppercase; font-size:.7rem; }
:is(.area-admin, .area-operator) .top nav .who { background:#111827; color:#fff; border:1px solid #1f2937; }
@media (min-width:981px) {
  :is(.area-admin, .area-operator) .top { position:fixed; top:0; left:0; bottom:0; width:236px; overflow-y:auto; border-right:3px solid #f7941d; box-shadow:none; }
  :is(.area-admin, .area-operator) .top .bar { flex-direction:column; align-items:stretch; gap:12px; padding:20px 14px; max-width:none; flex-wrap:nowrap; }
  :is(.area-admin, .area-operator) .top .brand { padding-bottom:14px; border-bottom:1px solid #1f2937; font-size:1.05rem; }
  :is(.area-admin, .area-operator) .top nav { flex-direction:column; align-items:stretch; gap:3px; margin-left:0; flex-wrap:nowrap; }
  :is(.area-admin, .area-operator) .top nav a { padding:10px 12px; }
  :is(.area-admin, .area-operator) .top nav .tag { align-self:flex-start; margin-bottom:6px; }
  :is(.area-admin, .area-operator) .top nav .who { margin-bottom:8px; border-radius:8px; padding:8px 12px; white-space:normal; }
  :is(.area-admin, .area-operator) main.wrap { margin-left:236px; max-width:none; padding:26px 30px 44px; }
  :is(.area-admin, .area-operator) .foot { margin-left:236px; }
}
@media (max-width:980px) {
  :is(.area-admin, .area-operator) .top nav { flex-wrap:nowrap; overflow-x:auto; width:100%; padding-bottom:4px; }
  :is(.area-admin, .area-operator) .top nav a { white-space:nowrap; }
}

/* headings */
:is(.area-admin, .area-operator) h1 { font-size:1.55rem; color:#0b1016; padding-bottom:10px; margin:0 0 18px; border-bottom:3px solid #f7941d; display:inline-block; }
:is(.area-admin, .area-operator) h3 { color:#0b1016; }
:is(.area-admin, .area-operator) .dashhead { text-align:center; font-size:1.05rem; text-transform:uppercase; letter-spacing:.08em; color:#0b1016; margin:26px 0 14px; }
:is(.area-admin, .area-operator) .dashhead::after { content:""; display:block; width:56px; height:3px; background:#f7941d; border-radius:2px; margin:8px auto 0; }
:is(.area-admin, .area-operator) .crumb { display:block; }

/* cards */
:is(.area-admin, .area-operator) .box { border:0; border-radius:14px; box-shadow:0 1px 3px rgba(15,23,42,.08), 0 6px 18px rgba(15,23,42,.05); padding:20px; }
:is(.area-admin, .area-operator) .box > h3:first-child { margin-top:0; padding-bottom:8px; border-bottom:1px solid #e5e7eb; }
:is(.area-admin, .area-operator) .stats { gap:16px; }
:is(.area-admin, .area-operator) .stat { border:0; border-left:5px solid #f7941d; border-radius:12px; padding:18px 18px 16px; box-shadow:0 1px 3px rgba(15,23,42,.08), 0 6px 18px rgba(15,23,42,.05); color:#0b1016; transition:transform .15s, box-shadow .15s; }
:is(.area-admin, .area-operator) a.stat:hover { transform:translateY(-2px); box-shadow:0 8px 22px rgba(15,23,42,.12); text-decoration:none; }
:is(.area-admin, .area-operator) .stat b { font-size:1.9rem; line-height:1.1; color:#0b1016; }
:is(.area-admin, .area-operator) .stat span { color:#6b7280; font-size:.82rem; text-transform:uppercase; letter-spacing:.04em; }
:is(.area-admin, .area-operator) .empty { border-radius:14px; background:#fff; }

/* tables */
:is(.area-admin, .area-operator) .tbl { border-collapse:separate; border-spacing:0; }
:is(.area-admin, .area-operator) .tbl th { background:#0b1016; color:#fff; font-size:.74rem; letter-spacing:.05em; padding:11px 10px; border-bottom:0; }
:is(.area-admin, .area-operator) .tbl th:first-child { border-radius:8px 0 0 8px; }
:is(.area-admin, .area-operator) .tbl th:last-child { border-radius:0 8px 8px 0; }
:is(.area-admin, .area-operator) .tbl td { padding:11px 10px; border-bottom:1px solid #eef0f3; }
:is(.area-admin, .area-operator) .tbl tr:nth-child(odd) td { background:#fafafa; }
:is(.area-admin, .area-operator) .tbl tr:hover td { background:#fff7ed; }
:is(.area-admin, .area-operator) .vlog th { background:#0b1016; }

/* buttons, tabs, forms */
:is(.area-admin, .area-operator) .btn { background:#f7941d; color:#0b1016; font-weight:700; border-radius:8px; box-shadow:0 1px 2px rgba(0,0,0,.12); }
:is(.area-admin, .area-operator) .btn:hover { background:#e07f0c; color:#0b1016; filter:none; }
:is(.area-admin, .area-operator) .btn.buy { background:#0b1016; color:#fff; }
:is(.area-admin, .area-operator) .link { color:#b45309; }
:is(.area-admin, .area-operator) .cats a { background:#fff; border:1px solid #e5e7eb; color:#374151; }
:is(.area-admin, .area-operator) .cats a:hover { border-color:#f7941d; color:#0b1016; text-decoration:none; }
:is(.area-admin, .area-operator) .cats a.on { background:#0b1016; border-color:#0b1016; color:#fff; box-shadow:inset 0 -3px 0 #f7941d; }
:is(.area-admin, .area-operator) .form input:not([type=radio]):not([type=hidden]):not([type=checkbox]):focus,
:is(.area-admin, .area-operator) .form select:focus,
:is(.area-admin, .area-operator) .form textarea:focus,
:is(.area-admin, .area-operator) .inlineform input:focus { outline:none; border-color:#f7941d; box-shadow:0 0 0 3px rgba(247,148,29,.22); }
:is(.area-admin, .area-operator) .plus { border-color:#f7941d; color:#b45309; }
:is(.area-admin, .area-operator) details[open] .plus { background:#f7941d; color:#0b1016; }
:is(.area-admin, .area-operator) .flash { border-radius:10px; border-left:5px solid; }
:is(.area-admin, .area-operator) .flash.ok { border-left-color:#15803d; }
:is(.area-admin, .area-operator) .flash.err { border-left-color:#b91c1c; }
:is(.area-admin, .area-operator) .pill { padding:3px 10px; }

/* footer */
:is(.area-admin, .area-operator) .foot { background:transparent; color:#6b7280; padding:10px 30px 22px; }
:is(.area-admin, .area-operator) .foot .footgrid { display:none; }
:is(.area-admin, .area-operator) .foot .copy { border-top:1px solid #e5e7eb; color:#6b7280; margin-top:0; }

/* Product photos: gallery on the product page, and the photo list in the product form */
.pdimg .pdthumbs { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.pdimg .pdthumbs a { display:block; border:2px solid var(--line); border-radius:8px; padding:2px; background:#fff; }
.pdimg .pdthumbs a.on { border-color:var(--brand, #f97316); }
.pdimg .pdthumbs img { width:62px; height:62px; aspect-ratio:auto; object-fit:contain; border-radius:5px; display:block; }
.pgrid { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:8px; }
.pgitem { border:1px solid var(--line); border-radius:10px; padding:8px; background:#fff; width:132px; }
.pgitem .thumb { width:100%; height:110px; object-fit:contain; display:block; margin-bottom:6px; }
.pgitem label.radio { display:block; font-size:13px; margin:2px 0; }
.btn.danger { background:#dc2626; border-color:#dc2626; color:#fff; }
.btn.danger:hover { background:#b91c1c; }

/* Show / Hide button inside every password box */
.pwwrap { position:relative; display:block; }
.pwwrap input { padding-right:68px !important; }
.pwwrap .pwtoggle { position:absolute; right:6px; top:50%; transform:translateY(-50%); border:0; background:#eef2f7; color:var(--ink); font-size:12px; font-weight:700; padding:5px 10px; border-radius:6px; cursor:pointer; line-height:1.2; }
.pwwrap .pwtoggle:hover { background:#e2e8f0; }

/* GST: price switch in the header, tick boxes in forms, and the printable invoice */
.form label.radio input[type=checkbox] { display:inline-block; width:auto; margin:0 6px 0 0; padding:0; }
.gstsw { display:inline-flex; align-items:center; gap:4px; font-size:.8rem; color:#cbd5e1; }
.top nav .gstsw a { font-size:.78rem; padding:3px 8px; border:1px solid #475569; border-radius:999px; color:#e2e8f0; }
.top nav .gstsw a.on { background:var(--orange); border-color:var(--orange); color:#fff; font-weight:700; }
.gstnote { font-size:.72rem; font-weight:600; color:var(--muted); }
.invoice h1 { text-align:center; margin-top:0; }
.invtop { display:grid; grid-template-columns:1fr 1fr; gap:18px; border:1px solid var(--line); border-radius:8px; padding:12px; margin-bottom:12px; line-height:1.5; }
.invscroll { overflow-x:auto; }
.invtbl .r { text-align:right; white-space:nowrap; }
.invtbl .invtot td { border-top:2px solid var(--ink); }
.invsum { max-width:340px; margin-left:auto; margin-top:12px; }
@media (max-width:640px) { .invtop { grid-template-columns:1fr; } }
@media print {
  .top, .foot, .noprint, .flash { display:none !important; }
  body { background:#fff !important; }
  .invoice { border:0 !important; box-shadow:none !important; padding:0 !important; }
  main.wrap { max-width:none; padding:0; }
}

/* A box that fills itself in (Price with GST in the product form) */
.form input.calc { background:#f1f5f9; color:var(--ink); font-weight:700; cursor:default; }

/* Phone view of the shop header: Login, Register, Cart, Sell and the rest are in a drop-down menu that opens from the logo and name */
.top nav .mhome { display:none; }
@media (max-width:760px) {
  .area-shop .top.mnav .bar { gap:10px; }
  .area-shop .top.mnav .brand { order:0; cursor:pointer; }
  .area-shop .top.mnav .brand::after { content:'\25BE'; font-size:1rem; margin-left:2px; color:#fbbf24; transition:transform .15s; }
  .area-shop .top.mnav.menuopen .brand::after { transform:rotate(180deg); }
  .area-shop .top.mnav .sitelink { order:1; margin-left:auto; }
  .area-shop .top.mnav nav { order:2; display:none; width:100%; margin:0; flex-direction:column; align-items:stretch; gap:0; flex-wrap:nowrap;
    background:#1e293b; border:1px solid #334155; border-radius:10px; padding:6px; }
  .area-shop .top.mnav.menuopen nav { display:flex; }
  .area-shop .top.mnav .search { order:3; flex-basis:100%; }
  .area-shop .top.mnav nav > a, .area-shop .top.mnav nav > .who { display:block; padding:11px 12px; border-radius:8px; font-size:1rem; background:none; white-space:normal; }
  .area-shop .top.mnav nav > a:hover { background:#334155; text-decoration:none; }
  .area-shop .top.mnav nav .mhome { display:block; }
  .area-shop .top.mnav nav .logoutform { display:block; padding:9px 12px; }
  .area-shop .top.mnav nav .logout { margin-left:0; font-size:1rem; }
  .area-shop .top.mnav nav .gstsw { padding:10px 12px; gap:6px; font-size:.9rem; flex-wrap:wrap; }
}

/* Phone menu, second version: it floats over the page under the logo, at most half the screen wide, so the search bar does not move */
@media (max-width:760px) {
  .area-shop .top.mnav .bar { position:relative; }
  .area-shop .top.mnav nav { position:absolute; top:52px; left:0; border-left:0; border-radius:0 0 10px 0; z-index:60; width:max-content; min-width:150px; max-width:50vw; box-sizing:border-box;
    box-shadow:0 10px 24px rgba(0,0,0,.35); }
  .area-shop .top.mnav nav > a, .area-shop .top.mnav nav > .who { overflow-wrap:anywhere; }
  .area-shop .top.mnav nav .gstsw { flex-direction:column; align-items:flex-start; }
}

/* Order history: the Delete link under an unpaid order */
.odel { margin:-4px 0 8px; text-align:right; }

/* Dashboard: the four Website Visit boxes are bigger and fill the whole row */
:is(.area-admin, .area-operator) .visitstats { grid-template-columns:repeat(4, minmax(0, 1fr)); gap:20px; }
:is(.area-admin, .area-operator) .visitstats .stat { padding:30px 26px 26px; min-height:150px; border-left-width:7px; display:flex; flex-direction:column; justify-content:center; }
:is(.area-admin, .area-operator) .visitstats .stat b { font-size:3rem; line-height:1.05; margin-bottom:10px; }
:is(.area-admin, .area-operator) .visitstats .stat span { font-size:1rem; letter-spacing:.03em; }
@media (max-width:1200px) { :is(.area-admin, .area-operator) .visitstats { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:560px) { :is(.area-admin, .area-operator) .visitstats { grid-template-columns:1fr; } :is(.area-admin, .area-operator) .visitstats .stat b { font-size:2.4rem; } }

/* The shop header stays at the top of the screen while the page is scrolled (computer and phone) */
.area-shop .top { position:sticky; top:0; z-index:200; box-shadow:0 2px 10px rgba(0,0,0,.25); }
@media print { .area-shop .top { position:static; } }

/* The page moves only up and down: nothing may push it sideways or leave a blank strip on the right */
html { overflow-x:hidden; max-width:100%; }
@supports (overflow:clip) { html, body { overflow-x:clip; } }
body { max-width:100%; }
.area-shop main.wrap, .area-shop .two > *, .area-shop .pd > * { min-width:0; }
.area-shop .box, .area-shop .hero, .area-shop .desc, .area-shop .line .grow { overflow-wrap:break-word; }
.area-shop iframe, .area-shop video, .area-shop table { max-width:100%; }
@media (max-width:760px) {
  .area-shop .top .bar { flex-wrap:wrap; }
  .area-shop .search { min-width:0; }
  .area-shop .foot .footgrid { overflow-wrap:anywhere; }
}

/* Order summaries: the amount stays on one line at the right; a long product name wraps on the left */
.sum p > span:first-child { min-width:0; overflow-wrap:break-word; }
.sum p > span:last-child { white-space:nowrap; flex-shrink:0; text-align:right; font-variant-numeric:tabular-nums; }
.line > b { white-space:nowrap; flex-shrink:0; }
.line .grow { min-width:0; }

/* Dashboard Website Visit boxes: same big boxes, smaller numbers */
:is(.area-admin, .area-operator) .visitstats .stat b { font-size:1.6rem; line-height:1.15; margin-bottom:8px; }
@media (max-width:560px) { :is(.area-admin, .area-operator) .visitstats .stat b { font-size:1.5rem; } }

/* Orders page: the number of orders on each filter button */
.cats .ocount { font-weight:700; opacity:.85; margin-left:2px; }

/* Orders page filter buttons: the name on the first line, the number of orders below it */
.ocats a { text-align:center; min-width:92px; padding-top:8px; padding-bottom:8px; line-height:1.25; }
.ocats .ocount { display:block; margin:3px 0 0; font-size:1.15rem; font-weight:700; opacity:1; }

/* Orders page filter buttons: third line = total value of those orders */
.ocats .oval { display:block; margin-top:2px; font-size:.82rem; font-weight:600; white-space:nowrap; opacity:.9; }
.ocats a { min-width:108px; }

/* Orders page filter buttons: a thin line between the number of orders and their value */
.ocats .oval { border-top:1px solid currentColor; margin-top:5px; padding-top:4px; }
.ocats .ocount { margin-bottom:0; }

/* Operators page: each operator is closed by default and opens on a click */
.opdet summary { line-height:1.6; }
.opdet .opsub { display:inline-block; margin-left:28px; }
.opdet .opbody { margin-top:12px; padding-top:12px; border-top:1px solid var(--line); }

/* Product page: Product Catalog (PDF) box */
.pdcat { margin:14px 0; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:#f8fafc; line-height:2.2; }
.pdcat .btn { margin-right:8px; }

/* SKU code on product cards and under the product name on the product page */
.csku { display:block; font-size:.78rem; color:var(--muted); letter-spacing:.02em; margin:2px 0 4px; }
.pdsku { margin:-4px 0 8px; font-size:.9rem; color:var(--muted); }

/* Product page: highlighted Note box */
.pdnote { margin:12px 0; padding:12px 14px; border:1px solid #fcd34d; border-left:5px solid #f59e0b; background:#fffbeb; border-radius:8px; overflow-wrap:break-word; }

/* Checkout: coupon code box with its Apply button */
.couponrow { display:flex; gap:8px; align-items:center; }
.form .couponrow input { flex:1; min-width:0; margin-top:0; text-transform:uppercase; }
.couponrow .btn { white-space:nowrap; }

/* Visitor Activity page: the four "most viewed" lists side by side */
.toplists { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:18px; }
.toplists ol { margin:6px 0 0; padding-left:20px; }
.toplists li { margin:3px 0; overflow-wrap:break-word; }
@media (max-width:1100px) { .toplists { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:560px) { .toplists { grid-template-columns:1fr; } }

/* Login windows: a clear heading that says whose login it is (Customer, Seller, Admin, Operator) */
h1.loginhead { text-align:center; margin:0 0 14px; padding-bottom:10px; border-bottom:3px solid var(--orange); display:block; }

/* Invoice: Sold by and Sold to blocks */
.invhead { display:block; font-size:1.05rem; border-bottom:2px solid var(--ink); padding-bottom:4px; margin-bottom:6px; }
table.invparty { width:100%; border-collapse:collapse; }
table.invparty th { text-align:left; font-weight:600; color:var(--muted); font-size:.82rem; width:38%; padding:3px 8px 3px 0; vertical-align:top; }
table.invparty td { padding:3px 0; vertical-align:top; overflow-wrap:break-word; }

/* Product form: Sale section and Costing section on one page */
.psec { border:1px solid var(--line); border-radius:12px; padding:14px 16px 6px; margin:0 0 16px; background:#fff; }
.psec .psechead { margin:0 0 4px; padding-bottom:6px; border-bottom:3px solid var(--orange); display:inline-block; }
.psec.pcost { background:#fffbeb; border-color:#fcd34d; }
/* My Account: saved addresses that open on a click */
.adet { border:1px solid var(--line); border-radius:8px; padding:8px 10px; margin:0 0 8px; }
.adet .adbody { margin-top:10px; padding-top:10px; border-top:1px solid var(--line); }

/* Product edit page: Sale section on the left and Costing section on the right, parallel to each other */
.box.narrow.wide:has(.psecs) { max-width:none; }
.psecs { display:grid; grid-template-columns:minmax(0, 1.35fr) minmax(0, 1fr); gap:18px; align-items:start; }
.psecs .psec { margin-bottom:0; }
.psecs + label, .psecs + button { margin-top:16px; }
.psecs { margin-bottom:16px; }
.psecs .pcost .row3, .psecs .pcost .row2 { grid-template-columns:1fr; }
@media (max-width:1000px) { .psecs { grid-template-columns:1fr; } .psecs .pcost .row2 { grid-template-columns:1fr 1fr; } }

/* Footer: link to the Febino Digital Store video streaming channel */
.foot .footvideo { display:inline-block; margin-top:8px; padding:5px 12px; border:1px solid #f7941d; border-radius:6px; color:#fff; font-weight:600; }
.foot .footvideo:hover { background:#f7941d; text-decoration:none; }
