/* ===== Theme & Base ===== */
:root {
  --bg: #0f172a;         /* page background */
  --fg: #e2e8f0;         /* text color */
  --muted: #cbd5e1;      /* secondary text */
  --accent: #2563eb;     /* buttons/links */
  --card: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.15);
  --header-h: clamp(56px, 9vh, 80px); /* used to offset main centering */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
}

/* ===== Header / Nav (works even with <a><li></li></a> structure) ===== */
header.topside{
  position: sticky;
  top: 0;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2,6,23,.6);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.navside ul{
  display: flex;
  justify-content: center;
  gap: .75rem;
  list-style: none;
  margin: 0;
  padding: .75rem 1rem;
}

.navside ul > a{
  display: block;
  padding: .5rem .9rem;
  border-radius: 999px;
  color: var(--fg);
  text-decoration: none;
  transition: transform .12s ease, background-color .12s ease;
}

.navside ul > a:hover{
  background: var(--card);
  transform: translateY(-1px);
}

/* Optional: highlight current page link if you add aria-current="page" */
.navside a[aria-current="page"]{
  background: var(--card);
  outline: 2px solid var(--border);
}

/* ===== Index "message" (hero) ===== */
.intro{
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(37,99,235,.15), transparent 60%),
    radial-gradient(800px 400px at 10% 0%, rgba(16,185,129,.12), transparent 60%),
    var(--bg);
}

.message{
  width: min(720px, 92%);
  padding: 2rem;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  text-align: center;
}

.message h1{
  margin: 0 0 .5rem;
  font-size: clamp(1.6rem, 3vw + 1rem, 2.6rem);
}

.message p{
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.6;
}

.actions{
  display: flex;
  justify-content: center;
}

.btn{
  display: inline-block;
  padding: .7rem 1.1rem;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.08); }

/* ===== Contact form (centered properly) ===== */
.starter{
  min-height: calc(100vh - var(--header-h));   /* <-- keeps vertical centering even with header */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.putform{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(600px, 92%);
  padding: 1.25rem;
  background: #fff;
  color: #0f172a;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}

.form-group,
.form-group2{
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

label{ font-weight: 600; }

/* Inputs + textarea share styling */
.putform input,
.putform textarea{
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  outline: none;
  font: inherit;
}

.putform input{
  height: 2.75rem;
}

.putform textarea{
  min-height: 7rem;
  resize: vertical;
}

.putform input:focus,
.putform textarea:focus{
  border-color: #6aa6ff;
  box-shadow: 0 0 0 3px rgba(106,166,255,.2);
}

.actions{
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
}

button{
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
button:hover{ opacity: .95; }

/* ===== Small screens ===== */
@media (max-width: 520px){
  .navside ul{ gap: .5rem; }
  .message{ padding: 1.25rem; }
}
/* ===== Products Table ===== */
.table-section { padding: 2rem 1rem; display: flex; justify-content: center; }
.table-card { width: min(1100px, 95%); background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.35); padding: 1rem; }

.table-card h2 { margin: .25rem 0 1rem; font-size: clamp(1.1rem, 1.4vw + .8rem, 1.6rem); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; table-layout: auto; color: var(--fg); }
.table thead th { text-align: left; font-weight: 700; border-bottom: 1px solid var(--border);
  padding: .9rem .9rem; background: rgba(255,255,255,.04); position: sticky; top: 0; z-index: 1; }
.table tbody td { padding: .8rem .9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:nth-child(even) { background: rgba(255,255,255,.03); }
.table tbody tr:hover { background: rgba(255,255,255,.06); }
.table tfoot td { padding: .8rem .9rem; border-top: 1px solid var(--border); font-weight: 600; }

/* Helpers */
.table .numeric { text-align: right; white-space: nowrap; }
.table .center { text-align: center; }
.table--compact thead th, .table--compact tbody td, .table--compact tfoot td { padding: .55rem .7rem; }

/* Product cell with thumbnail */
.product-cell { display: flex; align-items: center; gap: .75rem; }
.product-cell .thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); }
.product-cell .name { font-weight: 600; line-height: 1.2; }
.sku { color: var(--muted); font-size: .85rem; }

/* Category tag + status badge */
.tag { display: inline-block; padding: .25rem .55rem; border-radius: 999px; font-size: .8rem; line-height: 1;
  border: 1px solid var(--border); background: rgba(255,255,255,.08); }
.badge { display: inline-block; padding: .25rem .55rem; border-radius: 999px; font-size: .8rem; line-height: 1;
  border: 1px solid var(--border); background: rgba(255,255,255,.08); }
.badge--ok { background: rgba(16,185,129,.18); }
.badge--low { background: rgba(245,158,11,.18); }
.badge--out { background: rgba(239,68,68,.18); }

/* Rating (★) */
.rating { font-size: .95rem; letter-spacing: .06em; }
.rating .dim { opacity: .35; }

/* Action buttons (reuse your .btn if present) */
.btn { display: inline-block; padding: .5rem .8rem; border-radius: 8px; background: var(--accent);
  color: #fff; text-decoration: none; font-weight: 600; border: 0; cursor: pointer; }
.btn:hover { opacity: .95; transform: translateY(-1px); transition: transform .12s ease, opacity .12s ease; }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }


/* ---------- Layout helpers ---------- */
.container { width: min(1100px, 92%); margin-inline: auto; }
.section { padding: 3.5rem 0; }
.section__title { margin: 0 0 1.25rem; font-size: clamp(1.25rem, 1.8vw + 1rem, 2rem); }
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px){ .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .7rem 1.1rem; border-radius: 10px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600;
  transition: transform .12s ease, filter .12s ease, opacity .12s ease;
  border: 0;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn--light { background: #fff; color: #111827; }
.btn--sm { padding: .5rem .8rem; border-radius: 8px; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid; place-items: center;
  padding: 4rem 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(37,99,235,.15), transparent 60%),
    radial-gradient(800px 400px at 10% 0%, rgba(16,185,129,.12), transparent 60%),
    var(--bg);
}
.hero__wrap {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center;
}
@media (max-width: 900px){ .hero__wrap { grid-template-columns: 1fr; } }

.hero__content h1 {
  margin: 0 0 .5rem;
  font-size: clamp(1.8rem, 3.2vw + 1rem, 3rem);
}
.hero__content p {
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.65;
}
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* simple decorative art block */
.hero__art {
  height: 320px; border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(99,102,241,.35), rgba(59,130,246,.25)),
    url('https://picsum.photos/900/600?random=1') center/cover no-repeat;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
@media (max-width: 560px){ .hero__art { height: 220px; } }

/* ---------- Feature cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 1rem; box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.card__icon { font-size: 1.6rem; }

/* ---------- Product cards ---------- */
.product {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.25); display: flex; flex-direction: column;
}
.product__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product__body { padding: 1rem; display: grid; gap: .5rem; }
.product__name { margin: 0; font-size: 1.1rem; }
.product__meta { color: var(--muted); font-size: .95rem; }
.product__row { display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 700; }

/* section CTA */
.section__cta { margin-top: 1rem; display: flex; justify-content: center; }