:root {
    --ink: #17120e;
    --ink-soft: #5a4c42;
    --paper: #fff7e8;
    --paper-deep: #f4dfbd;
    --line: #d8b88d;
    --gold: #f0b232;
    --red: #c6322e;
    --teal: #006d77;
    --green: #278044;
    --blue: #2457a6;
    --shadow: 0 18px 45px rgba(56, 32, 18, .16);
    --hard-shadow: 7px 7px 0 rgba(23, 18, 14, .9);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 0, rgba(240, 178, 50, .22), transparent 26rem),
        linear-gradient(90deg, rgba(198, 50, 46, .04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(0, 109, 119, .045) 1px, transparent 1px),
        var(--paper);
    background-size: auto, 38px 38px, 38px 38px, auto;
}

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

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

input,
select,
textarea,
button {
    font: inherit;
}

button,
.button {
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--ink);
    color: white;
    min-height: 44px;
    padding: .78rem 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 750;
    box-shadow: 3px 3px 0 var(--gold);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

button:hover,
.button:hover {
    background: #26323d;
    box-shadow: 5px 5px 0 var(--gold);
    transform: translate(-1px, -1px);
}

.button.primary {
    background: var(--red);
    border-color: var(--red);
}

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

.topline {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem clamp(1rem, 4vw, 3rem);
    background: linear-gradient(90deg, var(--ink), #3a1713 48%, var(--teal));
    color: var(--paper);
    font-size: .86rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 247, 232, .95);
    border-bottom: 3px solid var(--ink);
    backdrop-filter: blur(12px);
}

.nav-wrap {
    min-height: 76px;
    display: grid;
    grid-template-columns: minmax(190px, auto) minmax(240px, 1fr) auto;
    align-items: center;
    gap: 1.3rem;
    padding: .85rem clamp(1rem, 4vw, 3rem);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
}

.brand-mark strong {
    display: block;
    font-size: 1.08rem;
    letter-spacing: 0;
}

.brand-mark small {
    color: var(--ink-soft);
}

.brand-symbol {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 50%, var(--ink) 0 25%, transparent 26%),
        conic-gradient(from 20deg, var(--gold), #fff1bf, var(--red), var(--teal), var(--gold));
    border: 4px solid var(--ink);
    box-shadow: 4px 4px 0 var(--red);
    flex: 0 0 auto;
}

.nav-search input,
.hero-search input,
.track-inline input,
.track-card input,
.filters input,
.filters select,
.checkout-form input,
.checkout-form textarea,
.add-form input,
.cart-row input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    min-height: 44px;
    padding: .75rem .85rem;
    color: var(--ink);
}

.nav-search input:focus,
.hero-search input:focus,
.track-inline input:focus,
.track-card input:focus,
.filters input:focus,
.filters select:focus,
.checkout-form input:focus,
.checkout-form textarea:focus {
    outline: 3px solid rgba(240, 178, 50, .5);
    border-color: var(--ink);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .95rem;
    font-weight: 700;
}

.main-nav a {
    padding: .5rem .15rem;
    position: relative;
}

.main-nav a:not(.cart-link)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: .2rem;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .18s ease;
}

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

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.cart-link span {
    min-width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: var(--red);
    color: white;
    display: inline-grid;
    place-items: center;
    font-size: .8rem;
}

