:root {
    color-scheme: dark;
    --black: #050809;
    --graphite: #0b1114;
    --graphite-hover: #111a1e;
    --bone: #f1ede5;
    --text: #f5f5f2;
    --muted: #9ba4a7;
    --hairline: #314047;
    --accent: #53d7e8;
    --danger: #ef5b55;
    --success: #72cf79;
    --display: "Bodoni 72", Didot, "Times New Roman", serif;
    --ui: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    --content-width: 1500px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--black);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--black);
    color: var(--text);
    font-family: var(--ui);
    font-size: 18px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    color: inherit;
    font: 500 16px/1.2 var(--ui);
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

[tabindex="-1"]:focus {
    outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.app-shell {
    min-height: 100vh;
    overflow: clip;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.icon {
    display: inline-block;
    flex: 0 0 auto;
    vertical-align: middle;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.icon-button:hover {
    border-color: var(--hairline);
    background: var(--graphite-hover);
}

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 26px;
    border: 1px solid var(--hairline);
    border-radius: 1px;
    background: transparent;
    color: var(--text);
    font: 600 15px/1 var(--ui);
    letter-spacing: .025em;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.button-primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #031012;
}

.button-primary:hover:not(:disabled) {
    background: #7ae6f3;
    border-color: #7ae6f3;
}

.button-secondary:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.button-danger {
    border-color: #7d3434;
    color: var(--danger);
    background: transparent;
}

.button-danger:hover:not(:disabled) {
    border-color: var(--danger);
    background: rgba(239, 91, 85, .08);
}

.button-disabled,
.button:disabled {
    opacity: .48;
    cursor: not-allowed;
}

.button-full {
    width: 100%;
}

.text-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font: 600 14px/1.2 var(--ui);
    cursor: pointer;
}

.danger-text {
    color: var(--danger);
}

.muted {
    color: var(--muted);
}

.boot-screen {
    min-height: 100vh;
    display: grid;
    place-content: center;
    gap: 18px;
    background: var(--black);
}

.boot-mark {
    font: 500 20px/1 var(--ui);
    letter-spacing: .28em;
}

.boot-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent) 0 35%, var(--hairline) 35%);
    animation: boot 1.4s ease-in-out infinite;
}

@keyframes boot {
    50% { opacity: .4; transform: scaleX(.72); }
}

#blazor-error-ui {
    position: fixed;
    z-index: 1000;
    right: 20px;
    bottom: 20px;
    display: none;
    max-width: 520px;
    padding: 18px 20px;
    border: 1px solid var(--danger);
    background: #140b0b;
    box-shadow: 0 20px 60px #000;
}

#blazor-error-ui .reload {
    margin-left: 16px;
    color: var(--accent);
}

#blazor-error-ui .dismiss {
    margin-left: 16px;
    border: 0;
    background: none;
}

/* Public shell */

.site-header {
    position: relative;
    z-index: 20;
    max-width: var(--content-width);
    height: 78px;
    margin: 0 auto;
    padding: 0 34px;
    display: grid;
    grid-template-columns: 238px 1fr 160px;
    align-items: center;
    border-bottom: 1px solid rgba(241, 237, 229, .22);
}

.brand-link {
    width: 205px;
    height: 68px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.brand-link img {
    width: 205px;
    height: 64px;
    object-fit: contain;
    transform: scale(1.42);
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: clamp(30px, 5vw, 72px);
}

.site-nav a,
.cart-link {
    color: var(--bone);
    font: 600 13px/1 var(--ui);
    letter-spacing: .18em;
    text-transform: uppercase;
}

.site-nav a {
    position: relative;
    padding: 29px 0 27px;
}

.site-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 20px;
    left: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 160ms ease;
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

.cart-link {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-count {
    min-width: 25px;
    height: 25px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--hairline);
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 0;
}

.mobile-menu-button {
    display: none;
}

.hero {
    max-width: var(--content-width);
    min-height: min(760px, calc(100vh - 78px));
    margin: 0 auto;
    padding: 60px 34px 70px;
    display: grid;
    grid-template-columns: minmax(390px, .83fr) minmax(560px, 1.4fr);
    align-items: center;
    border-bottom: 1px solid var(--hairline);
    overflow: hidden;
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding-left: clamp(0px, 4vw, 54px);
}

.hero h1 {
    max-width: 620px;
    margin-bottom: 28px;
    color: var(--bone);
    font: 400 clamp(58px, 6.4vw, 98px)/.96 var(--display);
    letter-spacing: -.045em;
}

.hero-copy > p {
    max-width: 450px;
    margin-bottom: 34px;
    color: #c1c8c9;
    font-size: 21px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-art {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
    min-width: 0;
}

.hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 55% 46%, transparent 0 46%, var(--black) 78%);
    pointer-events: none;
}

