/*
Theme Name: BDShield
Theme URI: https://bdshield.com
Author: BDShield
Author URI: https://bdshield.com
Description: A premium digital products storefront WordPress theme. Built for selling themes, plugins, and design assets with enterprise-grade security, beautiful design, and blazing performance. Features include digital product management, license key generation, secure checkout, newsletter subscriptions, customer dashboards, and full WooCommerce compatibility.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bdshield
Tags: e-commerce, blog, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks, block-styles, full-site-editing

BDShield — Premium Digital Products Theme
Copyright 2026 BDShield
*/

/* ═══════════════════════════════════════════
   CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════ */
:root {
  --bd-ivory: #F7F5F0;
  --bd-charcoal: #1A1A1A;
  --bd-warm-black: #0D0D0D;
  --bd-gold: #C9A96E;
  --bd-gold-light: #DFC598;
  --bd-gold-dim: rgba(201,169,110,0.12);
  --bd-sand: #E8E2D8;
  --bd-stone: #7A7268;
  --bd-cream: #FDFCFA;
  --bd-soft-border: rgba(26,26,26,0.08);
  --bd-green: #2E8B57;
  --bd-green-dim: rgba(46,139,87,0.08);
  --bd-blue: #3B82F6;
  --bd-blue-dim: rgba(59,130,246,0.08);
  --bd-red: #DC2626;
  --bd-red-dim: rgba(220,38,38,0.08);
  --bd-orange: #EA580C;
  --bd-orange-dim: rgba(234,88,12,0.08);
  --bd-purple: #8B5CF6;
  --bd-purple-dim: rgba(139,92,246,0.08);
  --bd-shadow: 0 2px 40px rgba(0,0,0,0.04);
  --bd-shadow-hover: 0 12px 60px rgba(0,0,0,0.08);
  --bd-radius: 16px;
  --bd-radius-sm: 10px;
  --bd-radius-pill: 100px;
  --bd-transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --bd-font-heading: 'Playfair Display', Georgia, serif;
  --bd-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --bd-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--bd-font-body);
  background: var(--bd-ivory);
  color: var(--bd-charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s; }
ul, ol { list-style: none; }
button, input, textarea, select {
  font-family: inherit; font-size: inherit; color: inherit;
  outline: none;
}
button { cursor: pointer; border: none; background: none; }

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
  z-index: 9999;
}

/* ═══════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--bd-font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
h1 { font-size: clamp(36px, 5vw, 72px); letter-spacing: -2px; }
h2 { font-size: clamp(28px, 4vw, 48px); letter-spacing: -1px; }
h3 { font-size: clamp(22px, 3vw, 32px); }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }
p { line-height: 1.7; }
.bd-text-gold {
  color: var(--bd-gold);
  background: linear-gradient(90deg, var(--bd-gold), var(--bd-gold-light), var(--bd-gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bd-label {
  display: inline-block;
  font-family: var(--bd-font-body);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--bd-gold);
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes bd-fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bd-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes bd-slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bd-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes bd-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes bd-scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.bd-animate {
  opacity: 0;
  animation: bd-fadeIn 0.6s ease 1.5s forwards;  /* Fallback: show after 1.5s if JS fails */
}
.bd-animate.bd-visible {
  animation: bd-fadeUp 0.8s var(--bd-transition) forwards;
}
.bd-shimmer { animation: bd-shimmer 4s linear infinite; }

/* ═══════════════════════════════════════════
   LAYOUT UTILITIES
   ═══════════════════════════════════════════ */
