
/* styles.css — shared across every page */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #1a3a5c;
  --primary-dark: #1a3a5c;
  --accent:       #e8b84b;
  --accent-dark:  #e8b84b;
  --text:         #1a1a1a;
  --text-muted:   #666;
  --border:       #e0e0e0;
  --bg:           #f7f7f5;
  --white:        #ffffff;
  --radius:       8px;
  --radius-lg:    14px;
  --shadow:       0 2px 12px rgba(0,0,0,.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,.14);
  --transition:   .2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
       color: var(--text); background: var(--white); line-height: 1.6; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--primary); color: #fff;
  border-bottom: 2px solid var(--accent);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.25rem;
  display: flex; align-items: center; gap: 1.5rem; height: 64px;
}
.site-logo { font-size: 1.2rem; font-weight: 700;
             color: #fff; letter-spacing: -.3px; white-space: nowrap; }
.site-logo span { color: var(--accent); }
.main-nav { display: flex; gap: .25rem; flex: 1; }
.main-nav a {
  font-size: .875rem; padding: .4rem .75rem; border-radius: var(--radius);
  color: rgba(255,255,255,.85); transition: background var(--transition);
}
.main-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.cart-btn {
  position: relative; display: flex; align-items: center; gap: .4rem;
  padding: .4rem .9rem; border-radius: var(--radius);
  background: var(--accent); color: var(--primary);
  font-weight: 600; font-size: .875rem; border: none;
  transition: background var(--transition);
}
.cart-btn:hover { background: var(--accent-dark); }
.cart-count {
  display: none; background: var(--primary); color: #fff;
  border-radius: 50%; width: 18px; height: 18px;
  font-size: .7rem; font-weight: 700;
  align-items: center; justify-content: center;
}
#menu-toggle {
  display: none; background: none; border: none;
  color: #fff; font-size: 1.4rem; padding: .25rem;
}
#mobile-nav {
  display: none; flex-direction: column; padding: .5rem 1.25rem 1rem;
  background: var(--primary-dark); border-top: 1px solid rgba(255,255,255,.1);
}
#mobile-nav a {
  padding: .6rem 0; color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.07); font-size: .95rem;
}
#mobile-nav.open { display: flex; }
@media(max-width:768px) {
  .main-nav { display: none; }
  #menu-toggle { display: block; }
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--primary); color: rgba(255,255,255,.8);
  padding: 3rem 1.25rem 1.5rem; margin-top: 4rem;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}
