:root {
    --red: #e52131;
    --ink: #282a24;
    --muted: #77786d;
    --cream: #fffdf7;
    --line: #e9e8df
}

.recaptcha-field { margin: 20px 0 }
.password-field { position: relative; margin-bottom: 16px }
.password-field input:not([type=checkbox]):not([type=radio]) { padding-right: 52px; margin-bottom: 0 }
.password-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 0; color: var(--ink) }
.password-eye-slash { display: none }
.password-toggle[aria-pressed="true"] .password-eye-slash { display: block }

.customer-auth { max-width: 850px; margin: auto }
.customer-orders { display: grid; gap: 18px; margin: 24px 0 }
.customer-order { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; overflow-wrap: anywhere }
.customer-order p { margin-bottom: 0 }
.customer-status { display: inline-block; border-radius: 24px; padding: 8px 18px; background: #e8f0dd; font-weight: 800 }
.customer-item { padding: 16px 0; border-bottom: 1px solid var(--line) }
.customer-message { white-space: pre-wrap; overflow-wrap: anywhere }

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Nunito', Arial, sans-serif;
    font-weight: 600;
    line-height: 1.65
}

h1, h2, h3 {
    font-family: 'Baloo 2', sans-serif;
    line-height: 1.08;
    letter-spacing: -.035em;
    margin: 0 0 20px;
    font-weight: 800
}

h1 {
    font-size: clamp(38px, 5vw, 76px)
}

h2 {
    font-size: clamp(28px, 3.5vw, 52px)
}

h3 {
    font-size: 25px
}

em {
    font-style: normal;
    color: var(--red)
}

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

a:hover {
    color: var(--red)
}

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

button, a, input, select, textarea {
    touch-action: manipulation
}

button {
    cursor: pointer
}

button:disabled {
    opacity: .6;
    cursor: wait
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid #dc9023;
    outline-offset: 3px
}

[hidden] {
    display: none !important
}

.announcement {
    display: flex;
    justify-content: space-between;
    background: var(--ink);
    color: white;
    padding: 8px 5%;
    font-size: 11px;
    letter-spacing: .06em
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 22px 5%;
    border-bottom: 1px solid var(--line)
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0
}

.user-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%
}

.user-link:hover {
    background: #f9eada
}

header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    font-size: 14px;
    font-weight: 800
}

.logo {
    display: block;
    position: relative;
    width: 115px;
    aspect-ratio: 3.25;
    overflow: hidden
}

.logo img {
    position: absolute;
    top: -111%;
    left: 0;
    width: 100%;
    height: auto
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 16px;
    background: var(--red);
    color: white;
    padding: 14px 23px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 4px 0 #b91022;
    transition: transform .2s
}

.button:hover {
    color: white;
    transform: translateY(-2px)
}

.button b {
    display: flex;
    align-items: center;
    justify-content: center;

    background: white;
    color: var(--red);
    border-radius: 50%;

    width: 24px;
    height: 24px;

    font-size: 12px;
    line-height: 1;
}

.button.outline {
    border: 2px solid var(--red);
    background: transparent;
    color: var(--red);
    box-shadow: none
}

.full {
    width: 100%
}

.small-button, .chip, .quiet {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 13px;
    background: white;
    border: 1px solid #dcded3;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    color: var(--ink)
}

.quiet {
    background: transparent
}

.danger {
    color: #c31827
}

.eyebrow {
    display: block;
    font-size: 10px;
    letter-spacing: .18em;
    font-weight: 800;
    margin-bottom: 20px
}

