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

:root {
    --accent-color: #4769a4;
    --heading-color: #37517e; /* entête fabriquequebec.ca */
    --text-color: #1f2b3d;
    --surface-color: #ffffff;
    --muted-bg: #f5f6f8;
    --default-font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --heading-font: "Jost", sans-serif;
    --nav-font: "Poppins", sans-serif;
}

/* Desktop-only global scale to mimic browser zoom 80% (mobile/tablet unchanged). */
@media (min-width: 992px) {
    html {
        zoom: 0.8;
    }
    /* Fallback for browsers without zoom support (ex: Firefox). */
    @supports not (zoom: 1) {
        :root {
            font-size: 80%;
        }
    }
}

body {
    background-color: #ffffff;
    color: var(--text-color);
    font-family: var(--default-font);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-family: var(--heading-font);
}

.navbar {
    box-shadow: 0 2px 10px rgba(55, 81, 126, 0.08);
    background-color: var(--heading-color);
}

.navbar-brand {
    font-family: var(--nav-font);
    font-weight: 600;
    letter-spacing: 0;
    color: #fff;
    padding-top: 6px;
    padding-bottom: 6px;
}

.navbar-brand img,
.brand-logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.nav-link {
    font-family: var(--nav-font);
    color: #f0f4ff;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--accent-color);
}

