/*
Theme Name: CoreVibe
Theme URI: https://corevibe.com
Author: CoreVibe Team
Author URI: https://corevibe.com
Description: CoreVibe - Premium wellness brand. The Original 8-Energy System for Everyday Emotional Balance.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: corevibe
Tags: wellness, healing, minimal, luxury, premium
*/

/* ========================================
   CoreVibe - 2026 Luxury Minimalism
   Design System
   ======================================== */

/* ========================================
   Guest Checkout Notice Styles
   ======================================== */
.cv-checkout-guest-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: var(--cv-bg-alt);
    border: 1px solid var(--cv-border);
    border-radius: 12px;
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
    justify-content: center;
}

.cv-checkout-guest-notice span {
    color: var(--cv-text-secondary);
}

.cv-checkout-guest-notice a {
    color: var(--cv-accent);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cv-checkout-guest-notice a:hover {
    color: var(--cv-accent-dark);
}

.cv-checkout-guest-tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(184, 149, 110, 0.08);
    border: 1px solid rgba(184, 149, 110, 0.25);
    border-radius: 10px;
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
    margin-bottom: 1.25rem;
    justify-content: center;
}

.cv-checkout-guest-tip svg {
    flex-shrink: 0;
    color: var(--cv-accent);
}

.cv-checkout-guest-tip a {
    color: var(--cv-accent);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cv-checkout-guest-tip a:hover {
    color: var(--cv-accent-dark);
}

/* ========================================
   Guest Register Prompt (thankyou page)
   ======================================== */
.cv-guest-register-prompt {
    background: var(--cv-bg-alt);
    border: 1px solid var(--cv-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.cv-guest-register-prompt h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
}

.cv-guest-register-prompt p {
    color: var(--cv-text-secondary);
    font-size: 0.9375rem;
    max-width: 420px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Track Order Page Styles
   ======================================== */
.cv-track-page {
    padding: var(--space-xl) 0 var(--space-3xl);
    min-height: 60vh;
}

.cv-track-form-card {
    max-width: 560px;
    margin: 0 auto 3rem;
    background: var(--cv-surface);
    border: 1px solid var(--cv-border);
    border-radius: 20px;
    padding: 2.5rem;
}

.cv-track-form .cv-form-row {
    margin-bottom: 1.5rem;
}

.cv-track-form .cv-form-row:last-of-type {
    margin-bottom: 0;
}

.cv-track-form-row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 560px) {
    .cv-track-form-row--2 {
        grid-template-columns: 1fr;
    }
}

.cv-track-form .cv-form-group {
    margin-bottom: 0;
}

.cv-form-hint {
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
    margin-top: 0.375rem;
}

.cv-track-submit {
    margin-top: 1.5rem;
}

.cv-track-help {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--cv-border-light);
    font-size: 0.9375rem;
    color: var(--cv-text-secondary);
}

.cv-track-help a {
    color: var(--cv-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Track Result */
.cv-track-result {
    max-width: 680px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease-out;
}

/* Status Banner */
.cv-track-status-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.cv-track-status-banner--pending {
    background: rgba(184, 149, 110, 0.12);
    border: 1px solid rgba(184, 149, 110, 0.3);
}

.cv-track-status-banner--on-hold {
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.25);
}

.cv-track-status-banner--processing {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.cv-track-status-banner--completed {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.cv-track-status-banner--cancelled,
.cv-track-status-banner--refunded,
.cv-track-status-banner--failed {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.cv-track-status-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
}

.cv-track-status-banner--completed .cv-track-status-icon { color: #16a34a; }
.cv-track-status-banner--processing .cv-track-status-icon { color: #2563eb; }
.cv-track-status-banner--pending .cv-track-status-icon { color: var(--cv-accent); }
.cv-track-status-banner--on-hold .cv-track-status-icon { color: #64748b; }
.cv-track-status-banner--cancelled .cv-track-status-icon,
.cv-track-status-banner--refunded .cv-track-status-icon,
.cv-track-status-banner--failed .cv-track-status-icon { color: #dc2626; }

.cv-track-status-text h2 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    margin-bottom: 0.25rem;
}

.cv-track-status-text p {
    font-size: 0.9375rem;
    color: var(--cv-text-secondary);
    line-height: 1.5;
}

/* Order Info */
.cv-track-order-info {
    background: var(--cv-surface);
    border: 1px solid var(--cv-border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.25rem;
}

.cv-track-info-header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 560px) {
    .cv-track-info-header {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.cv-track-info-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.cv-track-info-value {
    font-weight: 600;
    font-size: 1rem;
}

/* Order Items */
.cv-track-items {
    background: var(--cv-surface);
    border: 1px solid var(--cv-border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.25rem;
}

.cv-track-items h3,
.cv-track-address h3 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--cv-border-light);
}

.cv-track-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--cv-border-light);
}

.cv-track-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cv-track-item-image {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--cv-bg-alt);
}

.cv-track-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv-track-item-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--cv-bg-alt), var(--cv-border-light));
}

.cv-track-item-details {
    flex: 1;
    min-width: 0;
}

.cv-track-item-details h4 {
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cv-track-item-details p {
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
}

.cv-track-item-price {
    font-weight: 600;
    font-size: 0.9375rem;
    flex-shrink: 0;
}

/* Address */
.cv-track-address {
    background: var(--cv-surface);
    border: 1px solid var(--cv-border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.25rem;
}

.cv-track-address-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    font-style: normal;
    color: var(--cv-text-secondary);
}

/* Actions */
.cv-track-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

/* Register Prompt */
.cv-track-register-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: var(--cv-bg-alt);
    border: 1px solid var(--cv-border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    flex-wrap: wrap;
}

.cv-track-register-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.cv-track-register-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--cv-surface);
    border: 1px solid var(--cv-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cv-accent);
}

.cv-track-register-text h3 {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    margin-bottom: 0.25rem;
}

.cv-track-register-text p {
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
    line-height: 1.5;
    max-width: 320px;
}

@media (max-width: 600px) {
    .cv-track-register-prompt {
        flex-direction: column;
        align-items: flex-start;
    }

    .cv-track-register-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cv-track-register-text p {
        max-width: none;
    }
}

/* ========================================
   CoreVibe - 2026 Luxury Minimalism
   Design System
   ======================================== */

:root {
    /* Color Palette - Warm Luxury Neutrals */
    --cv-bg: #FDFBF7;
    --cv-bg-alt: #F8F6F1;
    --cv-bg-dark: #1A1915;
    --cv-surface: #FFFFFF;
    
    /* Accent - Refined Gold/Bronze */
    --cv-accent: #B8956E;
    --cv-accent-light: #D4C4A8;
    --cv-accent-dark: #8B7355;
    
    /* Text */
    --cv-text: #1A1915;
    --cv-text-secondary: #6B6560;
    --cv-text-muted: #9A9590;
    --cv-text-inverse: #FDFBF7;
    
    /* Borders & Dividers */
    --cv-border: #E8E4DD;
    --cv-border-light: #F0EDE8;
    
    /* Typography Scale */
    --font-serif: 'Playfair Display', 'Georgia', serif;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 10rem;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 0.2s;
    --duration-base: 0.4s;
    --duration-slow: 0.8s;
}

/* ========================================
   Base Reset
   ======================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--cv-bg);
    color: var(--cv-text);
    line-height: 1.7;
    overflow-x: hidden;
    /* Expose header height for sticky elements */
    --header-height: 73px;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.75rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.5rem); }

p {
    font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
    line-height: 1.8;
    color: var(--cv-text-secondary);
}

/* ========================================
   Layout
   ======================================== */

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 5rem);
}

.container--narrow {
    max-width: 900px;
}

.container--wide {
    max-width: 1600px;
}

.section-padding {
    padding: var(--space-3xl) 0;
}

/* ========================================
   Header - Minimal Fixed Navigation
   ======================================== */

.cv-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--cv-border-light);
    transition: all var(--duration-base) var(--ease-out);
}

.cv-header.scrolled {
    padding: 0.875rem 0;
    background: rgba(253, 251, 247, 0.95);
}

.cv-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cv-logo {
    font-family: var(--font-serif);
    font-size: 1.625rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--cv-text);
}

.cv-logo span {
    font-weight: 300;
    opacity: 0.7;
}

/* Navigation */
.cv-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.cv-nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cv-text-secondary);
    position: relative;
    padding: 0.25rem 0;
}

.cv-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--cv-accent);
    transition: width var(--duration-base) var(--ease-out);
}

.cv-nav-link:hover {
    color: var(--cv-text);
}

.cv-nav-link:hover::after {
    width: 100%;
}

/* CTA Button */
.cv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all var(--duration-base) var(--ease-out);
}

.cv-btn--primary {
    background: var(--cv-text);
    color: var(--cv-text-inverse);
}

.cv-btn--primary:hover {
    background: var(--cv-accent-dark);
    transform: translateY(-2px);
}

.cv-btn--outline {
    background: transparent;
    color: var(--cv-text);
    border: 1px solid var(--cv-border);
}

.cv-btn--outline:hover {
    border-color: var(--cv-text);
}

.cv-btn--ghost {
    background: transparent;
    color: var(--cv-text);
    padding: 0.5rem 0;
}

.cv-btn--ghost:hover {
    color: var(--cv-accent);
}

.cv-btn--full {
    width: 100%;
}

/* Header Icons */
.cv-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.cv-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cv-text-secondary);
    border-radius: 50%;
    transition: all var(--duration-fast) var(--ease-out);
    position: relative;
}

.cv-icon-btn:hover {
    color: var(--cv-text);
    background: var(--cv-bg-alt);
}

.cv-icon-btn svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   Hero - Editorial Full-Screen
   ======================================== */

.cv-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: var(--cv-bg);
    position: relative;
}

.cv-hero::before {
    display: none !important;
}

.cv-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.cv-hero-content {
    max-width: 600px;
}

.cv-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cv-accent);
    margin-bottom: var(--space-md);
}

.cv-hero-eyebrow::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--cv-accent);
}

.cv-hero h1 {
    margin-bottom: var(--space-md);
}

.cv-hero h1 .italic {
    font-style: italic;
    font-weight: 300;
}

.cv-hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--cv-text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 480px;
}

.cv-hero-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.cv-hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.cv-hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.cv-hero-image-main {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--cv-bg-alt);
    position: relative;
    overflow: hidden;
}

.cv-hero-image-main::before {
    display: none;
}

/* Floating Elements */
.cv-hero-badge {
    display: none;
}

.cv-badge-icon {
    width: 44px;
    height: 44px;
    background: var(--cv-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-badge-icon svg {
    width: 22px;
    height: 22px;
    color: var(--cv-accent);
}

.cv-badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cv-text);
    line-height: 1.3;
}

.cv-badge-text span {
    display: block;
    font-weight: 400;
    color: var(--cv-text-muted);
}

@keyframes subtle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Hero Stats */
.cv-hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--cv-border);
}

.cv-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cv-stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--cv-text);
    line-height: 1;
}

.cv-stat-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cv-text-muted);
}

.cv-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--cv-border);
}

/* ========================================
   Section Headers
   ======================================== */

.cv-section {
    position: relative;
}

.cv-section--alt {
    background: var(--cv-bg-alt);
}

.cv-section-header {
    max-width: 700px;
    margin-bottom: var(--space-xl);
}

.cv-section-header--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.cv-section-eyebrow {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cv-accent);
    margin-bottom: var(--space-sm);
}

.cv-section-title {
    margin-bottom: var(--space-sm);
}

.cv-section-description {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--cv-text-secondary);
}

.cv-section-header--center .cv-section-description {
    max-width: 580px;
    margin: 0 auto;
}

/* ========================================
   Energy Collection - 8 Systems
   ======================================== */

.cv-collection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.cv-collection-card {
    position: relative;
    background: var(--cv-surface);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--duration-base) var(--ease-out);
    overflow: hidden;
    border: 1px solid var(--cv-border-light);
    text-decoration: none;
    display: block;
    color: inherit;
}

.cv-collection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--card-color-1), var(--card-color-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-base) var(--ease-out);
}

.cv-collection-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(26, 25, 21, 0.06);
    border-color: transparent;
    color: inherit;
}

.cv-collection-card:hover::before {
    transform: scaleX(1);
}

.cv-collection-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-sm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--card-color-1), var(--card-color-2));
    transition: transform var(--duration-base) var(--ease-out);
}

.cv-collection-card:hover .cv-collection-icon {
    transform: scale(1.08);
}

.cv-collection-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.cv-collection-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--cv-text);
}

.cv-collection-tagline {
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
    margin-bottom: var(--space-sm);
}

.cv-collection-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cv-accent);
}

.cv-collection-link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--duration-fast) var(--ease-out);
}

.cv-collection-card:hover .cv-collection-link svg {
    transform: translateX(4px);
}

/* ========================================
   Featured Products
   ======================================== */

.cv-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.cv-product-card {
    background: var(--cv-surface);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-out);
    border: 1px solid var(--cv-border-light);
    text-decoration: none;
    display: block;
    color: inherit;
}

.cv-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 80px rgba(26, 25, 21, 0.08);
    border-color: transparent;
    color: inherit;
}

.cv-product-image {
    position: relative;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--product-color-1), var(--product-color-2));
    overflow: hidden;
}

.cv-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.cv-product-card:hover .cv-product-image img {
    transform: scale(1.05);
}

.cv-product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--cv-surface);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cv-accent);
}

.cv-product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(26, 25, 21, 0.5), transparent);
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease-out);
}

.cv-product-card:hover .cv-product-overlay {
    opacity: 1;
}

.cv-product-quick-view {
    width: 100%;
    padding: 0.875rem;
    background: var(--cv-surface);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cv-text);
    transition: background var(--duration-fast) var(--ease-out);
}

.cv-product-quick-view:hover {
    background: var(--cv-bg);
}

.cv-product-info {
    padding: 1.5rem;
}

.cv-product-category {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cv-accent);
    margin-bottom: 0.5rem;
}

.cv-product-name {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--cv-text);
    margin-bottom: 0.5rem;
}

.cv-product-description {
    font-size: 0.875rem;
    color: var(--cv-text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.cv-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--cv-border-light);
}

.cv-product-price {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--cv-text);
}

.cv-product-cart {
    width: 48px;
    height: 48px;
    background: var(--cv-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-out);
}

.cv-product-cart:hover {
    background: var(--cv-text);
    color: var(--cv-text-inverse);
}

.cv-product-cart svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   Brand Story - Split Layout
   ======================================== */

.cv-story {
    background: var(--cv-bg-dark);
    color: var(--cv-text-inverse);
    overflow: hidden;
}

.cv-story-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.cv-story-content {
    max-width: 520px;
}

.cv-story .cv-section-eyebrow {
    color: var(--cv-accent-light);
}

.cv-story .cv-section-title {
    color: var(--cv-text-inverse);
    margin-bottom: var(--space-md);
}

.cv-story .cv-section-title .italic {
    font-style: italic;
    font-weight: 300;
    color: var(--cv-accent-light);
}

.cv-story-text {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: rgba(253, 251, 247, 0.7);
    margin-bottom: var(--space-sm);
}

.cv-story-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.cv-story-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.cv-story-feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(184, 149, 110, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-story-feature-icon svg {
    width: 20px;
    height: 20px;
    color: var(--cv-accent-light);
}

.cv-story-feature h4 {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cv-text-inverse);
    margin-bottom: 0.25rem;
}

.cv-story-feature p {
    font-size: 0.8125rem;
    color: rgba(253, 251, 247, 0.5);
    line-height: 1.5;
}

.cv-story-visual {
    position: relative;
}

.cv-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cv-story-grid-item {
    background: rgba(253, 251, 247, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: transform var(--duration-base) var(--ease-out);
}

.cv-story-grid-item:first-child {
    grid-column: span 2;
}

.cv-story-grid-item:hover {
    transform: scale(1.02);
}

.cv-story-placeholder {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Testimonials
   ======================================== */

.cv-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.cv-testimonial-card {
    background: var(--cv-surface);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--cv-border-light);
    transition: all var(--duration-base) var(--ease-out);
}

.cv-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(26, 25, 21, 0.05);
}

.cv-testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.cv-testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: var(--cv-accent);
    color: var(--cv-accent);
}

.cv-testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--cv-text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.cv-testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cv-testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cv-accent-light), var(--cv-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: white;
}

.cv-testimonial-info h4 {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cv-text);
    margin-bottom: 0.125rem;
}

.cv-testimonial-info span {
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
}

/* ========================================
   Newsletter
   ======================================== */

.cv-newsletter {
    background: linear-gradient(135deg, var(--cv-accent-dark) 0%, var(--cv-accent) 50%, var(--cv-accent-light) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cv-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.1), transparent 60%);
    pointer-events: none;
}

.cv-newsletter-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cv-newsletter h2 {
    color: white;
    margin-bottom: var(--space-sm);
}

.cv-newsletter h2 .italic {
    font-style: italic;
    font-weight: 300;
}

.cv-newsletter-text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-lg);
}

.cv-newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 480px;
    margin: 0 auto;
}

.cv-newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all var(--duration-fast) var(--ease-out);
}

.cv-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.cv-newsletter-input:focus {
    border-color: white;
    background: rgba(255, 255, 255, 0.15);
}

.cv-newsletter-btn {
    padding: 1rem 2rem;
    background: white;
    color: var(--cv-accent-dark);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all var(--duration-base) var(--ease-out);
    white-space: nowrap;
}

.cv-newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.cv-newsletter-note {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   Footer
   ======================================== */

.cv-footer {
    background: var(--cv-bg-dark);
    color: var(--cv-text-inverse);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.cv-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.cv-footer-brand .cv-logo {
    margin-bottom: var(--space-sm);
}

.cv-footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(253, 251, 247, 0.6);
    margin-bottom: var(--space-md);
    max-width: 320px;
}

.cv-footer-social {
    display: flex;
    gap: 0.75rem;
}

.cv-footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(253, 251, 247, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-out);
}

.cv-footer-social a:hover {
    background: var(--cv-accent);
    transform: translateY(-3px);
}

.cv-footer-social svg {
    width: 18px;
    height: 18px;
}

.cv-footer-column h4 {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cv-text-inverse);
    margin-bottom: var(--space-md);
}

.cv-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.cv-footer-links a {
    font-size: 0.9375rem;
    color: rgba(253, 251, 247, 0.6);
    transition: color var(--duration-fast) var(--ease-out);
}

.cv-footer-links a:hover {
    color: var(--cv-accent-light);
}

/* Newsletter form */
.cv-footer-newsletter {
    margin-bottom: var(--space-lg);
}

.cv-footer-newsletter-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(253, 251, 247, 0.5);
    margin: 0 0 0.75rem;
}

.cv-footer-newsletter-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
}

.cv-footer-newsletter-row input {
    flex: 1;
    min-width: 0;
    padding: 0.6875rem 1rem;
    background: rgba(253, 251, 247, 0.08);
    border: 1.5px solid rgba(253, 251, 247, 0.15);
    border-radius: 999px;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    color: var(--cv-text-inverse);
    outline: none;
    transition: border-color var(--duration-fast), background var(--duration-fast);
}

.cv-footer-newsletter-row input::placeholder {
    color: rgba(253, 251, 247, 0.35);
}

.cv-footer-newsletter-row input:focus {
    border-color: var(--cv-accent);
    background: rgba(253, 251, 247, 0.12);
}

.cv-footer-newsletter-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--cv-accent);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: background var(--duration-fast), transform var(--duration-fast);
}

.cv-footer-newsletter-btn:hover {
    background: var(--cv-accent-dark);
    transform: translateY(-2px);
}

.cv-footer-newsletter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cv-footer-newsletter-msg {
    font-size: 0.8125rem;
    line-height: 1.4;
    padding: 0 0.25rem;
    margin-bottom: 0.25rem;
}

.cv-footer-newsletter-msg.is-success {
    color: #8BC48A;
}

.cv-footer-newsletter-msg.is-error {
    color: #F4A0A0;
}

.cv-footer-newsletter-note {
    font-size: 0.75rem;
    color: rgba(253, 251, 247, 0.3);
    margin: 0;
}

.cv-footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(253, 251, 247, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cv-footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(253, 251, 247, 0.4);
}

.cv-footer-bottom-links {
    display: flex;
    gap: var(--space-lg);
}

.cv-footer-bottom-links a {
    font-size: 0.8125rem;
    color: rgba(253, 251, 247, 0.4);
    transition: color var(--duration-fast) var(--ease-out);
}

.cv-footer-bottom-links a:hover {
    color: var(--cv-accent-light);
}

/* ========================================
   Animations
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1200px) {
    .cv-collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cv-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    /* ?????????????????/????????????? */
    .cv-hero::before {
        display: none;
    }

    .cv-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cv-hero-content {
        max-width: 100%;
    }
    
    .cv-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .cv-hero-actions {
        justify-content: center;
    }
    
    .cv-hero-stats {
        justify-content: center;
    }
    
    .cv-hero-image {
        order: -1;
    }
    
    .cv-hero-badge--top,
    .cv-hero-badge--bottom {
        display: none;
    }
    
    .cv-story-inner {
        grid-template-columns: 1fr;
    }
    
    .cv-story-visual {
        order: -1;
    }
    
    .cv-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cv-footer-brand {
        grid-column: 1 / -1;
    }
}

/* Mobile Menu Toggle */
.cv-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    border-radius: 6px;
    transition: background 0.2s;
}

.cv-hamburger:hover {
    background: var(--cv-border-light);
}

.cv-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--cv-text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.cv-hamburger.is-active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.cv-hamburger.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.cv-hamburger.is-active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.cv-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--cv-bg);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
}

.cv-mobile-nav.is-open {
    transform: translateX(0);
}

.cv-mobile-nav-inner {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 100%;
}

.cv-mobile-nav-close {
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--cv-text-secondary);
    border-radius: 6px;
    transition: background 0.2s;
    margin-bottom: 1rem;
}

.cv-mobile-nav-close:hover {
    background: var(--cv-border-light);
}

.cv-mobile-nav-links {
    display: flex;
    flex-direction: column;
}

.cv-mobile-nav-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--cv-text);
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--cv-border-light);
    transition: color 0.2s;
}

.cv-mobile-nav-link:hover {
    color: var(--cv-accent-dark);
}

.cv-mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.cv-mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cv-mobile-nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .cv-nav {
        display: none;
    }

    .cv-hamburger {
        display: flex;
        flex-shrink: 0;
    }

    .cv-header-actions .cv-icon-btn {
        flex-shrink: 0;
    }

    .cv-header-actions {
        gap: 0.25rem;
    }

    .cv-header-inner {
        gap: 0.5rem;
        min-width: 0;
    }

    .cv-logo {
        flex-shrink: 1;
        min-width: 0;
        font-size: clamp(1.125rem, 5vw, 1.5rem);
    }

    .cv-btn--ghost,
    .cv-btn--primary {
        padding: 0.75rem 1.5rem;
    }

    .cv-collection-grid {
        grid-template-columns: 1fr;
    }

    .cv-products-grid,
    .cv-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cv-story-features {
        grid-template-columns: 1fr;
    }

    .cv-newsletter-form {
        flex-direction: column;
    }

    .cv-footer-grid {
        grid-template-columns: 1fr;
    }

    .cv-footer-brand {
        grid-column: span 1;
    }

    .cv-footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cv-footer-newsletter-row {
        flex-direction: column;
    }

    .cv-footer-newsletter-btn {
        width: 100%;
        height: 44px;
        border-radius: 999px;
    }

    .cv-footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cv-hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cv-stat-divider {
        display: none;
    }
}

/* ========================================
   Scrollbar
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cv-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--cv-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cv-text-muted);
}

/* ========================================
   Selection
   ======================================== */

::selection {
    background: var(--cv-accent-light);
    color: var(--cv-text);
}

/* ========================================
   Shop Page
   ======================================== */

.cv-shop-page {
    padding-top: 100px;
}

/* Shop Header */
.cv-shop-header {
    padding: var(--space-xl) 0;
    background: var(--cv-bg);
    text-align: center;
    border-bottom: 1px solid var(--cv-border-light);
}

