:root{
  --brand:#EB2442;
  --accent:#D3FDF5;
  --bg:#fafafa;
  --text:#1f2937;
  --muted:#6b7280;
  --card:#ffffff;
  --radius:12px;
  --shadow:0 6px 18px rgba(0,0,0,0.08);

  /* NEW: consistent logo size */
  --logo-size:40px; /* try 32px / 36px / 40px / 44px */
}

*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}
img{max-width:100%;height:auto;display:block;}

.container{max-width:1100px;margin:0 auto;padding:16px;}

/* ===== HEADER ===== */
.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
  min-height:72px; /* prevents header height jumping */
}

.brand{display:flex;align-items:center;gap:12px;}

/* NEW: brand link styling so the logo + name align properly */
.brand-link{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
}

/* Your old circular badge (still usable if you keep a <span class="logo">) */
.brand .logo{
  width:var(--logo-size);
  height:var(--logo-size);
  border-radius:50%;
  background: radial-gradient( circle at 30% 30%, var(--accent), #ffffff 60% );
  border:2px solid var(--brand);
  box-shadow: var(--shadow);
  display:grid;
  place-items:center;
  overflow:hidden; /* IMPORTANT if an img is placed inside */
}

/* NEW: CONTROL YOUR <img class="logo-img"> SIZE HERE */
.logo-img{
  width:var(--logo-size);
  height:var(--logo-size);
  object-fit:contain;
  border-radius:50%;
  border:2px solid var(--brand);
  box-shadow: var(--shadow);

  /* optional: keeps your fancy badge feel even with img */
  background: radial-gradient( circle at 30% 30%, var(--accent), #ffffff 60% );
}

/* If you put the image inside <span class="logo">, make it fit */
.brand .logo .logo-img{
  width:75%;
  height:75%;
  object-fit:contain;
  border:none;
  box-shadow:none;
  background:transparent;
  border-radius:0;
}

.brand .name{font-size:20px;font-weight:700;letter-spacing:.2px}

/* NAV */
.nav{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:nowrap; /* prevents wrap causing header taller */
}
.nav a{
  color:var(--text);
  text-decoration:none;
  font-weight:600;
  line-height:1;
}
.nav a.btn{
  background:var(--brand);
  color:#fff;
  padding:8px 14px;
  border-radius:10px;
}

/* ===== HERO ===== */
.flashy-hero{
  position:relative;overflow:hidden;border-radius:16px;background:#111;color:#fff;margin:8px 0 18px 0;
}
.flashy-hero .layer{
  position:absolute;inset:0;
  background:
    radial-gradient(1200px 400px at -20% -20%, rgba(235,36,66,.25), transparent 60%),
    radial-gradient(800px 300px at 120% 20%, rgba(211,253,245,.18), transparent 50%),
    radial-gradient(700px 260px at 50% 120%, rgba(235,36,66,.18), transparent 55%);
  mix-blend-mode:screen;
  animation: shimmer 12s linear infinite;
}
@keyframes shimmer{
  0%{transform:translateX(-6%)}
  50%{transform:translateX(6%)}
  100%{transform:translateX(-6%)}
}
.flashy-hero .content{position:relative;padding:32px 24px;display:flex;flex-wrap:wrap;gap:12px;align-items:center;}
.h-title{font-weight:800;font-size:28px;margin:0 0 4px 0}
.h-sub{opacity:.9;margin:0 0 12px 0}

/* SEARCHBAR */
.searchbar{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 2px}
.searchbar input, .searchbar select{
  padding:10px 12px;border-radius:10px;border:1px solid #e5e7eb;background:#fff;min-width:200px;
}
.searchbar button{background:var(--brand);color:#fff;border:none;padding:10px 14px;border-radius:10px;cursor:pointer}

/* GRID / CARDS */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.card{
  background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);
  overflow:hidden;display:flex;flex-direction:column;
}
.card .img{aspect-ratio:4/3;object-fit:cover;background:#eee;width:100%;display:block}
.card .body{padding:12px}
.card .title{font-weight:700;margin:2px 0 6px 0}
.card .sku{color:var(--muted);font-size:12px;margin-bottom:6px}
.card .price{font-weight:800;color:var(--brand)}
.stars{color:#f59e0b;font-size:14px;letter-spacing:1px}
.card .actions{display:flex;gap:8px;margin-top:auto;padding:12px}
.btn{display:inline-block;padding:8px 12px;border-radius:10px;border:1px solid #e5e7eb;background:#fff;cursor:pointer;text-decoration:none;color:var(--text)}
.btn.primary{background:var(--brand);color:#fff;border:none}

/* FOOTER */
.footer{margin:28px 0;color:var(--muted);font-size:13px}

/* TABLE */
.table{width:100%;border-collapse:separate;border-spacing:0 8px}
.table th, .table td{padding:10px 12px;background:#fff}
.table th{font-size:12px;color:#374151;text-transform:uppercase;letter-spacing:.6px}
.table tr td:first-child, .table tr th:first-child{border-top-left-radius:10px;border-bottom-left-radius:10px}
.table tr td:last-child, .table tr th:last-child{border-top-right-radius:10px;border-bottom-right-radius:10px}
.badge{display:inline-block;padding:3px 8px;border-radius:999px;background:var(--accent);color:#065f46;font-weight:700;font-size:11px}
.badge-success{background:#d1fae5;color:#065f46}
.badge-warning{background:#fef3c7;color:#92400e}
.badge-secondary{background:#f3f4f6;color:#374151}
.badge-danger{background:#fee2e2;color:#991b1b}
.text-muted{color:#6b7280;font-size:12px}

/* TABS */
.tabs{display:flex;gap:6px;margin:8px 0 12px}
.tab{padding:8px 12px;border-radius:10px;border:1px solid #e5e7eb;background:#fff;cursor:pointer}
.tab.active{background:var(--brand);color:#fff;border-color:var(--brand)}
.tabpanel{display:none}
.tabpanel.active{display:block}

/* FORMS */
.form-row{display:flex;gap:10px;flex-wrap:wrap}
.input{display:flex;flex-direction:column;gap:4px;flex:1;min-width:230px}
.input input,.input textarea,.input select{
  padding:10px;border-radius:10px;border:1px solid #e5e7eb;background:#fff
}
.input textarea{min-height:100px;resize:vertical}
.form-actions{display:flex;gap:8px;margin-top:10px}

/* PAGINATION */
.pagination{display:flex;gap:6px;justify-content:center;margin:12px 0}
.pagination a, .pagination span{
  padding:8px 12px;border-radius:10px;border:1px solid #e5e7eb;background:#fff;text-decoration:none;color:#111
}
.pagination .current{background:var(--brand);color:#fff;border-color:var(--brand)}

/* MODAL */
.modal{position:fixed;inset:0;background:rgba(0,0,0,.5);display:none;align-items:center;justify-content:center;padding:12px;z-index:40}
.modal .dialog{background:#fff;border-radius:14px;max-width:520px;width:100%;box-shadow:var(--shadow);overflow:hidden}
.modal .header{display:flex;justify-content:space-between;align-items:center;padding:12px;border-bottom:1px solid #eee}
.modal .content{padding:12px}
.close{border:none;background:transparent;font-size:20px;cursor:pointer}

/* NOTICES */
.notice{background:#ecfeff;border:1px solid #a5f3fc;padding:10px;border-radius:10px;margin:10px 0;color:#0c4a6e}
.error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}

/* ===== RESPONSIVE ===== */
@media (max-width:720px){
  .header{flex-wrap:wrap;gap:10px;}
  .nav{width:100%;justify-content:flex-start;flex-wrap:wrap;}
  .nav a.btn{margin-left:0;}
}
