@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Open+Sans:wght@400;600;700&display=swap");

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Open Sans", sans-serif;
    background: #f4f6f9;
    color: #1f2937;
    line-height: 1.45;
}

a {
    color: #0b5ed7;
}

.container {
    width: min(1080px, 94vw);
    margin: 2rem auto 3rem;
}

.container.narrow {
    width: min(760px, 94vw);
}

h1,
h2 {
    margin-top: 0;
    line-height: 1.25;
}

h2 {
    font-size: 1.1rem;
}

.stack > * + * {
    margin-top: 1rem;
}

.card {
    background: #ffffff;
    border: 1px solid #dde3ea;
    border-radius: 10px;
    padding: 1rem;
}

.grid {
    display: grid;
    gap: 0.8rem;
}

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

.grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
}

.grid.five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
}

label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
}

input,
select,
button {
    width: 100%;
    margin-top: 0.35rem;
    border: 1px solid #c9d2dd;
    border-radius: 8px;
    padding: 0.56rem 0.65rem;
    font-size: 0.95rem;
    font-family: inherit;
}

input:focus,
select:focus,
button:focus {
    outline: 2px solid #93c5fd;
    outline-offset: 1px;
}

button {
    cursor: pointer;
    background: #e5e7eb;
}

.button-primary {
    background: #0b5ed7;
    color: #ffffff;
    border-color: #0b5ed7;
    font-weight: 700;
}

.button-danger {
    background: #b42318;
    color: #ffffff;
    border-color: #b42318;
}

.button-warning {
    background: #ea8a12;
    color: #ffffff;
    border-color: #ea8a12;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.actions button {
    width: auto;
    min-width: 140px;
}

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

.product-offer-card {
    border: 1px solid #d8dee6;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.product-offer-image-wrap {
    width: 100%;
    height: 170px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-offer-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-offer-empty {
    color: #6b7280;
    font-size: 0.86rem;
    text-align: center;
    padding: 0.5rem;
}

.product-offer-body {
    padding: 0.55rem 0.65rem 0.7rem;
}

.product-offer-body h3 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.25;
}

.price-line {
    margin: 0.28rem 0 0;
    font-size: 1rem;
}

.sizes-line {
    margin: 0.35rem 0 0;
    color: #4b5563;
    font-size: 0.82rem;
}

.card-controls {
    margin-top: 0.65rem;
    display: grid;
    gap: 0.45rem;
}

.card-controls label {
    font-size: 0.83rem;
    font-weight: 600;
}

.card-controls select,
.card-controls input {
    margin-top: 0.2rem;
    font-size: 0.88rem;
    padding: 0.45rem 0.55rem;
}

.add-to-order-btn {
    width: 100%;
    min-width: 0;
    margin-top: 0.15rem;
    background: #0b5ed7;
    color: #ffffff;
    border-color: #0b5ed7;
    font-weight: 700;
}

.card-error {
    margin: 0.1rem 0 0;
    color: #991b1b;
    font-size: 0.8rem;
    line-height: 1.25;
    min-height: 1em;
}

.row-actions {
    margin-top: 1.6rem;
}

.hint {
    color: #4b5563;
    margin-top: 0;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
}

.checkbox input {
    width: auto;
    margin: 3px;
}

.checkbox.inline {
    margin-top: 1.7rem;
}

.alert {
    border-radius: 10px;
    padding: 0.85rem 1rem;
    border: 1px solid transparent;
}

.alert ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
}

.alert-success {
    background: #ecfdf3;
    border-color: #b7ebc6;
    color: #065f46;
}

.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #854d0e;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid #d8dee6;
    padding: 0.55rem 0.6rem;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f8fafc;
}

#cart-table-wrap .cart-remove {
    width: auto;
    min-width: auto;
    margin-top: 0;
    padding: 0.42rem 0.55rem;
    background: #b42318;
    border-color: #b42318;
    color: #ffffff;
}

.cart-total-line {
    margin: 0.85rem 0 0;
    font-size: 1.05rem;
}

#cart-table-wrap .cart-price,
#cart-table-wrap .cart-item-total {
    white-space: nowrap;
    font-weight: 600;
}

#submit-order-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.inline-form {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    width: 100%;
}