.nav-link.active {
    color: color-mix(in srgb, var(--accent-color), #fff 40%);
}

.nav-link.edit-in-progress,
.nav-link.task-alert {
    color: color-mix(in srgb, var(--accent-color), #fff 50%);
    font-weight: 600;
    position: relative;
    animation: editPulse 2.4s ease-in-out infinite;
}

.nav-link.edit-in-progress::after,
.nav-link.task-alert::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 6px;
    border-radius: 50%;
    background-color: #ffd28a;
    box-shadow: 0 0 0 0 rgba(255, 210, 138, 0.6);
    animation: editDot 2.4s ease-in-out infinite;
}

@keyframes editPulse {
    0%, 100% {
        color: color-mix(in srgb, var(--accent-color), #fff 48%);
    }
    50% {
        color: #ffe3a3;
    }
}

@keyframes editDot {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 210, 138, 0.6);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 6px rgba(255, 210, 138, 0.1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-link.edit-in-progress,
    .nav-link.edit-in-progress::after,
    .nav-link.task-alert,
    .nav-link.task-alert::after {
        animation: none;
    }
}

.card {
    border: 1px solid #e6ecf0;
    background-color: var(--surface-color);
    color: var(--text-color);
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: color-mix(in srgb, var(--accent-color), #000 12%);
    border-color: color-mix(in srgb, var(--accent-color), #000 12%);
    box-shadow: 0 0 0 0.2rem rgba(55, 81, 126, 0.25);
}

.btn-primary:active,
.btn-primary.active {
    background-color: color-mix(in srgb, var(--accent-color), #000 18%);
    border-color: color-mix(in srgb, var(--accent-color), #000 18%);
}

.text-primary {
    color: var(--accent-color) !important;
}

.bg-primary {
    background-color: var(--accent-color) !important;
}

.border-primary {
    border-color: var(--accent-color) !important;
}

.link-primary {
    color: var(--accent-color) !important;
}

.link-primary:hover,
.link-primary:focus {
    color: color-mix(in srgb, var(--accent-color), #000 12%) !important;
}

.btn-outline-primary {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.navbar-dark .navbar-toggler {
    border-color: rgba(255,255,255,0.6);
}

.navbar-dark .navbar-toggler-icon {
    filter: invert(1) brightness(2);
}

.brand-logo span {
    font-size: inherit;
}

.brand-text {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.text-heading {
    color: var(--heading-color) !important;
}

.auth-card,
#sshAccessModal .modal-content {
    border-radius: 16px;
    overflow: hidden;
}

.auth-card {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.biometric-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--heading-color), #fff 70%), #ffffff 70%);
    border: 1px solid color-mix(in srgb, var(--heading-color), #fff 55%);
    color: var(--heading-color);
    box-shadow: 0 10px 20px rgba(55, 81, 126, 0.12);
}

.biometric-icon i {
    font-size: 1.45rem;
}

@media (max-width: 575.98px) {
    .auth-card,
    #sshAccessModal .modal-content {
        border-radius: 16px !important;
    }
}

.navbar.top-nav {
    background-color: var(--heading-color) !important;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar.top-nav .navbar-brand,
.navbar.top-nav .brand-text {
    color: #fff !important;
}

.navbar.top-nav .nav-link {
    color: #f0f4ff !important;
}

.navbar.top-nav .nav-link:hover,
.navbar.top-nav .nav-link:focus {
    color: var(--accent-color) !important;
    font-weight: 600;
}

.navbar.top-nav .nav-link.active {
    color: color-mix(in srgb, var(--accent-color), #fff 40%) !important;
    font-weight: 600;
}

.navbar.top-nav .btn-info {
    background-color: color-mix(in srgb, var(--accent-color), #fff 25%);
    border-color: color-mix(in srgb, var(--accent-color), #fff 25%);
}

.navbar.top-nav .btn-info:hover {
    background-color: color-mix(in srgb, var(--accent-color), #000 10%);
    border-color: color-mix(in srgb, var(--accent-color), #000 10%);
}

.navbar.top-nav .btn-outline-light {
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}

.navbar.top-nav .btn-outline-light:hover {
    background-color: #fff;
    color: var(--heading-color);
}

.navbar.top-nav .navbar-offcanvas {
    background-color: var(--heading-color);
    color: #fff;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.navbar.top-nav .dropdown-menu {
    border-color: rgba(55, 81, 126, 0.2);
    box-shadow: 0 12px 24px rgba(55, 81, 126, 0.14);
}

.navbar.top-nav .dropdown-item {
    color: var(--text-color);
    font-weight: 500;
}

.navbar.top-nav .dropdown-item:hover,
.navbar.top-nav .dropdown-item:focus {
    background-color: rgba(55, 81, 126, 0.08);
    color: var(--heading-color);
}

.navbar.top-nav .dropdown-item.active,
.navbar.top-nav .dropdown-item:active {
    background: linear-gradient(135deg, var(--heading-color), var(--accent-color));
    color: #ffffff;
}

@media (max-width: 991.98px) {
    .navbar.top-nav .navbar-offcanvas {
        width: min(88vw, 360px);
    }

    .navbar.top-nav .navbar-offcanvas .navbar-nav {
        margin-bottom: 10px;
    }

    .navbar.top-nav .navbar-offcanvas .dropdown-menu {
        width: 100%;
    }
}

.btn-signup {
    color: #37517e !important;
    background-color: #fff !important;
    border-color: #fff !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn-signup:hover, .btn-signup:focus {
    color: #fff !important;
    background-color: #4769a4 !important;
    border-color: #4769a4 !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(55,81,126,0.18) !important;
}

.btn-signup:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(55,81,126,0.18) !important;
}

.nav-greeting {
    font-family: var(--nav-font);
    font-weight: 600;
}

.admin-collapse-toggle,
.fw-collapse-toggle {
    color: var(--heading-color);
}

.admin-collapse-toggle:hover,
.admin-collapse-toggle:focus,
.fw-collapse-toggle:hover,
.fw-collapse-toggle:focus {
    color: var(--accent-color);
    text-decoration: none;
}

.ai-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    background: #adb5bd;
}

.ai-status-dot.ok {
    background: #22c55e;
}

.ai-status-dot.bad {
    background: #ef4444;
}

.badge {
    text-transform: none;
}

.product-photo {
    overflow: hidden;
    border: 1px solid #e6ecf0;
}

.product-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-body {
    background-color: #ffffff;
    color: var(--text-color);
    border-radius: 0;
    padding: 24px 12px 60px 12px;
}

.page-body-home {
    padding: 0;
}

.landing-wrapper {
    margin: 0;
}

.home-hero {
    padding-bottom: 80px;
}

.home-hero h1,
.home-hero p,
.home-hero li {
    color: var(--heading-color);
}

.home-hero .btn-outline-secondary {
    color: var(--heading-color);
    border-color: rgba(55,81,126,0.4);
}

.home-hero .btn-outline-secondary:hover {
    background-color: var(--heading-color);
    color: #fff;
}

.page-body h1,
.page-body h2,
.page-body h3,
.page-body h4,
.page-body h5,
.page-body h6,
.page-body p,
.page-body li,
.page-body .lead {
    color: var(--text-color);
}

.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6,
.card p,
.card li,
.card .lead,
.card .text-muted {
    color: var(--text-color);
}

.card .text-muted {
    color: #6c7a93 !important;
}

footer {
    background-color: #f7f9ff;
    color: #6c7a93;
    border-top: 1px solid #e6ebff;
}

.footer .sitename {
    color: var(--heading-color);
    font-family: var(--heading-font);
}

.footer .footer-logo {
    height: 36px !important;
    width: auto !important;
    max-height: 36px;
    max-width: 180px;
}

@media (max-width: 576px) {
    footer#footer.footer .footer-logo {
        height: 28px !important;
        width: auto !important;
        max-height: 28px !important;
        max-width: 140px !important;
    }
}

.footer .footer-email,
.footer a {
    color: var(--heading-color);
    text-decoration: none;
}

.footer .footer-email:hover,
.footer a:hover {
    color: var(--accent-color);
}

.footer .social-links a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e6ebff;
    color: var(--heading-color);
    transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.footer .social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(55, 81, 126, 0.18);
    color: var(--accent-color);
}

.legal-hero {
    background: linear-gradient(135deg, rgba(55, 81, 126, 0.08), rgba(71, 105, 164, 0.05));
    border: 1px solid #e6ebff;
    border-radius: 20px;
    padding: 24px;
}

.legal-hero .legal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e6ebff;
    font-weight: 600;
    color: var(--heading-color);
    font-size: 0.85rem;
}

.legal-section {
    background: #fff;
    border: 1px solid #e6ebff;
    border-radius: 18px;
    padding: 22px;
    margin-top: 18px;
    box-shadow: 0 10px 24px rgba(55, 81, 126, 0.08);
}

.legal-section h2 {
    margin-top: 0;
}

.legal-list {
    margin-bottom: 0;
    padding-left: 18px;
}

.catalog-marquee {
    background: transparent;
    border: none;
    border-radius: 14px;
    padding: 8px 0;
    overflow: hidden;
    margin-bottom: 18px;
}

.catalog-marquee-track {
    display: inline-flex;
    gap: 36px;
    white-space: nowrap;
    animation: catalog-marquee 140s linear infinite;
    will-change: transform;
    padding-left: 12px;
    color: var(--heading-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.catalog-marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.catalog-marquee-track span::before {
    content: "✦";
    color: var(--accent-color);
    font-size: 0.85rem;
}

.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e4e9f0;
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 10px 20px rgba(55, 81, 126, 0.08);
}

.catalog-toolbar-inline {
    margin-top: 10px;
    max-width: none;
    margin-left: 0;
    background: #f8fafc;
    box-shadow: none;
    flex-wrap: wrap;
}

.catalog-toolbar-field {
    flex: 1 1 180px;
    min-width: 140px;
}

.catalog-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 100%;
    min-width: 0;
}

.catalog-search-row .catalog-search {
    flex: 1 1 100%;
    min-width: 0;
}

.catalog-search-group {
    width: 100%;
}

.catalog-filter-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #e4e9f0;
    background: #ffffff;
    color: var(--heading-color);
    flex: 0 0 auto;
}

.catalog-filter-icon .catalog-sort-mobile {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.catalog-filter-icon.catalog-limit-icon {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border-color: #d7e1ee;
}

.catalog-filter-icon.catalog-limit-icon i {
    font-size: 0.95rem;
}

@media (min-width: 992px) {
    .catalog-search-group .form-control {
        width: 48ch;
    }
}

.catalog-search-group .input-group-text {
    background: #ffffff;
}

.catalog-toolbar-inline .catalog-sort {
    flex: 0 0 auto;
}

.catalog-toolbar-inline .catalog-sort .form-select {
    min-width: 22ch;
    width: 22ch;
}

.catalog-toolbar-field.catalog-limit {
    flex: 0 0 auto;
}

.catalog-toolbar-field.catalog-limit .form-select {
    min-width: 14ch;
    width: 14ch;
}

.catalog-filter-options {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.catalog-toolbar .form-control,
.catalog-toolbar .form-select {
    border-radius: 12px;
    font-size: 0.85rem;
}

.catalog-toolbar-apply {
    white-space: nowrap;
}

.catalog-toolbar-clear {
    white-space: nowrap;
    text-decoration: none;
}

.catalog-pagination-wrap {
    background: #f8fafc;
    border: 1px solid #e4e9f0;
    border-radius: 16px;
    padding: 10px 14px;
    box-shadow: 0 10px 20px rgba(55, 81, 126, 0.08);
}

.catalog-pagination {
    gap: 6px;
}

.catalog-pagination-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.catalog-pagination-label {
    font-size: 0.85rem;
    color: #5f6b7a;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.catalog-pagination-form .form-select {
    border-radius: 999px;
    min-width: 12ch;
    padding: 6px 12px;
    border: 1px solid #dbe3ec;
    background: #ffffff;
    font-size: 0.85rem;
    box-shadow: none;
}

.catalog-pagination .page-link {
    border: 1px solid #dbe3ec;
    color: var(--heading-color);
    background: #ffffff;
    border-radius: 999px;
    min-width: 36px;
    text-align: center;
    padding: 6px 12px;
    transition: all 0.15s ease;
}

.catalog-pagination .page-link:hover {
    background: color-mix(in srgb, var(--heading-color), #fff 90%);
    border-color: color-mix(in srgb, var(--heading-color), #fff 70%);
}

.catalog-pagination .page-item.active .page-link {
    background: var(--heading-color);
    border-color: var(--heading-color);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(55, 81, 126, 0.2);
}

.catalog-pagination .page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}

.catalog-donors-card {
    border: 1px solid #e4e9f0;
}

.catalog-donors {
    color: #1f2937;
}

.catalog-donors .text-muted {
    color: #475569 !important;
}

.donation-cta {
    border-color: #f3c7c9;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 55%, #f8fafc 100%);
}

.donation-cta .bi {
    font-size: 1.1rem;
}

.donor-public-list {
    border: 1px dashed #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    background: #f8fafc;
}

.donor-name-list {
    font-weight: 600;
    color: #1f2937;
    line-height: 1.6;
}

.catalog-donors-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 992px) {
    .catalog-donors-grid {
        grid-template-columns: 1.1fr 1fr;
    }
}

.donor-impact-list {
    padding-left: 1.2rem;
}

.donor-impact-list li {
    margin-bottom: 0.35rem;
}

.partner-banner-grid {
    display: grid;
    gap: 12px;
    align-items: stretch;
}

.partner-banner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f8fc 100%);
    box-shadow: 0 10px 18px rgba(55, 81, 126, 0.08);
    min-height: 160px;
    height: 100%;
}

.partner-banner-link {
    text-decoration: none;
}

.partner-banner-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(55, 81, 126, 0.16);
}

.partner-banner-content {
    flex: 1 1 auto;
    min-width: 0;
}

.partner-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.partner-banner img {
    width: 88px;
    height: 88px;
    object-fit: contain;
}


.partner-banner-content {
    flex: 1 1 240px;
    min-width: 0;
}

.partner-name {
    font-weight: 600;
    color: var(--heading-color);
}

.partner-tag {
    font-size: 0.78rem;
    color: #475569;
}

.partner-desc {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.35;
}

.partner-banner.is-placeholder {
    justify-content: center;
    text-align: center;
    background: #f8fafc;
    border-style: dashed;
    color: #6b7280;
}

.donor-tier-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.donor-tier {
    border-radius: 14px;
    padding: 12px;
    border: 1px solid;
    background: #ffffff;
}

.donor-tier-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.donor-tier-sub,
.donor-tier-range,
.donor-tier-list {
    font-size: 0.85rem;
    color: #475569;
}

.donor-tier-list {
    margin-top: 6px;
    font-weight: 600;
}

.tier-diamond {
    border-color: #7dd3fc;
    background: #f0f9ff;
}

.tier-gold {
    border-color: #facc15;
    background: #fffbeb;
}

.tier-silver {
    border-color: #cbd5f5;
    background: #f8fafc;
}

.tier-bronze {
    border-color: #f2b38c;
    background: #fff7ed;
}

#tableau-donateurs {
    scroll-margin-top: 120px;
}

#don-volontaire {
    scroll-margin-top: 120px;
}

@keyframes catalog-marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.catalog-showcase {
    margin-bottom: 22px;
}

.catalog-showcase-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.catalog-showcase-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 700;
}

.catalog-showcase-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--heading-color);
}

.catalog-showcase-actions {
    display: inline-flex;
    gap: 8px;
}

.catalog-showcase-actions .btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.catalog-showcase-viewport {
    overflow: hidden;
    padding-bottom: 8px;
}

.catalog-showcase-track {
    display: flex;
    gap: 14px;
    will-change: transform;
}

.catalog-showcase-slide {
    position: relative;
    flex: 0 0 clamp(180px, 18vw, 270px);
    aspect-ratio: auto;
    border-radius: 16px;
    overflow: hidden;
    scroll-snap-align: start;
    text-decoration: none;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #e4e9f0;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
    padding: 8px;
}

.catalog-showcase-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.2);
}

