/* Site içi tasarımcı stüdyosu */
.wd-page {
    background: #f7f4f0;
    min-height: calc(100vh - 56px);
    padding: 24px 0 48px;
    color: #171411;
}

.wd-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
}

.wd-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.wd-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    font-size: 12px;
    font-weight: 800;
    color: #6b6259;
}

.wd-step.is-active {
    background: #171717;
    color: #fff;
    border-color: #171717;
}

.wd-step span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .08);
    font-size: 11px;
}

.wd-step.is-active span {
    background: rgba(255, 255, 255, .18);
}

.wd-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: end;
    margin-bottom: 16px;
}

.wd-head h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 4vw, 36px);
}

.wd-head p {
    margin: 6px 0 0;
    color: #6b6259;
    font-size: 14px;
}

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

.wd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 0;
    background: #171717;
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
}

.wd-btn:hover {
    background: #2c2620;
    color: #fff !important;
}

.wd-btn--light {
    background: #fff;
    color: #171717 !important;
    border: 1px solid rgba(0, 0, 0, .1);
}

.wd-btn--light:hover {
    background: #f3eee8;
    color: #171717 !important;
}

.wd-btn--ghost {
    background: transparent;
    color: #171717 !important;
    border: 1px dashed rgba(0, 0, 0, .2);
}

.wd-studio-wrap {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 16px 40px rgba(30, 24, 18, .06);
}

.wd-studio-wrap .ds-embed.ds-main {
    min-height: 620px;
}

.wd-details {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.wd-preview-card,
.wd-form-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(30, 24, 18, .06);
}

.wd-preview-card {
    padding: 14px;
    position: sticky;
    top: 72px;
}

.wd-preview-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center top;
    background: #f3eee8;
    border-radius: 12px;
}

.wd-preview-card p {
    margin: 10px 0 0;
    font-size: 12px;
    color: #766b61;
    font-weight: 700;
    text-align: center;
}

.wd-form-card {
    padding: 24px;
}

.wd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.wd-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wd-field--full {
    grid-column: 1 / -1;
}

.wd-field label {
    font-size: 12px;
    font-weight: 800;
    color: #3a322b;
}

.wd-field input,
.wd-field select,
.wd-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 12px;
    background: #fbfaf8;
    font-size: 14px;
}

.wd-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 44px;
    line-height: 1.35;
    padding: 0 38px 0 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2361574d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.wd-field textarea {
    min-height: 110px;
    resize: vertical;
}

.wd-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wd-size-pill {
    display: inline-flex;
    cursor: pointer;
}

.wd-size-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wd-size-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .14);
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    color: #3a322b;
    transition: all .2s ease;
}

.wd-size-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    color: transparent;
    background: #fff;
    transition: all .2s ease;
}

.wd-size-pill input:checked + .wd-size-box {
    border-color: #171717;
    background: #171717;
    color: #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
}

.wd-size-pill input:checked + .wd-size-box .wd-size-check {
    border-color: #fff;
    color: #171717;
    background: #fff;
}

.wd-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

/* Tasarımlarım */
.wd-grid-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.wd-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(30, 24, 18, .05);
}

.wd-card-media {
    position: relative;
    aspect-ratio: 3/4;
    background: #ebe4db;
}

.wd-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wd-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    background: #171717;
    color: #fff;
}

.wd-badge.is-draft { background: #6b6259; }
.wd-badge.is-pending { background: #c9851a; }
.wd-badge.is-approved { background: #0f7a3c; }
.wd-badge.is-rejected { background: #b42318; }

.wd-card-body {
    padding: 12px 14px 14px;
}

.wd-card-body h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
}

.wd-card-body p {
    margin: 6px 0 0;
    font-size: 12px;
    color: #766b61;
    font-weight: 700;
}

.wd-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.wd-empty {
    grid-column: 1 / -1;
    padding: 40px 24px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed rgba(0, 0, 0, .12);
    color: #6b6259;
}

@media (max-width: 900px) {
    .wd-details,
    .wd-grid,
    .wd-grid-cards {
        grid-template-columns: 1fr;
    }

    .wd-preview-card {
        position: static;
    }
}
