/* ══════════════════════════════════════════════════════════
   Worthington Coin — Site Stylesheet
   Colors derived from logo: black serif + gold "Coin"
   ══════════════════════════════════════════════════════════ */

/* ── CSS Variables ────────────────────────────────────── */
:root {
    --bg:       #f5f3ee;
    --card:     #ffffff;
    --text:     #1a1a1a;
    --muted:    #8a8a78;
    --line:     #ddd8ce;
    --brand:    #1a1a1a;
    --brand2:   #c9a84c;
    --copper:   #b87333;
    --shadow:   0 8px 24px rgba(26, 26, 26, .07);
    --radius:   8px;
    --radius2:  12px;
    --max:      1140px;
    --surface:  #eae7df;
    --header-bg:#1a1a1a;
    --font:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-head:'Playfair Display', Georgia, 'Times New Roman', serif;
}


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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand2); text-decoration: none; transition: color .15s; }
a:hover { color: var(--copper); }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
}

/* ── Layout ───────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 64px 0;
}

.section-alt {
    background: var(--surface);
}

.section-dark {
    background: var(--header-bg);
    color: #fff;
}
.section-dark h2,
.section-dark p { color: rgba(255,255,255,.85); }
.section-dark .section-header p { color: rgba(255,255,255,.5); }
.section-dark .wc-listing-card {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.1);
}
.section-dark .wc-listing-card:hover {
    border-color: var(--brand2);
    background: rgba(255,255,255,.1);
}
.section-dark .wc-listing-title { color: #fff; }
.section-dark .wc-listing-img { background: rgba(255,255,255,.05); }
.section-dark .epn-disclosure-inline { color: rgba(255,255,255,.3); }
.section-dark .wc-listing-empty { color: rgba(255,255,255,.5); }

/* ── Header ───────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    border-bottom: 1px solid rgba(201, 168, 76, .15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    position: relative;
}

.logo {
    display: flex;
    align-items: baseline;
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    position: absolute;
    left: 20px;
}
.logo-text { color: #fff; }
.logo-text-gold { color: var(--brand2); }
.logo-hidden { visibility: hidden; pointer-events: none; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: rgba(255,255,255,.75);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: color .15s, background .15s;
    text-decoration: none;
}
.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.08);
}
.nav-ebay {
    color: var(--brand2);
    font-weight: 600;
}
.nav-ebay:hover { color: #d4b86a; background: rgba(201, 168, 76, .1); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    right: 20px;
}


/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.hamburger span {
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,.8);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero Section ─────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 56px 20px 48px;
    background: #fff;
    border-bottom: none;
}
.hero-logo {
    max-width: 480px;
    width: 100%;
    height: auto;
    margin: 0 auto 32px;
    display: block;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-primary {
    background: var(--brand2);
    color: #1a1a1a;
}
.btn-primary:hover { background: #d4b86a; color: #1a1a1a; }

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

.btn-dark {
    background: var(--brand);
    color: #fff;
}

/* ── Section Headings ─────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 32px;
    margin-bottom: 8px;
}
.section-header p {
    font-size: 16px;
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ── eBay Listing Grid ────────────────────────────────── */
.wc-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.wc-listing-card {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    background: var(--card);
    color: var(--text);
    text-decoration: none;
    transition: border-color .15s, transform .12s, box-shadow .15s;
}
.wc-listing-card:hover {
    border-color: var(--brand2);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: var(--text);
}

.wc-listing-img {
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.wc-listing-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.wc-listing-img-empty {
    font-size: 11px;
    color: var(--muted);
    font-style: italic;
}

.wc-listing-title {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    min-height: 2.8em;
}

.wc-listing-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--brand2);
    line-height: 1.2;
    margin-bottom: 2px;
}

.wc-listing-cond {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.wc-listing-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    color: var(--muted);
}
.wc-listing-empty p { margin-bottom: 16px; }

.epn-disclosure-inline {
    font-size: 11px;
    color: var(--muted);
    margin-top: 16px;
    line-height: 1.5;
}

/* ── Shop Filters ─────────────────────────────────────── */
.shop-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding: 16px 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius2);
}

.filter-tabs {
    display: flex;
    gap: 4px;
}
.filter-tab {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
}
.filter-tab:hover { border-color: var(--brand2); color: var(--text); }
.filter-tab.active {
    background: var(--brand2);
    border-color: var(--brand2);
    color: #1a1a1a;
}

.filter-search {
    flex: 1;
    min-width: 200px;
}
.filter-search input {
    width: 100%;
    font-family: var(--font);
    font-size: 14px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color .15s;
}
.filter-search input:focus { border-color: var(--brand2); }
.filter-search input::placeholder { color: var(--muted); }

.filter-sort select {
    font-family: var(--font);
    font-size: 13px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    outline: none;
}

