/*
Theme Name: Velvet
Theme URI: https://velvet-theme.com
Author: Velvet Studios
Author URI: https://velvet-theme.com
Description: A premium, elegant adult content WordPress theme with a dark luxury aesthetic. Features a 3-column post grid, favorites functionality, and polished single post layouts.
Version: 2.2.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: velvet
Tags: adult, premium, dark, grid, responsive
*/

/* ============================================================
   STRUCTURAL TOKENS  (layout, spacing, radii, motion, fonts)
   COLOR TOKENS are injected by velvet_customizer_css() in wp_head
   at priority 5 -- BEFORE this stylesheet loads -- so they always win.
   DO NOT add color values here. Use var(--token) only.
   ============================================================ */
:root {
  /* Radii */
  --radius-sm:     3px;
  --radius-md:     6px;
  --radius-lg:     10px;

  /* Motion */
  --transition:      0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;

  /* Layout */
  --header-h:  72px;
  --container: 1320px;
  --gap:       24px;

  /* Font stacks -- overridden by velvet_customizer_css() with chosen Google Font */
  --font-display: 'Cinzel', Georgia, serif;
  --font-body:    'Raleway', sans-serif;
  --font-label:   'DM Mono', 'Courier New', monospace;

  /* Fallback color tokens -- overridden by velvet_customizer_css().
     These exist so the page isn't broken if PHP fails to output the style block. */
  --bg-deep:        #08070a;
  --bg-surface:     #0e0c12;
  --bg-card:        #13111a;
  --bg-elevated:    #1a1722;
  --border:         #221f2e;
  --border-light:   #322e44;
  --gold:           #c8922a;
  --gold-light:     #e8b84a;
  --gold-dim:       #6b4a10;
  --text-primary:   #f0ece4;
  --text-secondary: #9a9088;
  --text-muted:     #504848;
  --header-bg:      #08070a;
  --header-border:  #221f2e;
  --header-text:    #f0ece4;
  --header-accent:  #c8922a;
  --neon-pink:      #b02040;
  --neon-pink-dim:  #5a0f20;
  --neon-violet:    #7b3fa0;
  --casino-gold:    #d4a030;
  --crimson:        #c02030;
  --crimson-light:  #e03050;
  --shadow-card:    0 4px 28px rgba(0,0,0,0.7);
  --shadow-hover:   0 10px 40px rgba(0,0,0,0.8),0 0 30px rgba(200,146,42,0.12);
  --shadow-gold:    0 0 18px rgba(200,146,42,0.4),0 0 50px rgba(200,146,42,0.1);
  --neon-glow-sm:   0 0 6px rgba(200,146,42,0.45),0 0 16px rgba(200,146,42,0.18);
  --neon-glow-md:   0 0 10px rgba(200,146,42,0.55),0 0 35px rgba(200,146,42,0.2);
  --pink-glow:      0 0 10px rgba(176,32,64,0.5),0 0 30px rgba(176,32,64,0.2);
  --violet-glow:    0 0 10px rgba(123,63,160,0.5),0 0 30px rgba(123,63,160,0.18);
}

[data-theme="light"] body::before { opacity: 0.15; }

[data-theme="light"] .age-gate-overlay { background: rgba(240,236,230,0.97); }
[data-theme="light"] .search-overlay   { background: rgba(240,236,230,0.97); }
[data-theme="light"] .search-overlay-form input { color: var(--text-primary); }

/* [data-theme="light"] #masthead -- now handled via --header-bg and --header-border CSS vars set by velvet_customizer_css() */
[data-theme="light"] #primary-navigation.open { background: var(--bg-surface); }

[data-theme="light"] .post-card-category-badge {
  background: rgba(245,243,239,0.9);
}
[data-theme="light"] .favorite-btn {
  background: rgba(245,243,239,0.9);
}
[data-theme="light"] .single-category-btn {
  background: rgba(245,243,239,0.9);
}

/* --- Theme Toggle Button --------------------------------- */
.theme-toggle {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}
.theme-toggle svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  position: absolute;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-toggle .icon-moon  { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle .icon-sun   { opacity: 0; transform: rotate(-90deg) scale(0.6); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.6); }
[data-theme="light"] .theme-toggle .icon-sun  { opacity: 1; transform: rotate(0deg) scale(1); }

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--gold-light); }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.25rem; color: var(--text-secondary); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   GOOGLE FONTS IMPORT HINT (enqueued via PHP)
   @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&family=DM+Mono&display=swap');
   ============================================================ */

/* ============================================================
   HEADER
   ============================================================ */
#masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  overflow: visible;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 1px 0 var(--gold-dim), 0 4px 24px rgba(0,0,0,0.4);
}

#masthead .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
  overflow: visible;
}

/* Site Branding */
.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.site-logo-mark {
  width: 36px; height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.site-title a { color: var(--header-text); }
.site-title a:hover { color: var(--header-accent); }

.site-description {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-label);
  margin-top: -4px;
}

/* Primary Navigation */
#primary-navigation {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.primary-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav-list li a {
  display: block;
  padding: 6px 14px;
  color: var(--header-text);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.primary-nav-list li a:hover,
.primary-nav-list li.current-menu-item > a {
  color: var(--header-accent);
  background: rgba(201,168,76,0.08);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  overflow: visible;
}

.header-search-btn,
.header-favorites-btn,
.header-cart-btn {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
  font-size: 0;
  text-decoration: none;
}

/* Cart wrapper -- badge is a sibling of <a>, not a child */
.cart-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  overflow: visible;
}
.header-search-btn:hover,
.header-favorites-btn:hover,
.header-cart-btn:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}
.header-search-btn svg,
.header-favorites-btn svg,
.header-cart-btn svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Cart notification badge -- bottom-right circle overlapping cart icon */
.cart-badge {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  border-radius: 50%;
  text-align: center;
  font-family: Arial, sans-serif;
  pointer-events: none;
  display: block;
  z-index: 10;
  border: 2px solid var(--header-bg, #13111a);
}
.cart-badge-hidden {
  display: none;
}

.btn-primary-header {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: #0a0a0f;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary-header:hover {
  color: #0a0a0f;
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO / PAGE HEADER (archive/taxonomy pages)
   ============================================================ */
.page-hero {
  padding: 64px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.page-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  padding: 4px 12px;
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
}

.page-hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.page-hero-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ============================================================
   POSTS GRID
   ============================================================ */
.posts-section {
  padding: 48px 0 80px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

/* ============================================================
   POST CARD
   ============================================================ */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: var(--gold-dim);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* Card Thumbnail */
.post-card-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-elevated);
}

.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.post-card:hover .post-card-thumb img {
  transform: scale(1.06);
}

.post-card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-surface));
}
.post-card-thumb-placeholder svg {
  width: 40px; height: 40px;
  color: var(--text-muted);
  opacity: 0.4;
}

/* Card Category Badge (on thumb) */
.post-card-category-badge {
  position: absolute;
  bottom: 10px; left: 10px;
  padding: 3px 10px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.post-card-category-badge:hover {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
}

/* Favorite Button */
.favorite-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2;
}
.favorite-btn svg {
  width: 15px; height: 15px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all var(--transition-fast);
}
.favorite-btn:hover,
.favorite-btn.is-favorite {
  border-color: var(--crimson);
  background: rgba(155,35,53,0.2);
}
.favorite-btn:hover svg,
.favorite-btn.is-favorite svg {
  stroke: var(--crimson-light);
}
.favorite-btn.is-favorite svg {
  fill: var(--crimson);
  stroke: var(--crimson);
}

