/* assets/css/elruxe.css - Luxury Skincare Brand Design System */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Jost:wght@300;400;500;600&family=Work+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

:root {
    --elx-bg: #FAF3EE;
    --elx-dark: #2B1F1A;
    --elx-accent: #8A4552;
    --elx-rose: #B76E79;
    --elx-blush: #E1BBB4;
    --elx-card-bg: #F7EAE5;
    --elx-card-alt: #F2DDD7;
    --elx-border: #EBDDD4;
    --elx-border-dark: #E2CBBF;
    --elx-text-muted: #6B5A52;
    --elx-body-font: 'Jost', system-ui, -apple-system, sans-serif;
    --elx-serif-font: 'Fraunces', Georgia, serif;
    --elx-sans-font: 'Work Sans', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--elx-bg);
    color: var(--elx-dark);
    font-family: var(--elx-body-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: var(--elx-accent);
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
    color: var(--elx-dark);
}

button {
    font-family: inherit;
    cursor: pointer;
}

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

@keyframes elxHelix {
    from { transform: translateX(-70px) scale(0.55); opacity: 0.35; }
    to { transform: translateX(70px) scale(1); opacity: 1; }
}

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

@keyframes elxFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes elxSlide {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes elxSlideL {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes elxSpin {
    to { transform: rotate(360deg); }
}

@keyframes elxPop {
    0% { transform: scale(0.4); opacity: 0; }
    70% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes elxRing {
    from { transform: scale(0.8); opacity: 0.6; }
    to { transform: scale(1.9); opacity: 0; }
}

.elx-animate-rise {
    animation: elxRise 0.8s ease both;
}

.elx-float-1 {
    animation: elxFloat 6s ease-in-out infinite;
}

.elx-float-2 {
    animation: elxFloat 7s ease-in-out -2s infinite;
}

/* Typography Helpers */
.font-fraunces {
    font-family: var(--elx-serif-font);
    font-variation-settings: 'opsz' 144;
}

.font-work-sans {
    font-family: var(--elx-sans-font);
}

.elx-label-eyebrow {
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--elx-accent);
    display: flex;
    align-items: center;
    gap: 12px;
}

.elx-label-eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--elx-rose);
    display: inline-block;
}

/* Buttons */
.elx-btn-primary {
    background: var(--elx-rose);
    color: #FFFFFF !important;
    padding: 17px 32px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(183, 110, 121, 0.2);
}

.elx-btn-primary:hover {
    background: var(--elx-dark);
    color: var(--elx-bg) !important;
    transform: translateY(-1px);
}

.elx-btn-secondary {
    padding: 16px 28px;
    border-radius: 999px;
    border: 1px solid var(--elx-dark);
    color: var(--elx-dark) !important;
    background: transparent;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    text-decoration: none;
}

.elx-btn-secondary:hover {
    background: var(--elx-dark);
    border-color: var(--elx-dark);
    color: #FAF3EE !important;
}

/* Product Card & Section Action Buttons matching Claude Mockup */
.elx-btn-buy-tiktok {
    padding: 14px 18px;
    border-radius: 999px;
    background: #B76E79 !important;
    color: #FFFFFF !important;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.elx-btn-buy-tiktok:hover {
    background: #2B1F1A !important;
    color: #FAF3EE !important;
}

.elx-btn-view {
    padding: 14px 18px;
    text-align: center;
    border-radius: 999px;
    border: 1px solid #2B1F1A;
    background: transparent;
    color: #2B1F1A !important;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 500;
}

.elx-btn-view:hover {
    background: #2B1F1A !important;
    border-color: #2B1F1A !important;
    color: #FAF3EE !important;
}

/* Bundle Option Buttons in #bundles - With distinctive hover border */
.bundle-opt-btn {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    gap: 16px;
    align-items: center;
    text-align: left;
    padding: 18px 22px;
    border-radius: 12px;
    border: 1px solid rgba(183, 110, 121, 0.22);
    background: rgba(250, 243, 238, 0.45);
    cursor: pointer;
    color: #2B1F1A;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease !important;
    width: 100%;
    font-family: inherit;
}

.bundle-opt-btn:hover {
    border-color: #8A4552 !important;
}

.bundle-opt-btn.is-active,
.bundle-opt-btn[data-active="true"] {
    border-color: #B76E79 !important;
    background: #FAF3EE !important;
}

.bundle-opt-btn.is-active:hover,
.bundle-opt-btn[data-active="true"]:hover {
    border-color: #8A4552 !important;
    background: #FAF3EE !important;
}

/* Product Option Buttons on Product Details page */
.product-opt-btn {
    transition: border-color 0.25s ease, background 0.25s ease !important;
}

.product-opt-btn:hover {
    border-color: #B76E79 !important;
}