.hero {
    padding: 48px 5% 25px;
    text-align: center;
    background: radial-gradient(ellipse at 10% 45%, #ffe8d980, transparent 40%), radial-gradient(ellipse at 90% 60%, #ebf4de80, transparent 40%)
}

.hero h1 {
    font-size: clamp(65px, 8vw, 112px);
    margin: 15px 0
}

.hero em {
    display: inline-block;
    rotate: -4deg;
    text-shadow: 2px 3px #ffd4d6
}

.hero p {
    color: #6b6d61
}

.hero-art {
    position: relative;
    max-width: 950px;
    height: 340px;
    margin: 12px auto
}

.hero-products {
    height: 100%;
    width: 100%;
    object-fit: contain
}

.hero-logo {
    position: absolute;
    top: 41%;
    left: 34%;
    width: 32%;
    transform: rotate(-7deg);
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(3px 5px #a41624) drop-shadow(0 14px 9px #0002)
}

.hero-logo .logo {
    width: 100%
}

.marquee {
    background: var(--red);
    color: white;
    font-family: 'Baloo 2';
    font-size: clamp(16px, 3vw, 38px);
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    padding: 14px 0;
    text-align: center;
    transform: rotate(-1deg)
}

.section {
    padding: 70px 6%
}

.soft {
    background: #f6f7f0
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin: 20px 0 30px
}

.section-heading h1, .section-heading h2 {
    margin-bottom: 0
}

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

.category-swiper {
    margin-top: 24px;
    padding: 4px
}

.category-swiper .swiper-wrapper {
    align-items: stretch
}

.category-swiper:not(.swiper-initialized) .swiper-wrapper {
    gap: 14px;
    overflow-x: auto
}

.category-swiper .category-card {
    width: 280px;
    height: auto;
    min-height: 88px
}

.category-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border-radius: 16px;
    background: #f9eada;
    min-width: 0
}

.category-card:nth-child(3n+2) {
    background: #eeecf8
}

.category-card:nth-child(3n) {
    background: #e8f0dd
}

.category-card > span {
    flex-shrink: 0;
    font-size: 22px
}

.category-card h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.25;
    overflow-wrap: anywhere
}

.category-card:hover {
    box-shadow: inset 0 0 0 1px currentColor
}

.category-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 20px
}

.category-controls button {
    border: 1px solid var(--red);
    border-radius: 24px;
    padding: 8px 16px;
    background: var(--cream);
    color: var(--red)
}

.category-controls button:disabled {
    opacity: .4
}

.product-image {
    height: 300px;
    background: #f6f5f0;
    border: 2px solid var(--red);
    border-radius: 25px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .5s
}

.product-card:hover .product-image img {
    transform: translateY(-6px) rotate(-3deg)
}

.product-card h3 {
    margin: 12px 0 3px;
    line-height: 1.35;
    min-height: calc(1.35em * 2);

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card p {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 20px
}

.product-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 10px
}

.product-meta > span:first-child {
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4
}

.badge {
    display: inline-block;
    white-space: nowrap;
    border-radius: 30px;
    background: #eeeee7;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800
}

.stock, .status-answered {
    background: #dfefdf;
    color: #286e3e
}

.out, .status-closed {
    background: #eeeeea;
    color: #717267
}

.status-new {
    background: #ffe3e5;
    color: #c12332
}

.status-in_progress {
    background: #fff0c9;
    color: #95671a
}

.home-extras {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 25px;
    padding: 70px 6%
}

.home-extras > a {
    padding: 40px;
    border-radius: 30px;
    background: #edf4da
}

.home-extras > a + a {
    background: #fff0e1
}

.brand {
    background: var(--ink);
    color: white;
    padding: 65px 6%;
    border-radius: 45px 45px 0 0
}

.brand-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px
}

.brand-heading h2 {
    font-size: clamp(40px, 6vw, 90px)
}

.brand-heading em {
    color: #ffc85f
}

.brand-logo {
    flex: 0 1 330px;
    min-width: 180px;
    animation: float 5s ease-in-out infinite;
    filter: drop-shadow(3px 5px #a41624) drop-shadow(0 18px 14px #0005)
}

.brand-logo .logo {
    width: 100%;
    rotate: -8deg
}

footer {
    padding: 40px 6%
}

.footer-top, .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px
}

.footer-top {
    padding-bottom: 25px
}

.footer-top p {
    font-family: 'Baloo 2';
    font-size: 24px
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    font-size: 11px
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 30px 0
}

.search {
    max-width: 600px
}

