/* --- CONFIG & RESET --- */
:root {
    --primary: #c7796f;
    --cream: #f1eee3;
    --silver: #bcbec0;
    --dark: #4a4a4a;
}

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

body { 
    background-color: var(--cream); 
    color: var(--dark); 
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
}

/* --- 1. WELCOME SCREEN (This was missing!) --- */
#welcomeScreen {
    position: fixed; inset: 0; z-index: 9999;
    background-color: var(--cream);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; transition: opacity 0.6s ease;
}
.logo-wrapper {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}
.btn-primary {
    background: var(--primary); color: white; padding: 20px 48px;
    border-radius: 999px; font-weight: bold; text-transform: uppercase;
    font-size: 12px; letter-spacing: 2px; transition: transform 0.2s;
    box-shadow: 0 10px 20px rgba(199, 121, 111, 0.3);
}
.btn-primary:active { transform: scale(0.95); }

/* --- 2. LOADING SCREEN (This was missing!) --- */
#successScreen {
    position: fixed; inset: 0; z-index: 99999;
    background-color: rgba(255,255,255,0.95);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.loader {
    width: 50px; height: 50px; border: 3px solid #eee;
    border-top: 3px solid var(--primary); border-radius: 50%;
    animation: spin 1s linear infinite; margin-bottom: 20px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* --- 3. PARALLAX HEADER --- */
.header-bg {
    position: relative; height: 60vh; width: 100%;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    background-image: url('../img/bg.jpg');
    background-attachment: fixed; background-position: center; background-size: cover;
}
.header-bg::after {
    content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.25);
}
.header-content {
    position: relative; z-index: 10;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.logo-circle {
    width: 150px; 
    height: 150px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    margin-bottom: 20px; 
}
.logo-circle img { 
    width: 100%; 
    height: auto; 
    object-fit: contain; 
}
.header-title {
    color: white; font-size: 3rem; font-family: "Playfair Display", serif;
    font-weight: 700; letter-spacing: -1px; margin-bottom: 5px; text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.header-subtitle { color: white; text-transform: uppercase; letter-spacing: 5px; font-size: 0.85rem; font-weight: 500; opacity: 0.9; }

/* --- 4. NAVIGATION --- */
.nav-scroll {
    display: flex; gap: 10px; overflow-x: auto; padding: 20px;
    background: white; position: sticky; top: 0; z-index: 100;
    justify-content: center; border-bottom: 1px solid var(--silver); scrollbar-width: none;
}
.nav-scroll::-webkit-scrollbar { display: none; }
.tab-btn {
    padding: 12px 24px; border-radius: 50px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; color: var(--silver); transition: all 0.3s ease;
    white-space: nowrap; border: 1px solid transparent;
}
.tab-btn.active { background: var(--primary); color: white; box-shadow: 0 5px 15px rgba(199, 121, 111, 0.3); }

/* --- 5. SERVICE CARDS --- */
.service-card {
    background: white; border-radius: 24px; overflow: hidden; border: 1px solid #eee;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); animation: slideUp 0.6s ease-out forwards;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.service-card.selected { border: 2px solid var(--primary); background: #fffafa; }
.item-img { width: 100%; height: 180px; object-fit: cover; background: #eee; }
.add-btn {
    width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--primary);
    color: var(--primary); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease;
}
.fa-check { transform: rotate(-5deg) scale(1.1); }
.selected .add-btn { background: var(--primary); color: white; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* --- 6. CART FLOAT (This was missing!) --- */
.cart-pill {
    background: var(--dark); color: white; padding: 16px 24px;
    border-radius: 999px; display: flex; gap: 16px; align-items: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.badge {
    position: absolute; top: -10px; right: -10px; background: var(--primary);
    font-size: 10px; font-weight: bold; width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* --- 7. CART MODAL (This was missing!) --- */
#cartModal {
    position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.5);
    display: none; align-items: flex-end; backdrop-filter: blur(4px);
}
#cartModal.open { display: flex; }
.modal-content {
    background: white; width: 100%; max-width: 500px; margin: 0 auto;
    border-radius: 24px 24px 0 0; padding: 32px; animation: slideUpModal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUpModal { from { transform: translateY(100%); } to { transform: translateY(0); } }
.input-field {
    width: 100%; padding: 16px; background: #f9f9f9; border-radius: 12px; outline: none; border: 1px solid transparent;
}
.input-field:focus { border-color: var(--primary); background: white; }
.btn-checkout {
    width: 100%; background: var(--primary); color: white; padding: 20px;
    border-radius: 12px; font-weight: bold; display: flex; justify-content: center; gap: 12px;
    text-transform: uppercase; font-size: 12px; letter-spacing: 1px;
}

/* --- 8. FOOTER --- */
.studio-footer { background: white; padding: 80px 20px; text-align: center; border-top: 1px solid var(--silver); }
.footer-logo { width: 60px; margin: 0 auto 20px; opacity: 0.8; }
.footer-name { font-family: serif; font-size: 1.8rem; color: var(--dark); margin-bottom: 8px; }
.footer-tagline { color: var(--silver); font-size: 0.9rem; margin-bottom: 40px; }
.get-app-btn {
    display: inline-block; padding: 10px 25px; border: 1px solid var(--primary);
    border-radius: 50px; color: var(--primary); text-decoration: none; font-size: 11px;
    font-weight: 700; text-transform: uppercase; transition: 0.3s;
}
.get-app-btn:hover { background: var(--primary); color: white; }