.cv-shop-header-inner {
    max-width: 700px;
    margin: 0 auto;
}

.cv-shop-header h1 {
    margin-bottom: var(--space-sm);
}

.cv-shop-header-subtitle {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--cv-text-secondary);
    max-width: 580px;
    margin: 0 auto;
}

/* Filter Bar */
.cv-shop-filters {
    padding: var(--space-md) 0;
    background: var(--cv-bg-alt);
    border-bottom: 1px solid var(--cv-border-light);
    position: sticky;
    top: 70px;
    z-index: 50;
}

.cv-filter-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cv-filter-bar::-webkit-scrollbar {
    display: none;
}

.cv-filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cv-text-muted);
    white-space: nowrap;
}

.cv-filter-tabs {
    display: flex;
    gap: 0.5rem;
}

.cv-filter-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cv-text-secondary);
    background: transparent;
    border-radius: 50px;
    white-space: nowrap;
    transition: all var(--duration-fast) var(--ease-out);
}

.cv-filter-tab:hover {
    color: var(--cv-text);
    background: var(--cv-surface);
}

.cv-filter-tab.active {
    color: var(--cv-surface);
    background: var(--cv-text);
}

/* Products Header */
.cv-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.cv-products-count {
    font-size: 0.875rem;
    color: var(--cv-text-muted);
}

/* Shop Grid */
.cv-shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: stretch;
}

/* Shop Card??? flex ???????????? */
.cv-shop-card {
    background: var(--cv-surface);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--cv-border-light);
    transition: transform var(--duration-base) var(--ease-out),
        box-shadow var(--duration-base) var(--ease-out),
        border-color var(--duration-base) var(--ease-out);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    color: inherit;
}

.cv-shop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 80px rgba(26, 25, 21, 0.1);
    border-color: transparent;
}

.cv-shop-card__media-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.cv-shop-card .cv-shop-card-overlay {
    pointer-events: none;
}

.cv-shop-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.cv-shop-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 25, 21, 0.3), transparent 50%);
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease-out);
}

.cv-shop-card:hover .cv-shop-card-image::before {
    opacity: 1;
}

.cv-shop-card-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--duration-base) var(--ease-out);
}

.cv-shop-card:hover .cv-shop-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.cv-shop-quick-view {
    flex: 1;
    padding: 0.75rem;
    background: var(--cv-surface);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cv-text);
    transition: background var(--duration-fast) var(--ease-out);
}

.cv-shop-quick-view:hover {
    background: var(--cv-bg);
}

.cv-shop-add-cart {
    width: 48px;
    height: 48px;
    background: var(--cv-surface);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cv-text);
    transition: all var(--duration-fast) var(--ease-out);
}

.cv-shop-add-cart:hover {
    background: var(--cv-text);
    color: var(--cv-surface);
}

.cv-shop-card-content {
    padding: 1.5rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cv-shop-card__title-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex-shrink: 0;
    margin-bottom: 0.75rem;
}

.cv-shop-card__title-link:hover .cv-shop-card-name {
    color: var(--cv-accent-dark);
}

.cv-shop-card-collection {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cv-accent);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cv-shop-card-name {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--cv-text);
    margin: 0;
    line-height: 1.3;
    transition: color var(--duration-fast) var(--ease-out);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: calc(1.125rem * 1.3 * 2);
}

.cv-shop-card-desc {
    /* ??????????????????????? */
    flex: 0 0 auto;
    height: calc(0.8125rem * 1.5 * 3);
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.cv-shop-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--cv-border-light);
    flex-shrink: 0;
    flex-wrap: wrap;
    row-gap: 0.5rem;
}

.cv-shop-card-price {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--cv-text);
    flex-shrink: 0;
}

.cv-shop-card-atc {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cv-surface);
    background: var(--cv-text);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    text-decoration: none;
    white-space: nowrap;
}

.cv-shop-card-atc:hover {
    background: var(--cv-bg-dark);
    transform: translateY(-1px);
}

.cv-shop-card-atc:active {
    transform: translateY(0);
}

/* ???????? WooCommerce ?????????????? */
.cv-shop-card .added_to_cart {
    display: none !important;
}

.cv-shop-cart-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cv-surface);
    background: var(--cv-text);
    border-radius: 50px;
    transition: all var(--duration-fast) var(--ease-out);
}

.cv-shop-cart-btn:hover {
    background: var(--cv-accent-dark);
}

/* Empty State */
.cv-shop-empty {
    text-align: center;
    padding: var(--space-3xl) 0;
}

.cv-shop-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    background: var(--cv-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cv-text-muted);
}

.cv-shop-empty h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--cv-text);
    margin-bottom: 0.5rem;
}

.cv-shop-empty p {
    color: var(--cv-text-muted);
    margin-bottom: var(--space-lg);
}

/* Shop Promise Section */
.cv-shop-promise {
    background: var(--cv-bg-alt);
    border-top: 1px solid var(--cv-border-light);
}

.cv-promise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.cv-promise-item {
    text-align: center;
}

.cv-promise-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-sm);
    background: var(--cv-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cv-accent);
}

.cv-promise-item h4 {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cv-text);
    margin-bottom: 0.5rem;
}

.cv-promise-item p {
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
    line-height: 1.5;
}

/* Shop Responsive */
@media (max-width: 1200px) {
    .cv-shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cv-promise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cv-shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .cv-shop-card-content {
        padding: 1rem;
    }
    
    .cv-shop-card-name {
        font-size: 1rem;
    }
    
    .cv-filter-tabs {
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .cv-shop-grid {
        grid-template-columns: 1fr;
    }
    
    .cv-promise-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Product Detail Page
   ======================================== */

.cv-product-page {
    padding-top: 100px;
}

/* Breadcrumb */
.cv-breadcrumb {
    padding: var(--space-sm) 0;
    background: var(--cv-bg-alt);
    border-bottom: 1px solid var(--cv-border-light);
}

.cv-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    overflow-x: auto;
    white-space: nowrap;
}

.cv-breadcrumb a {
    color: var(--cv-text-muted);
    transition: color var(--duration-fast) var(--ease-out);
}

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

.cv-breadcrumb-sep {
    color: var(--cv-border);
}

.cv-breadcrumb-current {
    color: var(--cv-text);
    font-weight: 500;
}

/* Product Grid */
.cv-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

/* Product Gallery */
.cv-product-gallery {
    position: sticky;
    top: 120px;
}

.cv-product-main-image {
    aspect-ratio: 1;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.cv-product-main-image .cv-product-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--cv-surface);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cv-accent);
}

.cv-product-thumbnails {
    display: flex;
    gap: 1rem;
}

.cv-product-thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    border: 2px solid transparent;
}

.cv-product-thumb:hover {
    opacity: 1;
}

.cv-product-thumb.active {
    border-color: var(--cv-text);
}

/* Product Info */
.cv-product-info {
    padding-top: var(--space-sm);
}

.cv-product-collection {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cv-accent);
    margin-bottom: 0.5rem;
}

.cv-product-collection a {
    transition: opacity var(--duration-fast) var(--ease-out);
}

.cv-product-collection a:hover {
    opacity: 0.7;
}

.cv-product-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--cv-text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cv-product-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cv-rating-stars {
    display: flex;
    gap: 0.125rem;
}

.cv-rating-stars svg {
    fill: var(--cv-accent);
    color: var(--cv-accent);
}

.cv-rating-count {
    font-size: 0.875rem;
    color: var(--cv-text-muted);
}

.cv-product-price {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--cv-text);
    margin-bottom: 1rem;
}

.cv-product-excerpt {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--cv-text-secondary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--cv-border-light);
}

/* Product Actions */
.cv-product-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--space-lg);
}

.cv-quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--cv-border);
    border-radius: 12px;
    overflow: hidden;
}

.cv-qty-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--cv-text-secondary);
    background: transparent;
    transition: all var(--duration-fast) var(--ease-out);
}

.cv-qty-btn:hover {
    background: var(--cv-bg-alt);
    color: var(--cv-text);
}

.cv-qty-input {
    width: 50px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--cv-text);
    background: transparent;
    -moz-appearance: textfield;
}

.cv-qty-input::-webkit-outer-spin-button,
.cv-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cv-add-to-cart-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--cv-text);
    color: var(--cv-text-inverse);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all var(--duration-base) var(--ease-out);
}

.cv-add-to-cart-btn:hover {
    background: var(--cv-accent-dark);
    transform: translateY(-2px);
}

.cv-wishlist-btn {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cv-border);
    border-radius: 12px;
    color: var(--cv-text-muted);
    transition: all var(--duration-fast) var(--ease-out);
}

.cv-wishlist-btn:hover {
    border-color: #E8B4B8;
    color: #E8B4B8;
    background: rgba(232, 180, 184, 0.1);
}

/* Trust Badges */
.cv-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: var(--space-md) 0;
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--cv-border-light);
}

.cv-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--cv-text-secondary);
}

.cv-trust-item svg {
    color: var(--cv-accent);
}

/* Product Tabs */
.cv-product-tabs {
    border: 1px solid var(--cv-border-light);
    border-radius: 20px;
    overflow: hidden;
}

.cv-tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--cv-border-light);
    background: var(--cv-bg-alt);
}

.cv-tab-btn {
    flex: 1;
    padding: 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cv-text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all var(--duration-fast) var(--ease-out);
}

.cv-tab-btn:hover {
    color: var(--cv-text);
}

.cv-tab-btn.active {
    color: var(--cv-text);
    border-bottom-color: var(--cv-accent);
    background: var(--cv-surface);
}

.cv-tab-content {
    display: none;
    padding: 2rem;
}

.cv-tab-content.active {
    display: block;
}

.cv-tab-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--cv-text-secondary);
}

.cv-tab-content h4 {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cv-text);
    margin: 1.5rem 0 1rem;
}

.cv-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cv-benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--cv-text-secondary);
}

.cv-benefits-list svg {
    color: var(--cv-accent);
    flex-shrink: 0;
}

.cv-details-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cv-details-list li {
    font-size: 0.9375rem;
    color: var(--cv-text-secondary);
}

.cv-details-list strong {
    color: var(--cv-text);
    font-weight: 600;
}

/* Related Products */
.cv-related-products {
    background: var(--cv-bg-alt);
    border-top: 1px solid var(--cv-border-light);
}

.cv-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.cv-related-card {
    background: var(--cv-surface);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--cv-border-light);
    transition: all var(--duration-base) var(--ease-out);
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.cv-related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(26, 25, 21, 0.08);
    border-color: transparent;
    color: inherit;
}

.cv-related-image {
    aspect-ratio: 1;
    position: relative;
}

.cv-related-image .cv-product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--cv-surface);
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cv-accent);
}

.cv-related-info {
    padding: 1.5rem;
}

.cv-related-collection {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cv-accent);
    margin-bottom: 0.5rem;
}

.cv-related-name {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--cv-text);
    margin-bottom: 0.5rem;
}

.cv-related-price {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--cv-text-secondary);
}

/* Not Found */
.cv-product-not-found {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.cv-not-found-content {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.cv-not-found-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-md);
    background: var(--cv-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cv-text-muted);
}

.cv-not-found-content h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.cv-not-found-content p {
    color: var(--cv-text-muted);
    margin-bottom: var(--space-lg);
}

/* Product Page Responsive */
@media (max-width: 992px) {
    .cv-product-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    .cv-product-gallery {
        position: relative;
        top: 0;
    }
    .cv-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cv-product-actions {
        flex-wrap: wrap;
    }
    .cv-add-to-cart-btn {
        width: 100%;
    }
    .cv-wishlist-btn {
        width: 100%;
        height: 48px;
    }
    .cv-tab-buttons {
        flex-direction: column;
    }
    .cv-tab-btn {
        border-bottom: 1px solid var(--cv-border-light);
        text-align: left;
    }
    .cv-tab-btn.active {
        border-bottom-color: var(--cv-border-light);
        border-left: 3px solid var(--cv-accent);
    }
    .cv-related-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   PRODUCT DETAIL ? Classic E-Commerce Layout
   2-col: gallery left | sticky info right
   ======================================== */

/* ?? Hero Layout ?????????????????????????????????? */
.cv-pd-hero {
    padding-top: calc(var(--space-xl) + 60px);
}

.cv-pd-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

/* ?? Gallery Column ???????????????????????????????? */
.cv-pd-gallery {
    position: sticky;
    top: 120px;
}

/* Breadcrumb */
.cv-pd-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
}

.cv-pd-breadcrumb a {
    color: var(--cv-text-muted);
    transition: color var(--duration-fast) var(--ease-out);
}

.cv-pd-breadcrumb a:hover {
    color: var(--cv-text);
}

.cv-pd-breadcrumb span {
    color: var(--cv-border);
}

.cv-pd-breadcrumb span:last-child {
    color: var(--cv-text);
    font-weight: 500;
}

/* Main image */
.cv-pd-gallery__main {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--cv-bg-alt);
    background-size: cover;
    background-position: center;
    margin-bottom: 1rem;
}

.cv-pd-gallery__main--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badge on main image */
.cv-pd-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 2;
}

.cv-pd-badge--sale {
    background: #e8b4b8;
    color: #8b3030;
}

.cv-pd-badge--featured {
    background: var(--cv-surface);
    color: var(--cv-accent);
}

/* Gallery navigation arrows */
.cv-pd-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--cv-border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cv-text);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    z-index: 3;
    backdrop-filter: blur(4px);
}

.cv-pd-gallery__nav:hover {
    background: var(--cv-surface);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 16px rgba(26, 25, 21, 0.12);
}

.cv-pd-gallery__nav--prev {
    left: 1rem;
}

.cv-pd-gallery__nav--next {
    right: 1rem;
}

/* Thumbnails */
.cv-pd-gallery__thumbs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
}

.cv-pd-gallery__thumbs::-webkit-scrollbar {
    display: none;
}

.cv-pd-gallery__thumb {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    padding: 0;
    background: none;
    flex-shrink: 0;
}

.cv-pd-gallery__thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.cv-pd-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.cv-pd-gallery__thumb:hover {
    border-color: var(--cv-border);
}

.cv-pd-gallery__thumb.active {
    border-color: var(--cv-text);
}

/* Gallery meta (SKU, collection) */
.cv-pd-gallery__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cv-border-light);
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
}

.cv-pd-gallery__meta-collection {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: opacity var(--duration-fast);
}

.cv-pd-gallery__meta-collection:hover {
    opacity: 0.7;
}

/* ?? Info Panel (Right Column) ????????????????????? */
.cv-pd-info {
    padding-top: 0.25rem;
}

/* Sticky state for info panel */
.cv-pd-info.is-sticky {
    position: sticky;
    top: 100px;
}

/* ?? Energy System ? full-width banner ??????????????? */
.cv-pd-energy-banner {
    width: 100%;
    margin-top: 2.5rem;
    background: var(--cv-bg);
    position: relative;
    overflow: hidden;
}

/* Top-left color splash ? unique per energy system */
.cv-pd-energy-banner__color-block {
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    height: 100%;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--e1) 15%, white) 0%,
        color-mix(in srgb, var(--e2) 10%, white) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.cv-pd-energy-banner__color-block::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--e1), var(--e2));
    opacity: 0.6;
}

.cv-pd-energy-banner__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2rem 2rem calc(220px + 2rem);
    border-top: 1px solid color-mix(in srgb, var(--e1) 25%, var(--cv-border-light));
    border-bottom: 1px solid color-mix(in srgb, var(--e2) 25%, var(--cv-border-light));
}

/* Left vertical accent bar */
.cv-pd-energy-banner__bar {
    flex-shrink: 0;
    width: 4px;
    height: 64px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--e1), var(--e2));
    box-shadow: 0 2px 10px color-mix(in srgb, var(--e1) 30%, transparent);
}

/* Core: eyebrow + serif tagline */
.cv-pd-energy-banner__core {
    flex: 1;
    min-width: 0;
}

.cv-pd-energy-banner__eyebrow {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--e2) 60%, var(--cv-text-muted));
    margin-bottom: 0.5rem;
    line-height: 1;
}

.cv-pd-energy-banner__tagline-wrap {
    display: inline-block;
}

.cv-pd-energy-banner__tagline {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-style: italic;
    font-weight: 400;
    color: var(--cv-text);
    line-height: 1.2;
    margin: 0 0 0.4rem;
}

.cv-pd-energy-banner__tagline-underline {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--e1), transparent);
    border-radius: 2px;
    opacity: 0.7;
}

/* Right: collection name + CTA */
.cv-pd-energy-banner__right {
    flex-shrink: 0;
    max-width: 220px;
    text-align: right;
}

.cv-pd-energy-banner__collection-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    margin-bottom: 0.6rem;
    transition: gap var(--duration-fast) var(--ease-out);
}

.cv-pd-energy-banner__collection-link:hover {
    gap: 0.7rem;
}

.cv-pd-energy-banner__collection-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: color-mix(in srgb, var(--e2) 40%, var(--cv-text));
    letter-spacing: -0.01em;
    line-height: 1;
}

.cv-pd-energy-banner__arrow {
    color: var(--e2);
    transition: transform var(--duration-fast) var(--ease-out);
}

.cv-pd-energy-banner__collection-link:hover .cv-pd-energy-banner__arrow {
    transform: translateX(3px);
}

.cv-pd-energy-banner__desc {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--cv-text-muted);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .cv-pd-energy-banner__color-block {
        width: 100%;
        height: 100px;
    }

    .cv-pd-energy-banner__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 1.5rem 1.5rem 1.5rem;
    }

    .cv-pd-energy-banner__bar {
        display: none;
    }

    .cv-pd-energy-banner__right {
        max-width: 100%;
        text-align: left;
        padding-left: 0;
        border-left: none;
    }
}

/* Title */
.cv-pd-info__title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--cv-text);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

/* Rating row */
.cv-pd-info__rating {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}

.cv-pd-stars {
    display: flex;
    gap: 0.125rem;
}

.cv-pd-stars svg {
    flex-shrink: 0;
}

.cv-pd-info__reviews-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cv-text);
    transition: color var(--duration-fast);
}

.cv-pd-info__reviews-link:hover {
    color: var(--cv-accent);
}

.cv-pd-info__reviews-link span {
    font-weight: 400;
    color: var(--cv-text-muted);
}

/* Price block */
.cv-pd-info__price-block {
    display: flex;
    align-items: baseline;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.cv-pd-info__price {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    color: var(--cv-text);
}

.cv-pd-info__price-sale {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--cv-text-muted);
    text-decoration: line-through;
}

.cv-pd-info__price-badge {
    background: #e8b4b8;
    color: #8b3030;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
}

/* WC price HTML (variable / sale) injected into hero block */
.cv-pd-info__price-block .price {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    color: var(--cv-text);
    margin: 0;
}

.cv-pd-info__price-block .price del {
    opacity: 0.55;
    font-size: 0.72em;
    margin-right: 0.5rem;
}

.cv-pd-info__price-block .price ins {
    text-decoration: none;
}

/* Duplicate variation price + clear link removed in PHP/CSS */
.cv-pd-purchase .woocommerce-variation .woocommerce-variation-price {
    display: none !important;
}

.cv-pd-purchase a.reset_variations {
    display: none !important;
}

/* Short excerpt */
.cv-pd-info__excerpt {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--cv-text-secondary);
    margin-bottom: 1.5rem;
}

/* Divider */
.cv-pd-info__divider {
    height: 1px;
    background: var(--cv-border-light);
    margin: 1.5rem 0;
}

/* ?? Purchase card (DTC-style: one surface for options + buy) ??????????? */
.cv-pd-purchase {
    margin-bottom: 1.25rem;
    padding: 1.5rem 1.5rem 1.25rem;
    background: var(--cv-surface);
    border: 1px solid var(--cv-border-light);
    border-radius: 20px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.cv-pd-info__cart-section {
    margin-bottom: 0;
}

.cv-pd-purchase .cv-pd-info__cart-section form.cart {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Variation table: label + control stack */
.cv-pd-purchase table.variations {
    width: 100%;
    border: none;
    margin: 0;
}

.cv-pd-purchase table.variations tbody {
    display: block;
}

.cv-pd-purchase table.variations tr {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
    border: none;
}

.cv-pd-purchase table.variations tr:last-of-type {
    margin-bottom: 0;
}

.cv-pd-purchase table.variations th,
.cv-pd-purchase table.variations td {
    display: block;
    width: 100% !important;
    padding: 0;
    text-align: left;
    border: none;
    vertical-align: top;
}

.cv-pd-purchase table.variations th.label label,
.cv-pd-purchase table.variations label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cv-text-muted);
}

.cv-pd-purchase table.variations td.value {
    position: relative;
}

/* Screen-reader / WC hook: real select hidden when pills are shown */
.cv-pd-variation-picker select.cv-pd-variation-select--sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Pill options (segmented / Shopify-style) */
.cv-pd-option-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cv-pd-option-pill {
    min-height: 44px;
    padding: 0 1.125rem;
    border: 1px solid var(--cv-border);
    border-radius: 999px;
    background: var(--cv-bg-alt);
    color: var(--cv-text);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-sans);
    letter-spacing: 0.02em;
    line-height: 1.2;
    cursor: pointer;
    transition:
        border-color var(--duration-fast),
        background var(--duration-fast),
        color var(--duration-fast),
        box-shadow var(--duration-fast),
        transform var(--duration-fast);
}

/* Hover only when not selected ? avoids light-on-light when .is-selected met :hover */
.cv-pd-option-pill:hover:not(:disabled):not(.is-disabled):not(.is-selected) {
    border-color: var(--cv-text-secondary);
    background: var(--cv-surface);
    color: var(--cv-text);
}

.cv-pd-option-pill.is-selected {
    border-color: var(--cv-bg-dark);
    background: var(--cv-bg-dark);
    color: var(--cv-text-inverse);
    box-shadow: 0 4px 14px rgba(26, 25, 21, 0.12);
}

.cv-pd-option-pill.is-selected:hover:not(:disabled):not(.is-disabled) {
    background: #2c2b26;
    border-color: #2c2b26;
    color: var(--cv-text-inverse);
    box-shadow: 0 6px 18px rgba(26, 25, 21, 0.16);
}

.cv-pd-option-pill:focus-visible {
    outline: 2px solid var(--cv-accent);
    outline-offset: 2px;
}

.cv-pd-option-pill:disabled,
.cv-pd-option-pill.is-disabled {
    opacity: 0.38;
    cursor: not-allowed;
    text-decoration: line-through;
    box-shadow: none;
}

/* Fallback: many options ? styled native select */
.cv-pd-purchase table.variations select:not(.cv-pd-variation-select--sr) {
    width: 100%;
    min-height: 52px;
    padding: 0.75rem 2.75rem 0.75rem 1.125rem;
    border: 1px solid var(--cv-border);
    border-radius: 14px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--cv-text);
    background-color: var(--cv-bg-alt);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236b6560' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
    transition:
        border-color var(--duration-fast),
        box-shadow var(--duration-fast);
    font-family: var(--font-sans);
    appearance: none;
    -webkit-appearance: none;
}

.cv-pd-purchase table.variations select:not(.cv-pd-variation-select--sr):focus {
    outline: none;
    border-color: var(--cv-accent);
    box-shadow: 0 0 0 3px rgba(184, 149, 110, 0.2);
}

.cv-pd-purchase .reset_variations {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cv-text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cv-pd-purchase .reset_variations:hover {
    color: var(--cv-text);
}

.cv-pd-purchase .single_variation_wrap {
    width: 100%;
}

/* Qty + CTA row */
.cv-pd-purchase__buy-row {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    align-items: stretch;
}

.cv-pd-purchase__qty-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cv-pd-purchase__qty-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cv-text-muted);
}

.cv-pd-purchase .cv-pd-qty-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 11rem;
    border: 1px solid var(--cv-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--cv-bg-alt);
}

.cv-pd-purchase .cv-pd-qty-row .quantity {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-width: 0;
    border: none;
}