.bd-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 60px;
}
.bd-section {
  padding: 120px 0;
}
.bd-grid {
  display: grid;
  gap: 28px;
}
.bd-grid-2 { grid-template-columns: repeat(2, 1fr); }
.bd-grid-3 { grid-template-columns: repeat(3, 1fr); }
.bd-grid-4 { grid-template-columns: repeat(4, 1fr); }
.bd-flex { display: flex; }
.bd-flex-center { display: flex; align-items: center; justify-content: center; }
.bd-flex-between { display: flex; align-items: center; justify-content: space-between; }
.bd-text-center { text-align: center; }
.bd-bg-cream { background: var(--bd-cream); }
.bd-bg-dark { background: var(--bd-warm-black); color: var(--bd-ivory); }
.bd-bg-ivory { background: var(--bd-ivory); }

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.bd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 36px;
  border-radius: var(--bd-radius-pill);
  font-family: var(--bd-font-body);
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--bd-transition);
  white-space: nowrap;
}
.bd-btn-primary {
  background: var(--bd-charcoal); color: var(--bd-ivory);
}
.bd-btn-primary:hover {
  background: var(--bd-gold); color: var(--bd-warm-black);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,169,110,0.3);
}
.bd-btn-gold {
  background: var(--bd-gold); color: var(--bd-warm-black); font-weight: 700;
}
.bd-btn-gold:hover {
  background: var(--bd-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,169,110,0.25);
}
.bd-btn-outline {
  background: transparent; color: var(--bd-charcoal);
  border: 1.5px solid var(--bd-sand);
}
.bd-btn-outline:hover {
  border-color: var(--bd-gold); color: var(--bd-gold);
}
.bd-btn-outline-light {
  background: transparent; color: rgba(247,245,240,0.7);
  border: 1.5px solid rgba(247,245,240,0.15);
}
.bd-btn-outline-light:hover {
  border-color: var(--bd-gold); color: var(--bd-gold);
}
.bd-btn-sm {
  padding: 10px 22px; font-size: 13px;
}
.bd-btn-icon {
  width: 42px; height: 42px; padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--bd-soft-border);
  background: transparent;
}
.bd-btn-icon:hover {
  border-color: var(--bd-gold); color: var(--bd-gold);
}

/* ═══════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════ */
.bd-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--bd-soft-border);
  border-radius: var(--bd-radius-sm);
  font-family: var(--bd-font-body);
  font-size: 14px;
  color: var(--bd-charcoal);
  background: var(--bd-cream);
  transition: all 0.3s;
}
.bd-input:focus {
  border-color: var(--bd-gold);
  background: white;
}
.bd-input::placeholder { color: var(--bd-sand); }
.bd-input-dark {
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--bd-ivory);
}
.bd-input-dark:focus {
  border-color: var(--bd-gold);
  background: rgba(255,255,255,0.14);
}
.bd-input-dark::placeholder { color: rgba(247,245,240,0.5); }
.bd-label-field {
  display: block;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}
.bd-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.bd-form-row .bd-full { grid-column: 1 / -1; }

/* Toggle switch */
.bd-toggle {
  width: 44px; height: 24px;
  border-radius: 12px;
  background: var(--bd-sand);
  position: relative;
  transition: background 0.3s;
  cursor: pointer; border: none; padding: 0;
}
.bd-toggle.active { background: var(--bd-gold); }
.bd-toggle::after {
  content: '';
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%; background: white;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.bd-toggle.active::after { transform: translateX(20px); }

/* ═══════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════ */
.bd-card {
  background: white;
  border-radius: var(--bd-radius);
  border: 1px solid var(--bd-soft-border);
  overflow: hidden;
  transition: all 0.45s var(--bd-transition);
}
.bd-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--bd-shadow-hover);
  border-color: rgba(201,169,110,0.15);
}
.bd-card-flat { border-radius: var(--bd-radius); overflow: hidden; }
.bd-panel {
  background: white;
  border-radius: var(--bd-radius);
  border: 1px solid var(--bd-soft-border);
  overflow: hidden;
}
.bd-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--bd-soft-border);
}
.bd-panel-title {
  font-family: var(--bd-font-body);
  font-weight: 700; font-size: 16px;
}

/* ═══════════════════════════════════════════
   BADGES & TAGS
   ═══════════════════════════════════════════ */
