/* Shopping Hub Trend - main stylesheet
   Colors: cobalt blue (trust), lime (highlight), slate ink (text), cool grey background.
   Every section uses a grid with full rows, and every card in a row has the same height. */

:root {
  --cobalt: #1d4ed8;
  --cobalt-dark: #1e3a9f;
  --lime: #a3e635;
  --lime-dark: #84cc16;
  --ink: #0f172a;
  --grey: #5b6678;
  --bg: #f1f5f9;
  --line: #dbe2ec;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; margin: 0 0 12px; color: var(--ink); letter-spacing: -0.4px; }
h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.05rem; letter-spacing: 0; }
p { margin: 0 0 14px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

/* ---------- top bar ---------- */
.topbar { background: var(--ink); color: #cbd5e1; font-size: 0.86rem; }
.topbar .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--lime); text-decoration: none; font-weight: 700; }

/* ---------- header and menu ---------- */
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.logo img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 16px; font-weight: 700; border-radius: 8px; }
.nav a:hover, .nav a.active { background: var(--bg); color: var(--cobalt); }
.nav a.nav-btn { background: var(--cobalt); color: #fff; margin-left: 8px; }
.nav a.nav-btn:hover { background: var(--cobalt-dark); }

/* mobile menu works with a hidden checkbox, no scripts needed */
.menu-check { display: none; }
.menu-btn { display: none; cursor: pointer; font-weight: 700; color: var(--cobalt); border: 2px solid var(--cobalt); border-radius: 8px; padding: 5px 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--cobalt); color: #fff; text-decoration: none;
  font-weight: 700; padding: 12px 26px; border-radius: 8px; border: 0; cursor: pointer; font-size: 1rem; font-family: inherit;
}
.btn:hover { background: var(--cobalt-dark); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-dark); }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: #1e293b; }
.btn-small { padding: 8px 14px; font-size: 0.86rem; }

/* ---------- hero (text left, photo right, both the same height) ---------- */
.hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a9f 100%); color: #fff; padding: 64px 0; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--lime); }
.hero p { color: #cbd5e1; font-size: 1.1rem; }
.hero .tag { display: inline-block; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; padding: 4px 14px; border-radius: 30px; margin-bottom: 16px; }
.hero .buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }

/* four equal facts under the hero */
.facts { background: var(--bg); border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts div { padding: 22px 16px; text-align: center; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts b { display: block; color: var(--cobalt); }
.facts span { color: var(--grey); font-size: 0.92rem; }

/* inner page banner */
.page-title { background: var(--bg); padding: 48px 0; border-bottom: 1px solid var(--line); }
.page-title h1 { font-size: 2.4rem; margin-bottom: 6px; }
.page-title p { color: var(--grey); margin: 0; max-width: 680px; }
.crumbs { font-size: 0.86rem; margin-bottom: 10px; color: var(--grey); }
.crumbs a { color: var(--cobalt); text-decoration: none; }

/* ---------- sections ---------- */
.section { padding: 68px 0; }
.section.grey { background: var(--bg); }
.section-head { max-width: 680px; margin: 0 0 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--grey); }
.section-head .kicker { display: inline-block; background: var(--lime); font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; padding: 2px 12px; border-radius: 30px; margin-bottom: 10px; }

/* grids: columns are fixed per section, so every row is full and aligned */
.grid { display: grid; gap: 24px; align-items: stretch; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }

/* ---------- info boxes (equal height) ---------- */
.box { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--cobalt); border-radius: 12px; padding: 24px; height: 100%; }
.box p:last-child { margin-bottom: 0; }
.box p { color: var(--grey); }

.checks { list-style: none; padding: 0; margin: 0 0 22px; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; background: var(--lime); width: 20px; height: 20px; border-radius: 50%; text-align: center; line-height: 20px; font-size: 0.75rem; font-weight: 800; }

