.yg-product-detail {
    --yg-navy: #062760;
    --yg-blue: #1e70e0;
    --yg-ink: #071d3b;
    --yg-text: #4b6078;
    --yg-muted: #8292a7;
    --yg-line: #dce6f1;
    --yg-soft: #f5f8fc;
    color: var(--yg-ink);
    background: #fff;
}

.yg-product-detail,
.yg-product-detail * {
    box-sizing: border-box;
}

.yg-product-detail a {
    text-decoration: none;
}

.yg-product-breadcrumb .container,
.yg-product-stage .container,
.yg-product-story .container,
.yg-product-related .container {
    width: min(100% - 40px, 1200px);
    max-width: 1200px;
}

.yg-product-breadcrumb .yg-breadcrumb-band-title > span {
    display: block;
    margin-bottom: 8px;
    color: #a9d2ff;
    font-size: 12px;
    font-weight: 700;
}

.yg-product-breadcrumb .yg-breadcrumb-band-title h1 {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 4.4vw, 58px);
    font-weight: 760;
    line-height: 1.04;
    letter-spacing: -.035em;
}

.yg-product-stage {
    padding: 72px 0 86px;
    background: #fff;
}

.yg-product-cover {
    aspect-ratio: 3 / 2;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--yg-line);
    border-radius: 14px;
    background: #eaf0f7;
}

.yg-product-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.yg-product-console {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 48px;
    padding: 34px 0 0;
}

.yg-product-intro {
    min-width: 0;
    padding: 2px 48px 8px 0;
}

.yg-product-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 0;
    margin-bottom: 16px;
    color: var(--yg-muted);
    font-size: 11px;
    font-weight: 700;
}

.yg-product-meta a {
    color: var(--yg-blue);
}

.yg-product-meta a,
.yg-product-meta span {
    display: inline-flex;
    align-items: center;
}

.yg-product-meta span::before {
    width: 4px;
    height: 4px;
    margin: 0 13px;
    border-radius: 50%;
    background: #b2c1d1;
    content: "";
}

.yg-product-intro > p {
    max-width: 720px;
    margin: 0;
    color: var(--yg-text);
    font-size: 17px;
    line-height: 1.78;
}

.yg-product-progress {
    max-width: 720px;
    margin-top: 27px;
}

.yg-product-progress-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
    color: var(--yg-muted);
    font-size: 12px;
}

.yg-product-progress-values b,
.yg-product-progress-values strong {
    color: var(--yg-navy);
    font-weight: 800;
}

.yg-product-progress-line {
    height: 5px;
    overflow: hidden;
    background: #e4ebf3;
}

.yg-product-progress-line span {
    display: block;
    height: 100%;
    background: var(--yg-blue);
}

.yg-product-progress small {
    display: block;
    margin-top: 8px;
    color: var(--yg-muted);
    font-size: 11px;
}

.yg-product-purchase {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 4px 0 8px 40px;
    border-left: 1px solid var(--yg-line);
}

.yg-product-fixed-amount {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--yg-line);
}

.yg-product-fixed-amount span,
.yg-product-custom-amount > span {
    color: var(--yg-muted);
    font-size: 11px;
    font-weight: 700;
}

.yg-product-fixed-amount strong {
    color: var(--yg-navy);
    font-size: 25px;
    font-weight: 820;
    line-height: 1;
}

.yg-product-custom-amount {
    display: block;
}

.yg-product-input-wrap {
    position: relative;
    display: block;
    margin-top: 8px;
}

.yg-product-input-wrap input {
    width: 100%;
    height: 56px;
    padding: 0 48px 0 15px;
    border: 1px solid #cfddeb;
    border-radius: 9px;
    outline: 0;
    color: var(--yg-ink);
    background: #fff;
    font: inherit;
    font-size: 18px;
    font-weight: 780;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.yg-product-input-wrap input:focus {
    border-color: var(--yg-blue);
    box-shadow: 0 0 0 3px rgba(30, 112, 224, .1);
}

.yg-product-input-wrap b {
    position: absolute;
    top: 50%;
    right: 16px;
    color: var(--yg-navy);
    font-size: 17px;
    transform: translateY(-50%);
}

.yg-product-presets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-top: 8px;
}

.yg-product-presets button {
    min-height: 34px;
    padding: 0 5px;
    border: 1px solid var(--yg-line);
    border-radius: 7px;
    color: var(--yg-navy);
    background: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.yg-product-presets button:hover,
.yg-product-presets button.is-active {
    color: #fff;
    border-color: var(--yg-navy);
    background: var(--yg-navy);
}

.yg-product-add {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding: 0 19px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--yg-navy);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.yg-product-add:hover {
    background: #0b3d82;
    transform: translateY(-1px);
}

.yg-product-add:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
}

