/* AIPP Classic Product Sheet v1 */
.ps-studio-page {
    padding: 2rem;
    color: #1f2430;
}

.ps-studio-hero {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #f7f5ff, #fffaf5);
    border: 1px solid rgba(109, 93, 252, .16);
    box-shadow: 0 18px 50px rgba(31, 36, 48, .08);
}

.ps-studio-hero p,
.ps-editor-heading p,
.ps-kicker {
    margin: 0 0 .35rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .72rem;
    font-weight: 800;
    color: #6d5dfc;
}

.ps-studio-hero h1,
.ps-editor-heading h2 {
    margin: 0;
    font-weight: 850;
}

.ps-template-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ps-template-card {
    border: 1px solid rgba(31, 36, 48, .1);
    background: rgba(255,255,255,.9);
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 14px 36px rgba(31, 36, 48, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ps-template-card:hover,
.ps-template-card.is-active {
    transform: translateY(-2px);
    border-color: rgba(109, 93, 252, .45);
    box-shadow: 0 22px 50px rgba(109, 93, 252, .16);
}

.ps-template-card.is-disabled {
    opacity: .68;
    cursor: default;
}

.ps-template-card img,
.ps-template-placeholder {
    width: 100%;
    height: 170px;
    display: block;
    object-fit: cover;
    background: #f3f0ea;
}

.ps-template-placeholder {
    display: grid;
    place-items: center;
    font-weight: 850;
    color: #75707f;
}

.ps-template-card div:last-child {
    padding: 1rem;
}

.ps-template-card h3 {
    margin: 0 0 .35rem;
}

.ps-template-card p {
    margin: 0 0 .65rem;
    color: #626677;
}

.ps-template-card span {
    font-size: .78rem;
    font-weight: 750;
    color: #6d5dfc;
}

.ps-editor-shell {
    display: grid;
    grid-template-columns: minmax(320px, 410px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.ps-editor-panel,
.ps-preview-panel {
    border: 1px solid rgba(31, 36, 48, .1);
    background: rgba(255,255,255,.92);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(31, 36, 48, .08);
}

.ps-editor-panel {
    padding: 1.1rem;
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
}

.ps-preview-panel {
    padding: 1rem;
    overflow: auto;
}

.ps-editor-heading {
    margin-bottom: 1rem;
}

.ps-editor-panel label,
.ps-editor-panel h3 {
    display: block;
    margin: .9rem 0 .35rem;
    font-weight: 800;
}

.ps-input {
    width: 100%;
    border: 1px solid rgba(31, 36, 48, .16);
    background: #ffffff;
    color: #202431;
    border-radius: 14px;
    padding: .65rem .75rem;
    outline: none;
}

.ps-input:focus {
    border-color: rgba(109, 93, 252, .7);
    box-shadow: 0 0 0 4px rgba(109, 93, 252, .12);
}

.ps-textarea { min-height: 92px; }
.ps-textarea-small { min-height: 64px; }

.ps-toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    margin: 1rem 0;
}

.ps-toggle-grid label {
    margin: 0;
    padding: .6rem;
    border: 1px solid rgba(31, 36, 48, .1);
    border-radius: 14px;
    background: #faf9ff;
}

.ps-edit-card,
.ps-spec-edit-row,
.ps-hotspot-edit-row {
    display: grid;
    gap: .45rem;
    margin-bottom: .55rem;
}

.ps-spec-edit-row { grid-template-columns: 1fr 1fr; }
.ps-hotspot-edit-row { grid-template-columns: auto 1fr 72px 72px; align-items: center; }

.ps-classic-sheet {
    --ps-accent: #6d5dfc;
    position: relative;
    display: grid;
    grid-template-columns: 36% 64%;
    min-width: 900px;
    min-height: 720px;
    background: #f5f1e8;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(31, 36, 48, .12);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ps-version-chip {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 4;
    padding: .4rem .65rem;
    border-radius: 999px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(31, 36, 48, .1);
    font-size: .72rem;
    font-weight: 750;
    color: #4f5362;
    backdrop-filter: blur(12px);
}

.ps-info-panel {
    padding: 3rem 2rem 2rem;
    background: rgba(255,255,255,.58);
    border-right: 1px solid rgba(31, 36, 48, .1);
}

.ps-info-panel h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4.8rem);
    line-height: .92;
    letter-spacing: -.06em;
    font-weight: 950;
    color: #191b22;
}

.ps-info-panel h2 {
    margin: .45rem 0 1.5rem;
    font-size: 1rem;
    letter-spacing: .18em;
    color: #6b6570;
}

.ps-section {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(31, 36, 48, .12);
}

.ps-section h3 {
    margin: 0 0 .55rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    color: #343846;
}

.ps-section p {
    margin: 0;
    color: #535867;
    line-height: 1.55;
}

.ps-feature-list {
    display: grid;
    gap: .7rem;
}

.ps-feature-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: .75rem;
    align-items: start;
}

.ps-feature-item > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--ps-accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
}

.ps-feature-item strong {
    display: block;
    margin-bottom: .2rem;
    font-size: .85rem;
    letter-spacing: .05em;
}

.ps-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin: 0;
}

.ps-spec-grid div {
    padding: .65rem;
    border-radius: 14px;
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(31, 36, 48, .08);
}

.ps-spec-grid dt {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #747888;
}

.ps-spec-grid dd {
    margin: .2rem 0 0;
    font-weight: 800;
    color: #242936;
}

.ps-hero-panel {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 1rem;
    padding: 3.75rem 2rem 2rem;
}

.ps-hero-card {
    position: relative;
    min-height: 520px;
    border-radius: 28px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 25%, #fff, #ece5d8);
    box-shadow: inset 0 0 0 1px rgba(31, 36, 48, .09), 0 24px 55px rgba(31, 36, 48, .12);
}

.ps-hero-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2rem;
}

.ps-hotspot-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ps-hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: .45rem;
}

.ps-hotspot-dot {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #151821;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 0 0 5px rgba(255,255,255,.72);
}

.ps-hotspot-label {
    padding: .38rem .55rem;
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(31, 36, 48, .1);
    font-size: .74rem;
    font-weight: 800;
    white-space: nowrap;
}

.ps-swatch-strip {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .85rem 1rem;
    border-radius: 18px;
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(31, 36, 48, .1);
}

.ps-swatch-strip span {
    margin-right: auto;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    font-weight: 900;
    color: #4b4f5c;
}

.ps-swatch-strip i {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-block;
    border: 2px solid rgba(255,255,255,.9);
    box-shadow: 0 0 0 1px rgba(31,36,48,.18);
}

@media (max-width: 1100px) {
    .ps-template-gallery,
    .ps-editor-shell {
        grid-template-columns: 1fr;
    }

    .ps-editor-panel {
        position: static;
        max-height: none;
    }

    .ps-classic-sheet {
        min-width: 760px;
    }
}

@media (max-width: 760px) {
    .ps-studio-page { padding: 1rem; }
    .ps-classic-sheet {
        min-width: 0;
        grid-template-columns: 1fr;
    }
    .ps-info-panel { border-right: 0; border-bottom: 1px solid rgba(31,36,48,.1); }
    .ps-hero-panel { padding-top: 1rem; }
}