.hero-art img {
    width: 125%;
    max-width: none;
    margin-left: -7%;
    object-fit: contain;
    filter: contrast(1.06);
    mix-blend-mode: screen;
    animation: reveal-fish 900ms ease-out both;
}

@keyframes reveal-fish {
    from { opacity: 0; transform: translateX(28px); }
    to { opacity: 1; transform: translateX(0); }
}

.loading-band,
.error-band {
    max-width: var(--content-width);
    min-height: 260px;
    margin: 0 auto;
    padding: 90px 34px;
    display: grid;
    place-content: center;
    color: var(--muted);
    letter-spacing: .08em;
}

.error-band {
    gap: 20px;
}

.species-rail {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 18px 34px 28px;
    display: grid;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    gap: 8px;
    border-bottom: 1px solid var(--hairline);
}

.species-tile {
    position: relative;
    min-width: 0;
    aspect-ratio: 1 / 1.14;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border: 1px solid var(--hairline);
    background: #030506;
    transition: border-color 160ms ease, transform 160ms ease;
}

.species-tile:hover {
    z-index: 1;
    border-color: var(--species-accent);
    transform: translateY(-3px);
}

.species-tile img {
    position: absolute;
    inset: 8% -15% 17%;
    width: 130%;
    height: 72%;
    object-fit: contain;
}

.species-tile span {
    position: relative;
    z-index: 1;
    padding: 12px 10px;
    border-top: 1px solid var(--hairline);
    background: rgba(5, 8, 9, .88);
    font: 600 14px/1.1 var(--ui);
    text-align: center;
}

.catalog-section {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 76px 34px 100px;
}

.catalog-heading {
    margin-bottom: 36px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
}

.catalog-heading h2 {
    margin-bottom: 0;
    color: var(--bone);
    font: 400 clamp(48px, 5vw, 74px)/1 var(--display);
    letter-spacing: -.035em;
}

.catalog-heading p {
    max-width: 470px;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 18px;
}

.filter-rail {
    margin-bottom: 38px;
    padding: 17px 18px;
    display: grid;
    grid-template-columns: 1.45fr repeat(3, 1fr) auto;
    align-items: end;
    gap: 14px;
    border: 1px solid var(--hairline);
    background: rgba(11, 17, 20, .5);
}

.filter-rail label,
.product-detail label,
.product-editor label,
.admin-access label,
.delivery-form label {
    display: grid;
    gap: 8px;
}

.filter-rail label > span,
.product-detail label > span,
.product-editor label > span,
.admin-access label > span,
.delivery-form label > span {
    color: var(--muted);
    font: 600 12px/1 var(--ui);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.filter-rail input,
.filter-rail select,
.product-detail select,
.product-editor input,
.product-editor select,
.product-editor textarea,
.admin-access input,
.delivery-form input,
.delivery-form select {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #445057;
    border-radius: 1px;
    background: #080c0e;
    color: var(--text);
}

.filter-rail select,
.product-detail select,
.product-editor select,
.delivery-form select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.search-field > div {
    position: relative;
}

.search-field .icon {
    position: absolute;
    top: 14px;
    left: 13px;
    color: var(--muted);
}

.search-field input {
    padding-left: 42px;
}

.filter-summary {
    min-width: 108px;
    height: 46px;
    display: grid;
    align-content: center;
    justify-items: end;
    color: var(--muted);
    font-size: 13px;
}

.filter-summary button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font-size: 12px;
    cursor: pointer;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 54px;
}

.product-card-media {
    display: block;
    aspect-ratio: .82;
    overflow: hidden;
    border: 1px solid var(--hairline);
    background: #080b0d;
}

.product-card:hover .product-card-media {
    border-color: var(--species-accent, var(--accent));
}

.product-mockup {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--species-accent) 9%, transparent), transparent 54%), #070a0c;
}

.product-mockup .shirt-design {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(.96) contrast(1.05) saturate(.96);
    transition: transform 480ms cubic-bezier(.2, .7, .2, 1), filter 480ms ease;
}