.bd-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px;
  border-radius: var(--bd-radius-pill);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.5px;
}
.bd-badge-gold { background: var(--bd-gold-dim); color: var(--bd-gold); }
.bd-badge-green { background: var(--bd-green-dim); color: var(--bd-green); }
.bd-badge-blue { background: var(--bd-blue-dim); color: var(--bd-blue); }
.bd-badge-orange { background: var(--bd-orange-dim); color: var(--bd-orange); }
.bd-badge-dark { background: var(--bd-charcoal); color: var(--bd-ivory); }
.bd-badge-white { background: white; color: var(--bd-charcoal); box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.bd-badge-featured { background: var(--bd-gold); color: white; }
.bd-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ═══════════════════════════════════════════
   HEADER / NAVIGATION
   ═══════════════════════════════════════════ */
.bd-header {
  position: sticky; top: 0;
  z-index: 1000;
  height: 72px;
  display: flex; align-items: center;
  background: rgba(247,245,240,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bd-soft-border);
  animation: bd-slideDown 0.6s ease forwards;
}
.bd-header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.bd-logo {
  font-family: var(--bd-font-heading);
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--bd-charcoal);
}
.bd-logo span { color: var(--bd-gold); }
.bd-nav { display: flex; align-items: center; gap: 36px; }
.bd-nav a {
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
}
.bd-nav a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--bd-gold);
  transition: width 0.3s var(--bd-transition);
}
.bd-nav a:hover { color: var(--bd-gold); }
.bd-nav a:hover::after { width: 100%; }
.bd-nav a.current-menu-item { color: var(--bd-gold); }
.bd-nav a.current-menu-item::after { width: 100%; }

.bd-nav li {
  list-style: none;
  display: contents;
}
.bd-nav-cta {
  padding: 10px 26px !important;
  background: var(--bd-charcoal);
  color: var(--bd-ivory) !important;
  border-radius: var(--bd-radius-pill);
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
}
.bd-nav-cta::after { display: none !important; }
.bd-nav-cta:hover {
  background: var(--bd-gold) !important;
  color: var(--bd-warm-black) !important;
}

/* Cart icon */
.bd-nav-cart {
  position: relative;
  display: inline-flex; align-items: center;
}
.bd-nav-cart-count {
  position: absolute; top: -6px; right: -8px;
  width: 18px; height: 18px;
  background: var(--bd-gold); color: white;
  font-size: 10px; font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile menu toggle */
.bd-menu-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--bd-soft-border);
}
.bd-hamburger {
  width: 20px; height: 14px;
  position: relative;
}
.bd-hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--bd-charcoal);
  border-radius: 1px;
  position: absolute; left: 0;
  transition: all 0.3s;
}
.bd-hamburger span:nth-child(1) { top: 0; }
.bd-hamburger span:nth-child(2) { top: 6px; }
.bd-hamburger span:nth-child(3) { top: 12px; }
.bd-menu-toggle.active .bd-hamburger span:nth-child(1) {
  top: 6px; transform: rotate(45deg);
}
.bd-menu-toggle.active .bd-hamburger span:nth-child(2) { opacity: 0; }
.bd-menu-toggle.active .bd-hamburger span:nth-child(3) {
  top: 6px; transform: rotate(-45deg);
}

/* Mobile menu */
.bd-mobile-menu {
  display: none;
  position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--bd-ivory);
  z-index: 999;
  padding: 24px;
  flex-direction: column; gap: 0;
  overflow-y: auto;
}
.bd-mobile-menu.active { display: flex; }
.bd-mobile-menu a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--bd-soft-border);
  font-size: 18px; font-weight: 500;
}
.bd-mobile-menu .bd-btn {
  margin-top: 24px;
}

/* ═══════════════════════════════════════════
   HERO SECTIONS
   ═══════════════════════════════════════════ */
