.jersey-header {
    min-height: 76px;
    padding: 12px max(24px, calc((100% - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #fff;
    border-bottom: 1px solid #e2e6e1;
}

.jersey-brand,
.jersey-header nav,
.jersey-cart-link {
    display: inline-flex;
    align-items: center;
}

.jersey-brand {
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.jersey-brand-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    transform: skew(-8deg);
    border-radius: 9px;
    background: #18c56e;
    color: #050806;
}

.jersey-brand-accent {
    color: #0b8d4b;
}

.jersey-header nav {
    gap: 24px;
    color: #5d665f;
    font-size: 14px;
    font-weight: 700;
}

.jersey-cart-link {
    gap: 8px;
}

#cart-count {
    min-width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 50px;
    background: #18c56e;
    color: #050806;
    font-size: 12px;
}

.jersey-main {
    width: min(100% - 40px, 1180px);
    margin: 0 auto;
    padding: 54px 0 80px;
}

.jersey-intro {
    margin-bottom: 30px;
}

.jersey-eyebrow {
    margin-bottom: 8px;
    color: #0b8d4b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.jersey-intro h1 {
    margin-bottom: 8px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.jersey-intro h1 span {
    color: #0b8d4b;
}

.jersey-intro > p:not(.jersey-eyebrow) {
    color: #5d665f;
}

.jersey-intro .sample-price-note {
    margin-top: 8px;
    font-size: 13px;
}

.jersey-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.jersey-main .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jersey-main .product-image img {
    object-fit: contain;
    padding: 12px;
}

.jersey-main .product-actions-cart {
    grid-template-columns: 1fr;
}

.jersey-main .catalog-load-error {
    grid-column: 1 / -1;
    color: var(--danger);
    font-size: 13px;
}

.jersey-card {
    overflow: hidden;
    border: 1px solid #e2e6e1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(5, 15, 9, 0.06);
}

.jersey-image-wrap {
    position: relative;
    display: grid;
    min-height: 250px;
    place-items: center;
    padding: 22px;
    background: #f0f2ef;
}

.jersey-image-wrap img {
    width: min(100%, 260px);
    height: 230px;
    object-fit: contain;
}

.jersey-label {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 9px;
    border-radius: 5px;
    background: #fff;
    color: #252c27;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.jersey-info {
    padding: 20px;
}

.jersey-info h2 {
    font-size: 18px;
    line-height: 1.3;
}

.jersey-description {
    min-height: 42px;
    margin-top: 6px;
    color: #5d665f;
    font-size: 13px;
}

.jersey-price {
    margin: 15px 0;
    color: #0b8d4b;
    font-size: 21px;
    font-weight: 900;
}

.size-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: #5d665f;
    font-size: 13px;
    font-weight: 700;
}

.jersey-size {
    min-width: 90px;
    padding: 8px 10px;
    border: 1px solid #e2e6e1;
    border-radius: 7px;
    background: #fff;
    color: #101510;
}

.add-to-order {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: #18c56e;
    color: #050806;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.add-to-order:hover {
    transform: translateY(-1px);
    background: #12ad5f;
}

.order-summary {
    margin-top: 42px;
    padding: 24px;
    border: 1px solid #e2e6e1;
    border-radius: 16px;
    background: #fff;
}

.order-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e6e1;
}

.order-heading h2 {
    font-size: 23px;
}

.cart-status,
.order-note {
    color: #5d665f;
    font-size: 13px;
}

.order-items {
    display: grid;
}

.order-items:empty {
    display: none;
}

.order-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e2e6e1;
}

.order-item-name {
    font-weight: 700;
}

.order-item-detail,
.order-item-price {
    color: #5d665f;
    font-size: 13px;
}

.remove-item {
    padding: 6px 10px;
    border: 1px solid #e2e6e1;
    border-radius: 6px;
    background: #fff;
    color: #5d665f;
    font-size: 12px;
    font-weight: 700;
}

.remove-item:hover {
    border-color: #e53935;
    color: #e53935;
}

.order-total {
    display: flex;
    justify-content: space-between;
    padding: 18px 0 10px;
    font-size: 17px;
    font-weight: 800;
}

.order-total strong {
    color: #0b8d4b;
}

@media (max-width: 800px) {
    .jersey-grid,
    .jersey-main .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .jersey-header {
        min-height: 66px;
        padding: 10px 20px;
    }

    .jersey-header nav {
        gap: 14px;
        font-size: 12px;
    }

    .jersey-main {
        padding-top: 38px;
    }

    .jersey-grid,
    .jersey-main .product-grid {
        grid-template-columns: 1fr;
    }

    .jersey-image-wrap {
        min-height: 230px;
    }

    .order-summary {
        padding: 18px;
    }

    .order-heading {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .order-item {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 12px;
    }

    .order-item-detail {
        grid-column: 1;
    }

    .remove-item {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}