.inline-form input[type="text"],
.inline-form input[type="number"] {
    min-width: 80px;
}

.actions-cell {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.actions-cell form {
    margin: 0;
}

.actions-cell button {
    min-width: auto;
    width: auto;
}

.orders-actions {
    margin-top: 0.85rem;
    display: flex;
    gap: 0.45rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.button-small {
    width: auto;
    min-width: 0;
    padding: 0.38rem 0.55rem;
    font-size: 0.82rem;
}

.admin-thumb {
    display: block;
    margin-top: 0.45rem;
    width: 90px;
    height: 65px;
    object-fit: cover;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    background: #ffffff;
}

.muted {
    color: #6b7280;
    font-size: 0.86rem;
}

.hint-inline {
    display: block;
    margin-top: 0.3rem;
    color: #6b7280;
    font-size: 0.82rem;
}

.order-box {
    border: 1px solid #d9e1ea;
    border-radius: 10px;
    padding: 0.9rem;
    background: #fbfdff;
}

.order-box + .order-box {
    margin-top: 0.8rem;
}

.order-box header {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.admin-link {
    margin-top: 1.2rem;
}

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

@media (max-width: 900px) {
    .grid.two,
    .grid.four,
    .grid.five {
        grid-template-columns: 1fr;
    }

    .checkbox.inline {
        margin-top: 0;
    }

    .row-actions {
        margin-top: 0.4rem;
    }

    .inline-form {
        flex-direction: column;
        align-items: stretch;
    }

    .actions-cell {
        flex-direction: column;
    }

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

}

@media (max-width: 560px) {
    .product-offer-grid {
        grid-template-columns: 1fr;
    }
}

/* Public order page styling */
.public-page {
    background: hsl(0 0% 96%);
    color: hsl(200 10% 15%);
    font-family: "Open Sans", sans-serif;
    --fs-hero-title: clamp(1.875rem, 3.2vw, 2.25rem);
    --fs-hero-subtitle: 0.875rem;
    --fs-hero-category: 0.8rem;
    --fs-intro-title: 1.25rem;
    --fs-section-title: 1.5rem;
    --fs-product-title: 1.12rem;
    --fs-product-price: 1.35rem;
    --fs-body: 0.875rem;
    --fs-label: 0.875rem;
    --fs-input: 0.875rem;
    --fs-button: 0.95rem;
    --fs-cart-empty: 0.9rem;
    --fs-cart-total: 1.25rem;
}

.public-page .public-container {
    width: min(1200px, 94vw);
    margin: 1.7rem auto 2.2rem;
}

.public-page .order-hero {
    background: linear-gradient(135deg, hsl(130 55% 32%), hsl(130 40% 22%));
    border-bottom: 4px solid hsl(48 95% 50%);
}

.public-page .order-hero-inner {
    width: min(1200px, 94vw);
    margin: 0 auto;
    min-height: 108px;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.65rem 0;
}

.public-page .club-mark {
    width: 58px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.public-page .club-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter:
        drop-shadow(1px 0 0 #ffffff)
        drop-shadow(-1px 0 0 #ffffff)
        drop-shadow(0 1px 0 #ffffff)
        drop-shadow(0 -1px 0 #ffffff);
}

.public-page .order-hero-copy h1 {
    margin: 0;
    color: #ffffff;
    text-transform: uppercase;
    font-family: "Oswald", sans-serif;
    font-size: var(--fs-hero-title);
    letter-spacing: 0.02em;
    line-height: 1;
}

.public-page .order-hero-copy p {
    margin: 0.2rem 0 0;
    color: hsl(0 0% 100% / 0.9);
    font-size: var(--fs-hero-subtitle);
}

.public-page .order-hero-copy .order-hero-category {
    color: hsl(0 0% 100% / 0.78);
    font-size: var(--fs-hero-category);
    letter-spacing: 0.02em;
}

.public-page .card {
    background: #ffffff;
    border: 1px solid hsl(200 10% 82%);
    border-radius: 6px;
    padding: 1.5rem;
}

.public-page .card h2,
.public-page .card h3 {
    margin-top: 0;
    color: hsl(200 10% 15%);
    font-family: "Oswald", sans-serif;
    font-size: var(--fs-section-title);
    line-height: 1;
    letter-spacing: 0.01em;
}

.public-page .intro-card h2,
.public-page .cart-card h2,
.public-page .player-card h2 {
    font-size: var(--fs-section-title);
}

.public-page .intro-card h2 {
    font-size: var(--fs-intro-title);
}

.public-page .intro-card {
    background: #ffffff;
}

.public-page .hint {
    color: hsl(200 10% 40%);
    font-size: var(--fs-body);
    margin-top: 0;
}

.public-page .public-order-form > * + * {
    margin-top: 2rem;
}

.public-page .intro-card + .product-offer-grid {
    margin-top: 1.2rem;
}

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

.public-page .product-offer-card {
    border: 1px solid hsl(200 10% 82%);
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.public-page .product-offer-image-wrap {
    width: 100%;
    height: 235px;
    background: #ffffff;
    border-bottom: 1px solid hsl(200 10% 82%);
}

.public-page .product-offer-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    cursor: zoom-in;
}

.public-page .product-offer-body {
    padding: 1rem;
    background: #ffffff;
}

.public-page .product-offer-body h3 {
    font-size: var(--fs-product-title);
    margin-bottom: 0.3rem;
    font-family: "Oswald", sans-serif;
    line-height: 1.15;
}

.public-page .price-line {
    margin: 0;
}

.public-page .price-line strong {
    color: hsl(130 55% 32%);
    font-family: "Oswald", sans-serif;
    font-size: var(--fs-product-price);
    letter-spacing: 0.01em;
    line-height: 1;
}

.public-page .sizes-line {
    margin: 0.05rem 0 0.55rem;
    color: hsl(200 10% 40%);
    font-size: var(--fs-body);
}

.public-page label {
    font-size: var(--fs-label);
    font-weight: 700;
    color: hsl(200 10% 15%);
}

.public-page input,
.public-page select,
.public-page button {
    border: 1px solid hsl(200 10% 82%);
    background: hsl(0 0% 96%);
    border-radius: 6px;
    padding: 0.5rem 0.68rem;
    font-size: var(--fs-input);
    min-height: 40px;
    margin-top: 0.25rem;
}

.public-page button {
    min-height: 36px;
    padding: 0.42rem 0.68rem;
}

.public-page .card-controls {
    gap: 0.5rem;
}

.public-page .add-to-order-btn {
    background: hsl(130 55% 32%);
    border-color: hsl(130 55% 32%);
    color: #ffffff;
    min-height: 38px;
    font-size: var(--fs-button);
    font-weight: 700;
}

.public-page .add-to-order-btn:hover,
.public-page .submit-order-btn:hover {
    filter: brightness(0.94);
}

.public-page .cart-card {
    margin-top: 0.3rem;
}

.public-page #cart-empty {
    margin: 0.9rem 0 0.65rem;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(200 10% 40%);
    font-size: var(--fs-cart-empty);
    font-style: italic;
    border: 0;
    background: transparent;
    padding: 0;
    text-align: center;
}

.public-page #cart-empty[hidden] {
    display: none;
}

.public-page #cart-table-wrap table {
    background: #ffffff;
}

.public-page #cart-table-wrap th,
.public-page #cart-table-wrap td {
    border-color: hsl(200 10% 82%);
    vertical-align: middle;
}

.public-page .cart-total-line {
    margin: 0.95rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid hsl(200 10% 82%);
    text-align: right;
    font-family: "Oswald", sans-serif;
    font-size: var(--fs-cart-total);
    color: hsl(200 10% 15%);
    line-height: 1;
}

.public-page .cart-total-line strong {
    color: hsl(130 55% 32%);
}

.public-page .player-card .grid {
    margin-top: 0.2rem;
    gap: 1rem;
}

.public-page .player-card .checkbox {
    margin-top: 0.55rem;
    font-size: var(--fs-body);
    font-weight: 600;
}

.public-page .player-card .checkbox input {
    width: 21px;
    height: 21px;
    accent-color: hsl(130 55% 32%);
}

.public-page .player-card .recaptcha-wrap {
    margin-top: 0.7rem;
    margin-bottom: 0.7rem;
}

.public-page .submit-order-btn {
    background: hsl(130 55% 32%);
    border-color: hsl(130 55% 32%);
    color: #ffffff;
    font-size: var(--fs-button);
    font-weight: 700;
    padding-inline: 1.2rem;
    width: auto;
    min-width: 220px;
}

.public-page .public-site-footer {
    margin: 1.6rem 0 0;
    text-align: center;
    padding-top: 0.85rem;
}

.public-page .public-footnote {
    margin: 0;
    text-align: center;
    color: hsl(200 10% 40%);
    font-size: var(--fs-body);
}

.public-page .footer-credit {
    margin-top: 0.4rem;
}

.public-page .footer-credit a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: hsl(200 10% 40%);
    font-size: 0.84rem;
    text-decoration: none;
}

.public-page .footer-credit a:hover {
    color: hsl(200 10% 28%);
}

.public-page .footer-credit-logo {
    height: 20px;
    width: auto;
    display: block;
    margin: 0;
}

.product-image-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.78);
}