.catalog-showcase-media {
    position: relative;
    --bs-aspect-ratio: 75%;
    min-height: 90px;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    width: 100%;
    margin: 0;
    flex-shrink: 0;
    padding: 0;
    background: #f5f7fb;
}

.catalog-showcase-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 0;
    background: linear-gradient(135deg, rgba(71, 105, 164, 0.85), rgba(96, 165, 250, 0.72));
    color: #f8fafc;
    backdrop-filter: blur(6px);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.catalog-showcase-name {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-showcase-price {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
}

.catalog-showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    background: #f8fafc;
    display: block;
}

.catalog-showcase-image.is-square {
    object-fit: contain;
}

@media (max-width: 575.98px) {
    .atelier-toolbar .catalog-search-row {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .atelier-toolbar .catalog-search-row .catalog-search {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
    }

    .atelier-toolbar .catalog-filter-icon {
        width: 100%;
        height: auto;
        border-radius: 12px;
        border: 1px solid #e4e9f0;
        background: #ffffff;
        padding: 0;
    }

    .atelier-toolbar .catalog-filter-icon i {
        display: none;
    }

    .atelier-toolbar .catalog-filter-icon .form-select,
    .atelier-toolbar .catalog-filter-icon .catalog-sort-mobile {
        position: static;
        opacity: 1;
        width: 100%;
        height: auto;
        cursor: pointer;
    }

    .atelier-toolbar .catalog-toolbar-apply.d-lg-none {
        width: 100%;
    }

    .catalog-toolbar {
        padding: 8px 10px;
    }

    .catalog-toolbar-field {
        flex: 1 1 100%;
        min-width: 0;
    }

    .catalog-toolbar-apply,
    .catalog-toolbar-clear {
        width: auto;
    }

    .catalog-toolbar-inline {
        gap: 6px;
        flex-wrap: wrap;
        width: 100%;
    }

    .catalog-search-row {
        flex: 1 1 100%;
        flex-direction: row;
        align-items: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .catalog-search-row .catalog-search {
        flex: 1 1 60%;
        min-width: 160px;
        max-width: 70%;
    }

    .catalog-filter-icon {
        align-self: center;
    }

    .catalog-toolbar-inline .catalog-sort .form-select {
        width: 100%;
    }

    .catalog-search-group {
        width: 100%;
    }

    .catalog-toolbar-clear.d-lg-none {
        flex: 1 1 100%;
        text-align: left;
    }

    .category-deck-tools {
        width: 100%;
    }

    .catalog-showcase-header {
        align-items: flex-start;
    }

    .catalog-showcase-title {
        font-size: 0.98rem;
    }

    .catalog-showcase-slide {
        flex-basis: 43vw;
    }

    .catalog-showcase-caption {
        display: none;
    }
}

@media (min-width: 992px) {
    .catalog-showcase-caption {
        background: linear-gradient(135deg, rgba(71, 105, 164, 0.55), rgba(96, 165, 250, 0.45));
    }

    .catalog-showcase-viewport {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-marquee-track {
        animation: none;
        flex-wrap: wrap;
        white-space: normal;
    }

    .catalog-showcase-slide {
        transition: none;
    }
}

.category-deck {
    background: #ffffff;
    border: 1px solid #e4e9f0;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 12px 24px rgba(55, 81, 126, 0.08);
}

.category-deck--compact {
    padding: 8px;
}

.category-deck-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 12px;
}

.category-deck-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.category-deck-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--heading-color);
}

.category-deck-hint {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6c757d;
    display: none;
}

.category-deck.is-open .category-deck-hint {
    display: inline-flex;
}

.category-deck-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(72%, 1fr);
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}

.category-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 10px;
}

.category-toggle-btn .bi {
    transition: transform 0.2s ease;
}

.category-toggle-btn[aria-expanded="true"] .bi {
    transform: rotate(180deg);
}

.category-deck-track::-webkit-scrollbar {
    height: 6px;
}

.category-deck-track::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.18);
    border-radius: 999px;
}

.category-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e4e9f0;
    background: linear-gradient(135deg, rgba(55, 81, 126, 0.08), rgba(255, 255, 255, 0.9));
    text-decoration: none;
    color: var(--heading-color);
    font-weight: 600;
    scroll-snap-align: start;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    min-height: 96px;
    position: relative;
    min-width: 0;
}

