/* Atelier — aligned with contact / order-guide / about-us */

.atelier-page {
    padding: 1.5rem 0 4rem;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.10), transparent 24rem),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 18rem);
    min-height: 70vh;
}

.atelier-page__hero {
    margin-bottom: 1.5rem;
    padding: 2rem 2rem 1.75rem;
    border: 1px solid rgba(191, 219, 254, 0.75);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.96));
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.06);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    gap: 1.5rem;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.atelier-page__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.atelier-page__hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.85rem, 3vw, 2.55rem);
    font-weight: 800;
    color: #0f172a;
}

.atelier-page__hero-copy p {
    margin: 0 0 1.25rem;
    max-width: 38rem;
    font-size: 1rem;
    line-height: 2;
    color: #475569;
}

.atelier-page__cms.product-description-content {
    margin: 0 0 1.25rem;
    max-width: 40rem;
    font-size: 1rem;
    line-height: 2;
    color: #475569;
}

.atelier-page__cms.product-description-content > *:first-child {
    margin-top: 0;
}

.atelier-page__cms.product-description-content > *:last-child {
    margin-bottom: 0;
}

.atelier-page__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.atelier-page__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.15rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.atelier-page__btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.atelier-page__btn--primary,
.atelier-page__btn--primary:link,
.atelier-page__btn--primary:visited {
    background: #1d4ed8;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.22);
}

.atelier-page__btn--primary:hover,
.atelier-page__btn--primary:focus {
    background: #1e40af;
    color: #fff !important;
}

.atelier-page__btn--ghost,
.atelier-page__btn--ghost:link,
.atelier-page__btn--ghost:visited {
    background: #eff6ff;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe;
}

.atelier-page__btn--ghost:hover,
.atelier-page__btn--ghost:focus {
    background: #dbeafe;
    color: #1e40af !important;
}

.atelier-page__hero-stack {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0.65rem;
    min-height: 11rem;
}

.atelier-page__hero-stack figure {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, #dbeafe, #eff6ff);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.atelier-page__hero-stack figure:first-child {
    grid-row: 1 / 3;
}

.atelier-page__hero-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 5.5rem;
}

.atelier-page__toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.atelier-page__toolbar h2 {
    margin: 0 0 0.3rem;
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    font-weight: 800;
    color: #0f172a;
}

.atelier-page__toolbar p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.8;
}

.atelier-page__count {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.atelier-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-bottom: 1.35rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
}

.atelier-filters::-webkit-scrollbar {
    height: 4px;
}

.atelier-filters::-webkit-scrollbar-thumb {
    background: #93c5fd;
    border-radius: 999px;
}

.atelier-filter-chip {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    color: #334155;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.atelier-filter-chip:hover {
    transform: translateY(-1px);
    color: #1d4ed8;
    border-color: #bfdbfe;
    background: #eff6ff;
    text-decoration: none;
}

.atelier-filter-chip.active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.atelier-filter-chip.active:hover {
    color: #fff;
    background: #1e40af;
}

/* Pinterest-style masonry */
.atelier-masonry {
    column-count: 4;
    column-gap: 1rem;
}

.atelier-pin {
    break-inside: avoid;
    margin: 0 0 1rem;
    display: block;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8eef6;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.atelier-pin:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    color: inherit;
    text-decoration: none;
}

.atelier-pin__media {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #dbeafe, #eff6ff);
}

.atelier-pin__media img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.atelier-pin:nth-child(5n + 1) .atelier-pin__media img { aspect-ratio: 3 / 4; }
.atelier-pin:nth-child(5n + 2) .atelier-pin__media img { aspect-ratio: 1 / 1; }
.atelier-pin:nth-child(5n + 3) .atelier-pin__media img { aspect-ratio: 4 / 5; }
.atelier-pin:nth-child(5n + 4) .atelier-pin__media img { aspect-ratio: 5 / 6; }
.atelier-pin:nth-child(5n + 5) .atelier-pin__media img { aspect-ratio: 3 / 3.4; }

.atelier-pin:hover .atelier-pin__media img {
    transform: scale(1.05);
}

