:root {
    --red: #b0132a;
    --red-dark: #8f001c;
    --gold: #c9972b;
    --gold-soft: #f8ebd3;
    --black: #181513;
    --surface: #ffffff;
    --surface-soft: #fff9ef;
    --line: #eadfcf;
    --text: #231d18;
    --muted: #6f675f;
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top left, #fff7e8 0%, #fffdf8 45%, #fff9ef 100%);
    overflow-x: hidden;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #c7a356 #f6eee2;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: #f6eee2;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d1ae4e, #c28633);
    border-radius: 999px;
    border: 2px solid #f6eee2;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c79b38, #b87323);
}

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

img {
    display: block;
    width: 100%;
    max-width: 100%;
}

.container-wide {
    width: min(1320px, 94vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1200;
}

.site-nav {
    background: rgba(255, 252, 246, 0.94);
    border-bottom: 1px solid rgba(24, 21, 19, 0.08);
    backdrop-filter: blur(8px);
}

.nav-row {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.brand-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: clamp(1rem, 1.3vw, 1.24rem);
    flex-shrink: 0;
}

.brand-logo-mark {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(24, 21, 19, 0.12);
}

.brand-logo-text {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.brand-red {
    color: var(--red);
}

.brand-gold {
    color: var(--gold);
}

.desktop-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.8vw, 30px);
}

.nav-link {
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.77rem;
    color: rgba(35, 29, 24, 0.72);
    position: relative;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--red), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--black);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.icon-action {
    border: 1px solid rgba(24, 21, 19, 0.12);
    background: #fff;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease;
    position: relative;
}

.icon-action:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

.text-action {
    border: 0;
    background: transparent;
    color: var(--black);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.77rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
}

.logout-form {
    margin: 0;
}

.cart-count {
    position: absolute;
    top: -7px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 0.67rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    padding: 0 5px;
}

.cart-count.is-empty {
    display: none;
}

.mobile-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 1.12rem;
    color: var(--black);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background: #fff;
    border-top: 1px solid rgba(24, 21, 19, 0.08);
    box-shadow: 0 14px 20px rgba(0, 0, 0, 0.08);
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu-inner {
    padding: 14px 0 22px;
    display: grid;
    gap: 12px;
}

.mobile-nav-link,
.mobile-auth-link,
.mobile-auth button {
    display: block;
    border: 0;
    padding: 0 0 10px;
    background: transparent;
    border-bottom: 1px solid rgba(24, 21, 19, 0.08);
    color: var(--muted);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: left;
    cursor: pointer;
}

.mobile-nav-link.active,
.mobile-nav-link:hover,
.mobile-auth-link:hover,
.mobile-auth button:hover {
    color: var(--red);
}

.mobile-auth form {
    margin: 0;
}

.main-content {
    min-height: 62vh;
}

.flash-wrap {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}

.flash-message {
    border: 1px solid var(--line);
    background: #fffdf6;
    border-left: 4px solid var(--gold);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text);
}

.flash-message.success {
    border-left-color: #2f8a46;
}

.flash-message.error {
    border-left-color: var(--red);
}

.page-hero,
.feature-section,
.auth-section {
    padding: clamp(60px, 7vh, 86px) 0;
}

.page-hero h1 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 3.8vw, 3rem);
}

.page-hero p {
    margin-top: 12px;
    color: var(--muted);
    max-width: 820px;
}

.eyebrow {
    margin: 0;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--red);
}

.btn {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 11px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(90deg, var(--red), #d13a48);
    color: #fff;
}

.btn-outline {
    border-color: var(--gold);
    background: var(--gold-soft);
    color: var(--black);
}

.merch-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.events-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.merch-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.merch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.08);
}

.event-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.08);
}

.event-image-wrap {
    aspect-ratio: 4 / 5;
    background: #fff2df;
}

.event-image-wrap img {
    height: 100%;
    object-fit: cover;
}

.event-image-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--red);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.event-card-body {
    padding: 16px;
}

.event-card-body h3 {
    margin: 0;
    font-size: 1.08rem;
}