.category-card-title {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.category-card-count {
    font-size: 0.75rem;
    color: #55647d;
    font-weight: 500;
}

.category-card-tag {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1f2b3d;
    opacity: 0.75;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(55, 81, 126, 0.16);
    border-color: rgba(55, 81, 126, 0.25);
}

.category-card.is-active {
    background: linear-gradient(135deg, rgba(55, 81, 126, 0.85), rgba(71, 105, 164, 0.9));
    color: #ffffff;
    border-color: rgba(55, 81, 126, 0.9);
}

.category-card.is-active .category-card-count,
.category-card.is-active .category-card-tag {
    color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 992px) {
    .category-deck-track {
        grid-auto-flow: row;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        overflow: visible;
    }
}

@media (max-width: 575.98px) {
    .category-deck-track {
        grid-auto-columns: minmax(62%, 1fr);
    }

    .category-card {
        padding: 12px 14px;
        min-height: 84px;
    }

    .category-card-title {
        font-size: 0.9rem;
    }

    .catalog-toolbar-compact .catalog-search-row {
        flex-wrap: nowrap;
    }

    .catalog-toolbar-compact .catalog-search {
        flex: 1 1 55%;
    }
}

.catalog-grid {
    --catalog-gap: 14px;
}

.catalog-card {
    border: 1px solid #e4e9f0;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    min-height: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 70%);
    display: flex;
    flex-direction: column;
}

.catalog-card.qualification-card {
    height: auto;
    min-height: 0;
}

.catalog-boutique-link {
    position: relative;
    z-index: 2;
    font-weight: 600;
    color: #0f172a;
}

.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(55, 81, 126, 0.16);
    border-color: rgba(55, 81, 126, 0.2);
}

.catalog-thumb {
    --bs-aspect-ratio: 75%;
    min-height: 90px;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    width: calc(100% - 20px);
    margin: 8px auto 10px;
    flex-shrink: 0;
    padding: 0;
}

.catalog-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    background: #f8fafc;
    border-radius: 10px;
    display: block;
}

.catalog-thumb img.is-square {
    object-fit: contain !important;
}

.catalog-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    padding: 12px;
    color: #ffffff;
    font-weight: 700;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.65));
    pointer-events: none;
}

.catalog-thumb-overlay__label {
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 4px 10px;
    background: rgba(15, 23, 42, 0.8);
}

.catalog-thumb-overlay__icon {
    font-size: 1.75rem;
    line-height: 1;
}

.icon-filament {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6em;
    height: 1.6em;
    vertical-align: -0.2em;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    overflow: hidden;
    border: none;
    mask: url('../img/filament_logo.png') center / contain no-repeat;
    -webkit-mask: url('../img/filament_logo.png') center / contain no-repeat;
}

.icon-filament img {
    display: none;
}

.icon-affiliate-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6em;
    height: 1.6em;
    vertical-align: 0;
    background: #ffffff;
    overflow: hidden;
    border: none;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M5 7.2 7.2 5 12 9.8 16.8 5 19 7.2 14.2 12 19 16.8 16.8 19 12 14.2 7.2 19 5 16.8 9.8 12z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M5 7.2 7.2 5 12 9.8 16.8 5 19 7.2 14.2 12 19 16.8 16.8 19 12 14.2 7.2 19 5 16.8 9.8 12z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.icon-affiliate-x img {
    display: none;
}
.catalog-thumb-overlay__icon .icon-filament {
    width: 1.8em;
    height: 1.8em;
    vertical-align: 0;
}

.catalog-thumb-overlay__reason {
    font-size: 0.7rem;
    font-weight: 600;
}

.catalog-thumb-overlay__action {
    font-size: 0.65rem;
    font-weight: 700;
    opacity: 0.95;
}

@media (max-width: 576px) {
    .catalog-thumb-overlay__icon {
        font-size: 1.4rem;
    }

    .catalog-thumb-overlay__icon .icon-filament,
    .catalog-thumb-overlay__icon .icon-affiliate-x {
        width: 1.4em;
        height: 1.4em;
    }
}

.catalog-thumb-overlay--material {
    background: linear-gradient(160deg, rgba(37, 99, 235, 0.2), rgba(30, 64, 175, 0.75));
}

.catalog-thumb-overlay--material .catalog-thumb-overlay__label {
    background: rgba(37, 99, 235, 0.9);
}


.catalog-thumb-overlay--affiliate {
    background: linear-gradient(160deg, rgba(37, 99, 235, 0.2), rgba(30, 64, 175, 0.75));
}

.catalog-thumb-overlay--affiliate .catalog-thumb-overlay__label {
    background: rgba(37, 99, 235, 0.9);
}

.catalog-thumb-overlay--shared {
    background: linear-gradient(160deg, rgba(220, 38, 38, 0.2), rgba(127, 29, 29, 0.78));
}

.catalog-thumb-overlay--shared .catalog-thumb-overlay__label {
    background: rgba(220, 38, 38, 0.92);
}

.catalog-warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 6px 8px;
    color: #9a3412;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.catalog-warning-label {
    display: block;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9a3412;
}

.catalog-warning-reason {
    display: block;
}

.catalog-card .card-body {
    padding: 16px 14px 20px;
    background-color: transparent;
    border-top: 1px solid #e4e9f0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.catalog-card--tight .catalog-thumb {
    margin-bottom: 4px;
}

.catalog-card--tight .card-body {
    padding-top: 8px;
    border-top: none;
}

.catalog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.catalog-price-bar {
    background: linear-gradient(135deg, var(--heading-color), var(--accent-color));
    color: #ffffff;
    text-align: center;
    padding: 7px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 12px;
    width: calc(100% - 20px);
    align-self: center;
    margin: 0 auto 8px;
    box-shadow: 0 8px 18px rgba(30, 58, 138, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.catalog-category {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(71, 105, 164, 0.12);
    color: #334155;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: none;
}

.catalog-price {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    min-width: 0;
    justify-content: center;
}

.catalog-suggested-price {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.catalog-suggested-price span {
    font-weight: 700;
    color: var(--heading-color);
}

.catalog-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.2em;
}

.catalog-sub {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: 0.75rem;
    line-height: 1.3;
    color: #6b7280;
    min-height: 2.2em;
}

.catalog-sep {
    color: #cbd5f5;
}

.catalog-region {
    color: #6b7280;
    font-size: 0.68rem;
}

.catalog-boutique-link:hover {
    color: #2563eb;
}

.catalog-footer {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.catalog-category-row {
    margin-top: 4px;
}

.catalog-cta {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4b5563;
    font-weight: 600;
}

.lot-suggestion-modal .modal-header {
    align-items: flex-start;
}

.lot-preview-card {
    border: 1px solid #e4e9f0;
}

.lot-preview-frame {
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.lot-preview-placeholder {
    color: #64748b;
}

.lot-cards {
    display: grid;
    gap: 10px;
}

.lot-card {
    border: 1px solid #e4e9f0;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 14px;
    text-align: left;
    width: 100%;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.lot-card:hover {
    border-color: rgba(55, 81, 126, 0.4);
    box-shadow: 0 12px 18px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.lot-card.is-selected {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(71, 105, 164, 0.2);
}

.lot-card:disabled,
.lot-card.is-disabled {
    background: #f8fafc;
    color: #94a3b8;
    border-color: #e2e8f0;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.lot-suggestion-modal #lotConfirmCheck {
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid #1d4ed8;
    background-color: #eef2ff;
    accent-color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.12);
}

.lot-suggestion-modal #lotConfirmCheck:focus {
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.3);
}

.lot-suggestion-modal #lotConfirmCheck:checked {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

@media (max-width: 576px) {
    .lot-request-modal .modal-dialog {
        margin: 0;
    }
    .lot-request-modal .modal-content {
        border-radius: 0;
        min-height: 100vh;
    }
    .lot-request-modal .modal-body {
        max-height: calc(100vh - 170px);
        overflow-y: auto;
    }
}

.catalog-toggle .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    border-radius: 12px !important;
}

.catalog-toggle .btn i {
    font-size: 0.95rem;
}

.catalog-toggle.btn-group {
    gap: 8px;
}

.catalog-toggle.btn-group .btn + .btn {
    margin-left: 0;
}

.catalog-title-icon,
.section-title-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    overflow: hidden;
    box-shadow: 0 18px 32px rgba(55, 81, 126, 0.22);
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
}

.catalog-title-image,
.section-title-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.catalog-title-icon + span,
.section-title-icon + span {
    line-height: 1;
}

.catalog-title-wrap,
.section-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.catalog-title-content,
.section-title-content {
    min-width: 0;
}

.catalog-header,
.section-header {
    border: 1px solid #e4e9f0;
    border-radius: 16px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(55, 81, 126, 0.08), rgba(71, 105, 164, 0.03));
}

