/*
Theme Name: ThroupleBuddies
Theme URI: https://throuplebuddies.com
Author: Adam Coburn
Author URI: https://throuplebuddies.com
Description: A modern, warm dating theme for throuple relationships with merch store support.
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: throuplebuddies-theme
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ========================================
   THEME VARIABLES — Light default
   ======================================== */

:root {
    --primary: #f97066;
    --primary-hover: #e8564b;
    --primary-light: rgba(249, 112, 102, 0.12);
    --primary-glow: rgba(249, 112, 102, 0.25);
    --accent-rose: #e879a0;
    --accent-amber: #f4a543;
    --gradient-warm: linear-gradient(135deg, #f97066 0%, #e879a0 50%, #f4a543 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(249, 112, 102, 0.08) 0%, rgba(232, 121, 160, 0.08) 50%, rgba(244, 165, 67, 0.06) 100%);
    --gradient-hero: linear-gradient(160deg, rgba(249, 112, 102, 0.10) 0%, rgba(232, 121, 160, 0.06) 40%, transparent 70%);

    --bg: #faf8f6;
    --bg-card: #ffffff;
    --bg-header: rgba(250, 248, 246, 0.96);
    --bg-mobile-nav: #faf8f6;
    --bg-input: #ffffff;
    --bg-footer: #fdf6f4;

    --text: #2a2226;
    --text-secondary: #5c4f55;
    --text-muted: #9a8c92;
    --text-faint: #c4b8be;

    --border: rgba(42, 34, 38, 0.10);
    --divider: rgba(42, 34, 38, 0.06);
    --shadow-sm: 0 1px 3px rgba(42, 34, 38, 0.06);
    --shadow-md: 0 4px 16px rgba(42, 34, 38, 0.08);
    --shadow-lg: 0 8px 32px rgba(42, 34, 38, 0.10);

    --link-hover: #d94f44;
    --toggle-icon: #9a8c92;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 100px;
}

[data-theme="dark"] {
    --primary: #ff8a82;
    --primary-hover: #ff9e97;
    --primary-light: rgba(255, 138, 130, 0.12);
    --primary-glow: rgba(255, 138, 130, 0.20);
    --accent-rose: #f09db8;
    --accent-amber: #f7be6e;
    --gradient-warm: linear-gradient(135deg, #ff8a82 0%, #f09db8 50%, #f7be6e 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(255, 138, 130, 0.06) 0%, rgba(240, 157, 184, 0.06) 50%, rgba(247, 190, 110, 0.04) 100%);
    --gradient-hero: linear-gradient(160deg, rgba(255, 138, 130, 0.08) 0%, rgba(240, 157, 184, 0.05) 40%, transparent 70%);

    --bg: #1a1518;
    --bg-card: #241e22;
    --bg-header: rgba(26, 21, 24, 0.96);
    --bg-mobile-nav: #1a1518;
    --bg-input: #2a2226;
    --bg-footer: #1e181b;

    --text: #f0e8eb;
    --text-secondary: rgba(240, 232, 235, 0.7);
    --text-muted: rgba(240, 232, 235, 0.4);
    --text-faint: rgba(240, 232, 235, 0.2);

    --border: rgba(240, 232, 235, 0.08);
    --divider: rgba(240, 232, 235, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);

    --link-hover: #ffb0a9;
    --toggle-icon: rgba(240, 232, 235, 0.5);
}

/* ========================================
   BASE
   ======================================== */

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

html {
    overflow-x: hidden;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    max-width: 100vw;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

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

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

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

#app-background {
    display: none;
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.9rem 2rem;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--divider);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.site-branding {
    flex-shrink: 0;
}

.site-title-link {
    text-decoration: none;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.site-title-heart {
    display: inline-flex;
    font-size: 1.1em;
    line-height: 1;
}

.site-title-text {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Header Login Link */
.header-login-link {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary, #f97066);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-login-link:hover {
    background: #e85d53;
    color: #fff;
}

/* User Nav Dropdown */
.user-nav {
    position: relative;
}

.user-nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.user-nav-link img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary, #f97066);
    object-fit: cover;
    transition: border-color 0.2s ease;
}

.user-nav-link:hover img {
    border-color: #e85d53;
}

.user-nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    padding-top: 10px;
    min-width: 180px;
    z-index: 9999;
    background: var(--bg-card, #fff);
    border: 1px solid var(--divider);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.user-nav:hover .user-nav-dropdown,
.user-nav-dropdown:hover {
    display: block;
}

.user-nav-dropdown a {
    display: block;
    padding: 0.5rem 1.25rem;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s ease;
}

.user-nav-dropdown a:hover {
    background: rgba(249, 112, 102, 0.08);
    color: var(--primary, #f97066);
}

/* Navigation */
.main-navigation {
    display: flex;
}

.main-navigation ul {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.25rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-warm);
    border-radius: 1px;
    transition: width 0.2s ease;
}

.main-navigation a:hover {
    color: var(--text);
}

.main-navigation a:hover::after {
    width: 100%;
}

.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    color: var(--text);
}

.main-navigation .current-menu-item a::after,
.main-navigation .current_page_item a::after {
    width: 100%;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--toggle-icon);
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
    color: var(--text);
    background: var(--primary-light);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.theme-toggle .icon-sun {
    stroke: currentColor;
    fill: none;
}

.theme-toggle .icon-moon {
    display: none;
    fill: currentColor;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.menu-toggle-icon {
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .site-header {
        padding: 0.75rem 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active .menu-toggle-icon:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.active .menu-toggle-icon:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .menu-toggle-icon:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--bg-mobile-nav);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1001;
    }

    .main-navigation.active {
        opacity: 1;
        visibility: visible;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .main-navigation a {
        font-size: 1.1rem;
        letter-spacing: 0.02em;
    }

    .main-navigation a::after {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-pill);
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--gradient-warm);
    color: #fff;
    box-shadow: 0 4px 16px rgba(249, 112, 102, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(249, 112, 102, 0.4);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-small {
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
}

/* ========================================
   HOMEPAGE — HERO
   ======================================== */

.homepage {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 0;
}

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    width: 100%;
    padding: 6rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
}

.hero-title .highlight {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--divider);
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

@media (max-width: 480px) {
    .hero-stats {
        gap: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* ========================================
   HOMEPAGE — FEATURES
   ======================================== */

.features-section {
    width: 100%;
    padding: 5rem 2rem;
    background: var(--gradient-subtle);
}

.features-section .section-header {
    text-align: center;
    max-width: 540px;
    margin: 0 auto 3rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--divider);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .features-section {
        padding: 3.5rem 1.5rem;
    }
}

/* ========================================
   HOMEPAGE — TESTIMONIALS
   ======================================== */

.testimonials-section {
    width: 100%;
    padding: 5rem 2rem;
    text-align: center;
}

.testimonials-section .section-header {
    max-width: 540px;
    margin: 0 auto 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--divider);
    text-align: left;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 3rem;
    line-height: 1;
    color: var(--primary-light);
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.25rem;
}

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

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}

.testimonial-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.testimonial-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .testimonials-section {
        padding: 3.5rem 1.5rem;
    }
}

/* ========================================
   HOMEPAGE — CTA BANNER
   ======================================== */

.cta-banner {
    width: 100%;
    padding: 5rem 2rem;
    text-align: center;
    background: var(--gradient-subtle);
}

.cta-banner-inner {
    max-width: 600px;
    margin: 0 auto;
}

.cta-banner h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.cta-banner p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ========================================
   DATING PROFILE CARDS
   ======================================== */

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.profile-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--divider);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.profile-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.profile-card-body {
    padding: 1.25rem;
}

.profile-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.profile-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.profile-card-age {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.profile-card-location {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.profile-card-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.profile-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.profile-tag {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: var(--radius-pill);
}

.profile-card-actions {
    display: flex;
    gap: 0.5rem;
}

.profile-card-actions .btn {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
}

/* ========================================
   BLOG / POSTS
   ======================================== */

.site-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem;
}

.site-main article {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--divider);
}

.site-main article:last-child {
    border-bottom: none;
}

.entry-header {
    margin-bottom: 1.25rem;
}

.entry-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
}

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

