﻿/* --- CSS Reset & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-creme: #FDF9F3;
    --bg-card: #FAF3E7;
    --primary-maroon: #58181A;
    --text-dark: #2C211E;
    --text-muted: #6B5E59;
    --accent-gold: #D4AF37;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-creme);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-maroon);
    text-align: center;
    margin-bottom: 5px;
}

.section-divider {
    text-align: center;
    color: var(--primary-maroon);
    margin-bottom: 40px;
    font-size: 0.8rem;
}

/* --- Header / Navigation --- */
header {
    background-color: var(--bg-creme);
    padding: 20px 0;
    border-bottom: 1px solid rgba(88, 24, 26, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-maroon);
}

    .logo span {
        font-size: 0.6rem;
        display: block;
        letter-spacing: 2px;
        font-family: var(--font-body);
        text-transform: uppercase;
    }

nav ul {
    display: flex;
    gap: 25px;
}

    nav ul a {
        font-weight: 500;
        font-size: 0.95rem;
        transition: color 0.3s;
    }

        nav ul a:hover, nav ul a.active {
            color: var(--primary-maroon);
            border-bottom: 2px solid var(--primary-maroon);
            padding-bottom: 4px;
        }

.nav-icons {
    display: flex;
    gap: 20px;
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
}

    .nav-icons i:hover {
        color: var(--primary-maroon);
    }

/* --- Hero Section --- */
.hero {
    padding: 60px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--primary-maroon);
    margin-bottom: 20px;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 450px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-primary {
    background-color: var(--primary-maroon);
    color: white;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid var(--primary-maroon);
    transition: all 0.3s;
}

    .btn-primary:hover {
        background-color: transparent;
        color: var(--primary-maroon);
    }

.btn-secondary {
    background-color: transparent;
    color: var(--primary-maroon);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid var(--primary-maroon);
    transition: all 0.3s;
}

    .btn-secondary:hover {
        background-color: var(--primary-maroon);
        color: white;
    }

.hero-features {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

    .hero-features span i {
        color: var(--accent-gold);
        margin-right: 5px;
    }

.hero-image-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .hero-image-mockup div.circle-bg {
        width: 400px;
        height: 400px;
        background: #E8D8C8;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
    }

/* --- Collections Matrix --- */
.collections {
    padding: 60px 0;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.collection-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s;
    position: relative;
}

    .collection-card:hover {
        transform: translateY(-5px);
    }

.card-img-placeholder {
    width: 130px;
    height: 130px;
    background: #DDD;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.collection-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.collection-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.arrow-btn {
    width: 35px;
    height: 35px;
    background-color: var(--primary-maroon);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
    transition: opacity 0.3s;
}

    .arrow-btn:hover {
        opacity: 0.9;
    }

/* --- Feature Assortment --- */
.why-choose {
    padding: 40px 0;
    background-color: transparent;
}

.features-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-item {
    flex: 1;
    min-width: 180px;
    text-align: center;
    padding: 10px;
}

    .feature-item i {
        font-size: 2rem;
        color: var(--accent-gold);
        margin-bottom: 15px;
    }

    .feature-item h4 {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .feature-item p {
        font-size: 0.8rem;
        color: var(--text-muted);
    }

/* --- Best Sellers --- */
.best-sellers {
    padding: 60px 0;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5px;
}

.view-all-btn {
    border: 1px solid var(--primary-maroon);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-maroon);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: 6px;
    padding: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wishlist-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    padding: 6px;
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-img-box {
    width: 100%;
    height: 160px;
    background: #EAE2D5;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #555;
}

.product-info h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.rating {
    font-size: 0.75rem;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

    .rating span {
        color: var(--text-muted);
        margin-left: 5px;
    }

.price {
    font-weight: 700;
    color: var(--text-dark);
}

/* --- Interactive Studio --- */
.custom-studio {
    padding: 40px 0;
}

.studio-banner {
    background-color: #F3E7D3;
    border-radius: 12px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 40px;
}

.studio-info h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-maroon);
    margin-bottom: 15px;
}

.studio-info p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.studio-workspace {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    gap: 20px;
}

.studio-tools {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-right: 1px solid #EEE;
    padding-right: 15px;
}

.tool-btn {
    background: none;
    border: none;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: var(--text-muted);
}

    .tool-btn.active, .tool-btn:hover {
        color: var(--primary-maroon);
    }

.studio-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preview-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--accent-gold);
    background: #EFEFEF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    font-size: 0.8rem;
    color: #aaa;
}

.studio-options {
    width: 100%;
}

.color-palette {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
}

.text-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #CCC;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* --- Footer Elements --- */
footer {
    background-color: var(--primary-maroon);
    color: #F3E7D3;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-subscribe p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.subscribe-form {
    display: flex;
    margin-top: 10px;
}

    .subscribe-form input {
        padding: 10px 15px;
        border: none;
        border-radius: 4px 0 0 4px;
        width: 250px;
    }

    .subscribe-form button {
        background-color: #772628;
        color: white;
        border: none;
        padding: 0 20px;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
    }

