:root {
    --accent: #e8794a;
    --accent-hover: #d76838;
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.92);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    min-height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: #1a1410;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(135deg, rgba(120, 70, 50, 0.55) 0%, rgba(90, 70, 55, 0.45) 50%, rgba(140, 90, 60, 0.55) 100%),
        url('/images/soldier-oldtruck.png');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    filter: saturate(0.85);
    z-index: 0;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.0) 70%, rgba(0,0,0,0.25) 100%);
}

/* HEADER */
.site-header {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 22px 36px;
    gap: 24px;
}

.nav-left {
    display: flex;
    gap: 28px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.nav-left a {
    transition: opacity 0.2s ease;
}

.nav-left a:hover { opacity: 0.7; }

.brand {
    display: block;
    line-height: 0;
}

.brand img {
    height: 104px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 22px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    color: var(--text);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.icon-btn:hover { opacity: 0.7; }

.cart {
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
}

.cart-count { line-height: 1; }

/* HERO CONTENT */
.hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 24px 100px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

h1 {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 500;
    font-size: clamp(2rem, 5.5vw, 4.25rem);
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
    margin-bottom: 28px;
    max-width: 16ch;
}

.lede {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 400;
    line-height: 1.55;
    margin-bottom: 22px;
    max-width: 56ch;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.body {
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    font-weight: 300;
    line-height: 1.7;
    max-width: 60ch;
    color: var(--muted);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* SHOP BUTTON */
.shop-btn {
    position: absolute;
    right: 36px;
    bottom: 36px;
    z-index: 2;
    display: inline-block;
    padding: 14px 36px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.18em;
    border-radius: 2px;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.shop-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .site-header {
        grid-template-columns: auto 1fr auto;
        padding: 16px 18px;
        gap: 14px;
    }

    .nav-left {
        gap: 14px;
        font-size: 12px;
    }

    .brand img { height: 78px; }

    .nav-right { gap: 14px; }

    .hero-content {
        padding: 30px 20px 120px;
    }

    h1 { margin-bottom: 20px; }

    .shop-btn {
        right: 50%;
        bottom: 28px;
        transform: translateX(50%);
        padding: 12px 32px;
    }

    .shop-btn:hover { transform: translateX(50%) translateY(-1px); }
}

@media (max-width: 480px) {
    .nav-left a:nth-child(2),
    .nav-left a:nth-child(3) { display: none; }

    .nav-left a:first-child { font-size: 13px; }
}

/* ==========================================================================
   INNER PAGES (everything that isn't the home hero)
   ========================================================================== */

:root {
    --bg: #f6f1ea;
    --ink: #1a1410;
    --ink-soft: #4b3f35;
    --line: rgba(26, 20, 16, 0.12);
    --paper: #fffaf3;
}

body.inner {
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    width: 100%;
}

/* INNER HEADER (dark text on light bg) */
.site-header--inner {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header--inner .nav-left a,
.site-header--inner .icon-btn {
    color: var(--ink);
}

.site-header--inner .brand img {
    filter: none;
}

.nav-left a.is-active {
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

/* GENERIC PAGE CONTAINERS */
.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 36px 96px;
}

.page-narrow {
    max-width: 720px;
}

.page h1 {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 500;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--ink);
    text-shadow: none;
    max-width: none;
}

.page h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--ink);
}

.page h3 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--ink);
}

.page p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ink-soft);
    margin-bottom: 1.1em;
    max-width: 65ch;
}

.page ul, .page ol {
    margin: 0 0 1.2em 1.4em;
    color: var(--ink-soft);
    line-height: 1.75;
}

.page a {
    color: var(--accent);
    border-bottom: 1px solid currentColor;
}

.page a:hover { color: var(--accent-hover); }

.page-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.page-lede {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: 32px;
    max-width: 60ch;
}

/* CATALOG */
.catalog-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.catalog-header h1 { margin-bottom: 4px; }

.catalog-header p {
    color: var(--ink-soft);
    margin: 0;
    max-width: 60ch;
}

.catalog-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 18px;
    cursor: pointer;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-btn:hover { border-color: var(--ink); }

.filter-btn.is-active {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 36px 24px;
}