.cv-pd-purchase .cv-pd-qty-btn {
    flex-shrink: 0;
    width: 44px;
    border: none;
    background: var(--cv-surface);
    color: var(--cv-text);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition:
        background var(--duration-fast),
        color var(--duration-fast);
    font-family: var(--font-sans);
}

.cv-pd-purchase .cv-pd-qty-btn:hover {
    background: var(--cv-border-light);
}

.cv-pd-purchase .cv-pd-qty-row .qty {
    width: 100% !important;
    min-width: 2.5rem;
    max-width: 4rem;
    height: 48px;
    margin: 0;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cv-text);
    background: transparent;
    font-family: var(--font-sans);
    -moz-appearance: textfield;
    cursor: default;
}

.cv-pd-purchase .cv-pd-qty-row .qty::-webkit-outer-spin-button,
.cv-pd-purchase .cv-pd-qty-row .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* Primary CTA: high-contrast, pill shape; override Woo default purple */
.cv-pd-purchase .single_add_to_cart_button,
.cv-pd-purchase button.single_add_to_cart_button,
.cv-pd-purchase .single_add_to_cart_button.button.alt {
    width: 100%;
    min-height: 52px;
    padding: 1rem 1.75rem;
    background: var(--cv-bg-dark) !important;
    color: var(--cv-text-inverse) !important;
    border: none !important;
    border-radius: 999px !important;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background var(--duration-base) var(--ease-out),
        transform var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-base) var(--ease-out);
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(26, 25, 21, 0.12);
}

.cv-pd-purchase .single_add_to_cart_button:hover,
.cv-pd-purchase button.single_add_to_cart_button:hover,
.cv-pd-purchase .single_add_to_cart_button.button.alt:hover {
    background: var(--cv-accent-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(26, 25, 21, 0.18);
}

.cv-pd-purchase .single_add_to_cart_button:disabled,
.cv-pd-purchase button.single_add_to_cart_button:disabled {
    opacity: 0.55;
    transform: none;
    cursor: not-allowed;
    box-shadow: none;
}

.cv-pd-purchase .woocommerce-variation-availability {
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
    margin-top: -0.25rem;
}

/* Policy strip under CTA */
.cv-pd-purchase__microcopy {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--cv-border-light);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: var(--cv-text-secondary);
}

.cv-pd-purchase__microcopy-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.cv-pd-purchase__microcopy-item svg {
    flex-shrink: 0;
    color: var(--cv-accent-dark);
}

.cv-pd-purchase__microcopy-item + .cv-pd-purchase__microcopy-item::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: var(--cv-border);
    vertical-align: middle;
}

@media (min-width: 480px) {
    .cv-pd-purchase__buy-row {
        flex-direction: row;
        align-items: flex-end;
        gap: 1rem;
    }

    .cv-pd-purchase .single_add_to_cart_button,
    .cv-pd-purchase button.single_add_to_cart_button,
    .cv-pd-purchase .single_add_to_cart_button.button.alt {
        flex: 1;
        width: auto;
        min-width: 0;
    }

    .cv-pd-purchase .cv-pd-qty-row {
        max-width: 10.5rem;
    }
}

/* ?? Product detail stack (always visible ? typical DTC PDP copy) ??????? */
.cv-pd-detail-stack {
    margin-top: 0.25rem;
}

.cv-pd-detail-section {
    padding: 1.375rem 0;
    border-bottom: 1px solid var(--cv-border-light);
}

.cv-pd-detail-section:last-child {
    border-bottom: none;
    padding-bottom: 0.25rem;
}

.cv-pd-detail-heading {
    font-family: var(--font-serif);
    font-size: 1.1875rem;
    font-weight: 500;
    color: var(--cv-text);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.cv-pd-detail-body {
    font-size: 0.9375rem;
    line-height: 1.85;
    color: var(--cv-text-secondary);
}

.cv-pd-detail-body p {
    font-size: 0.9375rem;
    line-height: 1.85;
    color: var(--cv-text-secondary);
    margin: 0 0 0.75rem;
}

.cv-pd-detail-body p:last-child {
    margin-bottom: 0;
}

.cv-pd-detail-body strong {
    color: var(--cv-text);
    font-weight: 600;
}

.cv-pd-detail-body__spaced {
    margin-top: 0.75rem;
}

/* Shipping & Returns ? card grid (breathing room vs. stacked paragraphs) */
.cv-pd-module--ship .cv-pd-detail-heading {
    margin-bottom: 1.25rem;
}

.cv-pd-ship-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 520px) {
    .cv-pd-ship-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.125rem;
    }
}

.cv-pd-ship-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    background: var(--cv-bg-alt);
    border: 1px solid var(--cv-border-light);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.cv-pd-ship-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--cv-surface);
    color: var(--cv-accent-dark);
    border: 1px solid var(--cv-border-light);
}

.cv-pd-ship-card__body {
    flex: 1;
    min-width: 0;
}

.cv-pd-ship-card__title {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cv-text);
    margin: 0 0 0.625rem;
    line-height: 1.3;
}

.cv-pd-ship-card__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--cv-text-secondary);
}

/* Long description: full editor / blocks / HTML (the_content) */
.cv-pd-detail-body--richtext {
    color: var(--cv-text-secondary);
}

.cv-pd-detail-body--richtext > *:first-child {
    margin-top: 0;
}

.cv-pd-detail-body--richtext > *:last-child {
    margin-bottom: 0;
}

.cv-pd-detail-body--richtext h2,
.cv-pd-detail-body--richtext h3,
.cv-pd-detail-body--richtext h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--cv-text);
    line-height: 1.25;
    margin: 1.35rem 0 0.5rem;
}

.cv-pd-detail-body--richtext h2:first-child,
.cv-pd-detail-body--richtext h3:first-child,
.cv-pd-detail-body--richtext h4:first-child {
    margin-top: 0;
}

.cv-pd-detail-body--richtext h2 {
    font-size: 1.25rem;
}

.cv-pd-detail-body--richtext h3 {
    font-size: 1.0625rem;
}

.cv-pd-detail-body--richtext h4 {
    font-size: 1rem;
}

.cv-pd-detail-body--richtext p {
    font-size: 0.9375rem;
    line-height: 1.85;
    color: var(--cv-text-secondary);
    margin: 0 0 0.75rem;
}

.cv-pd-detail-body--richtext ul,
.cv-pd-detail-body--richtext ol {
    margin: 0 0 1rem;
    padding-left: 1.35rem;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--cv-text-secondary);
}

.cv-pd-detail-body--richtext li {
    margin: 0.35rem 0;
}

.cv-pd-detail-body--richtext li::marker {
    color: var(--cv-accent-dark);
}

.cv-pd-detail-body--richtext a {
    color: var(--cv-accent-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cv-pd-detail-body--richtext a:hover {
    color: var(--cv-text);
}

.cv-pd-detail-body--richtext img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 1rem 0;
    display: block;
}

.cv-pd-detail-body--richtext blockquote {
    margin: 1rem 0;
    padding: 0.75rem 0 0.75rem 1.125rem;
    border-left: 3px solid var(--cv-accent);
    font-style: italic;
    color: var(--cv-text-secondary);
}

.cv-pd-detail-body--richtext table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin: 1rem 0;
}

.cv-pd-detail-body--richtext th,
.cv-pd-detail-body--richtext td {
    border: 1px solid var(--cv-border-light);
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.cv-pd-detail-body--richtext pre,
.cv-pd-detail-body--richtext code {
    font-family: ui-monospace, monospace;
    font-size: 0.8125rem;
}

.cv-pd-detail-body--richtext pre {
    overflow-x: auto;
    padding: 0.75rem 1rem;
    background: var(--cv-bg-alt);
    border-radius: 10px;
    margin: 1rem 0;
}

/* Benefits list */
.cv-pd-benefit-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.cv-pd-benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: var(--cv-text-secondary);
}

.cv-pd-benefit-list svg {
    color: var(--cv-accent);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* Specs table */
.cv-pd-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.cv-pd-specs-table tr {
    border-bottom: 1px solid var(--cv-border-light);
}

.cv-pd-specs-table tr:last-child {
    border-bottom: none;
}

.cv-pd-specs-table th,
.cv-pd-specs-table td {
    padding: 0.75rem 0;
    text-align: left;
    font-size: 0.9375rem;
}

.cv-pd-specs-table th {
    font-weight: 600;
    color: var(--cv-text);
    width: 40%;
    vertical-align: top;
}

.cv-pd-specs-table td {
    color: var(--cv-text-secondary);
}

/* ?? Reviews Section ???????????????????????????????? */
.cv-pd-reviews {
    background: var(--cv-bg-alt);
    border-top: 1px solid var(--cv-border-light);
}

.cv-pd-reviews__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cv-pd-reviews__header-left {
    max-width: 500px;
}

.cv-pd-reviews__title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--cv-text);
    margin-top: 0.5rem;
}

.cv-pd-reviews__summary {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--cv-surface);
    padding: 1.25rem 1.75rem;
    border-radius: 16px;
    border: 1px solid var(--cv-border-light);
}

.cv-pd-reviews__avg {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    color: var(--cv-text);
    line-height: 1;
}

.cv-pd-reviews__summary-right {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.cv-pd-reviews__count {
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
}

/* Reviews grid */
.cv-pd-reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Review card */
.cv-pd-review-card {
    background: var(--cv-surface);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--cv-border-light);
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.7s var(--ease-out),
        transform 0.7s var(--ease-out),
        box-shadow 0.3s;
}

.cv-pd-review-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.cv-pd-review-card:hover {
    box-shadow: 0 16px 48px rgba(26, 25, 21, 0.06);
}

.cv-pd-review-card__top {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.cv-pd-review-card__avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cv-accent-light), var(--cv-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: white;
}

.cv-pd-review-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cv-pd-review-card__meta strong {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cv-text);
    font-family: var(--font-sans);
}

.cv-pd-review-card__stars {
    display: flex;
    gap: 0.125rem;
}

.cv-pd-review-card__date {
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
}

.cv-pd-review-card__text {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--cv-text);
    margin: 0;
}

/* ?? Related Products ??????????????????????????????? */
.cv-pd-related {
    border-top: 1px solid var(--cv-border-light);
}

.cv-pd-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Related card */
.cv-pd-related-card {
    background: var(--cv-surface);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--cv-border-light);
    text-decoration: none;
    display: block;
    color: inherit;
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.7s var(--ease-out),
        transform 0.7s var(--ease-out),
        box-shadow 0.3s,
        border-color 0.3s;
}

.cv-pd-related-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.cv-pd-related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(26, 25, 21, 0.1);
    border-color: transparent;
    color: inherit;
}

.cv-pd-related-card__img {
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
}

.cv-pd-related-card__badge {
    display: inline-block;
    margin: 1rem 1rem 0;
    background: var(--cv-surface);
    color: var(--cv-accent);
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
}

.cv-pd-related-card__info {
    padding: 1.25rem;
}

.cv-pd-related-card__info h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    color: var(--cv-text);
    margin-bottom: 0.375rem;
    line-height: 1.3;
}

.cv-pd-related-card__info span {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--cv-text-secondary);
}

/* ?? Responsive ????????????????????????????????????? */
@media (max-width: 1200px) {
    .cv-pd-layout {
        gap: 3rem;
    }

    .cv-pd-related__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .cv-pd-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cv-pd-gallery {
        position: relative;
        top: 0;
    }

    .cv-pd-info.is-sticky {
        position: static;
    }

    .cv-pd-reviews__header {
        flex-direction: column;
    }

    .cv-pd-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cv-pd-hero {
        padding-top: calc(var(--space-lg) + 60px);
    }

    .cv-pd-gallery__thumbs {
        gap: 0.5rem;
    }

    .cv-pd-gallery__thumb {
        width: 64px;
        height: 64px;
        min-width: 64px;
    }

    .cv-pd-gallery__thumb img {
        width: 64px;
        height: 64px;
    }

    .cv-pd-reviews__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cv-pd-related__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .cv-pd-gallery__main {
        border-radius: 16px;
    }
}

/* ?? Not Found ????????????????????????????????????? */
.cv-pd-not-found {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.cv-pd-not-found .cv-not-found-content {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.cv-pd-not-found h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--cv-text);
    margin-bottom: 1rem;
}

.cv-pd-not-found p {
    color: var(--cv-text-muted);
    margin-bottom: 2rem;
}


/* ================================================================
   JOURNAL PAGE
   Editorial blog listing ? CoreVibe Energy & Wellness content hub
   ================================================================ */

/* ?? Hero Header ???????????????????????????????????????? */
.cv-journal-hero {
    padding-top: calc(var(--space-xl) + 60px);
    padding-bottom: 0;
}

.cv-journal-hero__header {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--cv-border-light);
}

.cv-journal-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cv-accent);
    margin-bottom: 1.25rem;
}

.cv-journal-hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--cv-text);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.cv-journal-hero__subtitle {
    font-size: 1.0625rem;
    color: var(--cv-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cv-journal-hero__count {
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
    font-weight: 500;
}

/* ?? Energy System Filter Pills ????????????????????????? */
.cv-journal-filters-wrap {
    background: var(--cv-bg);
    border-bottom: 1px solid var(--cv-border-light);
    position: sticky;
    top: 80px;
    z-index: 20;
}

.cv-journal-filters {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cv-journal-filters::-webkit-scrollbar {
    display: none;
}

.cv-journal-filter {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.4375rem 1.125rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cv-text-secondary);
    background: transparent;
    border: 1px solid var(--cv-border);
    text-decoration: none;
    transition:
        color var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) var(--ease-out),
        background var(--duration-fast) var(--ease-out);
    white-space: nowrap;
}

.cv-journal-filter:hover {
    color: var(--cv-text);
    border-color: var(--cv-text-muted);
}

.cv-journal-filter.is-active {
    color: var(--cv-text);
    background: var(--cv-surface);
    border-color: var(--cv-text);
    font-weight: 600;
}

/* Active state for energy-system filters uses their color */
.cv-journal-filter[style*="--fc1"].is-active {
    color: var(--fc2, var(--cv-accent));
    border-color: var(--fc2, var(--cv-accent));
    background: color-mix(in srgb, var(--fc1, var(--cv-accent)) 8%, white);
}

/* ?? Featured Article Card ??????????????????????????????? */
.cv-journal-featured {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.cv-journal-featured__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 24px;
    overflow: hidden;
    background: var(--cv-surface);
    box-shadow: 0 4px 32px rgba(26, 25, 21, 0.07);
    text-decoration: none;
    color: inherit;
    transition:
        box-shadow var(--duration-base) var(--ease-out),
        transform var(--duration-base) var(--ease-out);
}

.cv-journal-featured__card:hover {
    box-shadow: 0 12px 48px rgba(26, 25, 21, 0.12);
    transform: translateY(-3px);
}

.cv-journal-featured__img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--cv-bg-alt);
}

.cv-journal-featured__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.cv-journal-featured__card:hover .cv-journal-featured__img {
    transform: scale(1.04);
}

.cv-journal-featured__img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--cv-bg-alt), var(--cv-border-light));
}

.cv-journal-featured__badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(253, 251, 247, 0.92);
    color: var(--cv-text);
    backdrop-filter: blur(8px);
}

.cv-journal-featured__body {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cv-journal-featured__meta {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
    margin-bottom: 1.25rem;
}

.cv-journal-featured__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--cv-text-muted);
    flex-shrink: 0;
}

.cv-journal-featured__title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 400;
    color: var(--cv-text);
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
}

.cv-journal-featured__excerpt {
    font-size: 0.9375rem;
    color: var(--cv-text-secondary);
    line-height: 1.75;
    margin-bottom: 1.75rem;
}

.cv-journal-featured__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cv-accent);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: gap var(--duration-fast) var(--ease-out);
}

.cv-journal-featured__card:hover .cv-journal-featured__cta {
    gap: 0.75rem;
}

/* ?? Article Grid ??????????????????????????????????????? */
.cv-journal-grid-section {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-2xl);
}

.cv-journal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ?? Article Card ??????????????????????????????????????? */
.cv-journal-card {
    background: transparent;
    transition: transform var(--duration-base) var(--ease-out);
}

.cv-journal-card:hover {
    transform: translateY(-4px);
}

.cv-journal-card__link {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    text-decoration: none;
}

.cv-journal-card__img-wrap {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 16px;
    background: var(--cv-bg-alt);
}

.cv-journal-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.cv-journal-card:hover .cv-journal-card__img {
    transform: scale(1.06);
}

.cv-journal-card__img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--cv-bg-alt), var(--cv-border-light));
}

.cv-journal-card__body {
    padding: 0 0.25rem;
}

.cv-journal-card__category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 0.625rem;
    transition: opacity var(--duration-fast);
}

.cv-journal-card__category:hover {
    opacity: 0.7;
}

.cv-journal-card__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--cv-text);
    margin-bottom: 0.625rem;
    letter-spacing: -0.01em;
}

.cv-journal-card__title a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-fast);
}

.cv-journal-card__title a:hover {
    color: var(--cv-accent);
}

.cv-journal-card__excerpt {
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
    line-height: 1.65;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cv-journal-card__footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
}

.cv-journal-card__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--cv-text-muted);
    flex-shrink: 0;
}

/* ?? Pagination ????????????????????????????????????????? */
.cv-journal-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--cv-border-light);
}

.cv-journal-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cv-text-secondary);
    text-decoration: none;
    border: 1px solid transparent;
    transition:
        color var(--duration-fast),
        background var(--duration-fast),
        border-color var(--duration-fast);
}

.cv-journal-pagination .page-numbers:hover {
    color: var(--cv-text);
    background: var(--cv-bg-alt);
}

.cv-journal-pagination .page-numbers.current {
    color: var(--cv-text);
    background: var(--cv-surface);
    border-color: var(--cv-text);
    font-weight: 600;
}

.cv-journal-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    pointer-events: none;
}

/* ?? Empty State ???????????????????????????????????????? */
.cv-journal-empty__inner {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    padding: var(--space-2xl) 0;
    color: var(--cv-text-muted);
}

.cv-journal-empty__inner svg {
    margin-bottom: 1.5rem;
    opacity: 0.4;
}

.cv-journal-empty__inner h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--cv-text);
    margin-bottom: 0.75rem;
}

.cv-journal-empty__inner p {
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: 2rem;
}

/* ?? Journal CTA Banner ????????????????????????????????? */
.cv-journal-cta {
    background: var(--cv-bg-alt);
    border-top: 1px solid var(--cv-border-light);
    border-bottom: 1px solid var(--cv-border-light);
}

.cv-journal-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cv-journal-cta__text .cv-section-eyebrow {
    display: block;
    margin-bottom: 0.75rem;
}

.cv-journal-cta__title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--cv-text);
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin-bottom: 0.75rem;
}

.cv-journal-cta__text p {
    font-size: 0.9375rem;
    color: var(--cv-text-secondary);
    line-height: 1.65;
    max-width: 440px;
}

/* ?? Responsive ????????????????????????????????????????? */
@media (max-width: 992px) {
    .cv-journal-featured__card {
        grid-template-columns: 1fr;
    }

    .cv-journal-featured__img-wrap {
        aspect-ratio: 16 / 9;
    }

    .cv-journal-featured__body {
        padding: 2rem;
    }

    .cv-journal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cv-journal-cta__inner {
        flex-direction: column;
        text-align: center;
    }

    .cv-journal-cta__text p {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .cv-journal-hero {
        padding-top: calc(var(--space-lg) + 60px);
    }

    .cv-journal-hero__title {
        font-size: 2rem;
    }

    .cv-journal-filters-wrap {
        top: 60px;
    }

    .cv-journal-featured__body {
        padding: 1.5rem;
    }

    .cv-journal-grid {
        grid-template-columns: 1fr;
    }
}


/* ================================================================
   SINGLE POST ? Journal Article Detail
   ================================================================ */

/* ?? Hero image ??????????????????????????????????????? */
.cv-article-hero-img {
    width: 100%;
    height: clamp(320px, 45vw, 560px);
    background-size: cover;
    background-position: center;
    margin-top: 80px; /* below fixed header */
}

.cv-article-hero-img[style*="background-image: url('');"],
.cv-article-hero-img:not([style]) {
    display: none;
}

/* ?? Article Header ???????????????????????????????????? */
.cv-article-header {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--cv-border-light);
}

.cv-article-header__inner {
    max-width: 720px;
    margin: 0 auto;
}

/* Breadcrumb */
.cv-article-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
}

.cv-article-breadcrumb a {
    color: var(--cv-text-muted);
    text-decoration: none;
    transition: color var(--duration-fast);
}

.cv-article-breadcrumb a:hover {
    color: var(--cv-text);
}

/* Category label */
.cv-article-category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 1.25rem;
    transition: opacity var(--duration-fast);
}

.cv-article-category:hover {
    opacity: 0.75;
}

/* Title */
.cv-article-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    color: var(--cv-text);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

/* Lead paragraph */
.cv-article-lead {
    font-size: 1.125rem;
    color: var(--cv-text-secondary);
    line-height: 1.75;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Meta row */
.cv-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cv-article-meta__author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.cv-article-meta__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cv-accent-light), var(--cv-accent));
    color: var(--cv-surface);
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cv-article-meta__author-name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cv-text);
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.cv-article-meta__details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
}

/* Share buttons */
.cv-article-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cv-article-share__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cv-text-muted);
    margin-right: 0.25rem;
}

.cv-article-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--cv-border);
    background: transparent;
    color: var(--cv-text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition:
        color var(--duration-fast),
        border-color var(--duration-fast),
        background var(--duration-fast);
}

.cv-article-share__btn:hover {
    color: var(--cv-text);
    border-color: var(--cv-text-muted);
    background: var(--cv-bg-alt);
}

/* ?? Energy System Banner ????????????????????????????? */
.cv-article-energy-banner {
    width: 100%;
    background: var(--cv-bg);
    border-bottom: 1px solid color-mix(in srgb, var(--ea1) 20%, var(--cv-border-light));
}

.cv-article-energy-banner__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 0;
}

.cv-article-energy-banner__bar {
    width: 4px;
    height: 52px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--ea1), var(--ea2));
    flex-shrink: 0;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--ea1) 30%, transparent);
}

.cv-article-energy-banner__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cv-article-energy-banner__label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--ea2) 55%, var(--cv-text-muted));
}

.cv-article-energy-banner__name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--cv-text);
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.cv-article-energy-banner__tagline {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--cv-text-secondary);
    line-height: 1.3;
}

.cv-article-energy-banner__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--cv-text);
    border: 1px solid color-mix(in srgb, var(--ea1) 40%, transparent);
    background: color-mix(in srgb, var(--ea1) 8%, white);
    transition:
        background var(--duration-fast),
        border-color var(--duration-fast),
        gap var(--duration-fast);
}

.cv-article-energy-banner__cta:hover {
    background: color-mix(in srgb, var(--ea1) 14%, white);
    gap: 0.65rem;
}

/* ?? Article Body ????????????????????????????????????? */
.cv-article-body {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.cv-article-body__inner {
    max-width: 720px;
    margin: 0 auto;
}

/* Rich text ? long-form editorial styles */
.cv-article-body__inner > * + * {
    margin-top: 1.5em;
}

.cv-article-body__inner h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    color: var(--cv-text);
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin-top: 2.5em;
    margin-bottom: 0.75em;
}

.cv-article-body__inner h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    color: var(--cv-text);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-top: 2em;
    margin-bottom: 0.625em;
}

.cv-article-body__inner h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cv-text);
    margin-top: 1.75em;
    margin-bottom: 0.5em;
}

.cv-article-body__inner p {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--cv-text);
}

.cv-article-body__inner a {
    color: var(--cv-accent-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: color-mix(in srgb, var(--cv-accent) 40%, transparent);
    transition: text-decoration-color var(--duration-fast);
}

.cv-article-body__inner a:hover {
    text-decoration-color: var(--cv-accent);
}

.cv-article-body__inner blockquote {
    border-left: 3px solid var(--cv-accent);
    padding: 0.5rem 0 0.5rem 1.75rem;
    margin: 2.5em 0;
}

.cv-article-body__inner blockquote p {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2vw, 1.375rem);
    font-style: italic;
    color: var(--cv-text);
    line-height: 1.65;
}

