:root{
  --bg:#f5f7fb;
  --panel:#ffffff;
  --panel2:#f9fafc;

  --text:#0f172a;
  --muted:#6b7280;
  --border:rgba(15,23,42,.12);

  /* ✅ UK (Union Jack) Palette */
  --brand:#012169;         /* UK Navy */
  --brandHover:#001642;    /* Deeper navy */
  --brandSoft:rgba(1,33,105,.14);
  --brandBorder:rgba(1,33,105,.28);

  --brand2:#C8102E;        /* UK Red */
  --brand2Hover:#a50d25;
  --brand2Soft:rgba(200,16,46,.14);
  --brand2Border:rgba(200,16,46,.28);

  --ok:#10b981;
  --bad:#ef4444;

  --shadow:0 14px 36px rgba(15,23,42,.10);
  --shadow-soft:0 6px 18px rgba(15,23,42,.08);

  --radius:18px;
}

/* Reset */
*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1000px 600px at 10% 10%, rgba(1,33,105,.09), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(200,16,46,.08), transparent 55%),
    linear-gradient(180deg, var(--bg), #eef1f7 45%, var(--bg) 100%);
}

a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
.container{max-width:1180px;margin:0 auto;padding:16px;}
.content{padding:14px 0;}

/* Top bar */
.topbar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border:1px solid var(--border);
  background:var(--panel);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  position:sticky;
  top:10px;
  z-index:10;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  font-size:16px;
}
.logoDot{
  width:10px;height:10px;border-radius:50%;
  background:var(--brand);
  box-shadow:0 0 0 6px var(--brandSoft);
}

/* Professional header additions */
.brandText{display:flex;flex-direction:column;line-height:1.1;}
.brandName{font-weight:900;}
.brandSub{font-size:12px;color:var(--muted);margin-top:3px;}

.cartBadge{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:22px;height:22px;padding:0 7px;
  border-radius:999px;
  background:var(--brandSoft);
  border:1px solid var(--brandBorder);
  font-weight:900;
  font-size:12px;
  margin-left:6px;
}

/* Desktop nav */
.navWrap{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.navWrap a{
  padding:8px 12px;
  border-radius:12px;
  font-size:14px;
  color:var(--muted);
  border:1px solid transparent;
  transition:background .12s ease, border-color .12s ease, transform .12s ease;
}
.navWrap a:hover{
  background:rgba(15,23,42,.04);
  border-color:rgba(15,23,42,.10);
  transform:translateY(-1px);
  color:var(--text);
}
.navWrap a.active{
  background:var(--brandSoft);
  border-color:var(--brandBorder);
  color:var(--text);
}
.navBtn{min-height:40px;padding:9px 12px;}
.navPill{padding:8px 12px;}

/* Hamburger */
.navToggle{
  display:none;
  width:44px;height:44px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  box-shadow:var(--shadow-soft);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:5px;
}
.navToggle span{
  display:block;
  width:18px;height:2px;
  background:var(--text);
  border-radius:3px;
}

/* Mobile menu */
@media (max-width: 720px){
  .brandSub{display:none;}
  .navToggle{display:inline-flex;}
  .topbar{align-items:flex-start;}

  .navWrap{
    display:none;
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    padding-top:12px;
    border-top:1px solid var(--border);
    margin-top:10px;
  }
  .navWrap.open{display:flex;}
  .navWrap a{width:100%;}
  .navWrap .btn{width:100%;}
}

/* Badge */
.badge{
  font-size:11px;
  padding:3px 8px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--muted);
  background:#fff;
}

/* Headings */
.h1{font-size:24px;margin:0;}
@media(min-width:768px){ .h1{font-size:30px;} }
.lead{color:var(--muted);line-height:1.6;}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  box-shadow:var(--shadow-soft);
  font-weight:600;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(15,23,42,.12);}
.btn:active{transform:translateY(0);}

.btn.primary{
  background:linear-gradient(180deg,#0b2a86,var(--brand));
  border-color:var(--brand);
  color:#fff;
}
.btn.primary:hover{
  background:linear-gradient(180deg,#0a2576,var(--brandHover));
}

.btn.danger{
  background:linear-gradient(180deg,#fee2e2,#fecaca);
  border-color:#fecaca;
}

.btn.red{
  background:linear-gradient(180deg,#f56a80,var(--brand2));
  border-color:var(--brand2);
  color:#fff;
}
.btn.red:hover{
  background:linear-gradient(180deg,#ef4b66,var(--brand2Hover));
}

/* Inputs */
.input,select,textarea{
  width:100%;
  min-height:44px;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  font-size:15px;
}
.input:focus,select:focus,textarea:focus{
  border-color:var(--brand);
  outline:none;
  box-shadow:0 0 0 3px rgba(1,33,105,.14);
}

/* Cards & layout */
.card{
  background:var(--panel);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:var(--shadow);
  border:1px solid var(--border);
}
.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  margin-top:16px;
}
@media(min-width:768px){
  .grid.products{grid-template-columns:repeat(3,1fr);}
}

/* Product card */
.product{
  background:#fff;
  border-radius:16px;
  box-shadow:var(--shadow-soft);
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  border:1px solid transparent;
}
.product:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 40px rgba(15,23,42,.12);
  border-color:rgba(1,33,105,.25);
}
.product img{
  height:180px;
  object-fit:cover;
  border-radius:14px;
}
.product .title{font-weight:800;font-size:15px;line-height:1.25;}
.product .meta{font-size:13px;color:var(--muted);display:flex;justify-content:space-between;gap:10px;align-items:center;}
.product .price{font-weight:900;color:var(--text);}

/* Table */
.table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}
.table th,.table td{
  padding:10px 8px;
  border-bottom:1px solid var(--border);
}
.table th{color:var(--muted);text-align:left;font-weight:800;}

/* Alerts */
.notice{
  background:rgba(1,33,105,.08);
  border:1px solid rgba(1,33,105,.18);
  border-radius:14px;
  padding:10px 12px;
  color:#0b2a86;
}
.error{
  background:rgba(239,68,68,.12);
  border:1px solid rgba(239,68,68,.35);
  border-radius:14px;
  padding:10px 12px;
  color:#7f1d1d;
}

/* Footer */
.footer{
  text-align:center;
  color:var(--muted);
  font-size:12px;
  margin:20px 0 10px;
}

/* Normalize input & select height */
.input,
select.input {
  height: 44px;
  line-height: 44px;
  padding: 0 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-position: right 10px center;
  background-repeat: no-repeat;
}

.brand{display:flex;align-items:center;}
.brandLogo{height:38px;width:auto;display:block;}
@media (max-width:640px){ .brandLogo{height:32px;} }
