/* --- 1. GLOBAL SETTINGS --- */
:root {
    --primary: #d4af37; 
    --bg-gray: #ebebeb;
    --white: #ffffff;
    --text-main: #333;
    --text-blue: #3483fa;
    --text-green: #00a650;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-gray);
    color: var(--text-main);
}

/* --- 2. HEADER & NAVIGATION --- */
.main-header { background-color: var(--primary); padding: 10px 0; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.top-row { display: flex; align-items: center; gap: 20px; margin-bottom: 12px; }
.logo { font-size: 22px; font-weight: 800; color: #000; min-width: 150px; }

.search-bar { 
    flex-grow: 1; display: flex; background: var(--white); 
    padding: 7px 15px; border-radius: 2px; 
}
.search-bar input { width: 100%; border: none; outline: none; }
.search-bar button { background: none; border: none; cursor: pointer; color: #666; }

.nav-row { display: flex; justify-content: space-between; font-size: 14px; margin-top: 10px;}
.nav-row ul { list-style: none; display: flex; gap: 15px; }
.nav-row a { text-decoration: none; color: rgba(0,0,0,0.6); }

/* --- 3. MARKETPLACE CONTENT --- */
.hero-slider {
    width: 100%; height: 300px;
    background: linear-gradient(to bottom, var(--primary) 0%, var(--bg-gray) 100%);
    display: flex; justify-content: center;
}
.slide { 
    width: 100%; max-width: 1200px; 
    background: #333 url('https://picsum.photos/id/20/1200/300') center/cover; 
    display: flex; align-items: center; padding-left: 50px; color: white;
}

.main-layout { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

.benefits-bar {
    background: white; border-radius: 8px; padding: 20px;
    display: flex; justify-content: space-around;
    margin-top: -30px; box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.product-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 15px; margin-top: 30px;
}
.product-card { background: var(--white); border-radius: 4px; overflow: hidden; transition: 0.3s; }
.p-image img { width: 100%; height: 200px; object-fit: contain; background: #f7f7f7; }
.p-details { padding: 15px; }
.p-price { font-size: 24px; display: block; }
.p-shipping { color: var(--text-green); font-weight: bold; font-size: 14px; }

/* --- 4. THE FIX: LOGIN & REGISTER SCREENS --- */
.auth-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Takes full height of screen */
    width: 100%;
}

.auth-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-box h1 { margin-bottom: 20px; font-size: 24px; }
.auth-box input {
    width: 100%; padding: 12px; margin: 10px 0;
    border: 1px solid #ddd; border-radius: 4px; outline: none;
}

.btn-submit {
    width: 100%; padding: 12px; margin-top: 10px;
    background: var(--text-blue); color: white;
    border: none; border-radius: 4px; font-weight: bold; cursor: pointer;
}

.auth-link {
    display: block; margin-top: 20px; color: var(--text-blue);
    text-decoration: none; font-size: 14px;
}