#shopResults { transition: opacity .15s; }

/* ── Subcategory Tabs ─────────────────────────────────── */
.subcategory-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}
.subtab {
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.subtab:hover { border-color: var(--brand2); color: var(--text); }
.subtab.active {
    background: var(--brand2);
    border-color: var(--brand2);
    color: #1a1a1a;
}
.subtab-count {
    font-size: 10px;
    font-weight: 700;
    background: var(--line);
    color: var(--muted);
    padding: 1px 6px;
    border-radius: 100px;
    min-width: 20px;
    text-align: center;
}
.subtab.active .subtab-count {
    background: rgba(0,0,0,.15);
    color: #1a1a1a;
}

/* ── Pagination ───────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
}
.pagination a,
.pagination span {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    transition: all .15s;
}
.pagination a:hover { border-color: var(--brand2); background: var(--card); }
.pagination .current {
    background: var(--brand2);
    border-color: var(--brand2);
    color: #1a1a1a;
}
.pagination .disabled {
    opacity: .4;
    pointer-events: none;
}

/* ── CTA Strip ────────────────────────────────────────── */
.cta-strip {
    text-align: center;
    padding: 56px 20px;
    background: var(--header-bg);
    color: #fff;
}
.cta-strip h2 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 28px;
}
.cta-strip p {
    color: rgba(255,255,255,.6);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Contact Form ─────────────────────────────────────── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.contact-layout > div:last-child {
    padding-top: 52px;
}

.contact-info h2 { margin-bottom: 16px; font-size: 28px; }
.text-us-box {
    margin-top: 24px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    text-align: center;
}
.text-us-box strong {
    font-size: 18px;
    display: block;
    margin-bottom: 6px;
    color: var(--text);
}
.text-us-box p { margin-bottom: 10px; font-size: 14px; }
.text-phone {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 800;
    color: var(--brand2);
    text-decoration: none;
}
.text-phone:hover { color: var(--copper); }
.contact-hero-img {
    width: 100%;
    border-radius: var(--radius2);
    margin-bottom: 20px;
}
.contact-address {
    font-style: normal;
    display: block;
    margin-top: 6px;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.6;
}
.contact-info p { color: var(--muted); margin-bottom: 16px; line-height: 1.7; }
.contact-info ul { list-style: none; margin-top: 24px; }
.contact-info li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}
.contact-info li strong { color: var(--text); }

.wc-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font);
    font-size: 14px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--brand2);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-note {
    font-size: 12px;
    color: var(--muted);
}

.flash {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}
.flash-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.flash-error   { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* hidden honeypot */
.wc-hp { position: absolute; left: -9999px; }

/* ── About Page ───────────────────────────────────────── */
.about-content {
    max-width: 780px;
    margin: 0 auto;
}
.about-content h1 { font-size: 36px; margin-bottom: 24px; }
.about-content h2 { font-size: 24px; margin: 32px 0 12px; }
.about-content p { color: var(--muted); margin-bottom: 16px; line-height: 1.8; }
.about-content p strong { color: var(--text); }

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
    background: var(--header-bg);
    color: rgba(255,255,255,.6);
    padding: 48px 0 32px;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
.footer-logo {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    display: block;
    margin-bottom: 8px;
}
.footer-tagline { font-size: 14px; }
.footer-links h4 {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}
.footer-links a {
    display: block;
    color: rgba(255,255,255,.6);
    font-size: 14px;
    padding: 4px 0;
    transition: color .15s;
}
.footer-links a:hover { color: var(--brand2); }
.footer-address {
    font-style: normal;
    font-size: 14px;
    color: rgba(255,255,255,.6);
    line-height: 1.6;
    padding: 12px 0 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 20px;
    font-size: 13px;
}
.epn-disclosure {
    font-size: 11px;
    color: rgba(255,255,255,.35);
    margin-top: 8px;
    line-height: 1.5;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--header-bg);
        flex-direction: column;
        padding: 12px 20px 20px;
        border-top: 1px solid rgba(255,255,255,.08);
        box-shadow: 0 12px 24px rgba(0,0,0,.2);
    }
    .main-nav.open { display: flex; }
    .nav-link { padding: 12px 0; font-size: 16px; }

    .hero { padding: 48px 20px 40px; }
    .hero-logo { max-width: 360px; }

    .section { padding: 40px 0; }
    .section-header h2 { font-size: 24px; }

    .contact-layout { grid-template-columns: 1fr; gap: 32px; }
    .form-row { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
    .wc-listing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .wc-listing-card { padding: 8px; }
    .wc-listing-title { font-size: 11px; min-height: 2.6em; }
    .wc-listing-price { font-size: 14px; }

    .shop-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-tabs { overflow-x: auto; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
}
