/* === CSS Custom Properties === */
:root {
  --color-primary: #1c1c1c;
  --color-secondary: #0062db;
  --color-orange: #FF6A00;
  --color-red: #e02b2b;
  --color-gray-600: #6e6e6e;
  --color-gray-200: #e6e6e6;
  --color-gray-100: #f0f0f0;
  --color-warmgray: #f5f3f0;
  --color-white: #ffffff;

  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;

  --max-width-article: 768px;
  --max-width-wide: 1024px;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-primary);
  background: var(--color-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Navigation === */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0.75rem 1rem;
  background: var(--color-white);
  border-bottom: 2px solid var(--color-primary);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo:hover {
  color: var(--color-secondary);
  text-decoration: none;
}

.nav-links {
  display: none;
  margin-left: 2rem;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links span {
  color: var(--color-primary);
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

/* === Nav Breadcrumb === */
.nav-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-breadcrumb .separator {
  margin: 0 0.125rem;
}

/* === Page Container === */
.page {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 1rem;
}

/* === Breadcrumb === */
.breadcrumb {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--color-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.breadcrumb a {
  color: var(--color-gray-600);
}

.breadcrumb a:hover {
  color: var(--color-secondary);
}

.breadcrumb .separator {
  margin: 0 0.25rem;
}

/* === Article Header === */
.article-title {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  max-width: var(--max-width-wide);
}

@media (min-width: 768px) {
  .article-title {
    font-size: 2.5rem;
  }
}

.article-subtitle {
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.4;
  max-width: 900px;
}

@media (min-width: 768px) {
  .article-subtitle {
    font-size: 1.25rem;
  }
}

/* === Byline === */
.byline {
  margin-top: 2rem;
  font-size: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.byline a {
  text-decoration: underline;
  color: var(--color-primary);
}

.byline time {
  color: var(--color-primary);
}

/* === Social Share === */
.social-share {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .byline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .social-share {
    margin-top: 0;
  }
}

.social-share a {
  color: var(--color-primary);
  font-size: 0.8rem;
}

.social-share a:hover {
  color: var(--color-secondary);
}

/* === Affiliate Disclaimer === */
.affiliate-disclaimer {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 0.8125rem;
  color: var(--color-gray-600);
  line-height: 1.5;
}

/* === Hero Image === */
.hero-image-wrap {
  margin-top: 2.5rem;
  max-width: var(--max-width-wide);
}

.hero-image-wrap img {
  width: 100%;
}

.image-credit {
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-gray-600);
}

/* === Divider === */
.divider {
  max-width: var(--max-width-wide);
  margin: 3rem auto 0;
  border: none;
  border-top: 1px solid var(--color-gray-200);
}

/* === Deal Alert Banner === */
.deal-alert {
  max-width: var(--max-width-article);
  margin: 2.5rem auto 0;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  gap: 0.5rem;
  background: var(--color-warmgray);
  border-left: 8px solid var(--color-secondary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.5;
}

.deal-alert .clock-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

.deal-alert a {
  text-decoration: underline;
}

/* === Article Body === */
.article-body {
  max-width: var(--max-width-article);
  margin: 2rem auto 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.75;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body a {
  color: var(--color-secondary);
  text-decoration: underline;
}

.article-body a:hover {
  color: var(--color-primary);
}

.article-body strong {
  font-weight: 700;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--color-gray-200);
  margin: 1.5rem 0;
}

/* === Product Card === */
.product-card {
  max-width: var(--max-width-article);
  margin: 2rem auto 3rem;
  border: 1px solid var(--color-gray-200);
  padding: 1.5rem;
  position: relative;
  font-family: var(--font-sans);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3.5rem;
  height: 0.625rem;
  background: var(--color-secondary);
}

.product-card-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .product-card-inner {
    flex-direction: row;
    gap: 1.75rem;
  }
}

.product-card-image {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .product-card-image {
    width: 50%;
  }
}

.product-card-image-box {
  border: 1px solid var(--color-gray-200);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
}

.product-card-image-box a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.product-card-image-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-image-credit {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-gray-600);
}

.product-card-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .product-card-details {
    width: 50%;
  }
}

.product-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .product-card-title {
    font-size: 1.5rem;
  }
}

.product-card-title a {
  color: var(--color-secondary);
}

.product-card-title a:hover {
  text-decoration: underline;
}

.product-card-pricing {
  margin-bottom: 0.75rem;
  line-height: 1;
}

.product-price {
  font-size: 0.875rem;
  font-weight: 700;
}

.product-retailer {
  font-size: 0.75rem;
}

.product-original-price {
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: line-through;
  margin-left: 0.25rem;
}

.product-savings {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-red);
  margin-left: 0.25rem;
}

.product-card-cta {
  margin-top: 0.75rem;
}

.product-card-cta a {
  display: block;
  text-decoration: none;
}

.product-card-cta a:hover {
  text-decoration: underline;
}

.btn-get-deal {
  display: block;
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-white);
  background: var(--color-secondary);
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .btn-get-deal {
    font-size: 1.125rem;
  }
}

.btn-get-deal:hover {
  opacity: 0.9;
}

/* === Topics === */
.topics {
  max-width: var(--max-width-wide);
  margin: 2rem auto 0;
  padding-top: 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
}

.topics-label {
  font-weight: 700;
  margin-right: 0.375rem;
}

.topics a {
  color: var(--color-secondary);
  text-decoration: underline;
  margin-right: 0.375rem;
}

.topics a:hover {
  text-decoration: none;
}

/* === Hero CTA Button === */
.hero-cta-wrap {
  margin-top: 1.5rem;
  text-align: center;
}

.btn-check-price {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-white);
  background: var(--color-orange);
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.btn-check-price:hover {
  opacity: 0.9;
  text-decoration: none;
}

@media (min-width: 768px) {
  .btn-check-price {
    font-size: 1.125rem;
  }
}

/* === Benefits Section === */
.benefits-section {
  max-width: var(--max-width-article);
  margin: 1.5rem auto 2rem;
}

.benefits-section h2 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.benefits-list {
  padding-left: 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.75;
  text-align: left;
}

.benefits-list li {
  margin-bottom: 0.5rem;
}

/* === Product Quote === */
.product-quote {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-gray-600);
  line-height: 1.4;
}

/* === Final CTA === */
.final-cta {
  margin: 2rem 0;
  text-align: center;
}

.final-cta a {
  text-decoration: none;
}

.final-cta .btn-get-deal {
  display: inline-block;
  width: auto;
  padding: 0.75rem 2rem;
}

/* === FAQ Section === */
.faq-section {
  margin: 3rem 0 2rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.75;
}

.faq-section h2 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-item h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.faq-item p {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-primary);
  margin-bottom: 0;
}

/* === Amazon Disclaimer === */
.amazon-disclaimer {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-gray-600);
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* === Mobile Sticky Bar === */
.mobile-sticky-bar {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--color-secondary);
  text-align: center;
  padding: 0.75rem 1rem;
}

.mobile-sticky-bar a {
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.mobile-sticky-bar a:hover {
  text-decoration: none;
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}

/* === Footer spacer === */
.footer-spacer {
  height: 4rem;
}

/* Add padding at bottom for mobile sticky bar */
@media (max-width: 767px) {
  body {
    padding-bottom: 3.5rem;
  }
}