.search > div {
    display: flex;
    gap: 12px
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(200px, 1.4fr) minmax(200px, 1fr) auto;
    align-items: end;
    gap: 18px;
    margin: 28px 0 0;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}
.catalog-toolbar label { display: flex; flex-direction: column; gap: 8px; margin: 0; min-width: 0; font-size: 13px }
.catalog-toolbar input, .catalog-toolbar select { width: 100%; min-width: 0; min-height: 52px; margin: 0; border-radius: 10px; background-color: var(--cream) }
.catalog-toolbar .button { min-height: 52px; margin: 0; padding: 12px 26px; align-self: end; white-space: nowrap }
.catalog-filter-summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 16px 0 26px }
.catalog-filter-summary > p { margin: 0; color: var(--muted); font-size: 13px }
.catalog-filter-summary strong { color: var(--ink) }
.catalog-active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0 }
.catalog-filter-tag { display: inline-flex; align-items: center; gap: 12px; padding: 6px 12px; border: 1px solid #dfdfd4; border-radius: 30px; background: #f4f5ee; font-size: 12px; overflow-wrap: anywhere }
.catalog-filter-tag span { font-size: 18px; line-height: 1 }
.catalog-reset { padding: 6px; font-size: 12px; text-decoration: underline; text-underline-offset: 3px }
.catalog-empty { grid-column: 1 / -1; padding: 35px 20px; text-align: center }
.catalog-empty h2 { font-size: 28px }
@media (max-width: 760px) {
    .catalog-toolbar { grid-template-columns: minmax(0, 1fr) auto; gap: 16px }
    .catalog-search-field { grid-column: 1 / -1 }
}
@media (max-width: 480px) {
    .catalog-toolbar { grid-template-columns: minmax(0, 1fr); padding: 16px }
    .catalog-toolbar .button { width: 100% }
    .catalog-filter-summary { align-items: flex-start; flex-direction: column }
}

.detail-grid, .quote-layout {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 50px;
    margin-top: 35px
}

.detail-photo {
    background: #f1f2e9;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    padding: 50px
}

.detail-photo img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    mix-blend-mode: multiply
}

.lead {
    font-size: 20px
}

.preserve {
    white-space: pre-wrap;
    overflow-wrap: anywhere
}

dl > div {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
    font-size: 13px
}

dt {
    color: var(--muted)
}

dd {
    margin: 0;
    text-align: right;
    overflow-wrap: anywhere
}

.muted, small {
    font-size: 12px;
    color: var(--muted)
}

.quantity-add {
    display: flex;
    align-items: end;
    gap: 20px;
    margin: 25px 0
}

.quantity-add input {
    max-width: 100px
}

.panel {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 23px;
    background: white;
    margin-bottom: 25px
}

.panel h2 {
    font-size: 29px
}

.panel label {
    margin: 16px 0
}

.narrow {
    max-width: 780px;
    margin: auto
}

.notice {
    padding: 17px 25px;
    margin: 20px 5%;
    border-radius: 15px;
    border: 1px solid #cde0cd;
    background: #eff8e9;
    font-size: 14px
}

.notice.warning {
    background: #fff4d7;
    border-color: #f5dc8c
}

.notice.error {
    background: #fff0f0;
    border-color: #f0bdc4
}

.notice a {
    text-decoration: underline
}

.notice ul {
    margin-bottom: 0
}

label {
    display: block;
    font-size: 13px;
    font-weight: 800
}

input:not([type=checkbox]):not([type=radio]), textarea, select {
    display: block;
    width: 100%;
    border: 1px solid #dcded3;
    border-radius: 11px;
    padding: 8px 13px;
    background: white;
    min-width: 0;
    margin-top: 6px;
    color: var(--ink)
}

textarea {
    resize: vertical
}

.form-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 18px
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 12px !important;
    line-height: 1.7;
    cursor: pointer
}

.consent input {
    position: static !important;
    appearance: auto;
    width: 19px !important;
    height: 19px !important;
    flex: 0 0 19px;
    margin: 2px 0 0;
    accent-color: var(--red)
}

