@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@900&family=Libre+Baskerville:wght@400;700&family=Playfair+Display:ital,wght@0,700;1,700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ══════════════════════════════════════════
   CentCellar — Navy & Gold Theme  v2
   To switch themes change the stylesheet
   link in index.php to:
   style-cream-gold.css or style-parchment.css
   ══════════════════════════════════════════ */

:root {
    --white:          #ffffff;
    --off-white:      #f8f6f0;
    --border:         #e2e0d8;
    --border-dark:    #c8c4b8;
    --text:           #0f172a;
    --muted:          #64748b;
    --radius:         8px;
    --shadow-sm:      0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:      0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.05);

    /* ── Theme colors ── */
    --nav-bg:         #0f2247;
    --nav-bg-light:   #1e3a6e;
    --nav-text:       #ffffff;
    --nav-muted:      rgba(255,255,255,0.6);
    --accent:         #c9a84c;
    --accent-hover:   #b8962e;
    --accent-light:   #fef9ec;
    --link:           #2563eb;
    --link-hover:     #1d4ed8;
    --page-bg:        #f8f6f0;
    --card-bg:        #ffffff;
    --tagline-bg:     #ffffff;
    --footer-bg:      #0f2247;
    --footer-text:    rgba(255,255,255,0.65);
    --footer-heading: #ffffff;
    --footer-link:    rgba(255,255,255,0.55);
    --success-bg:     #d1fae5;
    --success-bd:     #a7f3d0;
    --success-tx:     #065f46;
    --error-bg:       #fee2e2;
    --error-bd:       #fca5a5;
    --error-tx:       #991b1b;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--page-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
    background: var(--nav-bg);
    position: sticky;
    top: 0;
    z-index: 200;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-logo span {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    color: var(--nav-text);
    letter-spacing: 0.03em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--nav-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s;
}

.nav-link:hover { color: var(--nav-text); }

.nav-subtle {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}

.nav-subtle:hover { color: var(--accent-hover); }

/* ── HERO BANNER ── */
.hero-banner {
    width: 100%;
    background: var(--off-white);
    border-bottom: 1px solid var(--border);
    padding: 0.625rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-box {
    border: 2px solid var(--border-dark);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 480px;
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
}

.hero-image-box img { width: 100%; height: auto; display: block; }

/* ── TAGLINE BAR ── */
.tagline-bar {
    background: var(--tagline-bg);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 1.5rem;
    text-align: center;
}

.tagline-bar-inner { max-width: 1100px; margin: 0 auto; }

.tagline-main {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nav-bg);
    letter-spacing: -0.01em;
    margin-bottom: 0.2rem;
}

.tagline-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #dc2626;
    font-weight: 500;
}

.trust-dot { color: var(--border-dark); }

/* ── MAIN ── */
.main { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

/* ── PAGE HEADER ── */
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.page-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.8rem;
    color: var(--nav-bg);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.page-subtitle { color: var(--muted); font-size: 0.875rem; margin-top: 0.3rem; }

/* ── CATEGORY TABS ── */
.cat-wrap {
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.25rem;
}

.cat-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.cat-tab:hover { border-color: var(--nav-bg); color: var(--nav-bg); }

.cat-tab.active {
    background: var(--nav-bg);
    color: var(--nav-text);
    border-color: var(--nav-bg);
}

.cat-count { font-size: 0.7rem; opacity: 0.65; }

/* ── LISTINGS GRID ── */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 1.25rem;
}

/* ── LISTING CARD ── */
.listing-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 255px;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.listing-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-dark);
    transform: translateY(-2px);
}

