:root {
  --navy: #0a1f4f;
  --navy-2: #14307a;
  --red: #d71f2b;
  --red-dark: #b3151f;
  --sky: #48bbf5;
  --sky-soft: #e3f4ff;
  --white: #ffffff;
  --ink: #0a1f4f;
  --muted: #4a5d86;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(10, 31, 79, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

h1, h2, h3, .display {
  font-family: "Anton", "Poppins", Impact, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;
}

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 14px rgba(10, 31, 79, 0.25); }
.top-strip { background: var(--navy); color: var(--white); }
.top-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
}
.top-strip .tag { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sky); }
.top-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 9px 18px;
  font: 600 0.9rem/1 "Poppins", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); }
.btn:focus-visible, .tabs a:focus-visible, .pill:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-sky { background: var(--sky); color: var(--navy); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

.main-nav { background: var(--white); }
.main-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 3px solid var(--red); background: var(--sky); }
.brand span { font-family: "Anton", sans-serif; font-size: 1.5rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy); }
.brand span b { color: var(--red); font-weight: 400; }
.tabs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tabs a {
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--navy);
}
.tabs a:hover { background: var(--sky-soft); }
.tabs a[aria-current="page"] { background: var(--navy); color: var(--white); }
.cart-btn { position: relative; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--red); color: var(--white);
  font-size: 0.75rem; display: inline-grid; place-items: center;
}
.cart-btn.on-nav { background: var(--navy); color: var(--white); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.45), transparent 45%),
    linear-gradient(160deg, var(--sky) 0%, #7fd0fa 100%);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
  padding: 48px 0 56px;
}
.hero .eyebrow { font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); font-size: 0.95rem; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); color: var(--navy); margin: 8px 0 6px; }
.hero h1 em { font-style: normal; color: var(--red); display: block; }
.hero .big { font-family: "Anton", sans-serif; text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--white); text-shadow: 0 3px 0 var(--navy); letter-spacing: 0.03em; margin: 0 0 14px; }
.hero p.lead { font-size: 1.2rem; font-weight: 600; color: var(--navy); margin: 0 0 18px; max-width: 30ch; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.pills li {
  background: var(--navy); color: var(--white);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem;
  padding: 9px 18px; border-radius: 999px;
}
.pills li:nth-child(2) { background: var(--red); }
.pills li:nth-child(3) { background: var(--white); color: var(--navy); }
.hero .follow { font-weight: 700; color: var(--navy); margin: 0 0 14px; }
.hero-photo { position: relative; justify-self: center; width: min(460px, 100%); }
.hero-photo img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%;
  border: 8px solid var(--white);
  box-shadow: var(--shadow), 14px 14px 0 var(--red);
  background: var(--sky);
}
.hero-photo .sticker {
  position: absolute; right: -6px; bottom: -14px;
  background: var(--red); color: var(--white);
  font-family: "Anton", sans-serif; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 10px 18px; border-radius: 12px; transform: rotate(-6deg);
  border: 3px solid var(--white); box-shadow: var(--shadow);
}

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--sky-soft); }
.section.navy { background: var(--navy); color: var(--white); }
.section h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--navy); margin-bottom: 14px; }
.section.navy h2 { color: var(--white); }
.section h2 span { color: var(--red); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 8px solid var(--red); }
.card:nth-child(2) { border-top-color: var(--navy); }
.card:nth-child(3) { border-top-color: var(--sky); }
.card h3 { font-size: 1.6rem; margin-bottom: 8px; color: var(--navy); }
.card p { margin: 0; color: var(--muted); }
.cta { text-align: center; }
.cta .btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }

.page-head { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); padding: 44px 0; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.page-head h1 span { color: var(--sky); }
.page-head p { margin: 8px 0 0; color: #cfe7ff; font-size: 1.05rem; max-width: 56ch; }

.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: center; }
.about-grid img { border-radius: var(--radius); border: 6px solid var(--white); box-shadow: var(--shadow), 10px 10px 0 var(--sky); background: var(--sky); }
.about-grid p { font-size: 1.1rem; margin: 0 0 14px; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 18px; }
.contact-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.6rem; color: var(--navy); margin-bottom: 8px; }
.contact-card p { margin: 0 0 16px; color: var(--muted); }

