.woocommerce-breadcrumb {
    display: none !important;
}
.yg-product-wrapper.yg-section {
    padding: 0;
}
.yg-product {
    display: flex;
    flex-wrap: wrap;
}

.yg-product > * {
    width: 50% !important;
}

@media (min-width: 1000px) {
    .yg-product {
        background: linear-gradient(to right, #F4F4F4 50%, #fff 50%);
    }
    .yg-product .yg-product-gallery {
        padding: 48px;
        padding-left: max(80px, calc((100% - 1440px) / 2));
        height: fit-content;
        position: sticky;
        top: 100px;
    }

    .yg-product .yg-summary {
        padding: 48px;
        padding-right: max(80px, calc((100% - 1440px) / 2));
        margin: 0 !important;
    }
}

@media (max-width: 999px) {
    .yg-product > * {
        width: 100% !important;
    }

    .yg-product .yg-summary {
        padding: 36px 20px;
        margin: 0 !important;
    }
}


/* ============================================================
   yg-product-gallery — 产品画廊样式
   图片、视频、3D 模型共存于同一容器，通过 display 切换
   ============================================================ */

/* ============================================================
   Gallery 主容器
   ============================================================ */
.yg-product-gallery {
    display: flex;
    flex-direction: column;
    background: #f4f4f4;
    overflow: hidden;
}

.yg-gallery-container {
    position: relative;
    width: 100%;
    background: #f4f4f4;
}

/* ============================================================
   Gallery Panel 切换（显示/隐藏）
   ============================================================ */
.yg-gallery-container > [data-gallery-panel] {
    display: none;
}

.yg-gallery-container > [data-gallery-panel].active {
    display: block;
}

/* ============================================================
   图片 Gallery 主图 Swiper
   ============================================================ */
.yg-gallery-swiper-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f4f4f4;
    overflow: hidden;
}

.yg-gallery-swiper {
    width: 100%;
    height: 100%;
}

.yg-gallery-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

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

/* PC 主图左右箭头 */
.yg-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.yg-gallery-swiper-wrap:hover .yg-gallery-arrow {
    opacity: 1;
}

.yg-gallery-arrow-prev {
    left: 48px;
}

.yg-gallery-arrow-next {
    right: 48px;
}

.yg-gallery-arrow svg {
    display: block;
}

/* ============================================================
   视频 Slide 样式
   ============================================================ */
.yg-video-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yg-video-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.yg-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.yg-video-play-btn svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================================
   3D 模型 Slide 样式
   ============================================================ */
.yg-model-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yg-model-slide model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
}

/* PC 主图左右箭头 */
.yg-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.yg-gallery-swiper-wrap:hover .yg-gallery-arrow {
    opacity: 1;
}

.yg-gallery-arrow-prev {
    left: 48px;
}

.yg-gallery-arrow-next {
    right: 48px;
}

.yg-gallery-arrow svg {
    display: block;
}

/* ============================================================
   底部控制栏（图片 Strip + Media Tab）
   ============================================================ */
.yg-media-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 12px 48px;
    background: #f4f4f4;
}

/* ============================================================
   图片缩略图 Strip（PC 端）
   ============================================================ */
.yg-image-strip {
    display: flex;
    align-items: center;
}

.yg-image-strip-inner {
    display: flex;
    align-items: center;
    gap: 4px;
}

.yg-image-entry[type="button"] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    background: #e2e3e3;
    border: none;
    border-radius: 0;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.45;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    border: none;
}

.yg-image-entry[type="button"].active {
    background: #ffffff;
    opacity: 1;
}

.yg-image-entry:hover {
    opacity: 0.8;
}

.yg-image-entry img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 溢出计数器（+N） */
.yg-image-entry-count {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    background: rgba(36, 37, 38, 0.74);
}

.yg-image-entry.yg-image-entry-more {
    overflow: visible;
}

/* 分隔线装饰（strip 和 tab 之间） */
.yg-strip-p1,
.yg-strip-p2 {
    position: absolute;
    right: -6px;
    display: block;
    width: 2px;
    background: #d9dada;
}

.yg-strip-p1 {
    top: 8px;
    height: 38px;
}

.yg-strip-p2 {
    top: 14px;
    right: -12px;
    height: 26px;
}

/* ============================================================
   Media Tab 按钮（3D 模型 / 视频）
   ============================================================ */
.yg-media-tab-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.yg-media-divider {
    width: 1px;
    height: 30px;
    background: rgba(36, 37, 38, 0.12);
}