.cv-article-body__inner blockquote cite {
    display: block;
    font-size: 0.875rem;
    font-style: normal;
    color: var(--cv-text-muted);
    margin-top: 0.75rem;
}

.cv-article-body__inner ul,
.cv-article-body__inner ol {
    padding-left: 1.5rem;
}

.cv-article-body__inner li {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--cv-text);
    margin-bottom: 0.5em;
}

.cv-article-body__inner ul li::marker {
    color: var(--cv-accent);
}

.cv-article-body__inner ol li::marker {
    color: var(--cv-accent);
    font-weight: 600;
}

.cv-article-body__inner img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2em 0;
    display: block;
}

.cv-article-body__inner figure {
    margin: 2.5em 0;
}

.cv-article-body__inner figcaption {
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
    text-align: center;
    margin-top: 0.75rem;
    font-style: italic;
}

.cv-article-body__inner hr {
    border: none;
    border-top: 1px solid var(--cv-border-light);
    margin: 3em auto;
    width: 40%;
}

.cv-article-body__inner table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 0.9375rem;
}

.cv-article-body__inner th {
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--cv-border);
    color: var(--cv-text);
}

.cv-article-body__inner td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--cv-border-light);
    color: var(--cv-text-secondary);
}

.cv-article-body__inner pre,
.cv-article-body__inner code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    background: var(--cv-bg-alt);
    border-radius: 6px;
}

.cv-article-body__inner code {
    padding: 0.15em 0.4em;
}

.cv-article-body__inner pre {
    padding: 1.25rem;
    overflow-x: auto;
    border: 1px solid var(--cv-border-light);
}

.cv-article-body__inner pre code {
    background: none;
    padding: 0;
}

/* Pull-quote / aside ? full-width accent block */
.cv-article-body__inner .wp-block-pullquote {
    border-top: 3px solid var(--cv-accent);
    border-bottom: 3px solid var(--cv-accent);
    padding: 2rem 0;
    margin: 2.5em 0;
    text-align: center;
}

.cv-article-body__inner .wp-block-pullquote p {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-style: italic;
    color: var(--cv-text);
    line-height: 1.5;
}

/* Gallery */
.cv-article-body__inner .wp-block-gallery {
    padding-left: 0;
    gap: 0.75rem;
}

/* Cover image block */
.cv-article-body__inner .wp-block-cover {
    border-radius: 16px;
    overflow: hidden;
    margin: 2em 0;
}

/* Image with border */
.cv-article-body__inner .wp-block-image.is-style-rounded img {
    border-radius: 50%;
}

/* ?? Article Footer ??????????????????????????????????? */
.cv-article-footer {
    border-top: 1px solid var(--cv-border-light);
    padding-top: var(--space-lg);
    padding-bottom: var(--space-xl);
}

.cv-article-footer__inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Tags */
.cv-article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cv-article-tags__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cv-text-muted);
    margin-right: 0.25rem;
}

.cv-article-tag {
    display: inline-flex;
    padding: 0.3rem 0.875rem;
    border-radius: 50px;
    border: 1px solid var(--cv-border);
    font-size: 0.8125rem;
    color: var(--cv-text-secondary);
    text-decoration: none;
    transition:
        color var(--duration-fast),
        border-color var(--duration-fast),
        background var(--duration-fast);
}

.cv-article-tag:hover {
    color: var(--cv-text);
    border-color: var(--cv-text-muted);
    background: var(--cv-bg-alt);
}

/* Footer share variant */
.cv-article-share--footer {
    justify-content: flex-start;
}

/* Author bio */
.cv-author-bio {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--cv-bg-alt);
    border-radius: 16px;
    border: 1px solid var(--cv-border-light);
}

.cv-author-bio__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cv-accent-light), var(--cv-accent));
    color: var(--cv-surface);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cv-author-bio__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cv-text-muted);
    margin-bottom: 0.3rem;
}

.cv-author-bio__name {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cv-text);
    margin-bottom: 0.5rem;
}

.cv-author-bio__text {
    font-size: 0.9375rem;
    color: var(--cv-text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ?? Related Articles ????????????????????????????????? */
.cv-related-articles {
    background: var(--cv-bg-alt);
    border-top: 1px solid var(--cv-border-light);
}

.cv-related-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.cv-related-articles__cta {
    text-align: center;
    margin-top: 2rem;
}

/* ?? Responsive ??????????????????????????????????????? */
@media (max-width: 992px) {
    .cv-related-articles__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cv-article-hero-img {
        height: clamp(220px, 40vw, 360px);
    }

    .cv-article-energy-banner__inner {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .cv-article-energy-banner__cta {
        width: 100%;
        justify-content: center;
    }

    .cv-article-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .cv-article-body__inner p,
    .cv-article-body__inner li {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .cv-related-articles__grid {
        grid-template-columns: 1fr;
    }

    .cv-author-bio {
        flex-direction: column;
    }
}

/* ???????????????????????????????????????????????????????????
   USER AUTHENTICATION ? Modal, Login, Register Pages
   ??????????????????????????????????????????????????????????? */

/* ?? Auth Modal Overlay ???????????????????????????????????? */
.cv-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal), visibility var(--duration-normal);
}

.cv-auth-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.cv-auth-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 25, 21, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cv-auth-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--cv-surface);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 24px 64px rgba(26, 25, 21, 0.2);
    transform: translateY(20px) scale(0.97);
    transition: transform var(--duration-normal);
}

.cv-auth-modal[aria-hidden="false"] .cv-auth-panel {
    transform: translateY(0) scale(1);
}

.cv-auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--cv-text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 8px;
    transition: color var(--duration-fast), background var(--duration-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-auth-close:hover {
    color: var(--cv-text);
    background: var(--cv-bg-alt);
}

.cv-auth-tab-content {
    animation: cvFadeIn var(--duration-normal) ease;
}

@keyframes cvFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.cv-auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cv-auth-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 500;
    color: var(--cv-text);
    margin: 0 0 0.5rem;
}

.cv-auth-subtitle {
    font-size: 0.9375rem;
    color: var(--cv-text-muted);
    margin: 0;
}

/* ?? Auth Form ????????????????????????????????????????????? */
.cv-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cv-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cv-form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cv-text-secondary);
    letter-spacing: 0.02em;
}

.cv-form-group input[type="text"],
.cv-form-group input[type="email"],
.cv-form-group input[type="password"],
.cv-form-group input[type="tel"],
.cv-form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--cv-border);
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    color: var(--cv-text);
    background: var(--cv-surface);
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
    outline: none;
}

.cv-form-group select {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 1rem;
    border: 1.5px solid var(--cv-border);
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    color: var(--cv-text);
    background-color: var(--cv-surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236b6560' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    appearance: none;
    cursor: pointer;
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
    outline: none;
}

.cv-form-group textarea {
    min-height: 100px;
    line-height: 1.55;
    resize: vertical;
}

.cv-form-group input::placeholder,
.cv-form-group textarea::placeholder {
    color: var(--cv-text-muted);
    opacity: 0.6;
}

.cv-form-group input:focus,
.cv-form-group select:focus,
.cv-form-group textarea:focus {
    border-color: var(--cv-accent);
    box-shadow: 0 0 0 3px rgba(184, 149, 110, 0.15);
}

.cv-form-group input.is-error,
.cv-form-group select.is-error,
.cv-form-group textarea.is-error {
    border-color: #D95F5F;
    box-shadow: 0 0 0 3px rgba(217, 95, 95, 0.12);
    animation: cvShake 0.4s ease;
}

@keyframes cvShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.cv-form-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cv-form-row--between {
    justify-content: space-between;
}

.cv-form-row--center {
    justify-content: center;
}

.cv-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
    cursor: pointer;
    user-select: none;
}

.cv-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--cv-accent);
    cursor: pointer;
    flex-shrink: 0;
}

.cv-auth-link {
    font-size: 0.875rem;
    color: var(--cv-accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity var(--duration-fast);
}

.cv-auth-link:hover {
    opacity: 0.75;
}

.cv-auth-link a {
    color: var(--cv-accent);
    text-decoration: none;
}

.cv-auth-link a:hover {
    text-decoration: underline;
}

/* ?? Password Strength ????????????????????????????????????? */
.cv-password-strength {
    height: 3px;
    background: var(--cv-border);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.cv-strength-bar {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 2px;
    background: #D95F5F;
    transition: width var(--duration-normal), background var(--duration-normal);
}

.cv-strength-bar[data-strength="1"] { width: 33%; background: #D95F5F; }
.cv-strength-bar[data-strength="2"] { width: 66%; background: #D4A843; }
.cv-strength-bar[data-strength="3"] { width: 100%; background: #4A7C59; }

/* ?? Password Toggle ??????????????????????????????????????? */
.cv-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cv-password-wrap input {
    flex: 1;
    padding-right: 2.75rem !important;
}

.cv-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--cv-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color var(--duration-fast);
    line-height: 1;
}

.cv-password-toggle:hover {
    color: var(--cv-text);
}

.cv-password-wrap.is-visible input {
    letter-spacing: normal;
}

/* ?? Form Messages ????????????????????????????????????????? */
.cv-form-message {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    animation: cvFadeIn var(--duration-normal) ease;
}

.cv-form-message.is-error {
    background: rgba(217, 95, 95, 0.1);
    color: #C04040;
    border: 1px solid rgba(217, 95, 95, 0.25);
}

.cv-form-message.is-success {
    background: rgba(74, 124, 89, 0.1);
    color: #3A6B49;
    border: 1px solid rgba(74, 124, 89, 0.25);
}

/* ?? Auth Submit Button ???????????????????????????????????? */
.cv-auth-submit {
    margin-top: 0.5rem;
    position: relative;
}

.cv-auth-submit .cv-auth-submit-loading {
    display: none;
}

.cv-auth-submit.is-loading .cv-auth-submit-text {
    opacity: 0;
}

.cv-auth-submit.is-loading .cv-auth-submit-loading {
    display: block;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ?? Auth Footer ??????????????????????????????????????????? */
.cv-auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cv-border-light);
    margin-top: 1.5rem;
}

.cv-auth-footer p {
    font-size: 0.9rem;
    color: var(--cv-text-muted);
    margin: 0;
}

/* ?? Auth Divider ?????????????????????????????????????????? */
.cv-auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--cv-text-muted);
    font-size: 0.8125rem;
}

.cv-auth-divider::before,
.cv-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--cv-border-light);
}

/* ?? Social Auth Buttons ??????????????????????????????????? */
.cv-auth-social {
    display: flex;
    gap: 0.75rem;
}

.cv-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: 1.5px solid var(--cv-border);
    border-radius: 10px;
    background: var(--cv-surface);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cv-text-secondary);
    cursor: pointer;
    transition: border-color var(--duration-fast), background var(--duration-fast);
}

.cv-social-btn:hover:not(:disabled) {
    border-color: var(--cv-text-muted);
    background: var(--cv-bg-alt);
}

.cv-social-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ???????????????????????????????????????????????????????????
   AUTH PAGE (Login / Register full page layout)
   ??????????????????????????????????????????????????????????? */

.cv-auth-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: stretch;
}

.cv-auth-page-inner {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 80px);
}

/* ????? */
.cv-auth-page-brand {
    flex: 0 0 45%;
    background: linear-gradient(145deg, var(--cv-bg-dark), #2A2720);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.cv-auth-page-brand::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 149, 110, 0.15), transparent 70%);
    top: -100px;
    right: -100px;
}

.cv-auth-page-brand::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 149, 110, 0.08), transparent 70%);
    bottom: -80px;
    left: -80px;
}

.cv-auth-brand-content {
    position: relative;
    z-index: 1;
    max-width: 400px;
    width: 100%;
}

.cv-auth-brand-content .cv-logo {
    font-size: 1.75rem;
    margin-bottom: 3rem;
    display: inline-block;
}

.cv-auth-brand-text {
    margin-bottom: 3rem;
}

.cv-auth-brand-text h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 500;
    color: var(--cv-surface);
    margin: 0 0 1rem;
    line-height: 1.3;
}

.cv-auth-brand-text p {
    font-size: 1rem;
    color: rgba(253, 251, 247, 0.6);
    line-height: 1.7;
    margin: 0;
}

.cv-auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cv-auth-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(253, 251, 247, 0.8);
    font-size: 0.9375rem;
}

.cv-auth-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(184, 149, 110, 0.2);
    color: var(--cv-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ????? */
.cv-auth-page-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: var(--cv-surface);
}

.cv-auth-page-form-inner {
    width: 100%;
    max-width: 480px;
}

.cv-auth-form-card {
    animation: cvFadeIn var(--duration-normal) ease;
}

.cv-auth-form-header {
    margin-bottom: 2rem;
}

.cv-auth-form-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--cv-text);
    margin: 0 0 0.5rem;
}

.cv-auth-form-header p {
    font-size: 0.9375rem;
    color: var(--cv-text-muted);
    margin: 0;
}

.cv-auth-form-header p a {
    color: var(--cv-accent);
    text-decoration: none;
    font-weight: 500;
}

.cv-auth-form-header p a:hover {
    text-decoration: underline;
}

/* ???? */
.cv-auth-success {
    text-align: center;
    padding: 2rem 0;
    animation: cvFadeIn var(--duration-normal) ease;
}

.cv-auth-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(74, 124, 89, 0.1);
    color: #4A7C59;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.cv-auth-success h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--cv-text);
    margin: 0 0 0.75rem;
}

.cv-auth-success p {
    font-size: 0.9375rem;
    color: var(--cv-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ???????????????????????????????????????????????????????????
   ACCOUNT PAGE
   ??????????????????????????????????????????????????????????? */

.cv-account-page {
    /* ????? 72?96px??????????????? */
    padding-top: max(7rem, 6.25rem + env(safe-area-inset-top, 0px));
    padding-bottom: 3rem;
    min-height: calc(100vh - 80px);
}

/* ??????????????? container ????? */
.cv-account-page > .container {
    padding-left: clamp(1.75rem, 5.5vw, 5rem);
    padding-right: clamp(1.75rem, 5.5vw, 5rem);
}

.cv-account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--cv-border-light);
    margin-bottom: 2.5rem;
}

.cv-account-welcome {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cv-account-avatar {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.cv-account-avatar-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cv-border-light);
}

.cv-account-avatar-initial {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cv-accent-light), var(--cv-accent));
    color: var(--cv-surface);
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

img.cv-account-avatar-img + .cv-account-avatar-initial,
.cv-account-avatar img:not([src]) + .cv-account-avatar-initial {
    display: none;
}

.cv-account-avatar:not(:has(img[src])) .cv-account-avatar-initial,
.cv-account-avatar-initial:only-child {
    display: flex;
}

.cv-account-info h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 500;
    color: var(--cv-text);
    margin: 0 0 0.25rem;
}

.cv-account-info h1 span {
    color: var(--cv-accent);
}

.cv-account-meta {
    font-size: 0.875rem;
    color: var(--cv-text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cv-account-meta-divider {
    color: var(--cv-border);
}

.cv-account-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Account Layout */
.cv-account-content {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Account Sidebar Nav */
.cv-account-sidebar {
    position: sticky;
    top: 100px;
}

.cv-account-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: var(--cv-surface);
    border: 1px solid var(--cv-border-light);
    border-radius: 16px;
    padding: 0.75rem;
}

.cv-account-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--cv-text-secondary);
    cursor: pointer;
    text-decoration: none;
    text-align: left;
    width: 100%;
    transition: background var(--duration-fast), color var(--duration-fast);
}

.cv-account-nav-item:hover {
    background: var(--cv-bg-alt);
    color: var(--cv-text);
}

.cv-account-nav-item.active {
    background: rgba(184, 149, 110, 0.12);
    color: var(--cv-accent);
}

.cv-account-nav-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--cv-accent);
    color: var(--cv-surface);
    font-size: 0.6875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ????????????? nav-item ???? */
.cv-account-nav > .cv-account-logout {
    margin-top: 0.75rem;
    color: var(--cv-text-muted);
}

.cv-account-nav > .cv-account-logout:hover {
    background: rgba(220, 38, 38, 0.06);
    color: #dc2626;
}

/* Account Main */
.cv-account-main {
    min-width: 0;
}

.cv-account-tab {
    display: none;
    animation: cvFadeIn var(--duration-normal) ease;
}

.cv-account-tab.active {
    display: block;
}

.cv-account-section h2 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--cv-text);
    margin: 0 0 1.5rem;
}

/* Account ? Address tab: section rhythm, column gaps, tel inputs aligned with other fields */
#tab-address .cv-account-section + .cv-account-section {
    margin-top: 2.75rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--cv-border-light);
}

#tab-address .cv-auth-form {
    gap: 1.5rem;
}

#tab-address .cv-form-row {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem 1.25rem;
}

#tab-address .cv-form-row > .cv-form-group {
    flex: 1 1 0;
    min-width: 0;
}

#tab-address .cv-form-row:has(> .cv-form-group:nth-child(2):last-child) > .cv-form-group {
    flex: 1 1 calc(50% - 0.625rem);
    min-width: min(100%, 160px);
}

#tab-address .cv-form-row:has(> .cv-form-group:nth-child(3):last-child) > .cv-form-group {
    flex: 1 1 calc(33.333% - 0.85rem);
    min-width: min(100%, 7.5rem);
}

#tab-address .cv-form-group input[type="text"] + input[type="text"] {
    margin-top: 0.625rem;
}

#tab-address .cv-auth-form .cv-auth-submit {
    margin-top: 0.25rem;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 640px) {
    #tab-address .cv-form-row > .cv-form-group {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

/* Account Overview Grid */
.cv-account-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.cv-account-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--cv-surface);
    border: 1px solid var(--cv-border-light);
    border-radius: 16px;
    transition: box-shadow var(--duration-fast);
}

.cv-account-card:hover {
    box-shadow: 0 4px 20px rgba(26, 25, 21, 0.06);
}

.cv-account-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(184, 149, 110, 0.1);
    color: var(--cv-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cv-account-card-content {
    flex: 1;
    min-width: 0;
}

.cv-account-card-content h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cv-text);
    margin: 0 0 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cv-account-card-content p {
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
    margin: 0;
}

.cv-account-card-action {
    flex-shrink: 0;
    padding: 0.4rem 0.875rem;
    border: 1.5px solid var(--cv-border);
    border-radius: 8px;
    background: none;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cv-text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: border-color var(--duration-fast), color var(--duration-fast), background var(--duration-fast);
}

.cv-account-card-action:hover {
    border-color: var(--cv-accent);
    color: var(--cv-accent);
}

/* Account Orders */
.cv-account-orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cv-account-order-item {
    background: var(--cv-surface);
    border: 1px solid var(--cv-border-light);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    transition: box-shadow var(--duration-fast);
}

.cv-account-order-item:hover {
    box-shadow: 0 4px 20px rgba(26, 25, 21, 0.06);
}

.cv-account-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cv-account-order-id {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--cv-text);
}

.cv-account-order-status {
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.cv-account-order-status--completed {
    background: rgba(74, 124, 89, 0.1);
    color: #4A7C59;
}

.cv-account-order-status--processing {
    background: rgba(184, 149, 110, 0.1);
    color: var(--cv-accent);
}

.cv-account-order-status--on-hold {
    background: rgba(184, 149, 110, 0.1);
    color: var(--cv-accent);
}

.cv-account-order-status--pending {
    background: rgba(212, 168, 67, 0.1);
    color: #C49A3A;
}

.cv-account-order-status--cancelled,
.cv-account-order-status--failed {
    background: rgba(217, 95, 95, 0.1);
    color: #C04040;
}

.cv-account-order-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.cv-account-order-date,
.cv-account-order-total,
.cv-account-order-items-count {
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
}

.cv-account-order-label {
    color: var(--cv-text-muted);
    margin-right: 0.25rem;
}

.cv-account-order-actions {
    padding-top: 0.75rem;
    border-top: 1px solid var(--cv-border-light);
}

.cv-account-orders-more {
    margin-top: 1.5rem;
    text-align: center;
}

/* Account Empty State */
.cv-account-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.cv-account-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--cv-bg-alt);
    color: var(--cv-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.cv-account-empty h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--cv-text);
    margin: 0 0 0.5rem;
}

.cv-account-empty p {
    font-size: 0.9375rem;
    color: var(--cv-text-muted);
    margin: 0 0 1.5rem;
}

/* ???????????????????????????????????????????????????????????
   RESPONSIVE ? Auth & Account Pages
   ??????????????????????????????????????????????????????????? */

@media (max-width: 768px) {
    .cv-auth-page-inner {
        flex-direction: column;
    }

    .cv-auth-page-brand {
        flex: none;
        min-height: auto;
        padding: 2.5rem 1.5rem;
    }

    .cv-auth-brand-content .cv-logo {
        margin-bottom: 2rem;
    }

    .cv-auth-brand-text {
        margin-bottom: 2rem;
    }

    .cv-auth-brand-features {
        display: none;
    }

    .cv-auth-page-form {
        padding: 2rem 1.5rem;
    }

    .cv-auth-panel {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .cv-account-content {
        grid-template-columns: 1fr;
    }

    .cv-account-sidebar {
        position: static;
    }

    .cv-account-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .cv-account-nav-item {
        flex: 1 1 auto;
        justify-content: center;
        min-width: 120px;
        padding: 0.5rem 0.75rem;
    }

    .cv-account-nav-item span:not(.cv-account-nav-badge) {
        display: none;
    }

    .cv-account-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cv-account-welcome {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cv-account-actions {
        width: 100%;
    }

    .cv-account-actions .cv-btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .cv-auth-form {
        gap: 1rem;
    }

    .cv-account-nav-item {
        min-width: 80px;
        font-size: 0.8125rem;
    }

    .cv-account-overview-grid {
        grid-template-columns: 1fr;
    }

    .cv-account-card {
        flex-wrap: wrap;
    }

    .cv-account-order-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ========================================
   Cart Sidebar
   ======================================== */
.cv-cart-sidebar {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    visibility: hidden;
}

.cv-cart-sidebar.is-open {
    pointer-events: all;
    visibility: visible;
}

.cv-cart-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 25, 21, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.cv-cart-sidebar.is-open .cv-cart-overlay {
    opacity: 1;
}

.cv-cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100%;
    height: 100%;
    background: var(--cv-surface);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 40px rgba(26, 25, 21, 0.12);
}

.cv-cart-sidebar.is-open .cv-cart-panel {
    transform: translateX(0);
}

.cv-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--cv-border-light);
    flex-shrink: 0;
}

.cv-cart-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--cv-text);
    margin: 0;
}

.cv-cart-title span {
    font-weight: 400;
    color: var(--cv-text-muted);
}

.cv-cart-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--cv-text-muted);
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
}

.cv-cart-close:hover {
    background: var(--cv-border-light);
    color: var(--cv-text);
}

.cv-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1.75rem;
}

.cv-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 300px;
    gap: 1rem;
    color: var(--cv-text-muted);
}

.cv-cart-empty svg {
    opacity: 0.35;
}

.cv-cart-empty p {
    font-size: 1rem;
    color: var(--cv-text-secondary);
}

/* Scoped to drawer only — same .cv-cart-item class is used on <tr> in page cart table */
.cv-cart-sidebar .cv-cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cv-cart-sidebar .cv-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    align-items: start;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--cv-border-light);
}

.cv-cart-sidebar .cv-cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cv-cart-sidebar .cv-cart-item-img-wrap {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--cv-bg-alt);
    flex-shrink: 0;
}

.cv-cart-sidebar .cv-cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.cv-cart-sidebar .cv-cart-item-img--placeholder {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background: var(--cv-bg-alt);
}

.cv-cart-sidebar .cv-cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.cv-cart-sidebar .cv-cart-item-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--cv-text);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cv-cart-sidebar .cv-cart-item-name:hover {
    color: var(--cv-accent);
}

.cv-cart-sidebar .cv-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--cv-border);
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}

