/*
Theme Name: Beauty Affiliate Complete
Theme URI: https://snapstik.site
Author: Custom Dev
Author URI: https://snapstik.site
Description: Complete mobile-first WordPress theme for Amazon Affiliate showcase, Google AdSense integration, custom ads, and pre-built compliance pages.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: beauty-affiliate
*/

:root {
  --bg-color: #faf8f5;
  --card-bg: #ffffff;
  --accent-color: #d97757;
  --accent-hover: #b85b3e;
  --text-main: #242424;
  --text-muted: #6b7280;
  --border-color: #eee7df;
  --amazon-btn: #ff9900;
  --amazon-btn-hover: #e68a00;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo a {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.category-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 14px 0;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.category-nav a {
  padding: 6px 16px;
  border-radius: 20px;
  background: #f4ede6;
  color: var(--text-main);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.category-nav a:hover, .category-nav a.active {
  background: var(--accent-color);
  color: #fff;
}

.ad-slot {
  background: #ffffff;
  border: 1px dashed #d1c7bd;
  border-radius: 8px;
  margin: 18px auto;
  padding: 10px;
  text-align: center;
  max-width: 728px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin: 24px 0 50px 0;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.product-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.25;
  overflow: hidden;
  background: #fdfdfd;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.03);
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 6px;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.35;
}

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

.product-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
  line-height: 1.5;
}

.btn-amazon {
  display: block;
  width: 100%;
  background: var(--amazon-btn);
  color: #111;
  text-align: center;
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(255, 153, 0, 0.25);
  transition: background 0.2s ease;
}

.btn-amazon:hover {
  background: var(--amazon-btn-hover);
  color: #000;
}

.single-product-container, .single-page-container {
  background: #fff;
  border-radius: 14px;
  padding: 32px 24px;
  margin: 28px auto;
  max-width: 800px;
  border: 1px solid var(--border-color);
}

.page-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: 26px;
  font-weight: 700;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.page-content-body h3 {
  margin: 22px 0 10px 0;
  font-size: 18px;
  color: var(--text-main);
}

.page-content-body p {
  margin-bottom: 14px;
  font-size: 15px;
  color: #444;
}

.contact-card, .highlight-notice {
  background: #fdfaf6;
  border: 1px solid #ebd9c8;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 20px 0;
}

.single-product-header {
  text-align: center;
  margin-bottom: 20px;
}

.single-product-img {
  max-width: 440px;
  margin: 0 auto 20px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.single-product-img img {
  width: 100%;
  height: auto;
  display: block;
}

.single-cta-box {
  margin: 26px 0;
  text-align: center;
}

.single-cta-box .btn-amazon {
  max-width: 320px;
  margin: 0 auto;
  font-size: 15px;
  padding: 13px 20px;
}

footer.site-footer {
  background: #fff;
  border-top: 1px solid var(--border-color);
  padding: 30px 0 20px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 50px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent-color);
}