.yg-media-tab[type="button"] {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 54px;
    height: 54px;
    padding: 0;
    color: #242526;
    background: #e2e3e3;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}


.yg-media-tab svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.yg-media-tab[type="button"].active,
.yg-media-tab[type="button"]:hover {
    background: #fff;
    color: #242526;
}

/* PC: 360° 标签显示，视频图标隐藏 */
.yg-media-pc-label {
    display: inline;
}

.yg-media-mobile-label {
    display: none;
}

/* 视频 Tab 特殊布局 */
.yg-media-video-tab[type="button"] {
    flex-direction: row;
    padding: 0;
    width: 100px;
    min-width: unset;
}

.yg-media-video-preview[type="button"] {
    width: 100px;
    height: 54px;
    overflow: hidden;
    background: #d9dada;
}

.yg-media-video-preview {
    height: 100%;
}

.yg-media-video-preview img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.yg-media-video-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(36, 37, 38, 0.18);
}

/* ============================================================
   图片放大弹窗
   ============================================================ */
.yg-enlarge-img-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.yg-enlarge-img-inner {
    position: relative;
    width: 90%;
    max-width: 960px;
}

.yg-enlarge-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #ffffff;
    z-index: 10;
}

.yg-enlarge-close:hover {
    opacity: 0.8;
}

.yg-enlarge-img-inner .yg-zoomimg-slider {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
}

.yg-zoomimg-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.yg-zoomimg-slider .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: default;
}

.yg-enlarge-img-inner .swiper-button-prev,
.yg-enlarge-img-inner .swiper-button-next {
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.yg-enlarge-img-inner .swiper-button-prev {
    left: -60px;
}

.yg-enlarge-img-inner .swiper-button-next {
    right: -60px;
}

.yg-enlarge-img-inner .swiper-button-prev::after,
.yg-enlarge-img-inner .swiper-button-next::after {
    display: none;
}

/* ============================================================
   移动端适配（max-width: 999px — 与 Shopify 保持一致）
   ============================================================ */
@media screen and (max-width: 999px) {
    /* 隐藏 PC 箭头 */
    .yg-gallery-arrow {
        display: none;
    }

    /* 底部控制栏移动端 */
    .yg-media-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 20px 20px;
    }

    /* 图片 Strip 移动端：水平滚动 */
    .yg-image-strip {
        width: 100%;
        justify-content: center;
    }

    .yg-image-strip::-webkit-scrollbar {
        display: none;
    }

    .yg-image-strip-inner {
        flex-wrap: nowrap;
    }

    /* Media Tab 移动端：水平排列 */
    .yg-media-tab-wrap {
        justify-content: center;
        gap: 4px;
    }

    .yg-media-divider {
        display: none;
    }

    .yg-media-tab[type="button"],
    .yg-media-video-tab[type="button"] {
        width: calc(50% - 2px);
        background: #000;
        color: #fff;
        flex-direction: row;
        gap: 6px;
    }

    .yg-media-video-preview {
        display: none;
    }

    /* PC 标签隐藏，移动端显示 */
    .yg-media-pc-label {
        display: none;
    }

    .yg-media-mobile-label {
        display: inline;
        font-size: 12px;
        font-weight: 600;
        color: currentColor;
        line-height: 1.7;
    }

    .yg-media-video-icon {
        position: static;
        padding: 2px;
        border: 2px solid;
    }

    .yg-media-video-icon svg {
        width: 10px;
        height: 10px;
    }
}

/* product info */

.yg-breadcrumbs ,
.yg-breadcrumbs li{
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: var(--text-sm);
}

.yg-breadcrumbs li:last-child {
    opacity: 0.7;
}
.yg-product-info > * + * {
    margin-top: 24px;
}

.yg-product-info .yg-variants-wrapper,
.yg-product-info .yg-price,
.yg-product-info .yg-product-button-list {
    margin-top: 48px;
}

.yg-product-info .yg-price {
    display: flex;
    flex-direction: row-reverse;
    gap: 12px;
    align-items: flex-end;
    width: fit-content;
}

.yg-product-info .yg-price .yg-price-regular {
    color: #C6C7C8;
    text-decoration: line-through;
}

.yg-product-info .yg-variant-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.yg-product-info .yg-variant-item {
    display: flex;
    padding: 4px 8px;
    border: 1px solid #E2E3E3;
    font-size: var(--text-sm);
    cursor: pointer;
}

.yg-product-info .yg-color-variant-item {
    padding: 4px;
}