.atelier-pin__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.18) 42%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.atelier-pin:hover .atelier-pin__overlay,
.atelier-pin:focus-visible .atelier-pin__overlay {
    opacity: 1;
}

.atelier-pin__overlay-cat {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 600;
}

.atelier-pin__overlay-title {
    margin: 0 0 0.55rem;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.5;
}

.atelier-pin__overlay-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.atelier-pin__price {
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
}

.atelier-pin__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #fff;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
}

.atelier-pin__footer {
    padding: 0.85rem 0.95rem 1rem;
}

.atelier-pin__footer-cat {
    display: block;
    margin-bottom: 0.25rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
}

.atelier-pin__footer-title {
    margin: 0 0 0.45rem;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.55;
}

.atelier-pin__footer-price {
    color: #1d4ed8;
    font-size: 0.84rem;
    font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
    .atelier-pin__footer {
        display: none;
    }
}

@media (hover: none), (pointer: coarse) {
    .atelier-pin__overlay {
        display: none;
    }
}

.atelier-empty {
    text-align: center;
    padding: 3.5rem 1.25rem;
    color: #64748b;
    background: #fff;
    border-radius: 22px;
    border: 1px dashed #bfdbfe;
}

.atelier-empty strong {
    display: block;
    color: #0f172a;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.atelier-pagination {
    margin-top: 2.25rem;
    display: flex;
    justify-content: center;
}