.product-image-modal[hidden] {
    display: none;
}

.product-image-modal-dialog {
    position: relative;
    width: min(92vw, 940px);
    max-height: 92vh;
    padding: 0.65rem;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid hsl(200 10% 82%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-modal-img {
    display: block;
    max-width: 100%;
    max-height: 84vh;
    object-fit: contain;
}

.product-image-modal-close {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.96);
    color: #111111;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.product-image-modal-close:hover {
    background: #ffffff;
}

body.product-image-modal-open {
    overflow: hidden;
}

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

@media (max-width: 940px) {
    .public-page {
        --fs-hero-title: 2.05rem;
        --fs-intro-title: 1.2rem;
        --fs-section-title: 1.4rem;
        --fs-product-title: 1.05rem;
        --fs-product-price: 1.3rem;
        --fs-body: 0.84rem;
        --fs-label: 0.88rem;
        --fs-input: 0.86rem;
        --fs-button: 0.9rem;
        --fs-cart-empty: 0.84rem;
        --fs-cart-total: 1.15rem;
    }

    .public-page .order-hero-inner {
        min-height: 98px;
    }

    .public-page .club-mark {
        width: 50px;
        height: 74px;
    }

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

}

@media (max-width: 620px) {
    .public-page {
        --fs-hero-title: 1.8rem;
        --fs-intro-title: 1.14rem;
        --fs-section-title: 1.32rem;
        --fs-product-title: 1rem;
        --fs-product-price: 1.24rem;
        --fs-body: 0.82rem;
        --fs-label: 0.82rem;
        --fs-input: 0.84rem;
        --fs-button: 0.88rem;
        --fs-cart-empty: 0.8rem;
        --fs-cart-total: 1.04rem;
    }

    .public-page .public-container {
        width: min(1200px, 96vw);
        margin-top: 1rem;
    }

    .public-page .product-offer-grid,
    .public-page .grid.two {
        grid-template-columns: 1fr;
    }

    .public-page .product-offer-image-wrap {
        height: 205px;
    }

    .public-page .submit-order-btn {
        width: 100%;
    }
}

/* Admin page styling */
.admin-page {
    background: hsl(0 0% 96%);
    color: hsl(200 10% 15%);
    font-family: "Open Sans", sans-serif;
}

.admin-page .admin-hero {
    background: linear-gradient(135deg, hsl(130 55% 32%), hsl(130 40% 22%));
    border-bottom: 4px solid hsl(48 95% 50%);
}

.admin-page .admin-hero-inner {
    width: min(1200px, 94vw);
    margin: 0 auto;
    min-height: 108px;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.65rem 0;
}

.admin-page .club-mark {
    width: 58px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-page .club-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter:
        drop-shadow(1px 0 0 #ffffff)
        drop-shadow(-1px 0 0 #ffffff)
        drop-shadow(0 1px 0 #ffffff)
        drop-shadow(0 -1px 0 #ffffff);
}

.admin-page .admin-hero-copy h1 {
    margin: 0;
    color: #ffffff;
    text-transform: uppercase;
    font-family: "Oswald", sans-serif;
    font-size: clamp(1.55rem, 2.8vw, 2.05rem);
    letter-spacing: 0.02em;
    line-height: 1;
}

.admin-page .admin-hero-copy p {
    margin: 0.2rem 0 0;
    color: hsl(0 0% 100% / 0.9);
    font-size: 0.86rem;
}

.admin-page .admin-hero-copy .admin-hero-category {
    color: hsl(0 0% 100% / 0.78);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.admin-page .admin-container {
    width: min(1200px, 94vw);
    margin: 1.7rem auto 2.2rem;
}

.admin-page .admin-stack > * + * {
    margin-top: 1.15rem;
}

.admin-page .card {
    background: #ffffff;
    border: 1px solid hsl(200 10% 82%);
    border-radius: 6px;
    padding: 1.15rem;
}

.admin-page h2 {
    margin: 0 0 0.8rem;
    color: hsl(200 10% 15%);
    font-family: "Oswald", sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.01em;
    line-height: 1;
}

.admin-page label {
    font-size: 0.86rem;
    font-weight: 700;
    color: hsl(200 10% 15%);
}

.admin-page input,
.admin-page select,
.admin-page button {
    border: 1px solid hsl(200 10% 82%);
    background: hsl(0 0% 96%);
    border-radius: 6px;
    padding: 0.5rem 0.62rem;
    font-size: 0.86rem;
    min-height: 38px;
    margin-top: 0.22rem;
}

.admin-page input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 0;
    padding: 0;
    accent-color: hsl(130 55% 32%);
}

.admin-page button {
    cursor: pointer;
    width: auto;
    min-width: 120px;
    background: hsl(130 55% 32%);
    border-color: hsl(130 55% 32%);
    border: 0;
    color: #ffffff;
    font-weight: 700;
    outline: 0;
    min-height: 34px;
    padding: 0.42rem 0.62rem;
}

.admin-page button:hover {
    filter: brightness(0.94);
}

.admin-page button:focus,
.admin-page button:focus-visible {
    outline: 0;
    box-shadow: none;
}

.admin-page .button-primary {
    background: hsl(130 55% 32%);
    border-color: hsl(130 55% 32%);
}

.admin-page .button-danger {
    background: #b42318;
    border-color: #b42318;
}

.admin-page .button-warning {
    background: #ea8a12;
    border-color: #ea8a12;
}

.admin-page .button-muted {
    background: #eef2f6;
    border: 1px solid #c8d0da;
    color: #243142;
}

.admin-page .button-muted:hover {
    background: #e4e9ef;
    border-color: #bcc6d2;
}

.admin-page .button-small {
    width: auto;
    min-width: 0;
    padding: 0.34rem 0.56rem;
    font-size: 0.79rem;
    min-height: 0;
}

.admin-page .grid.five {
    gap: 0.85rem;
}

.admin-page .admin-create-card .grid.five {
    grid-template-columns:
        minmax(180px, 1.35fr)
        minmax(150px, 1.05fr)
        minmax(250px, 1.8fr)
        minmax(120px, 0.8fr)
        minmax(170px, 1.1fr)
        minmax(150px, 0.95fr);
    align-items: end;
}

.admin-page .admin-create-card .actions {
    width: 100%;
}

.admin-page .admin-create-card .actions button {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0.5rem 0.62rem;
}

.admin-page .admin-create-card .toggle-switch.inline {
    margin-top: 0;
    min-height: 38px;
    align-self: end;
}

.admin-page .admin-create-card .toggle-switch.inline .toggle-label {
    line-height: 1;
}

.admin-page .toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: hsl(200 10% 15%);
    cursor: pointer;
    user-select: none;
}

.admin-page .toggle-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.admin-page .toggle-switch .toggle-slider {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background-color 0.18s ease;
    flex: 0 0 42px;
}

.admin-page .toggle-switch .toggle-slider::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
    transition: transform 0.18s ease;
}

.admin-page .toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background: hsl(130 55% 32%);
}

.admin-page .toggle-switch input[type="checkbox"]:checked + .toggle-slider::after {
    transform: translateX(18px);
}

.admin-page .toggle-switch input[type="checkbox"]:focus-visible + .toggle-slider {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.admin-page th.print-toggle-cell,
.admin-page td.print-toggle-cell {
    text-align: center;
    vertical-align: top;
}

.admin-page td.print-toggle-cell .toggle-switch.inline {
    margin-top: 0.55rem;
}

.admin-page .actions button,
.admin-page .actions-cell button,
.admin-page .orders-actions button {
    margin-top: 0;
}

.admin-page .admin-create-card .checkbox.inline {
    margin-top: 1.35rem;
}

.admin-page td .checkbox.inline {
    margin-top: 0;
}

.admin-page .inline-form {
    width: auto;
    flex: 0 0 auto;
}

.admin-page td.actions-cell {
    display: table-cell;
    vertical-align: top;
}

.admin-page td.actions-cell .inline-form {
    display: block;
    width: 100%;
}

.admin-page td.actions-cell .inline-form + .inline-form {
    margin-top: 0.35rem;
}

.admin-page td.actions-cell button {
    width: 100%;
}

.admin-page td.actions-cell .catalog-main-actions {
    display: block;
}

.admin-page td.actions-cell .catalog-main-actions .inline-form {
    width: 100%;
}

.admin-page td.actions-cell .catalog-main-actions .inline-form + .inline-form {
    margin-top: 0.35rem;
}

.admin-page td.actions-cell .catalog-main-actions button {
    width: 100%;
    min-height: 38px;
    padding: 0.46rem 0.74rem;
}

.admin-page .button-outline-success {
    background: #ffffff;
    border: 1px solid hsl(130 55% 32%);
    color: hsl(130 55% 32%);
}

.admin-page .button-outline-success:hover {
    background: #f3faf5;
    border-color: hsl(130 55% 32%);
}

.admin-page .button-subtle-delete {
    background: #ffffff;
    border: 1px solid #b42318;
    color: #b42318;
}

.admin-page .button-subtle-delete:hover {
    background: #ffffff;
    border-color: #9f1f16;
    color: #9f1f16;
}

.admin-page td.actions-cell .catalog-order-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.admin-page td.actions-cell .catalog-order-actions .inline-form {
    flex: 1 1 0;
    width: auto;
}

.admin-page td.actions-cell .catalog-order-actions .inline-form + .inline-form {
    margin-top: 0;
}

.admin-page td.actions-cell .catalog-order-actions button {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 0.32rem 0;
    background: #ffffff;
    border: 1px solid #9ca3af;
    color: #111111;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1;
}

.admin-page td.actions-cell .catalog-order-actions button:hover {
    background: #f8fafc;
    border-color: #6b7280;
    color: #000000;
}

.admin-page td.actions-cell .catalog-order-actions button:disabled {
    background: #ffffff;
    border: 1px solid #c8d0da;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 1;
}

.admin-page td.actions-cell .catalog-order-actions button:disabled:hover {
    filter: none;
}

.admin-page .table-wrap {
    margin-top: 0.35rem;
}

.admin-page table {
    background: #ffffff;
}

.admin-page th,
.admin-page td {
    border-color: hsl(200 10% 82%);
    padding: 0.45rem 0.52rem;
    font-size: 0.84rem;
}

.admin-page th {
    background: hsl(0 0% 97%);
    color: hsl(200 10% 22%);
    font-family: "Oswald", sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.admin-page .admin-thumb {
    width: 96px;
    height: 72px;
    object-fit: contain;
    padding: 0.2rem;
    border-color: hsl(200 10% 82%);
    border-radius: 6px;
    background: #ffffff;
}

.admin-page td.image-cell {
    text-align: center;
}

.admin-page td.image-cell input[type="file"] {
    display: block;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0.45rem;
}

.admin-page td.image-cell .admin-thumb {
    margin: 0 auto 0.3rem;
}

.admin-page td.image-cell .hint-inline,
.admin-page td.image-cell .muted {
    display: block;
    text-align: center;
}

.admin-page .hint-inline,
.admin-page .muted {
    color: hsl(200 10% 40%);
}

.admin-page .order-box {
    border: 1px solid hsl(200 10% 82%);
    border-radius: 6px;
    padding: 0.9rem;
    background: #ffffff;
}

.admin-page .order-box header strong {
    font-family: "Oswald", sans-serif;
    font-size: 1.05rem;
}

.admin-page .order-box .order-head-left {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.admin-page .order-box .order-head-right {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0.5rem;
}

.admin-page .order-box .order-customer-inline {
    color: hsl(200 10% 22%);
    font-size: 0.86rem;
    font-weight: 600;
}

.admin-page .order-box .order-total-inline {
    font-size: 0.86rem;
    font-weight: 600;
}

.admin-page .order-box .order-total-amount {
    font-size: 0.98rem;
    font-weight: 700;
}

.admin-page .order-box .order-date {
    color: hsl(200 10% 40%);
    font-size: 0.82rem;
}

.admin-page .order-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.18rem 0.52rem;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
}

.admin-page .order-status-badge.is-paid {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.admin-page .order-status-badge.is-unpaid {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.admin-page .order-paid-form {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.admin-page .order-delete-form {
    margin: 0;
}

.admin-page .order-delete-row {
    margin-top: 0.45rem;
    display: flex;
    justify-content: flex-start;
}

.admin-page .order-paid-row {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.42rem;
}

.admin-page .order-paid-form .order-paid-toggle {
    display: inline-flex;
    align-items: center;
    height: 24px;
    gap: 0;
}

.admin-page .order-status-text {
    display: inline-flex;
    align-items: center;
    height: 24px;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1;
}

.admin-page .order-status-text.is-paid {
    color: #15803d;
}

.admin-page .order-status-text.is-unpaid {
    color: #b42318;
}

.admin-page .order-box p {
    margin: 0.5rem 0 0.65rem;
    font-size: 0.86rem;
}

.admin-page .orders-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: -0.05rem 0 0.65rem;
    font-size: 0.84rem;
}

.admin-page .orders-filter-link {
    display: inline-flex;
    align-items: center;
    border: 1px solid hsl(200 10% 82%);
    border-radius: 999px;
    padding: 0.18rem 0.56rem;
    color: hsl(200 10% 28%);
    text-decoration: none;
    font-weight: 600;
}

.admin-page .orders-filter-link.is-active {
    background: hsl(130 55% 32%);
    border-color: hsl(130 55% 32%);
    color: #ffffff;
}

.admin-page .order-items-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 0.85rem;
}

.admin-page .order-items-row .order-items-toggle {
    flex: 1 1 auto;
    margin-top: 0;
}

.admin-page .order-items-row .order-paid-row {
    flex: 0 0 auto;
    margin-top: 0;
    align-self: flex-start;
}

.admin-page .order-items-toggle {
    margin-top: 0;
}

.admin-page .order-items-toggle summary {
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 700;
    color: hsl(200 10% 22%);
    position: relative;
    list-style: none;
    padding-left: 1.15rem;
    margin-left: 0.15rem;
    outline: 0;
}

.admin-page .order-items-toggle summary::marker {
    content: "";
}

.admin-page .order-items-toggle summary::-webkit-details-marker {
    display: none;
}

.admin-page .order-items-toggle summary::before {
    content: "▸";
    position: absolute;
    left: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    color: hsl(200 10% 26%);
}

.admin-page .order-items-toggle[open] summary::before {
    transform: translateY(-50%) rotate(90deg);
}

.admin-page .order-items-toggle[open] summary {
    margin-bottom: 0.45rem;
}

@media (max-width: 860px) {
    .admin-page .order-items-row {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .admin-page .order-items-row .order-paid-row {
        margin-left: auto;
    }
}

.admin-page .orders-actions {
    margin-top: 0.95rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
    align-items: center;
}

.admin-page .admin-back-link {
    margin: 0.15rem 0 0;
    font-size: 0.9rem;
}

.admin-page .admin-back-link a {
    color: hsl(130 55% 32%);
    font-weight: 700;
    text-decoration: none;
}

.admin-page .admin-back-link a:hover {
    text-decoration: underline;
}

.admin-page .alert {
    border-radius: 6px;
}

@media (max-width: 1120px) {
    .admin-page .grid.five {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .admin-page .admin-hero-inner {
        min-height: 98px;
    }

    .admin-page .club-mark {
        width: 50px;
        height: 74px;
    }

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

}

@media (max-width: 640px) {
    .admin-page .admin-container {
        width: min(1200px, 96vw);
        margin-top: 1rem;
    }

    .admin-page .grid.five,
    .admin-page .grid.two {
        grid-template-columns: 1fr;
    }

}
