.yh-products {
    background: var(--yh-paper);
}

.yh-products .yh-section-head {
    grid-template-columns: 1fr;
}

.yh-board-main {
    min-height: 70vh;
    padding-top: var(--yh-header);
    background: var(--yh-paper);
}

.yh-board-page .sv {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 380px;
    overflow: hidden;
    padding: 0 24px;
    border-radius: 0 0 0 100px;
    background-position: center;
    background-size: cover;
    color: #fff;
}

.yh-board-page .sv::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(32, 38, 43, .62);
}

.yh-board-page .sv_tit {
    position: relative;
    z-index: 1;
    padding-top: 45px;
    text-align: center;
}

.yh-board-page .sv_en {
    margin: 0;
    color: #fff;
    font-family: var(--yh-display);
    font-size: 50px;
    font-weight: 400;
    letter-spacing: .01em;
    line-height: 1.3;
}

.yh-board-page .sv_dot {
    display: block;
    width: 4px;
    height: 4px;
    margin: 5px auto 15px;
    border-radius: 50%;
    background: #fff;
}

.yh-board-page .sv_ko {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -.01em;
    line-height: 1.3;
}

/* The member skin is retained for board behavior; product media uses a catalogue ratio. */
.yh-board-page .mb_card {
    aspect-ratio: 4 / 3;
}

.yh-board-page .mb_photo img {
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform: none;
}

.yh-board-page .mb_card:hover .mb_photo img {
    transform: scale(1.025);
}

.yh-board-page .mb_role {
    font-size: 14px;
}

.yh-board-page .mb_name {
    font-size: clamp(21px, 2vw, 30px);
}

.yh-tablist {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    gap: 30px;
    margin: 0 auto 54px;
    padding: 12px 50px;
    border-radius: 50px;
    background: rgba(193, 204, 210, .1);
}

.yh-tablist button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(47, 58, 66, .5);
    font-size: 22px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.yh-tablist button::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    background: rgba(47, 58, 66, .5);
}

.yh-tablist button[aria-selected="true"] {
    color: #2f3a42;
}

.yh-tablist button[aria-selected="true"]::before,
.yh-tablist button:hover::before {
    background: #2f3a42;
}

.yh-tablist button:hover {
    color: #2f3a42;
}

.yh-tabpanel[hidden],
.yh-lookbook-panel[hidden] {
    display: none;
}

/* 제품/절단가공품 슬라이더 (Swiper) — 카드 균일 크기 + 스와이프 */
.yh-slider {
    position: relative;
}

.yh-slider .swiper-wrapper {
    box-sizing: border-box;
}

.yh-slider .swiper-slide {
    height: auto;
}

.yh-product-card {
    position: relative;
    min-width: 0;
}

.yh-slider-nav {
    position: absolute;
    z-index: 5;
    top: 38%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(47, 58, 66, .16);
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 26px rgba(39, 56, 69, .14);
    color: #2f3a42;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, opacity .2s ease, transform .2s ease;
}

.yh-slider-nav:hover { background: #fff; }
.yh-slider-nav--prev { left: 10px; }
.yh-slider-nav--next { right: 10px; }
.yh-slider-nav span { transform: translateY(-2px); }
.yh-slider-nav.swiper-button-disabled,
.yh-slider-nav.swiper-button-lock { opacity: 0; pointer-events: none; }

.yh-lookbook-slider .yh-slider-nav { top: 42%; }

.yh-product-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid #dce1de;
    background: #f1f3f0;
}

.yh-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .55s cubic-bezier(.2, .75, .25, 1);
}

.yh-product-card__media:hover img,
.yh-product-card__media:focus-within img {
    transform: scale(1.035);
}

.yh-product-card__body { padding-top: 20px; }

.yh-product-card__size {
    margin: 0 0 5px;
    color: var(--yh-blue);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
}

.yh-product-card__summary {
    max-width: 38ch;
    margin: 10px 0 0;
    color: #667174;
    font-size: 13px;
    line-height: 1.6;
    word-break: keep-all;
}

.yh-product-card h3 {
    margin: 0;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.3;
}