.event-card-body p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.event-card-body i {
    color: var(--red);
    margin-right: 6px;
}

.event-card-body .btn {
    margin-top: 12px;
    width: 100%;
}

.merch-card-body {
    padding: 16px;
}

.merch-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.merch-card p {
    color: var(--muted);
    margin: 8px 0 0;
}

.merch-meta {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.price-block {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-current {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.price-old {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: line-through;
}

.size-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.size-tags span {
    border: 1px solid rgba(24, 21, 19, 0.15);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.73rem;
}

.category-strip {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.category-strip span {
    border: 1px solid rgba(24, 21, 19, 0.16);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.77rem;
    letter-spacing: 0.04em;
}

.auth-wrap {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.auth-wrap h1 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.auth-form {
    margin-top: 16px;
}

.auth-form p {
    margin: 0 0 12px;
}

.auth-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
    width: 100%;
    border: 1px solid rgba(24, 21, 19, 0.2);
    border-radius: 10px;
    padding: 10px 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.94rem;
}

.auth-form ul {
    margin: 6px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 0.82rem;
}

.auth-note {
    margin: 14px 0 0;
    color: var(--muted);
}

.auth-note a {
    color: var(--red);
}

.worked-with-strip {
    padding: 20px 0 16px;
    border-top: 1px solid rgba(24, 21, 19, 0.08);
}

.worked-with-head {
    margin-bottom: 10px;
}

.worked-with-track-wrap {
    overflow: hidden;
    width: 100%;
}

.worked-with-track {
    display: flex;
    align-items: center;
    gap: 24px;
    width: max-content;
    animation: brands-scroll-right 26s linear infinite;
}

.worked-logo {
    width: 132px;
    height: 72px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    display: grid;
    place-items: center;
    padding: 8px;
}

.worked-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-footer {
    margin-top: 52px;
    background: linear-gradient(160deg, #fff8ea 0%, #fff1d8 100%);
    border-top: 1px solid rgba(24, 21, 19, 0.08);
    padding: 52px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.footer-brand {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.18rem;
}

.footer-text,
.footer-links a,
.footer-contact p {
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-title {
    margin: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--red);
}

.footer-links,
.footer-contact {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.footer-contact p {
    margin: 0;
}

.footer-contact i {
    color: var(--gold);
    margin-right: 8px;
}

.social-links {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(24, 21, 19, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    border-color: var(--red);
    color: var(--red);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 14px;
    border-top: 1px solid rgba(24, 21, 19, 0.08);
    color: var(--muted);
    font-size: 0.86rem;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 12, 8, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease;
    z-index: 1300;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100vw);
    height: 100vh;
    background: #fff;
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 30px rgba(0, 0, 0, 0.14);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1400;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.cart-drawer-header h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.cart-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(24, 21, 19, 0.12);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.cart-drawer-items {
    overflow-y: auto;
    padding: 14px 16px;
    display: grid;
    gap: 10px;
}

.cart-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 10px;
}

.cart-item-image {
    width: 72px;
    height: 72px;
    border-radius: 9px;
    object-fit: cover;
    background: var(--surface-soft);
}

.cart-item-title {
    margin: 0;
    font-size: 0.95rem;
}

.cart-item-meta {
    margin-top: 4px;
    font-size: 0.84rem;
    color: var(--muted);
}

.cart-item-price {
    margin-top: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.86rem;
    color: var(--red-dark);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-qty-controls button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(24, 21, 19, 0.14);
    background: #fff;
    cursor: pointer;
}

.cart-item-remove {
    border: 0;
    background: transparent;
    color: var(--red);
    font-size: 0.78rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.cart-empty {
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: var(--muted);
}

.cart-drawer-footer {
    border-top: 1px solid var(--line);
    padding: 14px 16px 18px;
    background: #fffaf2;
}

.cart-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cart-total-row strong {
    font-family: 'Space Grotesk', sans-serif;
}

.cart-checkout-btn {
    width: 100%;
}

.checkout-modal,
.size-select-modal {
    position: fixed;
    inset: 0;
    z-index: 1800;
    background: rgba(12, 12, 12, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.guest-signup-modal {
    position: fixed;
    inset: 0;
    z-index: 1750;
    background: rgba(12, 12, 12, 0.44);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.guest-signup-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.guest-signup-card {
    width: min(520px, 100%);
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--line);
    padding: 1rem;
    position: relative;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.guest-signup-card h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.guest-signup-card p {
    margin: 0.5rem 0 0;
    color: #6f675f;
}

.guest-signup-actions {
    margin-top: 0.9rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.checkout-modal.open,
.size-select-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.checkout-modal-card,
.size-select-card {
    width: min(760px, 100%);
    background: #fff;
    border-radius: 14px;
    padding: 1rem;
    position: relative;
    max-height: 90vh;
    overflow: auto;
    transform: translateY(12px);
    transition: transform 0.22s ease;
}

.size-select-card {
    width: min(420px, 100%);
}

.guest-signup-card {
    transform: translateY(12px);
    transition: transform 0.22s ease;
}

.checkout-modal.open .checkout-modal-card,
.size-select-modal.open .size-select-card,
.guest-signup-modal.open .guest-signup-card {
    transform: translateY(0);
}

.checkout-close {
    position: absolute;
    right: 0.55rem;
    top: 0.55rem;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(24, 21, 19, 0.14);
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.checkout-form {
    display: grid;
    gap: 0.7rem;
}

.checkout-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.checkout-form input {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(24, 21, 19, 0.2);
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
    font-family: 'Outfit', sans-serif;
}

.checkout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.checkout-summary {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.7rem;
    background: #fff8ef;
}

.checkout-summary h4 {
    margin: 0 0 0.55rem;
}

.checkout-summary-items {
    display: grid;
    gap: 0.3rem;
    color: #56504b;
    font-size: 0.9rem;
}

.checkout-summary-total {
    margin-top: 0.55rem;
    display: flex;
    justify-content: space-between;
}

.checkout-delivery-note {
    margin: 0.5rem 0 0;
    color: #6f675f;
    font-size: 0.84rem;
}

.size-select-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.6rem 0 0.8rem;
}

.size-option-btn {
    border: 1px solid rgba(24, 21, 19, 0.18);
    border-radius: 999px;
    background: #fff;
    padding: 0.36rem 0.75rem;
    cursor: pointer;
}

.size-option-btn.active {
    background: linear-gradient(90deg, var(--red), #d13a48);
    border-color: transparent;
    color: #fff;
}

.cart-toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    z-index: 2000;
}

.cart-toast.error {
    border-left-color: var(--red);
}

.not-found-page {
    min-height: 70vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 40px 16px;
}

.not-found-page h1 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
}

.not-found-page p {
    color: var(--muted);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@keyframes brands-scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

@media (max-width: 1080px) {
    .desktop-nav {
        display: none;
    }

    .nav-row {
        min-height: 68px;
    }

    .text-action {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 37px;
        height: 37px;
        border-radius: 50%;
        border: 1px solid rgba(24, 21, 19, 0.12);
        background: #fff;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .merch-grid,
    .events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .nav-row {
        min-height: 66px;
        gap: 8px;
    }

    .brand-logo {
        max-width: calc(100vw - 210px);
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .brand-logo-text {
        display: none;
    }

    .header-actions {
        gap: 6px;
    }

    .icon-action {
        width: 34px;
        height: 34px;
    }

    .cart-count {
        top: -6px;
        right: -5px;
        min-width: 18px;
        height: 18px;
        font-size: 0.62rem;
    }

    .footer-grid,
    .merch-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 470px) {
    .container-wide {
        width: min(1320px, 95.4vw);
    }

    .brand-logo {
        max-width: calc(100vw - 172px);
        gap: 0.28rem;
    }

    .header-actions {
        gap: 5px;
    }

    .icon-action,
    .mobile-toggle {
        width: 32px;
        height: 32px;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

