:root {
    --bg-color: #fcf8f8;
    --card-bg: rgba(255, 255, 255, 0.7);
    --text-main: #4a4e69;
    --text-muted: #84879c;
    --accent-gold: #e5989b;
    --accent-gold-hover: #b5838d;
    --border-color: rgba(229, 152, 155, 0.3);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Subtly animated background glow - optimized to avoid lag */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 30%, rgba(229, 152, 155, 0.05) 0%, rgba(250, 249, 246, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Typography & Hero */
.hero {
    text-align: center;
    padding: 6rem 2rem 3rem;
    position: relative;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    color: var(--accent-gold);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.tab-btn.active::after {
    width: 100%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

.category-section {
    display: none;
}

.category-section.active {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Product Card - Glassmorphism & Elegant Layout */
.product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(197, 160, 89, 0.4);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-color: #eee;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.slide img, .slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.product-card:hover .slide img,
.product-card:hover .slide video {
    transform: scale(1.05);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 1rem 0.8rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, transform 0.2s;
    user-select: none;
}

.slider-arrow:hover {
    background: rgba(197, 160, 89, 0.9);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.9);
}

.slider-arrow.prev {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.slider-arrow.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s;
}

.slider-dot.active {
    background: var(--accent-gold);
    transform: scale(1.5);
}

.product-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.product-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Comment / Opinion Section */
.opinion-section {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.opinion-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.opinion-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: var(--accent-gold);
}

.opinion-text {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(229, 152, 155, 0.1);
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.95rem;
    padding: 1rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
    .product-card {
        grid-template-columns: 1fr;
    }
    .product-media {
        min-height: 300px;
    }
    .product-info {
        padding: 2rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 3rem 1rem 2rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .tabs {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .product-info {
        padding: 1.5rem;
    }
    .product-title {
        font-size: 1.5rem;
    }
    .feedback-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    .welcome-title {
        font-size: 2rem;
    }
    .welcome-content {
        padding: 2rem 1rem;
        margin: 1rem;
    }
    .match-title {
        font-size: 2.5rem;
    }
    .match-heart {
        font-size: 4rem;
    }
}



/* Lightbox Styles */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(197, 160, 89, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.lightbox-modal.show .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--text-main);
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent-gold);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.3s ease;
    border-radius: 4px;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    color: var(--accent-gold);
}

.lightbox-nav.prev {
    left: 1rem;
}

.lightbox-nav.next {
    right: 1rem;
}

.product-media {
    cursor: pointer;
}

/* Her Feedback Section */
.her-feedback-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.feedback-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.feedback-btn {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feedback-btn:hover {
    background: rgba(197, 160, 89, 0.1);
    border-color: rgba(197, 160, 89, 0.3);
}

.feedback-btn.like-btn.active {
    background: rgba(39, 174, 96, 0.2);
    border-color: #27ae60;
    color: #2ecc71;
}

.feedback-btn.dislike-btn.active {
    background: rgba(231, 76, 60, 0.2);
    border-color: #c0392b;
    color: #e74c3c;
}

.her-opinion-textarea {
    width: 100%;
    min-height: 80px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.her-opinion-textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.save-status {
    font-size: 0.8rem;
    color: var(--accent-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-self: flex-end;
}

.save-status.show {
    opacity: 1;
}

.opinion-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    align-items: center;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.send-btn {
    background-color: var(--accent-gold);
}

.send-btn:hover {
    background-color: var(--accent-gold-hover);
}

.delete-btn {
    background-color: rgba(231, 76, 60, 0.6);
}

.delete-btn:hover {
    background-color: #c0392b;
}

.posted-comment-box {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(229, 152, 155, 0.1);
    border-left: 3px solid var(--accent-gold);
    border-radius: 4px;
}

.posted-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.posted-comment-text {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.5;
    font-style: italic;
}

/* Welcome Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 50%, rgba(229, 152, 155, 0.15) 0%, rgba(250, 249, 246, 1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 1s ease, visibility 1s ease;
}

.welcome-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.welcome-content {
    text-align: center;
    max-width: 600px;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(229, 152, 155, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.welcome-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.welcome-text {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.start-btn {
    margin-top: 2rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: bold;
    color: var(--bg-color);
    background-color: var(--accent-gold);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.start-btn:hover {
    background-color: var(--accent-gold-hover);
    transform: scale(1.05);
}

/* Match Animation Overlay */
.match-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(250, 249, 246, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.match-overlay.show {
    opacity: 1;
    visibility: visible;
}

.match-content {
    text-align: center;
    transform: scale(0.5);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.match-overlay.show .match-content {
    transform: scale(1);
}

.match-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(229, 152, 155, 0.3);
    margin-bottom: 1rem;
}

.match-heart {
    font-size: 6rem;
    animation: heartBeat 1s infinite alternate;
}

@keyframes heartBeat {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

/* Floating Hearts Confetti */
.floating-heart {
    position: fixed;
    font-size: 2.5rem;
    color: #e74c3c;
    user-select: none;
    pointer-events: none;
    z-index: 10000;
    animation: floatUp 3s ease-in-out forwards;
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-100vh) scale(1.5) rotate(45deg); opacity: 0; }
}

/* Special Note Button */
.special-note-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--accent-gold);
    color: var(--bg-color);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease, background-color 0.3s ease;
    animation: pulseNote 2s infinite;
}
.special-note-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.special-note-btn:hover {
    background-color: var(--accent-gold-hover);
}
@keyframes pulseNote {
    0% { box-shadow: 0 0 0 0 rgba(229, 152, 155, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(229, 152, 155, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 152, 155, 0); }
}

/* Note Modal */
.note-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.note-modal.show {
    opacity: 1;
    pointer-events: auto;
}
.note-content {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 12px;
    max-width: 500px;
    margin: 0 1rem;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.note-modal.show .note-content {
    transform: translateY(0);
}
.note-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}
.note-close:hover {
    color: var(--text-main);
}