.elx-btn-tiktok {
    background: #2B1F1A;
    color: #FAF3EE !important;
    height: 56px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    border: none;
    transition: background 0.25s ease, transform 0.2s ease;
    text-decoration: none;
}

.elx-btn-tiktok:hover {
    background: #8A4552 !important;
    color: #FAF3EE !important;
}

.elx-btn-tiktok .dot {
    width: 7px;
    height: 7px;
    background: #E8C9BF;
    border-radius: 50%;
    display: inline-block;
}

/* Layout Utilities */
.elx-container {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: clamp(20px, 5vw, 32px);
    padding-right: clamp(20px, 5vw, 32px);
}

/* Arched Product Shapes */
.elx-arch-hero {
    aspect-ratio: 4/5;
    border-radius: 400px 400px 14px 14px;
    background: #F7EAE5;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 80px -40px rgba(183, 110, 121, 0.45);
}

.elx-arch-hero-inner {
    position: absolute;
    inset: 18px;
    border-radius: 400px 400px 8px 8px;
    border: 1px solid rgba(183, 110, 121, 0.22);
    pointer-events: none;
    z-index: 2;
}

.elx-arch-card {
    aspect-ratio: 4/5;
    background: var(--elx-card-alt);
    border-radius: 260px 260px 12px 12px;
    position: relative;
    overflow: hidden;
    display: block;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.elx-arch-card:hover {
    transform: translateY(-4px);
}

.elx-arch-thumb {
    border-radius: 40px 40px 6px 6px;
    background: var(--elx-card-alt);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover Slide-up Card Overlay */
.elx-card-panel {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    background: rgba(250, 243, 238, 0.96);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 18px 20px;
    display: grid;
    gap: 10px;
    transform: translateY(24px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.1, 1), opacity 0.4s ease;
    z-index: 5;
}

.elx-arch-card:hover .elx-card-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.elx-arch-card img {
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.1, 1) !important;
}

.elx-arch-card:hover img {
    transform: translate(-50%, -58%) scale(0.9) !important;
}

/* Side Cart / Bag Drawer */
.elx-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(43, 31, 26, 0.45);
    backdrop-filter: blur(4px);
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.elx-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(480px, 100%);
    background: var(--elx-bg);
    z-index: 995;
    display: flex;
    flex-direction: column;
    box-shadow: -30px 0 60px -30px rgba(43, 31, 26, 0.5);
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.elx-drawer.active {
    transform: translateX(0);
}

/* Mobile Drawer Navigation */
.elx-mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--elx-bg);
    z-index: 980;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.elx-mobile-nav.active {
    transform: translateX(0);
}

/* Accordion */
.elx-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 20px 0;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--elx-dark);
}

.elx-accordion-icon {
    font-size: 20px;
    color: var(--elx-rose);
    transition: transform 0.3s ease;
}

.elx-accordion-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.elx-accordion-body.open {
    grid-template-rows: 1fr;
}

.elx-accordion-content {
    overflow: hidden;
}

/* Stepper Quantity */
.elx-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--elx-border-dark);
    border-radius: 999px;
    height: 44px;
    padding: 0 4px;
}

.elx-stepper button {
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--elx-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.elx-stepper span {
    min-width: 24px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
}

/* Inputs & Form Controls */
.elx-input {
    width: 100%;
    height: 52px;
    border-radius: 10px;
    border: 1px solid var(--elx-border-dark);
    background: #FFFFFF;
    padding: 0 16px;
    font-family: var(--elx-body-font);
    font-size: 15px;
    color: var(--elx-dark);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.elx-input:focus {
    border-color: var(--elx-rose);
    box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.15);
}

.elx-textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--elx-border-dark);
    background: #FFFFFF;
    padding: 14px 16px;
    font-family: var(--elx-sans-font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--elx-dark);
    outline: none;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.elx-textarea:focus {
    border-color: var(--elx-rose);
}

/* Product Zoom */
.elx-zoom-container {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 360px 360px 14px 14px;
    background: var(--elx-card-alt);
    overflow: hidden;
    cursor: zoom-in;
}

.elx-zoom-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* Product Gallery & Responsive Styling */
.elx-gallery-grid {
    position: sticky;
    top: 128px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
}

#elx-gallery-thumbs {
    display: grid;
    gap: 10px;
    align-content: start;
    order: 0;
}

#elx-gallery-thumbs button {
    height: 94px;
}

#elx-zoom-box {
    order: 1;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .elx-hide-mobile {
        display: none !important;
    }

    .elx-gallery-grid {
        position: relative;
        top: 0;
        grid-template-columns: 1fr;
    }

    #elx-gallery-thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        order: 2;
    }

    #elx-gallery-thumbs button {
        height: 84px;
    }
}

@media (min-width: 901px) {
    .elx-hide-desktop {
        display: none !important;
    }
}