.consent a {
    text-decoration: underline
}
.profile-step {
    border: 0;
    padding: 0;
}

.profile-step legend {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 18px;
}


/* 2 cartes côte à côte */
.profile-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}


/* Carte */
.profile-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;

    min-height: 100px;
    padding: 18px 20px;

    border: 1.5px solid #eee8dd;
    border-radius: 18px;
    background: #fff;

    cursor: pointer;
}


/* cacher le radio classique */
.profile-card > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


/* hover */
.profile-card:hover {
    border-color: rgba(220, 35, 45, .35);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}


/* carte sélectionnée */
.profile-card:has(input:checked) {
    border-color: var(--red);
    background: #fff7f4;
    box-shadow:
            0 0 0 3px rgba(220, 35, 45, .07),
            0 12px 30px rgba(0, 0, 0, .05);
}


/* icône principale */
.profile-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    align-self: center;

    border-radius: 15px;
    background: #f7f4ef;
    color: #222;

    font-size: 23px;
}


/* icône sélectionnée */
.profile-card:has(input:checked) .profile-icon {
    background: var(--red);
    color: #fff;
    transform: scale(1.04);
}


/* texte */
.profile-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;

    padding-right: 40px;
}
.profile-content strong {
    font-size: 16px;
    font-weight: 700;
    color: #171717;
}

.profile-content small {
    font-size: 13px;
    line-height: 1.4;
    color: #817b73;
}


/* petit check à droite */
.profile-check {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #eeeae4;
    color: transparent;

    font-size: 15px;

    transition: .25s ease;
}
/* check visible quand sélectionné */
.profile-card:has(input:checked) .profile-check {
    background: var(--red);
    color: #fff;
}


/* texte sous les options */
.profile-step .muted {
    margin-top: 15px;
    font-size: 13px;
    color: #8a847c;
}


/* Responsive mobile */
@media (max-width: 650px) {
    .profile-options {
        grid-template-columns: 1fr;
    }

    .profile-card {
        min-height: 90px;
    }
}
.quote-form {
    background: #fff9ed;
    align-self: start;
    box-shadow: 0 10px 30px #43321c08
}

.quote-form fieldset {
    border: 0;
    margin: 0 0 20px;
    padding: 0;
    animation: appear .3s ease
}

.quote-form legend {
    font-family: 'Baloo 2';
    font-size: 25px;
    font-weight: 800;
    padding: 20px 0
}

.step-indicator {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--red);
    border-bottom: 3px solid #f5d6cb;
    padding-bottom: 15px
}

.step-controls {
    display: flex;
    justify-content: space-between;
    gap: 15px
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 25px;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 20px;
    margin-bottom: 20px;
    background: white
}

.cart-item img {
    width: 100px;
    height: 120px;
    object-fit: contain;
    mix-blend-mode: multiply
}

.cart-item h3 {
    font-size: 24px;
    margin: 0
}

.inline-form {
    display: flex;
    align-items: end;
    gap: 12px;
    margin: 12px 0
}

.inline-form input {
    max-width: 90px
}

.receipt {
    background: #ecf5e7;
    padding: 30px;
    border-radius: 25px;
    margin: 30px 0
}

.actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0
}

.pagination {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 13px;
    margin: 30px 0
}

.activity-card {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 25px;
    background: white
}

.activity-card img, .activity-symbol {
    height: 220px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 20px
}

.activity-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2db;
    border-radius: 20px;
    font-family: 'Baloo 2';
    font-size: 55px;
    color: var(--red)
}

.activity-card h2 {
    font-size: 30px;
    margin: 15px 0
}

.worksheet {
    max-width: 794px;
    background: white;
    margin: 35px auto;
    padding: 40px;
    border: 1px solid var(--line);
    color: black;
    min-height: 1000px;
    position: relative
}

.worksheet h2 {
    font-size: 32px;
    margin-top: 30px
}

.worksheet h3 {
    font-size: 22px;
    margin-top: 35px
}