/* Card Body */
.post-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.post-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}
.post-card-title a { color: inherit; }
.post-card:hover .post-card-title a { color: var(--gold-light); }

.post-card-date {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.post-card-date::before {
  content: '';
  display: inline-block;
  width: 14px; height: 1px;
  background: var(--border-light);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 48px 0 0;
}

.page-numbers {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: all var(--transition-fast);
}
.page-numbers:hover { border-color: var(--gold-dim); color: var(--gold); }
.page-numbers.current {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  border-color: var(--gold);
  color: var(--bg-deep);
  font-weight: 600;
}
.page-numbers.dots { border: none; background: none; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-wrap {
  padding: 48px 0 80px;
}
.single-sidebar-wrap .single-post-wrap {
  padding: 0;
}

/* Feature Image */
.single-feature-image-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid var(--border);
}
.single-feature-image-wrap img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* Category Button (above image) */
.single-category-btn {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 16px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gold-dim);
  border-radius: 24px;
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.single-category-btn:hover {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
}

/* Single Post Header */
.single-post-header {
  margin-bottom: 40px;
}

.single-post-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.15;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.single-post-date,
.single-post-author {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.single-post-date svg,
.single-post-author svg {
  width: 13px; height: 13px;
  stroke: var(--gold-dim);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.meta-divider {
  width: 1px; height: 14px;
  background: var(--border-light);
}

/* Post Content */
.single-post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 48px;
}
.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  color: var(--text-primary);
  margin: 2rem 0 1rem;
}
.single-post-content h2 { font-size: 1.6rem; }
.single-post-content h3 { font-size: 1.3rem; }
.single-post-content p { margin-bottom: 1.4rem; }
.single-post-content a { color: var(--gold); border-bottom: 1px solid var(--gold-dim); }
.single-post-content a:hover { color: var(--gold-light); border-color: var(--gold-light); }
.single-post-content img {
  border-radius: var(--radius-md);
  margin: 2rem 0;
  border: 1px solid var(--border);
}
.single-post-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 16px 24px;
  margin: 2rem 0;
  background: var(--bg-elevated);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-primary);
}

/* Tags */
.single-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.tag-label {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 4px;
}
.tag-pill {
  padding: 4px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.tag-pill:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: rgba(201,168,76,0.06);
}

/* Prev/Next Navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 64px;
}

.nav-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.nav-post-card:hover {
  border-color: var(--gold-dim);
  box-shadow: var(--shadow-hover);
}
.nav-post-card.nav-prev { text-align: left; }
.nav-post-card.nav-next { text-align: right; }

.nav-post-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.nav-post-image-placeholder {
  width: 100%; height: 140px;
  background: var(--bg-elevated);
}

.nav-post-body {
  padding: 16px 18px;
  flex: 1;
}
.nav-direction {
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-post-card.nav-next .nav-direction { justify-content: flex-end; }
.nav-direction svg {
  width: 12px; height: 12px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.nav-post-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  transition: color var(--transition-fast);
}
.nav-post-card:hover .nav-post-title { color: var(--gold-light); }
.nav-post-date {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-label);
  margin-top: 6px;
  letter-spacing: 0.06em;
}

/* ============================================================
   SIDEBAR LAYOUT
   ============================================================ */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 48px 0 80px;
  align-items: start;
}
.single-sidebar-wrap {
  padding: 48px 0 80px;
}

/* Posts grid inside content area */
.main-content-area .posts-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* Sticky sidebar */
.site-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  transition: border-color var(--transition-fast);
}
.widget:hover { border-color: var(--border-light); }
.widget-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Category List Widget */
.category-list-widget a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition-fast);
}
.category-list-widget a:last-child { border-bottom: none; }
.category-list-widget a:hover { color: var(--gold); }
.category-list-widget .count {
  font-family: var(--font-label);
  font-size: 0.68rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 2px 7px;
  border-radius: 10px;
}

/* Tag Cloud Widget */
.tag-cloud-widget {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-cloud-widget a {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 0.73rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.tag-cloud-widget a:hover { border-color: var(--gold-dim); color: var(--gold); }

/* Sidebar Search */
.sidebar-search-inner {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
  transition: border-color var(--transition-fast);
}
.sidebar-search-inner:focus-within { border-color: var(--gold-dim); }
.sidebar-search-inner input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-primary);
}
.sidebar-search-inner input::placeholder { color: var(--text-muted); }
.sidebar-search-inner button {
  background: none;
  border: none;
  padding: 0 12px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex; align-items: center;
  transition: color var(--transition-fast);
}
.sidebar-search-inner button:hover { color: var(--gold); }
.sidebar-search-inner button svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round;
}

/* Sidebar Recent Posts */
.sidebar-recent-posts { display: flex; flex-direction: column; gap: 14px; }
.sidebar-recent-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.sidebar-recent-thumb {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-elevated);
}
.sidebar-recent-thumb img {
  width: 60px; height: 60px;
  object-fit: cover;
}
.sidebar-recent-body { flex: 1; min-width: 0; }
.sidebar-recent-title {
  display: block;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-fast);
}
.sidebar-recent-title:hover { color: var(--gold); }
.sidebar-recent-date {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Sidebar Product List */
.sidebar-product-list { display: flex; flex-direction: column; gap: 14px; }
.sidebar-product-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.sidebar-product-thumb {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.sidebar-product-thumb img {
  width: 56px; height: 56px;
  object-fit: cover;
}
.sidebar-product-body { flex: 1; min-width: 0; }
.sidebar-product-name {
  display: block;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 4px;
  transition: color var(--transition-fast);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-product-name:hover { color: var(--gold); }
.sidebar-product-price {
  font-family: var(--font-label);
  font-size: 0.78rem;
  color: var(--gold);
}

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}

.footer-brand .site-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
  display: block;
}
.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 260px;
}

.footer-col-title {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}
.footer-legal-links {
  display: flex;
  gap: 20px;
}
.footer-legal-links a {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.footer-legal-links a:hover { color: var(--gold); }

/* Age Gate */
.age-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,5,8,0.97);
  backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.age-gate-box {
  max-width: 460px;
  width: 100%;
  text-align: center;
  padding: 56px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.age-gate-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.age-gate-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.age-gate-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
}
.age-gate-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.age-gate-enter {
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: var(--bg-deep);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.age-gate-enter:hover { box-shadow: var(--shadow-gold); transform: translateY(-1px); }
.age-gate-leave {
  padding: 12px 32px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.age-gate-leave:hover { border-color: var(--crimson); color: var(--crimson-light); }

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,5,8,0.96);
  backdrop-filter: blur(20px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.search-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.search-overlay-inner {
  width: 100%;
  max-width: 640px;
  padding: 24px;
}
.search-overlay-form {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 4px 4px 4px 20px;
}
.search-overlay-form input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.2rem;
  caret-color: var(--gold);
}
.search-overlay-form input::placeholder { color: var(--text-muted); }
.search-overlay-submit {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--bg-deep);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.search-close {
  display: block;
  margin: 20px auto 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-label);
}
.search-close:hover { color: var(--text-secondary); }