.footer-brand .site-logo { font-size: 1.1rem; margin-bottom: .75rem; }
.footer-brand p { font-size: .85rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: .9rem; margin-bottom: .75rem; }
.footer-col a {
  display: block; font-size: .85rem; padding: .2rem 0;
  color: rgba(255,255,255,.7); transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px; margin: 2rem auto 0;
  padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem; font-size: .8rem; color: rgba(255,255,255,.5);
}
.footer-policies { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-policies a { color: rgba(255,255,255,.5); font-size: .8rem; }
.footer-policies a:hover { color: var(--accent); }
@media(max-width:768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Product card ────────────────────────────────────────── */
.product-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
  width: 100% !important; /* Force grid width */
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s var(--transition), box-shadow .2s var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-card-img { aspect-ratio: 1; overflow: hidden; background: #f8f9fa; border-bottom: 1px solid var(--border); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { padding: 1.1rem; display: flex; flex-direction: column; flex: 1; text-align: left; }
.product-card-title { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; color: var(--primary); 
                       display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.product-card-price { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-top: .25rem; }
.product-card-compare { font-size: .8rem; color: var(--text-muted); text-decoration: line-through; margin-left: .4rem; }
.product-card-btn {
  display: block; width: 100%; margin-top: auto; padding: .65rem;
  background: var(--primary); color: #fff; border: none;
  border-radius: var(--radius); font-size: .8rem; font-weight: 600;
  transition: opacity var(--transition);
}
.product-card-btn:hover { opacity: .9; }

/* ── FAQ Section ────────────────────────────────────────── */
.faq-accordion { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s ease; }
.faq-item:hover { border-color: var(--accent); }
.faq-item summary { padding: 1.1rem 1.50rem; cursor: pointer; color: var(--primary); font-weight: 700; font-size: .95rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--accent); transition: transform .2s; }
.faq-item[open] summary::after { content: '−'; color: var(--primary); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-content { padding: 0 1.5rem 1.25rem; font-size: .9rem; color: var(--text-muted); line-height: 1.7; border-top: 1px solid #f0f0f0; padding-top: 1rem; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  font-size: .82rem; color: var(--text-muted);
  display: flex; flex-wrap: wrap; gap: .3rem; align-items: center;
  padding: .75rem 0;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #bbb; }

/* ── Page container ──────────────────────────────────────── */
.page-container { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.25rem; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .7rem 1.4rem; border-radius: var(--radius);
  font-size: .95rem; font-weight: 600; border: 2px solid transparent;
  transition: all var(--transition);
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent  { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ── Badge ───────────────────────────────────────────────── */
.badge {
  display: inline-block; font-size: .75rem; font-weight: 600;
  padding: .2rem .65rem; border-radius: 20px;
}
.badge-primary { background: var(--primary); color: #fff; }
.badge-accent  { background: var(--accent); color: var(--primary); }
.badge-success { background: #e6f4ea; color: #1a7340; }

/* ── Section ─────────────────────────────────────────────── */
.section { padding: 3rem 0; }
.section-header { margin-bottom: 2rem; }
.section-header h2 { font-size: 1.75rem; font-weight: 700; }
.section-header p { color: var(--text-muted); margin-top: .4rem; }
.section-header-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 1rem;
}

/* ── Blog / Guide card ───────────────────────────────────── */
.articles-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.article-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow var(--transition), transform .2s ease;
  display: flex; flex-direction: column; height: 100%;
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.article-card-img { aspect-ratio: 16/10; overflow: hidden; background: #eee; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.article-card-cat {
  font-size: .7rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .1em;
}
.article-card-title { font-size: 1.05rem; font-weight: 800; line-height: 1.35; color: var(--primary); }
.article-card-title a:hover { color: var(--accent); }
.article-card-excerpt { font-size: .875rem; color: var(--text-muted); line-height: 1.6; 
                        display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-link { margin-top: auto; padding-top: .75rem; font-size: .8rem; font-weight: 700; color: var(--primary); letter-spacing: .02em; }

/* ── Trust badges ────────────────────────────────────────── */
.trust-bar {
  background: var(--bg); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 1.25rem 0;
}
.trust-bar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.25rem;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem;
}
.trust-item {
  display: flex; align-items: center; gap: .6rem;
  font-size: .875rem; font-weight: 500; color: var(--primary);
}
.trust-icon { font-size: 1.4rem; }

/* ── Accordion (FAQ) ─────────────────────────────────────── */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-btn {
  width: 100%; text-align: left; padding: 1rem 0;
  background: none; border: none; font-size: 1rem; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; color: var(--text); gap: 1rem;
}
.accordion-btn::after { content: '+'; font-size: 1.3rem; flex-shrink: 0;
                         color: var(--primary); transition: transform .2s; }
.accordion-btn[aria-expanded='true']::after { transform: rotate(45deg); }
.accordion-body {
  overflow: hidden; max-height: 0;
  transition: max-height .3s ease, padding .3s ease;
}
.accordion-body.open { max-height: 600px; padding-bottom: 1rem; }
.accordion-body p { color: var(--text-muted); line-height: 1.7; }

/* ── Content prose ───────────────────────────────────────── */
.prose h2 { font-size: 1.4rem; margin: 1.75rem 0 .75rem; }
.prose h3 { font-size: 1.15rem; margin: 1.4rem 0 .5rem; }
.prose p  { margin-bottom: 1rem; color: var(--text-muted); line-height: 1.8; }
.prose ul, .prose ol { margin: .75rem 0 1rem 1.4rem; color: var(--text-muted); }
.prose li { margin-bottom: .4rem; line-height: 1.7; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .9rem; }
.prose th { background: var(--primary); color: #fff; padding: .6rem .85rem; text-align: left; }
.prose td { padding: .55rem .85rem; border-bottom: 1px solid var(--border); }
.prose tr:hover td { background: var(--bg); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ── Util ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.sr-only { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0); }

/* ── Responsive tweaks ───────────────────────────────────── */
@media(max-width:600px) {
  .section-header h2 { font-size: 1.4rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
}
