/* ============================================
   Studio Doctor · Single Product Page
   Premium dark theme · Matches shop design
   Play button & related cards preserved
   ============================================ */

.sd-single-product {
    padding: 20px 16px 60px;
    background: #0b0d0f;
    color: #e8edf2;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.sd-single-product__inner {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 0 4px;
}

/* ----- BREADCRUMB ----- */
.sd-single-product__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #1e262e;
    color: #7d8794;
    font-size: 0.8rem;
}

.sd-single-product__breadcrumb a {
    color: #9aa3af;
    text-decoration: none;
    transition: color 0.2s;
}

.sd-single-product__breadcrumb a:hover {
    color: #e8edf2;
}

.sd-single-product__breadcrumb span:nth-last-child(2) {
    color: #5f7f9c;
}

/* ----- PRODUCT HERO LAYOUT ----- */
.sd-single-product__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 40px;
    margin-bottom: 40px;
    align-items: start;
}

/* ----- MEDIA / ARTWORK ----- */
.sd-single-product__hero {
    position: relative;
}

.sd-single-product__media {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #11171e;
    border: 1px solid #202a34;
    padding: 0;
}

.sd-single-product__media .sd-product-media__image {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    background: #11171e;
    min-height: 0;
}

.sd-single-product__media .sd-product-media__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sd-single-product__media .sd-product-media__audio {
    display: none;
}

/* ----- PREVIEW BUTTON (preserved original) ----- */
.sd-single-product__preview-button {
    position: absolute;
    right: clamp(28px, 4vw, 48px);
    bottom: clamp(28px, 4vw, 48px);
    z-index: 2;
    width: 48px;
    height: 48px;
    box-shadow: 0 10px 22px rgba(19, 28, 40, 0.2);
    border: none;
    border-radius: 50%;
    background: rgba(246, 243, 243, 0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
    backdrop-filter: blur(4px);
    border: 1px solid #3b4d5e;
}

.sd-single-product__preview-button:hover {
    transform: scale(1.08);
    background: #1f3140;
}

.sd-single-product__preview-button .play-icon {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 10px solid #d0dce8;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-left: 3px;
    transition: 0.15s;
}

.sd-single-product__preview-button:hover .play-icon {
    border-left-color: white;
}

/* ----- SUMMARY PANEL ----- */
.sd-single-product__summary-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 4px 0 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.sd-single-product__summary-label {
    display: none;
}

/* ----- EYEBROW / BADGE ROW ----- */
.sd-single-product__eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
}

.sd-single-product__eyebrow span {
    padding: 4px 14px;
    border: 1px solid #2c3d4e;
    border-radius: 20px;
    background: #1b2938;
    color: #a8bbc8;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sd-single-product__eyebrow span + span::before {
    display: none;
}

.sd-single-product__eyebrow span.is-free {
    color: #84b0d0;
    border-color: #3d5f78;
}

.sd-single-product__eyebrow span.is-premium {
    color: #f0c080;
    border-color: #6f5a3a;
}

/* ----- TITLE ----- */
.sd-single-product__title {
    margin: 0;
    color: #f0f5fb;
    font-size: clamp(1.8rem, 4.5vw, 3.4rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* ----- STATUS ROW (price) ----- */
.sd-single-product__status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 0;
    border: 0;
}

.sd-single-product__status {
    display: none;
}

.sd-single-product__price {
    color: #f0f5fb;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 600;
}

.sd-single-product__price.is-free {
    color: #84b0d0;
}

/* ----- DESCRIPTION ----- */
.sd-single-product__description-content {
    max-width: 600px;
    color: #bcc8d4;
    font-size: 1rem;
    line-height: 1.7;
}

/* ----- CTA BUTTON ----- */
.sd-single-product__action-area {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 8px;
}

.sd-single-product__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 0;
    padding: 12px 32px;
    border: 1px solid #5b7b97;
    border-radius: 40px;
    background: #2f4a62;
    color: #f0f6fc;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    font-family: inherit;
}

.sd-single-product__action:hover {
    background: #406080;
    border-color: #7f9bb5;
}

.sd-single-product__action span {
    font-size: 1.15rem;
    line-height: 1;
}

.sd-single-product__action-note {
    color: #7d8794;
    font-size: 0.72rem;
    line-height: 1.5;
    width: 100%;
}

/* ----- PRODUCT META (grid below CTA) ----- */
.sd-product-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px 24px;
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid #1f2935;
}