/* ============================================================
   WOOCOMMERCE PRODUCT PAGE
   ============================================================ */

/* Breadcrumb */
.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 32px;
}
.product-breadcrumb a { color: var(--text-muted); transition: color var(--transition-fast); }
.product-breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--border-light); }
.product-breadcrumb span:last-child { color: var(--text-secondary); }

/* Product Hero Layout */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  align-items: start;
}

/* Gallery */
.product-gallery-col { position: sticky; top: calc(var(--header-h) + 20px); }
.product-main-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
}
.product-main-image {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}
.product-no-image {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.product-no-image svg {
  width: 60px; height: 60px;
  stroke: var(--text-muted); fill: none; stroke-width: 1.5; opacity: 0.3;
}

/* Product Badges */
.product-badges {
  position: absolute;
  top: 14px; left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.badge-sale {
  display: inline-block;
  padding: 3px 10px;
  background: var(--crimson);
  color: #fff;
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 20px;
}
.badge-digital,
.badge-instant {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 20px;
}
.badge-digital svg,
.badge-instant svg {
  width: 11px; height: 11px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
}

/* Product Fav Button */
.product-fav-btn {
  position: absolute !important;
  top: 14px !important; right: 14px !important;
}

/* Gallery Thumbs */
.product-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.product-thumb {
  width: 72px; height: 72px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: var(--bg-elevated);
  transition: border-color var(--transition-fast);
  flex-shrink: 0;
}
.product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.product-thumb.active,
.product-thumb:hover { border-color: var(--gold); }

/* Product Info Column */
.product-cat-pill {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  transition: all var(--transition-fast);
}
.product-cat-pill:hover { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); }

.product-info-col .product-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* Stars */
.product-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.product-stars { display: flex; gap: 2px; }
.star {
  font-size: 1rem;
  color: var(--border-light);
  transition: color var(--transition-fast);
}
.star.filled { color: var(--gold); }
.product-review-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-label);
}

/* Short Description */
.product-short-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.product-short-desc p { margin-bottom: 0.5rem; color: inherit; }
.product-short-desc p:last-child { margin-bottom: 0; }

/* Digital Features */
.product-digital-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.digital-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.digital-feat svg {
  width: 16px; height: 16px;
  stroke: var(--gold); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* Price Box */
.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.price-was {
  font-family: var(--font-label);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-now {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.price-now .woocommerce-Price-amount { font-size: inherit; color: inherit; }
.price-save-pct {
  display: inline-block;
  padding: 3px 10px;
  background: var(--crimson);
  color: #fff;
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  border-radius: 20px;
  text-transform: uppercase;
}

/* Add to Cart WooCommerce Override */
.product-add-to-cart { margin-bottom: 20px; }
.product-add-to-cart .single_add_to_cart_button,
.product-add-to-cart .button {
  display: block !important;
  width: 100% !important;
  padding: 16px 32px !important;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%) !important;
  color: var(--bg-deep) !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer !important;
  transition: all var(--transition) !important;
  text-align: center !important;
}
.product-add-to-cart .single_add_to_cart_button:hover {
  box-shadow: var(--shadow-gold) !important;
  transform: translateY(-2px) !important;
}
.product-add-to-cart .quantity {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
}
.product-add-to-cart .qty {
  width: 80px !important;
  padding: 8px 12px !important;
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  text-align: center !important;
}

/* Download Info */
.product-download-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(201,168,76,0.06);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.product-download-info svg {
  width: 18px; height: 18px;
  stroke: var(--gold); fill: none;
  stroke-width: 1.8; stroke-linecap: round;
  flex-shrink: 0; margin-top: 2px;
}
.product-download-info div { display: flex; flex-direction: column; gap: 3px; }
.product-download-info strong { font-size: 0.82rem; color: var(--text-primary); }
.product-download-info span { font-size: 0.75rem; color: var(--text-muted); }

/* Product Meta Small */
.product-meta-small { padding-top: 16px; border-top: 1px solid var(--border); }
.product-meta-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 0.8rem;
}
.meta-key {
  font-family: var(--font-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-size: 0.68rem;
  min-width: 42px;
}
.meta-val { color: var(--text-secondary); }
.meta-val a { color: var(--text-secondary); transition: color var(--transition-fast); }
.meta-val a:hover { color: var(--gold); }

/* --- Product Tabs -------------------------------------- */
.product-tabs-section {
  margin-bottom: 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.product-tabs-nav {
  display: flex;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.product-tab-btn {
  padding: 14px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  margin-bottom: -1px;
}
.product-tab-btn:hover { color: var(--text-secondary); }
.product-tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: var(--bg-card);
}
.product-tab-panel {
  padding: 32px;
  background: var(--bg-card);
  display: none;
}
.product-tab-panel.active { display: block; }
.product-full-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.product-full-desc h2,
.product-full-desc h3 { color: var(--text-primary); margin: 1.8rem 0 0.8rem; }
.product-full-desc p { margin-bottom: 1.2rem; color: inherit; }

/* Attributes table */
.product-attrs-table { width: 100%; border-collapse: collapse; }
.product-attrs-table th,
.product-attrs-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.product-attrs-table th {
  color: var(--text-muted);
  font-weight: 500;
  width: 40%;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-attrs-table td { color: var(--text-secondary); }

/* --- Related Products ---------------------------------- */
.related-products-section { margin-bottom: 48px; }
.section-heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.related-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: block;
}
.related-product-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.related-product-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-elevated);
}
.related-product-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.related-product-card:hover .related-product-image img { transform: scale(1.05); }
.related-product-image .badge-sale { position: absolute; top: 8px; left: 8px; }
.related-product-body { padding: 14px 16px; }
.related-product-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-product-price {
  font-size: 0.88rem;
  color: var(--gold);
  font-family: var(--font-label);
}
.related-product-price .woocommerce-Price-amount { color: inherit; }

/* --- Product Sidebar ----------------------------------- */
.product-sidebar-wrap { padding-top: 0; }

/* Trust List */
.trust-list { display: flex; flex-direction: column; gap: 14px; }
.trust-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.trust-icon {
  width: 34px; height: 34px;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-icon svg {
  width: 16px; height: 16px;
  stroke: var(--gold); fill: none;
  stroke-width: 1.8; stroke-linecap: round;
}
.trust-item strong { display: block; font-size: 0.82rem; color: var(--text-primary); margin-bottom: 2px; }
.trust-item p { font-size: 0.73rem; color: var(--text-muted); margin: 0; line-height: 1.4; }

/* Price Summary */
.price-summary-rows { display: flex; flex-direction: column; gap: 0; }
.price-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-secondary);
  gap: 12px;
}
.price-summary-row:last-child { border-bottom: none; }
.price-summary-row > span:first-child { color: var(--text-muted); flex-shrink: 0; }
.price-summary-row > span:last-child { text-align: right; font-size: 0.78rem; }
.total-row { padding-top: 14px; }
.total-row > span:first-child { font-weight: 600; font-size: 0.88rem; color: var(--text-primary); }
.summary-price {
  font-family: var(--font-display);
  font-size: 1.3rem !important;
  color: var(--gold) !important;
  font-weight: 600;
}
.summary-price .woocommerce-Price-amount { color: inherit; font-size: inherit; }