.yg-product-info .yg-variant-active.yg-variant-item {
    border: 1px solid #000;
}

.yg-product-info .yg-color-variant-item .yg-variant-value {
    width: 20px;
    height: 20px;
    font-size: 0;
    display: inline-block;
}

/* ============================================================
   Icon-with-texts 网格（product_info ACF Repeater）
   每行数量由 ACF 配置，白底，1px 边框分隔
   ============================================================ */
.yg-product-icon-texts {
    --yg-icon-text-border-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    /* border: 1px solid var(--yg-icon-text-border-color); */
}

.yg-icon-texts-row {
    display: grid;
    grid-template-columns: repeat(var(--yg-icon-text-columns, 3), minmax(0, 1fr));
}

.yg-icon-texts-row + .yg-icon-texts-row .yg-icon-text-cell  {
    border-top: none;
}

.yg-icon-text-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    padding: 24px 12px;
    border: 1px solid var(--yg-icon-text-border-color);
}
.yg-icon-text-cell + .yg-icon-text-cell  {
    border-right: none;
}
.yg-icon-text-cell:last-child {
    border-right: 1px solid var(--yg-icon-text-border-color);
}

.yg-icon-text-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 24px;
    flex-shrink: 0;
}

.yg-icon-text-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.yg-icon-text-label {
    font-size: var(--text-xs, 12px);
    font-weight: 400;
    color: #242526;
    line-height: 1.7;
    letter-spacing: 0;
    text-align: center;
    word-break: break-word;
    margin: 0;
}

/* ============================================================
   Button List（product_info ACF Repeater）
   横向排列，背景 #242526，白色文字，图标 + 文字
   ============================================================ */
.yg-product-button-list {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: var(--spacing-4, 16px);
}

.yg-product-button-list-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 0 0;
    min-width: 0;
    gap: var(--spacing-2, 8px);
    padding: 17px 40px;
    background: #242526;
    color: #ffffff;
    font-size: var(--text-base, 16px);
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.yg-product-button-list-item:hover {
    background: #1a1a1b;
    color: #fff;
}

.yg-button-list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.yg-button-list-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.yg-button-list-text {
    flex-shrink: 0;
}

@media (min-width: 1000px) {
    .yg-product-wrapper > .yg-breadcrumbs {
        display: none;
    }

    .yg-product-wrapper > .yg-breadcrumbs {
        margin-bottom: 48px;
    }
}

@media (max-width: 999px) {
    .yg-product-info .yg-breadcrumbs {
        display: none;
    }
    .yg-product-wrapper > .yg-breadcrumbs {
        padding: 8px 20px;
        overflow: hidden;
        white-space: nowrap;
    }
}

@media (max-width: 699px) {
    .yg-product-info > * + * {
        margin-top: 14px;
    }

    .yg-product-info .yg-variants-wrapper,
    .yg-product-info .yg-price,
    .yg-product-info .yg-product-button-list  {
        margin-top: 32px;
    }

    .yg-icon-text-cell {
        padding: 10px 6px;
    }
}

/* ============================================================
   yg-product-design-swiper — 产品设计轮播
   ============================================================ */
.yg-product-design-swiper {
    overflow: hidden;
}

.yg-product-design-swiper .section-header {
    width: 100%;
}

.yg-product-design-swiper .yg-swiper {
    width: 100%;
}

.yg-product-design-swiper .yg-swiper.is-visible {
    overflow: visible;
}

.yg-product-design-swiper .swiper-wrapper {
    height: auto;
}

.yg-product-design-swiper .yg-product-design-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

