/*
Theme Name: Condo Plan
Theme URI: https://condoplan.ca
Author: Condo Plan Team
Author URI: https://condoplan.ca
Description: Professional Floor Plan Drafting Platform - A production-ready WordPress theme for Canadian floor plan digitization services. Features hero carousel, WooCommerce integration, user dashboard, and admin-manageable content. Includes 40% reduced height sliders and auto-rotating features/testimonials.
Version: 1.9.1
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: condoplan
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, woocommerce

Condo Plan - Professional Floor Plan Drafting Services
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --cp-primary: #dc2626;
    --cp-primary-hover: #b91c1c;
    --cp-primary-light: #fecaca;
    --cp-secondary: #0f172a;
    --cp-secondary-light: #1e293b;
    --cp-text: #1f2937;
    --cp-text-muted: #6b7280;
    --cp-border: #e5e7eb;
    --cp-background: #f9fafb;
    --cp-white: #ffffff;
    --cp-success: #22c55e;
    --cp-warning: #eab308;
    --cp-error: #ef4444;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--cp-text);
    background-color: var(--cp-background);
}

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

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

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

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.75rem; }
}

p {
    margin: 0 0 1rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 5rem 0;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--cp-primary);
    color: var(--cp-white);
    border-color: var(--cp-primary);
}

.btn-primary:hover {
    background-color: var(--cp-primary-hover);
    border-color: var(--cp-primary-hover);
    color: var(--cp-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--cp-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--cp-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--cp-primary);
    border-color: var(--cp-primary);
}

.btn-outline:hover {
    background-color: var(--cp-primary);
    color: var(--cp-white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--cp-border);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--cp-primary);
}

.site-logo svg {
    width: 1.5rem;
    height: 1.5rem;
}

.main-nav {
    display: none;
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cp-text);
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--cp-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--cp-white);
    border-bottom: 1px solid var(--cp-border);
    padding: 1rem;
    z-index: 99;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: var(--cp-text);
    border-bottom: 1px solid var(--cp-border);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Hero Section (40% Reduced Height)
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: auto;
    background: linear-gradient(135deg, var(--cp-secondary) 0%, var(--cp-secondary-light) 100%);
    color: var(--cp-white);
    overflow: hidden;
}

.hero-section.hero-compact {
    min-height: auto;
}

.hero-carousel {
    position: relative;
}

.hero-slide {
    display: none;
    position: relative;
    padding: 3.5rem 0;
}

@media (min-width: 1024px) {
    .hero-slide {
        padding: 5rem 0;
    }
}

.hero-slide.active {
    display: block;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    z-index: 1;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: #fca5a5;
    margin-bottom: 1rem;
}

.hero-badge::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background: var(--cp-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-title span {
    display: block;
    background: linear-gradient(to right, #f87171, var(--cp-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.hero-feature svg {
    color: var(--cp-success);
}

/* ==========================================================================
   Features Slider (Red Banner - Auto-rotating)
   ========================================================================== */
.features-slider {
    background-color: var(--cp-primary);
    padding: 0.5rem 0;
    overflow: hidden;
}

.features-slider-inner {
    position: relative;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--cp-white);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.5s ease;
}

.feature-slide.active {
    opacity: 1;
    transform: translateY(0);
}

.feature-slide svg {
    width: 16px;
    height: 16px;
}

.feature-slide .feature-title {
    font-weight: 500;
    font-size: 0.875rem;
}

.feature-slide .feature-desc {
    display: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .feature-slide .feature-desc {
        display: inline;
    }
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: var(--cp-primary);
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.how-it-works {
    background: var(--cp-white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cp-primary);
    border: 1px solid var(--cp-primary-light);
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    color: var(--cp-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    position: relative;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .steps-grid::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 12%;
        right: 12%;
        height: 2px;
        background: linear-gradient(to right, var(--cp-primary-light), var(--cp-primary), var(--cp-primary-light));
        transform: translateY(-50%);
        z-index: 0;
    }
}

.step-card {
    position: relative;
    z-index: 1;
    background: var(--cp-white);
    border: 2px solid var(--cp-border);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--cp-primary-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--cp-primary), var(--cp-primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--cp-white);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

.step-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cp-primary);
    margin-bottom: 0.5rem;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 0.875rem;
    color: var(--cp-text-muted);
    margin: 0;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
    background: var(--cp-background);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background: var(--cp-white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--cp-white);
}