.product-card:hover .shirt-design {
    transform: scale(1.025);
    filter: brightness(1.02) contrast(1.08) saturate(1.02);
}

.product-card-info {
    padding: 14px 3px 0;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.product-card h3 {
    margin-bottom: 3px;
    font: 500 22px/1.1 var(--ui);
}

.product-card h3 a:hover {
    color: var(--accent);
}

.product-card p {
    margin: 0;
    color: var(--muted);
    font: italic 14px/1.2 Georgia, serif;
}

.product-status,
.product-price {
    flex: 0 0 auto;
    padding-top: 4px;
    color: var(--muted);
    font: 600 13px/1 var(--ui);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.product-price {
    color: var(--bone);
}

.empty-state {
    min-height: 260px;
    display: grid;
    place-content: center;
    text-align: center;
}

.empty-state h3 {
    margin-bottom: 8px;
    font: 400 42px/1 var(--display);
}

.empty-state p {
    color: var(--muted);
}

.waters-section {
    max-width: var(--content-width);
    min-height: 520px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.waters-art {
    min-height: 520px;
    overflow: hidden;
    border-right: 1px solid var(--hairline);
}

.waters-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .72;
}

.waters-copy {
    padding: clamp(54px, 6vw, 100px);
    align-self: center;
}

.waters-copy h2 {
    margin-bottom: 32px;
    color: var(--bone);
    font: 400 clamp(48px, 4.5vw, 70px)/1 var(--display);
    letter-spacing: -.035em;
}

.waters-copy h2::after {
    content: "";
    display: block;
    width: 88px;
    height: 1px;
    margin-top: 28px;
    background: var(--accent);
}

.waters-copy p {
    max-width: 560px;
    color: #b5bec0;
}

.waters-copy a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--accent);
    font-weight: 600;
}

.site-footer {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 58px 34px 24px;
    display: grid;
    grid-template-columns: 1.6fr .7fr .8fr 1.2fr;
    gap: 50px;
}

.footer-brand img {
    width: 220px;
    height: 92px;
    margin-top: -25px;
    object-fit: contain;
    transform: scale(1.35);
}

.site-footer h2 {
    margin-bottom: 18px;
    color: var(--muted);
    font: 600 12px/1 var(--ui);
    letter-spacing: .18em;
    text-transform: uppercase;
}

.site-footer p,
.site-footer a {
    color: var(--muted);
    font-size: 15px;
}

.site-footer a {
    display: block;
    margin-bottom: 8px;
}

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

.footer-note {
    max-width: 330px;
}

.footer-legal {
    grid-column: 1 / -1;
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--hairline);
    color: #6f787b;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Product detail */

.product-page {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 54px 34px 100px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(420px, .8fr);
    gap: clamp(48px, 6vw, 100px);
}

.product-gallery {
    min-width: 0;
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 14px;
    align-items: start;
}

.product-mockup-large {
    min-height: 740px;
    border: 1px solid var(--hairline);
}

.product-mockup-large .shirt-design {
    object-fit: contain;
}

.art-detail {
    min-height: 360px;
    border: 1px solid var(--hairline);
    background: #020303;
    overflow: hidden;
}

.art-detail img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    padding: 18px;
    object-fit: contain;
    object-position: center;
}

.product-detail {
    padding-top: 22px;
}

.back-link {
    display: inline-block;
    margin-bottom: 42px;
    color: var(--muted);
    font: 600 13px/1 var(--ui);
    letter-spacing: .09em;
    text-transform: uppercase;
}

.back-link:hover {
    color: var(--accent);
}

.product-detail h1 {
    margin-bottom: 10px;
    color: var(--bone);
    font: 400 clamp(54px, 5vw, 78px)/.98 var(--display);
    letter-spacing: -.04em;
}

.scientific-name {
    margin-bottom: 28px;
    color: var(--species-accent);
    font: italic 18px/1.2 Georgia, serif;
}

.product-description {
    max-width: 570px;
    color: #bdc5c7;
    font-size: 21px;
}

.detail-rule {
    height: 1px;
    margin: 32px 0;
    background: var(--hairline);
}

.detail-price {
    margin-bottom: 26px;
    font: 500 28px/1 var(--ui);
}