.entry-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.entry-meta a {
    color: var(--text-muted);
}

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

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

.entry-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--primary-light);
    text-underline-offset: 3px;
}

.entry-content a:hover {
    color: var(--primary-hover);
    text-decoration-color: var(--primary);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-weight: 700;
    color: var(--text);
    margin: 2rem 0 0.75rem;
    letter-spacing: -0.01em;
}

.entry-content h2 {
    font-size: 1.5rem;
}

.entry-content h3 {
    font-size: 1.25rem;
}

.entry-content h4 {
    font-size: 1.05rem;
}

.entry-content p {
    margin-bottom: 1.25rem;
}

.entry-content ul,
.entry-content ol {
    margin: 1rem 0 1.25rem 1.5rem;
}

.entry-content li {
    margin-bottom: 0.4rem;
}

.entry-content blockquote {
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.entry-content strong {
    font-weight: 600;
    color: var(--text);
}

.entry-content code {
    background: var(--primary-light);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.entry-content pre {
    background: var(--bg-card);
    border: 1px solid var(--divider);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.entry-content pre code {
    background: none;
    padding: 0;
}

.post-thumbnail {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.5rem;
}

.read-more-link:hover {
    gap: 0.5rem;
}

/* Entry Footer / Tags */
.entry-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--divider);
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.entry-tags .tag {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: var(--radius-pill);
    text-decoration: none;
}

.entry-tags .tag:hover {
    background: var(--primary-glow);
}

/* Navigation */
.post-navigation,
.posts-navigation {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--divider);
}

.post-navigation a,
.posts-navigation a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}

