/* ==========================================================================
   UNSPOKENSIDE - STRICT MONOCHROME LUXURY DESIGN SYSTEM
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@200;300;400;500;600&display=swap');

:root {
    /* High-Contrast Monochrome Palette */
    --bg-black: #000000;
    --bg-card: #0D0D0D;
    --bg-card-hover: #171717;
    --border-grey: rgba(255, 255, 255, 0.2);
    --border-grey-hover: rgba(255, 255, 255, 0.5);

    --text-white: #FFFFFF;
    --text-grey-light: #D1D1D1;
    --text-grey-muted: #9E9E9E;
    --text-grey-dark: #222222;

    --glass-bg: rgba(10, 10, 10, 0.92);
    --glass-border: rgba(255, 255, 255, 0.2);

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* UI Specs */
    --radius-button: 50px;
    --radius-card: 16px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.9);
    --transition-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   GLOBAL RESET & BASE STYLING
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    background-color: var(--bg-black) !important;
    color: var(--text-white) !important;
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
    font-family: var(--font-serif);
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--text-white);
}

.text-muted {
    color: var(--text-grey-muted) !important;
}

.text-grey-light {
    color: var(--text-grey-light) !important;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.4s var(--transition-smooth);
}

a:hover {
    color: var(--text-white);
}

/* Font Size Helpers */
.fs-7 {
    font-size: 0.85rem !important;
}

.fs-8 {
    font-size: 0.75rem !important;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.max-w-500 {
    max-width: 500px;
}

/* ==========================================================================
   NAVBAR & HEADER
   ========================================================================== */
.navbar-unspoken {
    background-color: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: all 0.5s var(--transition-smooth);
    padding: 1.2rem 0;
    border-bottom: 1px solid transparent;
    z-index: 1040;
}

.navbar-unspoken.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.navbar-brand-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-white) !important;
    padding: 0.5rem 0.9rem !important;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--text-white) !important;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-unspoken-primary {
    background-color: var(--text-white);
    color: var(--bg-black) !important;
    border-radius: var(--radius-button);
    padding: 0.75rem 2rem;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--text-white);
    transition: all 0.4s var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
}

.btn-unspoken-primary:hover {
    background-color: transparent;
    color: var(--text-white) !important;
    border-color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-unspoken-outline {
    background-color: transparent;
    color: var(--text-white) !important;
    border-radius: var(--radius-button);
    padding: 0.75rem 2rem;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.btn-unspoken-outline:hover {
    border-color: var(--text-white);
    background-color: var(--text-white);
    color: var(--bg-black) !important;
}

/* ==========================================================================
   CARDS & BADGES
   ========================================================================== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-card);
    transition: all 0.5s var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-grey-hover);
    background: var(--bg-card-hover);
}

.zoom-card {
    overflow: hidden;
    border-radius: var(--radius-card);
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border-grey);
    display: flex;
    flex-direction: column;
}

.zoom-card img {
    transition: transform 0.8s var(--transition-smooth), filter 0.8s ease;
    filter: grayscale(15%);
}

.zoom-card:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.emotion-badge {
    display: inline-block;
    padding: 0.35rem 1.1rem;
    border-radius: 50px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    border: 1px solid var(--border-grey);
}

/* Responsive product card bottom action area */
.product-card-action-bar {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

/* ==========================================================================
   FORM CONTROLS
   ========================================================================== */
.form-control,
.form-select {
    background-color: #121212 !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: var(--radius-button);
    padding: 0.85rem 1.2rem;
    font-size: 0.95rem;
    color: var(--text-white) !important;
}

.form-control::placeholder {
    color: #888888;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--text-white) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.2) !important;
    outline: none;
}

/* ==========================================================================
   HERO FULLSCREEN & SCROLL INDICATOR
   ========================================================================== */
.hero-fullscreen {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.9) 100%),
        url('https://firebasestorage.googleapis.com/v0/b/korak-bogar-labs.firebasestorage.app/o/website%2Fhomepage%2FCollection_landscape_2.webp?alt=media&token=c0793065-1b07-46b4-ba49-325a2d9bde68') center/cover no-repeat fixed;
    padding-top: 5rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 7vw, 6.2rem);
    line-height: 0.95;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--text-white);
}