.yg-product-design-swiper .yg-product-design-card__image {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.yg-product-design-swiper .yg-product-design-card__image .yg-image-box,
.yg-product-design-swiper .yg-product-design-card__image .yg-image {
    width: 100%;
    height: 100%;
}

.yg-product-design-swiper .yg-product-design-card__content {
    display: flex;
    flex-direction: column;
    gap: var(--block-gap-sm);
}

.yg-product-design-swiper .yg-product-design-card__title {
    color: var(--yg-card-title-color, inherit);
    font-weight: 600;
}

.yg-product-design-swiper .yg-product-design-card__description {
    color: var(--yg-card-description-color, inherit);
}

/* Grid Layout for PC - Mobile keeps swiper */
.yg-product-design-swiper .yg-product-grid {
    display: none;
    gap: var(--yg-swiper-gap, 24px);
}

.yg-product-design-swiper .yg-product-grid .yg-product-design-card__image {
    aspect-ratio: 4 / 3;
}

.yg-product-design-swiper .yg-product-grid .yg-product-grid-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Show grid only on desktop (>= 700px) when enabled */
@media screen and (min-width: 700px) {
    .yg-product-design-swiper .yg-product-grid {
        display: grid;
        grid-template-columns: repeat(var(--yg-grid-columns, 3), 1fr);
    }
}

@media screen and (max-width: 699px) {
    .yg-product-design-swiper .section-header {
        align-items: start;
        text-align: start;
    }

    .yg-product-design-swiper .yg-product-design-card {
        gap: 14px;
    }

    .yg-product-design-swiper .yg-product-grid {
        display: none;
    }

    .yg-product-design-swiper .yg-swiper-container > yg-swiper {
        display: block;
    }
}

/* ============================================================
   yg-featured-videos-swiper — 精选视频轮播
   ============================================================ */
.yg-featured-videos-swiper .yg-swiper {
    width: 100%;
}

.yg-featured-videos-swiper .yg-swiper.is-visible {
    overflow: visible;
}

.yg-featured-videos-swiper .swiper-wrapper {
    height: auto;
}

.yg-featured-videos-swiper .yg-featured-video-card {
    display: flex;
    flex-direction: column;
    gap: var(--block-gap-md);
    width: 100%;
}

.yg-featured-videos-swiper .yg-featured-video-card__media {
    position: relative;
    display: flex;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.yg-featured-videos-swiper .yg-featured-video-card__media :is(.yg-image-box, .yg-video-box) {
    width: 100%;
}

.yg-featured-videos-swiper .yg-featured-video-card__media :is(.yg-image, .yg-video-placeholder) {
    opacity: 0.7;
}

.yg-featured-videos-swiper .yg-featured-video-card__media :is(.yg-image, .yg-video-placeholder, .yg-video-iframe) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yg-featured-videos-swiper .yg-featured-video-card__media .yg-video-button {
    color: var(--yg-featured-video-play-color, #ffffff);
}

.yg-featured-videos-swiper .yg-featured-video-card__media .yg-video-button svg {
    display: block;
    width: 48px;
    height: 48px;
}

.yg-featured-videos-swiper .yg-featured-video-card__title {
    color: var(--yg-featured-video-title-color, currentColor);
    text-align: center;
}

@media (min-width: 700px) {
    .yg-featured-videos-swiper .yg-swiper.is-visible {
        overflow: hidden;
    }
}

@media screen and (max-width: 699px) {
    .yg-featured-videos-swiper .yg-swiper-controller {
        display: none;
    }
}

/* ============================================================
   yg-product-inbox — 产品包装/规格信息
   ============================================================ */
.yg-product-inbox {
    display: flex;
    flex-direction: column;
}

.yg-product-inbox__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
}

.yg-product-inbox__media-wrap {
    padding-inline-start: var(--block-gap-xl);
}

.yg-product-inbox__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--yg-product-inbox-image-bg, #f4f4f4);
}

.yg-product-inbox__media .yg-image-box {
    width: 100%;
}

.yg-product-inbox__content {
    display: flex;
    flex-direction: column;
    gap: var(--yg-product-inbox-content-gap, var(--block-gap-xl));
    justify-content: center;
    min-width: 0;
    padding-inline: var(--block-gap-xl);
}

.yg-product-inbox__included {
    display: flex;
    flex-direction: column;
    gap: var(--block-gap-sm);
}

.yg-product-inbox__heading {
    color: var(--text-color, #000);
    font-weight: 600;
}

.yg-product-inbox__richtext {
    color: #454748;
}

.yg-product-inbox__richtext ul {
    padding-inline-start: 1.5em;
    list-style: disc;
}

.yg-product-inbox__manuals {
    display: flex;
    flex-direction: column;
    gap: var(--yg-product-inbox-file-gap, var(--block-gap-xxs));
}

.yg-product-inbox__manual {
    display: flex;
    align-items: center;
    gap: var(--block-gap-sm);
    width: 100%;
    padding: 12px 20px;
    background: #f4f4f4;
    color: inherit;
    text-decoration: none;
}

.yg-product-inbox__manual[href] {
    cursor: pointer;
}

.yg-product-inbox__manual[href]:hover .yg-product-inbox__manual-download {
    opacity: 0.7;
}

.yg-product-inbox__manual-name {
    flex: 1 1 auto;
    min-width: 0;
    color: #000;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.yg-product-inbox__manual-download {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: var(--block-gap-xxs);
    color: #242526;
    font-weight: 600;
    transition: opacity 0.3s;
}

.yg-product-inbox__manual-download svg {
    width: 18px;
    height: 18px;
}

.yg-product-inbox__manual-download path {
    stroke: currentColor;
}

.yg-product-inbox__specifications {
    padding-inline: var(--block-gap-xl);
}

.yg-product-inbox__specifications .yg-dropdown {
    border-block-end: 1px solid #e2e3e3;
}

.yg-product-inbox__specifications .yg-dropdown + .yg-dropdown::before {
    display: none;
}

.yg-product-inbox__specifications .yg-dropdown-title-container {
    padding-block: 24px;
}

.yg-product-inbox__specifications .yg-dropdown-title {
    font-weight: 600;
}

.yg-product-inbox__spec-content {
    padding-inline: var(--block-gap-md) var(--block-gap-lg);
    color: #454748;
}

.yg-product-inbox__spec-content p {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    gap: var(--block-gap-xs);
    margin: 0;
    color: #454748;
}

.yg-product-inbox__spec-content p + p {
    margin-block-start: var(--block-gap-sm);
}

.yg-product-inbox__spec-content strong {
    color: #000;
    font-weight: 400;
}

@media screen and (max-width: 699px) {
    .yg-product-inbox__top {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: var(--yg-product-inbox-block-gap, var(--block-gap-md));
    }

    .yg-product-inbox__media-wrap,
    .yg-product-inbox__content,
    .yg-product-inbox__specifications {
        padding-inline: 0;
    }

    .yg-product-inbox__specifications .yg-dropdown-title-container {
        padding-block: 14px;
    }

    .yg-product-inbox__content {
        gap: 20px;
    }

    .yg-product-inbox__manual {
        padding: 12px;
    }

    .yg-product-inbox__spec-content {
        padding-inline: 0;
    }

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

/* ============================================================
   yg-product-compare-v3 — 产品对比表
   ============================================================ */
.yg-product-compare {
    --product-grid-template-columns: 3;
    --top-bar-item-padding: 12px;
    --top-card-item-padding: 0 12px 24px;
    --data-col-padding: 24px;
    --product-info-gap: 16px;
    --product-image-max-width: 200px;
    --product-data-collapse-height: 500px;
    --button-list-gap: 24px;
    --col-item-gap: 16px;
    --col-item-icon-width: 40px;
    --border-radius: 0;
    --mobile-toggle-padding: 16px 20px;
    --duplicate-toggle-gap: 16px;
    --duplicate-toggle-track-width: 44px;
    --duplicate-toggle-track-height: 24px;
    --duplicate-toggle-knob-size: 20px;
    --product-select-size: var(--text-sm);
    --product-variant-select-size: var(--text-sm);
    --product-price-size: var(--text-base);
    --product-button-size: var(--text-sm);
    --data-content-size: var(--text-sm);
    --text-color: #000;
    --main-text-color: #242526;
    --secondary-text-color: #707275;
    --compare-at-price-color: #c6c7c8;
    --bg-color: #f4f4f4;
    --card-bg-color: #fff;
    --secondary-bg-color: #f4f4f4;
    --border-color: #e2e3e3;
    --product-button-add-to-cart-color: #06f;
    --product-button-add-to-cart-disabled-color: #999;
    --learn-more-button-size: var(--text-base);
    --learn-more-button-padding: 14px 32px;
    --learn-more-button-margin-top: 32px;
}

/* ── Per-Column Product Selector ──────────────────────────── */
.yg-product-compare .yg-product-selector {
    position: relative;
}

.yg-product-compare .yg-product-selector-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    font-size: var(--text-sm, 14px);
    font-weight: 600;
    color: #242526;
    line-height: 1.6;
}

.yg-product-compare .yg-product-selector-arrow {
    color: #242526;
    transition: transform .2s ease;
}
.yg-product-compare .yg-product-selector.open .yg-product-selector-arrow {
    transform: rotate(180deg);
}

.yg-product-compare .yg-product-selector-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    min-width: 160px;
    background: #fff;
    border: 1px solid #E2E3E3;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 100;
}
.yg-product-compare .yg-product-selector.open .yg-product-selector-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.yg-product-compare .yg-product-selector-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    font-size: 14px;
    color: #333;
    text-align: left;
    cursor: pointer;
    transition: background-color .15s;
}
.yg-product-compare .yg-product-selector-item:hover {
    background-color: #F4F4F4;
}
.yg-product-compare .yg-product-selector-item.is-active {
    background-color: #F4F4F4;
    font-weight: 600;
}