.post-navigation a:hover,
.posts-navigation a:hover {
    color: var(--primary-hover);
}

.nav-links {
    display: flex;
    justify-content: space-between;
}

/* ========================================
   PAGE TEMPLATES
   ======================================== */

.page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem;
}

.page-content h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.page-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 2rem 0 0.75rem;
}

.page-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 1.5rem 0 0.5rem;
}

.page-content p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.page-content ul {
    margin: 1rem 0 1.25rem 1.5rem;
    color: var(--text-secondary);
}

.page-content li {
    margin-bottom: 0.4rem;
}

.page-content a {
    color: var(--primary);
}

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

.page-content hr {
    border: none;
    border-top: 1px solid var(--divider);
    margin: 3rem 0;
}

.page-content strong {
    font-weight: 600;
    color: var(--text);
}

/* ========================================
   SIDEBAR / WIDGETS
   ======================================== */

.widget-area {
    padding: 2rem;
}

.widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--divider);
}

.widget-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--divider);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--divider);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
}

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

/* ========================================
   404 PAGE
   ======================================== */

.error-404 {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7rem 2rem 4rem;
}

.error-404-code {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 800;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.error-404 h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 1rem 0 0.5rem;
}

.error-404 p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    position: relative;
    z-index: 100;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--bg-footer);
    border-top: 1px solid var(--divider);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.footer-content {
    max-width: 720px;
    margin: 0 auto;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-brand a {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
}

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

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-faint);
}

/* ========================================
   WOOCOMMERCE — GENERAL
   ======================================== */

.woocommerce-page .site-main,
.woocommerce .site-main {
    max-width: 1100px;
    padding: 7rem 2rem 4rem;
}

.woocommerce .woocommerce-result-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.woocommerce .woocommerce-ordering select {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text);
    cursor: pointer;
}

/* ========================================
   WOOCOMMERCE — PRODUCT GRID
   ======================================== */

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}

.woocommerce ul.products li.product {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--divider);
    overflow: hidden;
    padding: 0;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    min-height: 200px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block !important;
    margin: 0;
    border-radius: 0;
    background: #f0f0f0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    padding: 1rem 1rem 0.25rem;
    margin: 0;
}

.woocommerce ul.products li.product .price {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    padding: 0 1rem;
    margin: 0;
}

.woocommerce ul.products li.product .price del {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.85rem;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: var(--primary);
}

