@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400..900&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500&display=swap');

:root {
    --primary-color: #000000;
    --background-color: #ffffff;
    --secondary-bg: #fafafa;
    --text-color: #111111;
    --text-light: #777777;
    --border-color: #eaeaea;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--primary-color);
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 3rem;
    display: block;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

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

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

.btn-solid:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.header.scrolled {
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'League Spartan', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    position: relative;
}

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

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

.header-icons {
    display: flex;
    gap: 1.5rem;
}

.header-icons a {
    font-size: 1.2rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--secondary-bg);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    height: 100%;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 400px;
}

.hero-image {
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-height: 80vh;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
}

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

/* Featured Categories */
.categories {
    padding: 8rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    width: 100%;
    margin: 0 auto;
}

.category-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background-color: var(--secondary-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.category-card img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(255,255,255,0.9), transparent);
    text-align: center;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.category-link::after {
    content: '→';
    transition: var(--transition);
}

.category-card:hover .category-link::after {
    transform: translateX(5px);
}

/* Minimal About Secion */
.home-about {
    padding: 8rem 0;
    background-color: var(--secondary-bg);
}

.home-about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.about-image {
    aspect-ratio: 4/5;
    background-color: #eee;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Best Sellers */
.best-sellers {
    padding: 8rem 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.product-card {
    text-align: center;
    cursor: pointer;
}

.product-image-wrapper {
    background-color: transparent;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
}

.product-image-wrapper img {
    width: 50%;
    transition: transform 0.8s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.08);
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-category {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.product-price {
    font-weight: 500;
}

/* Consultation */
.consultation {
    padding: 8rem 0;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--background-color);
}

.consultation h2 {
    color: var(--background-color);
    margin-bottom: 1.5rem;
}

.consultation p {
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

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

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

/* Footer */
footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

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

.footer-brand p {
    color: var(--text-light);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Animations classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- NEW EXTENSIONS --- */

/* Shopping Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%); /* Start hidden off-screen to the right */
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background-color: var(--background-color);
    z-index: 1100;
    transition: transform 0.6s cubic-bezier(0.8, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
}

.cart-sidebar.active {
    transform: translateX(0); /* Fixed to 0 so it slides INTO view */
}

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

.cart-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close-cart-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-light);
    margin-top: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    background-color: var(--secondary-bg);
    object-fit: contain;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
}

.qty-btn {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1rem;
}

.qty-input {
    width: 30px;
    text-align: center;
    border: none;
    background: none;
    font-size: 0.9rem;
    pointer-events: none;
}

.remove-item-btn {
    background: none;
    border: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-light);
    cursor: pointer;
    letter-spacing: 0.05em;
}

.remove-item-btn:hover {
    color: black;
    text-decoration: underline;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--secondary-bg);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.checkout-btn {
    width: 100%;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #25D366; /* WhatsApp Green */
    border-color: #25D366;
    color: white;
}
.checkout-btn:hover {
    background-color: #128C7E;
    color: white;
    border-color: #128C7E;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
}

/* Newsletter Section */
.newsletter-section {
    padding: 6rem 0;
    background-color: var(--background-color);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-box h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    margin-top: 2rem;
    border-bottom: 1px solid var(--primary-color);
}

.newsletter-input {
    flex: 1;
    border: none;
    padding: 1rem 0;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    background: transparent;
}

.newsletter-btn {
    background: none;
    border: none;
    padding: 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Responsive Extensions */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100vw;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
        margin-left: 0.5rem;
    }
    
    .logo {
        margin-right: auto;
        font-size: 1.2rem;
    }
    
    .header-icons {
        display: flex;
        gap: 0.8rem;
    }
    
    .lang-switcher {
        margin-right: 0.5rem;
        gap: 0.3rem;
    }
    
    .lang-flag img {
        width: 18px !important;
        height: 13px !important;
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        padding-bottom: 2rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 4rem;
        gap: 2rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 2rem auto;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .hero-image img {
        max-height: 50vh;
        width: 100%;
        object-fit: contain;
    }
    
    .home-about .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Smoke Effect Animations */
@keyframes smokeMove {
    0% { transform: translateY(0) scale(1) translateX(0); opacity: 0.3; }
    50% { transform: translateY(-20px) scale(1.1) translateX(10px); opacity: 0.5; }
    100% { transform: translateY(0) scale(1) translateX(0); opacity: 0.3; }
}

.smoke-bg {
    position: relative;
    overflow: hidden;
}

.smoke-bg::before, .smoke-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0.4;
    filter: blur(15px);
    pointer-events: none;
    z-index: 0;
}

.smoke-bg::before {
    animation: smokeMove 8s infinite alternate ease-in-out;
}

.smoke-bg::after {
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: smokeMove 12s infinite alternate-reverse ease-in-out;
}
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .category-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* --- NAIVEBOX QUIZ STYLES --- */
.bg-beige {
    background-color: #FDF8F1;
}

.quiz-main-container {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 80px;
}

.quiz-section {
    display: none;
    transition: opacity 0.5s ease;
}

.quiz-section.active {
    display: block;
}

.quiz-brand-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}
.quiz-brand-subtitle::before {
    content: '•';
    margin-bottom: 5px;
}

.quiz-main-title {
    font-size: 5rem;
    font-weight: 700;
    margin: 10px 0 0 0;
    letter-spacing: -0.05em;
    color: #333;
}

.quiz-subtitle {
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.quiz-description, .quiz-sub-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.quiz-sub-description {
    margin-top: 0.5rem;
}

.quiz-start-btn {
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
    border-radius: 4px;
    margin-top: 3rem;
}

.quiz-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 5rem auto 0 auto;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 3rem;
}

.quiz-pillar h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.quiz-pillar p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Quiz Card Container */
.quiz-card {
    max-width: 700px;
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    margin: 0 auto;
}

.quiz-progress-bar {
    width: 100%;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-bottom: 3rem;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.4s ease;
}

.quiz-question-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-align: center;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-option:hover {
    border-color: #ccc;
    background: var(--secondary-bg);
}

.quiz-option input[type="radio"] {
    margin-right: 1rem;
    transform: scale(1.2);
}

.quiz-option.selected {
    border-color: var(--primary-color);
    background: rgba(0,0,0,0.02);
}

/* Pricing Plans */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

.plan-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan-card.highlighted {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    z-index: 2;
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.plan-card h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

.plan-savings {
    font-size: 0.9rem;
    color: #25D366;
    font-weight: 500;
    margin-bottom: 1.5rem;
    min-height: 1.5rem;
}

.plan-features {
    text-align: left;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.plan-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-btn {
    width: 100%;
    border-radius: 6px;
    padding: 1rem;
}

.w-100 { width: 100%; }

@media (max-width: 992px) {
    .plans-grid { grid-template-columns: 1fr; }
    .plan-card.highlighted { transform: scale(1); }
    .quiz-pillars-grid { grid-template-columns: 1fr; gap: 1rem; }
    .quiz-main-title { font-size: 3.5rem; }
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-right: 1.5rem;
}
.lang-flag {
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}
.lang-flag:hover, .lang-flag.active {
    opacity: 1;
    transform: scale(1.1);
}

/* Image Swap for Perfumes */
.product-image-swap {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.card-link:hover .default-perfume-img,
.card-link:active .default-perfume-img,
.card-link:focus .default-perfume-img {
    opacity: 0 !important;
}

.card-link:hover .real-perfume-img,
.card-link:active .real-perfume-img,
.card-link:focus .real-perfume-img {
    opacity: 1 !important;
}
