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

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center;
  background: #e8f4fc;
  color: #1a365d;
  text-align: center;
}

a { color: inherit; }

.banner {
  width: 100%;
  max-width: 1000px;
  max-height: 280px;
  object-fit: cover;
}

.content {
  display: flex; flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 2rem;
  margin-top: 0;
  width: 100%;
  max-width: 1000px;
  position: relative;
}

.icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #b8d9f0;
  background: #fff;
  flex-shrink: 0;
  margin: 0 2rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: #1a365d;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s;
  position: absolute;
  right: 2rem;
}
.btn:hover {
  background: #2b4c7e;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26,54,93,0.3);
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  background: #1a365d;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s;
  margin: 0.5rem 0;
}
.btn-primary:hover {
  background: #2b4c7e;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26,54,93,0.3);
}

/* ---- SEARCH ---- */
.search-wrapper {
  width: 100%;
  max-width: 1000px;
  padding: 0.3rem 1rem 0.6rem;
}

.search-input {
  width: 100%;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: #1a365d;
  background: #fff;
  border: 2px solid #b8d9f0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input::placeholder { color: #7a9cbf; }
.search-input:focus {
  border-color: #1a365d;
  box-shadow: 0 0 0 3px rgba(26,54,93,0.12);
}

.no-results {
  display: none;
  font-style: italic;
  color: #7a9cbf;
  padding: 2rem 0;
}

/* ---- TABS ---- */
.tabs-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-top: 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 2px solid #b8d9f0;
  column-gap: 0.3rem;
  row-gap: 0;
}

.tab-separator {
  color: #3a5a7c;
  font-size: 16px;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  padding: 0 0.2rem;
  user-select: none;
}

.tab {
  padding: 0.35rem 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  color: #3a5a7c;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -2px;
  text-decoration: none;
}
.tab:hover {
  color: #1a365d;
  background: rgba(184,217,240,0.3);
}
.tab.active {
  color: #1a365d;
  border-bottom-color: #1a365d;
}

/* ---- TAB CONTENT ---- */
.tab-content {
  width: 100%;
  max-width: 1000px;
  min-height: 200px;
  padding: 1.5rem 1rem;
  overflow: hidden;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 1rem;
}

/* ---- PRODUCT CARDS ---- */
.products {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  text-align: left;
  width: 100%;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0.5rem;
  width: calc(33.333% - 0.54rem);
  height: 100px;
  max-height: 100px;
  min-height: 100px;
  overflow: hidden;
}
.product-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.product-card img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  flex-shrink: 0;
  margin-right: 0.5rem;
  border-radius: 6px;
}

.product-card .info {
  flex: 1;
  overflow: hidden;
}

.product-card .title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #1a365d;
  margin-bottom: 0.2rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .meta {
  font-size: 0.65rem;
  color: #7a9cbf;
  margin-bottom: 0.1rem;
}

.product-card .price {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a365d;
}

.product-card .price.free {
  color: #28a745;
}

/* ---- BREADCRUMBS ---- */
.breadcrumbs {
  width: 100%;
  max-width: 1000px;
  padding: 0.6rem 1rem 0;
  font-size: 0.8rem;
  color: #7a9cbf;
  text-align: left;
}
.breadcrumbs a {
  color: #3a5a7c;
  text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }

/* ---- PRODUCT DETAIL ---- */
.product-detail {
  width: 100%;
  max-width: 1000px;
  padding: 1rem 1rem 2rem;
  text-align: left;
}

.product-hero {
  display: flex;
  gap: 1.5rem;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  align-items: flex-start;
}

.hero-img {
  width: 260px;
  max-width: 40%;
  max-height: 260px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f5fafe;
  align-self: flex-start;
}

.hero-info { flex: 1; }

.hero-info h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.hero-info .meta {
  font-size: 0.9rem;
  color: #7a9cbf;
  margin-bottom: 0.5rem;
}