.sd-product-meta__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sd-product-meta__label {
    color: #7d8794;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sd-product-meta__value {
    color: #e0e8f0;
    font-size: 0.9rem;
    font-weight: 450;
}

/* ----- TABS ----- */
.sd-single-product__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid #1e262e;
}

.sd-single-product__tabs button {
    padding: 10px 20px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: #9aa3af;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 450;
    transition: 0.2s;
}

.sd-single-product__tabs button:hover {
    color: #e8edf2;
}

.sd-single-product__tabs button.is-active {
    border-bottom-color: #5f7f9c;
    color: #f0f5fb;
}

/* ----- SECTIONS (shared) ----- */
.sd-single-product__section {
    margin: 0 0 40px;
    padding: 0;
    border: 0;
}

.sd-single-product__section h2 {
    margin-bottom: 16px;
    color: #e8edf2;
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.sd-single-product__section-kicker {
    display: none;
}

/* ----- INFO GRID (cards) ----- */
.sd-single-product__detail-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px 20px;
}

.sd-single-product__detail-card {
    overflow: hidden;
    border: 1px solid #202a34;
    border-radius: 20px;
    background: #11171e;
    box-shadow: none;
}

.sd-single-product__detail-card h3 {
    margin: 0;
    padding: 20px 28px 0;
    border: 0;
    color: #e8edf2;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.sd-single-product__detail-card .sd-single-product__detail-grid {
    padding: 20px 28px 24px;
}

/* ----- DETAIL GRID (inside cards) ----- */
.sd-single-product__detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.sd-single-product__detail {
    padding: 0 0 14px;
    background: transparent;
}

.sd-single-product__detail dt {
    color: #7d8794;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sd-single-product__detail dd {
    margin: 4px 0 0;
    color: #e0e8f0;
    font-size: 0.9rem;
    font-weight: 450;
    overflow-wrap: anywhere;
}

.sd-single-product__detail dd.is-tag {
    display: inline-block;
    padding: 2px 12px;
    border: 1px solid #2c3845;
    border-radius: 20px;
    background: #1a232c;
    font-size: 0.75rem;
    width: fit-content;
}

/* ----- LICENSE LIST ----- */
.sd-single-product__license ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sd-single-product__license li {
    padding: 10px 14px;
    border: 1px solid #2c3845;
    border-radius: 999px;
    background: #1a232c;
    color: #e0e8f0;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ----- CREATOR SECTION ----- */
.sd-single-product__creator-content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    max-width: none;
    padding: 24px 28px;
    border: 1px solid #202a34;
    border-radius: 20px;
    background: #11171e;
    flex-wrap: wrap;
}

.sd-single-product__creator-content img {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2c3845;
}

.sd-single-product__creator-content h3 {
    margin: 0;
    color: #f0f5fb;
    font-size: 1.1rem;
    font-weight: 600;
}

.sd-single-product__creator-content p {
    margin: 4px 0 0;
    color: #bcc8d4;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 600px;
}

/* ----- INSTALLATION STEPS ----- */
.sd-single-product__steps {
    display: grid;
    gap: 12px;
    max-width: none;
    margin: 0;
    padding: 24px 28px 24px 48px;
    border: 1px solid #202a34;
    border-radius: 20px;
    background: #11171e;
    color: #bcc8d4;
    line-height: 1.7;
}

.sd-single-product__steps li {
    color: #bcc8d4;
}

/* ----- GALLERY ----- */
.sd-single-product__gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.sd-single-product__gallery-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid #202a34;
    border-radius: 16px;
    background: #11171e;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
}

.sd-single-product__gallery-grid img:hover {
    transform: scale(1.02);
    border-color: #3d5266;
}

/* ----- YOUTUBE / DEMO ----- */
.sd-single-product__demo {
    margin: 0;
}

.sd-single-product__demo a {
    color: #5f7f9c;
    font-weight: 600;
    text-decoration-thickness: 2px;
}

.sd-single-product__youtube {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid #202a34;
    border-radius: 20px;
    background: #11171e;
}

.sd-single-product__youtube iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ----- RELATED PRODUCTS (preserved original) ----- */
.sd-related-products {
    margin-top: 0;
}

.sd-related-products__title {
    color: #e8edf2;
    margin-bottom: 16px;
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.sd-related-products .sd-product-card {
    border: 1px solid #202a34;
    border-radius: 16px;
    background: #11171e;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.3s, border-color 0.2s;
    box-shadow: none;
}

.sd-related-products .sd-product-card:hover {
    transform: translateY(-4px);
    border-color: #3d5266;
    box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.6);
}

