/* WonderNestUAE — styles.css
   Brand colours are taken from the logo. Change them here in one place. */
:root {
  --navy: #0f3f75;
  --navy-dark: #0a2d55;
  --orange: #ff9f1a;
  --orange-dark: #e8870a;
  --bg: #fffdf9;
  --surface: #ffffff;
  --tint: #eef2f8;
  --text: #1b2430;
  --muted: #5d6b7d;
  --line: #e1e6ee;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.wrap { width: min(100% - 2rem, 1100px); margin-inline: auto; }

/* Header */
.site-header { padding: 1.25rem 0 1rem; text-align: center; }
.logo { display: inline-block; }
.logo img { width: min(260px, 70vw); margin-inline: auto; }
.tagline { margin: .5rem 0 0; color: var(--muted); font-size: .95rem; }

/* Category navigation (anchor links, works without JS) */
.cat-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 249, .95);
  border-bottom: 1px solid var(--line);
}
.cat-nav ul {
  display: flex;
  gap: .5rem;
  margin: 0;
  padding: .6rem 1rem;
  list-style: none;
  overflow-x: auto;
  justify-content: flex-start;
  scrollbar-width: none;
}
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a {
  display: block;
  white-space: nowrap;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--navy);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}
.cat-nav a:hover { background: var(--navy); color: #fff; }

@media (min-width: 640px) {
  .cat-nav ul { justify-content: center; }
}

/* Category sections */
.category { padding: 2rem 0 .5rem; }
.category-title {
  margin: 0 0 1rem;
  padding-left: .75rem;
  border-left: 5px solid var(--orange);
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1.2;
}

/* Product grid: 2 columns on phones, more on larger screens */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px)  { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

/* Product card: the whole card is one link to Amazon */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.product-card:hover {
  border-color: var(--navy);
  box-shadow: 0 6px 18px rgba(15, 63, 117, .12);
}
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--tint);
}
.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .6rem;
  padding: .75rem;
}
.product-name {
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
}
.product-note { margin: -.3rem 0 0; color: var(--muted); font-size: .8rem; }

.buy-btn {
  margin-top: auto;
  padding: .55rem .75rem;
  border-radius: 10px;
  background: var(--orange);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: .85rem;
  text-align: center;
  margin: 0 8px;
}
.product-card:hover .buy-btn { background: var(--orange-dark); }

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 1.75rem 0 2.25rem;
  background: var(--navy);
  color: #dbe5f2;
  text-align: center;
  font-size: .85rem;
}
.site-footer p { margin: .35rem 0; }
.site-footer a { color: #fff; font-weight: 600; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

