/* ===================================
   MidiDress.com.au - Styles
   Modern, Elegant, Mobile-First
   =================================== */

/* CSS Variables */
:root {
    --primary: #c9a87c;
    --primary-dark: #b08d5b;
    --primary-light: #e8d5b7;
    --secondary: #2c3e50;
    --secondary-light: #34495e;
    --accent: #e74c3c;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --background: #ffffff;
    --background-alt: #faf9f7;
    --background-dark: #f5f3f0;
    --border: #e0ddd8;
    --border-light: #f0ede8;
    --success: #27ae60;
    --warning: #f39c12;
    --error: #e74c3c;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--secondary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-icon {
    padding: 8px;
    border-radius: 50%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary);
}

.logo-au {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--background-alt) 0%, var(--background) 100%);
    padding-top: 70px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 60px 0;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    color: var(--secondary);
}

.hero .highlight {
    color: var(--primary);
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-decoration {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 600"><ellipse cx="200" cy="300" rx="180" ry="280" fill="%23c9a87c" opacity="0.1"/></svg>') center/contain no-repeat;
    transform: translateY(-50%);
    z-index: 1;
}

/* Features Bar */
.features-bar {
    background: var(--secondary);
    padding: 24px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.feature-icon {
    width: 24px;
    height: 24px;
    stroke: var(--primary-light);
}

/* Section Styles */
.products-section,
.quiz-section,
.compare-section,
.seo-section {
    padding: 80px 0;
}

.products-section {
    background: var(--background);
}

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

.compare-section {
    background: var(--background);
}

.seo-section {
    background: var(--background-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Filter Controls */
.filter-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--background-alt);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
}

.filter-select {
    padding: 10px 16px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.view-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
}

.view-btn:hover,
.view-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

.view-btn:hover svg,
.view-btn.active svg {
    fill: white;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

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

.product-image {
    position: relative;
    aspect-ratio: 3/4;
    background: var(--background-alt);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    color: white;
}

.badge-sale {
    background: var(--accent);
}

.badge-new {
    background: var(--success);
}

.badge-popular {
    background: var(--primary);
}

.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.action-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--text);
    fill: none;
    stroke-width: 2;
}

.action-btn:hover {
    background: var(--primary);
}

.action-btn:hover svg {
    stroke: white;
}

.action-btn.active {
    background: var(--primary);
}

.action-btn.active svg {
    stroke: white;
    fill: white;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 8px;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    width: 14px;
    height: 14px;
    fill: var(--warning);
}

.star.empty {
    fill: var(--border);
}

.rating-count {
    font-size: 13px;
    color: var(--text-muted);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
}

.price-original {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-cta {
    display: flex;
    gap: 10px;
}

.product-cta .btn {
    flex: 1;
    padding: 10px 16px;
}

/* Product Table */
.product-table-container {
    overflow-x: auto;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.product-table {
    width: 100%;
    border-collapse: collapse;
}

.product-table th,
.product-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.product-table th {
    background: var(--background-alt);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.product-table tr:hover {
    background: var(--background-alt);
}

.table-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-product-image {
    width: 60px;
    height: 80px;
    border-radius: var(--radius);
    object-fit: cover;
}

.table-product-name {
    font-weight: 500;
}

.table-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Quiz Section */
.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.quiz-progress {
    margin-bottom: 32px;
}

.progress-bar {
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 20%;
}

.progress-text {
    font-size: 13px;
    color: var(--text-muted);
}

.quiz-content {
    min-height: 300px;
}

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

.quiz-question h3 {
    font-size: 1.5rem;
    margin-bottom: 32px;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.quiz-option {
    padding: 20px;
    background: var(--background-alt);
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.quiz-option:hover {
    border-color: var(--primary-light);
    background: white;
}

.quiz-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.quiz-option-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.quiz-option-text {
    font-weight: 500;
    color: var(--secondary);
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
}

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

.result-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.result-title {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.result-description {
    color: var(--text-light);
    margin-bottom: 32px;
}

.result-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

/* Compare Section */
.compare-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.compare-slot {
    min-height: 300px;
    background: white;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.compare-slot:hover {
    border-color: var(--primary);
    background: var(--background-alt);
}

.compare-slot.filled {
    border-style: solid;
    border-color: var(--primary-light);
    cursor: default;
}

.slot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.slot-placeholder svg {
    width: 40px;
    height: 40px;
    stroke: var(--border);
}

.slot-content {
    width: 100%;
    padding: 20px;
}

.slot-image {
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
}

.slot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slot-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.slot-price {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.slot-remove {
    width: 100%;
    padding: 8px;
    background: var(--background-alt);
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.slot-remove:hover {
    background: var(--accent);
    color: white;
}

.compare-table-container {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.compare-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-detail-table th,
.compare-detail-table td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.compare-detail-table th {
    background: var(--background-alt);
    font-size: 13px;
    font-weight: 600;
}

.compare-detail-table th:first-child,
.compare-detail-table td:first-child {
    text-align: left;
    font-weight: 500;
    background: var(--background-alt);
}

.compare-detail-table tr:last-child td {
    border-bottom: none;
}

.compare-actions {
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

/* SEO Section */
.seo-content {
    max-width: 900px;
    margin: 0 auto;
}

.seo-content h2 {
    text-align: center;
    margin-bottom: 40px;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.seo-block {
    background: white;
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.seo-block h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.seo-block p {
    color: var(--text-light);
    line-height: 1.7;
}

.seo-cta {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.seo-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.seo-cta p {
    color: var(--text-light);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: white;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-icon {
    background: var(--primary);
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.7;
}

.footer-links h4 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

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

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-bottom: 8px;
}

.affiliate-disclosure {
    font-size: 11px !important;
    max-width: 600px;
    margin: 0 auto;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
}

.modal-large {
    max-width: 900px;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-alt);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent);
    color: white;
}

.modal-header {
    padding: 24px 24px 0;
}

.modal-header h3 {
    font-size: 1.25rem;
}

.modal-body {
    padding: 24px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-decoration {
        opacity: 0.5;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-light);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

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

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select {
        flex: 1;
    }

    .view-toggle {
        justify-content: center;
    }

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

    .quiz-container {
        padding: 24px;
    }

    .quiz-options {
        grid-template-columns: 1fr;
    }

    .compare-slots {
        grid-template-columns: 1fr;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .products-section,
    .quiz-section,
    .compare-section,
    .seo-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

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

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

    .product-cta {
        flex-direction: column;
    }

    .compare-detail-table {
        font-size: 13px;
    }

    .compare-detail-table th,
    .compare-detail-table td {
        padding: 12px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

.animate-slide-up {
    animation: slideUp 0.5s ease;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: var(--secondary);
    color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    animation: slideUp 0.3s ease;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--error);
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Checkbox Styling */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}