.cv-cart-sidebar .cv-cart-qty-btn {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--cv-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.cv-cart-sidebar .cv-cart-qty-btn:hover {
    background: var(--cv-border-light);
    color: var(--cv-text);
}

.cv-cart-sidebar .cv-cart-qty-input {
    width: 36px;
    height: 30px;
    border: none;
    border-left: 1px solid var(--cv-border);
    border-right: 1px solid var(--cv-border);
    text-align: center;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    color: var(--cv-text);
    background: var(--cv-surface);
    -moz-appearance: textfield;
}

.cv-cart-sidebar .cv-cart-qty-input::-webkit-outer-spin-button,
.cv-cart-sidebar .cv-cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.cv-cart-sidebar .cv-cart-item-price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cv-text);
}

.cv-cart-sidebar .cv-cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--cv-text-muted);
    padding: 0.25rem;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    display: flex;
    align-items: center;
    margin-top: 0.25rem;
}

.cv-cart-sidebar .cv-cart-item-remove:hover {
    color: #D95F5F;
    background: rgba(217, 95, 95, 0.08);
}

.cv-cart-footer {
    padding: 1.5rem 1.75rem;
    border-top: 1px solid var(--cv-border-light);
    background: var(--cv-surface);
    flex-shrink: 0;
}

.cv-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--cv-text);
    margin-bottom: 0.5rem;
}

.cv-cart-shipping-note {
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
    margin-bottom: 1.25rem;
}

.cv-cart-view-cart {
    display: block;
    text-align: center;
    margin-top: 0.875rem;
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

.cv-cart-view-cart:hover {
    color: var(--cv-accent);
}

/* ========================================
   Cart Icon Badge
   ======================================== */
.cv-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    background: var(--cv-accent);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    pointer-events: none;
}

/* ========================================
   Toast Notification
   ======================================== */
.cv-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 2rem));
    z-index: 99999;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    pointer-events: none;
}

.cv-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cv-toast-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--cv-text);
    color: var(--cv-text-inverse);
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(26, 25, 21, 0.2);
    font-size: 0.9375rem;
    white-space: nowrap;
    max-width: 90vw;
}

.cv-toast.is-error .cv-toast-inner {
    background: #C0392B;
}

.cv-toast-icon {
    color: #6FCF97;
    flex-shrink: 0;
}

.cv-toast.is-error .cv-toast-icon {
    color: rgba(255, 255, 255, 0.7);
}

.cv-toast-message {
    flex: 1;
    min-width: 0;
}

.cv-toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color 0.15s;
}

.cv-toast-close:hover {
    color: white;
}

/* ========================================
   Add to Cart Button Loading State
   ======================================== */
.cv-shop-card-atc,
.cv-add-to-cart-btn {
    position: relative;
}

.cv-shop-card-atc.is-loading,
.cv-add-to-cart-btn.is-loading {
    pointer-events: none;
    opacity: 0.75;
}

/* ========================================
   WooCommerce ? Cart Page
   ======================================== */

/* Page header (inside cv-cart-page / cv-checkout-page sections) */
.cv-page-header {
    padding: 2rem 0 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--cv-border-light);
}

.cv-page-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--cv-text);
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.cv-page-subtitle {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--cv-text-secondary);
    margin: 0;
}

/* ========================================
   Contact Page
   ======================================== */

.cv-contact-page {
    padding-top: calc(var(--header-height, 73px) + clamp(3rem, 6vw, 6rem));
}

/* Hero */
.cv-contact-hero {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(2.5rem, 5vw, 5rem);
}

.cv-contact-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    color: var(--cv-text);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
}

.cv-contact-subtitle {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--cv-text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

/* 2-column layout */
.cv-contact-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
    margin-bottom: clamp(4rem, 8vw, 8rem);
}

/* Info cards */
.cv-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cv-contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--cv-surface);
    border: 1px solid var(--cv-border-light);
    border-radius: 16px;
    padding: 1.5rem;
    transition: border-color var(--duration-fast) var(--ease-out);
}

.cv-contact-info-card:hover {
    border-color: var(--cv-accent-light);
}

.cv-contact-info-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cv-accent-light), var(--cv-accent));
    border-radius: 12px;
    color: white;
}

.cv-contact-info-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cv-text-muted);
    margin: 0 0 0.25rem;
}

.cv-contact-info-value {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--cv-text);
    line-height: 1.5;
    text-decoration: none;
    transition: color var(--duration-fast);
}

a.cv-contact-info-value:hover {
    color: var(--cv-accent);
}

/* Social links */
.cv-contact-social {
    background: var(--cv-surface);
    border: 1px solid var(--cv-border-light);
    border-radius: 16px;
    padding: 1.5rem;
}

.cv-contact-social-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cv-text-muted);
    margin: 0 0 0.875rem;
}

.cv-contact-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.cv-contact-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--cv-bg-alt);
    border: 1px solid var(--cv-border);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cv-text-secondary);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out);
}

a.cv-contact-social-btn:hover {
    background: var(--cv-text);
    border-color: var(--cv-text);
    color: var(--cv-bg);
}

/* Form card */
.cv-contact-form-wrap {
    position: sticky;
    top: calc(var(--header-height, 73px) + 2rem);
}

.cv-contact-form-card {
    background: var(--cv-surface);
    border: 1px solid var(--cv-border-light);
    border-radius: 24px;
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: 0 4px 32px rgba(26, 25, 21, 0.04);
}

.cv-contact-form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--cv-text);
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.cv-contact-form-desc {
    font-size: 0.9375rem;
    color: var(--cv-text-secondary);
    margin: 0 0 2rem;
    line-height: 1.6;
}

.cv-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cv-contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Contact: slightly taller message field (inherits .cv-form-group textarea) */
.cv-contact-form textarea {
    min-height: 120px;
}

/* Consent */
.cv-contact-form-consent {
    padding: 0.25rem 0;
}

.cv-contact-form-consent .cv-checkbox-label {
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.cv-contact-form-consent .cv-checkbox-custom {
    margin-top: 2px;
    flex-shrink: 0;
}

.cv-contact-form-consent span {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--cv-text-secondary);
}

.cv-contact-form-consent a {
    color: var(--cv-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cv-contact-form-consent a:hover {
    color: var(--cv-accent-dark);
}

/* Submit button */
.cv-contact-submit {
    margin-top: 0.5rem;
    height: 52px;
    font-size: 0.9375rem;
}

.cv-contact-submit-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Success state */
.cv-contact-form-success {
    text-align: center;
    padding: 3rem 1.5rem;
}

.cv-contact-form-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--cv-accent-light), var(--cv-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.cv-contact-form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--cv-text);
    margin: 0 0 0.75rem;
}

.cv-contact-form-success p {
    font-size: 0.9375rem;
    color: var(--cv-text-secondary);
    line-height: 1.7;
    margin: 0 auto;
    max-width: 360px;
}

/* Spinner */
.cv-spinner {
    animation: cv-spin 0.8s linear infinite;
}

@keyframes cv-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ========================================
   FAQ Accordion
   ======================================== */

.cv-contact-faq {
    border-top: 1px solid var(--cv-border-light);
    padding-top: clamp(3rem, 6vw, 6rem);
    max-width: 760px;
    margin: 0 auto;
}

.cv-contact-faq-header {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.cv-contact-faq-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 500;
    color: var(--cv-text);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.cv-contact-faq-subtitle {
    font-size: 1rem;
    color: var(--cv-text-secondary);
    margin: 0;
    line-height: 1.6;
}

.cv-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cv-faq-item {
    background: var(--cv-surface);
    border: 1px solid var(--cv-border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color var(--duration-fast);
}

.cv-faq-item:has(.cv-faq-answer:not([hidden])) {
    border-color: var(--cv-accent-light);
}

.cv-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.375rem 1.75rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--cv-text);
    transition: color var(--duration-fast);
}

.cv-faq-question:hover {
    color: var(--cv-accent);
}

.cv-faq-question span {
    flex: 1;
}

.cv-faq-chevron {
    flex-shrink: 0;
    color: var(--cv-text-muted);
    transition: transform var(--duration-base) var(--ease-out);
}

.cv-faq-item:has(.cv-faq-answer:not([hidden])) .cv-faq-chevron {
    transform: rotate(180deg);
}

.cv-faq-answer {
    display: none;
    padding: 0 1.75rem 1.5rem;
    border-top: 1px solid var(--cv-border-light);
}

.cv-faq-answer:not([hidden]) {
    display: block;
}

.cv-faq-answer p {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--cv-text-secondary);
    margin: 1.125rem 0 0;
}

.cv-faq-answer a {
    color: var(--cv-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cv-faq-answer a:hover {
    color: var(--cv-accent-dark);
}

/* ========================================
   Legal Pages (Privacy / Terms / Cookie)
   ======================================== */

.cv-legal-page {
    padding-top: calc(var(--header-height, 73px) + clamp(3rem, 6vw, 5rem));
    padding-bottom: clamp(4rem, 8vw, 8rem);
}

.cv-legal-hero {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.cv-legal-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
    margin-bottom: 1.25rem;
}

.cv-legal-breadcrumb a {
    color: var(--cv-text-secondary);
    text-decoration: none;
    transition: color var(--duration-fast);
}

.cv-legal-breadcrumb a:hover {
    color: var(--cv-accent);
}

.cv-legal-breadcrumb span {
    opacity: 0.5;
}

.cv-legal-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--cv-text);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

.cv-legal-intro {
    font-size: 0.9375rem;
    color: var(--cv-text-muted);
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--cv-border-light);
}

/* Table of Contents */
.cv-legal-toc {
    background: var(--cv-bg-alt);
    border: 1px solid var(--cv-border-light);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.cv-legal-toc-title {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cv-text-muted);
    margin: 0 0 1rem;
}

.cv-legal-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cv-legal-toc-list a {
    font-size: 0.9375rem;
    color: var(--cv-text-secondary);
    text-decoration: none;
    line-height: 1.7;
    transition: color var(--duration-fast);
    display: inline;
}

.cv-legal-toc-list a:hover {
    color: var(--cv-accent);
}

/* Body content */
.cv-legal-body {
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 5vw, 4rem);
}

.cv-legal-section {
    padding-top: clamp(2.5rem, 5vw, 4rem);
    border-top: 1px solid var(--cv-border-light);
}

.cv-legal-section:first-child {
    padding-top: 0;
    border-top: none;
}

.cv-legal-section h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 500;
    color: var(--cv-text);
    margin: 0 0 1.25rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.cv-legal-section p {
    font-size: 0.9375rem;
    line-height: 1.85;
    color: var(--cv-text-secondary);
    margin: 0 0 1rem;
}

.cv-legal-section p:last-child {
    margin-bottom: 0;
}

.cv-legal-section h3 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--cv-text);
    margin: 1.75rem 0 0.75rem;
    letter-spacing: 0;
}

.cv-legal-section ul {
    margin: 0 0 1.25rem 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.cv-legal-section ul li {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--cv-text-secondary);
    padding-left: 0.25rem;
}

.cv-legal-section ul li strong {
    color: var(--cv-text);
    font-weight: 600;
}

.cv-legal-section a {
    color: var(--cv-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cv-legal-section a:hover {
    color: var(--cv-accent-dark);
}

/* Table for Cookie Policy */
.cv-legal-table-wrap {
    overflow-x: auto;
    margin: 1.25rem 0;
    border-radius: 12px;
    border: 1px solid var(--cv-border-light);
}

.cv-legal-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    min-width: 560px;
}

.cv-legal-table-wrap thead {
    background: var(--cv-bg-alt);
}

.cv-legal-table-wrap th {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cv-text-muted);
    text-align: left;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--cv-border-light);
}

.cv-legal-table-wrap td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--cv-border-light);
    color: var(--cv-text-secondary);
    vertical-align: top;
    line-height: 1.5;
}

.cv-legal-table-wrap tr:last-child td {
    border-bottom: none;
}

.cv-legal-table-wrap td:first-child {
    color: var(--cv-text);
    font-weight: 500;
    white-space: nowrap;
}

/* ========================================
   WooCommerce pages: account for fixed header */
.cv-cart-page,
.cv-checkout-page {
    padding-top: calc(var(--header-height, 73px) + clamp(2.5rem, 5vw, 4.5rem));
    padding-bottom: clamp(3rem, 6vw, 6rem);
    background: var(--cv-bg);
    min-height: 60vh;
}

/* Cart layout */
.cv-cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

/* Empty cart */
.cv-cart-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 1rem;
}

.cv-cart-empty-icon {
    color: var(--cv-border);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.cv-cart-empty-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--cv-text);
    margin: 0 0 0.75rem;
}

.cv-cart-empty-text {
    font-size: 1rem;
    color: var(--cv-text-secondary);
    margin: 0 0 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Cart table — outer frame holds coupon bar so edges align */
.cv-cart-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--cv-border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--cv-surface);
}

.cv-cart-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    border-radius: 0;
    background: var(--cv-surface);
}

/* Ensure page cart rows stay table rows (class name shared with drawer mini-cart) */
.cv-cart-table tr.cv-cart-item {
    display: table-row;
}

.cv-cart-th {
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cv-text-secondary);
    background: var(--cv-bg-alt);
    border-bottom: 1px solid var(--cv-border);
    text-align: left;
}

.cv-cart-th--price,
.cv-cart-th--qty,
.cv-cart-th--subtotal {
    text-align: right;
    vertical-align: middle;
}

.cv-cart-th--remove {
    width: 48px;
    text-align: center;
}

.cv-cart-td {
    padding: 1.25rem;
    font-size: 0.9375rem;
    color: var(--cv-text);
    border-bottom: 1px solid var(--cv-border-light);
    vertical-align: middle;
}

.cv-cart-item:last-child .cv-cart-td {
    border-bottom: none;
}

/* Thumbnail */
.cv-cart-td--thumb {
    width: 100px;
    padding-right: 0;
}

.cv-cart-td--thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.cv-cart-td--thumb a {
    display: block;
}

/* Product name */
.cv-cart-td--name {
    font-weight: 500;
}

.cv-cart-td--name a {
    color: var(--cv-text);
    text-decoration: none;
    transition: color 0.15s;
}

.cv-cart-td--name a:hover {
    color: var(--cv-accent);
}

.cv-cart-td--name .cv-cart-backorder {
    font-size: 0.8125rem;
    color: #8B7355;
    margin: 0.25rem 0 0;
}

/* Variation data */
.cv-cart-td--name .woocommerce-product-attributes {
    margin-top: 0.35rem;
}

.cv-cart-td--name .woocommerce-product-attributes p {
    font-size: 0.8125rem;
    color: var(--cv-text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Price */
.cv-cart-td--price {
    text-align: right;
    white-space: nowrap;
    color: var(--cv-text);
}

/* Quantity */
.cv-cart-td--qty {
    text-align: right;
    white-space: nowrap;
    vertical-align: middle;
}

/* WooCommerce quantity input — − [qty] + stepper */
.cv-cart-td--qty .quantity {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid var(--cv-border);
    background: var(--cv-bg);
    min-height: 2.5rem;
}

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

.cv-cart-td--qty .qty {
    width: 3rem !important;
    min-width: 2.75rem;
    height: 2.5rem !important;
    min-height: 2.5rem !important;
    box-sizing: border-box !important;
    text-align: center;
    padding: 0 0.25rem !important;
    margin: 0 !important;
    font-size: 0.9375rem !important;
    font-family: var(--font-sans) !important;
    line-height: 2.5rem !important;
    border-radius: 0 !important;
    border: none !important;
    border-left: 1px solid var(--cv-border-light) !important;
    border-right: 1px solid var(--cv-border-light) !important;
    background: var(--cv-surface) !important;
    color: var(--cv-text) !important;
    -moz-appearance: textfield;
}

.cv-cart-td--qty .qty::-webkit-inner-spin-button,
.cv-cart-td--qty .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.cv-cart-td--qty .minus,
.cv-cart-td--qty .plus {
    width: 2.25rem !important;
    min-width: 2.25rem;
    flex-shrink: 0;
    height: 2.5rem !important;
    min-height: 2.5rem !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: var(--cv-bg-alt) !important;
    color: var(--cv-text) !important;
    font-size: 1.125rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.cv-cart-td--qty .minus span,
.cv-cart-td--qty .plus span {
    pointer-events: none;
}

.cv-cart-td--qty .minus:hover,
.cv-cart-td--qty .plus:hover {
    background: var(--cv-border-light) !important;
    color: var(--cv-accent) !important;
}

/* Subtotal */
.cv-cart-td--subtotal {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
    color: var(--cv-text);
}

/* Remove button */
.cv-cart-td--remove {
    text-align: center;
    width: 48px;
    padding-left: 0;
}

.cv-cart-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--cv-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.cv-cart-remove-btn:hover {
    background: #FEF2F2;
    color: #DC2626;
}

/* Coupon + actions: page template uses .cv-cart-actions-bar inside table wrap */
.cv-cart-actions-bar {
    padding: 1.25rem 1.5rem 1.35rem;
    border-top: 1px solid var(--cv-border-light);
    background: var(--cv-bg-alt);
}

/* Legacy: coupon row inside WC cart table (colspan row) */
.cv-cart-actions-row {
    background: transparent;
}

.cv-cart-actions-row td.cv-cart-actions-cell {
    padding: 1.25rem 1.5rem 1.35rem !important;
    border-top: 1px solid var(--cv-border-light) !important;
    background: var(--cv-bg-alt) !important;
    vertical-align: middle !important;
}

.cv-cart-actions-inner {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cv-cart-coupon {
    flex: 1 1 auto;
    min-width: min(100%, 280px);
    max-width: 420px;
}

.cv-cart-coupon-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cv-text-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.cv-cart-coupon-row {
    display: flex;
    align-items: stretch;
    gap: 0.625rem;
}

.cv-cart-coupon-input {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
}

.cv-cart-coupon-apply {
    flex-shrink: 0;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem !important;
}

/* Input shared style */
.cv-input {
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--cv-border);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--cv-text);
    background: var(--cv-surface);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.cv-input:focus {
    border-color: var(--cv-accent);
    box-shadow: 0 0 0 3px rgba(184, 149, 110, 0.12);
}

.cv-input::placeholder {
    color: var(--cv-text-muted);
}

/* ========================================
   WooCommerce ? Cart Totals Panel
   ======================================== */
.cv-cart-totals-col {
    position: sticky;
    top: calc(var(--header-height, 80px) + 1.5rem);
}

.cv-cart-totals-card,
.cart_totals {
    background: var(--cv-surface);
    border: 1px solid var(--cv-border);
    border-radius: 16px;
    padding: 1.75rem;
}

.cv-cart-totals-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--cv-text);
    margin: 0 0 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--cv-border-light);
}

.cv-cart-totals-table {
    width: 100%;
    border-collapse: collapse;
}

.cv-cart-totals-table tr {
    border-bottom: 1px solid var(--cv-border-light);
}

.cv-cart-totals-table tr:last-child {
    border-bottom: none;
}

.cv-cart-totals-table th {
    padding: 0.875rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cv-text-secondary);
    text-align: left;
}

.cv-cart-totals-table td {
    padding: 0.875rem 0;
    font-size: 0.9375rem;
    color: var(--cv-text);
    text-align: right;
    font-weight: 500;
}

.cv-cart-totals-table .order-total th,
.cv-cart-totals-table .order-total td {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--cv-text);
    border-top: 2px solid var(--cv-border);
}

.cv-cart-totals-table .order-total .amount {
    font-size: 1.375rem;
    font-weight: 700;
}

/* Proceed to checkout */
.cv-cart-proceed {
    margin-top: 1.5rem;
}

.cv-cart-proceed .wc-forward,
.cv-cart-proceed .cv-btn {
    display: block;
    width: 100%;
    text-align: center;
}

.cv-cart-continue-shopping {
    display: block;
    text-align: center;
    margin-top: 0.875rem;
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

.cv-cart-continue-shopping:hover {
    color: var(--cv-accent);
}

/* ========================================
   WooCommerce ? Checkout Page
   ======================================== */

.cv-checkout-page {
    padding: calc(var(--header-height, 73px) + clamp(2.5rem, 5vw, 4.5rem)) 0 clamp(3rem, 6vw, 6rem);
    background: var(--cv-bg);
    min-height: 60vh;
}

.cv-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 3rem;
    align-items: start;
}

.cv-checkout-forms-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem !important;
}

/* Reduce all form row spacing in checkout */
.cv-checkout-forms-inner .form-row {
    margin-bottom: 0.5rem !important;
    padding-bottom: 0 !important;
}

.cv-checkout-forms-inner .form-row label {
    margin-top: 0.25rem !important;
    margin-bottom: 0.125rem !important;
}

.cv-checkout-form-block h3 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--cv-text);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--cv-border-light);
}

/* ========================================
   WooCommerce ? Form Fields (Billing/Shipping)
   ======================================== */

/* Force all WooCommerce inputs to use theme styles */
body.woocommerce-checkout #payment .input-text,
body.woocommerce-checkout #payment input.input-text,
body.woocommerce-checkout #payment textarea,
body.woocommerce-checkout #payment select,
body.woocommerce-checkout .woocommerce form .input-text,
body.woocommerce-checkout .woocommerce form input.input-text,
body.woocommerce-checkout .woocommerce form textarea,
body.woocommerce-checkout .woocommerce form select,
.woocommerce form .input-text,
.woocommerce form input.input-text,
.woocommerce form textarea,
.woocommerce form select,
.woocommerce-billing-fields input,
.woocommerce-billing-fields select,
.woocommerce-billing-fields textarea,
.woocommerce-shipping-fields input,
.woocommerce-shipping-fields select,
.woocommerce-shipping-fields textarea,
.woocommerce-additional-fields input,
.woocommerce-additional-fields select,
.woocommerce-additional-fields textarea,
.cv-checkout-section input,
.cv-checkout-section select,
.cv-checkout-section textarea {
    padding: 0.75rem 1rem !important;
    border: 1px solid #e0ddd8 !important;
    border-radius: 14px !important;
    font-family: var(--font-sans) !important;
    font-size: 0.9375rem !important;
    color: #1a1915 !important;
    background: #ffffff !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
    width: 100% !important;
    line-height: 1.5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    height: 44px !important;
}

/* Hover state */
body.woocommerce-checkout #payment .input-text:hover,
body.woocommerce-checkout .woocommerce form .input-text:hover,
.woocommerce form .input-text:hover,
.woocommerce form input.input-text:hover,
.woocommerce form select:hover,
.woocommerce-billing-fields input:hover,
.woocommerce-billing-fields select:hover,
.woocommerce-billing-fields textarea:hover,
.woocommerce-shipping-fields input:hover,
.woocommerce-shipping-fields select:hover,
.woocommerce-shipping-fields textarea:hover,
.woocommerce-additional-fields input:hover,
.woocommerce-additional-fields select:hover,
.woocommerce-additional-fields textarea:hover,
.cv-checkout-section input:hover,
.cv-checkout-section select:hover,
.cv-checkout-section textarea:hover {
    border-color: #c9c4bc !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

/* Focus state */
body.woocommerce-checkout #payment .input-text:focus,
body.woocommerce-checkout .woocommerce form .input-text:focus,
.woocommerce form .input-text:focus,
.woocommerce form input.input-text:focus,
.woocommerce form textarea:focus,
.woocommerce form select:focus,
.woocommerce-billing-fields input:focus,
.woocommerce-billing-fields select:focus,
.woocommerce-billing-fields textarea:focus,
.woocommerce-shipping-fields input:focus,
.woocommerce-shipping-fields select:focus,
.woocommerce-shipping-fields textarea:focus,
.woocommerce-additional-fields input:focus,
.woocommerce-additional-fields select:focus,
.woocommerce-additional-fields textarea:focus,
.cv-checkout-section input:focus,
.cv-checkout-section select:focus,
.cv-checkout-section textarea:focus {
    border-color: #b8956e !important;
    box-shadow: 0 0 0 4px rgba(184, 149, 110, 0.1), 0 4px 12px rgba(184, 149, 110, 0.08) !important;
    background: #ffffff !important;
    transform: translateY(-1px);
}

/* Remove browser autofill yellow/blue overrides */
.woocommerce form input.input-text:-webkit-autofill,
.woocommerce form input.input-text:-webkit-autofill:hover,
.woocommerce form input.input-text:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #1a1915 !important;
    border-color: #e0ddd8 !important;
}