.hero-band {
    min-height: 540px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    align-items: stretch;
    gap: clamp(1.2rem, 4vw, 4rem);
    padding: clamp(2rem, 6vw, 5.5rem) clamp(1rem, 4vw, 3rem);
    background:
        linear-gradient(115deg, rgba(23, 18, 14, .98), rgba(75, 21, 18, .86) 52%, rgba(0, 109, 119, .82)),
        repeating-linear-gradient(90deg, #1d1510 0 8px, #2b1c12 8px 16px);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-band::before,
.hero-band::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.hero-band::before {
    inset: 0;
    background:
        linear-gradient(135deg, transparent 0 48%, rgba(240, 178, 50, .24) 48% 52%, transparent 52%),
        radial-gradient(circle at 76% 20%, rgba(240, 178, 50, .34), transparent 15rem);
    mix-blend-mode: screen;
}

.hero-band::after {
    width: 18rem;
    height: 18rem;
    right: clamp(1rem, 8vw, 8rem);
    bottom: -7rem;
    border: 22px solid rgba(255, 247, 232, .12);
    border-radius: 50%;
    animation: slow-spin 18s linear infinite;
}

.hero-copy {
    align-self: center;
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.kicker {
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--gold);
    font-size: .82rem;
    font-weight: 800;
    margin: 0 0 .85rem;
}

.hero-copy h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: .9;
    margin: 0 0 1.2rem;
    text-shadow: 6px 6px 0 rgba(198, 50, 46, .55);
}

.hero-copy p:not(.kicker) {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.55;
    max-width: 610px;
    color: #f7eedc;
}

.hero-search {
    display: flex;
    gap: .7rem;
    max-width: 650px;
    margin-top: 2rem;
}

.hero-search input {
    border-color: transparent;
}

.hero-search button {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
}

.track-inline {
    margin-top: 1.1rem;
    max-width: 650px;
    display: grid;
    gap: .5rem;
}

.track-inline label,
.track-card label {
    font-weight: 850;
}

.track-inline div,
.track-card div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .65rem;
}

.track-inline.is-checking,
.track-card.is-checking {
    opacity: .78;
    filter: saturate(1.2);
}

.hero-panel {
    align-self: center;
    display: grid;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.hero-panel div {
    min-height: 138px;
    border: 1px solid rgba(255, 250, 240, .24);
    border-radius: var(--radius);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 250, 240, .08);
    box-shadow: 6px 6px 0 rgba(240, 178, 50, .78);
    transition: transform .18s ease;
}

.hero-panel div:hover {
    transform: translate(-3px, -3px) rotate(-.5deg);
}

.hero-panel span {
    font-size: 2.3rem;
    font-weight: 850;
}

.hero-panel small {
    color: #f7eedc;
}

.brand-story {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    width: min(1240px, calc(100% - 2rem));
    margin: 2rem auto 0;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 3px solid var(--ink);
    background: #fffdf7;
    box-shadow: var(--hard-shadow);
}

.brand-story h2 {
    margin: .2rem 0 0;
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1.08;
}

.brand-story p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.65;
}

.section,
.service-strip,
.content-page,
.checkout-shell,
.spec-section {
    width: min(1240px, calc(100% - 2rem));
    margin: 0 auto;
}

.section,
.spec-section {
    padding: 3.2rem 0;
}

.section-head,
.result-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.section-head h2,
.result-head h2,
.spec-section h2,
.checkout-shell h1,
.content-page h1 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.section-head a,
.reset-link,
.pagination a,
.empty-state a {
    color: var(--red);
    font-weight: 800;
}

.department-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .85rem;
}

.department-tile {
    min-height: 128px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fffdf7;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.department-tile:hover,
.product-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.department-tile:nth-child(3n + 1) {
    border-top: 5px solid var(--red);
}

.department-tile:nth-child(3n + 2) {
    border-top: 5px solid var(--gold);
}

.department-tile:nth-child(3n) {
    border-top: 5px solid var(--teal);
}

.department-tile span {
    color: var(--ink-soft);
}

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

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

.product-card {
    min-width: 0;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: #fffdf7;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 3px 3px 0 rgba(23, 18, 14, .08);
}

.product-image {
    aspect-ratio: 1 / 1;
    background: #f6efe1;
    display: grid;
    place-items: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .7rem;
    mix-blend-mode: multiply;
}

.image-frame {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.image-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0 35%, rgba(255, 255, 255, .82) 46%, transparent 58%),
        repeating-linear-gradient(-45deg, rgba(240, 178, 50, .2) 0 8px, rgba(0, 109, 119, .12) 8px 16px);
    transform: translateX(-130%);
    animation: none;
    opacity: 0;
    z-index: 1;
}