.feature-icon.blue { background: #3b82f6; }
.feature-icon.yellow { background: #eab308; }
.feature-icon.green { background: #22c55e; }
.feature-icon.purple { background: #a855f7; }
.feature-icon.orange { background: #f97316; }
.feature-icon.pink { background: #ec4899; }
.feature-icon.indigo { background: #6366f1; }
.feature-icon.teal { background: #14b8a6; }

.feature-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.875rem;
    color: var(--cp-text-muted);
    margin: 0;
}

/* ==========================================================================
   Services / Pricing Section
   ========================================================================== */
.services-section {
    background: var(--cp-white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    background: var(--cp-white);
    border: 2px solid var(--cp-border);
    border-radius: 0.75rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    border-color: var(--cp-primary);
    transform: scale(1.05);
    z-index: 1;
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--cp-primary);
    color: var(--cp-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 0 0.75rem 0 0.5rem;
}

.pricing-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--cp-primary), var(--cp-primary-hover));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--cp-white);
}

.pricing-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.pricing-description {
    font-size: 0.875rem;
    color: var(--cp-text-muted);
    margin-bottom: 1.5rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cp-primary);
}

.pricing-currency {
    font-size: 1rem;
    color: var(--cp-text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.pricing-features svg {
    color: var(--cp-success);
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-card .btn {
    width: 100%;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
    background: var(--cp-primary);
    color: var(--cp-white);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .stat-value {
        font-size: 2.5rem;
    }
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ==========================================================================
   Testimonials Section - Auto-rotating Slider (40% reduced height)
   ========================================================================== */
.testimonials-section {
    background: var(--cp-background);
}

/* Slider Container */
.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 700ms ease-in-out;
}

.testimonial-slide {
    width: 100%;
    flex-shrink: 0;
    padding: 0 1rem;
}

.testimonial-card {
    background: var(--cp-white);
    border-radius: 0.75rem;
    padding: 1rem;
    max-width: 672px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    color: #facc15;
}

.testimonial-stars svg {
    width: 16px;
    height: 16px;
}

.testimonial-quote {
    font-style: italic;
    color: var(--cp-text-muted);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.testimonial-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f87171, var(--cp-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cp-white);
    font-weight: 700;
    font-size: 0.875rem;
}

.testimonial-info {
    text-align: left;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.875rem;
}

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

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background-color: var(--cp-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background-color: #94a3b8;
}

.slider-dot.active {
    width: 24px;
    background-color: var(--cp-primary);
}

/* Legacy grid styles for compatibility */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #f87171, var(--cp-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cp-white);
    font-weight: 700;
}

.author-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.author-role {
    font-size: 0.75rem;
    color: var(--cp-text-muted);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--cp-secondary) 0%, var(--cp-secondary-light) 100%);
    color: var(--cp-white);
    text-align: center;
}

.cta-title {
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
    background: var(--cp-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--cp-white);
    border: 1px solid var(--cp-border);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cp-text);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--cp-background);
}

.faq-question svg {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem;
    color: var(--cp-text-muted);
}

.faq-item.active .faq-answer {
    display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--cp-secondary);
    color: var(--cp-white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr repeat(3, 1fr);
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cp-primary);
    margin-bottom: 1rem;
}

.footer-brand svg {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--cp-primary);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.footer-description {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.6;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cp-primary);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: #f87171;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fca5a5;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #f87171;
}