.option-grid {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.add-to-cart {
    width: 100%;
    margin-top: 4px;
}

.availability-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.coming-soon-panel {
    margin-bottom: 34px;
    padding: 28px;
    border: 1px solid var(--hairline);
    border-left-color: var(--species-accent);
    background: var(--graphite);
}

.coming-soon-panel h2 {
    margin-bottom: 10px;
    font: 400 42px/1 var(--display);
}

.coming-soon-panel p {
    color: var(--muted);
}

.coming-soon-panel .button {
    width: 100%;
}

.product-facts {
    margin: 36px 0;
    border-top: 1px solid var(--hairline);
}

.product-facts > div {
    padding: 13px 0;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 20px;
    border-bottom: 1px solid var(--hairline);
}

.product-facts dt {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.product-facts dd {
    margin: 0;
    font-size: 15px;
}

.species-story h2 {
    margin-bottom: 12px;
    font: 400 36px/1 var(--display);
}

.species-story p {
    color: var(--muted);
}

.not-found-panel {
    max-width: var(--content-width);
    min-height: 650px;
    margin: 0 auto;
    padding: 90px 34px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
}

.not-found-panel img {
    width: min(700px, 90vw);
    margin-bottom: -30px;
}

.not-found-panel h1 {
    max-width: 700px;
    margin-bottom: 16px;
    font: 400 clamp(52px, 6vw, 82px)/1 var(--display);
}

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

/* Cart and checkout */

.cart-page,
.checkout-page {
    max-width: var(--content-width);
    min-height: 720px;
    margin: 0 auto;
    padding: 62px 34px 110px;
}

.page-intro {
    margin-bottom: 46px;
}

.page-intro h1,
.checkout-main > h1 {
    margin-bottom: 14px;
    color: var(--bone);
    font: 400 clamp(54px, 5vw, 76px)/1 var(--display);
    letter-spacing: -.04em;
}

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

.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(340px, .72fr);
    gap: 38px;
    align-items: start;
}

.cart-lines {
    border-top: 1px solid var(--hairline);
}

.cart-line {
    min-height: 190px;
    padding: 18px 0;
    display: grid;
    grid-template-columns: 170px minmax(220px, 1fr) 130px 110px;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--hairline);
}

.cart-line-art {
    height: 150px;
    display: block;
    overflow: hidden;
    border: 1px solid var(--hairline);
    background: #020303;
}

.cart-line-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-line-copy h2 {
    margin-bottom: 10px;
    font: 500 22px/1.1 var(--ui);
}

.cart-line-copy p {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 15px;
}

.cart-line-copy .text-button {
    margin-top: 15px;
}

.quantity-control {
    height: 44px;
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    border: 1px solid #536067;
}

.quantity-control button {
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.quantity-control button:hover:not(:disabled) {
    background: var(--graphite-hover);
    color: var(--accent);
}

.quantity-control button:disabled {
    color: #50585a;
    cursor: not-allowed;
}

.quantity-control span {
    display: grid;
    place-items: center;
    border-right: 1px solid #536067;
    border-left: 1px solid #536067;
}

.cart-line-total {
    justify-self: end;
    font-size: 18px;
}

.order-summary {
    padding: 32px;
    border: 1px solid #566168;
    background: rgba(8, 12, 14, .76);
}

.order-summary h2 {
    margin-bottom: 28px;
    font: 400 42px/1 var(--display);
}

.order-summary dl {
    margin: 0 0 28px;
}

.order-summary dl > div {
    padding: 19px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--hairline);
}

.order-summary dt,
.order-summary dd {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
}

.order-summary dd {
    color: var(--bone);
    text-align: right;
}

.order-summary .summary-total {
    font-weight: 700;
}

.order-summary .summary-total dt,
.order-summary .summary-total dd {
    font-weight: 700;
}

.secure-note {
    margin: 20px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.empty-cart {
    min-height: 530px;
    display: grid;
    justify-items: center;
    align-content: center;
    text-align: center;
}

.empty-cart img {
    width: min(620px, 86vw);
    margin-bottom: -30px;
    opacity: .75;
}

.empty-cart h2,
.empty-cart h1 {
    margin-bottom: 8px;
    font: 400 clamp(48px, 5vw, 72px)/1 var(--display);
}

.empty-cart p {
    color: var(--muted);
}

.checkout-page {
    padding-top: 28px;
}

.checkout-stepper {
    margin-bottom: 58px;
    padding: 20px 0 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--hairline);
}

.checkout-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0;
    border: 0;
    background: none;
    color: #717b7e;
    font: 500 15px/1 var(--ui);
    text-align: left;
}