.yh-product-card__trigger {
    position: absolute;
    z-index: 3;
    inset: 0;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.yh-product-card__trigger:focus-visible {
    outline: 3px solid var(--yh-lime);
    outline-offset: -5px;
}

.yh-product-empty {
    margin: 0;
    padding: 64px 20px;
    border-block: 1px solid var(--yh-line);
    color: #727d7a;
    text-align: center;
}

.yh-page .sound-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Lookbook */
.yh-lookbook-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
    padding-bottom: 10px;
}

.yh-lookbook-filter button {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #bfc7c2;
    background: #fff;
    color: #657073;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.yh-lookbook-filter button span {
    margin-left: 8px;
    color: #929b96;
    font-size: 10px;
}

.yh-lookbook-filter button[aria-selected="true"] {
    border-color: var(--yh-dark);
    background: var(--yh-dark);
    color: #fff;
}

.yh-lookbook-filter button[aria-selected="true"] span {
    color: var(--yh-lime);
}

.yh-lookbook-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px 18px;
}

.yh-lookbook-card {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--yh-ink);
    text-align: left;
    cursor: zoom-in;
}

.yh-lookbook-card__image {
    display: block;
    aspect-ratio: 1 / .82;
    overflow: hidden;
    background: #edf0ed;
}

.yh-lookbook-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2, .75, .25, 1);
}

.yh-lookbook-card:hover .yh-lookbook-card__image img {
    transform: scale(1.04);
}

.yh-lookbook-card__title {
    display: block;
    margin-top: 14px;
    padding-right: 16px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

/* Dialogs */
.yh-modal {
    width: min(1320px, calc(100% - 48px));
    max-width: none;
    max-height: calc(100dvh - 48px);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--yh-ink);
    overflow: visible;
}

.yh-modal::backdrop {
    background: rgba(3, 12, 16, .82);
}

.yh-modal__surface {
    position: relative;
    max-height: calc(100dvh - 48px);
    padding: 70px;
    overflow-y: auto;
    background: #fff;
}

.yh-modal__close {
    position: absolute;
    z-index: 2;
    top: 20px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--yh-ink);
    cursor: pointer;
}

.yh-modal__close span {
    position: relative;
    display: block;
    width: 22px;
    height: 22px;
}

.yh-modal__close span::before,
.yh-modal__close span::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 22px;
    height: 1px;
    background: currentColor;
}

.yh-modal__close span::before { transform: rotate(45deg); }
.yh-modal__close span::after { transform: rotate(-45deg); }
.yh-modal__close b { font-size: 17px; letter-spacing: .13em; }

.yh-product-modal__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
    gap: 68px;
}

.yh-product-modal__visual {
    align-self: start;
    position: sticky;
    top: 0;
    aspect-ratio: 4 / 3;
    background: #fff;
}