.footer-contact svg {
    color: var(--cp-primary);
    flex-shrink: 0;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(220, 38, 38, 0.3);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    font-size: 0.875rem;
    color: #f87171;
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #f87171;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-badges {
        justify-content: flex-end;
    }
}

.footer-badges svg {
    color: var(--cp-primary);
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--cp-border);
    border-radius: 0.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--cp-primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   Dashboard Styles
   ========================================================================== */
.dashboard-header {
    background: linear-gradient(135deg, var(--cp-secondary) 0%, var(--cp-secondary-light) 100%);
    color: var(--cp-white);
    padding: 3rem 0;
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-avatar {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--cp-primary), var(--cp-primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

.dashboard-content {
    padding: 2rem 0;
}

.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--cp-border);
    padding-bottom: 0.5rem;
    overflow-x: auto;
}

.dashboard-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cp-text-muted);
    background: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.dashboard-tab:hover,
.dashboard-tab.active {
    background: var(--cp-primary);
    color: var(--cp-white);
}

.dashboard-card {
    background: var(--cp-white);
    border: 1px solid var(--cp-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.dashboard-card-title {
    font-size: 1.125rem;
    font-weight: 600;
}

/* ==========================================================================
   Upload Area
   ========================================================================== */
.upload-area {
    border: 2px dashed var(--cp-border);
    border-radius: 0.75rem;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--cp-primary);
    background: rgba(220, 38, 38, 0.05);
}

.upload-icon {
    width: 3rem;
    height: 3rem;
    color: var(--cp-text-muted);
    margin: 0 auto 1rem;
}

.upload-text {
    color: var(--cp-text-muted);
    margin-bottom: 1rem;
}

.upload-formats {
    font-size: 0.75rem;
    color: var(--cp-text-muted);
}

/* ==========================================================================
   Tables
   ========================================================================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--cp-border);
}

.data-table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cp-text-muted);
    text-transform: uppercase;
    background: var(--cp-background);
}

.data-table tr:hover td {
    background: var(--cp-background);
}

/* ==========================================================================
   Status Badges
   ========================================================================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.status-pending {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-processing {
    background: #fef3c7;
    color: #d97706;
}

.status-completed {
    background: #dcfce7;
    color: #16a34a;
}

.status-delivered {
    background: #f3e8ff;
    color: #9333ea;
}

/* ==========================================================================
   WooCommerce Overrides
   ========================================================================== */
.woocommerce .button,
.woocommerce button.button {
    background-color: var(--cp-primary) !important;
    color: var(--cp-white) !important;
    border: none !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    transition: background-color 0.3s ease !important;
}

.woocommerce .button:hover,
.woocommerce button.button:hover {
    background-color: var(--cp-primary-hover) !important;
}

.woocommerce-message,
.woocommerce-info {
    border-top-color: var(--cp-primary) !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--cp-primary) !important;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

@media (max-width: 767px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
    .hide-desktop { display: none !important; }
}

/* ==========================================================================
   WooCommerce My Account - Dashboard Integration
   ========================================================================== */
.wc-my-account-wrapper {
    padding: 1.5rem;
}

.wc-my-account-wrapper .woocommerce {
    width: 100%;
}

/* My Account Navigation */
.wc-my-account-wrapper .woocommerce-MyAccount-navigation {
    width: 100%;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .wc-my-account-wrapper .woocommerce-MyAccount-navigation {
        float: left;
        width: 25%;
        padding-right: 2rem;
    }

    .wc-my-account-wrapper .woocommerce-MyAccount-content {
        float: right;
        width: 75%;
    }

    .wc-my-account-wrapper .woocommerce::after {
        content: '';
        display: table;
        clear: both;
    }
}

.wc-my-account-wrapper .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wc-my-account-wrapper .woocommerce-MyAccount-navigation ul li {
    margin-bottom: 0;
}

.wc-my-account-wrapper .woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--cp-text);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.wc-my-account-wrapper .woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--cp-background);
    color: var(--cp-primary);
}