.worksheet-header, .worksheet-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    letter-spacing: .08em
}

.worksheet-footer {
    margin-top: 45px;
    border-top: 1px solid #ddd;
    padding-top: 20px
}

.coloring {
    display: block;
    width: 100%;
    max-height: 800px;
    object-fit: contain
}

.trace {
    font-size: 60px;
    color: #c0c0c0
}

.exercise-row {
    font-size: 25px;
    padding: 15px 0
}

.exercise-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 20px;
    font-size: 24px
}

.answer {
    display: none;
    color: #535353;
    font-size: 16px
}

.with-answers .answer {
    display: block
}

.writing-line {
    height: 60px;
    border-bottom: 1px solid #aaa
}

.drawing-area {
    height: 200px;
    border: 1px dashed #aaa
}

.admin-body {
    background: #f6f7f1
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 235px;
    background: #fffef9;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 34px 24px
}

.sidebar > .eyebrow {
    font-size: 9px;
    margin: 42px 0 15px
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    font-weight: 800
}

.sidebar nav a {
    padding: 13px 14px;
    border-radius: 12px
}

.sidebar nav a.active {
    background: #ffe6e6;
    color: var(--red)
}

.admin-user {
    margin-top: auto;
    display: grid;
    gap: 6px;
    font-size: 13px;
    overflow-wrap: anywhere
}

.admin-main {
    margin-left: 235px;
    padding: 25px 40px 60px
}

.admin-main h1 {
    font-size: clamp(32px, 3vw, 48px)
}

.admin-main h2 {
    font-size: 28px
}

.admin-main > .notice {
    margin: 20px 0
}

.admin-top {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding: 0 0 22px;
    margin-bottom: 35px;
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--muted)
}

.metrics {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 18px;
    margin: 30px 0 45px
}

.metric {
    display: grid;
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 23px;
    font-size: 12px
}

.metric:first-child {
    background: #ffe8e8;
    border-color: #f9cdd0
}

.metric strong {
    font-family: 'Baloo 2';
    font-size: 48px;
    line-height: 1.3
}

.table-wrap {
    width: 100%;
    overflow: auto;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
    text-align: left
}

th {
    padding: 17px 20px;
    background: #f1f3ea;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
    white-space: nowrap
}

td {
    padding: 20px;
    border-top: 1px solid var(--line);
    vertical-align: middle
}

td small {
    display: block;
    margin-top: 5px
}

td strong {
    font-size: 12px
}

td .small-button {
    white-space: nowrap
}

.empty {
    text-align: center;
    padding: 50px
}

.filter-bar {
    display: flex;
    align-items: end;
    gap: 15px;
    margin: 25px 0
}

.filter-bar label:first-child {
    flex: 1
}

.filter-bar .button {
    margin-bottom: 4px
}

.filter-bar > a {
    font-size: 12px;
    margin: 12px 0
}

.table-product {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 180px
}

.product-page-heading { align-items: flex-start; flex-wrap: wrap; gap: 20px }
.product-page-actions { flex-wrap: wrap; gap: 10px }
.product-filters { margin: 28px 0 20px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 5px 20px #282a2405 }
.product-filters-heading, .product-filters-footer, .product-results { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap }
.product-filters-heading { margin-bottom: 20px }
.admin-main .product-filters-heading h2 { font-family: inherit; font-size: 16px; letter-spacing: 0; margin: 0 }
.filter-reset { font-size: 12px; text-decoration: underline; text-underline-offset: 4px }
.product-filters-fields { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 1fr) minmax(155px, 1fr); gap: 18px }
.product-filters label { display: flex; flex-direction: column; gap: 7px; margin: 0; min-width: 0; font-size: 12px }
.product-filters input, .product-filters select { width: 100%; min-width: 0; margin: 0; min-height: 46px; border-radius: 10px; background: var(--cream) }
.product-filters-footer { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); justify-content: flex-end }
.product-results { margin: 20px 0 12px; font-size: 13px }
.product-results > span { color: var(--muted); font-size: 12px }
@media (max-width: 760px) {
    .product-filters { padding: 18px }
    .product-filters-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) }
    .product-filter-search { grid-column: 1 / -1 }
    .product-page-actions { width: 100% }
    .product-page-actions > a { flex: 1 1 180px; text-align: center }
}
@media (max-width: 480px) {
    .product-filters-fields { grid-template-columns: minmax(0, 1fr) }
    .product-filters-footer .button { width: 100% }
}

