/* ===== CSS Variables ===== */
:root {
    --primary: #2D5A4A;
    --primary-light: #3D7A64;
    --primary-dark: #1D3A30;
    --secondary: #C49B66;
    --secondary-light: #D4B486;
    --accent: #E8D5B7;
    --background: #FAFAF8;
    --surface: #FFFFFF;
    --text: #1A1A1A;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #E5E5E5;
    --border-light: #F0F0F0;
    --success: #28A745;
    --warning: #FFC107;
    --error: #DC3545;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: 0.3s ease;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

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

ul {
    list-style: none;
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

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

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

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

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

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

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

.logo-icon {
    font-size: 1.75rem;
}

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

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

.nav-links a {
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding: 8px 0;
}

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

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

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

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(45, 90, 74, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 24px;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.7;
}

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

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

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

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

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

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 600px;
}

.frame-gallery {
    position: relative;
    height: 500px;
}

.gallery-frame {
    position: absolute;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.gallery-frame::before {
    content: '';
    position: absolute;
    inset: 12px;
    background: linear-gradient(135deg, #E8D5B7 0%, #D4B486 100%);
    border-radius: var(--radius-sm);
}

.frame-1 {
    width: 280px;
    height: 350px;
    top: 0;
    right: 60px;
    transform: rotate(-5deg);
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.frame-2 {
    width: 200px;
    height: 260px;
    top: 80px;
    right: 280px;
    transform: rotate(8deg);
    z-index: 2;
    animation: float 6s ease-in-out infinite 1s;
}

.frame-3 {
    width: 180px;
    height: 180px;
    bottom: 40px;
    right: 100px;
    transform: rotate(-3deg);
    z-index: 1;
    animation: float 6s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(-3deg); }
}

.frame-2 {
    animation-name: float2;
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(8deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

.frame-3 {
    animation-name: float3;
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
}

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

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition);
}

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Product Card */
.product-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--border-light);
}

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

.product-image {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image::before {
    content: '';
    width: 60%;
    height: 70%;
    background: var(--surface);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

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

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

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

.product-compare-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: var(--surface);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition);
    opacity: 0;
    box-shadow: var(--shadow-sm);
}

.product-card:hover .product-compare-btn {
    opacity: 1;
}

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

.product-compare-btn.added {
    opacity: 1;
    background: var(--primary);
    color: white;
}

.product-content {
    padding: 20px;
}

.product-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.spec-tag {
    padding: 4px 10px;
    background: var(--background);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-light);
}

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

