@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary-black: #111111;
    --primary-white: #ffffff;
    --secondary-gray: #f4f4f4;
    --text-dark: #111111;
    --text-light: #555555;
    --accent-silver: #e0e0e0;
    --glass-border: rgba(0, 0, 0, 0.08);
    --cursor-size: 20px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--primary-white);
    scroll-behavior: smooth;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
    a, button, .cursor-pointer {
        cursor: pointer;
    }
}

/* Cursor Styles (Desktop Only) */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }
    a, button, .cursor-pointer {
        cursor: none;
    }
    .cursor-dot,
    .cursor-outline {
        position: fixed;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        z-index: 9999;
        pointer-events: none;
    }
    .cursor-dot {
        width: var(--cursor-size);
        height: var(--cursor-size);
        background-color: rgba(135, 206, 250, 0.6);
        box-shadow: 0 0 10px rgba(135, 206, 250, 0.8), inset 0 0 5px rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(2px);
    }
    .cursor-outline {
        width: calc(var(--cursor-size) * 2.5);
        height: calc(var(--cursor-size) * 2.5);
        border: 1px solid rgba(135, 206, 250, 0.4);
        transition: width 0.2s, height 0.2s, background-color 0.2s;
    }
    body.hovering .cursor-dot {
        transform: translate(-50%, -50%) scale(1.5);
        background-color: rgba(135, 206, 250, 0.8);
        box-shadow: 0 0 20px rgba(135, 206, 250, 1);
    }
    body.hovering .cursor-outline {
        width: calc(var(--cursor-size) * 4);
        height: calc(var(--cursor-size) * 4);
        background-color: rgba(135, 206, 250, 0.1);
        border-color: transparent;
    }
}

h1, h2, h3, h4, h5, h6, .font-luxury {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: -0.02em;
}

.tracking-luxury {
    letter-spacing: 0.1em;
}

/* Glassmorphism Classes */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Hover Lift - Reduced on Mobile */
.hover-lift {
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.5s ease;
}

@media (min-width: 769px) {
    .hover-lift:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    }
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 8s ease-in-out infinite;
}

/* Morphing Text */
.morph-container {
    position: relative;
    height: 1.2em;
    width: 100%;
    filter: url(#threshold) blur(0.6px);
}

.morph-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: inline-block;
    user-select: none;
    opacity: 0;
    transition: opacity 0.1s;
}

/* Chatbot Styles - Mobile Optimized */
.chatbot-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px; /* Smaller on mobile */
    height: 50px;
    background: var(--primary-black);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 90;
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .chatbot-btn {
        width: 60px;
        height: 60px;
        bottom: 30px;
        right: 30px;
    }
    .chatbot-btn:hover {
        transform: scale(1.1);
    }
}

.chatbot-window {
    position: fixed;
    bottom: 80px;
    right: 20px;
    left: 20px; /* Full width minus margins on mobile */
    max-width: 400px;
    width: auto;
    height: 60vh; /* Relative height on mobile */
    max-height: 500px;
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    z-index: 90;
    border-radius: 8px; /* Rounded corners on mobile */
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

@media (min-width: 768px) {
    .chatbot-window {
        left: auto;
        right: 30px;
        bottom: 100px;
        width: 350px;
        height: 500px;
    }
}

.chatbot-window.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    padding: 15px 20px;
    background: var(--primary-black);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    max-width: 85%;
    padding: 10px 14px;
    font-size: 0.85rem;
    line-height: 1.4;
    border-radius: 12px;
}

.chat-bot-msg {
    background: white;
    border: 1px solid #eee;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-user-msg {
    background: #111;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.chat-option-btn {
    padding: 6px 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 16px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

@media (min-width: 768px) {
    .chat-option-btn:hover {
        background: #111;
        color: white;
        border-color: #111;
    }
}

/* Cart Sidebar - Full width on mobile */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%; /* Full width mobile */
    background-color: white;
    z-index: 60;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .cart-sidebar {
        width: 24rem; /* sm:w-96 equivalent */
    }
}

.cart-sidebar.open {
    transform: translateX(0);
}

/* Popup - Responsive */
.popup-overlay {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    padding: 20px;
}
.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .popup-content {
        flex-direction: column;
        max-height: 85vh;
        overflow-y: auto;
    }
    .popup-content img {
        height: 200px;
        min-height: 200px;
    }
    .popup-content > div:last-child {
        padding: 24px;
    }
    .popup-content h3 {
        font-size: 1.8rem;
    }
}

/* Minimal Checkbox */
.custom-checkbox input:checked + div {
    background-color: #111;
    border-color: #111;
}

/* Muse Text Responsive */
@media (max-width: 768px) {
    #muse .text-[200px] {
        font-size: 80px; /* Shrink giant background text */
        top: 20px;
        transform: translateY(0);
    }
}
