/* ===== Base ===== */
:root {
  --blue: #006aa7;
  --blue-dark: #00538a;
  --yellow: #fecc02;
  --ink: #1a1a1a;
  --muted: #5b6470;
  --bg: #f4f6f8;
  --card: #ffffff;
  --border: #e3e7ec;
  --amazon: #ff9900;
  --amazon-dark: #e88a00;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 40, 80, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--blue); }

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

/* ===== Header ===== */
.site-header {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 42px 0 56px;
  position: relative;
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 1.25rem;
}

.brand .flag {
  width: 34px;
  height: 24px;
  border-radius: 4px;
  background:
    linear-gradient(var(--yellow), var(--yellow)) center / 100% 7px no-repeat,
    linear-gradient(90deg, var(--blue) 38%, var(--yellow) 38% 52%, var(--blue) 52%);
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}

.hero {
  margin-top: 26px;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.12;
  margin: 0 0 14px;
}

.hero p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* ===== Products ===== */
.products {
  padding: 48px 0 70px;
}

.section-title {
  font-size: 1.5rem;
  margin: 0 0 6px;
}

.section-sub {
  color: var(--muted);
  margin: 0 0 30px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 26px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(0, 40, 80, 0.14);
}

.card__media {
  background: #fff;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 230px;
  border-bottom: 1px solid var(--border);
}

.card__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__more {
  margin-top: 4px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--blue);
}

.card:hover .card__more { color: var(--blue-dark); }

.card__tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--blue-dark);
  background: #e8f2fa;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.card__title {
  font-size: 1.06rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}

.card__desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 14px;
  flex: 1;
}

.card__meta {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: var(--muted);
}

.card__meta li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  border-bottom: 1px dashed var(--border);
}

.card__meta li span:first-child { font-weight: 600; color: var(--ink); }

.stars {
  color: var(--amazon-dark);
  font-size: 0.9rem;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.stars small { color: var(--muted); margin-left: 6px; letter-spacing: 0; }

.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: #111;
  background: linear-gradient(180deg, var(--amazon) 0%, var(--amazon-dark) 100%);
  padding: 12px 16px;
  border-radius: 10px;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.btn-buy:hover { filter: brightness(1.05); }
.btn-buy:active { transform: scale(0.98); }

.btn-buy svg { width: 18px; height: 18px; }

/* ===== Slim header (product pages) ===== */
.site-header--slim { padding: 22px 0; }
.site-header--slim .brand { text-decoration: none; color: #fff; }

/* ===== Product detail page ===== */
.product-page { padding: 34px 0 70px; }

.crumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 22px;
}
.crumbs a { text-decoration: none; }
.crumbs span { margin: 0 6px; }

.detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}

.detail__media {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 320px;
}

.detail__media img {
  max-width: 100%;
  max-height: 440px;
  object-fit: contain;
}

.detail__title {
  font-size: 1.7rem;
  line-height: 1.2;
  margin: 10px 0 12px;
}

.detail__long { margin: 16px 0 22px; color: #33414e; }
.detail__long p { margin: 0 0 12px; }

.detail__h2 {
  font-size: 1.1rem;
  margin: 26px 0 10px;
  color: var(--blue-dark);
}

.detail__meta li { font-size: 0.9rem; }

.btn-buy--lg {
  font-size: 1.05rem;
  padding: 15px 26px;
  align-self: flex-start;
}

.back-link {
  display: inline-block;
  margin-top: 22px;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 760px) {
  .detail { grid-template-columns: 1fr; padding: 22px; gap: 24px; }
  .detail__media { min-height: 240px; }
}

/* ===== Footer ===== */
.site-footer {
  background: #0e2233;
  color: #c5d2dd;
  padding: 40px 0;
  font-size: 0.9rem;
}

.site-footer a { color: #fff; }

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.footer-grid nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-grid nav a { text-decoration: none; }
.footer-grid nav a:hover { text-decoration: underline; }

.disclaimer {
  margin-top: 18px;
  color: #7e93a4;
  font-size: 0.8rem;
  max-width: 760px;
}

/* ===== Cookie banner ===== */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(140%);
  width: min(960px, 94vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie.show { transform: translateX(-50%) translateY(0); }

.cookie__text { flex: 1; min-width: 240px; font-size: 0.9rem; color: var(--muted); }
.cookie__text strong { color: var(--ink); display: block; margin-bottom: 4px; font-size: 0.98rem; }

.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  cursor: pointer;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 9px;
  transition: filter 0.15s ease;
}

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--bg); }

/* ===== Policy page ===== */
.policy {
  background: #fff;
  margin: 40px auto;
  padding: 46px 50px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 860px;
}

.policy h1 { margin-top: 0; }
.policy h2 { margin-top: 32px; color: var(--blue-dark); }
.policy a.back { display: inline-block; margin-bottom: 20px; text-decoration: none; font-weight: 600; }

@media (max-width: 560px) {
  .card__media { height: 200px; }
  .policy { padding: 30px 22px; }
}
