/* =========================================
   BROKEN BROWNIE MASTER STYLESHEET
   ========================================= */

/* --- 1. CORE SETUP --- */
html { scroll-behavior: smooth; }
:root {
    --bg-primary: #153448; --bg-secondary: #0a1f2e; --accent: #DFD0B8;       
    --glass: rgba(21, 52, 72, 0.6); --glass-border: rgba(223, 208, 184, 0.15);
    --text-main: #ffffff; --text-muted: #94A3B8;
    --card-gradient: linear-gradient(135deg, #1e4b66, #0f2636);
    --glow: 0 0 20px rgba(60, 91, 111, 0.5);
}
body.theme-espresso {
    --bg-primary: #2C1A1D; --bg-secondary: #1a0f11; --accent: #D4AF37;
    --glass: rgba(44, 26, 29, 0.6); --glass-border: rgba(212, 175, 55, 0.15);
    --text-main: #EADDCD; --text-muted: #8D7B6F;
    --card-gradient: linear-gradient(135deg, #4a2c31, #1a0f11);
    --glow: 0 0 20px rgba(74, 44, 49, 0.5);
}
body.theme-velvet {
    --bg-primary: #240046; --bg-secondary: #10002b; --accent: #e0aaff;
    --glass: rgba(36, 0, 70, 0.6); --glass-border: rgba(224, 170, 255, 0.15);
    --text-main: #fcf6bd; --text-muted: #c77dff;
    --card-gradient: linear-gradient(135deg, #3c096c, #10002b);
    --glow: 0 0 20px rgba(123, 44, 191, 0.5);
}
* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }
body {
    background-color: var(--bg-primary); color: var(--text-main);
    font-family: 'Jost', sans-serif; overflow-x: hidden;
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
h1, h2, h3, .palette-label, .logo-text, .tag, .tab-btn, .admin-badge { font-family: 'Cinzel', serif; }

/* --- 2. BACKGROUND & CURSOR --- */
.cinema-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1; }
#bg-video { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; filter: contrast(1.1) brightness(0.8); }
.cinema-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-secondary) 100%);
    backdrop-filter: blur(2px);
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999; }
.cursor-ring { width: 40px; height: 40px; border: 1px solid var(--accent); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9998; transition: transform 0.2s, border-color 0.3s; }
body.hovering .cursor-ring { transform: scale(1.5); background: rgba(255,255,255,0.05); border-color: transparent; backdrop-filter: invert(1); }

/* --- 3. NAV & UI --- */
.palette-dock {
    position: fixed; left: 30px; bottom: 30px; z-index: 100;
    background: var(--glass); padding: 10px 20px; border-radius: 50px;
    border: 1px solid var(--glass-border); backdrop-filter: blur(10px);
    display: flex; align-items: center; gap: 15px;
}
.palette-label { font-size: 0.7rem; letter-spacing: 2px; color: var(--accent); }
.theme-btn { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); cursor: none; transition: 0.3s; }
.midnight { background: #153448; } .espresso { background: #2C1A1D; } .velvet { background: #240046; }
.theme-btn:hover { transform: scale(1.3); border-color: #fff; }

.glass-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; position: fixed; top: 0; width: 100%; z-index: 50; transition: 0.4s;
}
.glass-nav.scrolled { background: var(--glass); backdrop-filter: blur(15px); border-bottom: 1px solid var(--glass-border); }

.nav-logo-area { display: flex; align-items: center; gap: 15px; }
.logo-img { height: 50px; border-radius: 50%; border: 1px solid var(--accent); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .top { font-size: 0.8rem; letter-spacing: 3px; }
.logo-text .bot { font-size: 1rem; font-weight: 700; color: var(--accent); }

.search-container { position: relative; margin-right: 20px; }
#spotlight-search {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    padding: 8px 35px 8px 15px;
    border-radius: 20px;
    color: var(--text-main);
    font-family: 'Jost';
    width: 200px;
    transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
#spotlight-search:focus {
    width: 300px; background: rgba(0, 0, 0, 0.8);
    border-color: var(--accent); outline: none;
    box-shadow: 0 0 15px var(--accent);
}
.search-icon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 0.8rem; opacity: 0.6; }

.nav-menu { display: flex; gap: 40px; list-style: none; }
.nav-menu a { text-decoration: none; color: var(--text-main); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; transition: 0.3s; }
.nav-menu a:hover { color: var(--accent); text-shadow: var(--glow); }
.social-link { text-decoration: none; color: var(--accent); font-size: 0.7rem; border: 1px solid var(--accent); padding: 8px 15px; border-radius: 20px; transition: 0.3s; }
.social-link:hover { background: var(--accent); color: var(--bg-primary); }