.hero-subtext {
    font-size: clamp(0.95rem, 1.5vw, 1.25rem);
    color: var(--text-grey-light);
    font-weight: 300;
    max-width: 540px;
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-grey-light);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 10;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-white), transparent);
    animation: pulseLine 2s infinite ease-in-out;
}

@keyframes pulseLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50.1% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

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

/* ==========================================================================
   FOOTER (High Contrast & Button Specificity Fix)
   ========================================================================== */
.footer-unspoken {
    background-color: #080808;
    border-top: 1px solid var(--border-grey);
    padding: 5rem 0 3rem 0;
    margin-top: 5rem;
}

/* Apply link colors only to normal text links, not buttons */
.footer-unspoken a:not(.btn) {
    color: var(--text-grey-light) !important;
}

.footer-unspoken a:not(.btn):hover {
    color: var(--text-white) !important;
}

/* Primary Button in Footer (Black text on White before hover, White text on transparent on hover) */
.footer-unspoken .btn-unspoken-primary,
.footer-unspoken a.btn-unspoken-primary {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff !important;
    font-weight: 600 !important;
}

.footer-unspoken .btn-unspoken-primary:hover,
.footer-unspoken a.btn-unspoken-primary:hover {
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* Outline Button in Footer */
.footer-unspoken .btn-unspoken-outline,
.footer-unspoken a.btn-unspoken-outline {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.footer-unspoken .btn-unspoken-outline:hover,
.footer-unspoken a.btn-unspoken-outline:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

/* ==========================================================================
   EMOTIONAL SEARCH MODAL
   ========================================================================== */
#emotionSearchModal .modal-content {
    background-color: #080808;
    border: 1px solid var(--border-grey);
}

/* High-contrast unified Search input container */
#emotionSearchModal .input-group {
    background-color: #121212 !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50px !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 2px 4px;
}

#emotionSearchModal .input-group:focus-within {
    border-color: #ffffff !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.15) !important;
}

#emotionSearchModal .input-group-text {
    background: transparent !important;
    border: none !important;
    color: var(--text-grey-muted);
    padding: 0.6rem 0.6rem 0.6rem 1.2rem !important;
}

#emotionSearchModal .input-group .form-control {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: 1.05rem !important;
    padding: 0.75rem 0.5rem !important;
}

#emotionSearchModal .input-group .btn {
    border-radius: 50px !important;
    padding: 0.6rem 1.4rem !important;
    margin: 2px;
}

.chip-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-grey);
    color: var(--text-grey-light);
    font-size: 0.75rem;
    border-radius: 50px;
    padding: 0.35rem 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.chip-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
}

.search-result-card {
    background: #0d0d0d;
    border: 1px solid var(--border-grey);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.search-result-card:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-4px);
}

.search-result-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* ==========================================================================
   LAKSHMI - CHAT WIDGET & TRIGGER
   ========================================================================== */
.lakshmi-float-trigger {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.35rem 0.9rem 0.35rem 0.35rem;
    border-radius: 50px;
    color: var(--text-white);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.lakshmi-float-trigger:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.15);
}

.lakshmi-avatar-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1rem;
}

.lakshmi-chat-box {
    position: fixed;
    bottom: 5.5rem;
    right: 2rem;
    width: 380px;
    max-width: calc(100vw - 2rem);
    height: 520px;
    max-height: calc(100vh - 7.5rem);
    background: #090909;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    z-index: 1050;
    overflow: hidden;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    transition: all 0.3s ease;
}

.lakshmi-chat-box.d-none {
    display: none !important;
}

