/**
 * Svitlana Zamkova — Bespoke Atelier Design CSS
 * Exact compact, clean editorial style from custom.zamkova-svitlana.com/personal-design/
 */

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/lato-400.woff2") format("woff2");
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/lato-700.woff2") format("woff2");
}

@font-face {
    font-family: "Zen Old Mincho";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/zen-old-mincho-latin.woff2") format("woff2");
    unicode-range: U+0000-00ff, U+0131, U+0152-0153, U+02bb-02bc, U+02c6, U+02da, U+02dc, U+2000-206f, U+20ac, U+2122;
}

@font-face {
    font-family: "Zen Old Mincho";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/zen-old-mincho-cyrillic.woff2") format("woff2");
    unicode-range: U+0400-045f, U+0490-0491, U+04b0-04b1, U+2116;
}

.post-8593 .page-header,
.page-id-8593 .page-header,
body:has(.custom-design) .page-header {
    display: none !important;
}

.post-8593 .page-content {
    margin: 0 !important;
    padding: 0 !important;
}

.custom-design {
    --zs-ink: #222;
    --zs-ink-soft: #3a3a3a;
    --zs-paper: #fff;
    --zs-surface: #f2f2f2;
    --zs-line: #d7d7d7;
    --zs-muted: #707070;
    --zs-accent: #dda26e;
    --zs-success: #2d6a4f;
    --zs-error: #a23b3b;
    --zs-serif: "Zen Old Mincho", Georgia, "Times New Roman", serif;
    --zs-sans: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --zs-shell: 1240px;
    --zs-section: 72px;
    --design-green: #285648;

    font-family: var(--zs-sans);
    color: var(--zs-ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.custom-design *,
.custom-design *::before,
.custom-design *::after {
    box-sizing: border-box;
}

.custom-design [hidden] {
    display: none !important;
}

/* Site shell container */
.custom-design .site-shell {
    width: min(calc(100% - 48px), var(--zs-shell));
    margin-inline: auto;
}

.custom-design .section {
    padding-block: var(--zs-section);
}

/* Eyebrow badge */
.custom-design .eyebrow {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
    color: #9a9a9a;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.custom-design .eyebrow::after {
    width: 24px;
    height: 1px;
    background: var(--zs-accent);
    content: "";
}

/* Section headings */
.custom-design .section-heading {
    margin-bottom: 36px;
}

.custom-design .section-heading h2 {
    font-family: var(--zs-serif);
    font-size: 32px;
    line-height: 1.25;
    margin: 0 0 14px;
    text-transform: uppercase;
    color: var(--zs-ink);
    font-weight: 400;
}

.custom-design .section-heading p {
    color: var(--zs-muted);
    margin: 0;
    font-size: 15px;
    max-width: 600px;
}

/* Header */
.custom-design .design-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    padding-top: 42px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--zs-line);
    margin-bottom: 40px;
}

.custom-design .design-heading h1 {
    font-family: var(--zs-serif);
    font-size: 42px;
    line-height: 1.15;
    margin: 8px 0 0;
    max-width: 780px;
    color: var(--zs-ink);
    font-weight: 400;
}

.custom-design .design-heading > p {
    max-width: 320px;
    margin: 0 0 4px;
    color: #555;
    font-size: 15px;
    line-height: 1.45;
}

/* Main Builder Grid */
.custom-design .design-builder {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 60px;
    align-items: start;
    padding-bottom: 54px;
    scroll-margin-top: 90px;
}

.custom-design .design-form {
    min-width: 0;
}

/* 3-Step Navigation Tabs */
.custom-design .design-steps {
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--zs-line);
}

.custom-design .design-steps li {
    min-width: 0;
}

.custom-design .design-steps button {
    width: 100%;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: none;
    color: #707070;
    min-height: 56px;
    padding: 8px 4px 14px;
    text-align: left;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}

.custom-design .design-steps button span {
    display: block;
    font-size: 11px;
    margin-bottom: 2px;
    font-weight: 700;
    color: #999;
}