.woocommerce ul.products li.product .star-rating {
    margin: 0.5rem 1rem 0;
    color: var(--accent-amber);
    font-size: 0.8rem;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0.75rem 1rem 1rem;
    padding: 0.6rem 1.25rem;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--gradient-warm);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 112, 102, 0.3);
}

.woocommerce ul.products li.product .onsale {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    z-index: 2;
    min-height: auto;
    min-width: auto;
    line-height: 1.5;
}

/* ========================================
   WOOCOMMERCE — SINGLE PRODUCT
   ======================================== */

.woocommerce div.product {
    max-width: 1000px;
    margin: 0 auto;
}

.woocommerce div.product div.images {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.woocommerce div.product div.images img {
    border-radius: var(--radius-md);
}

.woocommerce div.product .product_title {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.woocommerce div.product p.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.woocommerce div.product .woocommerce-product-details__short-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.woocommerce div.product form.cart {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.woocommerce div.product form.cart .quantity input {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.95rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text);
    width: 70px;
    text-align: center;
}

.woocommerce div.product form.cart .button,
.woocommerce .single_add_to_cart_button {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    background: var(--gradient-warm);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
}

.woocommerce div.product form.cart .button:hover,
.woocommerce .single_add_to_cart_button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(249, 112, 102, 0.35);
}

.woocommerce div.product .woocommerce-tabs {
    margin-top: 3rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none;
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--divider);
    padding: 0;
    margin: 0 0 1.5rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: none;
    border: none;
    margin: 0;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.woocommerce div.product .woocommerce-tabs .panel {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   WOOCOMMERCE — CART
   ======================================== */

.woocommerce table.shop_table {
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    overflow: hidden;
    border-collapse: collapse;
}

.woocommerce table.shop_table th {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--gradient-subtle);
    padding: 1rem;
    border-bottom: 1px solid var(--divider);
}

.woocommerce table.shop_table td {
    padding: 1rem;
    border-bottom: 1px solid var(--divider);
    color: var(--text-secondary);
    vertical-align: middle;
}

.woocommerce table.shop_table img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.woocommerce .cart_totals {
    background: var(--bg-card);
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.woocommerce .wc-proceed-to-checkout .checkout-button {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.85rem 2rem;
    background: var(--gradient-warm);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: block;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.woocommerce .wc-proceed-to-checkout .checkout-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(249, 112, 102, 0.35);
}

/* ========================================
   WOOCOMMERCE — FORMS & INPUTS
   ======================================== */

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text);
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.woocommerce form .form-row label {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.4rem;
    display: block;
}

/* ========================================
   WOOCOMMERCE — NOTICES
   ======================================== */

.woocommerce .woocommerce-message {
    border-top-color: var(--primary);
    background: var(--primary-light);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
}

.woocommerce .woocommerce-info {
    border-top-color: var(--accent-amber);
    background: rgba(244, 165, 67, 0.1);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
}

.woocommerce .woocommerce-error {
    border-top-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
}

.woocommerce .woocommerce-message a.button,
.woocommerce .woocommerce-info a.button {
    background: var(--gradient-warm);
    color: #fff;
    border-radius: var(--radius-pill);
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
}

/* ========================================
   WOOCOMMERCE — BREADCRUMBS
   ======================================== */

.woocommerce .woocommerce-breadcrumb {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.woocommerce .woocommerce-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

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

/* ========================================
   WOOCOMMERCE — PAGINATION
   ======================================== */

.woocommerce nav.woocommerce-pagination {
    margin-top: 2rem;
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--divider);
    color: var(--text-muted);
    background: var(--bg-card);
    transition: all 0.2s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--gradient-warm);
    color: #fff;
    border-color: transparent;
}

/* ========================================
   MERCH / PRODUCT GRID (non-WC fallback)
   ======================================== */

.merch-section {
    width: 100%;
    padding: 5rem 2rem;
}

.merch-section .section-header {
    text-align: center;
    max-width: 540px;
    margin: 0 auto 3rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

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

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

.product-card-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

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

.product-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.product-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.product-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.product-card .btn {
    align-self: flex-start;
}

/* ========================================
   FORMS
   ======================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Search form */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form .search-field {
    flex: 1;
}

.search-form .search-submit {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.7rem 1.25rem;
    background: var(--gradient-warm);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-form .search-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 112, 102, 0.3);
}