/* WooCommerce comments / reviews */
#reviews { font-size: 0.9rem; }
#reviews h2 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 20px; }
.woocommerce-Reviews-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-primary); margin-bottom: 16px; }
.comment-list { list-style: none; }
.comment-list li { padding: 20px 0; border-bottom: 1px solid var(--border); }
.comment-list .star-rating { color: var(--gold); margin-bottom: 8px; }
.comment-list p { color: var(--text-secondary); font-size: 0.88rem; }

/* Responsive product page */
@media (max-width: 900px) {
  .product-hero { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery-col { position: static; }
  .related-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .related-products-grid { grid-template-columns: 1fr; }
  .product-digital-features { grid-template-columns: 1fr; }
  .product-tabs-nav { overflow-x: auto; }
  .product-tab-btn { white-space: nowrap; }
}

/* ============================================================
   EMPTY STATES
   ============================================================ */
.no-posts {
  text-align: center;
  padding: 80px 24px;
}
.no-posts h2 { font-size: 1.8rem; margin-bottom: 12px; }
.no-posts p { color: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .content-sidebar-wrap { grid-template-columns: 1fr 260px; gap: 32px; }
  .main-content-area .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .single-sidebar-wrap { padding: 32px 0 60px; }
  .site-sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --gap: 20px; }
  .posts-grid { grid-template-columns: 1fr; }
  .main-content-area .posts-grid { grid-template-columns: 1fr; }
  #primary-navigation { display: none; }
  #primary-navigation.open { display: flex; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bg-surface); border-bottom: 1px solid var(--border); padding: 16px; z-index: 99; }
  .primary-nav-list { flex-direction: column; align-items: flex-start; width: 100%; }
  .menu-toggle { display: flex; }
  .header-favorites-btn { display: none; }
  .post-navigation { grid-template-columns: 1fr; }
  .nav-post-card.nav-next { text-align: left; }
  .nav-post-card.nav-next .nav-direction { justify-content: flex-start; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .single-feature-image-wrap img { height: 240px; }
  #masthead .container { gap: 12px; }
}

@media (max-width: 480px) {
  .header-actions .btn-primary-header { display: none; }
  .theme-toggle { display: none; }
  .header-actions { gap: 6px; }
  .header-search-btn, .header-cart-btn { width: 32px; height: 32px; }
  #masthead .container { gap: 8px; padding: 0 12px; }
  .age-gate-box { padding: 36px 28px; }
  .age-gate-actions { flex-direction: column; }
}

/* ============================================================
   HEADER PROFILE BUTTON
   ============================================================ */
.header-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1.5px solid var(--border-light);
  border-radius: 50%;
  overflow: hidden;
  transition: border-color var(--transition-fast);
  flex-shrink: 0;
}
.header-profile-btn:hover { border-color: var(--gold); }
.header-avatar {
  width: 32px !important; height: 32px !important;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   SHOP TOOLBAR (product archive ordering/count)
   ============================================================ */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  gap: 12px;
  flex-wrap: wrap;
}
.shop-results-count {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.shop-results-count p { margin: 0; color: inherit; font-size: inherit; }
.shop-ordering select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 6px 10px;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
}
.shop-ordering select:focus { border-color: var(--gold-dim); }

/* Product Card Price */
.product-card-price {
  font-family: var(--font-label);
  font-size: 0.9rem;
  color: var(--gold);
  margin-top: 4px;
}
.product-card-price .woocommerce-Price-amount { color: inherit; }
.product-card-price del { color: var(--text-muted); font-size: 0.78rem; margin-right: 4px; }
.product-card-price ins { text-decoration: none; }

/* WooCommerce product archive overrides
   Column count is controlled by velvet_shop_grid_columns_css() in functions.php.
   The hardcoded repeat(2,1fr) here is only a safe fallback for very wide screens
   without the customizer CSS (e.g. cached/no-js). The !important in functions.php
   output always wins at runtime. */
.woo-products-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1200px) {
  .content-sidebar-wrap .woo-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .woo-products-grid { grid-template-columns: repeat(2, 1fr); }
  .header-favorites-btn { display: none; }
}
@media (max-width: 480px) {
  .woo-products-grid { grid-template-columns: 1fr; }
}

/* ---- Velvet Product Card extras ---- */

/* Sale badge — top-right corner of thumb */
.velvet-sale-badge {
  position: absolute;
  top: 10px; right: 10px;
  padding: 3px 10px;
  background: var(--crimson, #c02030);
  border-radius: 20px;
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
  z-index: 2;
}
/* Push fav button left when sale badge is visible */
.velvet-product-card .favorite-btn { right: 10px; }
.velvet-product-card.sale .favorite-btn { right: 10px; top: 44px; }

/* Price + stock row */
.velvet-card-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.velvet-out-of-stock {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Add to Cart button */
.velvet-add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: auto;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--gold, #c8922a) 0%, var(--gold-dim, #6b4a10) 100%);
  color: var(--bg-deep, #08070a);
  border: none;
  border-radius: var(--radius-sm, 6px);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast, 0.15s ease);
  width: 100%;
}
.velvet-add-to-cart-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold, 0 4px 20px rgba(200,146,42,0.35));
  color: var(--bg-deep, #08070a);
  text-decoration: none;
}
.velvet-add-to-cart-btn.added {
  background: var(--bg-elevated);
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}
.velvet-disabled-btn {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.velvet-select-options-btn {
  background: var(--bg-elevated);
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}
.velvet-select-options-btn:hover {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
}

/* ============================================================
   ORDERS PAGE & VIEW ORDER PAGE
   All colors use CSS variables — controlled by Customizer theme
   ============================================================ */

/* Layout */
.vo-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
  padding-top: 32px;
}
@media (max-width: 960px) { .vo-layout { grid-template-columns: 1fr; } }
.vo-sidebar, .vov-sidebar { position: sticky; top: calc(var(--header-h, 72px) + 20px); }

/* Section header */
.vo-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.vo-count {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Order list */
.vo-list { display: flex; flex-direction: column; gap: 10px; }

.vo-row {
  display: grid;
  grid-template-columns: 4px 1fr auto;
  align-items: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.12));
  transition: border-color var(--transition), box-shadow var(--transition);
}
.vo-row:hover {
  border-color: var(--gold-dim);
  box-shadow: var(--shadow-hover);
}

/* Left accent bar — uses semantic message CSS variables */
.vo-row-accent { align-self: stretch; background: var(--msg-neutral); flex-shrink: 0; }
.vo-row.st-completed      .vo-row-accent { background: var(--msg-success); }
.vo-row.st-processing     .vo-row-accent { background: var(--msg-info); }
.vo-row.st-on-hold        .vo-row-accent,
.vo-row.st-pending        .vo-row-accent { background: var(--msg-warning); }
.vo-row.st-failed         .vo-row-accent { background: var(--msg-error); }
.vo-row.st-cancelled      .vo-row-accent,
.vo-row.st-refunded       .vo-row-accent,
.vo-row.st-checkout-draft .vo-row-accent,
.vo-row.st-draft          .vo-row-accent { background: var(--msg-neutral); }

/* Row body */
.vo-row-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vo-row-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.vo-order-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.vo-order-num:hover { color: var(--gold); }

/* Status pill */
.vo-pill, .vov-pill {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--msg-neutral);
  background: var(--msg-neutral-bg);
  color: var(--msg-neutral-text);
}
/* Order status pill — uses semantic message CSS variables */
.vo-row.st-completed  .vo-pill, .vov-pill.st-completed  {
  color: var(--msg-success-text); border-color: var(--msg-success); background: var(--msg-success-bg); }
