/* --- Sophisticated Variables & Moods --- */
:root {
    /* Default: 🌿 Calm (Sage & Olive) */
    --primary: #556b2f;      /* Olive */
    --bg: #faf9f6;           /* Off-white/Bone */
    --surface: rgba(255, 255, 255, 0.4);
    --text: #2c3525;         /* Dark Forest */
    --border: rgba(85, 107, 47, 0.15);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lora', serif;
    --transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Mood Palettes */
[data-mood="gloomy"] { --primary: #4a5d66; --bg: #e5e7e9; --text: #1b262c; --border: rgba(74, 93, 102, 0.15); }
[data-mood="happy"] { --primary: #b08d57; --bg: #fffcf2; --text: #432818; --border: rgba(176, 141, 87, 0.15); }
[data-mood="focus"] { --primary: #2d3e40; --bg: #f2f4f3; --text: #0a0908; --border: rgba(45, 62, 64, 0.15); }
[data-mood="anxious"] { --primary: #6b8e8e; --bg: #f0f4f4; --text: #2f3e46; --border: rgba(107, 142, 142, 0.15); }
[data-mood="tired"] { --primary: #6f4e37; --bg: #fdf5e6; --text: #3c2f2f; --border: rgba(111, 78, 55, 0.15); }

/* Dark Mode Overrides */
[data-theme="dark"] {
    --bg: #121412 !important;
    --text: #e0e0d5 !important;
    --surface: rgba(20, 20, 20, 0.6) !important;
    --border: rgba(255, 255, 255, 0.08) !important;
}

/* --- Base & Layout --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    background-color: var(--bg); 
    color: var(--text); 
    font-family: var(--font-sans); 
    line-height: 1.7;
    transition: var(--transition);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex-grow: 1; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.02em; }

/* --- Liquid Glass UI --- */
.liquid-glass {
    background: var(--surface);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

/* --- The Trippy CS Logo --- */
.cs-logo-container { width: 60px; height: 60px; cursor: pointer; display: flex; align-items: center; }
.cs-svg { width: 100%; height: 100%; }
.cs-path {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: cs-morph 4s infinite alternate ease-in-out;
}

@keyframes cs-morph {
    0% { stroke-dashoffset: 150; transform: scale(1) rotate(0deg); }
    50% { stroke-dashoffset: 0; transform: scale(1.1) rotate(5deg); opacity: 0.7; }
    100% { stroke-dashoffset: -150; transform: scale(1) rotate(0deg); }
}

/* --- Navigation & Header --- */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center;
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
    text-decoration: none; color: var(--text);
    font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase;
    transition: var(--transition); opacity: 0.7; padding-bottom: 5px;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; border-bottom: 1px solid var(--primary); }
.icon-btn { background:none; border:none; cursor:pointer; font-size:1.2rem; color: var(--text); transition: transform 0.3s; }
.icon-btn:hover { transform: scale(1.1); }

/* --- Mood Popup (Home Only) --- */
#mood-overlay {
    position: fixed; inset: 0; z-index: 9999; display: flex; 
    align-items: center; justify-content: center; background: var(--bg);
}

.mood-box { padding: 4rem; text-align: center; max-width: 90%; border-radius: 12px; }
.mood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.mood-btn {
    background: none; border: 1px solid var(--border); padding: 1.5rem;
    cursor: pointer; transition: var(--transition); font-size: 1.5rem; border-radius: 8px; color: var(--text);
}
.mood-btn:hover { background: var(--surface); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

/* --- Professional Cart Drawer --- */
.cart-drawer {
    position: fixed; top: 0; right: -100%; width: 400px; max-width: 100vw; height: 100vh;
    z-index: 2000; transition: var(--transition); padding: 3rem 2rem; display: flex; flex-direction: column;
}
.cart-drawer.active { right: 0; }
.close-cart { align-self: flex-end; font-size: 1.5rem; cursor: pointer; background: none; border: none; color: var(--text); }

/* --- Shared Components --- */
.cta-button {
    background: var(--primary); color: var(--bg); border: 1px solid var(--primary);
    padding: 1rem 2.5rem; font-family: var(--font-serif); font-size: 1.1rem;
    cursor: pointer; margin-top: 1rem; transition: var(--transition); border-radius: 4px;
}
.cta-button:hover { background: transparent; color: var(--text); letter-spacing: 0.05em; }

/* --- Layouts --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.product-card { padding: 3rem; transition: var(--transition); border-radius: 8px; display: flex; flex-direction: column; justify-content: space-between; }
.product-card:hover { transform: translateY(-10px); }

.workshop-blocks { display: flex; flex-direction: column; gap: 3rem; }
.workshop-block { padding: 4rem; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; }

/* --- Footer --- */
footer { padding: 3rem 5%; border-top: 1px solid var(--border); font-size: 0.85rem; opacity: 0.8; margin-top: auto; }
.footer-content { display:flex; justify-content:space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.legal a { color:var(--text); text-decoration:none; margin-left:15px; transition: color 0.3s; }
.legal a:hover { color: var(--primary); }

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .nav-links { display: none; } /* In a full build, this would be a hamburger menu */
    .mood-grid { grid-template-columns: repeat(2, 1fr); }
    .workshop-block { flex-direction: column; text-align: center; padding: 2rem; }
    .cta-button { width: 100%; }
}