.bd-hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}
.bd-hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.bd-hero-glow-1 {
  top: 5%; right: 10%;
  background: var(--bd-gold); opacity: 0.08;
}
.bd-hero-glow-2 {
  bottom: 10%; left: 5%;
  background: var(--bd-sand); opacity: 0.15;
}
.bd-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px;
  background: var(--bd-gold-dim);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: var(--bd-radius-pill);
  font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bd-gold);
  margin-bottom: 32px;
}
.bd-hero-badge .bd-dot { animation: bd-float 2s ease-in-out infinite; }
.bd-hero h1 { max-width: 900px; margin-bottom: 28px; }
.bd-hero h1 em {
  font-style: italic;
}
.bd-hero-sub {
  font-size: 18px; font-weight: 300;
  color: var(--bd-stone);
  max-width: 520px; line-height: 1.7;
  margin-bottom: 44px;
}
.bd-hero-actions {
  display: flex; gap: 10px; align-items: center; justify-content: center;
}
.bd-hero-actions .bd-btn {
  padding: 10px 22px; font-size: 13px; font-weight: 500;
}
.bd-hero-stats {
  display: flex; gap: 60px;
  margin-top: 80px; padding-top: 40px;
  border-top: 1px solid var(--bd-soft-border);
}
.bd-hero-stat-number {
  font-family: var(--bd-font-heading);
  font-size: 36px; font-weight: 700;
}
.bd-hero-stat-label {
  font-size: 13px; color: var(--bd-stone);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════
   PRODUCT CARDS
   ═══════════════════════════════════════════ */
.bd-product-card { cursor: pointer; }
.bd-product-thumb {
  height: 240px;
  position: relative; overflow: hidden;
}
.bd-product-thumb-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.6s var(--bd-transition);
}
.bd-product-card:hover .bd-product-thumb-inner {
  transform: scale(1.04);
}
.bd-product-tag {
  position: absolute; top: 16px; left: 16px;
}
.bd-product-info { padding: 24px; }
.bd-product-category {
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bd-stone);
  margin-bottom: 8px;
}
.bd-product-name {
  font-family: var(--bd-font-heading);
  font-size: 22px; font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.bd-product-desc {
  font-size: 14px; color: var(--bd-stone);
  line-height: 1.6; margin-bottom: 20px;
}
.bd-product-rating {
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 16px;
}
.bd-star { color: var(--bd-gold); font-size: 13px; }
.bd-rating-count { font-size: 12px; color: var(--bd-stone); margin-left: 4px; }
.bd-product-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--bd-soft-border);
}
.bd-product-price {
  font-size: 22px; font-weight: 700;
}
.bd-product-price-was {
  font-size: 14px; font-weight: 400;
  color: var(--bd-stone);
  text-decoration: line-through;
  margin-left: 8px;
}

/* ═══════════════════════════════════════════
   FILTER TABS
   ═══════════════════════════════════════════ */
.bd-filter-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.bd-filter-tab {
  padding: 10px 22px;
  border: 1.5px solid var(--bd-soft-border);
  border-radius: var(--bd-radius-pill);
  font-family: var(--bd-font-body);
  font-size: 13px; font-weight: 500;
  color: var(--bd-stone);
  transition: all 0.3s;
}
.bd-filter-tab:hover {
  border-color: var(--bd-charcoal);
  color: var(--bd-charcoal);
  background: white;
}
.bd-filter-tab.active {
  background: var(--bd-charcoal);
  color: var(--bd-ivory);
  border-color: var(--bd-charcoal);
}