.catalog-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--heading-color), #fff 70%);
    background: #ffffff;
    color: var(--heading-color);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(55, 81, 126, 0.12);
}

.faq-summary-card {
    border: 1px solid color-mix(in srgb, var(--heading-color), #fff 70%);
    background: linear-gradient(135deg, color-mix(in srgb, var(--heading-color), #fff 92%), #ffffff);
}

.faq-summary-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--heading-color);
    box-shadow: 0 10px 18px rgba(55, 81, 126, 0.18);
    flex: 0 0 auto;
}

.faq-summary-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--heading-color), #fff 70%);
    background: #ffffff;
    color: var(--heading-color);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.faq-summary-link:hover,
.faq-summary-link:focus {
    color: var(--heading-color);
    background: color-mix(in srgb, var(--heading-color), #fff 88%);
    box-shadow: 0 12px 20px rgba(55, 81, 126, 0.16);
}

.faq-summary-link i {
    color: color-mix(in srgb, var(--heading-color), #fff 25%);
    font-size: 1.1rem;
}

.faq-page {
    scroll-behavior: smooth;
}

.faq-section {
    scroll-margin-top: 90px;
    position: relative;
}

.faq-section:target {
    outline: 2px solid #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.faq-anchor-tip {
    display: none;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #e0ebff;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.9rem;
}

.faq-anchor-tip i {
    color: #1d4ed8;
}

.faq-section:target .faq-anchor-tip {
    display: inline-flex;
}

.catalog-reset:hover,
.catalog-reset:focus {
    background: color-mix(in srgb, var(--heading-color), #fff 92%);
    color: var(--heading-color);
    text-decoration: none;
}

.catalog-header-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.catalog-donor-link {
    border-radius: 999px;
    font-weight: 600;
}

.catalog-donor-link .bi {
    font-size: 0.95rem;
}

@media (max-width: 575.98px) {
    .catalog-title-icon,
    .section-title-icon {
        width: 96px;
        height: 96px;
        border-radius: 16px;
    }
}

.catalog-toggle .btn-primary {
    background: linear-gradient(135deg, var(--heading-color), var(--accent-color));
    border-color: var(--heading-color);
}

.catalog-toggle .btn-outline-primary {
    color: var(--heading-color);
    border-color: rgba(55, 81, 126, 0.4);
}

.catalog-toggle .btn-outline-primary:hover {
    background: rgba(55, 81, 126, 0.08);
    border-color: rgba(55, 81, 126, 0.6);
    color: var(--heading-color);
}

.boutique-card,
.boutique-header,
.storefront-preview {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e4e9f0;
}

.boutique-cover,
.storefront-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 1;
    background-size: cover;
    background-position: center;
    background-color: #eef2f7;
}

.boutique-header .boutique-cover {
    aspect-ratio: 3 / 1;
}

.boutique-logo,
.storefront-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    background: #fff;
    border: 3px solid #fff;
    box-shadow: 0 10px 24px rgba(55, 81, 126, 0.18);
    margin-top: -34px;
}

.storefront-logo {
    border-radius: 999px;
}

.storefront-preview-bio {
    white-space: pre-line;
}

.storefront-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.storefront-gallery-card {
    border: 1px solid #e4e9f0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.storefront-gallery-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.atelier-photo-card {
    display: flex;
    flex-direction: column;
}

.atelier-photo-preview {
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    background: #f8fafc;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.atelier-photo-preview.has-image {
    border-style: solid;
    color: transparent;
}

.atelier-card {
    border: 1px solid #e4e9f0;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.atelier-card .storefront-cover {
    height: auto;
    aspect-ratio: 3 / 1;
    position: relative;
}

.atelier-card .storefront-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.28) 100%);
}

.atelier-card .storefront-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin-top: -40px;
}

.atelier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.2);
}

.atelier-cover {
    position: relative;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
}

.atelier-cover-overlay {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.atelier-stat-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 2px;
    flex-basis: 100%;
    width: 100%;
    order: 2;
}

.atelier-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.68), rgba(30, 58, 138, 0.6));
    color: #f8fafc;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 10px rgba(15, 23, 42, 0.2);
}

.atelier-summary-logo {
    margin-top: -34px;
    position: relative;
    z-index: 2;
}

@media (max-width: 575.98px) {
    .atelier-cover-overlay {
        gap: 8px;
        right: 10px;
        top: 10px;
        bottom: auto;
    }

    .atelier-stat-pill {
        padding: 4px 8px;
        font-size: 0.65rem;
        gap: 5px;
    }

    .atelier-stat-pill i {
        font-size: 0.75rem;
    }
}

.atelier-details {
    border-top: 1px solid #e4e9f0;
}

.atelier-details summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    position: relative;
    z-index: 2;
}

.atelier-details summary::-webkit-details-marker {
    display: none;
}

.atelier-details-title {
    font-weight: 700;
    color: #0f172a;
}

.atelier-details-subtitle {
    font-size: 0.8rem;
    color: #64748b;
}

.atelier-details-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.atelier-details-action {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1e3a8a;
    background: rgba(71, 105, 164, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.atelier-settings-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1e3a8a;
    border: 1px solid #dbeafe;
    text-decoration: none;
}

.atelier-details[open] .atelier-settings-link--summary {
    display: none;
}

.atelier-settings-link:hover {
    color: #0f172a;
    background: #e2e8f0;
}

@media (max-width: 991.98px) {
    .atelier-details-actions {
        order: 4;
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
        margin-top: 6px;
    }
}

.atelier-details-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 14px 16px;
    background: #ffffff;
    border-top: 1px solid #e4e9f0;
}