.atelier-pagination .pagination {
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.atelier-pagination .page-link {
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    min-width: 2.5rem;
    text-align: center;
}

.atelier-pagination .page-item.active .page-link {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

@media (max-width: 1199px) {
    .atelier-masonry { column-count: 3; }
}

@media (max-width: 991px) {
    .atelier-page__hero {
        grid-template-columns: 1fr;
        padding: 1.4rem 1.2rem;
        border-radius: 18px;
    }

    .atelier-page__hero-stack {
        order: -1;
        min-height: 9rem;
    }

    .atelier-masonry { column-count: 2; column-gap: 0.8rem; }
}

@media (max-width: 520px) {
    .atelier-page {
        padding-top: 1rem;
    }

    .atelier-masonry { column-count: 2; column-gap: 0.65rem; }

    .atelier-pin {
        margin-bottom: 0.65rem;
        border-radius: 14px;
    }

    .atelier-pin__footer {
        padding: 0.65rem 0.7rem 0.8rem;
    }

    .atelier-pin__footer-title {
        font-size: 0.86rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .atelier-pin,
    .atelier-pin__media img,
    .atelier-filter-chip,
    .atelier-page__btn {
        transition: none !important;
    }
}
/* ===== Dark mode ===== */
html[data-bs-theme="dark"] .atelier-page,
body.dark .atelier-page {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 24rem),
        linear-gradient(180deg, #12171e 0%, #0f1419 18rem);
}

html[data-bs-theme="dark"] .atelier-page__hero,
body.dark .atelier-page__hero {
    border-color: rgba(96, 165, 250, 0.18);
    background: linear-gradient(135deg, rgba(26, 34, 45, 0.98), rgba(22, 30, 42, 0.96));
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
}

html[data-bs-theme="dark"] .atelier-page__eyebrow,
html[data-bs-theme="dark"] .atelier-page__count,
body.dark .atelier-page__eyebrow,
body.dark .atelier-page__count {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

html[data-bs-theme="dark"] .atelier-page__hero h1,
html[data-bs-theme="dark"] .atelier-page__toolbar h2,
html[data-bs-theme="dark"] .atelier-pin__footer-title,
html[data-bs-theme="dark"] .atelier-empty strong,
body.dark .atelier-page__hero h1,
body.dark .atelier-page__toolbar h2,
body.dark .atelier-pin__footer-title,
body.dark .atelier-empty strong {
    color: #e8eef7;
}

html[data-bs-theme="dark"] .atelier-page__hero-copy p,
html[data-bs-theme="dark"] .atelier-page__cms.product-description-content,
html[data-bs-theme="dark"] .atelier-page__toolbar p,
html[data-bs-theme="dark"] .atelier-pin__footer-cat,
html[data-bs-theme="dark"] .atelier-empty,
body.dark .atelier-page__hero-copy p,
body.dark .atelier-page__cms.product-description-content,
body.dark .atelier-page__toolbar p,
body.dark .atelier-pin__footer-cat,
body.dark .atelier-empty {
    color: #9aa8b8;
}

html[data-bs-theme="dark"] .atelier-page__btn--primary,
html[data-bs-theme="dark"] .atelier-page__btn--primary:link,
html[data-bs-theme="dark"] .atelier-page__btn--primary:visited,
body.dark .atelier-page__btn--primary,
body.dark .atelier-page__btn--primary:link,
body.dark .atelier-page__btn--primary:visited {
    background: #3b82f6;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.28);
}

html[data-bs-theme="dark"] .atelier-page__btn--primary:hover,
html[data-bs-theme="dark"] .atelier-page__btn--primary:focus,
body.dark .atelier-page__btn--primary:hover,
body.dark .atelier-page__btn--primary:focus {
    background: #2563eb;
    color: #fff !important;
}

html[data-bs-theme="dark"] .atelier-page__btn--ghost,
html[data-bs-theme="dark"] .atelier-page__btn--ghost:link,
html[data-bs-theme="dark"] .atelier-page__btn--ghost:visited,
body.dark .atelier-page__btn--ghost,
body.dark .atelier-page__btn--ghost:link,
body.dark .atelier-page__btn--ghost:visited {
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd !important;
    border-color: rgba(96, 165, 250, 0.28);
}

html[data-bs-theme="dark"] .atelier-page__btn--ghost:hover,
html[data-bs-theme="dark"] .atelier-page__btn--ghost:focus,
body.dark .atelier-page__btn--ghost:hover,
body.dark .atelier-page__btn--ghost:focus {
    background: rgba(59, 130, 246, 0.22);
    color: #bfdbfe !important;
}

html[data-bs-theme="dark"] .atelier-page__hero-stack figure,
body.dark .atelier-page__hero-stack figure {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.2), rgba(30, 41, 59, 0.9));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

html[data-bs-theme="dark"] .atelier-filter-chip,
body.dark .atelier-filter-chip {
    background: rgba(26, 34, 45, 0.95);
    border-color: rgba(148, 163, 184, 0.16);
    color: #c5d0dc;
}

html[data-bs-theme="dark"] .atelier-filter-chip:hover,
body.dark .atelier-filter-chip:hover {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(96, 165, 250, 0.35);
    color: #93c5fd;
}

html[data-bs-theme="dark"] .atelier-filter-chip.active,
html[data-bs-theme="dark"] .atelier-filter-chip.active:hover,
body.dark .atelier-filter-chip.active,
body.dark .atelier-filter-chip.active:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

html[data-bs-theme="dark"] .atelier-pin,
body.dark .atelier-pin {
    background: #1a222d;
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

html[data-bs-theme="dark"] .atelier-pin:hover,
body.dark .atelier-pin:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

html[data-bs-theme="dark"] .atelier-pin__media,
body.dark .atelier-pin__media {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.18), rgba(30, 41, 59, 0.9));
}

html[data-bs-theme="dark"] .atelier-pin__footer-price,
body.dark .atelier-pin__footer-price {
    color: #93c5fd;
}

html[data-bs-theme="dark"] .atelier-pin__cta,
body.dark .atelier-pin__cta {
    background: #fff;
    color: #1d4ed8;
}

html[data-bs-theme="dark"] .atelier-empty,
body.dark .atelier-empty {
    background: rgba(26, 34, 45, 0.95);
    border-color: rgba(96, 165, 250, 0.28);
}

html[data-bs-theme="dark"] .atelier-pagination .page-link,
body.dark .atelier-pagination .page-link {
    background: #1a222d;
    border-color: rgba(148, 163, 184, 0.16);
    color: #c5d0dc;
}

html[data-bs-theme="dark"] .atelier-pagination .page-item.active .page-link,
body.dark .atelier-pagination .page-item.active .page-link {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}