.yh-product-modal__visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.yh-product-modal__category {
    margin: 10px 0 12px;
    color: var(--yh-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.yh-product-modal__content > h2 {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.3;
}

.yh-product-modal__summary {
    margin: 22px 0 40px;
    color: #536063;
    font-size: 17px;
    line-height: 1.8;
}

.yh-product-modal__content section {
    padding-block: 28px;
    border-top: 1px solid #c8d0cb;
}

.yh-product-modal__content section h3,
.yh-product-modal__related h3 {
    margin: 0 0 18px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.yh-product-modal__content ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.yh-product-modal__content li {
    position: relative;
    padding-left: 13px;
    color: #465255;
    font-size: 14px;
}

.yh-product-modal__content li::before {
    content: "";
    position: absolute;
    top: .75em;
    left: 0;
    width: 4px;
    height: 4px;
    background: var(--yh-lime);
}

.yh-product-modal__content dl {
    margin: 0;
}

.yh-product-modal__content dl div {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 16px;
    padding-block: 10px;
    border-bottom: 1px solid #d8ddda;
}

.yh-product-modal__content dt {
    color: #788285;
    font-size: 12px;
}

.yh-product-modal__content dd {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.yh-product-modal__related {
    margin-top: 68px;
    padding-top: 28px;
    border-top: 1px solid #c8d0cb;
}

.yh-product-modal__related > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.yh-product-modal__related img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    background: #fff;
}

.yh-lookbook-modal {
    width: min(1000px, calc(100% - 48px));
}

.yh-lookbook-modal .yh-modal__surface {
    padding: 64px 64px 40px;
    background: #0a161a;
    color: #fff;
}

.yh-lookbook-modal .yh-modal__close {
    color: #fff;
}

.yh-lookbook-modal figure {
    margin: 0;
}

.yh-lookbook-modal figure img {
    width: 100%;
    max-height: calc(100dvh - 190px);
    object-fit: contain;
    background: #111f24;
}

.yh-lookbook-modal figcaption {
    padding-top: 18px;
    font-size: 18px;
    font-weight: 600;
}

.yh-lookbook-modal .yh-modal__surface {
    position: relative;
}

.yh-lookbook-modal__nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease;
}

.yh-lookbook-modal__nav:hover { background: rgba(255, 255, 255, .2); }
.yh-lookbook-modal__nav--prev { left: 16px; }
.yh-lookbook-modal__nav--next { right: 16px; }
.yh-lookbook-modal__nav span { transform: translateY(-2px); }
.yh-lookbook-modal__nav[hidden] { display: none; }

.yh-page.yh-dialog-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .yh-board-page .sv { height: 300px; border-radius: 0 0 0 50px; }
    .yh-board-page .sv_en { font-size: 38px; }
    .yh-board-page .sv_ko { font-size: 18px; }

    .yh-product-card,
    .yh-product-card:first-child:nth-last-child(5),
    .yh-product-card:nth-child(2):nth-last-child(4) { grid-column: span 6; }

    .yh-lookbook-grid { grid-template-columns: repeat(3, 1fr); }

    .yh-product-modal__layout { grid-template-columns: 1fr; gap: 42px; }
    .yh-product-modal__visual { position: static; }
}

@media (max-width: 768px) {
    .yh-board-page .sv { height: 240px; }
    .yh-board-page .sv_tit { padding-top: 30px; }
    .yh-board-page .sv_en { font-size: 30px; }
    .yh-board-page .sv_ko { font-size: 16px; }

    .yh-tablist { gap: 18px; margin-bottom: 36px; padding: 10px 26px; overflow-x: auto; }
    .yh-tablist button { flex: 0 0 auto; min-height: 30px; font-size: 17px; }

    .yh-product-grid { gap: 38px 12px; }
    .yh-product-card,
    .yh-product-card:first-child:nth-last-child(5),
    .yh-product-card:nth-child(2):nth-last-child(4) { grid-column: span 6; }
    .yh-product-card__body { padding-top: 13px; }
    .yh-product-card h3 { font-size: 20px; }

    .yh-lookbook-filter { flex-wrap: nowrap; margin-right: -18px; overflow-x: auto; padding-right: 18px; }
    .yh-lookbook-filter button { flex: 0 0 auto; }
    .yh-lookbook-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 10px; }
    .yh-lookbook-card__title { margin-top: 10px; font-size: 13px; }

    .yh-modal { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
    .yh-modal__surface { max-height: calc(100dvh - 20px); padding: 58px 18px 28px; }
    .yh-modal__close { top: 13px; right: 13px; }
    .yh-product-modal__layout { gap: 30px; }
    .yh-product-modal__content > h2 { font-size: 28px; }
    .yh-product-modal__summary { font-size: 15px; }
    .yh-product-modal__content ul { grid-template-columns: 1fr; }
    .yh-product-modal__content dl div { grid-template-columns: 92px 1fr; }
    .yh-product-modal__related { margin-top: 40px; }
    .yh-product-modal__related > div { grid-template-columns: 1fr; }

    .yh-lookbook-modal .yh-modal__surface { padding: 58px 12px 20px; }
    .yh-lookbook-modal figure img { max-height: calc(100dvh - 160px); }
    .yh-lookbook-modal figcaption { font-size: 15px; }
}

@media (max-width: 486px) {
    .yh-board-page .sv { height: 190px; }
    .yh-board-page .sv_en { font-size: 24px; }
    .yh-board-page .sv_ko { font-size: 15px; }
    .yh-tablist { justify-content: flex-start; gap: 12px; padding: 9px 18px; }
    .yh-tablist button { font-size: 15px; }

    .yh-product-modal__content > h2 { font-size: 24px; }
    .yh-slider-nav { width: 44px; height: 44px; font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .yh-tablist button::before,
    .yh-product-card__media img,
    .yh-lookbook-card__image img { transition: none; }
}