.image-frame.is-pending::before {
    animation: image-sweep 1.2s ease-in-out infinite;
    opacity: 1;
}

.image-frame.is-loaded::before {
    animation: none;
    opacity: 0;
}

.image-frame img {
    opacity: 1;
    transform: scale(1);
    transition: opacity .28s ease, transform .28s ease, filter .28s ease;
    filter: saturate(1) contrast(1);
}

.image-frame.is-pending img {
    opacity: 0;
    transform: scale(.965);
    filter: saturate(.8) contrast(.92);
}

.image-frame.is-loaded img {
    opacity: 1;
    transform: scale(1);
    filter: saturate(1) contrast(1);
}

.image-prep {
    position: absolute;
    inset: auto .75rem .75rem .75rem;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    z-index: 2;
    font-size: .76rem;
    font-weight: 850;
    color: var(--ink);
    background: rgba(255, 247, 232, .92);
    border: 1px solid rgba(23, 18, 14, .22);
    border-radius: 999px;
    padding: .35rem .55rem;
    pointer-events: none;
}

.image-prep i {
    width: .72rem;
    height: .72rem;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 0 rgba(198, 50, 46, .5);
    animation: pulse 1.15s ease-out infinite;
}

.image-frame:not(.is-pending) .image-prep,
.image-frame.is-loaded .image-prep {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
}

.product-body {
    padding: 1rem;
}

.product-title {
    display: block;
    min-height: 3.4rem;
    font-weight: 800;
    line-height: 1.3;
}

.product-title span {
    display: block;
    color: var(--red);
    font-size: .82rem;
    text-transform: uppercase;
}

.product-body p {
    margin: .5rem 0 1rem;
    color: var(--ink-soft);
    min-height: 2.6rem;
}

.product-meta,
.price-row,
.cart-summary,
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .8rem;
}

.product-meta strong,
.price-row strong {
    font-size: 1.2rem;
}

.stock {
    border-radius: 999px;
    padding: .34rem .55rem;
    font-size: .78rem;
    font-weight: 850;
    white-space: nowrap;
}

.stock-in {
    color: var(--green);
    background: #e7f2e7;
}

.stock-request {
    color: #77530b;
    background: #fff0c2;
}

.stock-out {
    color: #7b1d1d;
    background: #f8d6d2;
}

.service-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-bottom: 3rem;
}

.service-strip div {
    background:
        linear-gradient(135deg, rgba(255,255,255,.06), transparent),
        var(--ink);
    color: white;
    min-height: 120px;
    padding: 1.2rem;
}

.buzz-strip {
    width: 100%;
    overflow: hidden;
    display: flex;
    gap: .65rem;
    padding: .7rem clamp(1rem, 4vw, 3rem);
    background: var(--red);
    color: white;
    border-block: 3px solid var(--ink);
}

.buzz-strip span {
    flex: 0 0 auto;
    border: 2px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    padding: .42rem .7rem;
    font-weight: 850;
    animation: buzz 4s ease-in-out infinite;
}

.service-strip strong,
.service-strip span {
    display: block;
}