/* ========================================
   COMMENTS
   ======================================== */

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--divider);
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--divider);
}

.comment-author {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.comment-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.comment-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.comment-respond .comment-reply-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.comment-form label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    display: block;
    margin-bottom: 0.3rem;
}

.comment-form .form-submit .submit {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    background: var(--gradient-warm);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-form .form-submit .submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 112, 102, 0.3);
}

/* ========================================
   UTILITIES
   ======================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal;
}

.alignwide {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100%;
    max-width: 100%;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .page-content,
    .site-main {
        padding: 5.5rem 1.25rem 3rem;
    }

    .woocommerce-page .site-main,
    .woocommerce .site-main {
        padding: 5.5rem 1.25rem 3rem;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .woocommerce ul.products li.product a img,
    .woocommerce ul.products li.product img {
        height: 180px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        padding: 0 1.25rem;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .woocommerce table.shop_table {
        font-size: 0.85rem;
    }
}

/* ========================================
   COOKIE CONSENT BANNER OVERRIDE (CookieAdmin)
   ======================================== */

/* CookieAdmin — override the box/bottom_left layout to full-width bar */
.cookieadmin_consent_inside {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0.75rem 2rem !important;
    background: #fff !important;
    border: none !important;
    border-top: 1px solid #e5e5e5 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06) !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
}

.cookieadmin_header {
    display: none !important;
}

.cookieadmin_notice_con {
    flex: 1 !important;
    min-width: 300px !important;
    position: static !important;
    width: auto !important;
    max-width: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#cookieadmin_notice {
    font-size: 0.8rem !important;
    color: #555 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.cookieadmin_consent_btns {
    display: flex !important;
    gap: 0.5rem !important;
    flex-shrink: 0 !important;
}

.cookieadmin_btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
    background: #f0f0f0 !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}

.cookieadmin_btn.cookieadmin_accept_btn {
    background: #f97066 !important;
    color: #fff !important;
    border-color: #f97066 !important;
}

.cookieadmin_btn.cookieadmin_reject_btn,
.cookieadmin_btn.cookieadmin_customize_btn {
    background: #fff !important;
    color: #555 !important;
    border: 1px solid #ccc !important;
}

.cookieadmin-poweredby,
.cookieadmin_modal_footer_links,
.cookieadmin_remark {
    display: none !important;
}

/* Re-consent floating icon — hide or make subtle */
.cookieadmin_re_consent {
    bottom: 10px !important;
    left: 10px !important;
    width: 30px !important;
    height: 30px !important;
    opacity: 0.4 !important;
}

@media (max-width: 768px) {
    .cookieadmin_consent_inside {
        flex-direction: column !important;
        padding: 0.75rem 1rem !important;
        gap: 0.5rem !important;
    }
    .cookieadmin_notice_con {
        min-width: auto !important;
    }
}

/* ========================================
   PRICING CARDS (Join Page)
   ======================================== */