.checkout-step::after {
    content: "";
    position: absolute;
    right: 18px;
    left: 47px;
    bottom: -30px;
    height: 1px;
    background: var(--hairline);
}

.checkout-step:last-child::after {
    display: none;
}

.checkout-step > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #667175;
    border-radius: 50%;
}

.checkout-step.is-current,
.checkout-step.is-complete {
    color: var(--accent);
}

.checkout-step.is-current > span,
.checkout-step.is-complete > span {
    border-color: var(--accent);
}

.checkout-step.is-complete::after {
    background: var(--accent);
}

.checkout-step:disabled {
    cursor: default;
}

.checkout-main {
    min-width: 0;
}

.checkout-cart-lines {
    margin: 22px 0 30px;
    border-top: 1px solid var(--hairline);
}

.checkout-cart-lines article {
    padding: 15px 0;
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    gap: 22px;
    border-bottom: 1px solid var(--hairline);
}

.checkout-cart-lines img {
    width: 100px;
    height: 76px;
    object-fit: cover;
    border: 1px solid var(--hairline);
}

.checkout-cart-lines h2 {
    margin-bottom: 5px;
    font: 600 19px/1.1 var(--ui);
}

.checkout-cart-lines p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.checkout-summary {
    position: sticky;
    top: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.delivery-form {
    margin-top: 28px;
}

.delivery-form .field-wide {
    grid-column: 1 / -1;
}

.validation-message {
    color: var(--danger);
    font-size: 12px;
}

.invalid {
    border-color: var(--danger) !important;
}

.step-actions {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.payment-panel {
    margin-top: 26px;
}

.payment-option {
    padding: 28px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 18px;
    border: 1px solid var(--accent);
    background: var(--graphite);
}

.payment-option h2 {
    margin-bottom: 8px;
    font: 600 20px/1.2 var(--ui);
}

.payment-option p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.radio-mark {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 5px solid var(--graphite);
    border-radius: 50%;
    outline: 1px solid var(--accent);
    background: var(--accent);
}

.review-block {
    padding: 24px 0;
    border-bottom: 1px solid var(--hairline);
}

.review-block h2 {
    margin-bottom: 10px;
    color: var(--muted);
    font: 600 12px/1 var(--ui);
    letter-spacing: .14em;
    text-transform: uppercase;
}

.review-block p {
    margin-bottom: 7px;
}

.form-error {
    padding: 12px 14px;
    border-left: 2px solid var(--danger);
    background: rgba(239, 91, 85, .08);
    color: #ffaaa5;
    font-size: 14px;
}

.checkout-success {
    min-height: 560px;
    display: grid;
    justify-items: center;
    align-content: center;
    text-align: center;
}

.success-mark {
    width: 74px;
    height: 74px;
    margin-bottom: 24px;
    display: grid;
    place-items: center;
    border: 1px solid var(--success);
    border-radius: 50%;
    color: var(--success);
}

.checkout-success h1 {
    margin-bottom: 14px;
    font: 400 clamp(54px, 6vw, 82px)/1 var(--display);
}

.checkout-success p {
    max-width: 620px;
}

/* Admin */

.admin-loading {
    min-height: 100vh;
    display: grid;
    place-content: center;
    color: var(--muted);
    letter-spacing: .08em;
}

.admin-access {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, .8fr) minmax(420px, 1.2fr);
}

.admin-access-brand {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--hairline);
    background: radial-gradient(circle at 50% 42%, rgba(83, 215, 232, .08), transparent 45%), #030607;
}

.admin-access-brand img {
    width: min(580px, 100%);
}

.admin-access-brand p {
    margin: 18px 0 0;
    color: var(--muted);
    letter-spacing: .18em;
    text-align: center;
    text-transform: uppercase;
}

.admin-access form {
    width: min(500px, calc(100% - 48px));
    place-self: center;
}

.admin-access h1 {
    margin-bottom: 18px;
    font: 400 62px/1 var(--display);
}

.admin-access form > p {
    color: var(--muted);
}

.admin-access label {
    margin: 32px 0 18px;
}

.admin-access form > a {
    display: block;
    margin-top: 24px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    background: #060a0c;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--hairline);
    background: #070c0e;
}

.admin-brand {
    height: 102px;
    padding: 10px 20px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--hairline);
}

.admin-brand img {
    width: 126px;
    height: 55px;
    object-fit: contain;
    transform: scale(1.35);
}