.service-strip span {
    color: #f7eedc;
    margin-top: .5rem;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 2rem;
    width: min(1420px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.filters {
    position: sticky;
    top: 112px;
    align-self: start;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fffdf7;
    padding: 1rem;
}

.filters h1 {
    margin: 0 0 1rem;
}

.filters form,
.checkout-form,
.add-form {
    display: grid;
    gap: .9rem;
}

.filters label,
.checkout-form label,
.add-form label {
    display: grid;
    gap: .36rem;
    font-weight: 750;
    color: var(--ink-soft);
}

.catalog-results {
    min-width: 0;
}

.result-head {
    min-height: 76px;
}

.product-detail {
    width: min(1240px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.2rem 0 3rem;
    display: grid;
    grid-template-columns: minmax(320px, .95fr) minmax(320px, 1.05fr);
    gap: clamp(1.5rem, 5vw, 4rem);
}

.gallery {
    min-width: 0;
}

.detail-image-frame {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    background: #fffdf7;
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--hard-shadow);
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.thumbs {
    margin-top: .8rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .7rem;
}

.thumb-frame {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fffdf7;
    padding: 0;
    min-height: auto;
    box-shadow: none;
    display: block;
    color: inherit;
    width: 100%;
}

.thumbs img {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fffdf7;
    padding: .45rem;
}

.buy-box {
    align-self: start;
    border: 3px solid var(--ink);
    border-top: 9px solid var(--gold);
    background: #fffdf7;
    border-radius: var(--radius);
    padding: clamp(1.2rem, 3vw, 2rem);
    box-shadow: var(--shadow);
}

.buy-box h1 {
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1;
    margin: 0 0 1rem;
}

.description {
    color: var(--ink-soft);
    line-height: 1.6;
}

.price-row {
    margin: 1.5rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
}

.price-row strong {
    font-size: 2rem;
}

.add-form {
    grid-template-columns: 120px minmax(160px, 1fr);
    align-items: end;
}

.payment-note {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--paper-deep);
    border-radius: var(--radius);
}

.payment-note strong,
.payment-note span {
    display: block;
}

.payment-note span {
    margin-top: .35rem;
    color: var(--ink-soft);
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.spec-grid div {
    background: #fffdf7;
    padding: 1rem;
    min-height: 84px;
}

.spec-grid dt {
    color: var(--ink-soft);
    font-weight: 750;
}

.spec-grid dd {
    margin: .4rem 0 0;
    font-weight: 800;
}

.checkout-shell {
    padding: 2.5rem 0 4rem;
}

.checkout-shell.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 2rem;
}

.cart-table,
.order-summary,
.success-card,
.empty-state,
.content-page {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fffdf7;
    padding: clamp(1rem, 3vw, 1.6rem);
}

.cart-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 130px 150px;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.cart-row img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: var(--paper-deep);
    border-radius: var(--radius);
}

.cart-row a {
    font-weight: 850;
}

.cart-row span {
    display: block;
    color: var(--ink-soft);
    margin-top: .25rem;
}

.cart-summary,
.summary-total {
    padding: 1.1rem 0;
    font-size: 1.2rem;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: .8rem;
    flex-wrap: wrap;
}

.checkout-form {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fffdf7;
    padding: 1rem;
}

.checkout-form .has-error input {
    border-color: var(--red);
}

.order-summary {
    align-self: start;
    position: sticky;
    top: 112px;
}

.order-summary h2 {
    margin-top: 0;
}

.order-summary div:not(.summary-total) {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    padding: .75rem 0;
}

.content-page {
    margin-top: 2.5rem;
    margin-bottom: 4rem;
    max-width: 820px;
    line-height: 1.7;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
    margin-top: 1.4rem;
}

.story-grid article,
.note-callout {
    border: 2px solid var(--ink);
    background: var(--paper-deep);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 4px 4px 0 var(--gold);
}

.story-grid strong,
.story-grid span,
.note-callout strong,
.note-callout span {
    display: block;
}

.story-grid span,
.note-callout span {
    color: var(--ink-soft);
    margin-top: .35rem;
}

.tracking-page {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) 0;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
    gap: clamp(1.2rem, 4vw, 3rem);
}

.tracking-hero {
    border: 3px solid var(--ink);
    background:
        linear-gradient(135deg, rgba(240, 178, 50, .34), rgba(255, 253, 247, .96) 42%),
        #fffdf7;
    border-radius: var(--radius);
    padding: clamp(1.2rem, 3vw, 2rem);
    box-shadow: var(--hard-shadow);
}

.tracking-hero h1 {
    font-size: clamp(2rem, 5vw, 4.25rem);
    line-height: .95;
    margin: .35rem 0 1rem;
}

.tracking-hero p {
    color: var(--ink-soft);
    line-height: 1.65;
}

.track-card {
    margin-top: 1.4rem;
    display: grid;
    gap: .6rem;
}

