:root {
  --blue: #0e2a6e;
  --blue2: #123a8f;
  --red: #e8212d;
  --yellow: #ffc21a;
  --bg: #f4f7ff;
  --ink: #1c2333;
  --muted: #5b6478;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

h1, h2, h3, .wordmark { font-family: 'Fredoka', system-ui, sans-serif; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--yellow);
}
header .wrap { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.wordmark {
  font-size: 26px; font-weight: 700; letter-spacing: .5px;
  color: var(--red);
  text-shadow: 2px 2px 0 var(--yellow);
  text-decoration: none;
}
header nav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
header nav a.navlink { color: var(--blue); text-decoration: none; font-weight: 700; display: none; }
@media (min-width: 640px) { header nav a.navlink { display: inline; } }
.btn-call {
  background: var(--blue); color: #fff; text-decoration: none;
  padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 14px;
  white-space: nowrap;
}

/* Hero */
.hero { position: relative; background: var(--blue); overflow: hidden; }
.hero img { width: 100%; display: block; max-height: 420px; object-fit: cover; object-position: center; }
.hero .hero-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px 18px;
  background: linear-gradient(180deg, rgba(10,20,60,0) 40%, rgba(10,20,60,.72));
  color: #fff;
}
.hero .hero-text .wrap { width: 100%; }
.hero h1 { font-size: clamp(26px, 4.5vw, 44px); font-weight: 700; }
.hero p { font-size: clamp(14px, 2vw, 18px); font-weight: 600; opacity: .95; }

/* Badges */
.badges { background: #fff; border-bottom: 1px solid #e6eaf5; }
.badges .wrap { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 14px; padding-bottom: 14px; justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg); border: 1px solid #e0e6f5; border-radius: 999px;
  padding: 7px 14px; font-size: 13.5px; font-weight: 800; color: var(--blue);
}
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.badge:nth-child(2) .dot { background: var(--yellow); }
.badge:nth-child(3) .dot { background: #19b35c; }

/* Sections */
section { padding: 42px 0; }
.section-title { font-size: clamp(22px, 3.4vw, 32px); color: var(--blue); text-align: center; margin-bottom: 6px; }
.section-sub { text-align: center; color: var(--muted); font-weight: 600; margin-bottom: 28px; }

/* Product grid */
#grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 6px 22px rgba(14,42,110,.09);
  border: 1px solid #e8edf8;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(14,42,110,.14); }
.card-img { aspect-ratio: 1/1; overflow: hidden; cursor: pointer; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 18px; color: var(--ink); font-weight: 600; }
.card-body .tag { font-size: 13.5px; color: var(--muted); font-weight: 600; flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.price { font-family: 'Fredoka', sans-serif; font-size: 24px; font-weight: 700; color: var(--red); }
.card-actions { display: flex; gap: 8px; margin-top: 8px; }
.btn {
  border: 0; border-radius: 12px; cursor: pointer;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 14.5px;
  padding: 11px 14px; flex: 1;
}
.btn-outline { background: #eef2fc; color: var(--blue); }
.btn-buy { background: var(--red); color: #fff; }
.btn-buy:hover { background: #c81a25; }

/* How to order */
.how { background: var(--blue); color: #fff; }
.how .section-title { color: #fff; }
.how .section-sub { color: #c9d6f5; }
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px; padding: 20px;
}
.step .num {
  font-family: 'Fredoka', sans-serif; font-size: 30px; font-weight: 700; color: var(--yellow);
}
.step h3 { font-size: 18px; margin: 4px 0 6px; }
.step p { font-size: 14.5px; color: #dbe4f8; font-weight: 600; }
.nocod {
  margin-top: 22px; text-align: center;
  background: rgba(255,194,26,.14); border: 1px dashed var(--yellow);
  color: #ffe9ad; border-radius: 14px; padding: 14px 18px; font-weight: 700;
}

/* Contact */
.contact-card {
  background: #fff; border-radius: 18px; border: 1px solid #e8edf8;
  box-shadow: 0 6px 22px rgba(14,42,110,.09);
  max-width: 560px; margin: 0 auto; padding: 26px; text-align: center;
}
.contact-card p { color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.contact-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.contact-actions a {
  text-decoration: none; font-weight: 800; font-size: 15px;
  padding: 12px 20px; border-radius: 12px;
}
.a-call { background: var(--blue); color: #fff; }
.a-wa { background: #1faa53; color: #fff; }

/* Modal */
#modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(8,14,38,.72); padding: 18px;
  align-items: center; justify-content: center;
}
#modal.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 20px; max-width: 900px; width: 100%;
  max-height: 92vh; overflow-y: auto; padding: 22px;
  display: grid; gap: 20px; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .modal-box { grid-template-columns: 1.1fr 1fr; } }
.m-close {
  position: sticky; top: 0; float: right; margin-left: auto;
  background: #eef2fc; border: 0; border-radius: 50%;
  width: 38px; height: 38px; font-size: 20px; cursor: pointer; color: var(--blue);
  grid-column: 1 / -1; margin-bottom: -10px;
}
.m-gallery img#main-img, #m-main-img {
  width: 100%; border-radius: 14px; display: block; background: #fff;
  aspect-ratio: 1/1; object-fit: cover;
}
#m-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
#m-thumbs img {
  width: 62px; height: 62px; object-fit: cover; border-radius: 10px; cursor: pointer;
  border: 2px solid transparent; opacity: .75;
}
#m-thumbs img.on { border-color: var(--red); opacity: 1; }
.m-info h2 { font-size: 24px; color: var(--blue); }
.m-info .m-tag { color: var(--muted); font-weight: 700; margin: 2px 0 10px; }
.m-info .m-price { font-family: 'Fredoka', sans-serif; font-size: 30px; font-weight: 700; color: var(--red); margin-bottom: 10px; }
.m-info p.m-desc { margin-bottom: 12px; }
.m-info ul { margin: 0 0 16px 18px; }
.m-info li { margin-bottom: 5px; font-weight: 600; font-size: 14.5px; }
.m-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.m-actions .btn { flex: 1; min-width: 140px; }
.btn-wa { background: #1faa53; color: #fff; text-decoration: none; text-align: center; display: inline-block; }

/* Toast */
#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(140%);
  background: var(--blue); color: #fff; padding: 14px 20px; border-radius: 14px;
  font-weight: 700; font-size: 14.5px; text-align: center; line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); z-index: 200;
  transition: transform .25s ease; max-width: 92vw;
}
#toast.show { transform: translateX(-50%) translateY(0); }
#toast a { color: var(--yellow); }

/* Footer */
footer { background: var(--blue); color: #c9d6f5; padding: 30px 0 40px; margin-top: 10px; }
footer .wrap { text-align: center; }
footer .f-title { font-family: 'Fredoka', sans-serif; color: #fff; font-size: 22px; margin-bottom: 6px; }
footer p { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
footer a { color: var(--yellow); text-decoration: none; font-weight: 800; }