/* Widen page for pricing */
.page-id-7 .page-content {
    max-width: 960px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.pricing-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
    border-color: var(--primary, #f97066);
    box-shadow: 0 4px 20px rgba(249, 112, 102, 0.15);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary, #f97066);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 20px;
}

.pricing-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-price .currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.pricing-period {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
}

.pricing-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--divider);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: '\2713';
    color: var(--primary, #f97066);
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-card .btn {
    width: 100%;
    display: block;
    text-align: center;
    padding: 0.75rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pricing-card .btn-primary {
    background: var(--primary, #f97066);
    color: #fff;
    border: none;
}

.pricing-card .btn-primary:hover {
    background: #e85d53;
}

.pricing-card .btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.pricing-card .btn-secondary:hover {
    border-color: var(--primary, #f97066);
    color: var(--primary, #f97066);
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}


/* ========================================
   BUDDYPRESS NOUVEAU — Clean Override (No Cover Images)
   ======================================== */

#buddypress,
.buddypress-wrap {
    font-family: 'Inter', -apple-system, sans-serif !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Full width BP pages — kill all extra spacing */
.buddypress .site-main,
.buddypress .page-content,
.bp-user .site-main,
.bp-user .page-content,
.directory .site-main,
.directory .page-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    padding-top: 60px !important; /* just enough for fixed header */
}

/* Hide redundant WP page title on BP pages */
.bp-user .page-content > h1,
.directory .page-content > h1 {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ---- PROFILE HEADER ---- */

/* Gradient banner behind header */
#buddypress #item-header {
    background: linear-gradient(135deg, #f97066 0%, #f59e0b 100%) !important;
    padding: 2.5rem 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding-left: max(2rem, calc(50vw - 600px)) !important;
    padding-right: max(2rem, calc(50vw - 600px)) !important;
}

#buddypress #item-header-avatar {
    flex-shrink: 0 !important;
    float: none !important;
}

#buddypress #item-header-avatar img {
    width: 110px !important;
    height: 110px !important;
    border-radius: 50% !important;
    border: 4px solid rgba(255,255,255,0.9) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}

#buddypress #item-header-content {
    flex: 1 !important;
}

#buddypress #item-header-content h2,
#buddypress #item-header-content .user-nicename {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 !important;
}

#buddypress #item-header-content .item-meta {
    margin-top: 0.25rem !important;
}

#buddypress #item-header-content .activity {
    font-size: 0.85rem !important;
    color: rgba(255,255,255,0.8) !important;
}

#buddypress .member-header-actions {
    margin-top: 0.75rem !important;
    display: flex !important;
    gap: 0.5rem !important;
}

#buddypress .member-header-actions .generic-button a {
    display: inline-block !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    background: rgba(255,255,255,0.95) !important;
    color: #f97066 !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

#buddypress .member-header-actions .generic-button a:hover {
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* ---- NAV TABS ---- */

#buddypress .bp-navs {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    border-bottom: 1px solid var(--divider) !important;
    background: none !important;
    box-shadow: none !important;
}

#buddypress .bp-navs ul {
    display: flex !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
}

#buddypress .bp-navs ul li {
    float: none !important;
    margin: 0 !important;
    background: none !important;
}

#buddypress .bp-navs ul li a {
    display: block !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    color: var(--text-muted) !important;
    text-decoration: none !important;
    border-bottom: 2px solid transparent !important;
    background: none !important;
    transition: color 0.2s ease !important;
}

#buddypress .bp-navs ul li a:hover {
    color: var(--text) !important;
    background: none !important;
}

#buddypress .bp-navs ul li.current a,
#buddypress .bp-navs ul li.selected a {
    color: var(--primary, #f97066) !important;
    border-bottom-color: var(--primary, #f97066) !important;
    background: none !important;
}

#buddypress .bp-navs .count {
    background: var(--primary, #f97066) !important;
    color: #fff !important;
    font-size: 0.6rem !important;
    padding: 0.1rem 0.4rem !important;
    border-radius: 10px !important;
}

/* ---- CONTENT AREA ---- */

#buddypress .bp-wrap {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 1.5rem 2rem !important;
}

/* ---- MEMBER DIRECTORY — Card Grid ---- */

#buddypress .dir-navs,
#buddypress .members-type-navs {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

#buddypress #subnav-filters {
    max-width: 1200px !important;
    margin: 0 auto 1rem !important;
    padding: 0 2rem !important;
}

#buddypress #members-dir-list {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

#buddypress .bp-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.25rem !important;
}

#buddypress .bp-list > li {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 1.5rem 1rem !important;
    background: var(--bg-card, #fff) !important;
    border: 1px solid var(--divider) !important;
    border-radius: 16px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    float: none !important;
    width: auto !important;
}

#buddypress .bp-list > li:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
}

#buddypress .bp-list .item-avatar {
    float: none !important;
    margin: 0 0 0.75rem !important;
}

#buddypress .bp-list .item-avatar img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    border: 3px solid var(--primary, #f97066) !important;
}