.wc-my-account-wrapper .woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--cp-primary);
    color: var(--cp-white);
}

/* My Account Content */
.wc-my-account-wrapper .woocommerce-MyAccount-content {
    min-height: 300px;
}

.wc-my-account-wrapper .woocommerce-MyAccount-content p {
    color: var(--cp-text);
    line-height: 1.6;
}

.wc-my-account-wrapper .woocommerce-MyAccount-content a {
    color: var(--cp-primary);
}

.wc-my-account-wrapper .woocommerce-MyAccount-content a:hover {
    color: var(--cp-primary-hover);
}

/* Orders Table in My Account */
.wc-my-account-wrapper .woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.wc-my-account-wrapper .woocommerce-orders-table th,
.wc-my-account-wrapper .woocommerce-orders-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--cp-border);
    font-size: 0.875rem;
}

.wc-my-account-wrapper .woocommerce-orders-table th {
    font-weight: 600;
    color: var(--cp-text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    background: var(--cp-background);
}

.wc-my-account-wrapper .woocommerce-orders-table tr:hover td {
    background: var(--cp-background);
}

.wc-my-account-wrapper .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.375rem;
    background: var(--cp-primary);
    color: var(--cp-white);
    text-decoration: none;
    margin: 0.125rem;
    transition: background 0.3s ease;
}

.wc-my-account-wrapper .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a:hover {
    background: var(--cp-primary-hover);
    color: var(--cp-white);
}

/* Address Section */
.wc-my-account-wrapper .woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .wc-my-account-wrapper .woocommerce-Addresses {
        grid-template-columns: 1fr 1fr;
    }
}

.wc-my-account-wrapper .woocommerce-Address {
    background: var(--cp-background);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.wc-my-account-wrapper .woocommerce-Address-title h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.wc-my-account-wrapper .woocommerce-Address-title a {
    font-size: 0.875rem;
}

/* Forms in My Account */
.wc-my-account-wrapper .woocommerce-EditAccountForm .woocommerce-form-row,
.wc-my-account-wrapper .woocommerce-address-fields .woocommerce-form-row {
    margin-bottom: 1.25rem;
}

.wc-my-account-wrapper .woocommerce-EditAccountForm label,
.wc-my-account-wrapper .woocommerce-address-fields label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--cp-text);
}

.wc-my-account-wrapper .woocommerce-EditAccountForm input[type="text"],
.wc-my-account-wrapper .woocommerce-EditAccountForm input[type="email"],
.wc-my-account-wrapper .woocommerce-EditAccountForm input[type="password"],
.wc-my-account-wrapper .woocommerce-address-fields input[type="text"],
.wc-my-account-wrapper .woocommerce-address-fields select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid var(--cp-border);
    border-radius: 0.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wc-my-account-wrapper .woocommerce-EditAccountForm input:focus,
.wc-my-account-wrapper .woocommerce-address-fields input:focus,
.wc-my-account-wrapper .woocommerce-address-fields select:focus {
    outline: none;
    border-color: var(--cp-primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* No orders message */
.wc-my-account-wrapper .woocommerce-message,
.wc-my-account-wrapper .woocommerce-info {
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--cp-primary);
    background: var(--cp-background);
    border-radius: 0 0.5rem 0.5rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.wc-my-account-wrapper .woocommerce-error {
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--cp-error);
    background: #fef2f2;
    border-radius: 0 0.5rem 0.5rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    list-style: none;
}

/* ==========================================================================
   Keyphrase / SEO Content Section
   ========================================================================== */
.keyphrase-section {
    background: var(--cp-white);
    padding: 3rem 0;
}

.keyphrase-content {
    max-width: 900px;
    margin: 0 auto;
}

.keyphrase-content p {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--cp-text-muted);
    margin-bottom: 1.25rem;
    text-align: left;
}

.keyphrase-content p:last-child {
    margin-bottom: 0;
}