/* Field labels */
body.woocommerce-checkout .woocommerce form .form-row label,
.woocommerce form .form-row label {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #5c5952 !important;
    letter-spacing: 0.03em !important;
    margin-bottom: 0.25rem !important;
    margin-top: 0.5rem !important;
    display: block !important;
    text-transform: uppercase !important;
}

.woocommerce form .form-row:first-child label {
    margin-top: 0 !important;
}

/* Reduce gap between form rows */
.woocommerce form .form-row {
    margin-bottom: 0.5rem !important;
    padding-bottom: 0 !important;
}

/* WooCommerce form row spacing */
.woocommerce-page .form-row {
    margin-bottom: 0.5rem !important;
}

#billing_country_field,
#shipping_country_field {
    margin-bottom: 0.5rem !important;
}

.woocommerce form .form-row label .required {
    color: #b8956e !important;
    font-weight: 700 !important;
}

/* Select / Dropdown styling - match input height exactly */
body.woocommerce-checkout select,
.woocommerce form select,
.woocommerce-billing-fields select,
.woocommerce-shipping-fields select,
.woocommerce-additional-fields select,
.cv-checkout-section select {
    padding: 0.75rem 2.5rem 0.75rem 1rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235c5952' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.875rem center !important;
    background-size: 14px !important;
    cursor: pointer !important;
    height: 44px !important;
    line-height: normal !important;
}

/* Select2 container - match input height exactly */
.select2-container .select2-choice,
.select2-container--default .select2-selection--single {
    padding: 0 !important;
    background-image: none !important;
    border: 1px solid #e0ddd8 !important;
    border-radius: 14px !important;
    background-color: #ffffff !important;
    height: 44px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    font-family: var(--font-sans) !important;
    font-size: 0.9375rem !important;
    color: #1a1915 !important;
    padding: 0 1rem !important;
    line-height: 44px !important;
    height: 44px !important;
    display: block !important;
}

/* Select2 placeholder */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9c9890 !important;
    line-height: 44px !important;
    height: 44px !important;
    display: block !important;
}

/* Select2 arrow */
.select2-container--default .select2-selection__arrow {
    display: none !important;
}

.select2-container--default .select2-selection__arrow b {
    display: none !important;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default .select2-selection--single:hover {
    border-color: #c9c4bc !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.select2-dropdown {
    border: 1px solid #e0ddd8 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    overflow: hidden !important;
    padding: 0.5rem !important;
}

.select2-results__option {
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    font-family: var(--font-sans) !important;
    font-size: 0.9375rem !important;
    color: #1a1915 !important;
}

.select2-results__option:hover,
.select2-results__option--highlighted {
    background: #f7f5f2 !important;
    color: #1a1915 !important;
}

.select2-results__option--selected {
    background: rgba(184, 149, 110, 0.1) !important;
    color: #b8956e !important;
    font-weight: 600 !important;
}

/* Input wrapper */
.woocommerce form .form-row .woocommerce-input-wrapper {
    width: 100% !important;
    display: block !important;
}

/* WooCommerce Country & State Field Linkage */
/* Ensure state field is properly styled and visible */
#billing_state_field,
#shipping_state_field {
    position: relative;
}

/* State field should match other inputs */
#billing_state_field select,
#shipping_state_field select,
#billing_state_field input,
#shipping_state_field input {
    width: 100% !important;
    min-height: 44px;
}

/* Ensure select2 works properly for state dropdown */
.woocommerce-billing-fields #billing_state_field .select2-container,
.woocommerce-shipping-fields #shipping_state_field .select2-container {
    width: 100% !important;
}

/* Force English placeholder in select2 dropdown */
.select2-container--default .select2-selection--single .select2-selection__placeholder::before {
    content: 'Select an option';
}

/* Grid layout for checkout fields - ensure proper sizing and spacing */
/* WooCommerce uses .woocommerce-billing-fields directly without wrapper class */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields,
.woocommerce-account-fields {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem 1rem !important;
}

/* Ensure full-width fields span both columns */
.woocommerce-billing-fields .form-row,
.woocommerce-shipping-fields .form-row,
.woocommerce-additional-fields .form-row,
.woocommerce-account-fields .form-row {
    margin: 0 0 0.75rem 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.woocommerce-billing-fields .form-row:last-child,
.woocommerce-shipping-fields .form-row:last-child,
.woocommerce-additional-fields .form-row:last-child {
    margin-bottom: 0 !important;
}

.woocommerce-billing-fields .form-row-first,
.woocommerce-shipping-fields .form-row-first,
.woocommerce-additional-fields .form-row-first {
    grid-column: 1 !important;
}

.woocommerce-billing-fields .form-row-last,
.woocommerce-shipping-fields .form-row-last,
.woocommerce-additional-fields .form-row-last {
    grid-column: 2 !important;
}

.woocommerce-billing-fields .form-row-wide,
.woocommerce-shipping-fields .form-row-wide,
.woocommerce-additional-fields .form-row-wide,
.woocommerce-account-fields .form-row-wide {
    grid-column: 1 / -1 !important;
}

/* Order notes: WC uses .notes, not .form-row-wide — span full grid (override .form-row-first) */
.woocommerce-additional-fields #order_comments_field,
.woocommerce-additional-fields .form-row.notes,
.woocommerce-additional-fields .form-row-first.notes,
.woocommerce-additional-fields .form-row-last.notes {
    grid-column: 1 / -1 !important;
}

.woocommerce-additional-fields #order_comments_field textarea,
.cv-checkout-section--notes .woocommerce-additional-fields textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Shipping different address toggle */
#ship-to-different-address {
    margin-bottom: 0 !important;
    padding: 0 !important;
}

#ship-to-different-address-checkbox {
    accent-color: var(--cv-accent) !important;
}

#ship-to-different-address-checkbox + span {
    font-weight: 600 !important;
    color: var(--cv-text) !important;
    cursor: pointer !important;
}

.shipping_address {
    margin-top: 1.5rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid var(--cv-border-light) !important;
}

/* Create account checkbox */
.create-account .woocommerce-form__label-for-checkbox span {
    font-size: 0.9375rem !important;
    font-weight: 400 !important;
    color: var(--cv-text) !important;
}

/* ========================================
   WooCommerce ? Payment Methods
   ======================================== */
.cv-checkout-payment-section {
    padding-top: 0;
    border-top: none;
}

/* ========================================
   WooCommerce ? Notices Override
   ======================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.woocommerce-message {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
}

.woocommerce-info {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
}

.woocommerce-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.woocommerce-error li {
    margin: 0;
}

/* 结账：支付相关提示锚定在侧栏 #payment 上方（由 #cv-checkout-notices 承接） */
.cv-checkout-notices:empty {
    display: none;
}

.cv-checkout-notices:not(:empty) {
    margin-bottom: 1rem;
}

.cv-checkout-notices--main:not(:empty) {
    margin-bottom: 1.25rem;
}

/* Prevent global flex on .woocommerce-error from clipping WC list icons + text */
.cv-checkout-notices .woocommerce-error,
.cv-checkout-notices ul.woocommerce-error {
    display: block;
    width: 100%;
}

.cv-checkout-notices ul.woocommerce-error li {
    align-items: flex-start;
    gap: 0.75rem;
    padding-left: 0;
    min-height: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.cv-checkout-notices ul.woocommerce-error li::before {
    flex-shrink: 0;
    margin-top: 0.15em;
}

@media (max-width: 768px) {
    .cv-checkout-notices--sidebar {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .cv-checkout-notices--main {
        display: none !important;
    }
}

/* 避免 ul.woocommerce-error 与主题 flex 叠字；统一为「图标/符号 + 文案」横排 */
.cv-checkout-notices ul.woocommerce-error {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cv-checkout-notices ul.woocommerce-error li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    position: relative;
    padding-left: 0 !important;
}

/* 抵消 WC 部分主题下 li 绝对定位图标压字 */
.cv-checkout-notices ul.woocommerce-error li::before {
    position: static !important;
    transform: none !important;
    margin-right: 0 !important;
    flex-shrink: 0;
}

.cv-checkout-notices div.woocommerce-error {
    display: block;
    padding-left: 0 !important;
}

.cv-checkout-notices .woocommerce-NoticeGroup {
    margin-bottom: 0;
}

/* ========================================
   WooCommerce ? Cross-sells
   ======================================== */
.cart-collaterals .cross-sells {
    margin-top: 3rem;
}

.cart-collaterals .cross-sells > h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--cv-text);
    margin-bottom: 1.5rem;
}

/* ========================================
   WooCommerce ? Shipping Calculator
   ======================================== */
.woocommerce-shipping-calculator {
    margin-top: 0;
}

.woocommerce-shipping-calculator .shipping-calculator-form {
    margin-top: 0.75rem;
}

.woocommerce-shipping-calculator .button {
    background: var(--cv-bg-dark);
    color: var(--cv-text-inverse);
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.woocommerce-shipping-calculator .button:hover {
    background: var(--cv-accent-dark);
}

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

   WooCommerce ??Checkout: Order Review & Payment

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



.cv-checkout-section {

    background: var(--cv-surface);

    border: 1px solid var(--cv-border);

    border-radius: 20px;

    padding: 2rem 2.25rem;

    margin-bottom: 2rem;

}



.cv-checkout-section:last-child {

    margin-bottom: 0;

}



.cv-checkout-section-title {

    display: flex;

    align-items: center;

    gap: 0.75rem;

    font-family: var(--font-serif);

    font-size: 1.125rem;

    font-weight: 500;

    color: var(--cv-text);

    margin: 0 0 1.5rem;

    padding-bottom: 1rem;

    border-bottom: 1px solid var(--cv-border-light);

}



.cv-checkout-step-num {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 26px;

    height: 26px;

    min-width: 26px;

    border-radius: 50%;

    background: var(--cv-accent);

    color: #fff;

    font-family: var(--font-sans);

    font-size: 0.75rem;

    font-weight: 700;

    letter-spacing: 0;

}



.cv-checkout-forms-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 3rem;

    align-items: start;

}



.cv-checkout-form-block-title {

    font-family: var(--font-serif);

    font-size: 1rem;

    font-weight: 500;

    color: var(--cv-text);

    margin: 0 0 1rem;

    padding-bottom: 0.75rem;

    border-bottom: 1px solid var(--cv-border-light);

}



.cv-ship-different-toggle {

    margin-bottom: 1rem;

}



.cv-ship-different-toggle label {

    font-size: 0.9375rem;

    font-weight: 500;

    color: var(--cv-text);

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 0.5rem;

}



.cv-ship-different-toggle input {

    accent-color: var(--cv-accent);

    width: 16px;

    height: 16px;

}



.cv-checkout-order-review {

    overflow-x: auto;

}



.cv-checkout-login-required {

    text-align: center;

    padding: 4rem 1rem;

    font-size: 1rem;

    color: var(--cv-text-secondary);

}



.cv-checkout-login-required a {

    color: var(--cv-accent);

    font-weight: 600;

}



/* Order review table */

.cv-checkout-order-review .woocommerce-checkout-review-order-table {

    width: 100%;

    border-collapse: collapse;

    border: none;

    margin: 0;

}



.cv-checkout-order-review .woocommerce-checkout-review-order-table thead {

    display: none;

}



.cv-checkout-order-review .woocommerce-checkout-review-order-table tbody tr {

    border-bottom: 1px solid var(--cv-border-light);

}



.cv-checkout-order-review .woocommerce-checkout-review-order-table tbody tr:last-child {

    border-bottom: none;

}



.cv-checkout-order-review .woocommerce-checkout-review-order-table td {

    padding: 0.875rem 0;

    font-size: 0.9375rem;

    color: var(--cv-text);

    border: none;

    vertical-align: top;

}



.cv-checkout-order-review .woocommerce-checkout-review-order-table .product-name {

    font-weight: 400;

    color: var(--cv-text);

}



.cv-checkout-order-review .woocommerce-checkout-review-order-table .product-name strong {

    font-weight: 600;

    color: var(--cv-text-secondary);

}



.cv-checkout-order-review .woocommerce-checkout-review-order-table .product-total {

    text-align: right;

    white-space: nowrap;

    font-weight: 500;

}



/* Order review totals */

.cv-checkout-order-review .woocommerce-checkout-review-order-table tfoot tr {

    border-bottom: 1px solid var(--cv-border-light);

}



.cv-checkout-order-review .woocommerce-checkout-review-order-table tfoot th {

    padding: 0.75rem 0;

    font-size: 0.875rem;

    font-weight: 500;

    color: var(--cv-text-secondary);

    text-align: left;

    border: none;

    background: transparent !important;

}



.cv-checkout-order-review .woocommerce-checkout-review-order-table tfoot td {

    padding: 0.75rem 0;

    font-size: 0.9375rem;

    color: var(--cv-text);

    text-align: right;

    border: none;

    background: transparent !important;

}



.cv-checkout-order-review .woocommerce-checkout-review-order-table tfoot .order-total th,

.cv-checkout-order-review .woocommerce-checkout-review-order-table tfoot .order-total td {

    padding-top: 1rem;

    padding-bottom: 0;

    font-size: 1.0625rem;

    font-weight: 700;

    color: var(--cv-text);

    border-top: 2px solid var(--cv-border);

    background: transparent !important;

}



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

   WooCommerce ??Payment Methods

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



#payment {

    background: transparent !important;

    border-radius: 0 !important;

    padding: 0 !important;

}



#payment ul.payment_methods {

    list-style: none;

    margin: 0 0 1.25rem;

    padding: 0;

    border-bottom: 1px solid var(--cv-border-light);

}



#payment ul.payment_methods li {

    padding: 0.875rem 0;

    border-bottom: 1px solid var(--cv-border-light);

}



#payment ul.payment_methods li:last-child {

    border-bottom: none;

}



#payment ul.payment_methods li label {

    font-family: var(--font-sans);

    font-size: 0.9375rem;

    font-weight: 600;

    color: var(--cv-text);

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 0.5rem;

}

/* 支付方式图标 — 防止全局 img 规则干扰 */

#payment ul.payment_methods li label img {

    height: 22px;

    width: auto;

    max-width: none;

    display: inline-block;

    flex-shrink: 0;

    vertical-align: middle;

}

/* PayPal only: 列表项与下方 Smart Buttons 重复，已由 functions.php 清空标题/说明，此处收起占位 */
body.cv-checkout-paypal-only #payment ul.payment_methods {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

body.cv-checkout-paypal-only #payment ul.payment_methods li.payment_method_ppcp-gateway {
    margin: 0;
    padding: 0;
    border: none;
    min-height: 0;
}

body.cv-checkout-paypal-only #payment ul.payment_methods li.payment_method_ppcp-gateway > .input-radio,
body.cv-checkout-paypal-only #payment ul.payment_methods li.payment_method_ppcp-gateway > label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}



#payment .payment_box {

    background: var(--cv-bg-alt);

    border-radius: 10px;

    padding: 1rem 1.25rem;

    margin: 0.75rem 0 0;

    font-size: 0.875rem;

    color: var(--cv-text-secondary);

    line-height: 1.6;

}



#payment .payment_box p {

    margin: 0;

}



#payment .payment_box::before {

    display: none;

}



/* Place order button */

#payment #place_order {

    display: block;

    width: 100%;

    background: var(--cv-text) !important;

    color: var(--cv-text-inverse) !important;

    border: none !important;

    border-radius: 12px !important;

    padding: 1.1rem 2rem !important;

    font-family: var(--font-sans) !important;

    font-size: 0.8125rem !important;

    font-weight: 700 !important;

    letter-spacing: 0.1em !important;

    text-transform: uppercase !important;

    cursor: pointer;

    transition: background 0.2s var(--ease-out), transform 0.15s !important;

    margin-top: 1.25rem;

}



#payment #place_order:hover {

    background: var(--cv-accent-dark) !important;

    transform: translateY(-1px);

}



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

   WooCommerce ??Neutralise Core Plugin Styles

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



.woocommerce-cart table.shop_table,

.woocommerce-checkout table.shop_table {

    border: none !important;

    border-collapse: collapse !important;

    border-radius: 0 !important;

    background: transparent !important;

}



.woocommerce-cart table.shop_table th,

.woocommerce-checkout table.shop_table th {

    background: transparent !important;

    border: none !important;

    border-bottom: 1px solid var(--cv-border) !important;

    padding: 0.75rem 0.5rem !important;

    font-weight: 600 !important;

    color: var(--cv-text-secondary) !important;

    font-size: 0.75rem !important;

    text-transform: uppercase !important;

    letter-spacing: 0.08em !important;

}



.woocommerce-cart table.shop_table td,

.woocommerce-checkout table.shop_table td {

    border: none !important;

    border-bottom: 1px solid var(--cv-border-light) !important;

    padding: 1.25rem 0.5rem !important;

    background: transparent !important;

    vertical-align: middle !important;

}



.woocommerce-cart table.shop_table tr:last-child td,

.woocommerce-checkout table.shop_table tr:last-child td {

    border-bottom: none !important;

}



/* WooCommerce buttons ??primary */

.woocommerce a.button,

.woocommerce button.button,

.woocommerce input.button {

    background: var(--cv-text) !important;

    color: var(--cv-text-inverse) !important;

    border: none !important;

    border-radius: 12px !important;

    padding: 0.875rem 2rem !important;

    font-family: var(--font-sans) !important;

    font-size: 0.8125rem !important;

    font-weight: 700 !important;

    letter-spacing: 0.1em !important;

    text-transform: uppercase !important;

    cursor: pointer;

    transition: background 0.2s var(--ease-out), transform 0.15s !important;

    display: inline-flex !important;

    align-items: center;

    justify-content: center;

    line-height: 1.4 !important;

}



.woocommerce a.button:hover,

.woocommerce button.button:hover,

.woocommerce input.button:hover {

    background: var(--cv-accent-dark) !important;

    color: #fff !important;

    transform: translateY(-1px) !important;

}



/* WooCommerce cart form small buttons */

.woocommerce-cart-form .button {

    background: transparent !important;

    color: var(--cv-text) !important;

    border: 1.5px solid var(--cv-border) !important;

    border-radius: 10px !important;

    padding: 0.7rem 1.25rem !important;

    font-size: 0.8125rem !important;

    font-weight: 600 !important;

    letter-spacing: 0.05em !important;

    text-transform: none !important;

}



.woocommerce-cart-form .button:hover {

    border-color: var(--cv-text) !important;

    background: var(--cv-bg-alt) !important;

    transform: none !important;

}



/* WooCommerce notices */

.woocommerce .woocommerce-message,

.woocommerce .woocommerce-info,

.woocommerce .woocommerce-error {

    border-radius: 12px !important;

    border: none !important;

    padding: 1rem 1.25rem !important;

}



/* WooCommerce select2 / country select overrides */

.select2-container .select2-choice {

    padding: 0.7rem 1rem !important;

    border: 1.5px solid var(--cv-border) !important;

    border-radius: 10px !important;

    background: var(--cv-bg) !important;

    font-family: var(--font-sans) !important;

    font-size: 0.9375rem !important;

    color: var(--cv-text) !important;

}



.select2-dropdown {

    border: 1.5px solid var(--cv-border) !important;

    border-radius: 10px !important;

    overflow: hidden !important;

    box-shadow: 0 8px 24px rgba(26, 25, 21, 0.1) !important;

}



.select2-results .select2-result-label {

    font-family: var(--font-sans) !important;

    font-size: 0.9375rem !important;

    color: var(--cv-text) !important;

    padding: 0.6rem 1rem !important;

}



.select2-results .select2-highlighted {

    background: var(--cv-bg-alt) !important;

    color: var(--cv-text) !important;

}



/* Remove WooCommerce default fieldset */

.woocommerce formfieldset {

    border: none !important;

    padding: 0 !important;

    margin: 0 !important;

}



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

   Responsive: Cart & Checkout

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



@media (max-width: 900px) {

    .cv-cart-layout {

        grid-template-columns: 1fr;

        gap: 2rem;

    }



    .cv-cart-totals-col {

        position: static;

    }



    .cv-checkout-forms-grid {

        grid-template-columns: 1fr;

        gap: 1.5rem;

    }

}



@media (max-width: 640px) {

    /* ── Neutralise WooCommerce table override on our custom table ── */
    .woocommerce-cart table.shop_table,
    .woocommerce-cart .cv-cart-table {
        border: none !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        display: block !important;
        width: 100% !important;
    }

    /* Hide desktop thead */
    .cv-cart-table thead {
        display: none;
    }

    /* Each row → card */
    .cv-cart-table tbody {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    /* ── Table card view: show info inline per row ── */
    .cv-cart-table-wrap {
        overflow: visible;
        border: none;
        border-radius: 0;
        background: transparent;
    }

    .cv-cart-table {
        border: none;
        border-radius: 0;
        overflow: visible;
    }

    .cv-cart-table tr.cv-cart-item {
        display: flex !important;
        flex-direction: column;
        background: var(--cv-surface);
        border: 1px solid var(--cv-border);
        border-radius: 14px;
        padding: 1rem;
        gap: 0.75rem;
        position: relative;
    }

    .cv-cart-table tr.cv-cart-item td.cv-cart-td {
        display: block;
        padding: 0;
        border: none;
        width: auto;
        text-align: left;
    }

    /* Thumbnail: full-width top */
    .cv-cart-td--thumb {
        width: 100% !important;
        display: block !important;
        padding: 0 !important;
        margin-bottom: 0.25rem;
    }

    .cv-cart-td--thumb img {
        width: 100% !important;
        max-width: 200px;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        border-radius: 10px;
    }

    /* Name + attributes */
    .cv-cart-td--name {
        flex: 1;
    }

    /* Price row */
    .cv-cart-td--price {
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.8125rem;
        color: var(--cv-text-secondary);
        margin-top: 0.25rem;
    }

    .cv-cart-td--price::before {
        content: 'Price';
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        font-size: 0.6875rem;
    }

    /* Quantity row */
    .cv-cart-td--qty {
        display: flex !important;
        align-items: center;
        gap: 0.75rem;
        margin-top: 0.5rem;
    }

    .cv-cart-td--qty::before {
        content: 'Qty';
        font-size: 0.8125rem;
        font-weight: 600;
        color: var(--cv-text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-size: 0.6875rem;
        flex-shrink: 0;
    }

    /* Subtotal row */
    .cv-cart-td--subtotal {
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
        font-weight: 600;
        font-size: 0.9375rem;
        margin-top: 0.25rem;
    }

    .cv-cart-td--subtotal::before {
        content: 'Subtotal';
        font-size: 0.8125rem;
        font-weight: 600;
        color: var(--cv-text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-size: 0.6875rem;
        flex-shrink: 0;
    }

    /* Remove button: top-right corner */
    .cv-cart-td--remove {
        position: absolute !important;
        top: 0.875rem;
        right: 0.875rem;
        width: auto !important;
        padding: 0 !important;
        z-index: 1;
    }

    .cv-cart-remove-btn {
        width: 32px;
        height: 32px;
    }

    /* Coupon bar card */
    .cv-cart-actions-bar {
        margin-top: 0;
        border-radius: 14px !important;
        padding: 1rem 1.125rem;
    }

    .cv-cart-actions-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cv-cart-coupon {
        min-width: unset;
    }

    .cv-cart-coupon-row {
        flex-direction: column;
    }

    .cv-cart-coupon-input,
    .cv-cart-coupon-apply {
        max-width: none;
        width: 100%;
    }

    /* ── Order Summary card ── */
    .cv-cart-totals-col {
        padding-top: 0;
    }

    .cv-cart-totals-card {
        border-radius: 14px;
    }



    .cv-checkout-section {

        padding: 1.25rem;

        border-radius: 12px;

    }



    /* Form grid single column on tablet */
    .woocommerce-billing-fields,
    .woocommerce-shipping-fields,
    .woocommerce-additional-fields {
        grid-template-columns: 1fr !important;
    }



    .woocommerce-billing-fields .form-row-first,

    .woocommerce-billing-fields .form-row-last,

    .woocommerce-shipping-fields .form-row-first,

    .woocommerce-shipping-fields .form-row-last {

        grid-column: 1;

    }



    .cv-cart-totals-card {

        padding: 1.25rem;

    }

}



@media (max-width: 480px) {

    .cv-page-header {

        padding: 1.5rem 0;

    }

}

/* ========================================
   WooCommerce ??Modern Checkout Layout
   ======================================== */

/* Two-column layout (root may be <form> — reset default form chrome) */
.cv-checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2.5rem;
    align-items: start;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

/* WooCommerce prepends notices as form children — without full-width row they steal one grid column and break the two-column layout */
.cv-checkout-layout > .woocommerce-NoticeGroup,
.cv-checkout-layout > .woocommerce-NoticeGroup-checkout,
.cv-checkout-layout > .woocommerce-NoticeGroup-updateOrderReview,
.cv-checkout-layout > ul.woocommerce-error,
.cv-checkout-layout > .woocommerce-error,
.cv-checkout-layout > #cv-checkout-notices-mobile {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.cv-checkout-main {
    min-width: 0;
}

/* Mobile Order Summary Accordion */
.cv-checkout-mobile-summary {
    display: none;
    margin-bottom: 1.5rem;
    background: var(--cv-surface);
    border: 1px solid var(--cv-border);
    border-radius: 16px;
    overflow: hidden;
}

.cv-mobile-summary-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.cv-mobile-summary-toggle-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cv-accent);
}

