/* === CSS Custom Properties (defaults) === */
/* Navy + brass palette — military officer-class gravitas */
:root {
    --bg-primary: #fdfaf4;
    --bg-secondary: #14213d;
    --bg-card: #ffffff;
    --text-primary: #14213d;
    --text-secondary: #4a5568;
    --text-muted: #8b95a3;
    --accent-color: #c99e4a;
    --accent-hover: #a87f30;
    --border-color: #e3d9c3;
    --heading-font: 'Cinzel', serif;
    --body-font: 'Lora', serif;
    --ui-font: 'Inter', sans-serif;
    --radius: 6px;
    --shadow: 0 2px 8px rgba(20,33,61,0.08);
    --shadow-lg: 0 8px 24px rgba(20,33,61,0.14);
    --container-width: 1200px;
}

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

body {
    font-family: var(--body-font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent-color); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }
.main-content { flex: 1; }

/* === Header === */
.site-header {
    background: var(--bg-secondary);
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon { font-size: 1.8rem; color: var(--accent-color); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    color: #ccc;
    font-family: var(--ui-font);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.main-nav a:hover { color: #fff; }

.cart-link {
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent-color);
    color: #fff;
    font-family: var(--ui-font);
    font-size: 0.7rem;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Hero === */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2318 50%, #1a1a1a 100%);
    color: #fff;
    text-align: center;
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(139,105,20,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #d4c4a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: #a0977e;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    position: relative;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--ui-font);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

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

.btn--secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.btn--secondary:hover {
    background: #fff;
    color: var(--bg-secondary);
}

.btn--large { padding: 1rem 2rem; font-size: 1rem; }
.btn--full { width: 100%; }

/* === Sections === */
.section { padding: 4rem 0; }
.section--alt { background: linear-gradient(180deg, #efe9dd 0%, #e8e2d5 100%); }
.section__title {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* === Grids === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.philosopher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.era-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* === Era Card === */
.era-card {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    color: var(--text-primary);
}

.era-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
}

.era-card__inner {
    background: var(--bg-card);
    padding: 1.5rem;
    border-top: 4px solid var(--accent-color);
    height: 100%;
}

.era-card h2, .era-card h3 {
    font-family: var(--heading-font);
    margin-bottom: 0.5rem;
}

.era-card__dates {
    font-family: var(--ui-font);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.era-card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* === Region Card === */
.region-card {
    display: block;
    color: var(--text-primary);
    transition: transform 0.2s, box-shadow 0.2s;
}

.region-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
}

.region-card__inner {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    height: 100%;
}

.region-card h2, .region-card h3 {
    font-family: var(--heading-font);
    margin-bottom: 0.5rem;
}

.region-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* === Philosopher Card === */
.philosopher-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.philosopher-card:hover { transform: translateY(-4px); }

.philosopher-card__link {
    display: block;
    color: var(--text-primary);
    text-align: center;
    padding: 1.5rem 1rem;
}

.philosopher-card__silhouette {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.philosopher-card__silhouette img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.philosopher-card h3 {
    font-family: var(--heading-font);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.philosopher-card__era,
.philosopher-card__region,
.philosopher-card__count {
    display: block;
    font-family: var(--ui-font);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === Shirt Card === */
.shirt-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.shirt-card__link {
    display: block;
    color: var(--text-primary);
}

.shirt-card__mockup {
    background: linear-gradient(145deg, #f0ece4 0%, #e2ddd3 50%, #d8d2c6 100%);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: center;
    position: relative;
    min-height: 240px;
    align-items: center;
}

.shirt-mini-mockup {
    width: 180px;
    transition: transform 0.3s ease;
}

.shirt-card:hover .shirt-mini-mockup {
    transform: scale(1.04);
}

.shirt-svg {
    width: 100%;
    height: auto;
}

.shirt-card__info {
    padding: 1.25rem;
}

.shirt-card__philosopher {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}

.shirt-card__quote {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shirt-card__price {
    font-family: var(--ui-font);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* === Quote Card === */
.quote-card {
    background: var(--bg-card);
    border-left: 4px solid var(--accent-color);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.quote-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
}

.quote-card__text {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.quote-card__footer {
    font-family: var(--ui-font);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.quote-card__source {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.quote-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.quote-card--linked {
    cursor: pointer;
}

.quote-card--linked:hover {
    border-left-color: var(--accent-hover);
}

.quote-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quote-card__shirt-link {
    font-family: var(--ui-font);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    white-space: nowrap;
}

.quote-card--linked:hover .quote-card__shirt-link {
    color: var(--accent-hover);
}

/* === Philosopher Page === */
.philosopher-page {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.philosopher-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 5rem;
    align-self: start;
}

.philosopher-sidebar__silhouette {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--accent-color);
}

.philosopher-sidebar__silhouette img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.philosopher-sidebar__name {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1rem;
}

.philosopher-sidebar__meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.meta-item {
    font-family: var(--ui-font);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.meta-item--link { color: var(--accent-color); }

.philosopher-sidebar__bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

/* === Footer === */
.site-footer {
    background: var(--bg-secondary);
    color: #ccc;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    font-family: var(--heading-font);
    color: #fff;
    margin-bottom: 0.75rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
    color: #aaa;
    font-family: var(--ui-font);
    font-size: 0.9rem;
}

.footer-col a:hover { color: #fff; }

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    text-align: center;
    font-family: var(--ui-font);
    font-size: 0.85rem;
}

/* === Empty States === */
.empty-cart {
    text-align: center;
    padding: 4rem 0;
}

.empty-cart p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* === Alerts === */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-family: var(--ui-font);
}

.alert--error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

/* === Breadcrumb === */
.breadcrumb {
    font-family: var(--ui-font);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-color); }

/* === Era/Region Headers === */
.era-header, .region-header {
    padding: 2rem 0;
}

.era-header__dates {
    font-family: var(--ui-font);
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero__subtitle { font-size: 1rem; }

    .philosopher-page {
        grid-template-columns: 1fr;
    }

    .philosopher-sidebar {
        position: static;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .main-nav { gap: 1rem; }

    .page-title { font-size: 1.8rem; }
}
