/* ===== CSS Variables ===== */
:root {
    --color-primary: #8B4513;
    --color-primary-dark: #6B3410;
    --color-primary-light: #A0522D;
    --color-secondary: #2C3E50;
    --color-accent: #C9A66B;
    --color-background: #FDFBF7;
    --color-surface: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-light: #666666;
    --color-border: #E8E4DE;
    --color-success: #27AE60;
    --color-warning: #F39C12;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

/* ===== 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(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

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

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

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

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

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

/* ===== Header & Navigation ===== */
.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(--color-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-secondary);
    text-decoration: none;
}

.logo:hover {
    color: var(--color-secondary);
}

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

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

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

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

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

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

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

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

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 24px 60px;
    background: linear-gradient(135deg, #FDF8F3 0%, #F5EDE4 50%, #EDE4D8 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(139, 69, 19, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(201, 166, 107, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    gap: 48px;
    margin-top: 60px;
    padding: 24px 48px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
}

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

/* ===== Products Section ===== */
.products-section {
    padding: 100px 0;
    background-color: var(--color-surface);
}

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

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

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

/* Products Controls */
.products-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

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

.view-btn {
    padding: 10px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--color-text-light);
    transition: all var(--transition-fast);
}

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

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

.product-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
    position: relative;
}

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

.product-image {
    position: relative;
    height: 280px;
    background-color: #F8F6F3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image .boot-emoji {
    font-size: 100px;
    opacity: 0.9;
}

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

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

.product-badge.sale {
    background-color: #E74C3C;
}

.compare-checkbox {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.compare-checkbox:hover {
    border-color: var(--color-primary);
}

.compare-checkbox.selected {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.compare-checkbox.selected::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-weight: 600;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--color-text-light);
}

.product-style {
    padding: 4px 10px;
    background: var(--color-background);
    border-radius: var(--radius-full);
    font-size: 12px;
}

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

.stars {
    color: var(--color-warning);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 16px;
}

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

.product-features span {
    font-size: 12px;
    padding: 4px 10px;
    background: var(--color-background);
    color: var(--color-text-light);
    border-radius: var(--radius-full);
}

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

/* Products Table */
.products-table-wrapper {
    overflow-x: auto;
}

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

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

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

.products-table td {
    font-size: 15px;
}

.products-table tr:hover {
    background-color: rgba(139, 69, 19, 0.03);
}

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

.table-product-emoji {
    font-size: 32px;
}

.table-rating {
    color: var(--color-warning);
}

.table-btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* ===== Quiz Section ===== */
.quiz-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-background) 0%, #F5EDE4 100%);
}

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

.quiz-badge,
.result-badge {
    display: inline-block;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.quiz-container h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.quiz-container > p,
.quiz-intro > p {
    color: var(--color-text-light);
    margin-bottom: 32px;
}

/* Quiz Progress */
.quiz-progress {
    margin-bottom: 40px;
}

.progress-bar {
    height: 6px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
}

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

/* Quiz Questions */
.question-container h3 {
    font-size: 1.5rem;
    margin-bottom: 32px;
}

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

.quiz-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: var(--color-background);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}

.quiz-option:hover {
    border-color: var(--color-primary-light);
    background: rgba(139, 69, 19, 0.05);
}

.quiz-option.selected {
    border-color: var(--color-primary);
    background: rgba(139, 69, 19, 0.08);
}

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

.option-text {
    flex: 1;
}

.option-text strong {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

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

/* Quiz Result */
.quiz-result h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

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

.result-product {
    background: var(--color-background);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.result-product-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.result-product-emoji {
    font-size: 64px;
}

.result-product-info {
    text-align: left;
    flex: 1;
}

.result-product-info h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.result-product-info p {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

/* ===== Compare Section ===== */
.compare-section {
    padding: 100px 0;
    background: var(--color-surface);
}

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

.compare-slot {
    background: var(--color-background);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.compare-slot.filled {
    border-style: solid;
    border-color: var(--color-primary-light);
    padding: 24px;
    justify-content: flex-start;
}

.add-compare-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    transition: all var(--transition-fast);
}

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

.plus-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 2px dashed currentColor;
    border-radius: 50%;
}

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

.compare-slot-emoji {
    font-size: 64px;
    margin-bottom: 16px;
}

.compare-slot-content h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.compare-slot-content p {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.remove-compare-btn {
    padding: 8px 16px;
    font-size: 13px;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--color-text-light);
    transition: all var(--transition-fast);
}

.remove-compare-btn:hover {
    border-color: #E74C3C;
    color: #E74C3C;
}

/* Compare Table */
.compare-table-wrapper {
    overflow-x: auto;
}

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

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

.compare-table th {
    text-align: left;
    font-weight: 600;
    color: var(--color-text-light);
    background: rgba(139, 69, 19, 0.05);
    width: 160px;
}

.compare-table td {
    text-align: center;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
    opacity: 1;
    transition: opacity var(--transition-fast);
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
}

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

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

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.modal-products {
    display: grid;
    gap: 12px;
}

.modal-product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-product:hover {
    border-color: var(--color-primary);
    background: rgba(139, 69, 19, 0.05);
}

.modal-product-emoji {
    font-size: 40px;
}

.modal-product-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.modal-product-info p {
    font-size: 14px;
    color: var(--color-text-light);
}

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

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

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

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

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

.seo-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

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

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

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

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

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

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

.footer-links h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
    font-family: var(--font-body);
}

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

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

.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.6);
    margin-bottom: 8px;
}

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

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

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .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 24px 60px;
    }

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

    .hero-features {
        flex-direction: column;
        gap: 16px;
        padding: 20px 24px;
    }

    .products-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .filters {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .filter-btn {
        white-space: nowrap;
    }

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

    .quiz-container {
        padding: 40px 24px;
    }

    .quiz-option {
        padding: 14px 18px;
    }

    .result-product-content {
        flex-direction: column;
        text-align: center;
    }

    .result-product-info {
        text-align: center;
    }

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

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

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

    .seo-content h3 {
        font-size: 1.2rem;
    }
}

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

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

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

    .product-image {
        height: 220px;
    }
}