.custom-design .design-steps button[aria-current="step"] {
    color: #222;
    border-bottom-color: #222;
    font-weight: 700;
}

.custom-design .design-step {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.custom-design .design-step > legend {
    font-family: var(--zs-serif);
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 22px;
    padding: 0;
    color: var(--zs-ink);
}

/* Kind Options (Shoes vs Bag) */
.custom-design .design-kind-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 26px;
}

.custom-design .design-kind {
    cursor: pointer;
    position: relative;
    min-width: 0;
}

.custom-design .design-kind > input,
.custom-design .design-choices input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.custom-design .design-kind__visual {
    display: block;
    height: 192px;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background: #f5f5f5;
}

.custom-design .design-kind img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 64%;
    transition: transform .4s ease;
}

.custom-design .design-kind:hover img {
    transform: scale(1.025);
}

.custom-design .design-kind__check {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    color: transparent;
    display: grid;
    place-items: center;
    border: 1px solid #bbb;
    font-size: 15px;
    transition: all .2s ease;
}

.custom-design .design-kind input:checked + .design-kind__visual {
    border-color: var(--design-green);
}

.custom-design .design-kind input:checked + .design-kind__visual .design-kind__check {
    background: var(--design-green);
    color: white;
    border-color: var(--design-green);
}

.custom-design .design-kind strong {
    display: block;
    margin-top: 10px;
    font-size: 17px;
    color: #222;
}

.custom-design .design-kind small {
    font-size: 13px;
    color: #666;
    display: block;
    margin-top: 2px;
}

/* Fields & Inputs */
.custom-design .design-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    min-width: 0;
    font-size: 14px;
}

.custom-design .design-field > span {
    font-weight: 700;
    color: #333;
}

.custom-design .design-field small {
    font-weight: 400;
    color: #666;
}

.custom-design .design-field input,
.custom-design .design-field select,
.custom-design .design-field textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    border: 1px solid #b8b8b8;
    border-radius: 0;
    background-color: #fff;
    padding: 11px 14px;
    font: inherit;
    font-size: 15px;
    color: #222;
    transition: border-color .2s;
}

.custom-design .design-field textarea {
    resize: vertical;
}

.custom-design :is(input, select, textarea, button, a):focus-visible {
    outline: 2px solid var(--design-green);
    outline-offset: 3px;
}

.custom-design .design-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

.custom-design .design-field--wide {
    grid-column: 1 / -1;
}

.custom-design .design-note {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin: 8px 0 20px;
}

/* Materials choice pills */
.custom-design .design-materials {
    padding: 0;
    border: 0;
    margin: 0 0 24px;
}

.custom-design .design-materials legend {
    font-weight: 700;
    font-size: 14px;
    padding: 0 0 10px;
    color: #333;
}

.custom-design .design-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.custom-design .design-choices label {
    position: relative;
    cursor: pointer;
}

.custom-design .design-choices span {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    border: 1px solid #bbb;
    padding: 8px 14px;
    font-size: 13px;
    color: #333;
    transition: all .2s ease;
}

.custom-design .design-choices input:checked + span {
    background: #222;
    color: white;
    border-color: #222;
}

/* Collapsible Disclosures */
.custom-design .design-disclosure {
    border-top: 1px solid var(--zs-line);
    border-bottom: 1px solid var(--zs-line);
    margin: 0 0 24px;
}

.custom-design .design-disclosure summary {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    list-style: none;
    color: #222;
}

.custom-design .design-disclosure summary::-webkit-details-marker {
    display: none;
}

.custom-design .design-disclosure summary span {
    font-size: 20px;
    font-weight: 400;
    transition: transform .2s ease;
}

.custom-design .design-disclosure[open] summary span {
    transform: rotate(45deg);
}

.custom-design .design-disclosure > p {
    font-size: 13px;
    color: #666;
    margin: 0 0 16px;
}

/* Palette Swatches */
.custom-design .design-palette {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding-bottom: 18px;
}

.custom-design .design-palette button {
    border: 0;
    padding: 0;
    display: block;
    background: none;
    width: 100%;
    cursor: zoom-in;
}

