/* FITNESS.EE v5 — Shop-Forward Demo */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

a { color: #1e5f9e; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Demo banner ── */
.demo-banner {
  background: #e67e22;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ── Top nav ── */
.top-nav {
  background: #1a3a5c;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 48px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-weight: 800;
  font-size: 18px;
  color: #cc3333;
  letter-spacing: 1px;
  margin-right: 32px;
  white-space: nowrap;
}

.nav-items {
  display: flex;
  gap: 6px;
  list-style: none;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.nav-items li a {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  padding: 6px 10px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 3px;
  transition: background 0.15s;
}

.nav-items li a:hover {
  background: rgba(255,255,255,0.12);
  text-decoration: none;
}

.nav-items li a.active {
  background: rgba(255,255,255,0.18);
}

/* ── Blue gradient banner ── */
.site-banner {
  background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
  color: #fff;
  text-align: center;
  padding: 38px 24px;
}

.site-banner h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}

.site-banner p {
  font-size: 14px;
  margin-top: 6px;
  opacity: 0.8;
}

/* ── Layout ── */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  background: #fff;
  min-height: 60vh;
}

.layout-with-sidebar {
  display: flex;
  gap: 28px;
}

.main-content {
  flex: 1;
  min-width: 0;
}

.sidebar {
  width: 280px;
  flex-shrink: 0;
  border-left: 1px solid #e8e8e8;
  padding-left: 24px;
}

/* ── Section headings ── */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1e5f9e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Product cards grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.product-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 14px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 10px;
}

.product-card .product-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.35;
  min-height: 36px;
}

.product-card .product-price {
  font-size: 18px;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 10px;
}

.btn-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e5f9e;
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-cart:hover {
  background: #174b7e;
}

/* Featured products (shop page) — bigger */
.product-grid.featured .product-card img {
  height: 220px;
}

/* ── Blog cards ── */
.blog-card {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}

.blog-card:first-child {
  padding-top: 0;
}

.blog-card-thumb {
  width: 200px;
  height: 140px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #d4e4f7 0%, #a7c4e0 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a3a5c;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 8px;
}

.blog-card-body {
  flex: 1;
}

.blog-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 6px;
  line-height: 1.35;
}

.blog-card-body h3 a { color: inherit; }
.blog-card-body h3 a:hover { color: #1e5f9e; text-decoration: underline; }

.blog-card-body .excerpt {
  font-size: 13.5px;
  color: #555;
  margin-bottom: 8px;
  line-height: 1.55;
}

.blog-card-meta {
  font-size: 12px;
  color: #888;
}

.blog-card-meta .tag {
  color: #1e5f9e;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  margin-right: 8px;
}

.btn-read {
  display: inline-block;
  background: #1e5f9e;
  color: #fff;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 3px;
  margin-top: 8px;
  transition: background 0.15s;
}

.btn-read:hover {
  background: #174b7e;
  text-decoration: none;
}

/* ── Sidebar ── */
.sidebar-block {
  margin-bottom: 24px;
}

.sidebar-block h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1a3a5c;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #1e5f9e;
}

.forum-list {
  list-style: none;
}

.forum-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}

.forum-list li a {
  color: #333;
}

.forum-list li a:hover {
  color: #1e5f9e;
}

.forum-list .forum-time {
  font-size: 11px;
  color: #aaa;
  display: block;
  margin-top: 2px;
}

.sidebar-banner {
  display: block;
  background: linear-gradient(135deg, #1e5f9e 0%, #1a365d 100%);
  color: #fff;
  text-align: center;
  padding: 18px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  transition: opacity 0.15s;
}

.sidebar-banner:hover {
  opacity: 0.9;
  text-decoration: none;
}

.sidebar-banner small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
}

/* ── Article page ── */
.article-header {
  margin-bottom: 24px;
}

.article-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: #1a3a5c;
  line-height: 1.3;
  margin-bottom: 8px;
}

.article-date {
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
}

.article-body p {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 18px;
  color: #444;
}

.article-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a3a5c;
  margin: 28px 0 14px;
}

.article-tags {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.article-tags .tag {
  display: inline-block;
  background: #edf2f7;
  color: #1e5f9e;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-right: 6px;
  letter-spacing: 0.4px;
}

/* Product recommendation strip (article bottom) */
.product-reco {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid #e8e8e8;
}

.product-reco .product-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Comment placeholder */
.comment-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.comment-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 14px;
}

.comment-placeholder {
  background: #f9f9f9;
  border: 1px dashed #ccc;
  border-radius: 4px;
  padding: 24px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* ── Shop page ── */
.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.shop-header .result-count {
  font-size: 13px;
  color: #888;
}

.shop-header select {
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 3px;
  color: #555;
}

.shop-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 28px 0 24px;
}

/* ── Footer ── */
.site-footer {
  background: #1a3a5c;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 24px;
  font-size: 13px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .layout-with-sidebar { flex-direction: column; }
  .sidebar { width: 100%; border-left: none; padding-left: 0; border-top: 1px solid #e8e8e8; padding-top: 24px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-reco .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 550px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .blog-card { flex-direction: column; }
  .blog-card-thumb { width: 100%; height: 160px; }
  .nav-items li a { font-size: 11px; padding: 6px 6px; }
}