/* ---------- department tiles ---------- */
.cat { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cat:hover { border-color: var(--cobalt); box-shadow: 0 8px 22px rgba(29, 78, 216, 0.15); }
.cat img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cat div { padding: 14px 16px 16px; }
.cat span { display: block; font-weight: 800; }
.cat small { color: var(--grey); }

/* ---------- product cards (same height in every row) ---------- */
.product { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; height: 100%; }
.product:hover { border-color: var(--cobalt); box-shadow: 0 8px 22px rgba(29, 78, 216, 0.15); }
.product img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f1f5f9; }
.product .info { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.product .dept { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 1px; color: var(--cobalt); font-weight: 700; }
.product h3 { flex: 1; min-height: 3.1em; margin: 4px 0 10px; }
.product .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--ink); }

/* ---------- promo banners (two equal photo tiles) ---------- */
.promo { position: relative; display: flex; align-items: flex-end; min-height: 280px; border-radius: 16px; overflow: hidden; background-color: var(--ink); background-size: cover; background-position: center; text-decoration: none; }
.promo .cover { width: 100%; padding: 70px 28px 26px; background: linear-gradient(transparent, rgba(15, 23, 42, 0.9)); color: #fff; }
.promo h3 { color: #fff; font-size: 1.5rem; margin-bottom: 4px; }
.promo p { margin: 0 0 12px; color: #dbe4f0; }
.promo-gifts { background-image: url("../images/promo-gifts.jpg"); }
.promo-safety { background-image: url("../images/promo-safety.jpg"); }

/* ---------- call to action ---------- */
.cta { background: var(--cobalt); color: #fff; padding: 56px 0; text-align: center; }
.cta h2 { color: #fff; }
.cta p { max-width: 640px; margin: 0 auto 20px; color: #dbe4f0; }

/* ---------- blog (equal cards) ---------- */
.post { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; height: 100%; }
.post:hover { border-color: var(--cobalt); box-shadow: 0 8px 22px rgba(29, 78, 216, 0.15); }
.post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post .text { padding: 18px 20px 22px; flex: 1; }
.post .date { color: var(--grey); font-size: 0.82rem; }
.post p { color: var(--grey); margin-bottom: 0; }
.article { max-width: 780px; margin: 0 auto; }
.article img { border-radius: 16px; margin-bottom: 26px; width: 100%; }
.article h2 { margin-top: 28px; font-size: 1.5rem; }

/* ---------- text pages (policies) ---------- */
.text-page { max-width: 820px; margin: 0 auto; }
.text-page h2 { margin-top: 30px; font-size: 1.4rem; }

/* ---------- forms ---------- */
.form { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06); }
.form label { display: block; font-weight: 700; margin-bottom: 4px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #c4cedc; border-radius: 8px; font: inherit; margin-bottom: 16px;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--cobalt); border-color: var(--cobalt); }
.form .check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.form .check label { font-weight: 400; margin: 0; }

.contact-line { margin-bottom: 18px; }
.contact-line b { display: block; color: var(--cobalt); }

/* ---------- faq ---------- */
details { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--grey); }

/* ---------- footer: four columns of equal width ---------- */
.footer { background: var(--ink); color: #b6c2d3; padding-top: 52px; font-size: 0.94rem; }
.footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer .cols > div { min-width: 0; }
.footer h4 { color: #fff; }
.footer a { color: #b6c2d3; text-decoration: none; }
.footer a:hover { color: var(--lime); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer .logo { display: inline-block; background: var(--white); border-radius: 8px; padding: 6px 12px; margin-bottom: 12px; }
.footer .logo img { height: 40px; }
.footer-bottom { border-top: 1px solid #263349; margin-top: 36px; padding: 18px 0; font-size: 0.86rem; }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom a { margin-left: 16px; }

/* ---------- tablet and phone (column counts always divide the items evenly) ---------- */
@media (max-width: 1000px) {
  .grid-4.products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  h1 { font-size: 2.2rem; }
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-4.products, .grid-3.products { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .facts div { border-bottom: 1px solid var(--line); }
  .footer .cols { grid-template-columns: repeat(2, 1fr); }

  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); }
  .nav a { padding: 12px 8px; }
  .nav a.nav-btn { margin: 10px 0 0; text-align: center; }
  .menu-check:checked ~ .nav { display: flex; }
}

@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4.products, .grid-3.products { gap: 14px; }
  .product .row { flex-direction: column; align-items: stretch; }
  .product .btn { text-align: center; }
  .footer .cols { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
  .topbar .wrap { justify-content: center; text-align: center; }
}
