/* ===== FITNESS.EE V2 — Faithful Retrofit ===== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Demo Banner ===== */
.demo-banner {
  background: linear-gradient(135deg, #e67e22, #f39c12);
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ===== Top Nav ===== */
.top-nav {
  background: #1a3a5c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-nav .nav-inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  flex-wrap: wrap;
}

.top-nav .logo {
  font-weight: 900;
  font-size: 20px;
  color: #e74c3c;
  padding: 12px 18px 12px 0;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.top-nav .logo span { color: #fff; font-weight: 400; }

.top-nav a.nav-link {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  padding: 14px 12px;
  text-transform: uppercase;
  transition: background 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.top-nav a.nav-link:hover {
  background: rgba(255,255,255,0.1);
}

.top-nav .nav-icon {
  font-size: 14px;
}

.top-nav .nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.top-nav .nav-right a.nav-link {
  font-size: 16px;
  padding: 14px 10px;
}

/* ===== Hero Banner ===== */
.hero-banner {
  background: linear-gradient(135deg, #1a3a5c 0%, #2c5f8a 40%, #3a7cb8 70%, #4a90c4 100%);
  color: #fff;
  text-align: center;
  padding: 60px 20px 50px;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-banner h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
}

.hero-banner h1 span {
  display: block;
  font-size: 16px;
  font-weight: 400;
  margin-top: 8px;
  letter-spacing: 4px;
  opacity: 0.8;
  text-transform: uppercase;
}

/* ===== Main Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  padding: 30px 0;
}

.main-layout.full-width {
  grid-template-columns: 1fr;
}

/* ===== Article Cards (Blog Feed) ===== */
.article-card {
  display: flex;
  gap: 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  padding: 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}

.article-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.article-card .thumb {
  flex-shrink: 0;
  width: 200px;
  height: 150px;
  background: linear-gradient(135deg, #ccc, #aaa);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 40px;
}

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

.article-card .card-body h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  margin-bottom: 8px;
  color: #1a3a5c;
  line-height: 1.3;
}

.article-card .card-body h3 a:hover {
  color: #e74c3c;
}

.article-card .meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
}

.article-card .excerpt {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.5;
}

.article-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  background: #eee;
  color: #555;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ===== Sidebar ===== */
.sidebar .widget {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
}

.sidebar .widget-title {
  background: #1a3a5c;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar .forum-list {
  list-style: none;
  padding: 0;
}

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

.sidebar .forum-list li:last-child {
  border-bottom: none;
}

.sidebar .forum-list li a {
  color: #1a3a5c;
  font-weight: 600;
}

.sidebar .forum-list li a:hover {
  color: #e74c3c;
}

.sidebar .forum-list .forum-meta {
  font-size: 11px;
  color: #999;
  margin-top: 3px;
}

.sidebar .product-widget {
  padding: 15px;
  text-align: center;
}

.sidebar .product-widget img {
  width: 100%;
  max-width: 200px;
  margin: 0 auto 10px;
  border-radius: 4px;
}

.sidebar .product-widget .pw-name {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.sidebar .product-widget .pw-price {
  font-size: 18px;
  font-weight: 700;
  color: #e74c3c;
  margin-bottom: 10px;
}

/* ===== Article Page ===== */
.article-full {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  padding: 40px;
  margin-bottom: 30px;
}

.article-full h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 32px;
  color: #1a3a5c;
  margin-bottom: 10px;
  line-height: 1.3;
}

.article-full .meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.article-full p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #444;
}

.article-full h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  color: #1a3a5c;
  margin: 30px 0 15px;
}

.article-full ol {
  padding-left: 25px;
  margin-bottom: 20px;
}

.article-full ol li {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 8px;
}

.article-full .tags-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.article-full .tags-section .tag {
  margin-right: 4px;
}

/* ===== Recommended Products Section ===== */
.recommended-products {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #1a3a5c;
}

.recommended-products h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  color: #1a3a5c;
  margin-bottom: 20px;
}

.product-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== ArtGym Banner ===== */
.artgym-banner {
  background: linear-gradient(135deg, #1a3a5c, #2c5f8a);
  color: #fff;
  padding: 25px 30px;
  border-radius: 4px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.artgym-banner h4 {
  font-size: 18px;
  font-weight: 700;
}

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

.artgym-banner .btn-artgym {
  background: #e74c3c;
  color: #fff;
  padding: 10px 24px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* ===== Shop Page ===== */
.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.shop-header h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 32px;
  color: #1a3a5c;
}

.shop-results {
  font-size: 13px;
  color: #999;
}

.featured-section {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  padding: 25px;
  margin-bottom: 30px;
}

.featured-section h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  color: #1a3a5c;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.featured-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ===== Product Card (WooCommerce style) ===== */
.product-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.product-card .product-img {
  width: 100%;
  aspect-ratio: 1;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.product-card .product-info {
  padding: 15px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .product-brand {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.product-card .product-name {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
  line-height: 1.3;
  flex: 1;
}

.product-card .product-servings {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.product-card .product-price {
  font-size: 20px;
  font-weight: 700;
  color: #e74c3c;
  margin-bottom: 12px;
}

.btn-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #1a3a5c;
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.btn-cart:hover {
  background: #15304d;
}

/* ===== Footer ===== */
.site-footer {
  background: #1a3a5c;
  color: #fff;
  padding: 30px 20px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-inner .footer-logo {
  font-weight: 900;
  font-size: 18px;
  color: #e74c3c;
}

.footer-inner .footer-logo span { color: #fff; font-weight: 400; }

.footer-inner .footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  margin-left: 20px;
  transition: color 0.2s;
}

.footer-inner .footer-links a:hover { color: #fff; }

.footer-copy {
  max-width: 1200px;
  margin: 15px auto 0;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .product-grid,
  .featured-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-card {
    flex-direction: column;
  }
  .article-card .thumb {
    width: 100%;
    height: 180px;
  }
  .artgym-banner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

@media (max-width: 600px) {
  .product-grid,
  .featured-row,
  .product-row {
    grid-template-columns: 1fr;
  }
  .top-nav .nav-inner {
    justify-content: center;
  }
  .top-nav .nav-right {
    margin-left: 0;
  }
  .hero-banner h1 {
    font-size: 28px;
  }
  .article-full {
    padding: 20px;
  }
}