/* ═══════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════ */
.bd-testimonial {
  padding: 36px;
  background: white;
  border-radius: var(--bd-radius);
  border: 1px solid var(--bd-soft-border);
  transition: all var(--bd-transition);
}
.bd-testimonial:hover {
  box-shadow: var(--bd-shadow-hover);
  transform: translateY(-3px);
}
.bd-testimonial-stars {
  display: flex; gap: 3px;
  margin-bottom: 16px;
}
.bd-testimonial-text {
  font-size: 15px; line-height: 1.7;
  margin-bottom: 24px;
}
.bd-testimonial-author {
  display: flex; align-items: center; gap: 12px;
}
.bd-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bd-sand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: var(--bd-stone);
}
.bd-avatar-gold {
  background: linear-gradient(135deg, var(--bd-gold), var(--bd-gold-light));
  color: white;
}

/* ═══════════════════════════════════════════
   FEATURES STRIP
   ═══════════════════════════════════════════ */
.bd-features-strip {
  padding: 80px 0;
}
.bd-feature-item { text-align: center; padding: 32px 20px; }
.bd-feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--bd-radius);
  background: var(--bd-gold-dim);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--bd-gold);
}
.bd-feature-title {
  font-family: var(--bd-font-body);
  font-weight: 600; font-size: 16px;
  margin-bottom: 8px;
}
.bd-feature-text {
  font-size: 13px; color: var(--bd-stone);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════ */
.bd-cta-box {
  background: var(--bd-warm-black);
  border-radius: 24px;
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bd-cta-box::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.12), transparent 70%);
  pointer-events: none;
}
.bd-cta-box h2 {
  color: var(--bd-ivory);
  margin-bottom: 16px;
  position: relative;
}
.bd-cta-box p {
  color: rgba(247,245,240,0.5);
  font-size: 16px; font-weight: 300;
  margin-bottom: 36px;
  position: relative;
}

/* ═══════════════════════════════════════════
   NEWSLETTER
   ═══════════════════════════════════════════ */
.bd-newsletter {
  background: var(--bd-warm-black);
  border-radius: 20px;
  padding: 64px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.bd-newsletter::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.1), transparent 70%);
  pointer-events: none;
}
.bd-newsletter h3 {
  color: var(--bd-ivory);
  margin-bottom: 12px;
  position: relative;
}
.bd-newsletter p {
  color: rgba(247,245,240,0.45);
  font-size: 15px; line-height: 1.7;
  font-weight: 300;
  position: relative;
}
.bd-newsletter-form {
  display: flex; gap: 10px;
  position: relative;
}
.bd-newsletter-note {
  font-size: 12px;
  color: rgba(247,245,240,0.25);
  margin-top: 12px;
  position: relative;
}
.bd-newsletter-success {
  display: none;
  padding: 16px;
  background: var(--bd-green-dim);
  border-radius: var(--bd-radius-sm);
  color: var(--bd-green);
  font-size: 14px; font-weight: 600;
  text-align: center;
}

/* ═══════════════════════════════════════════
   BLOG / POST CARDS
   ═══════════════════════════════════════════ */
.bd-post-card { cursor: pointer; }
.bd-post-thumb {
  height: 200px;
  position: relative; overflow: hidden;
}
.bd-post-thumb-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.5s var(--bd-transition);
}
.bd-post-card:hover .bd-post-thumb-inner { transform: scale(1.04); }
.bd-post-cat {
  position: absolute; top: 14px; left: 14px;
}
.bd-post-read-time {
  position: absolute; bottom: 14px; right: 14px;
  padding: 4px 12px;
  border-radius: var(--bd-radius-pill);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  font-size: 11px; color: white; font-weight: 500;
}
.bd-post-body { padding: 22px; }
.bd-post-title {
  font-family: var(--bd-font-heading);
  font-size: 19px; font-weight: 700;
  line-height: 1.25; letter-spacing: -0.3px;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bd-post-excerpt {
  font-size: 14px; color: var(--bd-stone);
  line-height: 1.6; font-weight: 300;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bd-post-footer {
  display: flex; align-items: center; gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--bd-soft-border);
}
.bd-post-author { font-size: 13px; font-weight: 600; }
.bd-post-date { font-size: 12px; color: var(--bd-stone); }
.bd-post-arrow {
  margin-left: auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--bd-soft-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--bd-stone);
  transition: all 0.3s;
}
.bd-post-card:hover .bd-post-arrow {
  background: var(--bd-gold);
  border-color: var(--bd-gold);
  color: white;
}

