/* ============================================
   YG Collection Seo
   ============================================ */

   .yg-collection-seo {
    display: flex;
    flex-wrap: wrap;
}

.yg-seo-image {
    width: 50%;
}

.yg-seo-content {
    display: flex;
    flex-direction: column;
    background-color: #F4F4F4;
    gap: 12px;
    padding: 20px 96px;
    width: 50%;
    justify-content: center;
}

.yg-seo-content .button {
    margin-top: 36px;
}

.yg-seo-popup .yg-popup-box-content-inner {
    padding: 32px;
    background: #F4F4F4;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yg-seo-popup .yg-popup-box-content {
    max-width: min(780px, calc(100% - 40px));
}

.yg-seo-popup .yg-popup-box-content .yg-popup-box-close {
    right: 32px;
    background: transparent;
    top: 32px;
    left: unset;
    padding: 0;
    transform: none;
    width: 32px;
    height: 32px;
}

@media (max-width: 1300px) {
    .yg-seo-content {
        padding-inline: 64px;
    }
}

@media (max-width: 999px) {
    .yg-seo-image {
        width: 100%;
    }

    .yg-seo-content {
        width: 100%;
        gap: 4px;
        padding: 20px;
    }

    .yg-seo-content .button {
        margin-top: 16px;
    }

    .yg-seo-popup .yg-popup-box-content-inner {
        padding: 16px;
        border-radius: 12px;
    }

    .yg-seo-popup .yg-popup-box-content .yg-popup-box-close {
        right: 16px;
        top: 16px;
        width: 24px;
        height: 24px;
    }
}

/* ============================================================
   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 Product Card Grid
   Scoped from Shopify yg-product-card-grid.liquid
   ============================================ */

   .yg-product-card-grid {
    --yg-product-card-grid-cols: 2fr 1fr;
    --yg-product-card-content-padding: 48px 96px;
    --yg-product-card-card-padding: 36px;
    --yg-product-card-card-gap: 48px;
}

@media (max-width: 1200px) {
    .yg-product-card-grid {
        --yg-product-card-content-padding: 48px;
    }
}

@media (max-width: 699px) {
    .yg-product-card-grid {
        --yg-product-card-grid-cols: 1fr;
        --yg-product-card-content-padding: 28px;
        --yg-product-card-card-padding: 20px;
        --yg-product-card-card-gap: 20px;
    }
}

.yg-product-card-grid .yg-product-card-grid {
    display: grid;
    grid-template-columns: var(--yg-product-card-grid-cols);
}

.yg-product-card-grid .yg-product-card__main-image {
    background: var(--grey-2, #f4f4f4);
}

.yg-product-card-grid .yg-product-card__main-image img {
    mix-blend-mode: darken;
}

.yg-product-card-grid .yg-product-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--yg-product-card-card-gap);
    padding: var(--yg-product-card-content-padding);
    background: var(--grey-2, #f4f4f4);
}

.yg-product-card-grid .yg-product-card__card {
    display: flex;
    flex-direction: column;
    gap: var(--yg-product-card-card-gap);
    width: 100%;
}

.yg-product-card-grid .yg-product-card__card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    text-align: center;
    flex-direction: column;
}

.yg-product-card-grid .yg-product-card__card-icon {
    width: 250px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--grey-2, #f4f4f4);
}

.yg-product-card-grid .yg-product-card__card-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yg-product-card-grid .yg-product-card__card-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-1, #000);
    margin: 0;
}

.yg-product-card-grid .yg-product-card__card-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark-5, #454748);
    margin: 0;
}

.yg-product-card-grid .yg-product-card__card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 24px;
    background: var(--dark-3, #242526);
    color: var(--grey-1, #fff);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none;
    transition: opacity 0.3s;
}

.yg-product-card-grid .yg-product-card__card-button:hover {
    opacity: 0.8;
}

@media (max-width: 699px) {
    .yg-product-card-grid .yg-product-card__card-header {
        align-items: flex-start;
        flex-direction: row;
        text-align: left;
    }

    .yg-product-card-grid .yg-product-card__card-icon {
        width: 80px;
    }

    .yg-product-card-grid .yg-product-card__card-title {
        font-size: 16px;
    }

    .yg-product-card-grid .yg-product-card__card-description {
        font-size: 12px;
    }

    .yg-product-card-grid .yg-product-card__card-text {
        gap: 6px;
    }
}