.cv-mobile-summary-toggle-left svg {
    width: 20px;
    height: 20px;
}

.cv-mobile-summary-label {
    font-size: 0.9375rem;
    font-weight: 600;
}

.cv-mobile-summary-chevron {
    transition: transform 0.2s ease;
}

.cv-mobile-summary-toggle[aria-expanded="true"] .cv-mobile-summary-chevron {
    transform: rotate(180deg);
}

.cv-mobile-summary-total {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cv-text);
}

.cv-mobile-summary-content {
    display: none;
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--cv-border-light);
}

.cv-mobile-summary-toggle[aria-expanded="true"] + .cv-mobile-summary-content {
    display: block;
}

/* Compact mobile order items */
.cv-checkout-mobile-summary .cv-order-items {
    padding: 1rem 0;
}

.cv-checkout-mobile-summary .cv-order-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.cv-checkout-mobile-summary .cv-order-item-image {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.cv-checkout-mobile-summary .cv-order-item-image img,
.cv-checkout-mobile-summary .cv-order-item-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 10px;
}

.cv-checkout-mobile-summary .cv-order-item-qty {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    background: var(--cv-text);
    color: white;
    border-radius: 10px;
}

.cv-checkout-mobile-summary .cv-order-item-details {
    flex: 1;
    min-width: 0;
}

.cv-checkout-mobile-summary .cv-order-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cv-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cv-checkout-mobile-summary .cv-order-totals {
    padding-top: 1rem;
    border-top: 1px solid var(--cv-border-light);
}

.cv-checkout-mobile-summary .cv-order-subtotal,
.cv-checkout-mobile-summary .cv-order-shipping,
.cv-checkout-mobile-summary .cv-order-coupon,
.cv-checkout-mobile-summary .cv-order-tax {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    font-size: 0.875rem;
}

.cv-checkout-mobile-summary .cv-order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0 0;
    margin-top: 0.5rem;
    border-top: 2px solid var(--cv-border);
    font-size: 1rem;
    font-weight: 700;
}

.cv-checkout-sidebar {
    position: sticky;
    top: calc(var(--header-height, 73px) + 1.5rem);
}

/* Progress Steps */
.cv-checkout-progress {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--cv-surface);
    border: 1px solid var(--cv-border);
    border-radius: 12px;
}

.cv-progress-step {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.cv-progress-step--active .cv-progress-icon {
    background: var(--cv-accent);
    color: white;
}

.cv-progress-step--active .cv-progress-label {
    color: var(--cv-text);
    font-weight: 600;
}

.cv-progress-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cv-bg-alt);
    border-radius: 50%;
    color: var(--cv-text-secondary);
}

.cv-progress-icon svg {
    width: 16px;
    height: 16px;
}

.cv-progress-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cv-text-secondary);
}

.cv-progress-line {
    flex: 1;
    height: 2px;
    background: var(--cv-border-light);
    margin: 0 1rem;
}

/* Checkout step headers only — do not override homepage .cv-section-header / .cv-section-title */
.cv-checkout-page .cv-section-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
    max-width: none;
}

.cv-checkout-page .cv-section-badge {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cv-accent);
    color: white;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 50%;
}

.cv-checkout-page .cv-section-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--cv-text);
    margin: 0;
}

.cv-checkout-page .cv-section-desc {
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
    margin: 0.375rem 0 0;
    line-height: 1.5;
}

.cv-checkout-email-block {
    max-width: 700px;
    margin-bottom: 1.25rem;
}

.cv-checkout-field-hint {
    font-size: 0.8125rem;
    color: var(--cv-text-secondary);
    margin: 0.35rem 0 0;
    line-height: 1.45;
}

.cv-checkout-page .cv-required {
    color: #b45309;
    font-weight: 600;
}

/* Form Grid */
.cv-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cv-form-row--full {
    grid-column: 1 / -1;
}

.cv-form-row--half {
    grid-column: span 1;
}

.cv-form-row--third {
    grid-column: span 1;
}

/* Checkbox styling */
.cv-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.cv-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cv-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--cv-border);
    border-radius: 5px;
    background: var(--cv-bg);
    transition: all 0.2s;
    position: relative;
    flex-shrink: 0;
}

.cv-checkbox-input:checked + .cv-checkbox-custom {
    background: var(--cv-accent);
    border-color: var(--cv-accent);
}

.cv-checkbox-input:checked + .cv-checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cv-checkbox-input:focus + .cv-checkbox-custom {
    box-shadow: 0 0 0 3px rgba(184, 149, 110, 0.2);
}

.cv-checkbox-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--cv-text);
}

/* Shipping Different Address */
.cv-ship-different {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--cv-border-light);
}

.cv-shipping-fields {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--cv-border-light);
}

.cv-shipping-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--cv-text);
    margin: 0 0 1rem;
}

/* Order Notes */
.cv-order-notes {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--cv-border-light);
}

/* Order Summary Sidebar */
.cv-order-summary {
    background: var(--cv-surface);
    border: 1px solid var(--cv-border);
    border-radius: 16px;
    padding: 1.5rem;
}

.cv-order-summary-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--cv-text);
    margin: 0 0 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--cv-border-light);
}

.cv-order-summary-title svg {
    width: 22px;
    height: 22px;
    color: var(--cv-accent);
}

/* Order Items */
.cv-order-items {
    margin-bottom: 1.25rem;
}

.cv-order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--cv-border-light);
}

.cv-order-item:last-child {
    border-bottom: none;
}

.cv-order-item-image {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--cv-bg-alt);
    flex-shrink: 0;
}

.cv-order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv-order-item-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--cv-accent-light), var(--cv-accent));
    opacity: 0.3;
}

.cv-order-item-qty {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cv-text);
    color: var(--cv-text-inverse);
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 50%;
}

.cv-order-item-details {
    flex: 1;
    min-width: 0;
}

.cv-order-item-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--cv-text);
    margin: 0 0 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cv-order-item-variation {
    font-size: 0.8125rem;
    color: var(--cv-text-secondary);
    margin: 0;
}

.cv-order-item-price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cv-text);
    white-space: nowrap;
}

/* Order Totals */
.cv-order-totals {
    padding-top: 1rem;
    border-top: 1px solid var(--cv-border-light);
}

.cv-order-subtotal,
.cv-order-shipping,
.cv-order-coupon,
.cv-order-tax {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}

.cv-order-subtotal span:first-child,
.cv-order-shipping span:first-child,
.cv-order-coupon span:first-child,
.cv-order-tax span:first-child {
    color: var(--cv-text-secondary);
}

.cv-order-subtotal span:last-child,
.cv-order-shipping span:last-child,
.cv-order-coupon span:last-child,
.cv-order-tax span:last-child {
    color: var(--cv-text);
    font-weight: 500;
}

.cv-shipping-note {
    font-size: 0.8125rem;
    font-style: italic;
}

.cv-coupon-amount {
    color: #059669 !important;
}

.cv-order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 0;
    margin-top: 0.5rem;
    border-top: 2px solid var(--cv-border);
}

.cv-order-total span:first-child {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cv-text);
}

.cv-order-total span:last-child {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cv-text);
}

/* Sidebar Order Review */
.cv-checkout-sidebar .cv-checkout-order-review {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--cv-border-light);
}

/* Security Badge */
.cv-security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cv-border-light);
    font-size: 0.75rem;
    color: var(--cv-text-secondary);
}

.cv-security-badge svg {
    width: 16px;
    height: 16px;
    color: #059669;
}

/* Responsive styles for modern checkout */
@media (max-width: 1024px) {
    .cv-checkout-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cv-checkout-sidebar {
        position: static;
    }

    .cv-checkout-main {
        order: 0;
    }
}

/* Tablet: keep summary + payment block above the address form (single column) */
@media (max-width: 1024px) and (min-width: 769px) {
    .cv-checkout-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    /* Input fields on tablet */
    body.woocommerce-checkout input.input-text,
    body.woocommerce-checkout select,
    .woocommerce form input.input-text,
    .woocommerce form select,
    .woocommerce-billing-fields input,
    .woocommerce-billing-fields select,
    .cv-checkout-section input,
    .cv-checkout-section select {
        padding: 0.75rem 1rem !important;
        font-size: 16px !important;
    }
    
    /* Form grid single column */
    .woocommerce-billing-fields,
    .woocommerce-shipping-fields,
    .woocommerce-additional-fields {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    
    .woocommerce-billing-fields .form-row-first,
    .woocommerce-billing-fields .form-row-last,
    .woocommerce-shipping-fields .form-row-first,
    .woocommerce-shipping-fields .form-row-last {
        grid-column: 1 !important;
    }

    /* Mobile Order Summary — accordion for line items; sidebar still holds #payment (must not be display:none) */
    .cv-checkout-mobile-summary {
        display: block;
        order: 1;
    }

    #cv-checkout-notices-mobile {
        order: 2;
    }

    .cv-checkout-main {
        order: 3;
    }

    .cv-checkout-sidebar {
        display: block;
        order: 4;
    }

    body.woocommerce-checkout .cv-checkout-sidebar {
        display: block;
    }

    /* Duplicate cart list + theme totals hidden on small screens (mobile accordion already shows them) */
    .cv-checkout-sidebar-summary-only {
        display: none;
    }

    .cv-checkout-sidebar .woocommerce-checkout-review-order-table {
        display: none;
    }

    .cv-checkout-sidebar .cv-checkout-order-review {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
}

@media (min-width: 769px) {
    /* Hide mobile accordion on desktop */
    .cv-checkout-mobile-summary {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .cv-checkout-progress {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .cv-progress-icon {
        width: 28px;
        height: 28px;
    }
    
    .cv-progress-label {
        display: none;
    }
    
    .cv-progress-line {
        margin: 0 0.5rem;
    }
    
    .cv-checkout-page .cv-section-badge {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    
    .cv-checkout-page .cv-section-title {
        font-size: 1rem;
    }
    
    /* Form grid mobile */
    .woocommerce-billing-fields,
    .woocommerce-shipping-fields,
    .woocommerce-additional-fields {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    
    .cv-form-row--half,
    .cv-form-row--third {
        grid-column: 1 / -1;
    }
    
    .cv-order-summary {
        padding: 1rem;
    }
    
    .cv-order-item {
        padding: 0.75rem 0;
    }
    
    .cv-order-item-image {
        width: 50px;
        height: 50px;
    }
    
    .cv-checkout-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Mobile form grid - single column with more spacing */
    .woocommerce-billing-fields,
    .woocommerce-shipping-fields,
    .woocommerce-additional-fields {
        gap: 1.25rem !important;
    }
    
    /* Mobile input styles */
    body.woocommerce-checkout input.input-text,
    body.woocommerce-checkout select,
    .woocommerce form input.input-text,
    .woocommerce form select,
    .woocommerce-billing-fields input,
    .woocommerce-billing-fields select,
    .cv-checkout-section input,
    .cv-checkout-section select {
        padding: 0.875rem 1rem !important;
        font-size: 16px !important;
        border-radius: 12px !important;
        min-height: 50px !important;
    }
    
    /* Form labels on mobile */
    body.woocommerce-checkout .woocommerce form .form-row label,
    .woocommerce form .form-row label {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* ================================================================
   ADDRESS MANAGEMENT — Account Page
   ================================================================ */

/* Address Tabs */
.cv-address-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--cv-border-light);
    padding-bottom: 0;
}

.cv-address-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    background: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--cv-text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color var(--duration-fast), border-color var(--duration-fast);
    border-radius: 8px 8px 0 0;
}

.cv-address-tab-btn:hover {
    color: var(--cv-text);
    background: var(--cv-bg-alt);
}

.cv-address-tab-btn.active {
    color: var(--cv-accent);
    border-bottom-color: var(--cv-accent);
    background: rgba(184, 149, 110, 0.06);
}

.cv-address-tab-count {
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--cv-border-light);
    color: var(--cv-text-secondary);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.cv-address-tab-btn.active .cv-address-tab-count {
    background: rgba(184, 149, 110, 0.15);
    color: var(--cv-accent);
}

.cv-address-section-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.cv-address-section-heading svg {
    flex-shrink: 0;
    color: var(--cv-accent);
    opacity: 0.9;
}

.cv-address-section-title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--cv-text);
}

.cv-address-section-count {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(184, 149, 110, 0.12);
    color: var(--cv-accent);
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
}

/* Address List */
.cv-address-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.cv-address-list-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem;
    color: var(--cv-text-muted);
    font-size: 0.9375rem;
}

.cv-address-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--cv-text-muted);
}

.cv-address-empty svg {
    opacity: 0.25;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.cv-address-empty p {
    font-size: 0.9375rem;
    color: var(--cv-text-secondary);
    margin: 0;
}

/* Address Card */
.cv-address-card {
    background: var(--cv-surface);
    border: 1.5px solid var(--cv-border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow var(--duration-fast), border-color var(--duration-fast);
    display: flex;
    flex-direction: column;
}

.cv-address-card:hover {
    box-shadow: 0 4px 20px rgba(26, 25, 21, 0.08);
    border-color: var(--cv-border);
}

.cv-address-card.is-default {
    border-color: var(--cv-accent);
    border-color: rgba(184, 149, 110, 0.4);
}

.cv-address-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--cv-border-light);
    background: var(--cv-bg-alt);
    min-height: 3.25rem;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

.cv-address-default-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cv-accent);
    background: rgba(184, 149, 110, 0.12);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    flex-shrink: 0;
    line-height: 1.2;
}

.cv-address-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cv-text-secondary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
}

.cv-address-card-body {
    padding: 1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: 4.5rem;
    box-sizing: border-box;
}

.cv-address-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cv-text);
    line-height: 1.4;
}

.cv-address-company {
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
}

.cv-address-line {
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
    line-height: 1.5;
    margin-top: 0.125rem;
}

.cv-address-phone {
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
    margin-top: 0.25rem;
}

.cv-address-card-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--cv-border-light);
    background: var(--cv-surface);
    flex-wrap: wrap;
}

.cv-address-action-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--cv-border-light);
    border-radius: 8px;
    background: var(--cv-surface);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cv-text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast);
    white-space: nowrap;
}

.cv-address-action-btn:hover {
    border-color: var(--cv-accent);
    color: var(--cv-accent);
    background: rgba(184, 149, 110, 0.06);
}

.cv-address-action-btn.cv-address-set-default:hover {
    border-color: #4A7C59;
    color: #4A7C59;
    background: rgba(74, 124, 89, 0.06);
}

.cv-address-action-btn.cv-address-delete:hover {
    border-color: #D95F5F;
    color: #D95F5F;
    background: rgba(217, 95, 95, 0.06);
}

/* Add Address Button */
.cv-address-add-wrap {
    margin-top: 0;
}

.cv-address-add-btn {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
}

/* Spinner */
.cv-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--cv-border-light);
    border-top-color: var(--cv-accent);
    border-radius: 50%;
    animation: cvSpin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes cvSpin {
    to { transform: rotate(360deg); }
}

.cv-address-form-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Modal Overlay */
.cv-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(26, 25, 21, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal), visibility var(--duration-normal);
}

.cv-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.cv-modal {
    position: relative;
    z-index: 9999;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--cv-surface);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 24px 64px rgba(26, 25, 21, 0.25);
    transform: translateY(16px) scale(0.97);
    transition: transform var(--duration-normal);
}

.cv-modal-overlay.is-open .cv-modal {
    transform: translateY(0) scale(1);
}

.cv-modal--sm {
    max-width: 400px;
}

.cv-modal--lg {
    max-width: 680px;
}

.cv-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--cv-border-light);
}

.cv-modal-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--cv-text);
    margin: 0;
}

.cv-modal-close {
    background: none;
    border: none;
    color: var(--cv-text-muted);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--duration-fast), background var(--duration-fast);
    margin-left: auto;
}

.cv-modal-close:hover {
    color: var(--cv-text);
    background: var(--cv-bg-alt);
}

.cv-modal-body {
    /* overflow-y handled by parent */
}

.cv-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--cv-border-light);
}

.cv-address-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cv-address-modal-form .cv-modal-actions {
    margin-top: 0.5rem;
}

.cv-address-modal-form .cv-modal-actions .cv-btn {
    min-width: 120px;
}

/* Address Form Fields (inside modal) */
.cv-address-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cv-address-form .cv-form-row {
    flex-wrap: wrap;
    gap: 1rem;
}

.cv-address-form .cv-form-row > .cv-form-group {
    flex: 1 1 0;
    min-width: 0;
}

.cv-address-form .cv-form-row > .cv-form-group:only-child {
    flex: 1 1 100%;
}

.cv-address-form .cv-address-row--city-state-zip > .cv-form-group--city {
    flex: 2 1 0;
}

.cv-address-form .cv-address-row--city-state-zip > .cv-form-group--state,
.cv-address-form .cv-address-row--city-state-zip > .cv-form-group--postcode {
    flex: 1 1 0;
}

/* Account address modal: match WooCommerce checkout field look (rounded, same height) */
#cv-address-form-fields .cv-form-group label,
.cv-address-modal-form .cv-form-group label {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #5c5952 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    margin-bottom: 0.25rem !important;
    display: block !important;
}

/* “设为默认”行：必须保持 flex，否则 .cv-checkbox-custom 会被 block 布局压成一条线 */
#cv-address-form-fields .cv-form-group > .cv-checkbox-label,
.cv-address-modal-form .cv-form-group > .cv-checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-bottom: 0 !important;
    padding: 0.35rem 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: 500 !important;
    font-size: 0.9375rem !important;
    color: var(--cv-text) !important;
    position: relative !important;
}

#cv-address-form-fields .cv-checkbox-label .cv-checkbox-text,
.cv-address-modal-form .cv-checkbox-label .cv-checkbox-text {
    text-transform: none !important;
    font-weight: 500 !important;
    letter-spacing: normal !important;
    color: var(--cv-text) !important;
    line-height: 1.4 !important;
}

#cv-address-form-fields .cv-checkbox-input,
.cv-address-modal-form .cv-checkbox-input {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
}

#cv-address-form-fields .cv-checkbox-custom,
.cv-address-modal-form .cv-checkbox-custom {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    border-width: 2px !important;
}

#cv-address-form-fields .cv-form-group input[type="text"],
#cv-address-form-fields .cv-form-group input[type="tel"],
.cv-address-modal-form .cv-form-group input[type="text"],
.cv-address-modal-form .cv-form-group input[type="tel"] {
    width: 100%;
    padding: 0.75rem 1rem !important;
    border: 1px solid #e0ddd8 !important;
    border-radius: 14px !important;
    font-family: var(--font-sans) !important;
    font-size: 0.9375rem !important;
    color: #1a1915 !important;
    background: #ffffff !important;
    line-height: 1.5 !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    outline: none !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

#cv-address-form-fields .cv-form-group input[type="text"]:focus,
#cv-address-form-fields .cv-form-group input[type="tel"]:focus,
.cv-address-modal-form .cv-form-group input[type="text"]:focus,
.cv-address-modal-form .cv-form-group input[type="tel"]:focus {
    border-color: #b8956e !important;
    box-shadow: 0 0 0 4px rgba(184, 149, 110, 0.1), 0 4px 12px rgba(184, 149, 110, 0.08) !important;
}

#cv-address-form-fields .cv-form-group input[type="text"] + input[type="text"],
.cv-address-modal-form .cv-form-group input[type="text"] + input[type="text"] {
    margin-top: 0.625rem;
}

/* Select (Country + State dropdown) — same visual as checkout */
.cv-address-form select.cv-select,
#cv-address-form-fields select.cv-select,
.cv-address-modal-form select.cv-select {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem !important;
    border: 1px solid #e0ddd8 !important;
    border-radius: 14px !important;
    font-family: var(--font-sans) !important;
    font-size: 0.9375rem !important;
    color: #1a1915 !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235c5952' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.875rem center !important;
    background-size: 14px !important;
    min-height: 44px !important;
    line-height: normal !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
    outline: none !important;
}

.cv-address-form select.cv-select:focus,
#cv-address-form-fields select.cv-select:focus,
.cv-address-modal-form select.cv-select:focus {
    border-color: #b8956e !important;
    box-shadow: 0 0 0 4px rgba(184, 149, 110, 0.1), 0 4px 12px rgba(184, 149, 110, 0.08) !important;
}

.cv-address-default-group {
    padding-top: 0.25rem;
}

/* Delete Confirm */
.cv-address-delete-confirm-text {
    font-size: 0.9375rem;
    color: var(--cv-text-secondary);
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

/* Address Select Modal (checkout integration) */
.cv-address-select-types {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.cv-address-select-type-btn {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 1.5px solid var(--cv-border);
    border-radius: 10px;
    background: var(--cv-surface);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--cv-text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast);
    text-align: center;
}

.cv-address-select-type-btn.active {
    border-color: var(--cv-accent);
    color: var(--cv-accent);
    background: rgba(184, 149, 110, 0.06);
}

.cv-address-select-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.cv-address-select-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 1.5px solid var(--cv-border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.cv-address-select-item:hover {
    border-color: var(--cv-accent);
    background: rgba(184, 149, 110, 0.04);
}

.cv-address-select-item.is-default {
    border-color: rgba(184, 149, 110, 0.4);
    background: rgba(184, 149, 110, 0.04);
}

.cv-address-select-radio {
    width: 18px;
    height: 18px;
    border: 2px solid var(--cv-border);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.125rem;
    transition: all var(--duration-fast);
    position: relative;
}

.cv-address-select-item.selected .cv-address-select-radio {
    border-color: var(--cv-accent);
}

.cv-address-select-item.selected .cv-address-select-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cv-accent);
}

/* ── Checkout Address Block ─────────────────────────────── */

.cv-checkout-address-block {
    /* wrapper for the whole block */
}

.cv-checkout-address-summary {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1.125rem 1.25rem;
    border: 1.5px solid var(--cv-border-light);
    border-radius: 16px;
    background: var(--cv-bg-alt);
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.cv-checkout-address-summary:hover {
    border-color: rgba(184, 149, 110, 0.4);
    box-shadow: 0 2px 12px rgba(26, 25, 21, 0.06);
}

.cv-checkout-address-summary.has-address {
    border-color: rgba(184, 149, 110, 0.35);
}

.cv-checkout-addr-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cv-accent);
    background: rgba(184, 149, 110, 0.12);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 0.05rem;
    white-space: nowrap;
}

.cv-checkout-addr-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cv-checkout-addr-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cv-text);
    line-height: 1.4;
}

.cv-checkout-addr-line {
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
    line-height: 1.5;
}

.cv-checkout-addr-phone {
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
    margin-top: 0.125rem;
}

.cv-checkout-addr-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.cv-checkout-addr-action-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--cv-border-light);
    border-radius: 8px;
    background: var(--cv-surface);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cv-text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast);
    white-space: nowrap;
}