.vo-row.st-processing .vo-pill, .vov-pill.st-processing {
  color: var(--msg-info-text);    border-color: var(--msg-info);    background: var(--msg-info-bg); }
.vo-row.st-on-hold    .vo-pill, .vov-pill.st-on-hold,
.vo-row.st-pending    .vo-pill, .vov-pill.st-pending {
  color: var(--msg-warning-text); border-color: var(--msg-warning); background: var(--msg-warning-bg); }
.vo-row.st-failed     .vo-pill, .vov-pill.st-failed {
  color: var(--msg-error-text);   border-color: var(--msg-error);   background: var(--msg-error-bg); }
.vo-row.st-cancelled  .vo-pill, .vov-pill.st-cancelled,
.vo-row.st-refunded   .vo-pill, .vov-pill.st-refunded,
.vo-row.st-checkout-draft .vo-pill, .vov-pill.st-draft,
.vo-row.st-draft      .vo-pill {
  color: var(--msg-neutral-text); border-color: var(--msg-neutral); background: var(--msg-neutral-bg); }

/* Meta chips */
.vo-row-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.vo-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: var(--text-muted);
}
.vo-meta-chip svg { width:12px !important; height:12px !important; max-width:12px !important; max-height:12px !important; flex-shrink:0; display:block; }