/* ═══════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════ */
.bd-pagination {
  display: flex; justify-content: center;
  align-items: center; gap: 6px;
  padding: 40px 0;
}
.bd-page-btn {
  width: 40px; height: 40px;
  border-radius: var(--bd-radius-sm);
  border: 1.5px solid var(--bd-soft-border);
  background: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  transition: all 0.3s;
}
.bd-page-btn:hover { border-color: var(--bd-gold); color: var(--bd-gold); }
.bd-page-btn.active {
  background: var(--bd-charcoal);
  color: var(--bd-ivory);
  border-color: var(--bd-charcoal);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.bd-footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--bd-soft-border);
}
.bd-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 48px;
}
.bd-footer-brand {
  font-family: var(--bd-font-heading);
  font-size: 22px; font-weight: 700;
  margin-bottom: 12px;
}
.bd-footer-brand span { color: var(--bd-gold); }
.bd-footer-about {
  font-size: 14px; color: var(--bd-stone);
  line-height: 1.7; max-width: 280px;
}
.bd-footer-col h4 {
  font-family: var(--bd-font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.bd-footer-col a {
  display: block;
  font-size: 14px; color: var(--bd-stone);
  margin-bottom: 12px;
}
.bd-footer-col a:hover { color: var(--bd-gold); }
.bd-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--bd-soft-border);
}
.bd-footer-copy { font-size: 13px; color: var(--bd-stone); }
.bd-footer-socials { display: flex; gap: 16px; }
.bd-footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--bd-soft-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.bd-footer-socials a:hover {
  border-color: var(--bd-gold); color: var(--bd-gold);
}

/* ═══════════════════════════════════════════
   WOOCOMMERCE OVERRIDES
   ═══════════════════════════════════════════ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--bd-gold) !important;
  background: var(--bd-cream) !important;
  border-radius: var(--bd-radius-sm) !important;
}
.woocommerce-message::before { color: var(--bd-gold) !important; }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--bd-charcoal) !important;
  color: var(--bd-ivory) !important;
  border-radius: var(--bd-radius-pill) !important;
  font-family: var(--bd-font-body) !important;
  font-weight: 600 !important;
  padding: 12px 28px !important;
  transition: all var(--bd-transition) !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--bd-gold) !important;
  color: var(--bd-warm-black) !important;
}
.woocommerce .quantity .qty {
  border: 1.5px solid var(--bd-soft-border) !important;
  border-radius: var(--bd-radius-sm) !important;
}
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
  border: 1.5px solid var(--bd-soft-border) !important;
  border-radius: var(--bd-radius-sm) !important;
  padding: 12px 16px !important;
  background: var(--bd-cream) !important;
}
.woocommerce-checkout .form-row input.input-text:focus {
  border-color: var(--bd-gold) !important;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border-radius: var(--bd-radius-sm) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--bd-charcoal) !important;
}

/* ═══════════════════════════════════════════
   WORDPRESS CORE OVERRIDES
   ═══════════════════════════════════════════ */
.wp-block-button__link {
  background: var(--bd-charcoal);
  color: var(--bd-ivory);
  border-radius: var(--bd-radius-pill);
  padding: 14px 32px;
  font-family: var(--bd-font-body);
  font-weight: 600;
  transition: all var(--bd-transition);
}
.wp-block-button__link:hover {
  background: var(--bd-gold);
  color: var(--bd-warm-black);
}
.wp-block-quote {
  border-left: 3px solid var(--bd-gold);
  padding-left: 24px;
  font-style: italic;
}
.entry-content { padding-top: 100px; }
.entry-content p { margin-bottom: 1.5em; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin: 1.5em 0 0.5em; }
.entry-content img { border-radius: var(--bd-radius-sm); }
.entry-content a { color: var(--bd-gold); font-weight: 500; }
.entry-content a:hover { text-decoration: underline; }