.admin-brand span {
    margin-top: -7px;
    color: var(--muted);
    font: 600 12px/1 var(--ui);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.admin-sidebar nav {
    padding: 24px 0;
    display: grid;
    gap: 4px;
}

.admin-sidebar nav button {
    position: relative;
    height: 54px;
    padding: 0 23px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 0;
    background: none;
    color: #c4cacc;
    font: 500 15px/1 var(--ui);
    text-align: left;
    cursor: pointer;
}

.admin-sidebar nav button:hover,
.admin-sidebar nav button.is-active {
    background: #0e171a;
    color: var(--accent);
}

.admin-sidebar nav button.is-active::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: var(--accent);
}

.admin-sidebar-bottom {
    margin-top: auto;
    padding: 22px;
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--hairline);
}

.admin-sidebar-bottom a,
.admin-sidebar-bottom button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font: 500 14px/1.4 var(--ui);
    text-align: left;
    cursor: pointer;
}

.admin-sidebar-bottom a:hover,
.admin-sidebar-bottom button:hover {
    color: var(--accent);
}

.admin-main {
    min-width: 0;
}

.admin-command-bar {
    height: 102px;
    padding: 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--hairline);
    background: #080d0f;
}

.admin-command-bar p,
.product-editor header p {
    margin-bottom: 3px;
    color: var(--muted);
    font: 600 11px/1 var(--ui);
    letter-spacing: .14em;
    text-transform: uppercase;
}

.admin-command-bar h1 {
    margin: 0;
    font: 600 24px/1 var(--ui);
}

.admin-message {
    min-height: 46px;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #315a62;
    background: rgba(83, 215, 232, .07);
    color: #a6edf5;
    font-size: 14px;
}

.admin-message.is-error {
    border-color: #703c3a;
    background: rgba(239, 91, 85, .08);
    color: #ffaaa5;
}

