/*
Theme Name: Discounted Stamps Pro
Theme URI: https://discountedstamps.org/
Author: Joseph Codsi / Custom Theme Fix
Author URI: https://discountedstamps.org/
Description: Clean, SEO-optimized, responsive WordPress + WooCommerce theme built specifically for Discounted Stamps (discountedstamps.org). Removes leftover fashion/plant template placeholders ("Leather Belts", "Body Suits", "Any plants for your space"), deduplicates homepage product sections, adds structured SEO metadata, and provides a high-trust philatelic storefront.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: discounted-stamps
Tags: e-commerce, woocommerce, stamps, philatelic, custom-menu, featured-images, theme-options
*/

:root {
  --ds-navy: #0f2547;
  --ds-navy-light: #1d3b6b;
  --ds-crimson: #b91c1c;
  --ds-crimson-hover: #991b1b;
  --ds-cream: #faf7f2;
  --ds-gold: #d97706;
  --ds-text: #1e293b;
  --ds-muted: #64748b;
  --ds-border: #e2e8f0;
  --ds-white: #ffffff;
  --ds-radius: 12px;
  --ds-shadow: 0 10px 25px -5px rgba(15, 37, 71, 0.08);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ds-text);
  background-color: var(--ds-cream);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.ds-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top Announcement & Trust Bar */
.ds-topbar {
  background-color: var(--ds-navy);
  color: var(--ds-white);
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

.ds-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Main Header */
.ds-header {
  background: var(--ds-white);
  border-bottom: 1px solid var(--ds-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.ds-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 1.5rem;
}

.ds-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ds-navy);
}

.ds-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.ds-nav a {
  font-weight: 600;
  color: var(--ds-text);
  font-size: 0.95rem;
}

.ds-nav a:hover {
  color: var(--ds-crimson);
}

.ds-cart-btn {
  background: var(--ds-navy);
  color: var(--ds-white);
  padding: 0.6rem 1.15rem;
  border-radius: 9999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hero Banner */
.ds-hero {
  background: linear-gradient(135deg, #0f2547 0%, #1e3a6d 100%);
  color: var(--ds-white);
  padding: 4rem 0;
}

.ds-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.ds-hero h1 {
  font-size: 2.65rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.ds-hero p {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 1.75rem;
}

.ds-btn-primary {
  background: var(--ds-crimson);
  color: var(--ds-white);
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.ds-btn-primary:hover {
  background: var(--ds-crimson-hover);
}

/* Trust Pillars */
.ds-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin: -2rem auto 3rem;
  position: relative;
  z-index: 10;
}

.ds-pillar-card {
  background: var(--ds-white);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  padding: 1.25rem;
  box-shadow: var(--ds-shadow);
}

/* Product Grid */
.ds-section {
  padding: 3.5rem 0;
}

.ds-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.ds-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

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

.ds-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ds-shadow);
}

.ds-product-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #f8fafc;
}

.ds-product-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ds-product-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ds-crimson);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.ds-product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ds-navy);
  margin-bottom: 0.5rem;
}

.ds-product-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ds-navy);
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Comparison Table */
.ds-table-wrap {
  background: var(--ds-white);
  border-radius: var(--ds-radius);
  border: 1px solid var(--ds-border);
  overflow-x: auto;
  box-shadow: var(--ds-shadow);
}

.ds-table {
  width: 100%;
  border-collapse: collapse;
}

.ds-table th, .ds-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--ds-border);
}

.ds-table th {
  background: var(--ds-navy);
  color: var(--ds-white);
}

/* Footer */
.ds-footer {
  background: var(--ds-navy);
  color: #cbd5e1;
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}

.ds-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.ds-footer h4 {
  color: var(--ds-white);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.ds-footer ul {
  list-style: none;
}

.ds-footer ul li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .ds-hero-grid {
    grid-template-columns: 1fr;
  }
  .ds-nav {
    display: none;
  }
}