/* --- 4. HERO --- */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; perspective: 1000px; }
.pre-title { color: var(--accent); letter-spacing: 5px; font-size: 0.8rem; margin-bottom: 20px; opacity: 0.8; }
.hero-title { font-size: 5rem; line-height: 1.1; margin-bottom: 30px; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.gold-text { color: var(--accent); font-style: italic; font-family: 'Cinzel', serif; }
.hero-sub { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 40px; }
.btn-liquid {
    position: relative; padding: 18px 50px; text-decoration: none;
    color: var(--accent); border: 1px solid var(--accent);
    text-transform: uppercase; letter-spacing: 3px; font-size: 0.9rem;
    overflow: hidden; display: inline-block; transition: 0.4s;
}
.btn-liquid.small { padding: 10px 30px; font-size: 0.7rem; }
.btn-liquid:hover { background: var(--accent); color: var(--bg-primary); box-shadow: var(--glow); }

.marquee-lux { background: var(--glass); padding: 20px 0; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); overflow: hidden; backdrop-filter: blur(5px); }
.track { display: flex; white-space: nowrap; animation: scroll 20s linear infinite; }
.track span { margin: 0 30px; font-family: 'Cinzel'; font-size: 1.2rem; color: var(--text-main); }
.star { color: var(--accent); margin: 0 10px; }

/* --- 5. MENU GRID (FIXED FOR GIANTS) --- */
.gallery-section { padding: 100px 8%; min-height: 100vh; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 3rem; margin-bottom: 10px; }
.gold-bar { width: 2px; height: 60px; background: var(--accent); margin: 0 auto; }

.filter-tabs { display: flex; justify-content: center; gap: 15px; margin-top: 40px; flex-wrap: wrap; }
.tab-btn {
    background: transparent; border: 1px solid var(--glass-border); color: var(--text-muted);
    padding: 10px 25px; border-radius: 30px; cursor: none; transition: 0.3s;
}
.tab-btn:hover, .tab-btn.active { background: var(--accent); color: var(--bg-primary); }

.card-container { 
    display: grid; 
    /* THIS FIXES THE STRETCHING BUG */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 40px; 
    margin-top: 50px; 
    justify-items: center; 
}

.tilt-card {
    background: var(--card-gradient); border: 1px solid var(--glass-border);
    border-radius: 4px; padding: 10px; transition: transform 0.1s, opacity 0.3s;
    position: relative; overflow: hidden; display: block;
    width: 100%;
    max-width: 320px; /* FIXED WIDTH FOR CARDS */
}
.tilt-card:hover { border-color: var(--accent); box-shadow: var(--glow); }

.card-visual { 
    height: 250px; /* FIXED HEIGHT */
    width: 100%; 
    background-size: cover; 
    background-position: center; 
    border-radius: 2px; 
}
.badge {
    position: absolute; top: 15px; right: 15px; background: var(--accent); color: var(--bg-primary);
    padding: 5px 10px; font-size: 0.7rem; font-weight: bold; font-family: 'Jost'; z-index: 5;
}
.card-content { padding: 25px 15px; text-align: center; }
.card-content h3 { font-size: 1.3rem; margin-bottom: 5px; color: var(--accent); font-family: 'Cinzel'; }
.card-content p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.action-btn {
    background: transparent; border: 1px solid var(--text-muted); color: var(--text-main);
    padding: 8px 20px; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s;
}
.action-btn:hover { border-color: var(--accent); color: var(--accent); }

/* --- 6. ADMIN & MODALS --- */
.admin-panel {
    background: rgba(0, 0, 0, 0.6); border: 1px solid var(--accent);
    padding: 20px; margin: 20px auto; max-width: 600px; border-radius: 8px;
    display: flex; justify-content: space-between; align-items: center;
    backdrop-filter: blur(15px);
}
.hidden { display: none !important; }
.admin-badge { color: var(--accent); font-weight: bold; letter-spacing: 2px; }
.admin-add-btn, .admin-logout-btn {
    background: var(--accent); color: var(--bg-primary); border: none; padding: 10px 20px;
    cursor: pointer; font-weight: bold; border-radius: 4px; font-family: 'Jost'; text-transform: uppercase;
}
.admin-logout-btn { background: #ff4757; color: white; margin-left: 10px; }
.delete-btn {
    position: absolute; top: 10px; left: 10px; background: #ff4757; color: white; border: none;
    width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-weight: bold;
    z-index: 20; display: none; align-items: center; justify-content: center;
}
body.admin-active .delete-btn { display: flex; }

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0,0,0,0.9); z-index: 2000;
    display: flex; justify-content: center; align-items: center; backdrop-filter: blur(8px);
}
.modal-box {
    background: var(--bg-secondary); border: 1px solid var(--accent);
    padding: 30px; border-radius: 8px; width: 300px; text-align: center;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}