.admin-message button {
    display: grid;
    place-items: center;
    padding: 4px;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

.admin-content {
    min-height: calc(100vh - 102px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 365px;
}

.admin-table-panel {
    min-width: 0;
    padding: 30px 22px;
}

.admin-table-scroll {
    overflow-x: auto;
    border: 1px solid var(--hairline);
}

.admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: #080d0f;
}

.admin-table th {
    height: 49px;
    padding: 0 10px;
    border-bottom: 1px solid var(--hairline);
    color: var(--muted);
    font: 600 11px/1 var(--ui);
    letter-spacing: .09em;
    text-align: left;
    text-transform: uppercase;
}

.admin-table td {
    height: 66px;
    padding: 8px 10px;
    border-bottom: 1px solid #253138;
    color: #dce0e1;
    font-size: 13px;
    white-space: nowrap;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-table tbody tr {
    cursor: pointer;
    transition: background 160ms ease;
}

.admin-table tbody tr:hover,
.admin-table tbody tr.is-selected {
    background: #111d21;
}

.admin-table tbody tr.is-selected td:first-child {
    box-shadow: inset 3px 0 var(--accent);
}

.admin-table td:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-table td:first-child img {
    width: 42px;
    height: 38px;
    object-fit: cover;
}

.status-dot {
    width: 7px;
    height: 7px;
    margin-right: 7px;
    display: inline-block;
    border-radius: 50%;
    background: var(--muted);
}

.status-comingsoon { background: #e4a73a; }
.status-active { background: var(--success); }
.status-draft { background: #629cdf; }
.status-archived { background: #70777a; }

.sync-state {
    color: var(--muted);
}

.sync-synced { color: var(--success); }
.sync-failed { color: var(--danger); }
.sync-pending { color: #e4a73a; }

.quantity-input {
    width: 68px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #445057;
    background: #060a0c;
    text-align: center;
}

.sellbrite-panel {
    margin-top: 22px;
    padding: 24px;
    border: 1px solid var(--hairline);
    background: #080d0f;
}

.sellbrite-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.sellbrite-heading h2 {
    margin-bottom: 6px;
    font: 600 21px/1.1 var(--ui);
}

.sellbrite-heading p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.connection-grid {
    margin-top: 24px;
    padding-top: 21px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--hairline);
}

.connection-grid > div {
    min-width: 0;
    padding: 0 18px;
    display: grid;
    gap: 6px;
    border-left: 1px solid var(--hairline);
}

.connection-grid > div:first-child {
    padding-left: 0;
    border-left: 0;
}

.connection-grid span {
    color: var(--muted);
    font-size: 12px;
}

.connection-grid strong {
    overflow: hidden;
    color: #d9dfe0;
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
}

.connection-grid .connected {
    color: var(--success);
}

.product-editor {
    min-width: 0;
    padding: 26px 25px 42px;
    border-left: 1px solid var(--hairline);
    background: #080d0f;
}

.product-editor header {
    margin-bottom: 25px;
    display: flex;
    align-items: start;
    justify-content: space-between;
}

.product-editor h2 {
    margin: 0;
    font: 600 22px/1.1 var(--ui);
}

.product-editor form {
    display: grid;
    gap: 15px;
}

.product-editor textarea {
    height: auto;
    padding: 11px 13px;
    resize: vertical;
}

.editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.editor-grid-three {
    grid-template-columns: 1.25fr .75fr .75fr;
}

.product-editor input[type="color"] {
    padding: 4px;
}

.checkbox-label {
    grid-template-columns: 20px 1fr;
    align-items: center;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.checkbox-label span {
    color: var(--text) !important;
    letter-spacing: .02em !important;
    text-transform: none !important;
}

@media (max-width: 1240px) {
    .site-header {
        grid-template-columns: 210px 1fr 120px;
    }

    .hero {
        grid-template-columns: minmax(360px, .8fr) 1.2fr;
    }

    .hero h1 {
        font-size: clamp(54px, 6vw, 74px);
    }

    .species-rail {
        grid-template-columns: repeat(4, 1fr);
    }

    .species-tile:nth-child(n + 5) {
        aspect-ratio: 1.35;
    }

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

    .filter-rail {
        grid-template-columns: 1.5fr repeat(3, 1fr);
    }

    .filter-summary {
        grid-column: 1 / -1;
        height: auto;
        display: flex;
        justify-content: space-between;
    }

    .product-page {
        grid-template-columns: 1fr 440px;
        gap: 40px;
    }

    .product-gallery {
        grid-template-columns: 1fr;
    }

    .art-detail {
        min-height: 220px;
    }

    .art-detail img {
        min-height: 220px;
        padding: 12px;
    }

    .admin-content {
        grid-template-columns: minmax(600px, 1fr) 350px;
    }

    .connection-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 22px;
    }

    .connection-grid > div:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 980px) {
    .site-header {
        height: 70px;
        padding: 0 22px;
        grid-template-columns: 1fr auto auto;
        gap: 10px;
    }

    .brand-link,
    .brand-link img {
        width: 176px;
        height: 62px;
    }

    .mobile-menu-button {
        display: grid;
    }

    .site-nav {
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        display: none;
        padding: 18px 22px 22px;
        border-bottom: 1px solid var(--hairline);
        background: rgba(5, 8, 9, .98);
    }

    .site-nav.is-open {
        display: grid;
    }

    .site-nav a {
        padding: 13px 0;
    }

    .site-nav a::after {
        bottom: 7px;
    }

    .cart-link span:not(.cart-count) {
        display: none;
    }

    .hero {
        min-height: 760px;
        padding: 50px 22px 64px;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .hero-copy {
        padding: 0;
    }

    .hero h1 {
        max-width: 700px;
        font-size: clamp(54px, 10vw, 78px);
    }

    .hero-art {
        min-height: 330px;
    }

    .hero-art img {
        width: 112%;
        margin: 0 -6%;
    }

    .species-rail,
    .catalog-section,
    .site-footer,
    .product-page,
    .cart-page,
    .checkout-page {
        padding-right: 22px;
        padding-left: 22px;
    }

    .catalog-heading {
        align-items: start;
        flex-direction: column;
        gap: 16px;
    }

    .filter-rail {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .waters-section {
        grid-template-columns: 1fr;
    }

    .waters-art {
        min-height: 390px;
        border-right: 0;
        border-bottom: 1px solid var(--hairline);
    }

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

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

    .product-gallery {
        grid-template-columns: 1.4fr .6fr;
    }

    .product-mockup-large {
        min-height: 650px;
    }

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

    .order-summary {
        position: static;
    }

    .admin-shell {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .admin-brand {
        align-items: center;
        padding: 8px;
    }

    .admin-brand img {
        width: 62px;
    }

    .admin-brand span,
    .admin-sidebar nav button:not(.is-active)::after {
        display: none;
    }

    .admin-sidebar nav button {
        justify-content: center;
        padding: 0;
        font-size: 0;
    }

    .admin-sidebar nav button .icon {
        width: 22px;
        height: 22px;
    }

    .admin-sidebar-bottom {
        padding: 12px 8px;
    }

    .admin-sidebar-bottom a,
    .admin-sidebar-bottom button {
        font-size: 11px;
        text-align: center;
    }

    .admin-content {
        grid-template-columns: 1fr;
    }

    .product-editor {
        border-top: 1px solid var(--hairline);
        border-left: 0;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 17px;
    }

    .hero {
        min-height: 680px;
        padding-top: 38px;
    }

    .hero h1 {
        margin-bottom: 21px;
        font-size: clamp(48px, 15vw, 66px);
    }

    .hero-copy > p {
        margin-bottom: 25px;
        font-size: 18px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-art {
        min-height: 250px;
    }

    .species-rail {
        padding-top: 12px;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .species-tile,
    .species-tile:nth-child(n + 5) {
        min-width: 150px;
        aspect-ratio: .86;
        scroll-snap-align: start;
    }

    .catalog-section {
        padding-top: 58px;
        padding-bottom: 72px;
    }

    .catalog-heading h2 {
        font-size: 48px;
    }

    .filter-rail {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
        row-gap: 42px;
    }

    .product-card-media {
        aspect-ratio: .9;
    }

    .waters-art {
        min-height: 280px;
    }

    .waters-copy {
        padding: 48px 22px 54px;
    }

    .waters-copy h2 {
        font-size: 48px;
    }

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

    .footer-legal {
        display: grid;
        gap: 8px;
    }

    .product-gallery {
        grid-template-columns: 1fr;
    }

    .product-mockup-large {
        min-height: 510px;
    }

    .product-detail h1 {
        font-size: 50px;
    }

    .option-grid,
    .form-grid,
    .editor-grid,
    .editor-grid-three {
        grid-template-columns: 1fr;
    }

    .cart-page,
    .checkout-page {
        padding-top: 42px;
    }

    .cart-line {
        grid-template-columns: 100px 1fr;
        gap: 16px;
    }

    .cart-line-art {
        height: 112px;
    }

    .quantity-control {
        grid-column: 2;
        width: 128px;
    }

    .cart-line-total {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    .order-summary {
        padding: 24px;
    }

    .checkout-stepper {
        margin-bottom: 42px;
    }

    .checkout-step {
        justify-content: center;
        font-size: 0;
    }

    .checkout-step::after {
        right: 2px;
        left: calc(50% + 23px);
    }

    .checkout-cart-lines article {
        grid-template-columns: 76px 1fr;
    }

    .checkout-cart-lines img {
        width: 76px;
        height: 64px;
    }

    .checkout-cart-lines strong {
        grid-column: 2;
    }

    .step-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .delivery-form .field-wide {
        grid-column: auto;
    }

    .payment-option {
        grid-template-columns: auto 1fr;
    }

    .payment-option > .icon {
        display: none;
    }

    .admin-access {
        grid-template-columns: 1fr;
    }

    .admin-access-brand {
        min-height: 280px;
        padding: 30px;
        border-right: 0;
        border-bottom: 1px solid var(--hairline);
    }

    .admin-access form {
        padding: 54px 0;
    }

    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        position: static;
        width: 100%;
        height: auto;
        display: grid;
        grid-template-columns: 110px 1fr auto;
        align-items: center;
        border-right: 0;
        border-bottom: 1px solid var(--hairline);
    }

    .admin-brand {
        height: 72px;
        border: 0;
    }

    .admin-sidebar nav {
        padding: 0;
        display: flex;
        justify-content: center;
    }

    .admin-sidebar nav button {
        width: 48px;
        height: 48px;
    }

    .admin-sidebar-bottom {
        margin: 0;
        border: 0;
    }

    .admin-sidebar-bottom a {
        display: none;
    }

    .admin-command-bar {
        height: 88px;
        padding: 0 16px;
    }

    .admin-command-bar .button {
        min-height: 44px;
        padding: 0 14px;
    }

    .admin-table-panel {
        padding: 18px 12px;
    }

    .sellbrite-heading {
        display: grid;
    }

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

    .connection-grid > div,
    .connection-grid > div:nth-child(3) {
        padding: 12px 0;
        border-top: 1px solid var(--hairline);
        border-left: 0;
    }

    .product-editor {
        padding: 26px 16px 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