.cv-checkout-addr-action-btn:hover {
    border-color: var(--cv-accent);
    color: var(--cv-accent);
    background: rgba(184, 149, 110, 0.06);
}

/* Checkout：仅 Switch 打开地址列表（无下拉框） */
.cv-checkout-address-switch-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.cv-checkout-addr-switch {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
}

/* 地址选择列表项 */
.cv-address-select-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.cv-address-select-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.125rem;
    border: 1.5px solid var(--cv-border-light);
    border-radius: 12px;
    background: var(--cv-surface);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.cv-address-select-item:hover {
    border-color: rgba(184, 149, 110, 0.4);
    background: var(--cv-bg-alt);
}

.cv-address-select-item.is-current {
    border-color: var(--cv-accent);
    background: rgba(184, 149, 110, 0.06);
}

.cv-address-select-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cv-address-select-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cv-accent);
}

.cv-address-select-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cv-text);
}

.cv-address-select-addr,
.cv-address-select-city {
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
}

.cv-address-select-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cv-accent);
}

.cv-checkout-address-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    padding: 2rem 1.5rem;
    border: 1.5px dashed var(--cv-border);
    border-radius: 16px;
    background: var(--cv-bg-alt);
    color: var(--cv-text-secondary);
    text-align: center;
}

.cv-checkout-address-empty svg {
    color: var(--cv-accent);
    opacity: 0.7;
    flex-shrink: 0;
}

.cv-checkout-address-empty p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--cv-text-muted);
}

.cv-checkout-address-empty .cv-checkout-addr-add {
    width: 100%;
    max-width: 260px;
}

/* Inline address form inside checkout */
.cv-checkout-address-form-wrap {
    padding: 1.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cv-checkout-address-form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.cv-checkout-form-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cv-checkout-form-row--2 > .cv-checkout-form-group {
    flex: 1 1 0;
    min-width: 0;
}

.cv-checkout-form-row--3 > .cv-checkout-form-group {
    flex: 1 1 0;
    min-width: 0;
}

.cv-checkout-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1 1 0;
    min-width: 0;
}

.cv-checkout-form-group label {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #5c5952 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    display: block !important;
}

.cv-checkout-form-group input[type="text"],
.cv-checkout-form-group input[type="tel"],
.cv-checkout-form-group input[type="email"],
.cv-checkout-form-group select.cv-checkout-select {
    padding: 0.6875rem 0.9375rem !important;
    border: 1px solid #e0ddd8 !important;
    border-radius: 12px !important;
    font-family: var(--font-sans) !important;
    font-size: 0.9375rem !important;
    color: #1a1915 !important;
    background: #ffffff !important;
    line-height: 1.5 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.8) !important;
    outline: none !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.cv-checkout-form-group select.cv-checkout-select {
    padding-right: 2.25rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%235c5952' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 13px !important;
}

.cv-checkout-form-group input[type="text"]:focus,
.cv-checkout-form-group input[type="tel"]:focus,
.cv-checkout-form-group input[type="email"]:focus,
.cv-checkout-form-group select.cv-checkout-select:focus {
    border-color: #b8956e !important;
    box-shadow: 0 0 0 4px rgba(184,149,110,0.1) !important;
}

.cv-checkout-address-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.cv-checkout-address-form-actions .cv-btn {
    min-width: 110px;
}

.cv-checkout-form-msg {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    display: none;
    margin-top: -0.25rem;
}

.cv-checkout-form-msg.is-error {
    display: block;
    background: rgba(217, 95, 95, 0.08);
    color: #C04040;
    border: 1px solid rgba(217, 95, 95, 0.25);
}

.cv-checkout-form-msg.is-success {
    display: block;
    background: rgba(80, 150, 90, 0.08);
    color: #4a8a4a;
    border: 1px solid rgba(80, 150, 90, 0.25);
    text-align: center;
    font-weight: 600;
    animation: cv-form-msg-in 0.3s ease;
}

@keyframes cv-form-msg-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cv-address-select-info {
    flex: 1;
    min-width: 0;
}

.cv-address-select-info .cv-address-name {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.cv-address-select-info .cv-address-line {
    font-size: 0.8125rem;
}

/* Ghost button */
.cv-btn--ghost {
    background: none;
    border: 1.5px solid var(--cv-border);
    color: var(--cv-text-secondary);
}

.cv-btn--ghost:hover {
    border-color: var(--cv-text-muted);
    color: var(--cv-text);
    background: var(--cv-bg-alt);
}

/* Danger button */
.cv-btn--danger {
    background: #D95F5F;
    border: 1.5px solid #D95F5F;
    color: white;
}

.cv-btn--danger:hover {
    background: #C04040;
    border-color: #C04040;
}

/* Saved address quick-select button in checkout */
.cv-checkout-select-address-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.625rem;
    border: 1px solid var(--cv-border);
    border-radius: 8px;
    background: var(--cv-surface);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cv-text-secondary);
    cursor: pointer;
    margin-left: auto;
    transition: all var(--duration-fast);
    white-space: nowrap;
}

.cv-checkout-select-address-btn:hover {
    border-color: var(--cv-accent);
    color: var(--cv-accent);
    background: rgba(184, 149, 110, 0.06);
}

/* Icon button */
.cv-btn--icon {
    gap: 0.5rem;
}

/* Responsive: Address Management */
@media (max-width: 768px) {
    .cv-address-tabs {
        gap: 0.25rem;
    }

    .cv-address-tab-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }

    .cv-address-list {
        grid-template-columns: 1fr;
    }

    .cv-modal {
        padding: 1.5rem;
        border-radius: 16px;
        max-height: 85vh;
    }

    .cv-modal-actions {
        flex-direction: column-reverse;
    }

    .cv-modal-actions .cv-btn {
        width: 100%;
    }

    .cv-address-form .cv-form-row {
        flex-direction: column;
    }

    .cv-address-form .cv-form-row > .cv-form-group {
        flex: 1 1 100%;
    }

    .cv-address-form .cv-address-row--city-state-zip > .cv-form-group--city,
    .cv-address-form .cv-address-row--city-state-zip > .cv-form-group--state,
    .cv-address-form .cv-address-row--city-state-zip > .cv-form-group--postcode {
        flex: 1 1 100%;
    }

    .cv-address-card-actions {
        gap: 0.375rem;
    }

    .cv-address-action-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }

    .cv-checkout-address-summary {
        flex-direction: column;
        gap: 0.625rem;
    }

    .cv-checkout-addr-actions {
        align-self: flex-start;
    }

    .cv-checkout-form-row {
        flex-direction: column;
    }

    .cv-checkout-form-row--2 > .cv-checkout-form-group,
    .cv-checkout-form-row--3 > .cv-checkout-form-group {
        flex: 1 1 100%;
    }

    .cv-checkout-address-form-actions {
        flex-direction: column-reverse;
    }

    .cv-checkout-address-form-actions .cv-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cv-address-tabs {
        flex-wrap: wrap;
    }

    .cv-address-tab-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* ========================================
   Contact Page — Responsive
   ======================================== */

@media (max-width: 1024px) {
    .cv-contact-layout {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .cv-contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cv-contact-info {
        order: 2;
    }

    .cv-contact-form-wrap {
        order: 1;
        position: static;
    }

    .cv-contact-info-card {
        flex-direction: row;
        align-items: center;
    }

    .cv-contact-info-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .cv-contact-info-label {
        margin-bottom: 0.125rem;
    }

    .cv-contact-faq {
        padding-top: 3rem;
    }
}

@media (max-width: 640px) {
    .cv-contact-hero {
        margin-bottom: 2.5rem;
    }

    .cv-contact-form-card {
        padding: 1.75rem 1.5rem;
        border-radius: 20px;
    }

    .cv-contact-form-row {
        grid-template-columns: 1fr;
    }

    .cv-faq-question {
        padding: 1.125rem 1.25rem;
        font-size: 0.9375rem;
    }

    .cv-faq-answer {
        padding: 0 1.25rem 1.25rem;
    }

    .cv-faq-answer p {
        font-size: 0.875rem;
    }

    .cv-contact-faq-header {
        margin-bottom: 2rem;
    }

    .cv-contact-faq-title {
        font-size: 1.75rem;
    }
}

/* Legal pages — responsive */
@media (max-width: 768px) {
    .cv-legal-toc {
        padding: 1.25rem 1.5rem;
    }

    .cv-legal-toc-list a {
        font-size: 0.875rem;
    }
}

@media (max-width: 640px) {
    .cv-legal-title {
        font-size: 2rem;
    }

    .cv-legal-intro {
        font-size: 0.875rem;
    }

    .cv-legal-section h2 {
        font-size: 1.25rem;
    }

    .cv-legal-section p,
    .cv-legal-section ul li {
        font-size: 0.875rem;
    }
}

/* ========================================
   Thank You Page — CoreVibe
   ======================================== */

.cv-thankyou-page {
    padding: 3rem 0 5rem;
}

/* Overlay (PayPal processing) */
.cv-thankyou-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 25, 21, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-thankyou-overlay__inner {
    background: #fff;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.cv-thankyou-overlay__spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #e8e4dd;
    border-top-color: var(--cv-accent, #b8956e);
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    animation: cv-spin 0.8s linear infinite;
}

@keyframes cv-spin {
    to { transform: rotate(360deg); }
}

.cv-thankyou-overlay__text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--cv-text);
    margin: 0 0 0.5rem;
}

.cv-thankyou-overlay__sub {
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
    margin: 0;
}

/* Hero */
.cv-thankyou-hero {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.6s ease-out;
}

.cv-thankyou-hero__icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #f0ede8 0%, #e8e3dc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 16px rgba(184, 149, 110, 0.2);
}

.cv-thankyou-hero__icon svg {
    width: 34px;
    height: 34px;
    color: var(--cv-accent, #b8956e);
    stroke-width: 1.8;
}

.cv-thankyou-hero__title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--cv-text);
    margin: 0 0 0.625rem;
    line-height: 1.2;
}

.cv-thankyou-hero__subtitle {
    font-size: 1rem;
    color: var(--cv-text-secondary);
    margin: 0 0 1.25rem;
}

.cv-thankyou-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
}

.cv-thankyou-hero__order-num,
.cv-thankyou-hero__date,
.cv-thankyou-hero__total {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--cv-text);
    font-weight: 500;
}

.cv-thankyou-hero__sep {
    color: var(--cv-text-secondary);
    opacity: 0.5;
}

.cv-thankyou-hero__method {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8125rem;
    color: var(--cv-text-secondary);
    margin-top: 0.5rem;
}

/* Timeline */
.cv-thankyou-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 440px;
    margin: 0 auto 2.5rem;
    padding: 0;
}

.cv-thankyou-timeline__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
}

.cv-thankyou-timeline__item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 10px;
    left: calc(50% + 10px);
    right: calc(-50% + 10px);
    height: 1px;
    background: #e0ddd8;
    z-index: 0;
}

.cv-thankyou-timeline__item--done:not(:last-child)::after {
    background: var(--cv-accent, #b8956e);
}

.cv-thankyou-timeline__dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e0ddd8;
    border: 2px solid #e0ddd8;
    z-index: 1;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.6;
}

.cv-thankyou-timeline__item--done .cv-thankyou-timeline__dot {
    background: var(--cv-accent, #b8956e);
    border-color: var(--cv-accent, #b8956e);
    opacity: 1;
    transform: scale(1.2);
}

.cv-thankyou-timeline__label {
    font-size: 0.75rem;
    color: var(--cv-text-secondary);
    text-align: center;
    white-space: nowrap;
}

.cv-thankyou-timeline__item--done .cv-thankyou-timeline__label {
    color: var(--cv-accent, #b8956e);
    font-weight: 600;
}

/* Info grid */
.cv-thankyou-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.75rem;
    align-items: start;
    max-width: 920px;
    margin: 0 auto 2rem;
}

/* Section shared card wrapper */
.cv-thankyou-section {
    background: #fff;
    border: 1px solid #e8e3dc;
    border-radius: 16px;
    padding: 1.5rem;
}

/* Section headers */
.cv-thankyou-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid #ede9e3;
}

.cv-thankyou-section__title {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cv-text);
    margin: 0;
    letter-spacing: 0.01em;
}

.cv-thankyou-section__badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cv-accent, #b8956e);
    background: rgba(184, 149, 110, 0.1);
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

/* Order items */
.cv-thankyou-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.cv-thankyou-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #faf9f7;
    border: 1px solid #ede9e3;
    border-radius: 12px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cv-thankyou-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border-color: #e0dcd4;
}

.cv-thankyou-item__image {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.cv-thankyou-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e8e4dd;
}

.cv-thankyou-item__placeholder {
    width: 100%;
    height: 100%;
    background: #f0ede8;
    border-radius: 10px;
}

.cv-thankyou-item__qty {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--cv-text);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.cv-thankyou-item__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cv-thankyou-item__name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--cv-text);
    margin: 0;
    line-height: 1.4;
}

.cv-thankyou-item__price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cv-accent, #b8956e);
    margin: 0;
}

/* Totals */
.cv-thankyou-totals {
    border-top: 1px dashed #e0ddd8;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cv-thankyou-totals__row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
    padding: 0.125rem 0;
}

.cv-thankyou-totals__row--total {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cv-text);
    padding-top: 0.625rem;
    margin-top: 0.25rem;
    border-top: 2px solid #e8e4dd;
}

/* Address cards — inner variation (no outer border since already in wrapper) */
.cv-thankyou-section--addresses {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
}

.cv-thankyou-address-card {
    background: linear-gradient(135deg, #fdfcfb 0%, #f7f4ef 100%);
    border: 1px solid #e8e3dc;
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.cv-thankyou-address-card:last-of-type {
    margin-bottom: 0;
}

.cv-thankyou-address-card__title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cv-text-secondary);
    margin: 0 0 0.875rem;
}

.cv-thankyou-address-card__title svg {
    color: var(--cv-accent, #b8956e);
    width: 12px;
    height: 12px;
}

.cv-thankyou-address-card__body {
    font-size: 0.875rem;
    color: var(--cv-text);
    font-style: normal;
    line-height: 1.65;
    margin: 0;
}

.cv-thankyou-email-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--cv-text-secondary);
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(184, 149, 110, 0.06);
    border: 1px solid rgba(184, 149, 110, 0.15);
    border-radius: 10px;
}

.cv-thankyou-email-note svg {
    color: var(--cv-accent, #b8956e);
    flex-shrink: 0;
}

.cv-thankyou-email-note strong {
    color: var(--cv-text);
    font-weight: 600;
}

/* Support note */
.cv-thankyou-support-note {
    max-width: 900px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: #faf9f7;
    border: 1px solid #e8e4dd;
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
    justify-content: center;
}

.cv-thankyou-support-note svg {
    flex-shrink: 0;
    color: var(--cv-text-secondary);
}

.cv-thankyou-support-note a {
    color: var(--cv-accent, #b8956e);
    font-weight: 500;
    text-decoration: none;
}

.cv-thankyou-support-note a:hover {
    text-decoration: underline;
}

/* No order */
.cv-thankyou-no-order {
    text-align: center;
    padding: 4rem 1rem;
}

.cv-thankyou-no-order__icon svg {
    width: 64px;
    height: 64px;
    color: #d97706;
    margin-bottom: 1.25rem;
}

.cv-thankyou-no-order__title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--cv-text);
    margin: 0 0 0.75rem;
}

.cv-thankyou-no-order__text {
    font-size: 0.9375rem;
    color: var(--cv-text-secondary);
    max-width: 420px;
    margin: 0 auto 2rem;
}

/* ========================================
   Guest Promotion Card
   ======================================== */

.cv-guest-promotion {
    max-width: 900px;
    margin: 2.5rem auto;
    animation: fadeInUp 0.7s ease-out;
}

.cv-guest-promotion__inner {
    background: linear-gradient(135deg, #fdfbf7 0%, #f5efe5 100%);
    border: 1.5px solid var(--cv-accent, #b8956e);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    text-align: center;
}

.cv-guest-promotion__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--cv-accent, #b8956e);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.875rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.cv-guest-promotion__title {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 3vw, 1.625rem);
    font-weight: 600;
    color: var(--cv-text);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.cv-guest-promotion__highlight {
    color: var(--cv-accent, #b8956e);
}

.cv-guest-promotion__desc {
    font-size: 0.9375rem;
    color: var(--cv-text-secondary);
    max-width: 480px;
    margin: 0 auto 1.25rem;
    line-height: 1.6;
}

.cv-guest-promotion__coupon {
    background: #fff;
    border: 2px dashed var(--cv-accent, #b8956e);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.cv-guest-promotion__coupon-code {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--cv-accent, #b8956e);
    margin-bottom: 0.25rem;
}

.cv-guest-promotion__coupon-note {
    font-size: 0.75rem;
    color: var(--cv-text-secondary);
}

.cv-guest-promotion__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cv-guest-promotion__secondary {
    color: var(--cv-text-secondary);
    border-color: #d4cec6;
}

.cv-guest-promotion__terms {
    font-size: 0.75rem;
    color: var(--cv-text-secondary);
    margin: 0;
    opacity: 0.8;
}

/* ========================================
   Thank You Upsell Section
   ======================================== */

.cv-thankyou-upsell {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e8e4dd;
    animation: fadeInUp 0.7s ease-out 0.3s both;
}

.cv-thankyou-upsell__header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.cv-thankyou-upsell__title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--cv-text);
    margin: 0 0 0.25rem;
}

.cv-thankyou-upsell__subtitle {
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
    margin: 0;
}

.cv-thankyou-upsell__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.cv-thankyou-upsell__item {
    background: #fff;
    border: 1px solid #e8e4dd;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cv-thankyou-upsell__item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.cv-thankyou-upsell__item-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f0ea;
}

.cv-thankyou-upsell__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cv-thankyou-upsell__item:hover .cv-thankyou-upsell__item-image img {
    transform: scale(1.04);
}

.cv-thankyou-upsell__item-placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;
}

.cv-thankyou-upsell__item-info {
    padding: 0.875rem 1rem 1rem;
}

.cv-thankyou-upsell__item-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cv-text);
    margin: 0 0 0.375rem;
    line-height: 1.35;
}

.cv-thankyou-upsell__item-price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cv-text);
    margin: 0 0 0.75rem;
}

.cv-thankyou-upsell__item-price .woocommerce-Price-amount {
    color: var(--cv-text);
}

.cv-thankyou-upsell__add {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.cv-thankyou-upsell__add:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   Thank You — Responsive
   ======================================== */

@media (max-width: 768px) {
    .cv-thankyou-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cv-thankyou-section--addresses {
        order: -1;
    }

    .cv-thankyou-timeline {
        max-width: 320px;
    }

    .cv-thankyou-timeline__label {
        font-size: 0.6875rem;
    }

    .cv-thankyou-item {
        padding: 0.625rem;
        gap: 0.875rem;
    }

    .cv-thankyou-item__image {
        width: 56px;
        height: 56px;
    }

    .cv-guest-promotion__inner {
        padding: 1.5rem 1.25rem;
    }

    .cv-guest-promotion__actions {
        flex-direction: column;
    }

    .cv-guest-promotion__actions .cv-btn {
        width: 100%;
    }

    .cv-thankyou-upsell__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
}

@media (max-width: 480px) {
    .cv-thankyou-page {
        padding: 2rem 0 4rem;
    }

    .cv-thankyou-hero__title {
        font-size: 1.625rem;
    }

    .cv-thankyou-hero__meta {
        font-size: 0.8125rem;
    }

    .cv-thankyou-support-note {
        flex-direction: column;
        text-align: center;
    }

    .cv-thankyou-upsell__grid {
        grid-template-columns: 1fr;
    }

    .cv-thankyou-overlay__inner {
        padding: 2rem 1.5rem;
    }
}

/* ========================================
   View Order Page
   ======================================== */

.cv-vieworder-page {
    padding: 3rem 0 5rem;
    min-height: 60vh;
}

/* Page Header */
.cv-vieworder-back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}
.cv-vieworder-back:hover {
    color: var(--cv-text);
}

/* Hero */
.cv-vieworder-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid #e8e3dc;
    border-radius: 16px;
    margin-bottom: 1.25rem;
}

.cv-vieworder-hero__icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f0ede8 0%, #e8e3dc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cv-vieworder-hero__icon svg {
    width: 28px;
    height: 28px;
    color: var(--cv-accent, #b8956e);
}

.cv-vieworder-hero__info {
    flex: 1;
}

.cv-vieworder-hero__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cv-text);
    margin: 0 0 0.5rem;
}

.cv-vieworder-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
}

.cv-vieworder-sep {
    opacity: 0.5;
}

.cv-vieworder-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    letter-spacing: 0.02em;
}
.cv-vieworder-status--completed { background: #d4edda; color: #155724; }
.cv-vieworder-status--processing { background: rgba(184,149,110,0.12); color: var(--cv-accent,#b8956e); }
.cv-vieworder-status--pending { background: #fff3cd; color: #856404; }
.cv-vieworder-status--on-hold { background: #cce5ff; color: #004085; }
.cv-vieworder-status--cancelled { background: #f8d7da; color: #721c24; }
.cv-vieworder-status--refunded { background: #e2e3e5; color: #383d41; }
.cv-vieworder-status--failed { background: #f8d7da; color: #721c24; }

.cv-vieworder-hero__method {
    font-size: 0.8125rem;
    color: var(--cv-text-secondary);
    margin-top: 0.375rem;
}

/* Actions */
.cv-vieworder-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

/* Grid layout */
.cv-vieworder-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.75rem;
    align-items: start;
    margin-bottom: 1.75rem;
}

.cv-vieworder-section {
    background: #fff;
    border: 1px solid #e8e3dc;
    border-radius: 16px;
    padding: 1.5rem;
}

.cv-vieworder-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid #ede9e3;
}

.cv-vieworder-section__title {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cv-text);
    margin: 0;
}

.cv-vieworder-section__badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cv-accent, #b8956e);
    background: rgba(184, 149, 110, 0.1);
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
}

/* Items */
.cv-vieworder-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.cv-vieworder-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 10px;
    transition: background 0.15s;
}

.cv-vieworder-item__image {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f3f0;
}

.cv-vieworder-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv-vieworder-item__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0ede8 0%, #e8e3dc 100%);
}

.cv-vieworder-item__qty {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: var(--cv-text);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
}

.cv-vieworder-item__info {
    flex: 1;
    min-width: 0;
}

.cv-vieworder-item__name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cv-text);
    margin: 0 0 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cv-vieworder-item__price {
    font-size: 0.8125rem;
    color: var(--cv-text-secondary);
    margin: 0;
}

/* Totals */
.cv-vieworder-totals {
    border-top: 1px solid #ede9e3;
    padding-top: 1rem;
}

.cv-vieworder-totals__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
    padding: 0.3rem 0;
}

.cv-vieworder-totals__row--total {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--cv-text);
    border-top: 1px solid #ede9e3;
    margin-top: 0.5rem;
    padding-top: 0.625rem;
}

/* Address cards */
.cv-vieworder-section--addresses {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cv-vieworder-address-card__title {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--cv-text);
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cv-vieworder-address-card__body {
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
    line-height: 1.6;
    font-style: normal;
}

.cv-vieworder-email-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--cv-text-secondary);
    background: rgba(184, 149, 110, 0.08);
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
}

/* Support note */
.cv-vieworder-support-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--cv-text-secondary);
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e8e3dc;
    border-radius: 16px;
}

.cv-vieworder-support-note a {
    color: var(--cv-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cv-vieworder-support-note a:hover {
    color: var(--cv-accent-dark);
}

/* View Order Responsive */
@media (max-width: 768px) {
    .cv-vieworder-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cv-vieworder-hero {
        flex-direction: column;
        text-align: center;
    }

    .cv-vieworder-hero__meta {
        justify-content: center;
    }

    .cv-vieworder-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .cv-vieworder-page {
        padding: 2rem 0 4rem;
    }

    .cv-vieworder-hero__title {
        font-size: 1.375rem;
    }

    .cv-vieworder-item__name {
        white-space: normal;
    }
}