.atelier-identity {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.atelier-bio {
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.8em;
}

.atelier-bio.is-toggleable {
    cursor: pointer;
    position: relative;
    padding-right: 2.4rem;
}

.atelier-bio.is-toggleable:focus-visible {
    outline: 2px solid rgba(30, 58, 138, 0.6);
    outline-offset: 2px;
    border-radius: 6px;
}

.atelier-bio.is-expanded {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
    overflow: visible;
    min-height: 0;
}

.atelier-bio.is-toggleable::after {
    content: '... ▾';
    position: absolute;
    right: 0;
    bottom: 0;
    font-weight: 700;
    font-size: 0.85rem;
    color: #1e3a8a;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff 55%);
    padding-left: 8px;
}

.atelier-bio.is-toggleable.is-expanded::after {
    content: '▴';
    background: transparent;
    padding-left: 0;
}

.atelier-capabilities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.atelier-capability {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #0f172a;
    font-size: 0.85rem;
}

.atelier-capability i {
    font-size: 1.1rem;
    color: #1e3a8a;
}

.atelier-capability-label {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.atelier-capability-value {
    font-weight: 600;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.atelier-filament-colors {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    max-height: 140px;
    overflow-y: auto;
    padding-right: 4px;
}

.atelier-filament-row {
    display: grid;
    grid-template-columns: minmax(90px, 140px) 1fr;
    align-items: center;
    gap: 10px;
}

.atelier-filament-name {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef2ff;
    border: 1px solid rgba(55, 81, 126, 0.18);
    font-size: 0.7rem;
    font-weight: 700;
    color: #1e3a8a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.atelier-color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.atelier-color-swatch {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid #cbd5f5;
    background-color: #e2e8f0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 2px 6px rgba(15, 23, 42, 0.16);
}

.atelier-color-empty {
    font-size: 0.7rem;
    color: #64748b;
}

@media (max-width: 575.98px) {
    .atelier-filament-row {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .atelier-filament-name {
        width: fit-content;
    }
}

.atelier-details[open] {
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.atelier-fleet {
    border: 1px solid #e4e9f0;
    border-radius: 16px;
    background: #f8fafc;
    overflow: hidden;
}

.atelier-fleet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    font-weight: 600;
    color: #0f172a;
    background: linear-gradient(135deg, rgba(71, 105, 164, 0.08), rgba(96, 165, 250, 0.12));
}

.atelier-fleet-chip {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(71, 105, 164, 0.12);
    color: #1e3a8a;
    white-space: nowrap;
}

.atelier-fleet-body {
    padding: 12px;
    background: #ffffff;
    border-top: 1px solid #e4e9f0;
}

.atelier-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: #475569;
    font-size: 0.82rem;
}

.atelier-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.atelier-models {
    font-size: 0.82rem;
    color: #475569;
}

.atelier-models strong {
    color: #0f172a;
}

.atelier-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.atelier-form-section {
    border: 1px solid #e4e9f0;
    border-radius: 16px;
    padding: 16px;
    background: #ffffff;
}

.atelier-form-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.atelier-form-heading h6 .bi,
.atelier-form-heading h6 i {
    color: var(--heading-color);
}

.atelier-media-preview {
    position: relative;
    margin-top: 10px;
    border-radius: 14px;
    border: 1px dashed rgba(55, 81, 126, 0.3);
    background: #f8fafc;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    min-height: 120px;
}

.atelier-media-preview--logo {
    max-width: 180px;
    aspect-ratio: 1 / 1;
}

.atelier-media-preview--logo.partner-logo-preview {
    max-width: 180px;
    min-height: 120px;
    aspect-ratio: 1 / 1;
    background-size: contain;
    background-repeat: no-repeat;
}

.atelier-media-preview--cover {
    width: 100%;
    aspect-ratio: 3 / 1;
    min-height: 110px;
}

.atelier-media-preview.has-image {
    border-style: solid;
    color: transparent;
}

.atelier-media-placeholder {
    pointer-events: none;
}

.atelier-media-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #ffffff;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.atelier-media-remove.is-active {
    background: #fee2e2;
    border-color: rgba(239, 68, 68, 0.6);
    color: #b91c1c;
}

.atelier-media-preview.is-pending-delete {
    filter: grayscale(0.5);
    opacity: 0.6;
}

.printer-fleet-save-alert {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.printer-fleet-save-alert:hover,
.printer-fleet-save-alert:focus {
    background-color: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
}

.atelier-gallery-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px dashed rgba(55, 81, 126, 0.35);
    background: #f8fafc;
    margin-bottom: 10px;
}

.atelier-gallery-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #eef2ff;
    color: var(--heading-color);
}

.atelier-gallery-grid.is-empty {
    display: none;
}

.atelier-form-subheading {
    margin-top: 8px;
}

.filament-type-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filament-type-card {
    border: 1px solid #e4e9f0;
    border-radius: 14px;
    padding: 12px;
    background: #f8fafc;
}

.filament-type-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.filament-type-title {
    font-weight: 600;
    color: #0f172a;
}

.filament-color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.filament-color-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1e293b;
    border-radius: 14px;
    padding: 6px 8px;
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 58px;
    line-height: 1.1;
}

.filament-color-btn.is-active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.filament-color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #cbd5f5;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.filament-color-btn.is-active .filament-color-swatch::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.45);
}

.filament-color-label {
    text-align: center;
    color: #334155;
    max-width: 60px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#atelier-filaments .filament-color-palette,
#product-filament-options .filament-color-palette {
    gap: 6px;
    margin-bottom: 8px;
}

#atelier-filaments .filament-color-btn,
#product-filament-options .filament-color-btn {
    gap: 4px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    padding: 4px;
    font-size: 0.6rem;
    min-width: 46px;
    line-height: 1.05;
}

#atelier-filaments .filament-color-btn.is-active,
#product-filament-options .filament-color-btn.is-active {
    box-shadow: none;
}

#atelier-filaments .filament-color-swatch,
#product-filament-options .filament-color-swatch {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
}

#atelier-filaments .filament-color-btn.is-active .filament-color-swatch::after,
#product-filament-options .filament-color-btn.is-active .filament-color-swatch::after {
    font-size: 1.3rem;
}

#atelier-filaments .filament-color-label,
#product-filament-options .filament-color-label {
    max-width: 52px;
}

.filament-color-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.filament-color-inputs .form-control {
    flex: 1 1 220px;
}

.filament-color-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filament-color-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: #ffffff;
    color: #0f172a;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.filament-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid #cbd5f5;
    background: #e2e8f0;
}

.filament-color-remove {
    font-size: 0.9rem;
    color: #64748b;
}

.atelier-photo-card.is-pending-delete .atelier-photo-preview {
    opacity: 0.45;
    filter: grayscale(0.4);
}

.atelier-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.atelier-model-card {
    position: relative;
    padding: 10px 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #f8fafc;
    min-height: 78px;
}

.atelier-model-name {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 2px;
}

.atelier-model-meta {
    font-size: 0.75rem;
    color: #64748b;
}

.atelier-model-card .atelier-model-qty {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(71, 105, 164, 0.18);
    color: #1e3a8a;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.atelier-model-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(71, 105, 164, 0.12);
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 600;
}

