/* === Green Bazaar — Clean Minimalist Plant Marketplace === */
/* Palette: Emerald #2A4139, Sage #8B9E7C, Cream #F5F0E8, Terracotta #B8704B, Rosewood #7A3B2E, Beige #D9CCBA, Dark #111A19 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: #333;
    background: #F5F0E8;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === Header === */
.header { background: #fff; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #EDE9E0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 1.1rem; }
.logo-text { font-family: 'DM Serif Display', serif; font-size: 1.1rem; color: #2A4139; }
.logo-sub { font-size: 0.6rem; color: #8B9E7C; margin-left: 8px; text-transform: uppercase; letter-spacing: 2px; font-weight: 400; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav-link { font-size: 0.78rem; color: #666; transition: color 0.2s; letter-spacing: 0.3px; }
.nav-link:hover { color: #2A4139; }
.nav-user { font-size: 0.78rem; color: #2A4139; font-weight: 500; letter-spacing: 0.2px; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #2A4139; }
#navLoggedOut, #navLoggedIn { display: flex; align-items: center; gap: 14px; }

/* === Buttons === */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 9px 20px; border-radius: 4px; font-size: 0.78rem; font-weight: 500;
    border: none; cursor: pointer; transition: all 0.25s; font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.4px; text-transform: uppercase;
}
.btn-primary { background: #B8704B; color: #fff; }
.btn-primary:hover { background: #A0603E; }
.btn-outline { background: transparent; border: 1px solid #DDD8D0; color: #666; }
.btn-outline:hover { background: #F5F0E8; color: #2A4139; }
.btn-full { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 0.75rem; }
.btn-lg { padding: 12px 24px; font-size: 0.85rem; }
.badge-count { background: #B8704B; color: #fff; font-size: 0.6rem; padding: 1px 5px; border-radius: 8px; margin-left: 2px; }

/* === Hero === */
.hero { background: #2A4139; padding: 56px 0 44px; text-align: center; }
.hero h1 { font-family: 'DM Serif Display', serif; font-size: 2.4rem; font-weight: 400; color: #F5F0E8; margin-bottom: 12px; line-height: 1.2; }
.hero p { font-size: 0.88rem; color: #8B9E7C; max-width: 460px; margin: 0 auto 26px; line-height: 1.7; }

/* === Search === */
.search-bar {
    display: flex; max-width: 440px; margin: 0 auto 20px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px; overflow: hidden;
}
.search-bar input {
    flex: 1; padding: 11px 16px; border: none; font-size: 0.85rem;
    outline: none; font-family: inherit; background: transparent; color: #F5F0E8;
}
.search-bar input::placeholder { color: rgba(139,158,124,0.7); }
.search-bar .btn { border-radius: 0; padding: 11px 20px; }

/* === Filter Tags === */
.filter-tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.tag {
    padding: 6px 16px; border-radius: 20px; font-size: 0.72rem;
    border: 1px solid rgba(255,255,255,0.12); background: transparent;
    color: #D9CCBA; cursor: pointer; transition: all 0.25s; font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.5px;
}
.tag:hover, .tag.active { background: #B8704B; color: #fff; border-color: #B8704B; }

/* === Sort/Filter Bar === */
.sort-filter-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.sort-filter-bar select {
    padding: 7px 10px; border: 1px solid #DDD8D0; border-radius: 4px;
    font-size: 0.78rem; font-family: inherit; background: #fff; color: #666; cursor: pointer;
}

/* === Listings === */
.listings { padding: 40px 0; }
.section-title { font-family: 'DM Serif Display', serif; font-size: 1.5rem; font-weight: 400; text-align: center; margin-bottom: 4px; color: #2A4139; }
.section-subtitle { text-align: center; color: #999; margin-bottom: 28px; font-size: 0.82rem; }

/* === Product Grid — Clean Florasy style === */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* === Plant Card — White, minimal, clean === */
.card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    border: none;
}
.card:hover { box-shadow: 0 8px 24px rgba(42,65,57,0.08); }
.card-img-wrap { position: relative; background: #fff; }
.card-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #fff;
    padding: 12px;
}
.card-body { padding: 12px 14px 14px; }
.card-badge {
    display: inline-block; padding: 2px 8px; border-radius: 2px;
    font-size: 0.6rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 6px;
}
.badge-available { background: #EDF2EA; color: #4A6741; }
.badge-limited { background: #FDF0E8; color: #B8704B; }
.badge-preorder { background: #EBF0F4; color: #4A7C8F; }
.card-title { font-family: 'DM Serif Display', serif; font-size: 0.9rem; font-weight: 400; margin-bottom: 2px; color: #2A2A2A; }
.card-latin { font-size: 0.7rem; color: #aaa; font-style: italic; margin-bottom: 6px; }
.card-desc { font-size: 0.75rem; color: #999; margin-bottom: 8px; line-height: 1.5; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.7rem; color: #bbb; margin-bottom: 8px; }
.card-price { font-size: 1rem; font-weight: 600; color: #B8704B; }
.card-price-unit { font-size: 0.7rem; font-weight: 400; color: #bbb; }
.card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 8px; border-top: 1px solid #F5F2ED;
}
.card-seller { font-size: 0.7rem; color: #bbb; cursor: pointer; }
.card-seller:hover { color: #B8704B; }
.card-seller strong { color: #888; font-weight: 500; }
.card-rating { font-size: 0.7rem; color: #bbb; margin-bottom: 6px; }

/* === Favorite Button === */
.fav-btn {
    position: absolute; top: 8px; right: 8px; background: #fff;
    border: none; border-radius: 50%; width: 30px; height: 30px; font-size: 0.9rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08); transition: transform 0.2s;
}
.fav-btn:hover { transform: scale(1.1); }

/* === Share Button === */
.share-btn {
    display: block; width: 100%; padding: 7px; border: none; border-top: 1px solid #F5F2ED;
    background: transparent; color: #ccc; font-size: 0.7rem; cursor: pointer;
    font-family: inherit; transition: color 0.2s; letter-spacing: 0.3px;
}
.share-btn:hover { color: #B8704B; }

/* === Planting Badge === */
.planting-badge {
    display: inline-block; font-size: 0.6rem; background: #EDF2EA; color: #4A6741;
    padding: 2px 6px; border-radius: 2px; margin-bottom: 4px; margin-left: 4px;
    letter-spacing: 0.3px;
}

/* === Verified Badge === */
.verified-badge { color: #2A4139; font-size: 0.7rem; margin-left: 2px; }
.verified-badge-lg {
    display: inline-block; background: #EDF2EA; color: #2A4139; padding: 3px 10px;
    border-radius: 3px; font-size: 0.75rem; font-weight: 500; margin-left: 6px;
}

/* === How It Works === */
.how-it-works { padding: 40px 0; background: #EDE9E0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.step { text-align: center; padding: 24px 14px; background: #fff; border-radius: 6px; position: relative; }
.step-num {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    background: #2A4139; color: #F5F0E8; width: 24px; height: 24px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 600;
}
.step-icon { font-size: 1.4rem; display: block; margin: 6px 0 8px; }
.step h3 { font-size: 0.85rem; margin-bottom: 4px; color: #2A4139; font-weight: 500; }
.step p { font-size: 0.75rem; color: #999; line-height: 1.5; }

/* === About / Features === */
.about { padding: 40px 0; background: #fff; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.feature { text-align: center; padding: 20px 12px; }
.feature-icon { font-size: 1.4rem; display: block; margin-bottom: 8px; }
.feature h3 { font-size: 0.85rem; margin-bottom: 4px; color: #2A4139; font-weight: 500; }
.feature p { font-size: 0.75rem; color: #999; line-height: 1.5; }

/* === Modal === */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(17,26,25,0.45); z-index: 200;
    align-items: center; justify-content: center;
    backdrop-filter: blur(2px);
}
.modal-overlay.open { display: flex; }
.modal {
    background: #fff; border-radius: 8px; padding: 28px;
    max-width: 420px; width: 92%; position: relative;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.modal h2 { font-family: 'DM Serif Display', serif; font-size: 1.2rem; margin-bottom: 4px; color: #2A4139; font-weight: 400; }
.modal-desc { color: #999; font-size: 0.82rem; margin-bottom: 16px; }
.modal-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #ccc;
}
.modal-sm { max-width: 360px; text-align: center; }
.modal-lg { max-width: 540px; }
.modal-switch { font-size: 0.78rem; color: #aaa; text-align: center; margin-top: 12px; }

/* === Forms === */
.contact-form label { display: block; font-size: 0.75rem; font-weight: 500; margin-bottom: 3px; margin-top: 10px; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%; padding: 9px 12px; border: 1px solid #E0DCD4;
    border-radius: 4px; font-size: 0.85rem; font-family: inherit;
    outline: none; transition: border-color 0.2s; background: #FAFAF8;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: #8B9E7C; background: #fff; }
.contact-form .btn { margin-top: 16px; }
.required { color: #B8704B; }
.checkbox-group { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; }
.checkbox-group input[type="checkbox"] { margin-top: 2px; accent-color: #2A4139; }
.checkbox-group label { font-size: 0.78rem; color: #888; margin: 0; text-transform: none; letter-spacing: 0; }
.link { color: #B8704B; text-decoration: underline; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-hint { font-size: 0.7rem; color: #bbb; margin-top: 3px; }
.form-section { margin-top: 12px; border: 1px solid #E8E5DE; border-radius: 4px; }
.form-section summary { padding: 9px 12px; cursor: pointer; font-size: 0.82rem; font-weight: 500; color: #2A4139; list-style: none; background: #FAFAF8; }
.form-section summary::-webkit-details-marker { display: none; }
.form-section[open] summary { border-bottom: 1px solid #E8E5DE; }
.form-section label, .form-section input { margin-left: 12px; margin-right: 12px; width: calc(100% - 24px); }

/* === Verification / Privacy === */
.verify-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.verify-content h2 { margin-bottom: 6px; }
.verify-content p { color: #999; font-size: 0.85rem; }
.verify-email { font-weight: 600; color: #2A4139; font-size: 0.95rem; margin: 4px 0 14px; }
.code-input { text-align: center; font-size: 1.3rem; letter-spacing: 8px; font-weight: 600; }
.resend-text { font-size: 0.75rem; color: #bbb; margin-top: 12px; }
.privacy-content { max-height: 60vh; overflow-y: auto; }
.privacy-content h3 { font-size: 0.88rem; margin: 14px 0 4px; color: #2A4139; }
.privacy-content p { font-size: 0.82rem; color: #777; margin-bottom: 6px; }
.privacy-content ul { padding-left: 18px; margin-bottom: 8px; }
.privacy-content li { font-size: 0.82rem; color: #777; margin-bottom: 3px; }
.privacy-date { font-size: 0.72rem; color: #bbb; font-style: italic; margin-bottom: 10px; }

/* === Plant Detail === */
.page-section { padding: 16px 0 50px; }
.back-link { display: inline-block; color: #B8704B; font-size: 0.82rem; margin: 16px 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 12px; }
.detail-img { width: 100%; border-radius: 6px; max-height: 420px; object-fit: contain; background: #fff; padding: 16px; }
.detail-info h1 { font-family: 'DM Serif Display', serif; font-size: 1.6rem; margin: 6px 0 2px; color: #2A4139; font-weight: 400; }
.detail-rating { font-size: 0.82rem; color: #aaa; margin: 6px 0 14px; }
.detail-desc { font-size: 0.88rem; color: #666; line-height: 1.7; margin-bottom: 18px; }
.detail-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.spec { background: #F5F0E8; padding: 8px 12px; border-radius: 4px; }
.spec-label { display: block; font-size: 0.65rem; color: #aaa; text-transform: uppercase; letter-spacing: 0.5px; }
.spec span:last-child { font-size: 0.82rem; color: #555; }
.detail-price { margin-bottom: 18px; }
.detail-actions { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.detail-actions .btn-primary { background: #B8704B; }
.detail-actions .btn-outline { border-color: #2A4139; color: #2A4139; background: transparent; }
.detail-actions .btn-outline:hover { background: #2A4139; color: #fff; }
.detail-actions .btn-lg { flex: 1; min-width: 160px; }
.escrow-badge {
    background: #EDF2EA; padding: 10px 14px; border-radius: 4px;
    font-size: 0.78rem; color: #4A6741; display: flex; align-items: center; gap: 8px;
}

/* === Care Guide === */
.care-guide { background: #F5F0E8; border-radius: 6px; padding: 14px; margin: 14px 0; }
.care-guide h3 { font-size: 0.85rem; margin-bottom: 8px; color: #2A4139; font-weight: 500; }
.care-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.care-item { background: #fff; padding: 7px 10px; border-radius: 4px; }
.care-label { display: block; font-size: 0.65rem; color: #aaa; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 1px; }
.care-item span:last-child { font-size: 0.8rem; color: #555; }

/* === Seller Mini Card === */
.seller-mini {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    background: #fff; border: 1px solid #EDE9E0; border-radius: 6px; margin-top: 10px;
}
.seller-mini p { font-size: 0.75rem; color: #aaa; margin: 0; }
.seller-avatar-sm {
    width: 36px; height: 36px; border-radius: 50%; background: #8B9E7C; color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.95rem; flex-shrink: 0;
}

/* === Reviews === */
.reviews-section { margin-top: 32px; }
.reviews-section h2 { font-size: 1.1rem; margin-bottom: 14px; color: #2A4139; font-weight: 500; }
.review-card { background: #fff; border: 1px solid #EDE9E0; border-radius: 6px; padding: 14px; margin-bottom: 10px; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.review-stars { color: #B8704B; font-size: 0.9rem; letter-spacing: 1px; }
.review-condition { font-size: 0.68rem; padding: 2px 8px; border-radius: 2px; text-transform: uppercase; letter-spacing: 0.3px; }
.condition-healthy { background: #EDF2EA; color: #4A6741; }
.condition-good { background: #FDF0E8; color: #B8704B; }
.condition-bad { background: #FDEAEA; color: #7A3B2E; }
.review-text { font-size: 0.82rem; color: #777; margin-bottom: 4px; }
.review-meta { font-size: 0.72rem; color: #bbb; }
.no-reviews { color: #bbb; font-size: 0.82rem; }
.star-rating { display: flex; gap: 3px; margin: 6px 0; }
.star { font-size: 1.4rem; cursor: pointer; color: #B8704B; }
.review-photos { display: flex; gap: 6px; margin: 6px 0; flex-wrap: wrap; }
.review-photo { width: 80px; height: 64px; object-fit: cover; border-radius: 4px; }
.photo-upload-area { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.photo-hint { font-size: 0.7rem; color: #bbb; }
.photo-preview { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.photo-thumb { position: relative; width: 64px; height: 64px; border-radius: 4px; overflow: hidden; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.5); color: #fff; border: none; border-radius: 50%; width: 18px; height: 18px; font-size: 0.65rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* === Dashboard === */
.dash-tabs { display: flex; gap: 6px; margin-bottom: 20px; justify-content: center; }
.dash-tab {
    padding: 7px 16px; border-radius: 3px; border: 1px solid #DDD8D0;
    background: #fff; cursor: pointer; font-family: inherit; font-size: 0.78rem;
    transition: all 0.2s; color: #888; letter-spacing: 0.2px;
}
.dash-tab.active { background: #2A4139; color: #F5F0E8; border-color: #2A4139; }
.dash-empty { text-align: center; color: #bbb; padding: 36px 0; font-size: 0.85rem; }
.dash-empty a { color: #B8704B; text-decoration: underline; }

.order-card { background: #fff; border: 1px solid #EDE9E0; border-radius: 6px; padding: 18px; margin-bottom: 14px; }
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 6px; }
.order-id { font-weight: 600; font-size: 0.82rem; color: #2A4139; }
.order-status, .escrow-status {
    display: inline-block; padding: 2px 8px; border-radius: 2px;
    font-size: 0.6rem; font-weight: 600; color: #fff; text-transform: uppercase; margin-left: 4px; letter-spacing: 0.3px;
}
.order-body { display: flex; gap: 14px; margin-bottom: 12px; }
.order-img { width: 72px; height: 72px; border-radius: 4px; object-fit: contain; background: #fff; border: 1px solid #F0EDE6; flex-shrink: 0; }
.order-body h3 { font-size: 0.88rem; margin-bottom: 2px; color: #2A4139; font-weight: 500; }
.order-body p { font-size: 0.78rem; color: #999; }
.order-total { font-weight: 600; color: #B8704B; font-size: 0.88rem; margin-top: 2px; }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.order-actions .btn-primary { background: #2A4139; color: #F5F0E8; }
.order-actions .btn-outline { border-color: #DDD8D0; color: #888; background: transparent; }
.order-actions .btn-outline:hover { background: #F5F0E8; }
.inspection-notice { background: #FDF0E8; padding: 7px 12px; border-radius: 4px; font-size: 0.78rem; color: #B8704B; width: 100%; margin-bottom: 6px; }
.dispute-card { border-left: 2px solid #7A3B2E; }
.listing-card .order-actions { border-top: 1px solid #F5F2ED; padding-top: 8px; }
.order-cancelled { opacity: 0.6; }

/* === Progress Tracker === */
.progress-tracker { display: flex; align-items: center; justify-content: center; padding: 14px 0; margin: 10px 0; }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 60px; }
.progress-step span { font-size: 0.6rem; color: #bbb; text-align: center; }
.step-dot { width: 12px; height: 12px; border-radius: 50%; background: #E0DCD4; border: 2px solid #DDD8D0; }
.step-line { flex: 1; height: 1px; background: #E0DCD4; min-width: 16px; margin-top: -16px; }
.step-done .step-dot { background: #2A4139; border-color: #2A4139; }
.step-done span { color: #2A4139; font-weight: 500; }
.step-active .step-dot { background: #B8704B; border-color: #B8704B; box-shadow: 0 0 0 3px rgba(184,112,75,0.15); }
.step-active span { color: #B8704B; font-weight: 500; }
.step-cancelled .step-dot { background: #ccc; border-color: #ccc; }
.order-waiting { text-align: center; font-size: 0.78rem; color: #888; padding: 6px 12px; background: #F5F0E8; border-radius: 4px; margin-bottom: 10px; }

/* === Checkout === */
.checkout-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; margin-top: 16px; }
.checkout-item { display: flex; gap: 14px; background: #fff; padding: 14px; border-radius: 6px; border: 1px solid #EDE9E0; }
.checkout-img { width: 90px; height: 90px; border-radius: 4px; object-fit: contain; background: #fff; flex-shrink: 0; }
.checkout-item h3 { font-size: 0.95rem; margin-bottom: 2px; color: #2A4139; }
.checkout-item p { font-size: 0.78rem; color: #999; }
.escrow-notice { display: flex; gap: 10px; background: #EDF2EA; padding: 14px; border-radius: 6px; margin-bottom: 18px; }
.escrow-notice span { font-size: 1.2rem; }
.escrow-notice strong { display: block; color: #2A4139; margin-bottom: 2px; font-size: 0.82rem; }
.escrow-notice p { font-size: 0.78rem; color: #666; margin: 0; }
.radio-group { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.radio-label { font-size: 0.82rem; cursor: pointer; padding: 8px 12px; border: 1px solid #E8E5DE; border-radius: 4px; transition: all 0.2s; }
.radio-label:has(input:checked) { border-color: #2A4139; background: #F5F0E8; }
.radio-label input { margin-right: 6px; accent-color: #2A4139; }
.info-box { background: #F5F0E8; padding: 12px; border-radius: 4px; font-size: 0.78rem; margin: 6px 0; }
.info-box p { margin-bottom: 3px; color: #666; }
.total-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.82rem; color: #888; }
.total-final { border-top: 1.5px solid #2A4139; padding-top: 8px; margin-top: 4px; font-weight: 600; color: #2A4139; font-size: 0.9rem; }
.checkout-note { font-size: 0.72rem; color: #bbb; text-align: center; margin-top: 10px; }
.checkout-form-wrap h3 { font-size: 0.88rem; margin: 14px 0 4px; color: #2A4139; font-weight: 500; }
.request-estimate .total-row { font-size: 0.8rem; }

/* === Messages === */
.msg-layout { display: grid; grid-template-columns: 260px 1fr; gap: 16px; min-height: 460px; margin-top: 16px; }
.msg-list { background: #fff; border: 1px solid #EDE9E0; border-radius: 6px; overflow-y: auto; max-height: 560px; }
.msg-item { padding: 12px 14px; border-bottom: 1px solid #F5F2ED; cursor: pointer; transition: background 0.2s; }
.msg-item:hover, .msg-item.active { background: #F5F0E8; }
.msg-item-header { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; }
.msg-preview { font-size: 0.72rem; color: #aaa; margin-top: 3px; }
.msg-order { font-size: 0.65rem; background: #EDF2EA; color: #4A6741; padding: 1px 6px; border-radius: 2px; margin-top: 3px; display: inline-block; }
.msg-unread { background: #B8704B; color: #fff; font-size: 0.6rem; padding: 1px 5px; border-radius: 8px; }
.msg-chat { background: #fff; border: 1px solid #EDE9E0; border-radius: 6px; display: flex; flex-direction: column; }
.msg-empty { text-align: center; color: #bbb; padding: 36px; font-size: 0.85rem; }
.chat-header { padding: 12px 16px; border-bottom: 1px solid #EDE9E0; font-size: 0.85rem; color: #2A4139; font-weight: 500; }
.chat-messages { flex: 1; overflow-y: auto; padding: 14px; max-height: 400px; }
.chat-msg { max-width: 72%; margin-bottom: 10px; padding: 8px 12px; border-radius: 8px; }
.chat-msg p { font-size: 0.82rem; margin-bottom: 2px; }
.chat-msg small { font-size: 0.65rem; color: #bbb; }
.msg-mine { background: #EDF2EA; margin-left: auto; border-bottom-right-radius: 2px; }
.msg-theirs { background: #F5F0E8; border-bottom-left-radius: 2px; }
.chat-input { display: flex; gap: 6px; padding: 10px 14px; border-top: 1px solid #EDE9E0; }
.chat-input input { flex: 1; padding: 8px 12px; border: 1px solid #E0DCD4; border-radius: 4px; font-size: 0.82rem; font-family: inherit; outline: none; background: #FAFAF8; }
.chat-input .btn { background: #2A4139; color: #F5F0E8; }

/* === Seller Profile === */
.seller-profile-header { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.seller-avatar {
    width: 64px; height: 64px; border-radius: 50%; background: #2A4139; color: #F5F0E8;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 600; flex-shrink: 0;
}
.seller-profile-header h1 { font-size: 1.2rem; color: #2A4139; margin-bottom: 2px; font-weight: 600; }
.seller-profile-header p { font-size: 0.82rem; color: #999; margin: 1px 0; }
.seller-bio { color: #777; font-style: italic; margin-top: 4px; font-size: 0.85rem; }

/* === Notifications === */
.notif-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.notif-item { background: #fff; border: 1px solid #EDE9E0; border-radius: 6px; padding: 12px 14px; margin-bottom: 6px; cursor: pointer; transition: background 0.2s; }
.notif-item:hover { background: #F5F0E8; }
.notif-unread { border-left: 2px solid #B8704B; }
.notif-title { font-weight: 500; font-size: 0.82rem; color: #2A4139; }
.notif-body { font-size: 0.78rem; color: #888; margin: 2px 0; }
.notif-time { font-size: 0.68rem; color: #bbb; }

/* === Language Toggle === */
.lang-toggle {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    color: #D9CCBA; padding: 3px 8px; border-radius: 3px; font-size: 0.7rem;
    cursor: pointer; font-family: inherit; letter-spacing: 0.3px;
}

/* === Footer === */
.footer { background: #111A19; color: #888; padding: 36px 0 18px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }
.footer h3 { color: #D9CCBA; margin-bottom: 8px; font-size: 0.9rem; font-weight: 500; }
.footer h4 { color: #D9CCBA; margin-bottom: 8px; font-size: 0.82rem; font-weight: 500; }
.footer a { display: block; color: #666; font-size: 0.78rem; margin-bottom: 4px; transition: color 0.2s; }
.footer a:hover { color: #B8704B; }
.footer p { font-size: 0.78rem; line-height: 1.6; }
.footer-bottom { text-align: center; margin-top: 28px; padding-top: 16px; border-top: 1px solid #1E2E2B; font-size: 0.7rem; color: #555; }

/* === Toast === */
.toast {
    position: fixed; bottom: 20px; right: 20px;
    background: #2A4139; color: #F5F0E8;
    padding: 12px 20px; border-radius: 4px; font-size: 0.82rem;
    z-index: 300; opacity: 0; transform: translateY(8px); transition: all 0.3s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.no-results { text-align: center; color: #bbb; font-size: 0.88rem; padding: 36px 0; }

/* === Responsive === */
@media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
    .steps, .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav { display: none; }
    .nav.open {
        display: flex; flex-direction: column;
        position: absolute; top: 56px; left: 0; right: 0;
        background: #fff; padding: 16px; gap: 12px;
        border-bottom: 1px solid #EDE9E0; box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 1.5rem; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card-img { height: 160px; }
    .detail-grid, .checkout-layout { grid-template-columns: 1fr; }
    .msg-layout { grid-template-columns: 1fr; }
    .steps, .features { grid-template-columns: 1fr 1fr; }
    #navLoggedOut, #navLoggedIn { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .card-img { height: 140px; padding: 8px; }
    .card-body { padding: 8px 10px 10px; }
    .card-title { font-size: 0.78rem; }
    .card-price { font-size: 0.88rem; }
}

/* === Story / Testimonial === */
.story-section { padding: 48px 0; background: #EDE9E0; }
.story-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center; }
.story-text { font-size: 0.88rem; color: #666; line-height: 1.8; margin-bottom: 12px; }
.story-author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: #B8704B; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.1rem; flex-shrink: 0; }
.story-author strong { display: block; font-size: 0.88rem; color: #2A4139; }
.story-author span { font-size: 0.75rem; color: #999; }
.story-image { border-radius: 8px; overflow: hidden; max-height: 360px; }

/* === FAQ === */
.faq-section { padding: 48px 0; background: #fff; }
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #EDE9E0; }
.faq-item summary {
    padding: 14px 0; font-size: 0.88rem; font-weight: 500; color: #2A4139;
    cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.1rem; color: #B8704B; font-weight: 300; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 0 14px; font-size: 0.82rem; color: #777; line-height: 1.7; }

/* === Feature Icon Circles (SVG) === */
.feature-icon-circle {
    width: 48px; height: 48px; border-radius: 50%; background: #EDF2EA;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
}

/* === Responsive additions === */
@media (max-width: 768px) {
    .story-grid { grid-template-columns: 1fr; }
    .story-image { max-height: 240px; }
}

/* === Recommendation Sections === */
.recs-section { padding: 36px 0; }
.recs-alt { background: #fff; }
.grid-scroll { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.similar-section { margin-top: 32px; }
.similar-section h2 { font-size: 1.1rem; margin-bottom: 14px; color: #2A4139; font-weight: 500; }

/* === Chat Photos === */
.chat-photo-btn { padding: 6px 10px; font-size: 0.9rem; flex-shrink: 0; border-color: #DDD8D0; color: #888; }
.chat-photo-preview { padding: 0 14px; }
.chat-preview-wrap { position: relative; display: inline-block; margin: 6px 0; }
.chat-preview-wrap img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; }
.chat-preview-wrap button { position: absolute; top: -4px; right: -4px; background: #7A3B2E; color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 0.65rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-msg-photo { max-width: 200px; border-radius: 6px; margin-top: 4px; cursor: pointer; }

/* === Fun Facts === */
.funfacts-section { margin-top: 28px; }
.funfacts-section h2 { font-size: 1.1rem; margin-bottom: 12px; color: #2A4139; font-weight: 500; }
.funfacts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.funfact-card { background: #fff; border: 1px solid #EDE9E0; border-radius: 6px; padding: 14px; position: relative; }
.funfact-num { position: absolute; top: 10px; right: 12px; font-size: 1.4rem; font-weight: 700; color: #EDE9E0; }
.funfact-card p { font-size: 0.8rem; color: #666; line-height: 1.6; }

/* === Recommended Products === */
.recs-products-section { margin-top: 24px; }
.recs-products-section h2 { font-size: 1.1rem; margin-bottom: 12px; color: #2A4139; font-weight: 500; }
.recs-products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rec-product-card { background: #F5F0E8; border-radius: 6px; padding: 14px; }
.rec-type { display: inline-block; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.5px; color: #B8704B; background: #FDF0E8; padding: 2px 6px; border-radius: 2px; margin-bottom: 6px; }
.rec-product-card h4 { font-size: 0.85rem; color: #2A4139; margin-bottom: 2px; font-weight: 500; }
.rec-product-card p { font-size: 0.75rem; color: #888; }

/* === Photo Upload Zone === */
.photo-upload-zone { margin: 6px 0; }
.upload-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; padding: 24px; border: 2px dashed #DDD8D0; border-radius: 6px;
    cursor: pointer; transition: border-color 0.2s; color: #bbb; font-size: 0.82rem;
}
.upload-placeholder:hover { border-color: #8B9E7C; }
.photo-main { border: 2px solid #B8704B; }
.photo-main-label { position: absolute; bottom: 2px; left: 2px; background: #B8704B; color: #fff; font-size: 0.55rem; padding: 1px 4px; border-radius: 2px; text-transform: uppercase; }
.photo-guidelines { background: #F5F0E8; border-radius: 6px; padding: 12px 14px; margin-top: 8px; }
.photo-guidelines strong { font-size: 0.78rem; color: #2A4139; display: block; margin-bottom: 4px; }
.photo-guidelines ul { padding-left: 16px; margin: 0; }
.photo-guidelines li { font-size: 0.72rem; color: #888; margin-bottom: 2px; }

/* === Language Select === */
.lang-toggle {
    background: #fff; border: 1px solid #DDD8D0;
    color: #666; padding: 3px 6px; border-radius: 3px; font-size: 0.7rem;
    cursor: pointer; font-family: inherit;
}

@media (max-width: 768px) {
    .funfacts-grid, .recs-products-grid { grid-template-columns: 1fr; }
}

/* === Serif headings everywhere === */
.story-content h2, .faq-section h2, .reviews-section h2, .funfacts-section h2,
.recs-products-section h2, .similar-section h2, .seller-profile-header h1,
.step h3, .feature h3 { font-family: 'DM Serif Display', serif; font-weight: 400; }
.footer h3, .footer h4 { font-family: 'DM Serif Display', serif; font-weight: 400; }

/* === Admin === */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid #EDE9E0; border-radius: 6px; padding: 14px; text-align: center; }
.stat-num { display: block; font-family: 'DM Serif Display', serif; font-size: 1.4rem; color: #2A4139; }
.stat-label { font-size: 0.7rem; color: #999; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; overflow: hidden; font-size: 0.82rem; }
.admin-table th { background: #2A4139; color: #F5F0E8; padding: 10px 12px; text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid #F5F0E8; }
.admin-table tr:hover { background: #FAFAF8; }
.email-verified-icon { color: #2A4139; font-weight: 600; }
.email-unverified { color: #B8704B; }

/* === SVG Step Icons === */
.step-icon-svg { margin: 8px 0 10px; }
.step-icon { display: none; } /* hide old emoji icons */

/* === My Profile Page === */
.profile-card { background: #fff; border-radius: 8px; padding: 24px; margin-bottom: 12px; }
.prof-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.prof-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #8B9E7C, #2A4139);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 600; flex-shrink: 0;
}
.prof-info h2 { font-family: 'DM Serif Display', serif; font-size: 1.2rem; font-weight: 400; color: #2A4139; margin-bottom: 2px; }
.prof-info p { font-size: 0.78rem; color: #999; margin: 1px 0; }
.prof-verified { color: #2A4139; font-size: 0.75rem; background: #EDF2EA; padding: 1px 6px; border-radius: 3px; margin-left: 4px; }
.prof-unverified { color: #B8704B; font-size: 0.7rem; background: #FDF0E8; padding: 1px 6px; border-radius: 3px; margin-left: 4px; }
.prof-stats { display: flex; gap: 0; border-top: 1px solid #F5F0E8; padding-top: 14px; }
.prof-stat { flex: 1; text-align: center; }
.prof-stat .stat-num { display: block; font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: #2A4139; }
.prof-stat .stat-label { font-size: 0.65rem; color: #aaa; text-transform: uppercase; letter-spacing: 0.5px; }
.prof-bio { font-size: 0.85rem; color: #777; font-style: italic; margin-top: 12px; padding-top: 12px; border-top: 1px solid #F5F0E8; }
.prof-menu-list { background: #fff; border-radius: 8px; overflow: hidden; }
.prof-menu-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px; border-bottom: 1px solid #F5F0E8;
    font-size: 0.85rem; color: #555; cursor: pointer; transition: background 0.2s;
}
.prof-menu-item:hover { background: #FAFAF8; }
.prof-menu-item:last-child { border-bottom: none; }
.prof-menu-item span:last-child { color: #ccc; }

/* === Message & People Search === */
.msg-search-bar, .people-search-bar { margin-bottom: 14px; }
.msg-search-bar input, .people-search-bar input {
    width: 100%; padding: 10px 14px; border: 1px solid #E0DCD4; border-radius: 6px;
    font-size: 0.85rem; font-family: 'DM Sans', sans-serif; outline: none; background: #fff;
}
.msg-search-bar input:focus, .people-search-bar input:focus { border-color: #8B9E7C; }

/* === User Dropdown Menu === */
.user-menu-wrap { position: relative; }
.user-menu-btn {
    display: flex; align-items: center; gap: 6px; background: none; border: none;
    cursor: pointer; padding: 4px 8px; border-radius: 4px; transition: background 0.2s;
}
.user-menu-btn:hover { background: #F5F0E8; }
.user-avatar-nav {
    width: 28px; height: 28px; border-radius: 50%; background: #2A4139; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600;
}
.user-menu-name { font-size: 0.78rem; color: #2A4139; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-badges { display: flex; gap: 2px; }
.user-dropdown {
    display: none; position: absolute; top: 100%; right: 0; margin-top: 6px;
    background: #fff; border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    min-width: 200px; overflow: hidden; z-index: 150;
}
.user-dropdown.open { display: block; }
.user-dropdown a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 16px; font-size: 0.82rem; color: #555; cursor: pointer; transition: background 0.15s;
}
.user-dropdown a:hover { background: #F5F0E8; }
.dd-divider { height: 1px; background: #EDE9E0; margin: 4px 0; }
.dd-logout { color: #7A3B2E !important; }
.dd-badge { font-size: 0.65rem; background: #B8704B; color: #fff; padding: 1px 5px; border-radius: 8px; }

/* === News === */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.news-card { background: #fff; border-radius: 8px; overflow: hidden; transition: box-shadow 0.3s; cursor: pointer; }
.news-card:hover { box-shadow: 0 8px 24px rgba(42,65,57,0.08); }
.news-img { width: 100%; height: 180px; object-fit: cover; background: #EDE9E0; }
.news-body { padding: 16px; }
.news-tag { display: inline-block; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.5px; color: #B8704B; background: #FDF0E8; padding: 2px 8px; border-radius: 2px; margin-bottom: 8px; }
.news-body h3 { font-family: 'DM Serif Display', serif; font-size: 1rem; font-weight: 400; color: #2A4139; margin-bottom: 6px; line-height: 1.3; }
.news-body p { font-size: 0.8rem; color: #888; line-height: 1.5; margin-bottom: 8px; }
.news-date { font-size: 0.7rem; color: #bbb; }

/* === Testimonials === */
.testimonials-section { padding: 40px 0; background: #EDE9E0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.testimonial-card { background: #fff; border-radius: 8px; padding: 20px; }
.testimonial-text { font-size: 0.85rem; color: #666; line-height: 1.7; font-style: italic; margin-bottom: 14px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-author strong { display: block; font-size: 0.82rem; color: #2A4139; }
.testimonial-author span { font-size: 0.7rem; color: #999; }

@media (max-width: 768px) {
    .testimonials-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .user-menu-name { display: none; }
}

/* === Enhanced Dashboard === */
.dash-stats-bar { display: flex; gap: 0; background: #fff; border-radius: 8px; margin-bottom: 14px; overflow: hidden; border: 1px solid #EDE9E0; }
.dash-stat { flex: 1; text-align: center; padding: 14px 8px; border-right: 1px solid #F5F0E8; }
.dash-stat:last-child { border-right: none; }
.dash-quick-links { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.dash-quick-links a { padding: 8px 14px; background: #fff; border: 1px solid #EDE9E0; border-radius: 6px; font-size: 0.78rem; color: #555; cursor: pointer; transition: all 0.2s; }
.dash-quick-links a:hover { background: #F5F0E8; color: #2A4139; }
.dash-section { background: #fff; border: 1px solid #EDE9E0; border-radius: 8px; margin-bottom: 12px; }
.dash-section summary { padding: 12px 16px; font-size: 0.85rem; font-weight: 500; color: #2A4139; cursor: pointer; list-style: none; }
.dash-section summary::-webkit-details-marker { display: none; }
.dash-section summary::after { content: '+'; float: right; color: #B8704B; }
.dash-section[open] summary::after { content: '−'; }
.dash-section[open] summary { border-bottom: 1px solid #F5F0E8; }
.activity-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; font-size: 0.8rem; color: #666; border-bottom: 1px solid #FAFAF8; }
.activity-item:last-child { border-bottom: none; }
.activity-item small { color: #bbb; font-size: 0.7rem; }
.prediction-card { display: flex; justify-content: space-between; padding: 10px 16px; font-size: 0.82rem; border-bottom: 1px solid #FAFAF8; }
.prediction-card strong { color: #2A4139; text-transform: capitalize; }
.prediction-card span { color: #888; }