@media (max-width: 699px) {
    .yg-product-compare {
        --top-bar-item-padding: 4px;
        --top-card-item-padding: 0 4px 14px;
        --data-col-padding: 14px 0px;
        --product-info-gap: 8px;
        --button-list-gap: 12px;
        --mobile-toggle-padding: 16px;
        --product-select-size: var(--text-sm);
        --product-variant-select-size: var(--text-xs);
        --product-price-size: var(--text-sm);
        --product-button-size: var(--text-xs);
        --learn-more-button-padding: 12px 24px;
        --learn-more-button-margin-top: 24px;
        --col-item-gap: 8px;
    }
}

.yg-product-compare .yg-product-top-bar,
.yg-product-compare .yg-product-top-cards,
.yg-product-compare .yg-product-data .row {
    display: grid;
    grid-template-columns: repeat(calc(var(--product-grid-template-columns) + var(--first-label, 0)), minmax(0, 1fr));
    gap: 0;
    text-align: center;
}

.yg-product-compare .yg-product-floating-top-bar-container,
.yg-product-compare .yg-product-compare-top-bar-container,
.yg-product-compare .yg-product-compare-top-container,
.yg-product-compare .yg-product-compare-data-container {
    position: relative;
}

.yg-product-compare {
    background: var(--bg-color);
}