.custom-design .design-palette img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9/16;
    object-fit: contain;
    background: #f3f3f3;
}

.custom-design .design-palette label {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    font-size: 12px;
    cursor: pointer;
}

.custom-design .design-palette input,
.custom-design .design-consent input {
    accent-color: var(--design-green);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Measurement Guide Table */
.custom-design .design-measure-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 16px;
}

.custom-design .design-disclosure table {
    border-collapse: collapse;
    width: 100%;
    margin: 16px 0;
    font-size: 13px;
}

.custom-design .design-disclosure th,
.custom-design .design-disclosure td {
    padding: 7px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.custom-design .design-disclosure tr:nth-child(even) {
    background: #f5f5f5;
}

/* Actions & Buttons */
.custom-design .design-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #ddd;
}

.custom-design .button {
    min-height: 48px;
    padding: 13px 28px;
    border: 1px solid var(--zs-ink);
    border-radius: 0;
    color: var(--zs-paper);
    background: var(--zs-ink);
    font-family: var(--zs-sans);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all .2s ease;
}

.custom-design .button--dark {
    background: #222;
    color: #fff;
    border-color: #222;
}

.custom-design .button--dark:hover {
    background: #000;
    color: #fff;
}

.custom-design .design-actions .button {
    min-width: 175px;
    gap: 12px;
}

.custom-design .design-back {
    border: 0;
    padding: 12px 16px;
    background: transparent;
    font: inherit;
    cursor: pointer;
    min-height: 48px;
    margin-right: auto;
    font-size: 14px;
    color: #555;
    transition: color .2s;
}

.custom-design .design-back:hover {
    color: #000;
}

.custom-design .design-actions button:disabled {
    opacity: .6;
    cursor: wait;
}

/* Sticky Preview Sidebar */
.custom-design .design-preview {
    min-width: 0;
    position: sticky;
    top: 30px;
}

.custom-design .design-preview figure {
    margin: 0;
}

.custom-design .design-preview figure > img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    object-position: center 64%;
    display: block;
    background: #f5f5f5;
}

.custom-design .design-preview figcaption {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.custom-design .design-preview__summary {
    border-top: 1px solid var(--zs-line);
    padding-top: 20px;
    margin-top: 20px;
}

.custom-design [data-design-summary] {
    margin: 12px 0 0;
    font-size: 14px;
}

.custom-design [data-design-summary] > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.custom-design [data-design-summary] dt {
    color: #666;
}

.custom-design [data-design-summary] dd {
    margin: 0;
    text-align: right;
    overflow-wrap: anywhere;
    font-weight: 600;
    color: #222;
}

.custom-design .design-review {
    margin-bottom: 26px;
}

.custom-design .design-review:empty {
    display: none;
}

/* Consent & Feedback */
.custom-design .design-consent {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #555;
    align-items: flex-start;
    margin: 6px 0 20px;
    cursor: pointer;
}

.custom-design .design-consent input {
    margin: 3px 0 0;
}

.custom-design .design-consent a {
    text-decoration: underline;
    color: #222;
}

.custom-design .design-error {
    padding: 12px 16px;
    border-left: 3px solid var(--zs-error);
    background: #fff1f1;
    color: #842d2d;
    margin-top: 16px;
    font-size: 14px;
}

.custom-design .design-success {
    border-top: 3px solid var(--design-green);
    padding: 32px 0;
    margin-bottom: 30px;
}

.custom-design .design-success h2 {
    font-family: var(--zs-serif);
    font-size: 26px;
    line-height: 1.4;
    font-weight: 400;
    margin: 0 0 14px;
}

.custom-design .design-success p {
    font-size: 16px;
    color: #444;
    margin-bottom: 22px;
}

/* 3 Process Steps */
.custom-design .design-process {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    border-top: 1px solid #ddd;
    padding-top: 28px;
    padding-bottom: 44px;
}

.custom-design .design-process p {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 15px;
    margin: 0;
    color: #333;
}

.custom-design .design-process span {
    color: #727272;
    font-family: var(--zs-serif);
    font-size: 26px;
}

/* Examples Grid */
.custom-design .design-examples {
    background: #f4f5f3;
}

.custom-design .design-example-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 20px;
}

