/* ==========================================================================
   Eliea Cosmetics — Professionals — Shared Design System
   ========================================================================== */

:root {
    --color-primary: #7b225c;
    --color-primary-dark: #5c1846;
    --color-primary-light: #9c3877;
    --color-secondary: #475569;
    --color-accent: #c49a6c;
    --color-text-light: #f8fafc;

    --color-bg-body: #7b225c;
    --color-bg-mesh: radial-gradient(120% 140% at 15% -10%, #9c3877 0%, transparent 55%),
        radial-gradient(100% 120% at 100% 0%, #5c1846 0%, transparent 60%),
        linear-gradient(160deg, #7b225c 0%, #5c1846 100%);
    --color-card-bg: #ffffff;
    --color-bg-offwhite: #f6f1f4;
    --color-border: #e7dfe4;

    --shadow-sm: 0 4px 12px rgba(43, 10, 32, 0.12);
    --shadow-md: 0 12px 28px rgba(43, 10, 32, 0.18);
    --shadow-lg: 0 24px 60px rgba(43, 10, 32, 0.28);

    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 28px;

    --transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--color-text-light);
    background: var(--color-bg-mesh);
    background-attachment: fixed;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    margin-top: 0;
}

body > h1, body > h2, section h2, header h1 {
    color: #ffffff;
}

a { color: inherit; }

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

.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

/* ---------------------------------------------------------------------- */
/* Navigation                                                              */
/* ---------------------------------------------------------------------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 2rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(123, 34, 92, 0.08);
    transition: var(--transition);
}

.site-nav.is-scrolled {
    padding: 0.7rem 2rem;
    box-shadow: var(--shadow-sm);
}

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

.logo-img {
    height: 42px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.site-nav.is-scrolled .logo-img {
    height: 34px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.menu a {
    text-decoration: none;
    color: var(--color-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    position: relative;
    padding-bottom: 4px;
}

.menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

.menu a:hover,
.menu a.active {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    display: block;
    transition: var(--transition);
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                  */
/* ---------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.95rem 2.2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #ffffff;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--color-accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    transform: translateY(-3px);
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                     */
/* ---------------------------------------------------------------------- */
.hero {
    padding: 6rem 2rem 7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    min-height: 65vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.5;
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 540px;
    position: relative;
    z-index: 1;
}

.hero-img {
    flex: 1;
    height: 480px;
    max-width: 520px;
    background-color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background-size: cover;
    background-position: center;
    border: 4px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.hero-label {
    display: inline-block;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.78rem;
    margin-bottom: 1.2rem;
    padding: 6px 14px;
    border: 1px solid rgba(196, 154, 108, 0.5);
    border-radius: 100px;
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.08;
    margin-bottom: 1.4rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* ---------------------------------------------------------------------- */
/* Section / Product Grid                                                  */
/* ---------------------------------------------------------------------- */
.section {
    padding: 5rem 2rem;
    max-width: 1240px;
    margin: 0 auto;
}

.section-heading {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: #fff;
}

.section-heading p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0.75rem auto 0;
}

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

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1), transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-md);
    display: block;
    text-decoration: none;
    overflow: hidden;
}

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

.p-image {
    height: 280px;
    background: var(--color-bg-offwhite);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 20px;
    overflow: hidden;
}

.p-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .p-image img {
    transform: scale(1.06);
}

.p-cat {
    color: var(--color-primary);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    opacity: 0.7;
}