.table-product img {
    width: 45px;
    height: 60px;
    object-fit: contain
}

.stock-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 0;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap
}

.stock-toggle > span {
    display: block;
    width: 34px;
    height: 20px;
    border-radius: 20px;
    background: #d6d8ce;
    position: relative
}

.stock-toggle > span:after {
    content: '';
    width: 14px;
    height: 14px;
    position: absolute;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: white
}

.stock-toggle.on > span {
    background: #32814b
}

.stock-toggle.on > span:after {
    left: 17px
}

.admin-detail {
    display: grid;
    grid-template-columns:minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 25px;
    align-items: start
}

.admin-detail .panel .notice {
    margin: 20px 0
}

.reply-panel {
    background: #fff8ed
}

.reply {
    border-top: 1px solid var(--line);
    padding: 20px 0
}

.reply .section-heading {
    margin: 0 0 5px;
    font-size: 12px
}

.image-preview {
    height: 180px;
    max-width: 100%;
    object-fit: contain;
    margin-top: 20px
}

@keyframes float {
    0%, 100% {
        translate: 0 5px;
        rotate: 1deg
    }
    50% {
        translate: 0 -12px;
        rotate: -2deg
    }
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(8px)
    }
    to {
        opacity: 1;
        transform: none
    }
}

.paused * {
    animation-play-state: paused !important
}

@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

@media (max-width: 1000px) {
    header nav {
        gap: 15px;
        font-size: 12px
    }

    .admin-main {
        padding: 25px
    }

    .sidebar {
        width: 205px
    }

    .admin-main {
        margin-left: 205px
    }

    .admin-detail {
        grid-template-columns:1fr
    }

    .metrics {
        grid-template-columns:1fr 1fr
    }

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

    .detail-grid, .quote-layout {
        gap: 25px
    }

    .brand-logo {
        flex-basis: 250px
    }

    .form-grid {
        grid-template-columns:1fr;
        gap: 0
    }
}

@media (max-width: 700px) {
    header {
        flex-wrap: wrap;
        padding: 18px 6%
    }

    header nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap
    }

    .announcement span {
        display: none
    }

    .hero-art {
        height: 240px
    }

    .hero-logo {
        left: 30%;
        width: 40%
    }

    .section {
        padding: 45px 6%
    }

    .home-extras, .detail-grid, .quote-layout {
        grid-template-columns:1fr
    }

    .home-extras {
        padding: 35px 6%
    }

    .brand-heading {
        flex-wrap: wrap
    }

    .brand-logo {
        margin: 15px 0 30px auto;
        flex: 0 0 200px
    }

    .footer-top, .footer-bottom {
        flex-wrap: wrap
    }

    .section-heading {
        align-items: start;
        flex-wrap: wrap
    }

    .category-card {
        padding: 18px 20px
    }

    .product-image {
        height: 220px;
        padding: 15px
    }

    .product-card h3 {
        font-size: 21px
    }

    .product-meta {
        flex-wrap: wrap
    }

    .product-grid {
        gap: 16px
    }

    .product-card .button {
        font-size: 11px;
        padding: 12px 9px
    }

    .detail-photo {
        min-height: 300px
    }

    .admin-body {
        display: block
    }

    .sidebar {
        position: static;
        width: 100%;
        padding: 20px
    }

    .sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 20px;
        gap: 5px
    }

    .sidebar > .eyebrow {
        display: none
    }

    .admin-user {
        margin-top: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap
    }

    .admin-user small {
        display: none
    }

    .admin-main {
        margin: 0;
        padding: 25px 5%
    }

    .filter-bar {
        flex-wrap: wrap
    }

    .filter-bar label:first-child {
        min-width: 100%
    }

    .panel {
        padding: 22px
    }

    .worksheet {
        padding: 20px;
        min-height: 800px
    }

    .worksheet h2 {
        font-size: 26px
    }

    .exercise-row {
        font-size: 20px
    }

    .trace {
        font-size: 35px
    }

    .cart-item {
        gap: 12px
    }

    .cart-item img {
        width: 65px
    }

    .cart-item h3 {
        font-size: 20px
    }
}

