@import url("../fonts/fonts.css");

:root {
  --bg: #FAFBFC;
  --text: #2B333A;
  --text-muted: #6B7580;
  --text-faint: #9AA5AC;
  --blue: #5B87A6;
  --blue-dark: #3E5E75;
  --blue-bg: #EAF2F7;
  --blue-bg-2: #EFF5F9;
  --border: #E7EEF2;
  --border-2: #E2EBF0;
  --input-border: #C9D8E0;
  --red: #B7625B;
  --footer-bg: #F4F8FA;
  --font-heading: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-heading); margin: 0; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Announcement bar */
.announce {
  background: var(--blue-bg);
  color: var(--blue-dark);
  font-size: 13px;
  padding: 8px 24px;
  text-align: center;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  color: var(--blue-dark);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 15px;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
}

.main-nav a.active { font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: var(--blue-dark);
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 24px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.cart-link:hover { color: #fff; }

.cart-count {
  background: #fff;
  color: var(--blue);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-block;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: center;
}

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { color: #fff; background: var(--blue-dark); }

.btn-outline {
  border: 1px solid var(--input-border);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { color: var(--text); border-color: var(--blue); }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 6px; }

/* Badge pill */
.badge-pill {
  display: inline-block;
  background: var(--blue-bg);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 48px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 20px;
}

.hero p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 0 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-media {
  width: 100%;
  height: 420px;
  border-radius: 24px;
  object-fit: cover;
}

/* Sections */
.section { max-width: 1280px; margin: 0 auto; padding: 64px 48px; }
.section-tint { background: var(--blue-bg-2); }
.section-title {
  font-size: 30px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 40px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-head h2 { font-size: 30px; font-weight: 600; }
.link-more { font-size: 14px; font-weight: 600; text-decoration: none; }

/* Perks strip */
.perks {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.perk {
  text-align: center;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.perk .icon { font-size: 24px; margin-bottom: 8px; }
.perk .title { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.perk .desc { font-size: 13px; color: var(--text-faint); }

/* Grids */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* Category card */
.category-card { text-decoration: none; color: var(--text); }
.category-card img {
  width: 100%;
  height: 180px;
  border-radius: 16px;
  object-fit: cover;
}
.category-card .cat-name {
  text-align: center;
  margin-top: 12px;
  font-weight: 600;
  font-size: 15px;
}

/* Product card */
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card img { width: 100%; height: 180px; object-fit: cover; }
.product-card .body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-card .cat { font-size: 12px; color: var(--blue); font-weight: 600; margin-bottom: 4px; }
.product-card .name { font-weight: 600; font-size: 15px; margin-bottom: 6px; min-height: 38px; }
.product-card .desc { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; flex: 1; }
.product-card .row { display: flex; justify-content: space-between; align-items: center; }
.product-card .price { font-weight: 700; font-size: 16px; }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  z-index: 2;
}

/* Blog card */
.blog-card {
  text-decoration: none;
  color: var(--text);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: block;
}
.blog-card img { width: 100%; height: 190px; object-fit: cover; }
.blog-card .body { padding: 22px; }
.blog-card .eyebrow { font-size: 12px; color: var(--blue); font-weight: 600; margin-bottom: 8px; }
.blog-card .title { font-weight: 600; font-size: 17px; line-height: 1.4; margin-bottom: 8px; }
.blog-card .excerpt { font-size: 13px; color: var(--text-muted); }

/* Newsletter */
.newsletter { max-width: 800px; margin: 0 auto; padding: 64px 48px; text-align: center; }
.newsletter h2 { font-size: 26px; font-weight: 600; margin: 0 0 12px; }
.newsletter p { color: var(--text-muted); margin: 0 0 24px; }
.newsletter-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Forms */
.field {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  background: #fff;
  color: var(--text);
}
textarea.field { resize: vertical; }
.checkbox-row {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.checkbox-row input { margin-top: 2px; }

/* Footer */
.site-footer { background: var(--footer-bg); padding: 56px 48px 24px; margin-top: 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-brand { font-family: var(--font-heading); font-size: 22px; font-weight: 600; color: var(--blue-dark); margin-bottom: 12px; }
.footer-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; max-width: 280px; }
.footer-col-title { font-weight: 600; margin-bottom: 12px; font-size: 14px; }
.footer-col a { display: block; color: var(--text-muted); text-decoration: none; font-size: 14px; margin-bottom: 8px; }
.footer-col p { font-size: 14px; color: var(--text-muted); margin: 0 0 8px; }
.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-2);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.footer-bottom a { color: var(--text-faint); }
.footer-simple {
  background: var(--footer-bg);
  padding: 40px 48px 24px;
}
.footer-simple .footer-bottom { margin-top: 0; border-top: none; padding-top: 0; }

/* Page header */
.page-head { max-width: 1280px; margin: 0 auto; padding: 48px 48px 0; }
.page-head h1 { font-size: 34px; font-weight: 600; margin: 0 0 8px; }
.page-head p { color: var(--text-muted); margin: 0 0 32px; font-size: 15px; }

/* Shop layout */
.shop-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px 64px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
}
.category-list .cat-item {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 4px;
}
.category-list .cat-item:hover { background: var(--blue-bg-2); }
.category-list .cat-item.active { background: var(--blue); color: #fff; }
.category-list .cat-title { font-weight: 600; font-size: 14px; margin-bottom: 16px; }

/* Cart page */
.cart-wrap { max-width: 900px; margin: 0 auto; padding: 48px 48px 80px; }
.cart-wrap h1 { font-size: 34px; font-weight: 600; margin: 0 0 32px; }
.cart-empty, .cart-success { text-align: center; padding: 64px 0; color: var(--text-muted); }
.cart-success {
  background: var(--blue-bg);
  border-radius: 12px;
  padding: 40px;
  color: var(--text);
}
.cart-success .icon { font-size: 32px; margin-bottom: 12px; }
.cart-success .title { font-family: var(--font-heading); font-weight: 600; font-size: 20px; margin-bottom: 8px; }
.cart-success p { color: var(--text-muted); margin: 0 0 24px; }

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; }
.cart-item .name { font-weight: 600; font-size: 15px; }
.cart-item .unit { font-size: 13px; color: var(--text-muted); }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--input-border); background: #fff; cursor: pointer; font-size: 14px; }
.line-total { display: flex; align-items: center; gap: 16px; }
.line-total .amount { font-weight: 700; font-size: 15px; }
.remove-btn { border: none; background: none; color: var(--red); cursor: pointer; font-size: 13px; }

.cart-summary { display: flex; justify-content: flex-end; padding: 24px 0; }
.cart-summary-box { width: 280px; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 8px; color: var(--text-muted); }
.cart-summary-grand { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; border-top: 1px solid var(--border); padding-top: 16px; }

.checkout-box { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px; margin-top: 16px; }
.checkout-box .title { font-family: var(--font-heading); font-weight: 600; font-size: 18px; margin-bottom: 20px; }
.checkout-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkout-form .span-2 { grid-column: span 2; }

/* Contact */
.contact-layout { max-width: 1100px; margin: 0 auto; padding: 64px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-layout h1 { font-size: 34px; font-weight: 600; margin: 0 0 16px; }
.contact-layout > div > p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin: 0 0 32px; }
.contact-info-item { margin-bottom: 20px; }
.contact-info-item .label { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.contact-info-item .value { color: var(--text-muted); font-size: 14px; }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 32px; }
.contact-form .title { font-weight: 600; font-size: 16px; margin-bottom: 20px; }
.contact-form .field { margin-bottom: 14px; }
.form-success { background: var(--blue-bg); color: var(--blue-dark); padding: 12px; border-radius: 8px; text-align: center; font-size: 14px; }
.map-placeholder {
  background: var(--blue-bg-2);
  border-radius: 16px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: monospace;
  font-size: 14px;
}

/* About */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 1280px; margin: 0 auto; padding: 64px 48px; align-items: center; }
.about-hero h1 { font-size: 38px; font-weight: 600; line-height: 1.2; margin: 0 0 20px; }
.about-hero p { font-size: 16px; line-height: 1.8; color: var(--text-muted); margin: 0; }
.about-hero img { width: 100%; height: 380px; border-radius: 20px; object-fit: cover; }
.stats { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-heading); font-size: 32px; font-weight: 700; color: var(--blue); }
.stat .label { font-size: 14px; color: var(--text-muted); margin-top: 6px; }
.values { max-width: 900px; margin: 0 auto; padding: 64px 48px; }
.values h2 { font-size: 28px; font-weight: 600; margin: 0 0 32px; text-align: center; }
.value-item .icon { font-size: 22px; margin-bottom: 10px; }
.value-item .title { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.value-item .desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.cta-center { max-width: 1280px; margin: 0 auto; padding: 0 48px 64px; text-align: center; }
.cta-center h2 { font-size: 26px; font-weight: 600; margin: 0 0 24px; }

/* FAQ */
.faq-wrap { max-width: 800px; margin: 0 auto; padding: 64px 48px 80px; }
.faq-wrap h1 { font-size: 34px; font-weight: 600; margin: 0 0 40px; text-align: center; }
.faq-item { margin-bottom: 28px; }
.faq-item .q { font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.faq-item .a { color: var(--text-muted); font-size: 15px; line-height: 1.7; }
.faq-cta { text-align: center; margin-top: 48px; }
.faq-cta .lead { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }

/* Blog list */
.blog-hero { max-width: 1280px; margin: 0 auto; padding: 56px 48px 24px; text-align: center; }
.blog-hero h1 { font-size: 36px; font-weight: 600; margin: 0 0 12px; }
.blog-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.blog-list { max-width: 1280px; margin: 0 auto; padding: 24px 48px 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* Article */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 56px 48px 24px; }
.article-wrap .eyebrow { font-size: 13px; color: var(--blue); font-weight: 600; margin-bottom: 12px; }
.article-wrap h1 { font-size: 36px; font-weight: 600; line-height: 1.2; margin: 0 0 20px; }
.article-hero { width: 100%; height: 340px; margin-bottom: 32px; border-radius: 16px; object-fit: cover; }
.article-wrap p { font-size: 16px; line-height: 1.8; margin: 0 0 20px; }
.article-wrap h2 { font-family: var(--font-heading); font-weight: 600; font-size: 20px; margin: 32px 0 16px; }
.article-box { background: var(--blue-bg-2); border-radius: 12px; padding: 28px 32px; margin-bottom: 32px; }
.article-box .box-title { font-weight: 600; font-size: 16px; margin-bottom: 16px; }
.article-box ul, .article-box ol { padding-left: 20px; margin: 0; font-size: 15px; line-height: 1.9; color: var(--text); }
.article-cta { display: flex; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 48px; }
.article-cta img { width: 100px; height: 100px; flex-shrink: 0; border-radius: 10px; object-fit: cover; }
.article-cta .name { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.article-cta .desc { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.article-more { border-top: 1px solid var(--border); padding-top: 24px; }
.article-more .label { font-weight: 600; font-size: 15px; margin-bottom: 16px; }
.article-more .links { display: flex; gap: 24px; flex-wrap: wrap; }
.article-more a { text-decoration: none; color: var(--blue-dark); font-size: 14px; }

/* Legal pages */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 64px 48px 80px; }
.legal-wrap h1 { font-size: 32px; font-weight: 600; margin: 0 0 8px; }
.legal-wrap .effective { color: var(--text-faint); font-size: 13px; margin: 0 0 40px; }
.legal-body { font-size: 15px; line-height: 1.9; color: var(--text); }
.legal-body h2 { font-family: var(--font-heading); font-size: 19px; font-weight: 600; margin: 32px 0 12px; }
.legal-box { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 32px; font-size: 15px; line-height: 1.9; color: var(--text); }
.legal-box p { margin: 0 0 6px; }
.cookie-cards { display: grid; gap: 14px; margin-top: 16px; }
.cookie-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.cookie-card .title { font-weight: 600; margin-bottom: 6px; }
.cookie-card .desc { color: var(--text-muted); font-size: 14px; }

/* Shipping page grid */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.info-card .title { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.info-card .desc { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(43, 51, 58, 0.14);
  border-radius: 14px;
  padding: 20px 22px;
  z-index: 200;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { margin: 0 0 14px; font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.cookie-banner .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .hero, .about-hero, .contact-layout { grid-template-columns: 1fr; }
  .hero-media, .about-hero img { height: 300px; order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .category-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .stats { grid-template-columns: 1fr; gap: 20px; }
  .values .grid-3 { grid-template-columns: 1fr; }
  .blog-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container, .section, .hero, .perks, .page-head, .shop-layout,
  .cart-wrap, .contact-layout, .about-hero, .cta-center, .faq-wrap,
  .blog-hero, .blog-list, .article-wrap, .legal-wrap { padding-left: 20px; padding-right: 20px; }
  .site-header { padding: 14px 20px; }
  .announce { padding: 8px 12px; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 8px 4px; width: 100%; }
  .nav-toggle { display: inline-flex; }
  .hero h1 { font-size: 34px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .checkout-form { grid-template-columns: 1fr; }
  .checkout-form .span-2 { grid-column: span 1; }
  .cart-item { grid-template-columns: 60px 1fr; grid-template-areas: "img name" "img qty" "img total"; row-gap: 8px; }
  .cart-item img { grid-area: img; }
  .blog-list { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100% !important; }
  .info-grid { grid-template-columns: 1fr; }
}