/* Comments */
.comment-list { list-style: none; }
.comment-body {
  padding: 24px;
  background: white;
  border-radius: var(--bd-radius);
  border: 1px solid var(--bd-soft-border);
  margin-bottom: 16px;
}
.comment-author .fn { font-weight: 600; }
.comment-metadata { font-size: 13px; color: var(--bd-stone); }
#respond input[type="text"],
#respond input[type="email"],
#respond textarea {
  border: 1.5px solid var(--bd-soft-border);
  border-radius: var(--bd-radius-sm);
  padding: 12px 16px;
  background: var(--bd-cream);
  width: 100%;
  font-family: var(--bd-font-body);
}
#respond input[type="text"]:focus,
#respond input[type="email"]:focus,
#respond textarea:focus {
  border-color: var(--bd-gold);
}
#respond input[type="submit"] {
  background: var(--bd-charcoal);
  color: var(--bd-ivory);
  border: none;
  border-radius: var(--bd-radius-pill);
  padding: 14px 32px;
  font-family: var(--bd-font-body);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--bd-transition);
}
#respond input[type="submit"]:hover {
  background: var(--bd-gold);
  color: var(--bd-warm-black);
}

/* Widgets */
.widget { margin-bottom: 32px; }
.widget-title {
  font-family: var(--bd-font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════
   SCROLL TO TOP
   ═══════════════════════════════════════════ */
.bd-scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bd-charcoal);
  color: var(--bd-ivory);
  display: flex; align-items: center; justify-content: center;
  z-index: 998;
  opacity: 0; transform: translateY(10px);
  transition: all 0.3s;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.bd-scroll-top.visible {
  opacity: 1; transform: translateY(0);
  pointer-events: auto;
}
.bd-scroll-top:hover {
  background: var(--bd-gold);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bd-container { padding: 0 40px; }
  .bd-header-inner { padding: 0 40px; }
  .bd-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .bd-hero-stats { gap: 40px; }
  .bd-newsletter { grid-template-columns: 1fr; padding: 48px; }
  .bd-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .bd-container { padding: 0 24px; }
  .bd-header-inner { padding: 0 24px; }
  .bd-section { padding: 80px 0; }
  .bd-nav { display: none; }
  .bd-menu-toggle { display: flex; }
  .bd-hero { padding: 120px 24px 60px; min-height: auto; }
  .bd-hero h1 { font-size: clamp(32px, 8vw, 48px); }
  .bd-hero-actions { flex-wrap: wrap; justify-content: center; }
  .bd-hero-actions .bd-btn { padding: 9px 20px; font-size: 12px; }
  .bd-hero-stats { flex-direction: column; gap: 24px; text-align: center; }
  .bd-grid-2, .bd-grid-3, .bd-grid-4 { grid-template-columns: 1fr; }
  .bd-form-row { grid-template-columns: 1fr; }
  .bd-cta-box { padding: 48px 24px; }
  .bd-newsletter { padding: 36px 24px; }
  .bd-newsletter-form { flex-direction: column; }
  .bd-filter-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .bd-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .bd-footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .bd-container { padding: 0 16px; }
  .bd-header-inner { padding: 0 16px; }
  .bd-hero { padding: 100px 16px 40px; }
  h1 { font-size: clamp(28px, 8vw, 40px); }
  h2 { font-size: clamp(24px, 6vw, 36px); }
}

/* ═══════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--bd-gold);
  outline-offset: 2px;
}
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; margin: -1px;
  overflow: hidden; padding: 0;
  position: absolute; width: 1px;
  word-wrap: normal !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print */


/* ═══════════════════════════════════════════
   MOBILE HEADER ACTIONS (cart + hamburger)
   ═══════════════════════════════════════════ */
.bd-header-mobile-actions {
  display: none;
  align-items: center;
  gap: 12px;
}
.bd-mobile-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
}
@media (max-width: 768px) {
  .bd-header-mobile-actions {
    display: flex !important;
  }
}