.p-title {
    font-size: 1.25rem;
    margin: 0.25rem 0 0.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.p-cta {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--color-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.p-cta i {
    transition: transform 0.3s ease;
}

.product-card:hover .p-cta i {
    transform: translateX(4px);
}

.product-card.upcoming {
    opacity: 0.92;
    cursor: default;
}

.product-card.upcoming:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

.product-card.upcoming:hover .p-image img {
    transform: none;
}

.upcoming-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--color-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.68rem;
    z-index: 10;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

/* ---------------------------------------------------------------------- */
/* Product Detail Page                                                     */
/* ---------------------------------------------------------------------- */
.breadcrumbs {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.product-main {
    display: flex;
    gap: 4rem;
    padding: 3.5rem 0 4.5rem;
    align-items: flex-start;
}

.product-gallery {
    flex: 1;
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    padding: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 110px;
}

.product-gallery img {
    max-width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
}

.product-info {
    flex: 1;
    color: var(--color-text-light);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 1.2rem;
}

.status-pill.is-live {
    background: rgba(196, 154, 108, 0.18);
    border-color: rgba(196, 154, 108, 0.5);
    color: var(--color-accent);
}

.product-title {
    font-size: clamp(2.2rem, 4vw, 2.9rem);
    line-height: 1.08;
    margin-bottom: 1rem;
    color: #ffffff;
}

.product-desc {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.2rem;
}

.feature-pill {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 100px;
}

/* Buy-on-Amazon module */
.buy-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
    padding: 1.8rem;
}

.buy-box-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.btn-amazon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ffffff;
    color: #131921;
    padding: 1.05rem 2rem;
    font-size: 1.02rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.btn-amazon:hover {
    background: #f7f0f4;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-amazon i.fa-cart-shopping {
    font-size: 1.05rem;
}

.amazon-logo-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.18);
}

.amazon-logo-wrap svg {
    height: 26px;
    width: auto;
}

.buy-box-note {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.75rem;
}

/* ---------------------------------------------------------------------- */
/* Science / Ingredients Section                                           */
/* ---------------------------------------------------------------------- */
.details-section {
    padding: 5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    color: #ffffff;
}

.section-header h2 {
    font-size: clamp(1.9rem, 4vw, 2.4rem);
    margin-bottom: 0.9rem;
}

.section-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.ingredient-card {
    background: var(--color-card-bg);
    padding: 2.2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.ingredient-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.3rem;
    margin-bottom: 1.3rem;
}

.ingredient-title {
    font-size: 1.2rem;
    margin-bottom: 0.9rem;
    color: var(--color-primary);
}

.property-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.property-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.65rem;
    line-height: 1.5;
    color: var(--color-secondary);
    font-size: 0.92rem;
}

.property-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* ---------------------------------------------------------------------- */
/* Static Legal Pages                                                      */
/* ---------------------------------------------------------------------- */
.legal-page {
    background: #fff;
    color: var(--color-secondary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: 2.5rem;
    padding: 4.5rem 4rem 3rem;
}

.legal-page h1 {
    color: var(--color-primary);
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
}

.legal-page h2 {
    color: var(--color-primary);
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
}

.legal-page p, .legal-page li {
    line-height: 1.75;
    font-size: 0.98rem;
}

.legal-page ul {
    padding-left: 1.4rem;
}

.legal-updated {
    color: rgba(71, 85, 105, 0.7);
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */
footer {
    background: #ffffff;
    color: var(--color-secondary);
    padding: 3.5rem 0 2.5rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    text-align: left;
}

.footer-col h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    text-decoration: none;
    color: var(--color-secondary);
    transition: 0.3s;
    cursor: pointer;
    font-size: 0.9rem;
}

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

.footer-logo-img {
    height: 42px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-badge {
    border: 1px solid var(--color-primary);
    padding: 5px 10px;
    border-radius: 4px;
    text-align: center;
    color: var(--color-primary);
}

.address-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.address-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    color: var(--color-secondary);
}

.copyright-bar {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-secondary);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--color-primary);
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-links a:hover {
    transform: scale(1.15);
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                               */
/* ---------------------------------------------------------------------- */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1.5rem;
        min-height: auto;
    }

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

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

    .hero-img {
        width: 100%;
        max-width: 100%;
        border-radius: var(--radius-md);
        margin-top: 1rem;
        height: 280px;
    }

    .nav-toggle { display: flex; }

    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        box-shadow: var(--shadow-sm);
    }

    .menu.is-open {
        max-height: 400px;
        padding: 0.5rem 0;
    }

    .menu a {
        width: 100%;
        padding: 0.9rem 2rem;
    }

    .product-main {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 0;
    }

    .product-gallery {
        padding: 2rem;
        width: 100%;
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .copyright-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .legal-page {
        padding: 3rem 1.5rem 2rem;
    }
}