.yg-product-compare .yg-product-top-bar-shell {
    position: relative;
    z-index: 1;
    background: transparent;
    margin-bottom: 32px;
}

.yg-product-compare .yg-product-floating-top-bar-shell {
    position: fixed;
    left: var(--floating-nav-left, 0px);
    top: var(--floating-nav-top, 0px);
    width: var(--floating-nav-width, 100%);
    z-index: 30;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding-inline: calc(max(var(--calculated-section-spacing-inline), 50vw - var(--container-max-width) / 2) * -1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.yg-product-compare .yg-product-floating-top-bar-shell.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.yg-product-compare .yg-product-top-bar .yg-product-top-item,
.yg-product-compare .yg-product-top-cards .yg-product-top-item {
    min-width: 0;
}

.yg-product-compare .yg-product-top-bar .yg-product-top-item {
    padding-inline: var(--top-bar-item-padding);
}

.yg-product-compare .yg-product-top-cards .yg-product-top-item {
    padding: var(--top-card-item-padding);
}

.yg-product-compare .yg-product-top-spacer {
    padding: 0 !important;
}

.yg-product-compare .yg-product-select {
    width: 100%;
}

.yg-product-compare .yg-product-select .el-input__inner {
    height: auto;
    min-height: 48px;
    padding: 12px 44px 12px 20px;
    background: var(--card-bg-color);
    color: var(--main-text-color);
    border-width: 0;
    font-size: var(--product-select-size);
    font-weight: 600;
    border-radius: 0;
    max-width: 100%;
    text-overflow: ellipsis;
    line-height: 1;
}

.yg-product-compare .yg-product-select .el-input__suffix {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    height: auto;
    border-radius: 0;
    background: var(--card-bg-color);
}

.yg-product-compare .yg-product-select .el-input__icon,
.yg-product-compare .yg-variant-select .el-input__icon {
    color: var(--main-text-color);
    height: auto;
    width: 20px;
    font-size: 10px;
    font-weight: 600;
}

.yg-product-compare .yg-product-select .el-input__icon {
    line-height: 20px;
}

.yg-product-compare .yg-variant-select .el-input__icon {
    line-height: 40px;
}

.yg-product-compare .el-select-dropdown {
    text-align: left;
}

.yg-product-compare .yg-product-nav-label,
.yg-product-compare .yg-product-fixed {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 41px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    font-weight: 600;
}

.yg-product-compare .yg-product-info {
    display: flex;
    flex-direction: column;
    gap: var(--product-info-gap);
    align-items: center;
    justify-content: center;
}

.yg-product-compare .yg-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    overflow: hidden;
    width: 100%;
}

.yg-product-compare .yg-product-image .yg-image {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: contain;
    object-position: center;
}

.yg-product-compare .yg-product-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-top: clamp(0px, calc(100vw - 699px), 8px);
    font-size: var(--product-price-size);
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

.yg-product-compare .yg-product-compare-at-price {
    color: var(--compare-at-price-color);
    font-size: var(--text-xs);
    font-weight: 400;
    text-decoration: line-through;
}

.yg-product-compare .yg-variant-select {
    width: 100%;
    max-width: min(240px, 100%);
}

.yg-product-compare .yg-variant-select .el-input__inner {
    background: var(--bg-color);
    color: var(--text-color);
    border-width: 0;
    font-size: var(--product-variant-select-size);
    border-radius: 40px;
}

.yg-product-compare .yg-variant-button-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: min(320px, 100%);
}

