:root {
    --ink: #17202a;
    --muted: #687384;
    --line: #e6e9ef;
    --paper: #ffffff;
    --soft: #f6f8fb;
    --navy: #14213d;
    --green: #0f8b6f;
    --red: #e5484d;
    --gold: #f8c630;
    --shadow: 0 18px 50px rgba(23, 32, 42, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: var(--paper);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 14px clamp(18px, 4vw, 64px);
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--navy), var(--green));
    border-radius: 8px;
}

.brand strong,
.brand small {
    display: block;
    line-height: 1.05;
}

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

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 700;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #fff;
    background: var(--ink);
    border-radius: 8px;
}

.cart-link span {
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    color: var(--ink);
    background: var(--gold);
    border-radius: 99px;
}

.language-switch {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.language-switch a {
    padding: 9px 10px;
    color: var(--muted);
    background: #fff;
    font-size: 13px;
    font-weight: 900;
}

.language-switch a.active {
    color: #fff;
    background: var(--green);
}

.nav-toggle {
    display: none;
    padding: 9px 12px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
}

main {
    overflow: hidden;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 74px);
    min-height: calc(100vh - 76px);
    padding: clamp(36px, 6vw, 86px) clamp(18px, 4vw, 64px);
    background:
        linear-gradient(110deg, rgba(20, 33, 61, .07), transparent 46%),
        linear-gradient(180deg, #fff, #f8fafc 85%);
}

.hero h1,
.page-title h1,
.detail-copy h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(38px, 5.25vw, 68px);
    line-height: 1.04;
    letter-spacing: 0;
}

.hero p,
.page-title p,
.lead {
    max-width: 660px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-actions,
.trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.trust-row span {
    padding: 9px 12px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
}

.btn.primary {
    color: #fff;
    background: var(--red);
    box-shadow: 0 12px 26px rgba(229, 72, 77, .25);
}

.btn.ghost {
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
}

.btn.dark {
    color: #fff;
    background: var(--navy);
}

.btn.full {
    width: 100%;
}

.btn.disabled {
    opacity: .4;
    pointer-events: none;
}

.hero-media {
    position: relative;
    margin: 0;
    align-self: stretch;
    min-height: 520px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f4ee;
    box-shadow: var(--shadow);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.lifestyle-section,
.product-lifestyle-inline {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    align-items: center;
    gap: clamp(26px, 5vw, 70px);
    padding: clamp(44px, 7vw, 92px) clamp(18px, 4vw, 64px);
    background: #fff;
}

.lifestyle-section figure,
.product-lifestyle-inline img {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.lifestyle-section img,
.product-lifestyle-inline img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.lifestyle-section h2,
.product-lifestyle-inline h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.05;
}

.lifestyle-section p,
.product-lifestyle-inline p {
    max-width: 620px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.product-lifestyle-inline {
    padding-top: 0;
    background: var(--soft);
}

.section,
.steps,
.admin-preview,
.faq,
.page-title,
.product-detail,
.cart-layout,
.checkout,
.empty {
    padding: clamp(44px, 7vw, 92px) clamp(18px, 4vw, 64px);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.section-head h2,
.steps h3,
.admin-preview h2,
.faq h2,
.summary h2,
.admin-content h1,
.checkout h1 {
    margin: 0;
}

.section-head h2,
.admin-preview h2,
.faq h2 {
    font-size: clamp(30px, 4vw, 48px);
}

.section-head a {
    color: var(--green);
    font-weight: 900;
}

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

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

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.product-art {
    display: grid;
    min-height: 238px;
    place-items: center;
    padding: 24px 32px;
    background: linear-gradient(180deg, #f6f8fb, #eef4f1);
}

.product-art.has-on-pet-image {
    padding: 0;
    background: #eef4f1;
}

.uploaded-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
}

.product-card-image {
    max-height: 220px;
}

.product-card-on-pet-image {
    max-height: none;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.jersey-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    width: 100%;
}

.product-card-pair {
    gap: 22px;
    transform: scale(.72);
}

.jersey {
    position: relative;
    display: grid;
    width: 155px;
    min-height: 168px;
    place-items: center;
    padding: 42px 18px 28px;
    color: var(--team-secondary);
    text-align: center;
    background:
        linear-gradient(90deg, transparent 0 12%, var(--team-accent) 12% 18%, transparent 18% 82%, var(--team-accent) 82% 88%, transparent 88%),
        linear-gradient(180deg, var(--team-primary), var(--team-primary));
    border: 10px solid var(--team-secondary);
    border-bottom-width: 18px;
    border-radius: 46px 46px 18px 18px;
    box-shadow: inset 0 -14px 0 rgba(0, 0, 0, .08), 0 16px 32px rgba(0, 0, 0, .12);
    overflow: visible;
}

.jersey:before,
.jersey:after,
.jersey {
    background-blend-mode: overlay, normal;
}

.jersey-front {
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .26), transparent 16%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 2px, rgba(0, 0, 0, .03) 2px 4px),
        linear-gradient(90deg, transparent 0 12%, var(--team-accent) 12% 18%, transparent 18% 82%, var(--team-accent) 82% 88%, transparent 88%),
        linear-gradient(180deg, var(--team-primary), var(--team-primary));
}

.jersey-back {
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .22), transparent 16%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 2px, rgba(0, 0, 0, .03) 2px 4px),
        linear-gradient(180deg, var(--team-primary) 0 70%, var(--team-accent) 70% 82%, var(--team-primary) 82%);
}