.atelier-model-qty {
    background: rgba(71, 105, 164, 0.2);
    color: #1e3a8a;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.printer-fleet-table td,
.printer-fleet-table th {
    vertical-align: middle;
}

.printer-fleet-scroll {
    overflow: auto;
}

.printer-fleet-scroll-card {
    border: 1px solid #e4e9f0;
    border-radius: 12px;
    background: #ffffff;
}

.printer-fleet-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.printer-fleet-toggle .bi {
    transition: transform 0.2s ease;
}

.printer-fleet-toggle[aria-expanded="true"] .bi {
    transform: rotate(180deg);
}

.printer-fleet-scroll table thead th {
    position: sticky;
    top: 0;
    background: #f8fbff;
    z-index: 1;
}

.printer-fleet-comments {
    min-width: 220px;
    white-space: normal;
}

.printer-fleet-bed {
    min-width: 190px;
    white-space: nowrap;
}

.printer-bed-select {
    min-width: 220px;
}

@media (min-width: 992px) {
    .printer-fleet-scroll {
        max-height: 360px;
    }
}

@media (max-width: 575.98px) {
    .printer-fleet-comments {
        min-width: 160px;
    }
}

@media (max-width: 575.98px) {
    .boutique-cover,
    .storefront-cover,
    .boutique-header .boutique-cover {
        aspect-ratio: 3 / 1;
    }
}

.product-gallery {
    border: 1px solid #e6ecf0;
    border-radius: 16px;
    padding: 14px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 45%, #f6f8fb 100%);
}

.gallery-main {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #f5f6f8;
}

.gallery-slide-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    min-height: 260px;
}

.gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.22s ease-in-out;
    border-radius: 12px;
    overflow: hidden;
    background: #eef2f7;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.gallery-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 12px;
    display: block;
    margin: auto;
}

.gallery-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(55, 81, 126, 0.18);
    background-color: rgba(255, 255, 255, 0.96);
    border: 1px solid #d9e1ec;
}

.gallery-nav:hover {
    background-color: #fff;
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-thumb {
    width: 78px;
    height: 78px;
    border: 1px solid #d9e1ec;
    border-radius: 12px;
    overflow: hidden;
    padding: 4px;
    background-color: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-thumb img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 9px;
    display: block;
    margin: auto;
}

.gallery-thumb:hover {
    transform: translateY(-2px);
}

.gallery-thumb.is-active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(71, 178, 228, 0.25);
}

#product-detail {
    scroll-margin-top: 96px;
}

.product-detail h2,
.product-detail h3 {
    font-family: var(--default-font);
    color: var(--heading-color);
}

.product-detail h2 {
    font-size: 1.05rem;
    line-height: 1.25;
}

.product-suggested-price {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
}

.product-detail h3 {
    font-size: 0.95rem;
    line-height: 1.3;
}

.creator-product-card .card-body {
    padding: 14px 14px 16px;
}

.creator-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.creator-status-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: #6c757d;
    color: #ffffff;
}

.creator-affiliation-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 600;
    text-decoration: none;
    background: #e7f1ff;
    color: #0d6efd;
}

.creator-affiliation-tag:hover {
    text-decoration: none;
}

.creator-affiliation-tag.is-pending {
    background: #fff3cd;
    color: #664d03;
}

.creator-affiliation-tag.is-accepted {
    background: #e7f1ff;
    color: #0d6efd;
}

.roadmap-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: none;
    margin: 0;
}

.roadmap-period {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px 20px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--heading-color), #fff 88%), #ffffff 65%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.roadmap-period::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, var(--heading-color), color-mix(in srgb, var(--heading-color), #fff 40%));
}

.roadmap-period-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.roadmap-period-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--heading-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--heading-color), #fff 65%);
}

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

.roadmap-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--heading-color);
    border-radius: 14px;
    padding: 14px 16px;
}

.roadmap-block-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.roadmap-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #111827;
    font-size: 0.98rem;
    line-height: 1.5;
}

.roadmap-list > li {
    position: relative;
    padding-left: 18px;
}

.roadmap-list > li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.6em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--heading-color);
}

.roadmap-list ul {
    margin: 6px 0 0 0;
    padding-left: 18px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.roadmap-list ul li {
    position: relative;
    padding-left: 14px;
}

.roadmap-list ul li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--heading-color), #fff 55%);
}

.roadmap-note {
    font-size: 0.88rem;
    color: #6b7280;
    margin-top: 2px;
}

@media (max-width: 991.98px) {
    .roadmap-grid {
        grid-template-columns: 1fr;
    }

    .roadmap-period {
        padding: 16px;
    }

    .roadmap-list {
        font-size: 0.95rem;
    }
}

.creator-status-active {
    background: #198754;
    color: #ffffff;
}

.creator-status-review {
    background: #ffc107;
    color: #212529;
}

.creator-status-draft {
    background: #6c757d;
    color: #ffffff;
}

.creator-status-archived {
    background: #6c757d;
    color: #ffffff;
}

.creator-status-deleted {
    background: #dc3545;
    color: #ffffff;
}

.creator-status-material {
    background: #f97316;
    color: #1f2937;
}

.creator-status-affiliate {
    background: #2563eb;
    color: #ffffff;
}

.creator-status-shared {
    background: #dc2626;
    color: #ffffff;
}

.creator-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 10px;
}

.creator-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.creator-card-actions form {
    margin: 0;
}

.creator-product-card .btn.btn-sm {
    padding: 0.25rem 0.5rem;
}

.creator-header-actions .btn {
    white-space: nowrap;
}

.section-action-card .btn {
    white-space: nowrap;
}

.printer-stat-card .card-body {
    padding: 0.9rem 1rem;
}

@media (max-width: 575.98px) {
    .printer-stat-card .card-body {
        padding: 0.7rem 0.75rem;
    }

    .printer-stat-card .h4 {
        font-size: 1.1rem;
    }

    .printer-stat-card .small {
        font-size: 0.7rem;
    }
}

@media (max-width: 575.98px) {
    .creator-header-actions {
        width: 100%;
    }

    .creator-header-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .section-action-card .btn {
        width: 100%;
        justify-content: center;
        border-radius: 999px;
    }
}

