/* =============================================
   Bedside Table Australia - Styles
   Modern, Clean UI/UX Design
   ============================================= */

/* CSS Variables */
:root {
    --primary-color: #2c5530;
    --primary-dark: #1e3d22;
    --primary-light: #4a7c4f;
    --secondary-color: #c9a86c;
    --secondary-light: #e8d5b0;
    --accent-color: #8b4513;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-light: #777777;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f6f3;
    --bg-tertiary: #f0ebe4;
    --border-color: #e5e0d8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --font-primary: '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-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-product {
    width: 100%;
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
}

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

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

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

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

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

.logo-text {
    font-family: var(--font-display);
    color: var(--text-primary);
}

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

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

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

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

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

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

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

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

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

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

.hero-content {
    max-width: 560px;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

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

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 12px;
    background-color: var(--secondary-light);
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 400px;
    background: linear-gradient(145deg, var(--secondary-light), var(--bg-tertiary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-container::before {
    content: '🛏️';
    font-size: 180px;
    opacity: 0.5;
}

.floating-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

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

/* Filter Section */
.filters {
    padding: 60px 0 40px;
    background-color: var(--bg-primary);
}

.filter-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.filter-title {
    font-size: 36px;
    text-align: center;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.filter-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    background-color: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

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

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

/* Products Grid */
.products {
    padding: 40px 0 80px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Product Card */
.product-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
}

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

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--primary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.product-badge.new {
    background-color: #3498db;
}

.product-badge.value {
    background-color: #e74c3c;
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    transition: var(--transition);
}

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

/* Product Placeholder Styles */
.modern-1 { background: linear-gradient(135deg, #f5e6d3, #e8d5b7); }
.modern-1::before { content: '🪵'; }

.minimalist-1 { background: linear-gradient(135deg, #e8e8e8, #d0d0d0); }
.minimalist-1::before { content: '📦'; }

.wooden-1 { background: linear-gradient(135deg, #deb887, #c19a6b); }
.wooden-1::before { content: '🏡'; }

.budget-1 { background: linear-gradient(135deg, #f5f5f5, #e0e0e0); }
.budget-1::before { content: '🤍'; }

.modern-2 { background: linear-gradient(135deg, #4a4a4a, #2d2d2d); }
.modern-2::before { content: '⚙️'; }

.wooden-2 { background: linear-gradient(135deg, #8b4513, #a0522d); }
.wooden-2::before { content: '🪵'; }

.minimalist-2 { background: linear-gradient(135deg, #f0e6d3, #e5d5c0); }
.minimalist-2::before { content: '⭕'; }

.budget-2 { background: linear-gradient(135deg, #90ee90, #7cb47c); }
.budget-2::before { content: '🎋'; }

.modern-3 { background: linear-gradient(135deg, #2c3e50, #34495e); }
.modern-3::before { content: '🔌'; }

.product-content {
    padding: 24px;
}

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

.product-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.product-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

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

.feature {
    font-size: 13px;
    color: var(--text-light);
    background-color: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: 20px;
}

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

.stars {
    color: #ffc107;
    font-size: 16px;
}

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

.product-price {
    margin-bottom: 16px;
}

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

/* Styles Section */
.styles-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 48px;
}

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

.style-card {
    background-color: var(--bg-primary);
    padding: 32px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.style-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.style-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.style-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.style-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
}

.style-link:hover {
    color: var(--primary-dark);
}

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

.guide-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.guide-card {
    padding: 32px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    position: relative;
}

.guide-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--secondary-light);
    margin-bottom: 16px;
}

.guide-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

.guide-cta {
    text-align: center;
    padding: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-lg);
    color: white;
}

.guide-cta h3 {
    font-size: 28px;
    margin-bottom: 12px;
    color: white;
}

.guide-cta p {
    margin-bottom: 24px;
    opacity: 0.9;
}

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

.guide-cta .btn-primary:hover {
    background-color: var(--secondary-light);
}

/* Comparison Section */
.comparison-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-primary);
}

.comparison-table th,
.comparison-table td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table tbody tr:hover {
    background-color: var(--bg-secondary);
}

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

.table-link {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.table-link:hover {
    color: var(--primary-dark);
}

/* SEO Section */
.seo-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

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

.seo-content h2 {
    font-size: 32px;
    margin-bottom: 24px;
    text-align: center;
}

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

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

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--secondary-light));
}

.newsletter-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.newsletter-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
}

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

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

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

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

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

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

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

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 32px;
    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.6);
}

.affiliate-disclosure {
    margin-top: 12px;
    font-size: 12px !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

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

    .hero-title {
        font-size: 42px;
    }
}

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

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

    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

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

    .hero-image-container {
        height: 300px;
    }

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

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

    .filter-title,
    .section-title {
        font-size: 28px;
    }

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

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

    .comparison-table th,
    .comparison-table td {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .product-content {
        padding: 20px;
    }

    .product-title {
        font-size: 18px;
    }

    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
}

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

.product-card {
    animation: fadeInUp 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }
.product-card:nth-child(9) { animation-delay: 0.9s; }

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

.show {
    display: block !important;
}

/* Mobile Navigation */
.nav.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: white;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
}

.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);
}