.lakshmi-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(18, 18, 18, 0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lakshmi-messages-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.lakshmi-bubble {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.lakshmi-bubble.bot {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-grey-light);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.lakshmi-bubble.user {
    background: #ffffff;
    color: #000000;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 400;
}

.lakshmi-product-recommendation {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.65rem;
    margin-top: 0.65rem;
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.lakshmi-product-recommendation img {
    width: 50px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.lakshmi-footer-form {
    padding: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #0d0d0d;
}

.lakshmi-footer-form .input-group {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 2px;
    overflow: hidden;
}

.lakshmi-footer-form .form-control {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.5rem 0.9rem !important;
}

.lakshmi-footer-form .btn {
    border-radius: 50px !important;
    padding: 0.4rem 0.9rem !important;
}

.lakshmi-bubble.bot .lakshmi-highlight {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.lakshmi-bubble.bot .lakshmi-link {
    color: #ffffff !important;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lakshmi-bubble.bot em {
    font-style: italic;
    color: #e0e0e0;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE FIXES (Breakpoints)
   ========================================================================== */
@media (max-width: 991.98px) {
    .hero-fullscreen {
        min-height: 90vh;
        padding-top: 6rem;
    }
}

@media (max-width: 768px) {
    .hero-fullscreen {
        min-height: 85vh;
        padding-top: 5rem;
        padding-bottom: 4rem;
    }

    .hero-title {
        font-size: 2.8rem !important;
    }

    .hero-subtext {
        font-size: 0.95rem !important;
    }

    .navbar-unspoken {
        padding: 0.8rem 0;
    }
}

@media (max-width: 576px) {

    /* 1. Fix Product Cards on Mobile (Column method to avoid clipping Inspect/Feel) */
    .zoom-card img {
        height: 220px !important;
    }

    .zoom-card .p-3 {
        padding: 0.85rem !important;
    }

    .zoom-card .mt-auto,
    .product-card-action-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.45rem !important;
        padding-top: 0.35rem;
    }

    .zoom-card .mt-auto .btn,
    .product-card-action-bar .btn {
        width: 100% !important;
        text-align: center;
        padding: 0.45rem 0.75rem !important;
        font-size: 0.75rem !important;
    }

    .zoom-card .mt-auto span {
        font-size: 0.9rem !important;
    }

    .emotion-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.65rem;
    }

    /* 2. Product Detail Image Adjustments on Mobile */
    .product-main-img {
        height: 360px !important;
    }

    .thumbnail-gallery img {
        width: 65px;
        height: 75px;
    }

    /* 3. Search Result Cards Mobile */
    .search-result-card img {
        height: 190px !important;
    }

    .search-result-card .mt-auto .d-flex {
        flex-direction: column !important;
        gap: 0.4rem !important;
    }

    .search-result-card .mt-auto .btn {
        width: 100% !important;
    }

    /* 4. Lakshmi Chat Box Mobile Alignment */
    .lakshmi-chat-box {
        right: 1rem !important;
        bottom: 5rem !important;
        width: calc(100vw - 2rem) !important;
        height: 72vh !important;
        max-height: 500px !important;
    }

    .lakshmi-float-trigger {
        right: 1rem !important;
        bottom: 1.2rem !important;
    }

    .lakshmi-product-recommendation {
        flex-direction: column;
        align-items: flex-start;
    }

    .lakshmi-product-recommendation img {
        width: 100%;
        height: 120px;
    }

    .lakshmi-product-recommendation a.btn {
        width: 100%;
        text-align: center;
        padding: 0.35rem !important;
    }

    /* 5. Search Modal Chips */
    .chip-btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.75rem;
    }
}

/* 1. Header Button in all states (collapsed, open, active, focus) */
.accordion-item {
    background-color: transparent !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.accordion-button,
.accordion-button:not(.collapsed),
.accordion-button:focus,
.accordion-button:hover,
.accordion-button:active {
    background-color: transparent !important;
    background: transparent !important;
    color: #ffffff !important;
    font-family: var(--font-serif), 'Cormorant Garamond', Georgia, serif !important;
    font-size: 1.35rem !important;
    font-weight: 400 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 1.25rem 0 !important;
}

/* 2. Arrow Icon: turn it white */
.accordion-button::after,
.accordion-button:not(.collapsed)::after {
    filter: invert(1) brightness(200%) !important;
    opacity: 0.85;
}

/* 3. Accordion Body Content: high-contrast, elegant typography */
.accordion-body {
    background-color: transparent !important;
    color: #d4d4d4 !important;
    /* Soft luxury readable off-white */
    font-family: var(--font-sans), 'Inter', sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
    padding: 0 0 1.5rem 0 !important;
    letter-spacing: 0.01em;
}

/* Ensure any nested paragraphs or spans inside the story HTML are also white/readable */
.accordion-body p,
.accordion-body span,
.accordion-body div {
    color: #d4d4d4 !important;
    line-height: 1.8 !important;
    margin-bottom: 1rem;
}