#buddypress .bp-list .item .item-title a {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    text-decoration: none !important;
}

#buddypress .bp-list .item .item-title a:hover {
    color: var(--primary, #f97066) !important;
}

#buddypress .bp-list .item .item-meta {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
}

#buddypress .bp-list .item .item-block {
    float: none !important;
}

#buddypress .bp-list .action {
    float: none !important;
    position: static !important;
    margin-top: 0.75rem !important;
}

#buddypress .bp-list .action .generic-button a {
    padding: 0.35rem 0.9rem !important;
    font-size: 0.75rem !important;
    background: var(--primary, #f97066) !important;
    color: #fff !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    border: none !important;
}

/* ---- SEARCH & FILTERS ---- */

#buddypress .dir-search input[type="search"],
#buddypress .dir-search input[type="text"] {
    padding: 0.5rem 1rem !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-family: 'Inter', sans-serif !important;
    background: var(--bg) !important;
    min-width: 250px !important;
}

#buddypress .dir-search input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(249,112,102,0.12) !important;
    outline: none !important;
}

#buddypress select {
    padding: 0.4rem 0.75rem !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    background: var(--bg) !important;
}

/* ---- FORMS ---- */

#buddypress .standard-form input[type="text"],
#buddypress .standard-form input[type="email"],
#buddypress .standard-form input[type="password"],
#buddypress .standard-form textarea,
#buddypress .standard-form select {
    width: 100% !important;
    padding: 0.6rem 0.9rem !important;
    font-size: 0.9rem !important;
    font-family: 'Inter', sans-serif !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    background: var(--bg) !important;
    color: var(--text) !important;
}

#buddypress .standard-form input:focus,
#buddypress .standard-form textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(249,112,102,0.12) !important;
    outline: none !important;
}

#buddypress .standard-form label {
    font-size: 0.85rem !important;
    font-weight: 500 !important;
}

#buddypress input[type="submit"],
#buddypress button[type="submit"] {
    background: var(--primary, #f97066) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 0.6rem 1.5rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

#buddypress input[type="submit"]:hover {
    background: #e85d53 !important;
}

/* ---- PROFILE FIELDS ---- */

#buddypress table.profile-fields {
    width: 100% !important;
    border-collapse: collapse !important;
}

#buddypress table.profile-fields td {
    padding: 0.6rem 0 !important;
    font-size: 0.9rem !important;
    border-bottom: 1px solid var(--divider) !important;
}

#buddypress table.profile-fields .label {
    font-weight: 600 !important;
    color: var(--text-muted) !important;
    width: 30% !important;
}

#buddypress .bp-widget h2 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid var(--divider) !important;
    margin-bottom: 0.75rem !important;
}

/* ---- ACTIVITY ---- */

#buddypress .activity-list li {
    padding: 1rem 0 !important;
    border-bottom: 1px solid var(--divider) !important;
}

#buddypress .activity-header a {
    color: var(--primary) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* ---- NOTICES ---- */

#buddypress .bp-feedback {
    border-radius: 10px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.85rem !important;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 1024px) {
    #buddypress .bp-list {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    #buddypress .bp-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #buddypress #item-header {
        flex-wrap: wrap !important;
        padding: 1.5rem 1rem !important;
    }

    #buddypress #item-header-avatar img {
        width: 80px !important;
        height: 80px !important;
    }

    #buddypress .bp-navs ul {
        justify-content: center !important;
    }

    #buddypress .bp-wrap,
    #buddypress #subnav-filters,
    #buddypress #members-dir-list {
        padding: 1rem !important;
    }
}

@media (max-width: 480px) {
    #buddypress .bp-list {
        grid-template-columns: 1fr !important;
    }
}

/* ---- FRONT PAGE MEMBER PREVIEW ---- */

.member-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.member-preview-card {
    background: var(--bg-card, #fff);
    border: 1px solid var(--divider);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.member-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.member-preview-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--primary, #f97066);
    margin-bottom: 0.75rem;
}

.member-preview-card .member-preview-name {
    font-weight: 600;
    color: var(--text);
}

.member-preview-card .member-preview-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .member-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