.yg-product-compare .yg-variant-button-item {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-block;
    vertical-align: middle;
    background: var(--swatch-background);
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.yg-product-compare .yg-variant-button-item.is-active {
    box-shadow: 0 0 0 1px var(--text-color);
}

.yg-product-compare .yg-product-button-list {
    display: flex;
    gap: var(--button-list-gap);
    align-items: center;
    justify-content: center;
    font-size: var(--product-button-size);
    font-weight: 600;
}

.yg-product-compare .yg-product-button-learn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--main-text-color);
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1.7;
    text-decoration: none;
}

.yg-product-compare .yg-product-button-learn-more::after {
    content: '';
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M7.125 4.5L11.625 9L7.125 13.5' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M7.125 4.5L11.625 9L7.125 13.5' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.yg-product-compare .yg-product-button-add-to-cart {
    color: var(--product-button-add-to-cart-color);
    cursor: pointer;
}

.yg-product-compare .yg-product-button-add-to-cart.disabled {
    color: var(--product-button-add-to-cart-disabled-color);
    cursor: not-allowed;
}

.yg-product-compare .yg-product-data .row {
    border-top: 1px solid var(--border-color);
}

.yg-product-compare .yg-product-data .col {
    padding: var(--data-col-padding);
    text-align: center;
    min-width: 0;
}

.yg-product-compare .yg-product-data .col-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--col-item-gap);
    color: var(--text-color);
    font-size: var(--data-content-size);
}

.yg-product-compare .yg-product-data .col-item-label {
    color: var(--secondary-text-color);
}

.yg-product-compare .yg-product-data .col-item-icon {
    width: 100%;
    max-width: var(--col-item-icon-width);
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.yg-product-compare .yg-product-data.is-collapsible {
    overflow: hidden;
    transition: height 0.3s ease;
}

.yg-product-compare .yg-product-data.is-collapsible:not([open]) {
    -webkit-mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 1) 30%);
    mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 1) 30%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.yg-product-compare .yg-product-dropdown-wrap[style*='display: none'] {
    display: none !important;
}

.yg-product-compare .col-item-label-mobile {
    display: none;
}

.yg-product-compare .yg-learn-more-button {
    display: flex;
    padding: var(--learn-more-button-padding);
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-inline: auto;
    margin-top: var(--learn-more-button-margin-top);
    border-radius: 999px;
    border: 1px solid var(--text-color);
    font-size: var(--learn-more-button-size);
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.yg-product-compare .yg-learn-more-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.yg-product-compare .yg-learn-more-button:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.yg-product-compare .yg-learn-more-button.active .yg-learn-more-button-icon {
    transform: rotate(180deg);
}

.yg-product-compare .first-data-label {
    text-align: left;
}

.yg-product-compare .col-label {
    display: flex;
    align-items: center;
    justify-content: start;
    text-align: left;
    font-weight: 600;
}

.yg-product-compare .yg-product-duplicate-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--duplicate-toggle-gap);
    width: 100%;
    cursor: pointer;
}

.yg-product-compare .yg-product-duplicate-toggle-label {
    flex: 1 1 auto;
}