@page {
    size: A4;
    margin: 12mm
}

@media print {
    body {
        background: white
    }

    .announcement, header, footer, .no-print, .notice {
        display: none !important
    }

    .worksheet-section {
        padding: 0
    }

    .worksheet {
        border: 0;
        padding: 0;
        margin: 0;
        min-height: 0;
        width: 100%;
        max-width: none;
        font-size: 12px
    }

    .worksheet .coloring {
        max-height: 225mm
    }

    .worksheet h2 {
        font-size: 28px
    }

    .worksheet-footer {
        margin-top: 25px
    }

    .worksheet-header {
        font-size: 10px
    }

    .exercise-grid p {
        break-inside: avoid
    }
}

.partner-section {
    padding: 75px 6%;
    background: #fffdf7;
    border-top: 1px solid #eee9dc
}

.partner-section h2 {
    font-size: clamp(34px, 4.5vw, 64px);
    margin: 10px 0 18px
}

.partner-section h2 em {
    color: #e52131
}

.partner-note {
    font-size: 12px;
    color: #777568;
    max-width: 650px;
    margin-bottom: 30px
}

.partner-logos {
    display: grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    gap: 16px
}

.partner-tile {
    min-height: 135px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 20px 12px;
    border: 1px solid #e7e5dc;
    border-radius: 20px;
    background: white;
    text-align: center;
    transition: transform .3s, box-shadow .3s
}

.partner-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px #262a2410
}

.partner-tile small {
    font-size: 8px;
    letter-spacing: .18em;
    color: #969082;
    text-transform: uppercase
}

.partner-wordmark {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 800;
    font-size: 24px;
    line-height: 1.1;
    color: #334d42
}

.partner-tile:nth-child(5n+2) .partner-wordmark {
    font-family: Georgia, serif;
    font-style: italic;
    color: #914331
}

.partner-tile:nth-child(5n+3) .partner-wordmark {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -.06em;
    color: #4d4b79
}

.partner-tile:nth-child(5n+4) .partner-wordmark {
    color: #c75737;
    font-size: 30px
}

.partner-tile:nth-child(5n) .partner-wordmark {
    color: #315975;
    text-transform: uppercase;
    font-size: 20px;
    letter-spacing: .04em
}

.partner-tile img {
    width: 100%;
    height: 65px;
    object-fit: contain
}

.brand-logo-float, .brand-logo {
    border: 2px solid #ffc85f;
    border-radius: 26px;
    padding: 22px 20px;
    background: #ffffff06;
    box-shadow: inset 0 0 0 6px #ffffff04
}

@media (max-width: 850px) {
    .partner-logos {
        grid-template-columns:repeat(3, minmax(0, 1fr))
    }
}

@media (max-width: 600px) {
    .partner-section {
        padding: 50px 6%
    }

    .partner-logos {
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap: 10px
    }

    .partner-tile {
        min-height: 120px
    }

    .partner-wordmark {
        font-size: 22px
    }

    .brand-logo-float, .brand-logo {
        padding: 18px 14px;
        border-radius: 22px
    }
}

@media (prefers-reduced-motion: reduce) {
    .partner-tile {
        transition: none
    }

    .partner-tile:hover {
        transform: none
    }
}

html, body {
    max-width: 100%;
    overflow-x: hidden
}
.inline-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.inline-form form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.remove-button {
    background: transparent;
    border: 1px solid #d92d20;
    color: #d92d20;
}

.remove-button:hover {
    background: #d92d20;
    color: #fff;
}