.footer-socials a {
    font-size: 1.2rem;
    margin-left: 15px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

    .footer-socials a:hover {
        opacity: 1;
    }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.7;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    margin-left: 15px;
}

/* --- Modal Configurations --- */
/* Ensure the modal covers the entire viewport */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6); /* Translucent backdrop overlay */
    display: none; /* Controlled explicitly via JS flex/none toggles */
    justify-content: center;
    align-items: center;
    z-index: 99999; /* Make sure it sits on top of navigation menus and headers */
}

/* Modal Content Box wrapper positioning sizing handles */
.auth-modal-content {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 100000;
}

    .auth-modal-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

.auth-modal-card {
    background: var(--bg-creme);
    border: 1px solid rgba(88, 24, 26, 0.15);
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.auth-modal-overlay.active .auth-modal-card {
    transform: translateY(0);
}

.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-muted);
}

    .auth-modal-close:hover {
        color: var(--primary-maroon);
    }

.auth-modal-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-maroon);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 8px;
}

.auth-modal-card p.auth-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 25px;
}

.social-btn-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.social-login-btn {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(44, 33, 30, 0.15);
    background: #FFF;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background 0.2s;
    font-family: var(--font-body);
}

    .social-login-btn:hover {
        background: var(--bg-card);
    }

    .social-login-btn.google-btn i {
        color: #DB4437;
    }

    .social-login-btn.fb-btn i {
        color: #1877F2;
    }

.auth-ui-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

    .auth-ui-divider::before, .auth-ui-divider::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 35%;
        height: 1px;
        background: rgba(44, 33, 30, 0.15);
    }

    .auth-ui-divider::before {
        left: 0;
    }

    .auth-ui-divider::after {
        right: 0;
    }

.otp-input-group {
    margin-bottom: 15px;
}

    .otp-input-group label {
        display: block;
        font-size: 0.8rem;
        font-weight: 600;
        margin-bottom: 5px;
    }

.otp-input-field {
    width: 100%;
    padding: 11px;
    border: 1px solid rgba(44, 33, 30, 0.15);
    border-radius: 4px;
    background: #FFF;
    font-size: 0.9rem;
    outline: none;
    font-family: var(--font-body);
}

.otp-submit-btn {
    width: 100%;
    background: var(--primary-maroon);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
    font-family: var(--font-body);
    transition: opacity 0.2s;
}

    .otp-submit-btn:hover {
        opacity: 0.9;
    }

.user-badge-logged {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-maroon);
    margin-left: -12px;
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 10px;
    border: 1px solid rgba(88, 24, 26, 0.2);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Mobile Responsiveness --- */
@media(max-width: 768px) {
    .hero, .studio-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
    }

    .studio-workspace {
        flex-direction: column;
    }

    .studio-tools {
        flex-direction: row;
        justify-content: space-around;
        border-right: none;
        border-bottom: 1px solid #EEE;
        padding-bottom: 15px;
    }
}

/* --- Advanced Menu Navigation Styles --- */
.app-navigation {
    position: relative;
}

.menu-root {
    display: flex;
    gap: 25px;
    align-items: center;
}

    .menu-root > li {
        position: relative;
        padding: 10px 0;
    }

    .menu-root a {
        font-weight: 500;
        font-size: 0.95rem;
        color: var(--text-dark);
        transition: color 0.3s ease;
        display: flex;
        align-items: center;
    }

.dropdown-caret {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Hover and Active State Renderings */
.menu-root > li:hover > a,
.menu-root > li.active > a {
    color: var(--primary-maroon);
}

.menu-root > li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-maroon);
}

/* Dropdown Menu Overlay List */
.menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #FFFFFF;
    border: 1px solid rgba(88, 24, 26, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    min-width: 180px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

    .menu-dropdown li {
        width: 100%;
    }

    .menu-dropdown a {
        padding: 8px 20px;
        font-size: 0.88rem;
        color: var(--text-dark);
        display: block;
        width: 100%;
    }

        .menu-dropdown a:hover {
            background-color: var(--bg-card);
            color: var(--primary-maroon);
        }

/* Toggle Submenu Triggers via Hover Contexts */
.has-dropdown:hover .menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover .dropdown-caret {
    transform: rotate(180deg);
}

/* Auth Modal Overlay System */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.auth-modal-content {
    background: #FFF;
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

    .auth-modal-header h3 {
        font-family: var(--font-heading);
        color: var(--primary-maroon);
        font-size: 1.4rem;
    }

.modal-close {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.auth-modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Login Button Formatting */
.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.google-signin-btn {
    width: 100%;
    min-height: 40px;
}

.social-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.facebook-btn {
    background-color: #1877F2;
    color: white;
}

.social-btn:hover {
    opacity: 0.9;
}

.auth-divider {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

    .auth-divider::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 100%;
        height: 1px;
        background: #E0E0E0;
        z-index: 1;
    }

    .auth-divider span {
        background: #FFF;
        padding: 0 10px;
        position: relative;
        z-index: 2;
        font-size: 0.8rem;
        color: var(--text-muted);
    }

.user-badge-logged {
    background: var(--primary-maroon);
    color: #FFF;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
