:root {
  --bg: #0b0c10;
  --card: #12141b;
  --text: #e8e8e8;
  --muted: #b5b5b5;
  --line: #ffffff;
  --line-soft: rgba(255,255,255,0.10);
  --btn: #2f6df6;

  /* Image sizing */
  --thumb-h: 240px;     /* bigger cards */
  --product-h: 420px;

  /* Logo sizing */
  --logo-h: 64px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

/* ================= HEADER ================= */

header { padding: 20px 0 14px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* ✅ REAL LOGO IMAGE (no grey box) */
.site-logo {
  height: var(--logo-h);
  width: auto;
  object-fit: contain;
  display: block;

  /* Force no background/border box */
  background: transparent;
  border: 0;
  border-radius: 0;
}

/* If you still have <span class="logo"></span> anywhere, hide it */
.logo { display: none; }

.brand {
  font-weight: 900;
  letter-spacing: 0.6px;
  line-height: 1.1;
}

.subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
  line-height: 1.2;
}

/* ================= NAVIGATION ================= */

.navline {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  gap: 18px;
  padding: 10px 0;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  opacity: 0.92;
}

.nav a:hover { opacity: 1; }

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown > a::after {
  content: " ▾";
  font-weight: 700;
  opacity: 0.9;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: #0f1117;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 8px;
  display: none;
  z-index: 50;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.dropdown-menu a {
  display: block;
  padding: 10px;
  border-radius: 10px;
  color: var(--text);
  opacity: 0.9;
  font-weight: 650;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(255,255,255,0.06);
  opacity: 1;
}

.dropdown:hover .dropdown-menu { display: block; }

/* ================= HERO ================= */

.hero { padding: 22px 0 8px; }

.hero h1 {
  margin: 0 0 10px;
  font-size: 32px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 800px;
  line-height: 1.5;
}

/* ================= GRID ================= */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

/* ✅ Your HTML is: <article class="card"><a class="card-link">...</a></article> */
.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* Make the <a> fill the whole card */
.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ✅ Correct hover (works with your HTML) */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.18);
}

/* ✅ CARD IMAGES */
.card img {
  width: 100%;
  height: var(--thumb-h);
  object-fit: contain;
  object-position: center;
  padding: 18px;

  /* remove grey block look: use same as page background */
  background: transparent;

  display: block;
}

/* Content */
.card .content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;

  /* give text section subtle separation without a “grey box” */
  border-top: 1px solid var(--line-soft);
}

.title { font-weight: 800; }
.price { color: var(--muted); }
.badge { font-size: 13px; color: var(--muted); }

/* ================= BUTTONS ================= */

.actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--btn);
  color: white;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 750;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.btn.secondary {
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--text);
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ================= PRODUCT PAGE ================= */

.product {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-top: 18px;
}

.product img {
  width: 100%;
  height: var(--product-h);
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: transparent;
  padding: 18px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.product h1 { margin: 0 0 8px; }
.product .meta { color: var(--muted); margin-bottom: 12px; }
.product p { line-height: 1.55; }
.product ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }

/* Section titles */
.h2 {
  margin: 26px 0 12px;
  font-size: 20px;
}

/* ================= FOOTER ================= */

footer {
  margin-top: 40px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product { grid-template-columns: 1fr; }
  :root { --product-h: 360px; --thumb-h: 230px; --logo-h: 58px; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  :root { --thumb-h: 220px; --product-h: 320px; --logo-h: 52px; }
}