/* ═══════════════════════════════════════════
   MOBILE MENU POLISH
   ═══════════════════════════════════════════ */
.bd-mobile-menu li {
  list-style: none;
}
.bd-mobile-menu li a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--bd-soft-border);
  font-size: 17px;
  font-weight: 500;
  color: var(--bd-charcoal);
  transition: color 0.3s;
}
.bd-mobile-menu li:last-child a {
  border-bottom: none;
}
.bd-mobile-menu li a:hover,
.bd-mobile-menu li.current-menu-item a {
  color: var(--bd-gold);
}

/* ═══════════════════════════════════════════
   CONTACT PAGE RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bd-grid[style*="grid-template-columns:1fr 2fr"],
  .bd-grid[style*="grid-template-columns: 1fr 2fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* Form first, info panel second on mobile */
  .bd-grid[style*="grid-template-columns:1fr 2fr"] > div:first-child,
  .bd-grid[style*="grid-template-columns: 1fr 2fr"] > div:first-child {
    order: 2;
  }
  .bd-grid[style*="grid-template-columns:1fr 2fr"] > div:last-child,
  .bd-grid[style*="grid-template-columns: 1fr 2fr"] > div:last-child {
    order: 1;
  }
}
@media (max-width: 768px) {
  .bd-hero[style*="padding:140px"] {
    padding: 120px 24px 32px !important;
  }
  .bd-hero[style*="padding:140px"] h1 {
    font-size: clamp(28px, 7vw, 40px) !important;
  }
  .contact-page-wrapper h2 {
    font-size: 24px;
  }
  .contact-page-wrapper div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    display: grid !important;
  }
  .bd-panel[style*="padding:36px"] {
    padding: 24px !important;
  }
}

@media (max-width: 480px) {
  .bd-grid[style*="grid-template-columns:1fr 2fr"],
  .bd-grid[style*="grid-template-columns: 1fr 2fr"] {
    gap: 24px !important;
  }
}


/* ═══════════════════════════════════════════
   
/* Hide WC "added to cart" notice on product pages */
.single-product .woocommerce-message {
  display: none !important;
}

/* ═══════════════════════════════════════════
   WOOCOMMERCE PAGE LAYOUT OVERRIDES
   ═══════════════════════════════════════════ */
body.woocommerce-cart .bd-container,
body.woocommerce-checkout .bd-container {
  max-width: 100% !important;
  padding: 0 !important;
}
body.woocommerce-cart article > .bd-container > header,
body.woocommerce-checkout article > .bd-container > header {
  display: none !important;
}
body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-content {
  padding-top: 0 !important;
}

/* Hide WC default coupon toggle on checkout (we have coupon in cart) */
body.woocommerce-checkout .woocommerce-form-coupon-toggle {
  display: none !important;
}
body.woocommerce-checkout .checkout_coupon {
  display: none !important;
}

/* Style login toggle on checkout */
body.woocommerce-checkout .woocommerce-form-login-toggle {
  max-width: 1120px;
  margin: 0 auto 16px;
  padding: 0 24px;
}
body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info {
  background: rgba(201,169,110,0.08);
  color: #1A1A1A;
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 10px;
  padding: 14px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
}
body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info a {
  color: #C9A96E;
  font-weight: 600;
}

/* WC notices on cart/checkout - position properly */
body.woocommerce-cart .woocommerce-notices-wrapper,
body.woocommerce-checkout .woocommerce-notices-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 16px;
}

@media print {
  .bd-header, .bd-footer, .bd-scroll-top,
  .bd-newsletter, .bd-cta-box { display: none !important; }
  body { background: white; color: black; }
  body::before { display: none; }
}