/* ---------- shop ---------- */
.shop-wrap { padding: 36px 0 64px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.product { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product .media { position: relative; aspect-ratio: 1; background: var(--sky-soft); display: block; }
.product .media img { width: 100%; height: 100%; object-fit: cover; }
.product .media .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: "Anton", sans-serif; color: var(--sky); font-size: 2rem; }
.ribbon { position: absolute; top: 12px; left: 12px; background: var(--red); color: var(--white); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 5px 10px; border-radius: 999px; }
.product .info { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product h3 { font-size: 1.25rem; }
.product h3 a { text-decoration: none; }
.price { font-weight: 700; color: var(--red); font-size: 1.05rem; }
.price s { color: var(--muted); font-weight: 500; margin-right: 6px; }
.product .info .btn { margin-top: auto; width: 100%; }
.state-msg { text-align: center; padding: 48px 16px; background: var(--sky-soft); border-radius: var(--radius); color: var(--navy); font-weight: 600; }
.skeleton { height: 330px; border-radius: var(--radius); background: linear-gradient(90deg, #e9f6ff, #f7fcff, #e9f6ff); background-size: 200% 100%; animation: shine 1.2s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }

.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 36px 0 64px; align-items: start; }
.pdp-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--sky-soft); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { border: 3px solid transparent; padding: 0; border-radius: 12px; overflow: hidden; width: 64px; height: 64px; cursor: pointer; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--red); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); }
.pdp .price { font-size: 1.5rem; margin: 10px 0 16px; display: block; }
.opt { margin: 16px 0; }
.opt .label { font-weight: 700; margin-bottom: 8px; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.06em; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 2px solid var(--navy); background: var(--white); color: var(--navy); border-radius: 999px; padding: 8px 16px; font: 600 0.9rem "Poppins", sans-serif; cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.pill[disabled] { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }
.pill .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; border: 1px solid rgba(0,0,0,.3); vertical-align: -1px; }
.text-in { width: 100%; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--navy); font: 1rem "Poppins", sans-serif; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--navy); border-radius: 999px; overflow: hidden; }
.qty button { border: 0; background: var(--white); width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer; color: var(--navy); }
.qty span { min-width: 36px; text-align: center; font-weight: 700; }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.note { color: var(--red); font-weight: 600; min-height: 1.4em; margin-top: 8px; }
.desc { margin-top: 22px; color: var(--muted); }
.info-sec { margin-top: 14px; border-top: 2px solid var(--sky-soft); padding-top: 12px; }
.info-sec h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--navy); }

/* cart drawer */
.scrim { position: fixed; inset: 0; background: rgba(10, 31, 79, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 40; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--white); z-index: 50; transform: translateX(100%); transition: transform 0.25s ease;
  display: flex; flex-direction: column; box-shadow: none; visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25); }
.drawer header { background: var(--navy); color: var(--white); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; }
.drawer header h2 { font-size: 1.6rem; }
.drawer .close { background: none; border: 0; color: var(--white); font-size: 1.8rem; cursor: pointer; line-height: 1; }
.drawer .lines { flex: 1; overflow: auto; padding: 8px 20px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--sky-soft); align-items: center; }
.line img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: var(--sky-soft); }
.line .name { font-weight: 700; }
.line .meta { font-size: 0.8rem; color: var(--muted); }
.line .qty { transform: scale(0.85); transform-origin: left center; margin-top: 4px; }
.line .rm { background: none; border: 0; color: var(--red); font-weight: 600; cursor: pointer; font-size: 0.8rem; padding: 0; }
.drawer footer { padding: 16px 20px; border-top: 2px solid var(--sky-soft); }
.drawer .sub { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 12px; font-size: 1.1rem; }
.drawer .err { color: var(--red); font-weight: 600; margin: 0 0 10px; }
.drawer .empty { text-align: center; padding: 48px 12px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #cfe7ff; padding: 32px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer .display { color: var(--white); font-size: 1.4rem; }
.site-footer a { color: var(--sky); font-weight: 600; margin-left: 14px; }

@media (max-width: 820px) {
  .hero .wrap, .about-grid, .pdp { grid-template-columns: 1fr; }
  .hero .wrap { padding: 32px 0 48px; }
  .hero-photo { order: -1; width: min(320px, 80%); }
  .cards, .contact-grid { grid-template-columns: 1fr; }
  .top-strip .tag { display: none; }
  .top-actions { width: 100%; }
  .top-actions .btn { flex: 1; padding-inline: 10px; font-size: 0.8rem; }
  .main-nav .wrap { justify-content: center; }
  .tabs a { padding: 8px 12px; font-size: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* width/height attributes reserve space; CSS keeps the true aspect ratio */
.hero-photo img, .about-grid img { height: auto; }

.catbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 24px; }
.catbar[hidden] { display: none; }
.catbar label { font-weight: 700; color: var(--navy); }
.catbar select { font: inherit; font-weight: 600; color: var(--navy); background: #fff; border: 2px solid var(--navy); border-radius: 999px; padding: 10px 40px 10px 18px; min-width: 220px; max-width: 100%; cursor: pointer; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.catbar select:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
