/* ============================================
   IMEA Muebles — Design System
   Aesthetic: Refined luxury furniture store
   Palette: Warm off-white + deep charcoal + gold accent
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
    --bg:         #F7F4F0;
    --surface:    #FFFFFF;
    --nav-bg:     #1A1A18;
    --text:       #1A1A18;
    --text-muted: #7A7570;
    --accent:     #C8973A;
    --accent-dk:  #A57A2A;
    --border:     #E5E0D8;
    --shadow-sm:  0 2px 8px rgba(26,26,24,.07);
    --shadow-md:  0 8px 32px rgba(26,26,24,.12);
    --shadow-lg:  0 20px 60px rgba(26,26,24,.15);
    --radius:     12px;
    --radius-sm:  8px;
    --font-head:  'Playfair Display', Georgia, serif;
    --font-body:  'DM Sans', system-ui, sans-serif;
    --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Navbar ── */
.navbar {
    background: var(--nav-bg);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.navbar-brand {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

.navbar-brand span {
    color: var(--accent);
}

.navbar-links {
    display: flex;
    gap: 8px;
    align-items: center;
    list-style: none;
}

.navbar-links a {
    color: #D4CFC8;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    letter-spacing: .3px;
}

.navbar-links a:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.navbar-links .btn-accent {
    background: var(--accent);
    color: #fff !important;
    padding: 8px 20px;
}

.navbar-links .btn-accent:hover {
    background: var(--accent-dk) !important;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #D4CFC8;
    font-size: .875rem;
}

.navbar-user strong {
    color: var(--accent);
}

/* ── Hero / Page Header ── */
.page-hero {
    background: linear-gradient(135deg, #1A1A18 60%, #2C2A26);
    color: #fff;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1555041469-a586c61ea9bc?auto=format&fit=crop&w=1600&q=40') center/cover;
    opacity: .12;
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero h2 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 1.1rem;
    color: #B0AA9F;
    max-width: 500px;
    margin: 0 auto;
}

/* ── Section ── */
.section {
    padding: 70px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-size: .95rem;
}

.divider {
    width: 48px;
    height: 3px;
    background: var(--accent);
    margin: 12px auto 48px;
    border-radius: 2px;
}

/* ── Products Grid ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.product-card:hover img {
    transform: scale(1.04);
}

.product-body {
    padding: 22px 24px 24px;
}

.product-body h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.product-body p {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 14px;
    text-align: left;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px !important;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: .3px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    width: 100%;
    text-align: center;
}

.btn-primary:hover {
    background: var(--accent-dk);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Auth Cards (login / register) ── */
.auth-wrapper {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: var(--bg);
}

.auth-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 48px 44px;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border);
}

.auth-card .auth-logo {
    font-family: var(--font-head);
    font-size: 1.4rem;
    text-align: center;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: .5px;
}

.auth-card .auth-logo span { color: var(--accent); }

.auth-card h2 {
    font-family: var(--font-head);
    font-size: 1.7rem;
    text-align: center;
    margin-bottom: 6px;
}

.auth-card .auth-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 32px;
}

/* ── Forms ── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--text);
    letter-spacing: .3px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200,151,58,.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    width: 100%;
    padding: 13px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
    letter-spacing: .3px;
}

.form-submit:hover {
    background: var(--accent-dk);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(200,151,58,.35);
}

.auth-links {
    text-align: center;
    margin-top: 24px;
    font-size: .9rem;
    color: var(--text-muted);
}

.auth-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* ── Contact section ── */
.contact-form {
    max-width: 560px;
    margin: 0 auto;
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

/* ── Footer ── */
footer {
    background: var(--nav-bg);
    color: #7A7570;
    padding: 32px 40px;
    text-align: center;
    font-size: .85rem;
    letter-spacing: .5px;
    margin-top: 80px;
}

footer span { color: var(--accent); }

/* ── Utility ── */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.separator {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}