.back-to-top {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 1030;
    border-radius: 999px;
    padding: 0.5rem 0.65rem;
    box-shadow: 0 12px 24px rgba(55, 81, 126, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .back-to-top {
        display: none;
    }
}

.stl-estimator {
    border: 1px solid #e4e9f0;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 45%, #f6f8fb 100%);
    padding: 12px;
}

.product-price-section .stl-estimator {
    border: 0;
    background: transparent;
    padding: 0;
}

.product-price-section .price-breakdown {
    border-radius: 12px;
}

.stl-dropzone {
    border: 2px dashed rgba(71, 178, 228, 0.55);
    border-radius: 14px;
    padding: 14px 14px 12px;
    background-color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.stl-dropzone.is-dragover {
    border-color: rgba(71, 178, 228, 1);
    background-color: rgba(71, 178, 228, 0.08);
    box-shadow: 0 14px 28px rgba(55, 81, 126, 0.12);
    transform: translateY(-1px);
}

.stl-viewer {
    
    width: 100%;
    height: 280px;
    
    border-radius: 14px;
    overflow: hidden;
    background-color: #eef4fb;
    border: 1px solid #d9e1ec;
    position: relative;
    display: grid;
    place-items: center;
}

/* Desktop: preview height matches Type d'impression + print-mode-zone */
@media (min-width: 992px) {
    .stl-estimator .row.g-3 {
        align-items: start;
    }

    .stl-estimator .row.g-3 > .col-lg-4 {
        display: flex;
        flex-direction: column;
    }

    .stl-estimator .row.g-3 > .col-lg-4 .stl-viewer {
        flex: 1;
        height: 280px;
        min-height: 280px;
    }

    /* Sans model, matcher la hauteur de la dropzone */
    .stl-estimator .row.g-3 > .col-lg-4 .stl-viewer:not(.has-model) {
        flex: 0;
        height: auto;
        min-height: 190px;
        max-height: 190px;
    }

}

.stl-estimator h6 {
    font-family: var(--default-font);
    font-weight: 800;
    letter-spacing: 0.01em;
}

.stl-estimator [data-floor-price] {
    font-size: 1.05rem;
}

.stl-dropzone .btn-outline-primary {
    border-color: rgba(71, 178, 228, 0.8);
}

.stl-dropzone .btn-outline-primary:hover {
    border-color: var(--accent-color);
    background-color: rgba(71, 178, 228, 0.08);
}

.stl-dropzone input[type="file"] {
    border-radius: 12px;
    border-color: rgba(55, 81, 126, 0.16);
    background-color: rgba(255, 255, 255, 0.9);
}

.stl-dropzone input[type="file"]:focus {
    border-color: rgba(71, 178, 228, 0.85);
    box-shadow: 0 0 0 0.2rem rgba(71, 178, 228, 0.18);
}

.stl-estimator table.table {
    border-color: rgba(55, 81, 126, 0.12);
}

.stl-estimator table.table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c7a93;
}

.stl-estimator table.table td {
    vertical-align: middle;
}

.stl-estimator input[type="number"].form-control-sm {
    min-width: 70px;
}

.stl-viewer .stl-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 12px;
    text-align: center;
    color: #6c7a93;
    pointer-events: none;
}

.stl-viewer.has-model {
    display: block;
}

.stl-viewer.has-model canvas {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.stl-viewer.has-model .stl-placeholder {
    display: none;
}

.stl-dropzone {
    display: block;
}

.stl-dropzone .btn {
    border-radius: 12px;
}

/* Zone multicouleur */
.stl-dropzone.border-warning {
    border-color: rgba(255, 193, 7, 0.55);
}

.stl-dropzone.border-warning.is-dragover {
    border-color: rgba(255, 193, 7, 1);
    background-color: rgba(255, 193, 7, 0.08);
}

/* STL Estimator - Tableau fichiers */
.stl-estimator table.table td:first-child .badge {
    font-size: 0.7rem;
    padding: 0.2em 0.4em;
    min-height: 20px;
    line-height: 1.3;
    vertical-align: middle;
}
.stl-estimator .stl-file-meta {
    color: #6c757d;
    white-space: nowrap;
}
.stl-estimator table.table tbody tr.stl-file-row {
    transition: background-color 0.2s ease;
}
.stl-estimator table.table tbody tr.stl-file-row.is-active,
.stl-estimator table.table tbody tr.stl-file-row.is-active > td {
    background-color: color-mix(in srgb, var(--heading-color), #fff 90%);
}

/* Input Qté compact */
.stl-estimator .stl-qty-input {
    width: 38px !important;
    max-width: 38px !important;
    font-size: 0.75rem !important;
    -moz-appearance: textfield;
    appearance: textfield;
}
.stl-estimator .stl-qty-input::-webkit-inner-spin-button,
.stl-estimator .stl-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Écrans 992-1200px: cacher tous les badges */
@media (min-width: 992px) and (max-width: 1199px) {
    .stl-estimator table.table td:first-child .badge {
        display: none;
    }
}

/* Mobile: layout 2 lignes propre */
@media (max-width: 767px) {
    .stl-estimator table.table thead {
        display: none;
    }

    .stl-estimator table.table tbody tr {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto;
        gap: 0.4rem 0.5rem;
        padding: 0.6rem 0.25rem;
        border-bottom: 1px solid #dee2e6;
        align-items: center;
    }

    .stl-estimator table.table tbody tr td {
        border: none;
        padding: 0;
    }

    /* Ligne 1 col 1: Nom + badges */
    .stl-estimator table.table tbody tr td:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-weight: 500;
    }

    /* Ligne 1 col 2: Qté */
    .stl-estimator table.table tbody tr td:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.35rem;
    }

    .stl-estimator table.table tbody tr td:nth-child(2)::before {
        content: "Qté:";
        font-size: 0.75rem;
        color: #6c757d;
    }

    /* Ligne 2 col 1: Vol + Dims combinés via JS */
    .stl-estimator table.table tbody tr td:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
        font-size: 0.8rem;
        color: #6c757d;
    }

    /* Ligne 3 col 1: Paramètres (buse/filament/remplissage) */
    .stl-estimator table.table tbody tr td:nth-child(4) {
        grid-column: 1;
        grid-row: 3;
        font-size: 0.8rem;
        color: #6c757d;
        white-space: normal;
    }

    /* Ligne 2 col 2: Boutons */
    .stl-estimator table.table tbody tr td:nth-child(5) {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        justify-content: flex-end;
        gap: 0.35rem;
    }

    .stl-estimator table.table tbody tr td:nth-child(5) .btn {
        margin: 0 !important;
        padding: 0.3rem 0.5rem;
    }

    /* Input Qté compact sur mobile */
    .stl-estimator .stl-qty-input {
        width: 40px !important;
        max-width: 40px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 767px) {
    .product-pricing-section .stl-estimator {
        border: 0;
        background: transparent;
        padding: 0;
    }

    .product-pricing-section .stl-estimator [data-manual-inputs] {
        border: 0;
        background: transparent;
        padding: 0;
    }

    .product-pricing-section .alert {
        border: 0;
        background: transparent;
        padding: 0;
    }
}

/* Boutons mode impression */
.btn-group[role="group"] .btn-check:checked + .btn-outline-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.btn-group[role="group"] .btn-check:checked + .btn-outline-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

/* Arrondis pour les fiches produits de l'espace créateur */
.card.shadow-sm {
    border-radius: 16px;
    overflow: hidden;
}

.card .ratio.ratio-16x9 {
    border-radius: 0;
    overflow: hidden;
}

.card .ratio.ratio-16x9 img.rounded-top {
    border-radius: 0;
}
.category-deck-collapse {
    margin-top: 10px;
    width: 100%;
}

.category-deck-tools {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.catalog-toolbar-compact {
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    gap: 8px;
}

.catalog-toolbar-compact .catalog-search-row {
    gap: 6px;
}

.catalog-toolbar-compact .catalog-sort .form-select {
    min-width: 18ch;
    width: 18ch;
}

.catalog-region-select {
    min-width: 26ch;
    width: 100%;
}

@media (min-width: 992px) {
    .catalog-toolbar-compact .catalog-search-group .form-control {
        width: 42ch;
    }
}

.category-tools-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
}

.qualification-card {
    cursor: pointer;
}

.qualification-card .qualification-card-toggle {
    align-self: flex-start;
}

.qualification-card .qualification-card-details {
    display: none;
}

.qualification-card .qualification-toggle-expanded {
    display: none;
}

.qualification-card.is-expanded .qualification-card-details {
    display: block;
}

.qualification-card.is-expanded .qualification-toggle-collapsed {
    display: none;
}

.qualification-card.is-expanded .qualification-toggle-expanded {
    display: inline;
}