.compact-track {
    margin-top: 1.2rem;
}

.tracking-result {
    border: 3px solid var(--ink);
    background: #fffdf7;
    border-radius: var(--radius);
    padding: clamp(1.2rem, 3vw, 1.8rem);
    align-self: start;
    box-shadow: 7px 7px 0 var(--teal);
}

.tracking-result.muted {
    box-shadow: 7px 7px 0 var(--gold);
}

.tracking-result h2 {
    margin: 0 0 .7rem;
    font-size: clamp(1.6rem, 4vw, 3rem);
}

.result-title {
    display: flex;
    gap: .9rem;
    align-items: center;
}

.pulse-dot {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(39, 128, 68, .55);
    animation: pulse 1.2s ease-out infinite;
}

.order-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .7rem;
    margin: 1rem 0 1.5rem;
}

.order-facts div {
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: var(--radius);
    padding: .85rem;
}

.order-facts span,
.order-facts strong {
    display: block;
}

.order-facts span {
    color: var(--ink-soft);
    font-size: .85rem;
}

.status-rail {
    --active-step: 1;
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: .7rem;
    counter-reset: status;
}

.status-rail li {
    counter-increment: status;
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fffaf0;
    padding: .9rem .9rem .9rem 3.2rem;
    color: var(--ink-soft);
    overflow: hidden;
}

.status-rail li::before {
    content: counter(status);
    position: absolute;
    left: .8rem;
    top: .85rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: 2px solid var(--line);
    display: grid;
    place-items: center;
    font-weight: 900;
}

.status-rail li.done::before {
    background: var(--ink);
    border-color: var(--ink);
    color: white;
}

.status-rail li.active {
    border-color: var(--green);
    background: #edf8ec;
    color: var(--ink);
}

.status-rail li.active::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(39, 128, 68, .16), transparent);
    animation: image-sweep 1.35s ease-in-out infinite;
}

.status-rail strong,
.status-rail span {
    display: block;
    position: relative;
    z-index: 1;
}

.status-rail span {
    margin-top: .25rem;
}

.status-rail.compact {
    margin: 1.2rem 0;
}

.pagination {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.pagination a {
    min-width: 42px;
    min-height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fffdf7;
}

.pagination a.active {
    background: var(--ink);
    color: white;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem clamp(1rem, 4vw, 3rem);
    background: var(--ink);
    color: white;
}

.site-footer p {
    margin: .4rem 0 0;
    color: #f7eedc;
}

.site-footer div:last-child {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@keyframes image-sweep {
    0% { transform: translateX(-130%); }
    100% { transform: translateX(130%); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 currentColor; }
    80%, 100% { box-shadow: 0 0 0 12px transparent; }
}

@keyframes slow-spin {
    to { transform: rotate(360deg); }
}

@keyframes buzz {
    0%, 100% { transform: translateY(0) rotate(0); }
    45% { transform: translateY(-2px) rotate(-.4deg); }
    70% { transform: translateY(1px) rotate(.4deg); }
}

@media (max-width: 1040px) {
    .nav-wrap {
        grid-template-columns: 1fr;
    }

    .main-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: .2rem;
    }

    .hero-band,
    .brand-story,
    .tracking-page,
    .product-detail,
    .checkout-shell.two-col,
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .filters,
    .order-summary {
        position: static;
    }

    .department-grid,
    .product-grid,
    .product-grid.compact,
    .spec-grid,
    .story-grid,
    .order-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .topline,
    .site-footer,
    .section-head,
    .result-head,
    .price-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-band {
        min-height: auto;
    }

    .hero-search,
    .track-inline div,
    .track-card div,
    .add-form,
    .actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .department-grid,
    .product-grid,
    .product-grid.compact,
    .spec-grid,
    .story-grid,
    .order-facts,
    .service-strip {
        grid-template-columns: 1fr;
    }

    .cart-row {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .cart-row label,
    .cart-row strong {
        grid-column: 2;
    }
}