.yg-product-add:focus-visible,
.yg-product-presets button:focus-visible {
    outline: 3px solid rgba(30, 112, 224, .22);
    outline-offset: 2px;
}

.yg-product-purchase > small {
    margin-top: 10px;
    color: var(--yg-muted);
    font-size: 10px;
    text-align: center;
}

.yg-product-story {
    padding: 88px 0 102px;
    border-top: 1px solid #e9eef5;
    background: #fff;
}

.yg-product-story-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 800px);
    gap: clamp(48px, 7vw, 92px);
    align-items: start;
}

.yg-product-story-layout > header {
    position: sticky;
    top: 120px;
    padding-top: 4px;
}

.yg-product-story-layout > header span {
    display: block;
    margin-bottom: 18px;
    color: var(--yg-blue);
    font-size: 12px;
    font-weight: 800;
}

.yg-product-story-layout > header span::after {
    display: block;
    width: 52px;
    height: 1px;
    margin-top: 13px;
    background: #bfd2e7;
    content: "";
}

.yg-product-story-layout > header h2 {
    margin: 0;
    color: var(--yg-ink);
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 760;
    line-height: 1.16;
    letter-spacing: -.025em;
}

.yg-product-rich-text {
    min-width: 0;
    color: #40566f;
    font-size: 16.5px;
    line-height: 1.92;
}

.yg-product-rich-text > :first-child {
    margin-top: 0 !important;
}

.yg-product-rich-text h1,
.yg-product-rich-text h2,
.yg-product-rich-text h3,
.yg-product-rich-text h4 {
    color: var(--yg-ink);
    font-weight: 750;
    line-height: 1.28;
}

.yg-product-rich-text h1,
.yg-product-rich-text h2 {
    margin: 36px 0 16px;
    font-size: 28px;
}

.yg-product-rich-text h3 {
    margin: 30px 0 13px;
    font-size: 21px;
}

.yg-product-rich-text p {
    margin: 0 0 20px;
}

.yg-product-rich-text ul,
.yg-product-rich-text ol {
    margin: 0 0 22px;
    padding-left: 22px;
}

.yg-product-rich-text img {
    max-width: 100%;
    height: auto;
    margin: 12px 0;
    border-radius: 10px;
}

.yg-product-rich-text a {
    color: var(--yg-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.yg-product-related {
    padding: 78px 0 96px;
    border-top: 1px solid #e2eaf3;
    background: var(--yg-soft);
}

.yg-product-related-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}

.yg-product-related-head span {
    color: var(--yg-blue);
    font-size: 11px;
    font-weight: 750;
}

.yg-product-related-head h2 {
    margin: 7px 0 0;
    color: var(--yg-ink);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 760;
    letter-spacing: -.03em;
}

.yg-product-related-head > a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 5px;
    border-bottom: 1px solid #a9c0d9;
    color: var(--yg-navy);
    font-size: 12px;
    font-weight: 700;
}

.yg-product-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 991px) {
    .yg-product-stage {
        padding: 50px 0 70px;
    }

    .yg-product-cover {
        aspect-ratio: 4 / 3;
    }

    .yg-product-console {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .yg-product-intro {
        padding-right: 0;
    }

    .yg-product-purchase {
        padding: 28px 0 0;
        border-top: 1px solid var(--yg-line);
        border-left: 0;
    }

    .yg-product-story-layout {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 46px;
    }

    .yg-product-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .yg-product-breadcrumb .container,
    .yg-product-stage .container,
    .yg-product-story .container,
    .yg-product-related .container {
        width: min(100% - 28px, 1200px);
    }

    .yg-product-breadcrumb .yg-breadcrumb-band-title h1 {
        font-size: clamp(32px, 10vw, 42px);
    }

    .yg-product-stage {
        padding: 28px 0 55px;
    }

    .yg-product-cover {
        aspect-ratio: 1 / 1;
        border-radius: 10px;
    }

    .yg-product-console {
        gap: 25px;
        padding-top: 25px;
    }

    .yg-product-intro > p {
        font-size: 14.5px;
        line-height: 1.72;
    }

    .yg-product-presets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yg-product-story {
        padding: 59px 0 68px;
    }

    .yg-product-story-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .yg-product-story-layout > header {
        position: static;
    }

    .yg-product-rich-text {
        font-size: 15px;
        line-height: 1.82;
    }

    .yg-product-related {
        padding: 55px 0 70px;
    }

    .yg-product-related-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .yg-product-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yg-product-add,
    .yg-product-presets button {
        transition: none;
    }
}