.custom-design .design-example-grid figure,
.custom-design .design-videos figure {
    margin: 0;
    min-width: 0;
}

.custom-design .design-example-grid figure > button {
    display: block;
    border: 0;
    padding: 0;
    background: none;
    cursor: zoom-in;
    width: 100%;
    overflow: hidden;
}

.custom-design .design-example-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.custom-design .design-example-grid figure > button:hover img {
    transform: scale(1.03);
}

.custom-design .design-example-grid figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.custom-design .design-example-grid figcaption > span {
    color: #777;
    font-size: 12px;
}

.custom-design .design-example-grid figcaption button {
    background: none;
    border: 0;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #222;
    min-height: 40px;
    cursor: pointer;
    padding: 6px 0;
    text-align: right;
    transition: color .2s;
}

.custom-design .design-example-grid figcaption button:hover {
    color: var(--design-green);
}

/* Video Showcase Row */
.custom-design .design-video-section {
    padding-top: 48px;
    padding-bottom: 64px;
}

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

.custom-design .design-videos video {
    width: 100%;
    display: block;
    aspect-ratio: 3/4;
    object-fit: contain;
    background: #171717;
}

/* Lightbox Modal */
.custom-design .design-lightbox {
    padding: 48px 14px 14px;
    border: 0;
    max-width: min(900px, 96%);
    max-height: 92dvh;
    background: white;
}

.custom-design .design-lightbox::backdrop {
    background: rgb(0 0 0 / .75);
}

.custom-design .design-lightbox img {
    max-height: 78dvh;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
    margin: auto;
}

.custom-design .design-lightbox > button {
    position: absolute;
    right: 6px;
    top: 2px;
    width: 44px;
    height: 44px;
    border: 0;
    background: white;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.custom-design .form-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.custom-design .design-step.is-entering {
    animation: design-enter .25s ease both;
}

@keyframes design-enter {
    from { opacity: .3; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Media Queries */
@media (max-width: 1000px) {
    .custom-design .design-builder {
        gap: 32px;
        grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr);
    }
    .custom-design .design-heading h1 {
        font-size: 34px;
    }
    .custom-design .design-kind__visual {
        height: 160px;
    }
    .custom-design .design-preview figure > img {
        height: 380px;
    }
    .custom-design .design-example-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .custom-design .design-heading {
        padding-top: 24px;
        padding-bottom: 20px;
        display: block;
        gap: 16px;
    }
    .custom-design .design-heading h1 {
        font-size: 28px;
    }
    .custom-design .design-heading > p {
        max-width: none;
        margin-top: 14px;
        font-size: 14px;
    }
    .custom-design .design-builder {
        display: block;
        padding-bottom: 32px;
    }
    .custom-design .design-steps {
        margin-bottom: 22px;
    }
    .custom-design .design-steps button {
        font-size: 12px;
        min-height: 48px;
    }
    .custom-design .design-step > legend {
        font-size: 22px;
    }
    .custom-design .design-kind-options {
        gap: 12px;
    }
    .custom-design .design-kind__visual {
        height: 160px;
    }
    .custom-design .design-kind small {
        font-size: 12px;
    }
    .custom-design .design-preview {
        display: none;
    }
    .custom-design .design-field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .custom-design .design-actions .button {
        min-width: 0;
        flex: 1;
        padding: 13px 16px;
    }
    .custom-design .design-palette {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
    .custom-design .design-process {
        gap: 16px;
        padding-bottom: 22px;
        grid-template-columns: 1fr;
    }
    .custom-design .design-process p {
        font-size: 13px;
    }
    .custom-design .design-example-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }
    .custom-design .design-videos {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px;
    }
    .custom-design .design-videos figure {
        flex: 0 0 75%;
        scroll-snap-align: start;
    }
}
