:root {
  --bg: #ffffff;
  --fg: #111827;
  --muted: #6b7280;
  --brand1: #111827;
  --brand2: #f59e0b;
  --accent: #ef4444;
}

/* ---------- Base & Layout ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
}

main { display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header / Navigation ---------- */
.header {
  position: sticky;
  top: 0;
  background-color: #ffffffd9;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eee;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
}

.brand .logo {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand2), var(--accent));
}

.menu {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.menu a {
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 10px;
}

.menu a:hover { background: #f5f5f5; }

.cta {
  background: var(--brand1);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 14px;
}

/* ---------- Accessibility ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 8px;
  background: #000;
  color: #fff;
  border-radius: 8px;
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 64px 0;
  background: linear-gradient(180deg, #fff, #fff7ef);
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.2;
  margin: 0 0 10px;
}
.hero p {
  color: var(--muted);
  max-width: 680px;
}

/* ---------- General Sections ---------- */
.section { padding: 56px 0; }
h2 { font-size: 22px; margin: 0 0 12px; }

/* ---------- Grid + Card Styles ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.card {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
}

.card h3 { margin: 6px 0; font-size: 16px; }

.card .price {
  color: var(--brand2);
  font-weight: 600;
  margin-bottom: 4px;
}

.card .small {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--brand1);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s ease;
}
.btn:hover { opacity: 0.9; }
.btn.outline {
  background: transparent;
  border: 2px solid var(--brand1);
  color: var(--brand1);
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #eee;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: #374151;
  background: #fff;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid #eee;
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Product Page Styles ---------- */
.product-page .product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 32px;
}

.product-page .hero-image {
  border-radius: 16px;
  width: 100%;
}

.product-page .hero-info {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.product-page .price {
  color: var(--brand2);
  font-size: 20px;
  font-weight: 700;
}

.bullets {
  list-style: disc;
  margin-left: 18px;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

@media (max-width: 800px) {
  .product-page .product-hero { grid-template-columns: 1fr; }
}

/* ===================================================== */
/* Home Page: Mini arrow list + tooltip hover system     */
/* ===================================================== */
.mini-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.mini-list li {
  position: relative;
  padding-left: 18px;
  margin: 6px 0;
}

.mini-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1.2;
  font-weight: 600;
  opacity: 0.7;
}

.mini-list a {
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  color: inherit; /* so white text inside dark tiles stays white */
}

.mini-list a:focus {
  outline: none;
  border-bottom-color: currentColor;
}

/* Tooltip bubble */
.tip {
  position: absolute;
  left: 18px;
  top: 100%;
  z-index: 5;
  background: #111;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  padding: 8px 10px;
  border-radius: 10px;
  margin-top: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  min-width: 220px;
  max-width: 320px;
  display: none;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.mini-list li:hover .tip,
.mini-list a:focus + .tip,
.mini-list [data-open="true"] .tip {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.tip:before {
  content: "";
  position: absolute;
  top: -6px;
  left: 12px;
  border: 6px solid transparent;
  border-bottom-color: #111;
}

@media (max-width: 560px) {
  .tip { max-width: 85vw; }
}

/* ===================================================== */
/* Home Tile Background Feature                          */
/* ===================================================== */
.tile-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
}

.tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.65));
  border-radius: 1.5rem; /* matches rounded-3xl */
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.tile-bg:hover .tile-overlay { opacity: 0.45; }