.sd-related-products .sd-product-card__image,
.sd-related-products .sd-product-card__artwork {
    background: #1b2530;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.sd-related-products .sd-product-card__image img,
.sd-related-products .sd-product-card__artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sd-related-products .sd-product-card__content {
    padding: 12px 14px 14px;
}

.sd-related-products .sd-product-card__title {
    color: #f0f5fb;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sd-related-products .sd-product-card__meta {
    background: #11171e;
}

.sd-related-products .sd-product-card__price {
    color: #eef4fa;
    font-weight: 600;
    font-size: 0.9rem;
}

.sd-related-products .sd-product-card__price.is-free {
    color: #84b0d0;
}

.sd-related-products .sd-product-card__view {
    padding: 2px 10px;
    border: 1px solid #2c3d4e;
    border-radius: 20px;
    background: #1b2938;
    color: #a8bbc8;
    font-size: 0.6rem;
    font-weight: 500;
}

.sd-related-products .sd-product-card__category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7d8d9e;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 820px) {
    .sd-single-product {
        padding: 16px 12px 40px;
    }

    .sd-single-product__layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sd-single-product__media {
        max-width: 500px;
        margin: 0 auto;
    }

    .sd-single-product__description-content {
        max-width: 100%;
    }

    .sd-single-product__detail-sections {
        grid-template-columns: 1fr 1fr;
    }

    .sd-single-product__creator-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .sd-single-product__creator-content p {
        max-width: 100%;
    }

    .sd-single-product__youtube {
        width: 100%;
    }

    .sd-single-product__preview-button {
        right: clamp(16px, 3vw, 28px);
        bottom: clamp(16px, 3vw, 28px);
        width: 44px;
        height: 44px;
    }

    .sd-single-product__preview-button .play-icon {
        border-left-width: 8px;
        border-top-width: 5px;
        border-bottom-width: 5px;
    }
}

@media (max-width: 540px) {
    .sd-single-product {
        padding: 12px 8px 32px;
    }

    .sd-single-product__inner {
        padding: 0;
    }

    .sd-single-product__layout {
        gap: 16px;
    }

    .sd-single-product__preview-button {
        right: clamp(12px, 2vw, 20px);
        bottom: clamp(12px, 2vw, 20px);
        width: 40px;
        height: 40px;
    }

    .sd-single-product__preview-button .play-icon {
        border-left-width: 7px;
        border-top-width: 4px;
        border-bottom-width: 4px;
    }

    .sd-single-product__summary-panel {
        padding: 0;
    }

    .sd-single-product__detail-sections {
        grid-template-columns: 1fr;
    }

    .sd-single-product__detail-card h3 {
        padding: 16px 16px 0;
        font-size: 0.95rem;
    }

    .sd-single-product__detail-card .sd-single-product__detail-grid {
        padding: 16px 16px 20px;
    }

    .sd-single-product__detail {
        padding-bottom: 10px;
    }

    .sd-single-product__gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .sd-single-product__creator-content {
        padding: 16px;
        gap: 16px;
    }

    .sd-single-product__creator-content img {
        width: 60px;
        height: 60px;
        flex: 0 0 60px;
    }

    .sd-single-product__steps {
        padding: 16px 16px 16px 34px;
        font-size: 0.9rem;
    }

    .sd-single-product__tabs button {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .sd-single-product__action {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }

    .sd-single-product__action-area {
        width: 100%;
    }

    .sd-product-meta {
        grid-template-columns: 1fr 1fr;
        gap: 8px 16px;
    }

    .sd-related-products .sd-product-card {
        min-width: 0;
    }
}

@media (max-width: 400px) {
    .sd-single-product__gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .sd-product-meta {
        grid-template-columns: 1fr;
    }

    .sd-single-product__eyebrow span {
        font-size: 0.6rem;
        padding: 3px 10px;
    }

    .sd-single-product__preview-button {
        width: 36px;
        height: 36px;
        right: 10px;
        bottom: 10px;
    }

    .sd-single-product__preview-button .play-icon {
        border-left-width: 6px;
        border-top-width: 4px;
        border-bottom-width: 4px;
    }
}

@media (min-width: 821px) {
    .sd-single-product__youtube {
        width: min(100%, 960px);
        margin-right: auto;
        margin-left: auto;
    }
}