.jersey:before,
.jersey:after {
    position: absolute;
    top: 30px;
    width: 34px;
    height: 78px;
    content: "";
    background: var(--team-primary);
    border: 8px solid var(--team-secondary);
    border-radius: 22px;
}

.jersey:before {
    left: -34px;
    transform: rotate(18deg);
}

.jersey:after {
    right: -34px;
    transform: rotate(-18deg);
}

.jersey strong {
    position: relative;
    z-index: 1;
    color: var(--team-secondary);
    font-size: 18px;
    line-height: 1.05;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .22);
}

.jersey em {
    position: relative;
    z-index: 1;
    color: var(--team-secondary);
    font-style: normal;
    font-size: 56px;
    font-weight: 1000;
    line-height: .85;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .22);
}

.jersey small,
.jersey-code {
    position: relative;
    z-index: 1;
    color: var(--team-secondary);
    font-weight: 900;
}

.jersey-code {
    position: absolute;
    top: 20px;
    padding: 4px 8px;
    color: var(--team-primary);
    background: var(--team-secondary);
    border-radius: 4px;
}

.jersey.large {
    width: min(340px, 70vw);
    min-height: 360px;
    padding: 86px 34px 60px;
    border-width: 18px;
    border-bottom-width: 34px;
    border-radius: 90px 90px 34px 34px;
}

.detail-jersey-pair {
    gap: 80px;
    transform: scale(.72);
    transform-origin: center;
}

.jersey.large:before,
.jersey.large:after {
    top: 72px;
    width: 74px;
    height: 160px;
    border-width: 16px;
}

.jersey.large:before {
    left: -74px;
}

.jersey.large:after {
    right: -74px;
}

.jersey.large strong {
    font-size: clamp(28px, 6vw, 48px);
}

.product-info {
    padding: 18px;
}

.product-info span,
.product-info p,
.summary span,
.cart-item span,
.hint,
table small {
    color: var(--muted);
}

.product-info h3 {
    margin: 7px 0 10px;
    font-size: 19px;
}

.product-info p {
    min-height: 48px;
    margin: 0 0 14px;
    line-height: 1.5;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-row strong {
    color: var(--red);
    font-size: 22px;
}

.price-row small {
    color: var(--muted);
    text-decoration: line-through;
}

.price-row.big strong {
    font-size: 34px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    background: var(--navy);
}

.steps article {
    padding: 28px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
}

.steps span {
    color: var(--gold);
    font-weight: 900;
}

.steps p {
    color: rgba(255, 255, 255, .72);
    line-height: 1.6;
}

.admin-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 26px;
    background: #f3f7f4;
}