.stars {
    color: #FFB800;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

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

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.product-price .original {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}

.product-link {
    padding: 10px 20px;
    background: var(--secondary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
}

.product-link:hover {
    background: var(--secondary-light);
    transform: scale(1.05);
}

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

.quiz-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

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

.quiz-header h2 {
    margin-bottom: 12px;
}

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

.quiz-container {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

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

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

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

.progress-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    display: block;
}

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

.quiz-question h3 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

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

.quiz-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    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 input {
    display: none;
}

.quiz-option .option-icon {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 16px;
    flex-shrink: 0;
}

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

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

.quiz-option .option-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.quiz-result {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.quiz-result.hidden {
    display: none;
}

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

.quiz-result h3 {
    margin-bottom: 32px;
}

.result-products {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.result-product {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--background);
    border-radius: var(--radius-md);
    text-align: left;
}

.result-product-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary-light) 100%);
    border-radius: var(--radius-sm);
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-product-image::before {
    content: '';
    width: 50px;
    height: 60px;
    background: var(--surface);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.result-product-info {
    flex: 1;
}

.result-product-info h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-bottom: 4px;
}

.result-product-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.result-product-info .price {
    font-weight: 600;
    color: var(--primary);
}

.result-product-link {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.result-product-link:hover {
    background: var(--primary-light);
}

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

.compare-selector {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.selected-frames {
    display: flex;
    gap: 16px;
}

.compare-slot {
    width: 120px;
    height: 140px;
    background: var(--background);
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

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

.compare-slot.empty .slot-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.compare-slot.filled {
    border-style: solid;
    border-color: var(--primary);
    padding: 8px;
}

.compare-slot.filled .slot-image {
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary-light) 100%);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-slot.filled .slot-image::before {
    content: '';
    width: 40px;
    height: 50px;
    background: var(--surface);
    border-radius: 4px;
}

.compare-slot.filled .slot-name {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.compare-slot .remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.compare-slot.filled .remove-btn {
    display: flex;
}

.compare-table-container {
    overflow-x: auto;
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.compare-table-container.hidden {
    display: none;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

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

.compare-table th {
    background: var(--surface);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-light);
    background: var(--surface);
    position: sticky;
    left: 0;
}

.compare-table .product-header {
    padding: 24px 16px;
}

.compare-table .product-header-image {
    width: 80px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary-light) 100%);
    border-radius: var(--radius-sm);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-table .product-header-image::before {
    content: '';
    width: 50px;
    height: 60px;
    background: var(--surface);
    border-radius: 4px;
}

.compare-table .product-header h4 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.compare-table .view-btn {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.compare-table .view-btn:hover {
    background: var(--primary-light);
}

.compare-table .check {
    color: var(--success);
    font-size: 1.2rem;
}

.compare-table .cross {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    inset: 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);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.modal-header h3 {
    font-family: var(--font-sans);
    font-size: 1.2rem;
}

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

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

.modal-search {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-search input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

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

.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    padding: 24px;
    overflow-y: auto;
}

.modal-item {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.modal-item:hover {
    border-color: var(--primary);
}

.modal-item-image {
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary-light) 100%);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-item-image::before {
    content: '';
    width: 40px;
    height: 50px;
    background: var(--surface);
    border-radius: 4px;
}

.modal-item h4 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
}

.modal-item .price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

/* ===== Table Section ===== */
.table-section {
    padding: 100px 0;
    background: var(--background);
}

.table-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    align-items: center;
}

.table-search {
    flex: 1;
    min-width: 200px;
}

.table-search input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: var(--surface);
}

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

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

.table-filters select {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    background: var(--surface);
    cursor: pointer;
    min-width: 150px;
}

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

.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--surface);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.view-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: all var(--transition);
}

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

.table-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-content.grid-view {
    background: transparent;
    box-shadow: none;
}

.table-content.grid-view .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

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

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

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

.data-table tbody tr {
    transition: background var(--transition);
}

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

.data-table .product-cell {
    display: flex;
    align-items: center;
    gap: 16px;
}

.data-table .product-cell-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary-light) 100%);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-table .product-cell-image::before {
    content: '';
    width: 35px;
    height: 42px;
    background: var(--surface);
    border-radius: 4px;
}

.data-table .product-cell-info h4 {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.data-table .product-cell-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.data-table .stars {
    color: #FFB800;
    font-size: 0.85rem;
}

.data-table .price {
    font-weight: 600;
    color: var(--primary);
}

.data-table .table-link {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.data-table .table-link:hover {
    background: var(--primary-light);
}

.table-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.page-btn {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

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

/* ===== SEO Content Section ===== */
.seo-content {
    padding: 80px 0;
    background: var(--surface);
    border-top: 1px solid var(--border-light);
}

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

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

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

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

.seo-article ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.seo-article li {
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.7;
    list-style-type: disc;
}

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

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

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

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

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

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

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

.footer-column h4 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

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

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

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

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

.affiliate-disclosure {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

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

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }

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

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-md);
    }

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

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

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

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

    .hero-stats {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .quiz-container {
        padding: 24px;
    }

    .quiz-navigation {
        flex-direction: column;
    }

    .compare-selector {
        flex-direction: column;
    }

    .selected-frames {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    .compare-slot {
        width: 100%;
    }

    .table-controls {
        flex-direction: column;
    }

    .table-search {
        width: 100%;
    }

    .table-filters {
        width: 100%;
    }

    .table-filters select {
        flex: 1;
        min-width: calc(50% - 6px);
    }

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

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

    .data-table {
        display: block;
        overflow-x: auto;
    }
}

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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

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

    .selected-frames {
        grid-template-columns: 1fr 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

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