/* CSS Variables */
:root {
    --primary-color: #8B7355;
    --primary-dark: #6B5344;
    --primary-light: #C4A77D;
    --secondary-color: #2C3E50;
    --accent-gold: #D4AF37;
    --accent-rose: #E8B4B8;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-light: #FAFAFA;
    --bg-cream: #FDF8F3;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 115, 85, 0.4);
}

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

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

.btn-amazon {
    background: #FF9900;
    color: var(--text-dark);
    font-weight: 600;
}

.btn-amazon:hover {
    background: #E88B00;
    transform: translateY(-2px);
}

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

.navbar.scrolled {
    padding: 10px 0;
    border-bottom-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

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

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

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

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

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

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

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

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

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
}

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

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

.hero p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

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

.ring-showcase {
    position: relative;
    width: 400px;
    height: 400px;
}

.floating-ring {
    position: absolute;
    font-size: 80px;
    animation: float 6s ease-in-out infinite;
}

.ring-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.ring-2 {
    top: 40%;
    right: 10%;
    animation-delay: 2s;
    font-size: 100px;
}

.ring-3 {
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
    font-size: 60px;
}

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

/* Section Styles */
.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto 50px;
}

/* Categories */
.categories {
    padding: 100px 0;
    background: var(--white);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

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

.category-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.category-card p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 16px;
}

.category-count {
    display: inline-block;
    background: var(--bg-cream);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Products Showcase */
.products-showcase {
    padding: 100px 0;
    background: var(--bg-light);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 28px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

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

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.product-image {
    position: relative;
    height: 220px;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    overflow: hidden;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-gold);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-compare-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 18px;
}

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

.product-info {
    padding: 24px;
}

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

.product-name {
    font-size: 18px;
    font-family: 'Playfair Display', serif;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

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

.product-rating {
    color: var(--accent-gold);
}

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

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

.product-actions .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 13px;
}

/* Quiz Section */
.quiz-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--white) 100%);
}

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

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.quiz-step h3 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

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

.quiz-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

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

.quiz-option.selected {
    border-color: var(--primary-color);
    background: rgba(139, 115, 85, 0.1);
}

.option-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.option-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
}

.quiz-results {
    display: none;
    text-align: center;
}

.quiz-results.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.quiz-results h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.results-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

#restart-quiz {
    margin-top: 20px;
}

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

.compare-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

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

.compare-slot.filled {
    border-style: solid;
    border-color: var(--primary-color);
    background: var(--bg-cream);
}

.add-compare-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

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

.plus-icon {
    font-size: 32px;
    font-weight: 300;
}

.selected-ring {
    padding: 15px;
    text-align: center;
    width: 100%;
}

.selected-ring .ring-name {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 14px;
}

.remove-btn {
    background: var(--text-muted);
    color: var(--white);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.remove-btn:hover {
    background: #dc3545;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

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

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

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

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.modal-search {
    margin-bottom: 20px;
}

.modal-search input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: var(--transition);
}

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

.modal-rings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-ring-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.modal-ring-item:hover {
    background: var(--bg-cream);
}

.modal-ring-icon {
    font-size: 32px;
}

.modal-ring-info {
    flex: 1;
}

.modal-ring-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.modal-ring-price {
    font-size: 14px;
    color: var(--primary-color);
}

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

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

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

.compare-table th {
    background: var(--bg-cream);
    font-weight: 600;
    font-size: 14px;
}

.compare-table td {
    font-size: 14px;
}

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

.compare-table .feature-name {
    font-weight: 500;
    color: var(--text-dark);
}

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

.table-controls {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.table-search input,
.table-sort select {
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    background: var(--white);
    min-width: 200px;
}

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

.table-responsive {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

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

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

.data-table th {
    background: var(--bg-cream);
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary-color);
}

.data-table td {
    font-size: 14px;
}

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

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

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

.table-product-icon {
    font-size: 28px;
}

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

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

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

/* SEO Content Section */
.seo-content {
    padding: 100px 0;
    background: var(--white);
}

.seo-content h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.seo-block h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

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

.seo-cta {
    text-align: center;
    padding: 40px;
    background: var(--bg-cream);
    border-radius: var(--border-radius);
}

.seo-cta p {
    font-size: 17px;
    color: var(--text-dark);
    line-height: 1.8;
}

.seo-cta a {
    color: var(--primary-color);
    font-weight: 500;
}

.seo-cta a:hover {
    text-decoration: underline;
}

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

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

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

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

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

.footer-links h4,
.footer-info h4 {
    font-size: 16px;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

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

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

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

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

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.8;
}

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

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

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: var(--primary-dark);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

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

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

    .ring-showcase {
        width: 300px;
        height: 300px;
    }

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: var(--shadow-md);
    }

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

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

    .quiz-container {
        padding: 30px 20px;
    }

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

    .compare-selector {
        flex-direction: column;
        align-items: center;
    }

    .compare-slot {
        width: 100%;
        max-width: 300px;
    }

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

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

    .table-search input,
    .table-sort select {
        width: 100%;
    }

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

@media (max-width: 480px) {
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .section-title {
        font-size: 1.75rem;
    }

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

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