/* Row right: total + buttons */
.vo-row-right { padding: 16px 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.vo-total { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.vo-actions, .vov-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* Buttons */
.vo-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.vo-btn svg { width:11px !important; height:11px !important; max-width:11px !important; max-height:11px !important; stroke:currentColor; fill:none; stroke-width:2.2; stroke-linecap:round; flex-shrink:0; display:block; }
.vo-btn-view {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.vo-btn-view:hover { border-color: var(--gold-dim); color: var(--gold); }
.vo-btn-pay {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  border: 1px solid transparent;
  color: var(--bg-deep);
}
.vo-btn-pay:hover { box-shadow: var(--shadow-gold); transform: translateY(-1px); color: var(--bg-deep); }

/* Empty state */
.vo-empty { text-align: center; padding: 72px 24px; }
.vo-empty-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.vo-empty-icon svg { width: 26px !important; height: 26px !important; max-width:26px !important; stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; display:block; }
.vo-empty h2 { font-family: var(--font-display); font-size: 1.6rem; font-style: italic; margin-bottom: 10px; color: var(--text-primary); }
.vo-empty p { color: var(--text-muted); margin-bottom: 24px; font-size: 0.9rem; }

@media (max-width: 560px) {
  .vo-row { grid-template-columns: 4px 1fr; grid-template-rows: auto auto; }
  .vo-row-right { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 0; }
}

/* ---- View Order specific ---- */
.vov-main { min-width: 0; }

.vov-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 24px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.vov-back:hover { color: var(--gold); }
.vov-back svg { width: 14px !important; height: 14px !important; max-width:14px !important; display:block; }

.vov-header-card {
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm, 0 1px 4px rgba(0,0,0,0.12));
}
.vov-order-id { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; font-style: italic; color: var(--text-primary); }
.vov-header-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vov-date { font-family: var(--font-body); font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* Section cards */
.vov-card { border-radius: var(--radius-md); margin-bottom: 16px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); }
.vov-card-head { padding: 13px 22px; border-bottom: 1px solid var(--border); background: var(--bg-elevated); }
.vov-card-title { font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

/* Items table */
.vov-items { width: 100%; border-collapse: collapse; }
.vov-items th {
  padding: 11px 22px;
  text-align: left;
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.vov-items td { padding: 14px 22px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.vov-items tr:last-child td { border-bottom: none; }
.vov-item-name { font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; color: var(--text-primary); display: block; }
.vov-item-meta { font-size: 0.76rem; color: var(--text-muted); margin-top: 3px; display: block; }
.vov-item-qty { font-family: var(--font-label); font-size: 0.82rem; color: var(--text-muted); text-align: center; }
.vov-item-price { font-family: var(--font-display); font-size: 0.92rem; color: var(--text-primary); text-align: right; white-space: nowrap; }

/* Totals */
.vov-totals { width: 100%; border-collapse: collapse; }
.vov-totals tr td { padding: 10px 22px; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.vov-totals tr:last-child td { border-bottom: none; }
.vov-totals .label { color: var(--text-muted); }
.vov-totals .value { text-align: right; color: var(--text-primary); font-family: var(--font-display); font-size: 0.9rem; }
.vov-totals .total-row td { font-weight: 700; font-size: 1rem; }
.vov-totals .total-row .value { color: var(--gold); font-size: 1.05rem; }

/* Addresses */
.vov-address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 22px; }
@media (max-width: 560px) { .vov-address-grid { grid-template-columns: 1fr; } }
.vov-address-label { font-family: var(--font-label); font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; display: block; }
.vov-address-text { font-size: 0.85rem; line-height: 1.7; color: var(--text-secondary); font-style: normal; }

/* Notes */
.vov-notes { padding: 18px 22px; font-size: 0.85rem; line-height: 1.7; color: var(--text-secondary); }

/* Actions row */
.vov-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* ============================================================
   FAVORITES PAGE
   ============================================================ */
.favorites-login-prompt {
  text-align: center;
  padding: 80px 24px;
  max-width: 480px;
  margin: 0 auto;
}
.favorites-empty-icon {
  width: 72px; height: 72px;
  margin: 0 auto 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.favorites-empty-icon svg {
  width: 30px; height: 30px;
  stroke: var(--gold-dim); fill: none;
  stroke-width: 1.5; stroke-linecap: round;
}
.favorites-login-prompt h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.favorites-login-prompt p { color: var(--text-muted); margin-bottom: 28px; }

/* ============================================================
   ORDERS PAGE -- card layout
   ============================================================ */

/* Shared empty / login state */
.velvet-empty-state {
  text-align: center;
  padding: 80px 24px;
  max-width: 480px;
  margin: 0 auto;
}
.velvet-empty-icon {
  width: 72px; height: 72px;
  margin: 0 auto 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.velvet-empty-icon svg {
  width: 30px; height: 30px;
  stroke: var(--gold-dim); fill: none;
  stroke-width: 1.5; stroke-linecap: round;
}
.velvet-empty-title {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.velvet-empty-text { color: var(--text-muted); margin-bottom: 28px; }

/* Count header */
.orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.orders-count {
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Order card list */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
}

.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.order-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-card);
}

/* Left side */
.order-card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.order-card-id {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.order-card-number {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.order-card-number:hover { color: var(--gold); }

/* Status badge */
.order-card-badge {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid;
}
.order-card-badge.status-completed  { background: rgba(34,197,94,0.1);   border-color: rgba(34,197,94,0.3);   color: #4ade80; }
.order-card-badge.status-processing { background: rgba(59,130,246,0.1);  border-color: rgba(59,130,246,0.3);  color: #60a5fa; }
.order-card-badge.status-on-hold    { background: rgba(200,146,42,0.1);  border-color: var(--gold-dim);       color: var(--gold); }
.order-card-badge.status-pending    { background: rgba(200,146,42,0.1);  border-color: var(--gold-dim);       color: var(--gold); }
.order-card-badge.status-cancelled  { background: rgba(107,114,128,0.1); border-color: rgba(107,114,128,0.3); color: #9ca3af; }
.order-card-badge.status-refunded   { background: rgba(107,114,128,0.1); border-color: rgba(107,114,128,0.3); color: #9ca3af; }
.order-card-badge.status-failed     { background: rgba(239,68,68,0.1);   border-color: rgba(239,68,68,0.3);   color: #f87171; }
.order-card-badge.status-draft      { background: rgba(107,114,128,0.08);border-color: rgba(107,114,128,0.2); color: var(--text-muted); }

/* Meta row */
.order-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.order-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}
/* Hard-cap every SVG inside meta -- never let them grow */
.order-card-meta-item svg,
.order-card-actions svg {
  width: 13px !important;
  height: 13px !important;
  min-width: 13px;
  min-height: 13px;
  max-width: 13px;
  max-height: 13px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}
.order-card-product {
  color: var(--text-secondary);
}

/* Right side */
.order-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.order-card-total {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  white-space: nowrap;
}
.order-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.order-btn-view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.order-btn-view:hover { border-color: var(--gold-dim); color: var(--gold); }
.order-btn-pay {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg-deep);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.order-btn-pay:hover { box-shadow: var(--shadow-gold); color: var(--bg-deep); transform: translateY(-1px); }

@media (max-width: 600px) {
  .order-card { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px; }
  .order-card-right { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
}



.btn-gold {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  margin: 6px;
}
.btn-gold:hover { box-shadow: var(--shadow-gold); transform: translateY(-1px); color: var(--bg-deep); }

.btn-outline {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  margin: 6px;
}
.btn-outline:hover { border-color: var(--gold-dim); color: var(--gold); }

/* Favorites filter tabs */
.favorites-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.fav-filter-btn {
  padding: 7px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.fav-filter-btn:hover { border-color: var(--gold-dim); color: var(--gold); }
.fav-filter-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  border-color: transparent;
  color: var(--bg-deep);
  font-weight: 700;
}
.fav-item { display: contents; }

/* ============================================================
   USER PROFILE PAGE
   ============================================================ */
.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 48px 0 80px;
  align-items: start;
}

/* Profile Sidebar */
.profile-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.profile-avatar-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
}
.profile-avatar-wrap {
  width: 80px; height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold-dim);
}
.profile-avatar-img {
  width: 80px; height: 80px;
  object-fit: cover;
  display: block;
}
.profile-display-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.profile-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.profile-member-since {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}
.profile-stats {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 0;
}
.profile-stat {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-right: 1px solid var(--border);
}
.profile-stat:last-child { border-right: none; }
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.profile-nav-links {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.profile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-fast);
}
.profile-nav-link:last-child { border-bottom: none; }
.profile-nav-link svg {
  width: 15px; height: 15px;
  stroke: var(--text-muted); fill: none;
  stroke-width: 1.8; stroke-linecap: round;
  flex-shrink: 0;
  transition: stroke var(--transition-fast);
}
.profile-nav-link:hover { color: var(--gold); background: rgba(201,168,76,0.05); }
.profile-nav-link:hover svg { stroke: var(--gold); }
.profile-nav-link--danger:hover { color: var(--crimson-light); background: rgba(155,35,53,0.05); }
.profile-nav-link--danger:hover svg { stroke: var(--crimson-light); }

/* Profile Form Area */
.profile-form-area {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.profile-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.profile-notice svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
  flex-shrink: 0;
}
.profile-notice--success {
  background: rgba(46,160,67,0.1);
  border: 1px solid rgba(46,160,67,0.3);
  color: #3fb950;
}
.profile-notice--error {
  background: rgba(155,35,53,0.1);
  border: 1px solid rgba(155,35,53,0.3);
  color: var(--crimson-light);
}
.profile-form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.profile-section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.profile-section-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  margin-top: 6px;
}
.profile-avatar-upload {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
}
.profile-avatar-preview {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.profile-avatar-upload-info p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 8px 0 0;
}
.profile-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.profile-field { display: flex; flex-direction: column; gap: 6px; }
.profile-field--full { grid-column: 1 / -1; }
.profile-field label {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.profile-field input,
.profile-field textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
  outline: none;
  width: 100%;
}
.profile-field input:focus,
.profile-field textarea:focus { border-color: var(--gold-dim); }
.profile-field textarea { resize: vertical; min-height: 90px; }
.profile-form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

@media (max-width: 860px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
}
@media (max-width: 480px) {
  .profile-fields-grid { grid-template-columns: 1fr; }
  .profile-field--full { grid-column: auto; }
}

/* ============================================================
   PRODUCT TAG & CATEGORY ARCHIVE (WooCommerce taxonomy)
   ============================================================ */
.taxonomy-product_cat .page-hero-eyebrow::before,
.taxonomy-product_tag .page-hero-eyebrow::before {
  content: '';
}

/* ============================================================
   WooCommerce Products Widget — reset .product-title size
   The theme's .product-title rule (scoped to .product-info-col)
   no longer bleeds here, but WC's own woocommerce.css gives
   .product_list_widget .product-title font-weight:700. We reset
   size/style explicitly so it matches normal sidebar link sizing.
   ============================================================ */
.widget ul.product_list_widget li a .product-title,
.widget ul.product_list_widget .product-title {
  font-family: var(--font-body) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  font-style: normal !important;
  line-height: 1.4 !important;
  color: var(--text-primary) !important;
  margin: 0 !important;
}
.widget ul.product_list_widget li a:hover .product-title {
  color: var(--gold) !important;
}
.widget ul.product_list_widget li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.widget ul.product_list_widget li:last-child { border-bottom: none; }
.widget ul.product_list_widget li img {
  width: 56px !important;
  height: 56px !important;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.widget ul.product_list_widget li a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}
.widget ul.product_list_widget .woocommerce-Price-amount {
  font-size: 0.82rem;
  color: var(--gold);
  font-family: var(--font-label);
}
.widget ul.product_list_widget del .woocommerce-Price-amount {
  color: var(--text-muted);
}

/* ============================================================
   SEMANTIC MESSAGE / NOTICE COLORS
   All colors driven by CSS variables set in Customize →
   Message & Status Colors. Works in dark + light mode.
   Covers: WooCommerce notices, WordPress alerts, custom notices.
   ============================================================ */

/* -- Base notice structure ---------------------------------- */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info,
.velvet-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 16px;
  list-style: none;
}

/* WooCommerce removes list bullets but keeps <ul> — normalise */
.woocommerce-error { padding-left: 18px; }
.woocommerce-error li { margin: 0; }

/* -- Success ------------------------------------------------ */
.woocommerce-message,
.velvet-notice-success {
  background: var(--msg-success-bg);
  border-color:  var(--msg-success);
  color:         var(--msg-success-text);
}
/* Override WooCommerce's hardcoded green border-top */
.woocommerce-message { border-top-color: var(--msg-success) !important; }
.woocommerce-message::before { color: var(--msg-success) !important; }

/* -- Error -------------------------------------------------- */
.woocommerce-error,
.velvet-notice-error {
  background: var(--msg-error-bg);
  border-color:  var(--msg-error);
  color:         var(--msg-error-text);
}
.woocommerce-error { border-top-color: var(--msg-error) !important; }
.woocommerce-error::before { color: var(--msg-error) !important; }

/* -- Info / Notice ------------------------------------------ */
.woocommerce-info,
.velvet-notice-info {
  background: var(--msg-info-bg);
  border-color:  var(--msg-info);
  color:         var(--msg-info-text);
}
.woocommerce-info { border-top-color: var(--msg-info) !important; }
.woocommerce-info::before { color: var(--msg-info) !important; }

/* -- Warning ------------------------------------------------ */
.velvet-notice-warning {
  background: var(--msg-warning-bg);
  border-color:  var(--msg-warning);
  color:         var(--msg-warning-text);
}

/* -- Neutral ------------------------------------------------ */
.velvet-notice-neutral {
  background: var(--msg-neutral-bg);
  border-color:  var(--msg-neutral);
  color:         var(--msg-neutral-text);
}

/* Links inside notices */
.woocommerce-message a,
.woocommerce-error a,
.woocommerce-info a,
.velvet-notice a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

/* Buttons inside WooCommerce notices */
.woocommerce-message .button,
.woocommerce-error .button,
.woocommerce-info .button {
  background: transparent !important;
  border: 1px solid currentColor !important;
  color: inherit !important;
  font-size: 0.75rem !important;
  padding: 4px 12px !important;
  border-radius: var(--radius-sm) !important;
  margin-left: auto;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.woocommerce-message .button:hover,
.woocommerce-error .button:hover,
.woocommerce-info .button:hover {
  opacity: 0.8;
}

/* ============================================================
   WooCommerce search form overrides
   ============================================================ */
.woocommerce-product-search {
  display: flex;
  gap: 8px;
  align-items: center;
}
.woocommerce-product-search input[type="search"] {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast);
}
.woocommerce-product-search input[type="search"]:focus { border-color: var(--gold-dim); }
.woocommerce-product-search button[type="submit"] {
  padding: 9px 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--bg-deep);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow var(--transition-fast);
}
.woocommerce-product-search button[type="submit"]:hover { box-shadow: var(--shadow-gold); }

/* ============================================================
   LIGHT MODE ADDITIONS FOR NEW COMPONENTS
   ============================================================ */
[data-theme="light"] .shop-toolbar { background: var(--bg-card); }
[data-theme="light"] .shop-ordering select { background: var(--bg-elevated); color: var(--text-secondary); }
[data-theme="light"] .profile-field input,
[data-theme="light"] .profile-field textarea { background: var(--bg-elevated); color: var(--text-primary); }
[data-theme="light"] .fav-filter-btn { background: var(--bg-elevated); }
[data-theme="light"] .age-gate-overlay { background: rgba(230,226,220,0.97); }
[data-theme="light"] .search-overlay { background: rgba(230,226,220,0.97); }


/* ============================================================

/* ============================================================
   INDEX HERO -- big centered post count
   ============================================================ */
.index-hero {
  padding: 32px 0 28px;
  text-align: center;
  position: relative;
  background: var(--bg-deep);
  overflow: hidden;
}
.index-hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 400px; height: 160px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.index-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}
.index-hero-count {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.index-hero-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(201,168,76,0.25);
}
.index-hero-label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
}
[data-theme="light"] .index-hero {
  background: var(--bg-elevated);
}
[data-theme="light"] .index-hero::before {
  background: radial-gradient(ellipse, rgba(154,111,30,0.08) 0%, transparent 70%);
}
[data-theme="light"] .index-hero-number {
  text-shadow: 0 0 30px rgba(154,111,30,0.15);
}

/* ============================================================
   INDEX FILTER BAR -- category pills below hero
   ============================================================ */
.index-filter-bar {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
.index-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.index-pill {
  display: inline-block;
  padding: 6px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.index-pill:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}
.index-pill--active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  border-color: transparent;
  color: var(--bg-deep) !important;
  font-weight: 700;
}
[data-theme="light"] .index-filter-bar { background: var(--bg-surface); }
[data-theme="light"] .index-pill        { background: var(--bg-card); }
[data-theme="light"] .index-pill--active { color: #fff !important; }

@media (max-width: 480px) {
  .index-hero         { padding: 24px 0 20px; }
  .index-hero-number  { font-size: 3rem; }
}

/* ============================================================
   FAVORITES PAGE -- login prompt, filter tabs
   ============================================================ */
.favorites-login-prompt {
  text-align: center;
  padding: 80px 24px;
  max-width: 480px;
  margin: 0 auto;
}
.favorites-empty-icon {
  width: 72px; height: 72px;
  margin: 0 auto 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.favorites-empty-icon svg {
  width: 30px; height: 30px;
  stroke: var(--gold-dim); fill: none;
  stroke-width: 1.5; stroke-linecap: round;
}
.favorites-login-prompt h2 { font-size: 1.8rem; margin-bottom: 12px; }
.favorites-login-prompt p  { color: var(--text-muted); margin-bottom: 28px; }

.btn-gold {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  margin: 6px;
}
.btn-gold:hover { box-shadow: var(--shadow-gold); transform: translateY(-1px); color: var(--bg-deep); }

.btn-outline {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  margin: 6px;
}
.btn-outline:hover { border-color: var(--gold-dim); color: var(--gold); }

.fav-item { display: contents; }

/* ============================================================
   SHOP TOOLBAR
   ============================================================ */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  gap: 12px;
  flex-wrap: wrap;
}
.shop-results-count {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.shop-results-count p { margin: 0; color: inherit; font-size: inherit; }
.shop-ordering select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 6px 10px;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
}
.shop-ordering select:focus { border-color: var(--gold-dim); }
[data-theme="light"] .shop-toolbar   { background: var(--bg-card); }
[data-theme="light"] .shop-ordering select { background: var(--bg-elevated); color: var(--text-secondary); }

/* Product card price */
.product-card-price { font-family: var(--font-label); font-size: 0.9rem; color: var(--gold); margin-top: 4px; }
.product-card-price .woocommerce-Price-amount { color: inherit; }
.product-card-price del { color: var(--text-muted); font-size: 0.78rem; margin-right: 4px; }
.product-card-price ins { text-decoration: none; }

/* ============================================================
   WooCommerce search form
   ============================================================ */
.woocommerce-product-search { display: flex; gap: 8px; align-items: center; }
.woocommerce-product-search input[type="search"] {
  flex: 1;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 12px;
  color: var(--text-primary); font-family: var(--font-body); font-size: 0.85rem;
  outline: none; transition: border-color var(--transition-fast);
}
.woocommerce-product-search input[type="search"]:focus { border-color: var(--gold-dim); }
.woocommerce-product-search button[type="submit"] {
  padding: 9px 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--bg-deep); border: none; border-radius: var(--radius-sm);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: box-shadow var(--transition-fast);
}
.woocommerce-product-search button[type="submit"]:hover { box-shadow: var(--shadow-gold); }

/* ============================================================
   USER PROFILE PAGE
   ============================================================ */
.header-profile-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1.5px solid var(--border-light); border-radius: 50%; overflow: hidden;
  transition: border-color var(--transition-fast); flex-shrink: 0;
}
.header-profile-btn:hover { border-color: var(--gold); }
.header-avatar { width: 32px !important; height: 32px !important; border-radius: 50%; object-fit: cover; display: block; }

.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 48px 0 80px;
  align-items: start;
}
.profile-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex; flex-direction: column; gap: 20px;
}
.profile-avatar-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 20px; text-align: center;
}
.profile-avatar-wrap {
  width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 50%;
  overflow: hidden; border: 3px solid var(--gold-dim);
}
.profile-avatar-img { width: 80px; height: 80px; object-fit: cover; display: block; }
.profile-display-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 4px; }
.profile-email { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.profile-member-since { font-family: var(--font-label); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin: 0; }

.profile-stats {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px; display: flex; gap: 0;
}
.profile-stat { flex: 1; text-align: center; padding: 8px; border-right: 1px solid var(--border); }
.profile-stat:last-child { border-right: none; }
.stat-number { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--gold); line-height: 1; margin-bottom: 4px; }
.stat-label  { font-family: var(--font-label); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }

