/* ===================================
   Smart Casual Women - Stylesheet
   Modern, Clean, Professional Design
   =================================== */

/* CSS Variables */
:root {
    --primary: #8B7355;
    --primary-dark: #6B5344;
    --primary-light: #A89078;
    --secondary: #2C3E50;
    --accent: #D4A574;
    --background: #FDFBF9;
    --surface: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #5A5A5A;
    --text-muted: #8A8A8A;
    --border: #E8E4E0;
    --border-light: #F2EFEC;
    --success: #4A7C59;
    --warning: #D4A574;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}

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

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* 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-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
    white-space: nowrap;
}

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

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

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

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(253, 251, 249, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--secondary);
}

.logo-icon {
    color: var(--primary);
    font-size: 24px;
}

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

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

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 24px 60px;
    max-width: 1280px;
    margin: 0 auto;
    gap: 60px;
}

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

.hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    color: var(--secondary);
    margin-bottom: 24px;
}

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

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

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

.hero-visual {
    flex: 1;
    position: relative;
    min-height: 400px;
    display: none;
}

.floating-card {
    position: absolute;
    padding: 20px 32px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-weight: 500;
    color: var(--secondary);
    animation: float 6s ease-in-out infinite;
}

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

.card-2 {
    top: 45%;
    right: 15%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 20%;
    left: 25%;
    animation-delay: 4s;
}

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

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

.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    color: var(--secondary);
    margin-bottom: 12px;
}

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

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

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 20px;
    flex-wrap: wrap;
}

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

.filter-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: var(--transition);
}

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

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

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

.view-btn {
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-muted);
    transition: var(--transition);
}

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

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

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

.product-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

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

.product-image {
    position: relative;
    padding-top: 120%;
    background: linear-gradient(135deg, #F5F3F0 0%, #E8E4E0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    opacity: 0.3;
}

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

.product-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.product-info {
    padding: 20px;
}

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

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

.product-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--text-secondary);
}

.rating-star {
    color: #F4B942;
}

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

.product-cta .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
}

.compare-btn {
    flex: 0 0 auto !important;
    padding: 12px !important;
    background: var(--border-light);
    color: var(--text-secondary);
}

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

.compare-btn.selected {
    background: var(--accent);
    color: white;
}

/* Products Table */
.products-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.products-table th {
    text-align: left;
    padding: 16px 20px;
    background: var(--border-light);
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
}

.products-table td {
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
    vertical-align: middle;
}

.products-table tr:hover td {
    background: var(--background);
}

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

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

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

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

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

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

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

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

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

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

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

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

.quiz-question h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--secondary);
    margin-bottom: 32px;
}

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

.quiz-option {
    padding: 20px 24px;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    text-align: left;
    font-size: 16px;
    color: var(--text-primary);
    transition: var(--transition);
}

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

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

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

/* Quiz Results */
.quiz-results {
    text-align: center;
}

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

.style-profile {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.style-profile h4 {
    font-size: 24px;
    margin-bottom: 12px;
}

.style-profile p {
    opacity: 0.9;
    line-height: 1.7;
}

.recommended-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.recommended-item {
    background: var(--background);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.recommended-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.recommended-item .item-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.recommended-item h5 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

.recommended-item a {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
}

.recommended-item a:hover {
    text-decoration: underline;
}

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

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

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

.compare-slot:hover {
    border-color: var(--primary-light);
    background: var(--background);
}

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

.slot-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.plus-icon {
    display: block;
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 12px;
    color: var(--border);
}

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

.slot-content .product-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

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

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

.remove-btn {
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-muted);
    background: var(--border-light);
    border-radius: var(--radius-sm);
}

.remove-btn:hover {
    background: #FEE2E2;
    color: #DC2626;
}

/* Compare Table */
.compare-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    margin-bottom: 24px;
}

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

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

.compare-table th {
    background: var(--border-light);
    font-weight: 600;
    color: var(--secondary);
}

.compare-table th:first-child {
    width: 200px;
}

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

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

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

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

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

.modal-header h3 {
    font-size: 20px;
    color: var(--secondary);
}

.modal-close {
    font-size: 28px;
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}

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

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

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

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

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

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

.modal-product-item:hover {
    background: var(--border-light);
}

.modal-product-item .item-icon {
    font-size: 28px;
    width: 48px;
    text-align: center;
}

.modal-product-item .item-info h4 {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 4px;
}

.modal-product-item .item-info p {
    font-size: 13px;
    color: var(--text-muted);
}

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

.seo-content h2 {
    text-align: center;
    font-size: clamp(28px, 4vw, 36px);
    color: var(--secondary);
    margin-bottom: 48px;
}

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

.seo-article {
    padding: 32px;
    background: var(--background);
    border-radius: var(--radius-lg);
}

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

.seo-article p {
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.seo-cta p {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

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

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

.footer-links h4 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

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

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

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

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

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

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--border);
    }

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

    .nav-links li {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-light);
    }

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

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

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

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

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

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

    .filter-tabs {
        overflow-x: auto;
        padding-bottom: 8px;
        flex-wrap: nowrap;
    }

    .view-toggle {
        justify-content: center;
    }

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

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

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

    .compare-slot {
        min-height: 200px;
    }

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

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

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

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

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

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

    .quiz-question h3 {
        font-size: 20px;
    }

    .quiz-option {
        padding: 16px 20px;
        font-size: 15px;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

::-webkit-scrollbar-track {
    background: var(--border-light);
}

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

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