.admin-preview p {
    max-width: 620px;
    color: var(--muted);
    line-height: 1.7;
}

.stats-card {
    padding: 34px;
    color: #fff;
    background: var(--green);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.stats-card span,
.stats-card small {
    display: block;
    color: rgba(255, 255, 255, .78);
}

.stats-card strong {
    display: block;
    margin: 10px 0;
    font-size: 48px;
}

.faq details {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.faq summary {
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
}

.faq p {
    color: var(--muted);
    line-height: 1.7;
}

.page-title {
    background: var(--soft);
}

.page-title.compact {
    padding-bottom: 24px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 22px clamp(18px, 4vw, 64px);
    border-bottom: 1px solid var(--line);
}

.filter {
    padding: 10px 14px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
}

.filter.active {
    color: #fff;
    background: var(--ink);
}

.all-products {
    padding: clamp(28px, 5vw, 54px) clamp(18px, 4vw, 64px) clamp(54px, 7vw, 92px);
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(420px, 1.02fr) minmax(0, .98fr);
    align-items: start;
    gap: clamp(30px, 5vw, 68px);
}

.product-detail-v2 {
    background: linear-gradient(180deg, #fff, #f7faf9);
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.showcase-card {
    display: grid;
    min-height: 520px;
    place-items: center;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(23, 32, 42, .08);
    overflow: hidden;
}

.flat-card {
    background: linear-gradient(135deg, #f6f8fb, #edf6f1);
}

.flat-card .jersey.large {
    transform: scale(.68);
    margin: -48px 0;
}

.flat-card .detail-jersey-pair .jersey {
    width: 190px;
    min-height: 220px;
}

.on-pet-card {
    background:
        radial-gradient(circle at 50% 18%, rgba(248, 198, 48, .22), transparent 32%),
        linear-gradient(180deg, #ffffff, #f2f7fb);
}

.detail-copy {
    display: grid;
    gap: 16px;
}

.overview-panel {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.overview-panel h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.overview-panel ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.55;
}

.swatches {
    display: flex;
    gap: 8px;
    margin-top: 30px;
}

.swatches span {
    width: 34px;
    height: 34px;
    border: 2px solid #fff;
    border-radius: 99px;
    box-shadow: 0 0 0 1px var(--line);
}

.pet-fit-preview {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: 330px;
    isolation: isolate;
}

.pet-ears {
    position: absolute;
    top: 40px;
    display: flex;
    gap: 70px;
    z-index: 0;
}

.pet-ears i {
    display: block;
    width: 54px;
    height: 84px;
    background: #c98a54;
    border: 8px solid #9f693d;
    border-radius: 70% 70% 36% 36%;
}

.pet-ears i:first-child {
    transform: rotate(-20deg);
}

.pet-ears i:last-child {
    transform: rotate(20deg);
}

.pet-head {
    position: relative;
    z-index: 1;
    display: grid;
    width: 166px;
    height: 138px;
    place-items: center;
    background: linear-gradient(90deg, #c98a54 0 34%, #fff 34% 66%, #c98a54 66%);
    border: 8px solid #9f693d;
    border-radius: 46% 46% 52% 52%;
    box-shadow: 0 12px 26px rgba(23, 32, 42, .12);
}

.pet-head span {
    width: 32px;
    height: 22px;
    background: #1b1b1b;
    border-radius: 50%;
    box-shadow: -42px -20px 0 -8px #1b1b1b, 42px -20px 0 -8px #1b1b1b;
}

.pet-body {
    position: relative;
    z-index: 1;
    display: grid;
    width: 210px;
    min-height: 210px;
    place-items: start center;
    margin-top: -8px;
    padding-top: 26px;
    background: #d39a65;
    border: 8px solid #9f693d;
    border-radius: 52% 52% 36% 36%;
}

.pet-jersey {
    display: grid;
    width: 148px;
    min-height: 150px;
    place-items: center;
    padding: 22px 12px 18px;
    color: var(--team-secondary);
    background:
        linear-gradient(90deg, transparent 0 16%, var(--team-accent) 16% 22%, transparent 22% 78%, var(--team-accent) 78% 84%, transparent 84%),
        var(--team-primary);
    border: 9px solid var(--team-secondary);
    border-bottom-width: 16px;
    border-radius: 34px 34px 16px 16px;
    box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .08);
}

.pet-jersey strong,
.pet-jersey small {
    color: var(--team-secondary);
    font-weight: 1000;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .22);
}

.pet-jersey strong {
    font-size: 26px;
}

.pet-jersey small {
    font-size: 54px;
    line-height: .9;
}

.pet-fit-preview p {
    margin: 18px 0 0;
    color: var(--muted);
    font-weight: 900;
}

.inline-match-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: center;
    gap: 18px;
    min-height: 360px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.size-guide {
    padding: clamp(44px, 7vw, 92px) clamp(18px, 4vw, 64px);
    background: #fff;
}

.size-guide .section-head {
    align-items: start;
}

.size-guide .section-head p:last-child {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.6;
}

.size-guide-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: stretch;
    gap: 20px;
}

.size-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.size-table {
    min-width: 760px;
}

.size-table th {
    color: #fff;
    background: var(--green);
}

.size-table td {
    font-weight: 800;
    text-align: center;
}

.measurement-card {
    display: grid;
    align-content: center;
    gap: 18px;
    padding: 22px;
    background: #f5faf7;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.measurement-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.measurement-jersey {
    position: relative;
    min-height: 300px;
    border: 4px solid #111;
    border-top-width: 16px;
    border-radius: 72px 72px 30px 30px;
    background: #fff;
    clip-path: polygon(22% 0, 38% 0, 50% 18%, 62% 0, 78% 0, 92% 28%, 82% 100%, 18% 100%, 8% 28%);
}

.measure-line {
    position: absolute;
    color: var(--green);
    font-size: 13px;
    font-weight: 1000;
    text-transform: uppercase;
}

.measure-line:before {
    position: absolute;
    content: "";
    border: 2px dashed var(--green);
}

.measure-line.neck {
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.measure-line.neck:before {
    top: 22px;
    left: -58px;
    width: 118px;
}

.measure-line.chest {
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
}

.measure-line.chest:before {
    top: 22px;
    left: -120px;
    width: 240px;
}

.measure-line.length {
    top: 156px;
    right: 46px;
    writing-mode: vertical-rl;
}

.measure-line.length:before {
    top: -100px;
    right: -16px;
    height: 220px;
}

.product-page-compact {
    max-width: 1440px;
    margin: 0 auto;
    padding-top: clamp(22px, 3vw, 42px);
    padding-bottom: clamp(22px, 3vw, 42px);
    grid-template-columns: minmax(420px, .92fr) minmax(360px, .78fr);
    align-items: start;
    gap: clamp(22px, 3vw, 40px);
}

.product-page-compact .product-showcase {
    gap: 10px;
}

.product-page-compact .showcase-size-guide {
    grid-column: 1 / -1;
}

.product-page-compact .showcase-card {
    min-height: 300px;
    padding: 14px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(23, 32, 42, .06);
}

.product-page-compact .on-pet-card {
    background: linear-gradient(180deg, #fffaf0, #f7fbff);
}

.product-page-compact .flat-card {
    background: linear-gradient(180deg, #f7fbff, #edf6f2);
}

.product-page-compact .detail-jersey-pair {
    gap: 52px;
    transform: scale(.48);
    margin: -92px -88px;
}

.product-page-compact .flat-card .detail-jersey-pair .jersey {
    width: 176px;
    min-height: 204px;
}

.product-page-compact .detail-copy {
    align-content: start;
    gap: 11px;
    padding-top: 0;
}

.product-page-compact .detail-copy h1 {
    max-width: 560px;
    font-size: clamp(30px, 3.1vw, 46px);
    line-height: 1.08;
}

.product-page-compact .lead {
    max-width: 560px;
    margin: 0;
    font-size: 16px;
    line-height: 1.58;
}

.product-page-compact .price-row.big strong {
    font-size: 27px;
}

.product-page-compact .overview-panel {
    padding: 13px 15px;
    border-radius: 8px;
}

.product-page-compact .overview-panel h2 {
    font-size: 18px;
}

.product-page-compact .overview-panel ul {
    gap: 5px;
    margin: 8px 0 0;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.55;
}

.product-page-compact .pet-fit-preview {
    transform: scale(.63);
    margin: -86px 0;
}

.product-page-compact .detail-product-image {
    max-height: 280px;
}

.product-page-compact .buy-box {
    max-width: 440px;
    gap: 10px;
    padding: 14px;
    box-shadow: 0 10px 26px rgba(23, 32, 42, .07);
}

.product-page-compact .buy-box input,
.product-page-compact .buy-box select {
    min-height: 40px;
    padding: 8px 10px;
}

.product-page-compact .buy-box label {
    gap: 5px;
    font-size: 14px;
}

.product-page-compact .buy-box .btn {
    min-height: 44px;
    margin-top: 2px;
}

.size-guide-compact {
    max-width: 1440px;
    margin: 0 auto;
    padding-top: clamp(18px, 2.5vw, 30px);
    padding-bottom: clamp(24px, 3vw, 38px);
}

.size-guide-compact .section-head {
    margin-bottom: 12px;
}

.size-guide-compact .section-head h2 {
    font-size: clamp(22px, 2.2vw, 30px);
}

.size-guide-compact .section-head p:last-child {
    max-width: 420px;
    font-size: 15px;
    line-height: 1.55;
}

.size-guide-compact .size-guide-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 14px;
}

.size-guide-compact th,
.size-guide-compact td {
    padding: 8px 10px;
    font-size: 14px;
}

.size-guide-compact .measurement-card {
    padding: 12px;
    font-size: 14px;
}

.size-guide-compact .measurement-jersey {
    min-height: 190px;
}

.size-guide-compact .measure-line.chest {
    top: 92px;
}

.size-guide-compact .measure-line.chest:before {
    left: -82px;
    width: 166px;
}

.size-guide-compact .measure-line.length {
    top: 112px;
    right: 35px;
}

.size-guide-compact .measure-line.length:before {
    top: -72px;
    height: 160px;
}

.size-guide-mini {
    padding: 0;
    background: transparent;
}

.size-guide-mini .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
    align-items: end;
    gap: 12px;
    margin: 0 0 10px;
}

.size-guide-mini .section-head h2 {
    font-size: clamp(20px, 2vw, 26px);
}

.size-guide-mini .section-head p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.size-guide-mini .size-guide-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.size-guide-mini .size-table-wrap {
    overflow-x: auto;
}

.size-guide-mini .size-table {
    min-width: 620px;
}

.size-guide-mini th,
.size-guide-mini td {
    padding: 7px 9px;
    font-size: 13px;
}

.size-guide-mini .measurement-card {
    display: none;
}

@media (max-width: 1180px) {
    .product-page-compact {
        grid-template-columns: 1fr;
    }

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

    .product-page-compact .buy-box {
        max-width: 100%;
    }

    .size-guide-compact .size-guide-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .product-page-compact {
        padding: 18px 14px 24px;
        gap: 16px;
    }

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

    .product-page-compact .showcase-card {
        min-height: 250px;
        padding: 12px;
    }

    .product-page-compact .pet-fit-preview {
        transform: scale(.56);
        margin: -112px 0;
    }

    .product-page-compact .detail-jersey-pair {
        transform: scale(.42);
        margin: -120px -98px;
    }

    .product-page-compact .detail-copy h1 {
        font-size: clamp(28px, 8vw, 34px);
    }

    .product-page-compact .buy-box {
        max-width: 100%;
    }

    .size-guide-compact {
        padding: 22px 14px 28px;
    }

    .size-guide-compact .section-head h2 {
        font-size: 25px;
    }

    .size-guide-compact .size-table-wrap {
        overflow-x: auto;
    }

    .size-guide-compact .size-table {
        min-width: 680px;
    }

    .size-guide-mini .section-head {
        grid-template-columns: 1fr;
    }

    .size-guide-mini .size-table {
        min-width: 0;
    }

    .size-guide-mini th:nth-child(2),
    .size-guide-mini td:nth-child(2),
    .size-guide-mini th:nth-child(4),
    .size-guide-mini td:nth-child(4),
    .size-guide-mini th:nth-child(6),
    .size-guide-mini td:nth-child(6) {
        display: none;
    }

    .size-guide-mini th,
    .size-guide-mini td {
        padding: 7px 6px;
        font-size: 12px;
    }
}

.buy-box,
.checkout-form,
.login-panel form {
    display: grid;
    gap: 14px;
    max-width: 560px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(23, 32, 42, .08);
}

label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(15, 139, 111, .18);
    border-color: var(--green);
}

.cart-layout,
.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 26px;
}

.cart-list {
    display: grid;
    gap: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.cart-item strong,
.cart-item span {
    display: block;
}

.cart-item button,
.status-form button {
    padding: 9px 12px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
}

.summary {
    display: grid;
    gap: 14px;
    padding: 22px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.summary.sticky {
    position: sticky;
    top: 96px;
}

.summary div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.summary .total {
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 20px;
}

.payment-placeholder {
    display: grid;
    gap: 4px;
    padding: 14px;
    background: #f4f8ff;
    border: 1px dashed #8aa4d6;
    border-radius: 8px;
}

.payment-placeholder span {
    color: var(--muted);
    line-height: 1.5;
}

.empty {
    display: grid;
    place-items: center;
    min-height: 280px;
    text-align: center;
}

.empty h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
}

.success {
    background: #f3f7f4;
}

.login-panel {
    display: grid;
    min-height: calc(100vh - 76px);
    place-items: center;
    padding: 28px;
}

.alert {
    padding: 12px 14px;
    color: #8f1d24;
    background: #fff1f2;
    border: 1px solid #ffd0d4;
    border-radius: 8px;
}

.success-alert {
    color: #0f5132;
    background: #e7f5ef;
    border-color: #b8e4cf;
}

.admin-body main {
    background: var(--soft);
}

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

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: var(--ink);
    color: #fff;
}

.admin-nav strong {
    margin-bottom: 16px;
    font-size: 20px;
}

.admin-nav a {
    padding: 12px;
    color: rgba(255, 255, 255, .82);
    border-radius: 8px;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, .1);
}

.admin-content {
    padding: clamp(24px, 4vw, 48px);
}

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

.metric-grid article {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.metric-grid span {
    color: var(--muted);
}

.metric-grid strong {
    display: block;
    margin-top: 10px;
    font-size: 34px;
}

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

th,
td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.status {
    display: inline-flex;
    padding: 7px 10px;
    color: #0f5132;
    background: #e7f5ef;
    border-radius: 99px;
    font-weight: 900;
}

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

.status-form select {
    min-width: 150px;
    padding: 9px;
}

.admin-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.admin-product-grid article {
    display: grid;
    gap: 10px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-product-thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.admin-product-thumb {
    position: relative;
    display: grid;
    min-height: 140px;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(180deg, #f6f8fb, #eef4f1);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-product-thumb > span {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    padding: 4px 6px;
    color: var(--muted);
    background: rgba(255, 255, 255, .86);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 900;
}

.admin-product-image {
    max-height: 132px;
}

.admin-product-pair {
    width: auto;
    gap: 18px;
    transform: none;
}

.admin-product-pair .jersey {
    width: 62px;
    min-height: 72px;
    padding: 18px 6px 10px;
    border-width: 4px;
    border-bottom-width: 7px;
    border-radius: 18px 18px 7px 7px;
    box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .08), 0 8px 16px rgba(0, 0, 0, .1);
}

.admin-product-pair .jersey:before,
.admin-product-pair .jersey:after {
    top: 13px;
    width: 14px;
    height: 32px;
    border-width: 3px;
    border-radius: 10px;
}

.admin-product-pair .jersey:before {
    left: -14px;
}

.admin-product-pair .jersey:after {
    right: -14px;
}

.admin-product-pair .jersey-code {
    top: 8px;
    padding: 2px 3px;
    font-size: 7px;
}

.admin-product-pair .jersey strong {
    font-size: 8px;
}

.admin-product-pair .jersey em {
    font-size: 24px;
}

.admin-product-pair .jersey small {
    font-size: 6px;
}

.admin-product-thumb .pet-fit-preview {
    transform: scale(.3);
    margin: -92px 0 -116px;
}

.admin-product-meta {
    display: grid;
    gap: 3px;
}

.admin-product-actions {
    display: grid;
    gap: 9px;
}

.admin-product-actions details {
    border-top: 1px solid var(--line);
    padding-top: 9px;
}

.admin-product-actions summary {
    color: var(--green);
    font-weight: 900;
    cursor: pointer;
}

.admin-product-actions form {
    display: grid;
    gap: 9px;
    margin-top: 10px;
}

.admin-upload-group {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.admin-upload-group h4 {
    margin: 0;
    font-size: 14px;
}

.admin-product-actions input[type="file"] {
    padding: 10px;
    font-size: 13px;
}

.admin-product-actions .btn {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 13px;
}

.admin-product-grid span {
    color: var(--muted);
}

.admin-product-grid a {
    color: var(--green);
    font-weight: 900;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 34px clamp(18px, 4vw, 64px);
    color: #fff;
    background: var(--ink);
}

.site-footer p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .68);
}

.site-footer div:last-child {
    display: flex;
    gap: 16px;
}

@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .size-guide-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav {
        position: absolute;
        top: 76px;
        right: 18px;
        left: 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .nav.open {
        display: flex;
    }

    .hero,
    .lifestyle-section,
    .product-lifestyle-inline,
    .product-detail,
    .size-guide-grid,
    .cart-layout,
    .checkout,
    .admin-preview,
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-media {
        min-height: 360px;
    }

    .detail-jersey-pair {
        transform: scale(.68);
    }

    .showcase-card {
        min-height: 420px;
    }

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

    .admin-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .summary.sticky {
        position: static;
    }
}

@media (max-width: 640px) {
    .site-header {
        min-height: 68px;
        padding: 12px 16px;
    }

    .brand small {
        display: none;
    }

    .hero h1,
    .page-title h1,
    .detail-copy h1 {
        font-size: 38px;
    }

    .product-grid,
    .metric-grid,
    .admin-product-grid {
        grid-template-columns: 1fr;
    }

    .product-card-pair {
        transform: scale(.78);
    }

    .section-head,
    .site-footer {
        align-items: start;
        flex-direction: column;
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .jersey.large,
    .flat-card .jersey.large {
        transform: scale(.82);
    }

    .showcase-card {
        min-height: 360px;
        padding: 20px;
    }

    .inline-match-preview {
        grid-template-columns: 1fr;
    }

    .detail-jersey-pair {
        gap: 48px;
        transform: scale(.58);
        margin: -56px 0;
    }

    .pet-fit-preview {
        transform: scale(.88);
        margin: -18px 0;
    }

    .measurement-jersey {
        min-height: 260px;
    }
}

@media (max-width: 420px) {
    .admin-product-thumbs {
        grid-template-columns: 1fr;
    }
}