.hero-info .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 1rem;
}
.hero-info .price.free { color: #28a745; }

.categories-tags {
  font-size: 0.85rem;
  color: #3a5a7c;
  margin-top: 1rem;
}
.categories-tags a {
  color: #1a365d;
  font-weight: 600;
  text-decoration: none;
  padding: 0.1rem 0.4rem;
  background: #dceaf5;
  border-radius: 4px;
  margin: 0 0.1rem;
  display: inline-block;
}
.categories-tags a:hover { background: #b8d9f0; }

/* ---- DESCRIPTION (inside hero, right of image) ---- */
.related h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 1rem;
}

.hero-description {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #dceaf5;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #2b4c6a;
}
.hero-description p {
  margin-bottom: 0.75rem;
}
.hero-description p:last-child { margin-bottom: 0; }

.read-more-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a365d;
  background: #dceaf5;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}
.read-more-link:hover {
  background: #b8d9f0;
  transform: translateY(-1px);
}

/* ---- RELATED ---- */
.related {
  margin-top: 2rem;
}

footer {
  margin-top: auto;
  padding: 1.5rem;
  font-size: 0.8rem; color: #7a9cbf;
}

@media (max-width: 768px) {
  .banner { max-height: 150px; }
  .content { padding: 0.3rem 1rem; }
  .icon { width: 50px; height: 50px; margin: 0 1rem; }
  .btn { font-size: 0.75rem; padding: 0.4rem 0.8rem; right: 1rem; }
  .tabs { column-gap: 0.1rem; }
  .tab { font-size: 0.7rem; padding: 0.3rem 0.3rem; }
  .tab-separator { font-size: 10px; }
  .product-card { width: 100%; }
  .product-card img { width: 45px; height: 45px; margin: 0.3rem; }
  .product-card .title { font-size: 0.7rem; }
  .product-card .meta { font-size: 0.6rem; }
  .product-card .price { font-size: 0.8rem; }
  .product-card .info { padding: 0.4rem; }
  .product-hero { flex-direction: column; align-items: center; text-align: center; }
  .hero-img { width: 80%; max-width: 100%; }
  .hero-info h1 { font-size: 1.25rem; }
}


/* ── Subscribe band ──────────────────────────────────────────────────────────
   Sits above the footer on every page. The button reveals the field IN PAGE:
   no browser popup, and no second window to lose. Once an address is accepted
   the field and the button both lock, so a double click cannot send twice.
   Palette and button shape are lifted straight from .nav-btn so the band reads
   as part of the same control system rather than a bolted-on widget. */
.subscribe {
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto 0;
  padding: 1.1rem 1.25rem 1.25rem;
  border-top: 1px solid #b8d9f0;
}
.subscribe .sub-line {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2b4c7e;
  margin-bottom: 0.7rem;
}
.sub-open, .sub-go {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 10px;
  border: 1px solid #b8d9f0;
  background: linear-gradient(180deg, #f2f8fd 0%, #dceaf5 100%);
  color: #2b4c7e;
  box-shadow: 0 1px 2px rgba(26,54,93,0.06);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s, color 0.18s;
}
.sub-open:hover, .sub-go:hover {
  background: linear-gradient(180deg, #ffffff 0%, #cfe6f6 100%);
  border-color: #7fb4dc;
  color: #1a365d;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26,54,93,0.18);
}
.sub-go {
  background: linear-gradient(180deg, #274b7d 0%, #1a365d 100%);
  border-color: #1a365d;
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,54,93,0.28);
}
.sub-go:hover { background: linear-gradient(180deg, #2f5a94 0%, #1a365d 100%); border-color: #1a365d; color: #fff; }
.sub-open[disabled], .sub-go[disabled] {
  opacity: 0.65; cursor: default; transform: none; box-shadow: none;
}

/* The panel. [hidden] alone loses to the display rule below it, so it has to
   be said with !important or the field would sit open from the first paint. */
.sub-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.sub-panel[hidden] { display: none !important; }
.sub-panel input[type="email"] {
  flex: 0 1 280px;
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 0.85rem;
  color: #1a365d;
  background: #fff;
  border: 1px solid #b8d9f0;
  border-radius: 10px;
}
.sub-panel input[type="email"]:focus {
  outline: 2px solid #7fb4dc;
  outline-offset: 1px;
  border-color: #7fb4dc;
}
.sub-panel input[type="email"][disabled] { background: #eef5fb; color: #7a9cbf; }
/* The honeypot. Off-screen rather than display:none, because some bots skip
   anything that is not rendered at all. A person never reaches it: it is not
   in the tab order and it is announced to nobody. */
.sub-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sub-msg { flex: 1 0 100%; font-size: 0.82rem; min-height: 1.1em; }
.sub-msg.ok { color: #1c6b3f; font-weight: 600; }
.sub-msg.bad { color: #a32020; }
.sub-fine { flex: 1 0 100%; font-size: 0.75rem; color: #7a9cbf; }
@media (max-width: 768px) {
  .subscribe { margin-top: 1.25rem; padding: 1rem 0.75rem; }
  .sub-panel input[type="email"] { flex: 1 1 100%; }
  .sub-open, .sub-go { width: 100%; justify-content: center; }
}
