/* ============================================================
   MOONS DEALS — Category Page Styles
   category-styles.css
   Use this file for all individual category pages
   (kitchen.html, pets.html, homeoffice.html etc.)
   ============================================================ */

/* ── Page body ── */
body {
  font-family: Georgia, serif;
  background-color: #f5f2eb;
  color: #2c2c2c;
  margin: 0;
  padding: 0;
}

/* ── Page wrapper ── */
.cat-page {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
  box-sizing: border-box;
}

/* ── Top navigation bar ── */
.cat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #c8b87a;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cat-site-name {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  color: #7a5c10;
  font-weight: bold;
  text-decoration: none;
}

.cat-site-name:hover {
  color: #3d2d00;
}

/* ── Back button ── */
.cat-back-btn {
  background: transparent;
  border: 1px solid #9a7d2e;
  border-radius: 4px;
  color: #7a5c10;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.cat-back-btn:hover {
  background: #9a7d2e;
  color: #ffffff;
}

/* ── Category page title ── */
.cat-title {
  font-size: 1.9rem;
  color: #1a1a1a;
  margin: 0 0 0.4rem;
  font-weight: bold;
  line-height: 1.3;
}

.cat-subtitle {
  font-size: 1.05rem;
  color: #666;
  margin: 0 0 1.75rem;
  font-style: italic;
}

.cat-title-divider {
  width: 60px;
  height: 2px;
  background: #9a7d2e;
  border: none;
  margin: 0 0 1.75rem;
}

/* ── Main intro card ── */
.cat-intro-card {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #c8b87a;
  border-top: 5px solid #9a7d2e;
  border-radius: 6px;
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
}

.cat-intro-card p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #2c2c2c;
  margin: 0;
}

/* ── Affiliate links — BLUE for higher visibility ── */
.cat-intro-card a,
.cat-product-card a {
  color: #1a5ca8;
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(26, 92, 168, 0.4);
}

.cat-intro-card a:hover,
.cat-product-card a:hover {
  color: #0d3d7a;
  text-decoration-color: rgba(13, 61, 122, 0.8);
}

/* ── Override: shop buttons must stay white ── */
.cat-product-btn,
.cat-product-btn:hover,
a.cat-product-btn,
a.cat-product-btn:hover {
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: bold;
}

/* ── Featured Products section heading ── */
.cat-products-heading {
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b5a1e;
  margin: 0 0 0.4rem;
}

.cat-products-divider {
  width: 44px;
  height: 2px;
  background: #9a7d2e;
  border: none;
  margin: 0 0 1.25rem;
}

/* ── Product cards grid ── */
.cat-products-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}

/* ── Individual product card ── */
.cat-product-card {
  flex: 1 1 250px;
  max-width: 340px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #c8b87a;
  border-top: 4px solid #9a7d2e;
  border-radius: 6px;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.cat-product-card:hover {
  box-shadow: 0 3px 14px rgba(0,0,0,0.1);
  border-color: #7a6020;
}

.cat-product-name {
  font-size: 1.05rem;
  font-weight: bold;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.35;
}

.cat-product-network {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a6020;
  background: #fdf6e3;
  border: 1px solid #c8b87a;
  border-radius: 3px;
  padding: 2px 7px;
  width: fit-content;
  font-family: Arial, sans-serif;
}

.cat-product-desc {
  font-size: 0.98rem;
  line-height: 1.75;
  color: #3a3a3a;
  margin: 0;
  flex: 1;
}

.cat-product-price {
  font-size: 0.88rem;
  color: #666;
  font-style: italic;
  margin: 0;
}

/* ── Shop button on product cards ── */
.cat-product-btn {
  display: inline-block;
  background: #9a7d2e;
  color: #ffffff;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-align: center;
  margin-top: 0.4rem;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
}

.cat-product-btn:hover {
  background: #7a6020;
  color: #ffffff;
  text-decoration: none;
}

/* ── Bottom category navigation menu ── */
.cat-nav {
  border-top: 1px solid #c8b87a;
  padding-top: 1.5rem;
  margin-bottom: 2rem;
}

.cat-nav-heading {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a7d2e;
  font-family: Arial, sans-serif;
  margin-bottom: 0.75rem;
}

.cat-nav-links {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  line-height: 1;
}

.cat-nav-links a {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: #7a5c10;
  text-decoration: none;
  padding: 0.2rem 0.6rem;
  border-right: 1px solid #c8b87a;
  transition: color 0.15s;
}

.cat-nav-links a:last-child {
  border-right: none;
}

.cat-nav-links a:hover {
  color: #3d2d00;
  text-decoration: underline;
}

.cat-nav-links a.cat-nav-active {
  color: #1a1a1a;
  font-weight: bold;
  pointer-events: none;
}

/* ── Footer ── */
.cat-footer {
  text-align: center;
  font-size: 0.82rem;
  color: #999;
  padding-top: 1rem;
  border-top: 1px solid #e0d8c0;
  font-family: Arial, sans-serif;
}

/* ── Back button at bottom ── */
.cat-bottom-back {
  text-align: center;
  margin: 1.5rem 0;
}

/* ── Responsive: stack on small screens ── */
@media (max-width: 600px) {
  .cat-title { font-size: 1.5rem; }
  .cat-intro-card { padding: 1.25rem; }
  .cat-intro-card p { font-size: 1rem; }
  .cat-product-card { max-width: 100%; }
}
