/* Medieval Era (500-1400) — Gothic, illuminated manuscripts, dark wood */
body.era-medieval {
    --bg-primary: #eae3d4;
    --bg-secondary: #1a0f0a;
    --bg-card: #f4ede0;
    --text-primary: #1a0f0a;
    --text-secondary: #4a3828;
    --text-muted: #7a6850;
    --accent-color: #8B4513;
    --accent-hover: #6d3610;
    --border-color: #c9b899;
    --heading-font: 'Cinzel', serif;
    --shadow: 0 2px 8px rgba(26,15,10,0.1);
    --shadow-lg: 0 8px 24px rgba(26,15,10,0.15);
    --gothic-arch-bg: url('/assets/images/gothic-arch.svg') repeat-x left center / auto 24px;
}

body.era-medieval {
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(139,69,19,0.04) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 50%, rgba(139,69,19,0.04) 0%, transparent 70%);
}

/* Header with Gothic arch band */
body.era-medieval .site-header {
    background: linear-gradient(180deg, #1a0f0a 0%, #2a1810 100%);
    border-bottom: none;
}

body.era-medieval .main-content::before {
    content: '';
    display: block;
    width: 100%;
    height: 28px;
    padding: 2px 0;
    background: var(--gothic-arch-bg);
    background-color: var(--bg-primary);
}

body.era-medieval .era-header,
body.era-medieval .region-header {
    background: linear-gradient(135deg, #eae3d4 0%, #d4c4a8 100%);
    border-bottom: 3px double #8B4513;
}

/* Gothic arch under section titles */
body.era-medieval .section__title {
    text-shadow: 1px 1px 0 rgba(139,69,19,0.1);
    padding-bottom: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
}

body.era-medieval .section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 26px;
    background: var(--gothic-arch-bg);
}

/* Gothic arch on product form */
body.era-medieval .product-form {
    border: 2px solid #c9b899;
    border-radius: 0;
    background: linear-gradient(180deg, #f4ede0 0%, #eae3d4 100%);
    box-shadow: inset 0 0 20px rgba(139,69,19,0.05);
    padding-top: 2.2rem;
    position: relative;
    overflow: hidden;
}

body.era-medieval .product-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 26px;
    background: var(--gothic-arch-bg);
}

/* Gothic arch on philosopher sidebar */
body.era-medieval .philosopher-sidebar {
    border: 2px solid #c9b899;
    border-radius: 0;
    background: linear-gradient(180deg, #f4ede0 0%, #eae3d4 100%);
    box-shadow: inset 0 0 20px rgba(139,69,19,0.05);
    position: relative;
    overflow: hidden;
    padding-top: 1rem;
}

body.era-medieval .philosopher-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 26px;
    background: var(--gothic-arch-bg);
}

body.era-medieval .cart-summary {
    border: 2px solid #c9b899;
    border-radius: 0;
    background: linear-gradient(180deg, #f4ede0 0%, #eae3d4 100%);
    box-shadow: inset 0 0 20px rgba(139,69,19,0.05);
    position: relative;
    overflow: hidden;
    padding-top: 2.2rem;
}

body.era-medieval .cart-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 26px;
    background: var(--gothic-arch-bg);
}

/* Gothic arch on meta divider */
body.era-medieval .product-page__meta {
    border-top: none;
    padding-top: 2rem;
    position: relative;
}

body.era-medieval .product-page__meta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 26px;
    background: var(--gothic-arch-bg);
}

/* Illuminated drop cap on quotes */
body.era-medieval .quote-card {
    border-left: 5px solid #8B4513;
    background: linear-gradient(135deg, #f4ede0 0%, #eae3d4 100%);
    box-shadow: 2px 2px 0 rgba(139,69,19,0.1);
}

body.era-medieval .quote-card__text::first-letter {
    font-size: 1.6em;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #8B4513;
    float: left;
    line-height: 1;
    margin-right: 4px;
}

body.era-medieval .shirt-card {
    border: 2px solid #c9b899;
    border-radius: 2px;
    background: #f4ede0;
}

body.era-medieval .btn--primary {
    background: linear-gradient(180deg, #8B4513 0%, #6d3610 100%);
    border: 2px solid #5a2d0d;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

body.era-medieval .btn--primary:hover {
    background: linear-gradient(180deg, #9d5520 0%, #8B4513 100%);
}

body.era-medieval .product-page__mockup {
    background: linear-gradient(160deg, #eae3d4 0%, #d4c4a8 40%, #c9b899 100%);
    border: 2px solid #c9b899;
}

body.era-medieval .history-bar__toggle {
    background: #8B4513;
}

body.era-medieval .history-bar__toggle:hover {
    background: #6d3610;
}

/* Gothic arch band above footer */
body.era-medieval .site-footer {
    background: #1a0f0a;
    border-top: none;
    position: relative;
    padding-top: calc(1rem + 18px);
}

body.era-medieval .site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    padding: 2px 0;
    background: var(--gothic-arch-bg);
    background-color: var(--bg-primary);
}