.profile-nav-links { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.profile-nav-link {
  display: flex; align-items: center; gap: 10px; padding: 13px 18px;
  color: var(--text-secondary); font-size: 0.85rem; font-weight: 500;
  border-bottom: 1px solid var(--border); transition: all var(--transition-fast);
}
.profile-nav-link:last-child { border-bottom: none; }
.profile-nav-link svg { width: 15px; height: 15px; stroke: var(--text-muted); fill: none; stroke-width: 1.8; stroke-linecap: round; flex-shrink: 0; transition: stroke var(--transition-fast); }
.profile-nav-link:hover { color: var(--gold); background: rgba(201,168,76,0.05); }
.profile-nav-link:hover svg { stroke: var(--gold); }
.profile-nav-link--danger:hover { color: var(--crimson-light); background: rgba(155,35,53,0.05); }
.profile-nav-link--danger:hover svg { stroke: var(--crimson-light); }

.profile-form-area { display: flex; flex-direction: column; gap: 24px; }
.profile-notice { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: var(--radius-sm); font-size: 0.85rem; }
.profile-notice svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.profile-notice--success { background: rgba(46,160,67,0.1); border: 1px solid rgba(46,160,67,0.3); color: #3fb950; }
.profile-notice--error   { background: rgba(155,35,53,0.1);  border: 1px solid rgba(155,35,53,0.3);  color: var(--crimson-light); }

.profile-form-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.profile-section-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.profile-section-hint  { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 18px; margin-top: 6px; }

.profile-avatar-upload { display: flex; align-items: center; gap: 20px; margin-top: 14px; }
.profile-avatar-preview { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.profile-avatar-upload-info p { font-size: 0.72rem; color: var(--text-muted); margin: 8px 0 0; }

.profile-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.profile-field { display: flex; flex-direction: column; gap: 6px; }
.profile-field--full { grid-column: 1 / -1; }
.profile-field label { font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.profile-field input,
.profile-field textarea {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 13px; font-family: var(--font-body); font-size: 0.9rem; color: var(--text-primary);
  transition: border-color var(--transition-fast); outline: none; width: 100%;
}
.profile-field input:focus,
.profile-field textarea:focus { border-color: var(--gold-dim); }
.profile-field textarea { resize: vertical; min-height: 90px; }
.profile-form-actions { display: flex; justify-content: flex-end; padding-top: 8px; }

[data-theme="light"] .profile-field input,
[data-theme="light"] .profile-field textarea { background: var(--bg-elevated); color: var(--text-primary); }

/* ============================================================
   RESPONSIVE ADDITIONS
   ============================================================ */
@media (max-width: 1200px) {
  .content-sidebar-wrap { grid-template-columns: 1fr 260px; gap: 32px; }
  .main-content-area .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .site-sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .product-hero { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery-col { position: static; }
  .related-products-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
}
@media (max-width: 768px) {
  :root { --gap: 20px; }
  .posts-grid { grid-template-columns: 1fr; }
  .main-content-area .posts-grid { grid-template-columns: 1fr; }
  .woo-products-grid { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .nav-post-card.nav-next { text-align: left; }
  .nav-post-card.nav-next .nav-direction { justify-content: flex-start; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .single-feature-image-wrap img { height: 240px; }
  .profile-fields-grid { grid-template-columns: 1fr; }
  #masthead .container { gap: 12px; }
  .header-favorites-btn { display: none; }
}
@media (max-width: 600px) {
  .related-products-grid { grid-template-columns: 1fr; }
  .product-digital-features { grid-template-columns: 1fr; }
  .product-tabs-nav { overflow-x: auto; }
  .product-tab-btn { white-space: nowrap; }
}
@media (max-width: 480px) {
  .header-actions .btn-primary-header { display: none; }
  .theme-toggle { display: none; }
  .header-actions { gap: 6px; }
  .header-search-btn, .header-cart-btn { width: 32px; height: 32px; }
  #masthead .container { gap: 8px; padding: 0 12px; }
  .age-gate-box { padding: 36px 28px; }
  .age-gate-actions { flex-direction: column; }
  .index-hero-number { font-size: 5.5rem; }
}

/* ============================================================
   ORDER CARDS -- light mode visibility fixes
   In light mode --bg-card (#faf8f4) is nearly identical to
   --bg-deep (#f7f3ee), making cards invisible. Override with
   pure white cards and a stronger border so they stand out.
   ============================================================ */
[data-theme="light"] .order-card {
  background: #ffffff;
  border-color: #c8bfb0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
[data-theme="light"] .order-card:hover {
  border-color: #a8977e;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
[data-theme="light"] .order-btn-view {
  background: #f5f0e8;
  border-color: #c8bfb0;
}
[data-theme="light"] .order-btn-view:hover {
  background: #ece6da;
  border-color: var(--gold);
}
[data-theme="light"] .orders-header {
  border-bottom-color: #c8bfb0;
}
/* ── PAGE SHIFT: push everything right of the panel ─────────────
   The body classes vup-is-collapsed / vup-is-expanded are set
   server-side (PHP default) and updated instantly client-side
   (JS reads localStorage before first paint).
   ─────────────────────────────────────────────────────────────── */
body.vup-is-collapsed {
    padding-left: 64px;
}
body.vup-is-expanded {
    padding-left: 240px;
}

/* Smooth transition for content shift */
body.has-user-panel {
    transition: padding-left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── HEADER stays full-width (it's inside the padded body) ──────
   Nothing needed — masthead is inside #page which is inside body,
   so it automatically shifts with the padding.
   ─────────────────────────────────────────────────────────────── */

/* ── MOBILE: no body shift (panel is overlay) ───────────────────── */
@media (max-width: 1024px) {
    body.vup-is-collapsed,
    body.vup-is-expanded {
        padding-left: 0 !important;
    }
}

/* ── ADMIN BAR + PANEL: offset the panel top ────────────────────── */
/* Handled inside user-panel.css already via .admin-bar .velvet-user-panel */

/* ── Light theme tweaks for the panel ──────────────────────────── */
[data-theme="light"] .velvet-user-panel {
    background: var(--bg-surface);
    border-right-color: var(--border);
}
[data-theme="light"] .vup-nav-item:hover,
[data-theme="light"] .vup-nav-item--active {
    background: rgba(200, 146, 42, 0.08);
}
[data-theme="light"] .vup-avatar-badge,
[data-theme="light"] .vup-item-badge,
[data-theme="light"] .vup-trigger-badge {
    border-color: var(--bg-surface);
}

/* ── PRINT ──────────────────────────────────────────────────────── */
@media print {
    body.vup-is-collapsed,
    body.vup-is-expanded { padding-left: 0 !important; }
}