.listing-card.featured-gold   { border-top: 3px solid #c9a84c; }
.listing-card.featured-silver { border-top: 3px solid #94a3b8; }
.listing-card.featured-bronze { border-top: 3px solid #c97c4c; }

/* Card image */
.card-image {
    width: 100%;
    height: 130px;
    overflow: hidden;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}


.card-image-placeholder {
    font-size: 2rem;
    opacity: 0.25;
}

/* Card body */
.card-body { padding: 0.3rem 0.5rem 0.35rem; flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.1rem;
}

.card-top-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    flex-shrink: 0;
}

.card-item-name {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--nav-bg);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-badge {
    flex-shrink: 0;
    font-size: 0.55rem;
    font-weight: 600;
    padding: 0.12rem 0.35rem;
    border-radius: 999px;
    background: var(--accent-light);
    color: #92400e;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.badge-featured {
    background: var(--accent-light);
    color: #92400e;
    font-size: 0.62rem;
}

.card-price {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-hover);
    font-family: 'Libre Baskerville', serif;
    text-align: right;
}

.card-description {
    display: none;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.25rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.card-date { font-size: 0.45rem; color: var(--muted); }

.card-contact {
    background: var(--accent);
    color: #1a1000;
    padding: 0.18rem 0.4rem;
    border-radius: var(--radius);
    font-size: 0.6rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.card-contact:hover { background: var(--accent-hover); }

/* ── EMPTY STATE ── */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    color: var(--muted);
}

.empty-state h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.25rem;
    color: var(--nav-bg);
    margin-bottom: 0.5rem;
}

.empty-state a { color: var(--link); }

/* ── PAGINATION ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.page-btn {
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--nav-bg);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}

.page-btn:hover { background: var(--nav-bg); color: var(--nav-text); border-color: var(--nav-bg); }

.page-btn-disabled {
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--off-white);
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.5;
    cursor: default;
}

.page-numbers { display: flex; gap: 0.35rem; align-items: center; }

.page-num {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
}

.page-num:hover { border-color: var(--nav-bg); color: var(--nav-bg); }

.page-num.active {
    background: var(--nav-bg);
    color: var(--nav-text);
    border-color: var(--nav-bg);
    font-weight: 700;
}

.page-ellipsis { color: var(--muted); font-size: 0.875rem; padding: 0 0.25rem; }

/* ── FORM STYLES ── */
.form-wrap { max-width: 680px; }

.form-intro {
    background: var(--accent-light);
    border: 1px solid #e8d5a0;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: #78530a;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.form-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--nav-bg);
    margin-bottom: 0.4rem;
}

.form-label .optional { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.form-hint { font-size: 0.775rem; color: var(--muted); margin-top: 0.3rem; }

input[type="text"],
input[type="number"],
input[type="email"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}

input[type="file"] { padding: 0.5rem; cursor: pointer; }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

textarea { resize: vertical; min-height: 110px; }

.form-submit {
    width: 100%;
    background: var(--nav-bg);
    color: var(--nav-text);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

.form-submit:hover { background: var(--nav-bg-light); }

/* ── ALERTS ── */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-success { background: var(--success-bg); border: 1px solid var(--success-bd); color: var(--success-tx); }
.alert-error   { background: var(--error-bg);   border: 1px solid var(--error-bd);   color: var(--error-tx); }
.alert ul { margin: 0.5rem 0 0 1.25rem; }

/* ── FOOTER ── */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 3.5rem 1.5rem 2rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto 2.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: block;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.footer-logo span {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    color: var(--footer-heading);
}
.footer-desc { font-size: 0.85rem; line-height: 1.65; max-width: 300px; }

.footer-col-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--footer-heading);
    margin-bottom: 1rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    color: var(--footer-link);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s;
}

.footer-links a:hover { color: var(--footer-heading); }

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

.footer-disclaimer { margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-disclaimer p { font-size: 0.85rem; color: var(--footer-text); line-height: 1.65; }
.footer-disclaimer a { color: var(--footer-text); text-decoration: underline; text-underline-offset: 2px; transition: color 0.15s; }
.footer-disclaimer a:hover { color: var(--footer-heading); }

/* ── LIGHTBOX ── */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    cursor: zoom-out;
}

.lightbox-overlay.active { display: flex; }

.lightbox-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 90vw;
    cursor: default;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    cursor: default;
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    max-width: 560px;
}

.lightbox-caption .lb-desc {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 0.6rem;
}

.lightbox-caption .lb-contact {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.6;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.lightbox-close {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .listings-grid { grid-template-columns: 1fr; }
    .page-title { font-size: 1.45rem; }
    .nav-logo { font-size: 1.8rem; }
    .nav-links .nav-link { display: none; }
    .form-card { padding: 1.25rem; }
}