.modal-box.large { width: 450px; text-align: left; }
.modal-box h3 { color: var(--accent); margin-bottom: 25px; font-family: 'Cinzel'; font-size: 1.5rem; text-align: center; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; font-weight: 500; }
.modal-box input, .modal-box select {
    width: 100%; padding: 12px; background: #000000;
    border: 1px solid var(--accent); color: #ffffff !important;
    border-radius: 4px; font-family: 'Jost'; outline: none;
}
.modal-box select option { background-color: #000000; color: #ffffff; padding: 10px; }
.modal-actions { margin-top: 30px; display: flex; justify-content: space-between; gap: 10px; }
.confirm-btn { background: var(--accent); color: var(--bg-primary); padding: 10px 20px; border: none; cursor: pointer; border-radius: 4px; font-weight: bold; width: 100%; }
.cancel-btn { background: transparent; color: var(--text-muted); padding: 10px 20px; border: 1px solid var(--text-muted); cursor: pointer; border-radius: 4px; width: 100%; }
.footer-admin-link { background: transparent; border: none; color: var(--text-muted); font-size: 0.8rem; cursor: pointer; opacity: 0.5; }

/* --- 7. MISC --- */
.artist-section { padding: 80px 8%; margin-top: 50px; }
.artist-layout { display: flex; align-items: center; gap: 60px; }
.artist-img-box { flex: 1; position: relative; }
.artist-img { width: 100%; filter: grayscale(100%) contrast(1.2); transition: 0.5s; border-radius: 4px; }
.artist-img-box:hover .artist-img { filter: grayscale(0%); }
.floating-frame { position: absolute; top: 30px; left: 30px; width: 100%; height: 100%; border: 1px solid var(--accent); z-index: -1; transition: 0.5s; }
.artist-img-box:hover .floating-frame { top: -20px; left: -20px; }
.artist-bio { flex: 1; }
.tag { color: var(--accent); letter-spacing: 3px; font-size: 0.8rem; display: block; margin-bottom: 20px; }
.artist-bio h2 { font-size: 3rem; margin-bottom: 30px; }
.artist-bio p { color: var(--text-muted); line-height: 1.8; }
.signature { margin-top: 30px; font-family: 'Cinzel'; font-size: 1.5rem; color: var(--accent); opacity: 0.7; }
.reviews-section { padding: 80px 8%; text-align: center; }
.review-sub { color: var(--text-muted); margin-bottom: 30px; font-style: italic; }
.reviews-wrapper { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 40px; }
.glass-review { 
    background: var(--glass); border: 1px solid var(--glass-border); padding: 30px;
    width: 300px; backdrop-filter: blur(5px); border-radius: 4px;
}
.stars { color: var(--accent); margin-bottom: 15px; }
.glass-review cite { display: block; margin-top: 15px; color: var(--accent); font-weight: bold; }
footer { padding: 80px 5%; background: var(--bg-secondary); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; }
.center { text-align: center; }
.right { text-align: right; }
.footer-logo { height: 60px; border-radius: 50%; margin-bottom: 15px; border: 1px solid var(--accent); }
.f-col h4 { color: var(--accent); margin-bottom: 20px; letter-spacing: 2px; }
.f-col a, .loc { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 10px; transition: 0.3s; }
.f-col a:hover { color: var(--accent); }
.f-copy { text-align: center; margin-top: 60px; color: var(--text-muted); font-size: 0.8rem; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- 8. FLOATING CART & MODALS --- */
.floating-cart { position: fixed; bottom: 30px; right: 30px; z-index: 900; width: 350px; animation: slideUp 0.5s ease; }
@keyframes slideUp { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cart-glass {
    background: #000000; border: 1px solid var(--accent); border-radius: 12px;
    padding: 15px 20px; display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); cursor: pointer;
}
.cart-info { display: flex; flex-direction: column; }
.cart-count { color: var(--accent); font-weight: bold; font-family: 'Cinzel'; }
.cart-total { font-size: 0.8rem; color: #fff; opacity: 0.7; }
.checkout-btn { background: var(--accent); color: var(--bg-primary); border: none; padding: 10px 15px; border-radius: 6px; font-weight: bold; cursor: pointer; font-family: 'Jost'; }

.product-view { width: 800px; max-width: 90%; background: #1a1a1a; border: 1px solid var(--accent); padding: 0; overflow: hidden; position: relative; }
.close-modal-x { position: absolute; top: 15px; right: 20px; background: none; border: none; color: white; font-size: 2rem; cursor: pointer; z-index: 10; }
.product-layout { display: flex; flex-wrap: wrap; }
.prod-img-col { flex: 1; height: 400px; background-color: #000; }
.prod-img-col img { width: 100%; height: 100%; object-fit: cover; }
.prod-info-col { flex: 1; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.prod-info-col h2 { font-size: 2.5rem; color: var(--accent); margin-bottom: 15px; }
.apple-specs {
    display: flex; gap: 20px; margin: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 15px 0;
}
.spec-item { display: flex; flex-direction: column; text-align: center; }
.spec-item .label { font-size: 0.6rem; color: #888; letter-spacing: 1px; margin-bottom: 5px; }
.spec-item .val { font-size: 1.2rem; color: #fff; font-weight: bold; }

@media (max-width: 768px) {
    .artist-layout { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .right { text-align: center; }
    .hero-title { font-size: 3rem; }
    .nav-menu { display: none; }
    .cursor-dot, .cursor-ring { display: none; }
    * { cursor: auto; }
    .search-container { display: none; }
    .product-view { width: 95%; height: 80vh; overflow-y: scroll; }
    .product-layout { flex-direction: column; }
    .prod-img-col { height: 250px; }
    .floating-cart { width: 90%; left: 5%; bottom: 20px; }
}