/* CSS Variables */
:root {
    --primary: #2D5A4A;
    --primary-light: #3D7A6A;
    --primary-dark: #1D4A3A;
    --secondary: #D4A574;
    --secondary-light: #E4B584;
    --accent: #8B4513;
    --background: #FAFAFA;
    --surface: #FFFFFF;
    --surface-hover: #F5F5F5;
    --text: #1A1A1A;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #E5E5E5;
    --border-dark: #CCCCCC;
    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: 0.2s ease;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 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);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border-color: var(--border);
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-amazon {
    background: #FF9900;
    color: #111;
    border-color: #FF9900;
}

.btn-amazon:hover {
    background: #E88B00;
    border-color: #E88B00;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
}

.logo-icon {
    font-size: 28px;
}

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

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    font-weight: 500;
    color: var(--text-light);
    transition: color var(--transition);
}

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

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

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #F8FAF9 0%, #EDF5F2 100%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-content h1 .highlight {
    color: var(--primary);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 500px;
}

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

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

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

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* Animated Bed Showcase */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bed-showcase {
    position: relative;
    width: 400px;
    height: 280px;
    animation: float 6s ease-in-out infinite;
}

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

.bed-frame {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 360px;
    height: 180px;
    background: linear-gradient(135deg, #8B6914 0%, #A67C00 50%, #8B6914 100%);
    border-radius: 8px;
    box-shadow:
        0 20px 40px rgba(139, 105, 20, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.bed-frame::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 10px;
    width: 40px;
    height: 80px;
    background: linear-gradient(135deg, #7A5A10 0%, #9B7010 100%);
    border-radius: 8px 8px 4px 4px;
}

.bed-frame::after {
    content: '';
    position: absolute;
    top: -60px;
    right: 10px;
    width: 40px;
    height: 80px;
    background: linear-gradient(135deg, #7A5A10 0%, #9B7010 100%);
    border-radius: 8px 8px 4px 4px;
}

.mattress {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 100px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F5 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pillows {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.pillow {
    width: 100px;
    height: 50px;
    background: linear-gradient(180deg, #FFFFFF 0%, #E8E8E8 100%);
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

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

.features-bar .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 500;
}

.feature-icon {
    font-size: 20px;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

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

/* Products Section */
.products-section {
    padding: 80px 0;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

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

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

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.filter-select {
    padding: 8px 32px 8px 12px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    cursor: pointer;
    appearance: none;
}

.view-toggle {
    display: flex;
    gap: 4px;
    margin-left: auto;
    padding: 4px;
    background: var(--surface-hover);
    border-radius: var(--radius-sm);
}

.view-btn {
    padding: 8px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition);
}

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

.view-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

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

.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

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

.product-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #F5F5F5 0%, #E8E8E8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image .bed-icon {
    font-size: 80px;
    opacity: 0.8;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: white;
}

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

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

.compare-checkbox {
    position: absolute;
    top: 12px;
    right: 12px;
}

.compare-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.product-content {
    padding: 20px;
}

.product-type {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    background: rgba(45, 90, 74, 0.1);
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

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

.stars {
    color: #FBBF24;
    font-size: 14px;
}

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

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.product-feature {
    font-size: 12px;
    color: var(--text-light);
    background: var(--surface-hover);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

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

.price-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

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

.product-actions {
    display: flex;
    gap: 8px;
}

.product-actions .btn {
    flex: 1;
}

/* Product Table */
.product-table-container {
    overflow-x: auto;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.product-table th {
    background: var(--surface-hover);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-light);
}

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

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

.product-table .product-thumb {
    width: 60px;
    height: 60px;
    background: var(--surface-hover);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Quiz Section */
.quiz-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #F8FAF9 0%, #EDF5F2 100%);
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

.quiz-header {
    text-align: center;
    margin-bottom: 32px;
}

.quiz-header h2 {
    font-family: var(--font-display);
    font-size: 32px;
    margin-bottom: 12px;
}

.quiz-header p {
    color: var(--text-light);
}

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

.progress-bar {
    height: 8px;
    background: var(--surface-hover);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
    width: 20%;
}

.progress-text {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.quiz-question {
    text-align: center;
    margin-bottom: 32px;
}

.quiz-question h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.quiz-question p {
    color: var(--text-light);
}

.quiz-options {
    display: grid;
    gap: 12px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--surface-hover);
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.quiz-option:hover {
    border-color: var(--primary);
    background: rgba(45, 90, 74, 0.05);
}

.quiz-option.selected {
    border-color: var(--primary);
    background: rgba(45, 90, 74, 0.1);
}

.quiz-option-icon {
    font-size: 32px;
}

.quiz-option-text {
    flex: 1;
}

.quiz-option-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.quiz-option-text span {
    font-size: 14px;
    color: var(--text-light);
}

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

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

.quiz-result h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--primary);
}

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

.quiz-recommendations {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.quiz-recommendation {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--surface-hover);
    border-radius: var(--radius);
    text-align: left;
}

.quiz-recommendation .product-thumb {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.quiz-recommendation-content {
    flex: 1;
}

.quiz-recommendation-content h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.quiz-recommendation-content .match {
    font-size: 14px;
    color: var(--success);
    font-weight: 500;
}

/* Compare Section */
.compare-section {
    padding: 80px 0;
}

.compare-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.compare-slot {
    min-height: 200px;
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.compare-slot:not(.empty) {
    border-style: solid;
    border-color: var(--primary);
}

.compare-slot.empty:hover {
    border-color: var(--primary);
    background: rgba(45, 90, 74, 0.02);
}

.add-compare-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    transition: color var(--transition);
}

.add-compare-btn:hover {
    color: var(--primary);
}

.compare-slot-content {
    padding: 16px;
    text-align: center;
    width: 100%;
}

.compare-slot-content .product-thumb {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    background: var(--surface-hover);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.compare-slot-content h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.compare-slot-content .price {
    font-weight: 600;
    color: var(--primary);
}

.remove-compare {
    margin-top: 8px;
    padding: 4px 12px;
    font-size: 12px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
}

.remove-compare:hover {
    border-color: var(--error);
    color: var(--error);
}

.compare-table-container {
    overflow-x: auto;
    margin-bottom: 24px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    background: var(--surface-hover);
    width: 180px;
}

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

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

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 20px;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
}

.modal-close:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.product-picker-list {
    display: grid;
    gap: 8px;
}

.product-picker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface-hover);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition);
}

.product-picker-item:hover {
    background: rgba(45, 90, 74, 0.1);
}

.product-picker-item .product-thumb {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.product-picker-item .product-info {
    flex: 1;
}

.product-picker-item .product-info h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.product-picker-item .product-info span {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* Guide Section */
.guide-section {
    padding: 80px 0;
    background: var(--surface);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.guide-card {
    padding: 32px;
    background: var(--background);
    border-radius: var(--radius);
    transition: all var(--transition);
}

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

.guide-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.guide-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.guide-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* SEO Section */
.seo-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #F8FAF9 0%, #EDF5F2 100%);
}

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

.seo-content h2 {
    font-family: var(--font-display);
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--primary-dark);
}

.seo-content h3 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text);
}

.seo-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.seo-content strong {
    color: var(--text);
}

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

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

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

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

.footer-brand .logo-au {
    color: var(--secondary);
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: white;
}

.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: color var(--transition);
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

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

.affiliate-notice {
    font-size: 12px;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .bed-showcase {
        width: 300px;
        height: 210px;
    }

    .bed-frame {
        width: 270px;
        height: 135px;
    }

    .bed-frame::before,
    .bed-frame::after {
        width: 30px;
        height: 60px;
        top: -45px;
    }

    .mattress {
        width: 240px;
        height: 75px;
        bottom: 30px;
    }

    .pillows {
        bottom: 82px;
    }

    .pillow {
        width: 75px;
        height: 38px;
    }

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

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

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

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

    .hero {
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 36px;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .features-bar .container {
        flex-direction: column;
        text-align: center;
    }

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

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .view-toggle {
        margin-left: 0;
        justify-content: center;
    }

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

    .quiz-container {
        padding: 24px;
    }

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

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

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

/* Animation for loading */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-hover);
}

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

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