.product-card {
    color: var(--ink);
    border-bottom: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #ece4d8;
    border-radius: 2px;
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card__media img {
    transform: scale(1.03);
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    background: var(--paper);
    color: var(--ink);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 2px;
    font-weight: 600;
}

.badge-sale { background: var(--accent); color: #fff; }

.product-card__name {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    color: var(--ink);
}

.product-card__price {
    font-size: 0.95rem;
    margin: 0;
    color: var(--ink-soft);
}

.price-now { color: var(--ink); font-weight: 500; }

.price-was {
    color: var(--ink-soft);
    text-decoration: line-through;
    margin-left: 6px;
    font-size: 0.85em;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--ink-soft);
}

/* PDP */
.pdp-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: start;
}

.pdp-media {
    aspect-ratio: 4 / 5;
    background: #ece4d8;
    overflow: hidden;
    border-radius: 2px;
}

.pdp-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pdp-eyebrow {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin: 0 0 12px;
}

.pdp-info h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    line-height: 1.1;
    text-transform: none;
    letter-spacing: 0;
    margin: 0 0 12px;
    color: var(--ink);
    text-shadow: none;
    max-width: none;
}

.pdp-price {
    font-size: 1.25rem;
    margin: 0 0 24px;
}

.pdp-description {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--ink-soft);
    margin: 0 0 28px;
    max-width: none;
}

.pdp-sizes {
    border: none;
    padding: 0;
    margin: 0 0 28px;
}

.pdp-sizes legend {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 10px;
}

.size-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-opt input { position: absolute; opacity: 0; }

.size-opt span {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 2px;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 0.06em;
    min-width: 48px;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.size-opt input:checked + span {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
}

.size-opt:hover span { border-color: var(--ink); }

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 2px;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease, transform 0.2s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
}

.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.pdp-details {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    margin-top: 36px;
}

.pdp-details ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pdp-details li {
    padding: 6px 0;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.pdp-mission {
    margin-top: 28px;
    padding: 18px 20px;
    background: var(--paper);
    border-left: 3px solid var(--accent);
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.pdp-mission a {
    color: var(--accent);
    border-bottom: 1px solid currentColor;
}

.pdp-missing {
    text-align: center;
    padding: 80px 20px;
}

/* VETERANS PAGE */
.veterans-hero {
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.55) 100%),
                url('/images/hatsandflag.png') center/cover no-repeat;
    color: var(--paper);
    padding: 120px 36px;
    text-align: center;
}

.veterans-hero h1 {
    color: var(--paper);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0 auto 24px;
    max-width: 22ch;
}

.veterans-hero p {
    color: var(--paper);
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 60ch;
    margin: 0 auto;
    opacity: 0.92;
}

.donation-counter {
    background: var(--ink);
    color: var(--paper);
    text-align: center;
    padding: 64px 24px;
}

.donation-counter .amount {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    color: var(--accent);
    line-height: 1;
    margin: 0;
}

.donation-counter .label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    margin-top: 12px;
    opacity: 0.75;
}

.charity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 32px;
}

.charity-card {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 28px 24px;
    border-radius: 2px;
}

.charity-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1rem;
    text-transform: none;
    letter-spacing: 0;
}

.charity-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--ink-soft);
}

/* FOOTER */
.site-footer {
    background: #1a1410;
    color: rgba(255,255,255,0.85);
    padding: 64px 36px 32px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr) 1.5fr;
    gap: 40px;
}

.footer-col h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 14px;
    color: #fff;
    font-weight: 600;
}

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

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    transition: color 0.15s ease;
}

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

.footer-brand .footer-logo {
    height: 88px;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.footer-tag {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    margin-bottom: 14px;
    color: #fff;
}

.footer-mission {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    max-width: 36ch;
}

.footer-mission a { color: var(--accent); }

.footer-newsletter p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 2px;
    color: #fff;
    font: inherit;
    font-size: 13px;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }

.newsletter-form button {
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 2px;
    font: inherit;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    font-weight: 600;
}

.newsletter-form button:hover { background: var(--accent-hover); }

.footer-base {
    max-width: 1200px;
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.04em;
}

/* RESPONSIVE INNER */
@media (max-width: 900px) {
    .pdp-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand, .footer-newsletter { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .page { padding: 40px 20px 64px; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .site-footer { padding: 48px 20px 24px; }
    .footer-base { flex-direction: column; gap: 6px; text-align: center; }
}