.yg-product-compare .yg-product-duplicate-toggle-control {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.yg-product-compare .yg-product-duplicate-toggle-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.yg-product-compare .yg-product-duplicate-toggle-track {
    display: inline-flex;
    width: var(--duplicate-toggle-track-width);
    height: var(--duplicate-toggle-track-height);
    padding: 2px;
    border-radius: 999px;
    background: #d9d9d9;
    transition: background-color 0.2s ease;
}

.yg-product-compare .yg-product-duplicate-toggle-track::after {
    content: '';
    width: var(--duplicate-toggle-knob-size);
    height: var(--duplicate-toggle-knob-size);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transform: translateX(0);
    transition: transform 0.2s ease;
}

.yg-product-compare .yg-product-duplicate-toggle-input:checked + .yg-product-duplicate-toggle-track {
    background: var(--text-color);
}

.yg-product-compare .yg-product-duplicate-toggle-input:checked + .yg-product-duplicate-toggle-track::after {
    transform: translateX(calc(var(--duplicate-toggle-track-width) - var(--duplicate-toggle-knob-size) - 4px));
}

.yg-product-compare .yg-product-mobile-duplicate-toggle {
    display: none;
    margin-top: 24px;
    padding: var(--mobile-toggle-padding);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.yg-product-compare .yg-product-collapse-wrap[hidden] {
    display: none;
}

.yg-product-compare .yg-product-duplicate-row.is-hidden {
    display: none;
}

.yg-product-compare .yg-product-collapse-button {
    display: flex;
    width: fit-content;
    margin-inline: auto;
    margin-block-start: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
}

.yg-product-compare .yg-product-collapse-button .yg-link-icon {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.yg-product-compare .yg-product-collapse-button[aria-expanded="true"] .yg-link-icon {
    transform: rotate(270deg);
}

@media (max-width: 1150px) {
    .yg-product-compare.show-product-select .yg-product-top-bar .yg-product-top-item:last-child,
    .yg-product-compare.show-product-select .yg-product-top-cards .yg-product-top-item:last-child,
    .yg-product-compare.show-product-select .yg-product-data .row .col:last-child {
        display: none;
    }

    .yg-product-compare .yg-product-top-bar,
    .yg-product-compare .yg-product-top-cards,
    .yg-product-compare .yg-product-data .row {
        grid-template-columns: repeat(var(--product-grid-template-columns), minmax(0, 1fr));
    }

    .yg-product-compare .first-data-label,
    .yg-product-compare .yg-product-top-spacer {
        display: none;
    }

    .yg-product-compare .yg-product-data .col.col-label {
        grid-column: var(--product-grid-template-columns) span;
        padding-bottom: 0;
        display: none;
    }

    .yg-product-compare .col-item-label-mobile {
        display: block;
        color: var(--secondary-text-color);
        font-size: var(--text-xs);
        font-weight: 600;
        line-height: 1.7;
    }
}

@media (max-width: 699px) {
    .yg-product-compare .yg-product-top-bar-shell {
        margin-bottom: 8px;
    }

    .yg-product-compare .yg-product-select .el-input__inner {
        min-height: 38px;
        padding: 8px 36px 8px 20px;
    }

    .yg-product-compare .yg-product-select .el-input__suffix {
        right: 16px;
    }

    .yg-product-compare .yg-product-image {
        width: 100%;
    }

    .yg-product-compare .yg-product-top-bar,
    .yg-product-compare .yg-product-top-cards,
    .yg-product-compare .yg-product-data,
    .yg-product-compare .yg-product-data .row {
        width: fit-content;
        min-width: 100%;
    }

    .yg-product-compare .yg-product-top-bar,
    .yg-product-compare .yg-product-top-cards,
    .yg-product-compare .yg-product-data .row {
        grid-template-columns: repeat(var(--product-grid-template-columns), minmax(180px, 1fr));
    }

    .yg-product-compare .yg-product-floating-top-bar-container,
    .yg-product-compare .yg-product-compare-top-bar-container,
    .yg-product-compare .yg-product-compare-top-container,
    .yg-product-compare .yg-product-compare-data-container {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        padding-inline: max(var(--calculated-section-spacing-inline), 50vw - var(--container-max-width) / 2);
        margin-inline: calc(-1 * max(var(--calculated-section-spacing-inline), 50vw - var(--container-max-width) / 2));
    }

    .yg-product-compare .yg-product-mobile-duplicate-toggle {
        display: block;
    }

    .yg-product-compare.is-mobile-two-columns .yg-product-top-bar,
    .yg-product-compare.is-mobile-two-columns .yg-product-top-cards,
    .yg-product-compare.is-mobile-two-columns .yg-product-data,
    .yg-product-compare.is-mobile-two-columns .yg-product-data .row {
        width: 100%;
        min-width: 0;
    }

    .yg-product-compare.is-mobile-two-columns .yg-product-top-bar,
    .yg-product-compare.is-mobile-two-columns .yg-product-top-cards,
    .yg-product-compare.is-mobile-two-columns .yg-product-data .row {
        grid-template-columns: repeat(var(--product-grid-template-columns), minmax(0, 1fr));
    }

    .yg-product-compare.is-mobile-two-columns .yg-product-floating-top-bar-container,
    .yg-product-compare.is-mobile-two-columns .yg-product-compare-top-bar-container,
    .yg-product-compare.is-mobile-two-columns .yg-product-compare-top-container,
    .yg-product-compare.is-mobile-two-columns .yg-product-compare-data-container {
        overflow-x: visible;
        padding-inline: 0; 
        margin-inline: 0;
    }
}
