/*
Theme Name: BARTH CARDS
Theme URI: https://cs-barth.de
Author: BARTH CARDS
Author URI: https://cs-barth.de
Description: Professionelles, schnelles und konformes deutsches E-Commerce Theme für BARTH CARDS (Sammelkarten, TCG & Zubehör).
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: barth-cards
*/

:root {
  --primary: #1e3a8a;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #f59e0b;
  --success: #10b981;
  --text-main: #0f172a;
  --text-muted: #475569;
  --bg-light: #f8fafc;
  --border: #e2e8f0;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Trust Bar */
.top-trust-bar {
  background-color: #0f172a;
  color: #e2e8f0;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-trust-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-trust-item span.check {
  color: var(--success);
  font-weight: bold;
}

/* Main Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.brand-logo {
  display: flex;
  flex-direction: column;
}

.brand-logo a {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--primary);
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #64748b;
  text-transform: uppercase;
}

.header-search {
  flex: 1;
  max-width: 520px;
}

.header-search form {
  display: flex;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.header-search form:focus-within {
  border-color: var(--primary);
}

.header-search input[type="search"] {
  flex: 1;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
}

.header-search button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.header-search button:hover {
  background: var(--primary-hover);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid #bfdbfe;
}

.cart-button:hover {
  background: #dbeafe;
}

.cart-count {
  background: var(--primary);
  color: #fff;
  border-radius: 9999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}

/* Navigation Menu */
.main-nav {
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 0;
}

.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  padding: 6px 0;
  display: block;
}

.main-nav a:hover, .main-nav li.current-menu-item a {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.hero-banner h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 15px;
}

.hero-banner p {
  font-size: 18px;
  color: #93c5fd;
  max-width: 680px;
  margin: 0 auto 25px;
}

.hero-btn {
  display: inline-block;
  background: #f59e0b;
  color: #0f172a;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2);
}

.hero-btn:hover {
  background: #d97706;
  color: #0f172a;
}

/* Trust Pillars Grid */
.trust-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: -30px auto 40px;
  position: relative;
  z-index: 10;
}

.pillar-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  text-align: center;
}

.pillar-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.pillar-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pillar-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Section Titles */
.section-title-wrap {
  text-align: center;
  margin: 50px 0 30px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 15px;
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

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

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

.product-thumb-wrap {
  aspect-ratio: 1/1;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge-condition {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

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

.product-brand {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-price-wrap {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.product-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.product-tax-notice {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.product-btn-buy {
  margin-top: 12px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  display: block;
}

.product-btn-buy:hover {
  background: var(--primary-hover);
  color: #fff;
}

/* Standard Page Layout */
.page-header {
  background: #f8fafc;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
}

.page-content {
  margin-bottom: 60px;
  font-size: 16px;
  line-height: 1.7;
}

.page-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 30px 0 15px;
  color: #0f172a;
}

.page-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px;
}

.page-content p {
  margin-bottom: 15px;
}

.page-content ul, .page-content ol {
  margin: 15px 0 20px 25px;
}

.legal-placeholder {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 12px 16px;
  margin: 15px 0;
  font-size: 14px;
  color: #92400e;
  border-radius: 0 6px 6px 0;
}

/* Footer Styles */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 20px;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #cbd5e1;
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-contact-info {
  font-size: 14px;
  line-height: 1.8;
  color: #cbd5e1;
}

.footer-badges-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: #cbd5e1;
}

.badge-pill {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: #e2e8f0;
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

.footer-bottom p {
  margin-bottom: 8px;
}

/* WooCommerce Overrides */
.woocommerce div.product p.price, .woocommerce div.product span.price {
  color: var(--primary) !important;
  font-size: 28px !important;
  font-weight: 800 !important;
}

.woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
  background-color: var(--primary) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 14px 24px !important;
  border-radius: 6px !important;
}

.woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover {
  background-color: var(--primary-hover) !important;
}
