/* elegate — 商品卡片、版块、轮播、网格、内容布局。 */

/* ---------- 内容布局（行 / 列 / 文本） ---------- */
/* 文本块：页面构建器 #content .wpb_text_column :last-child / p:last-child { margin-bottom: 0 }（生产随构建器样式加载，
   带 ID 优先级最高；作用于块内任意层级的最后一个子元素，例如商品流卡片里的缩略图）。
   商品卡片的价格栏除外：生产卡片里价格栏后面还有一个隐藏的悬停层，价格栏不是最后一个子元素，下边距保留。 */
.eg-main .eg-text :last-child:not(.eg-card__foot),
.eg-main .eg-text p:last-child {
    margin-bottom: 0 !important;
}

/* 内容区以外（页头大菜单等，生产不在 #content 里）只有不带 ID 的同名规则，优先级普通 */
.eg-text :last-child:not(.eg-card__foot),
.eg-text p:last-child {
    margin-bottom: 0;
}

.eg-row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 30px;
}

.eg-col {
    grid-column: span 12;
    min-width: 0;
}

@media (min-width: 768px) {
    .eg-col--1 { grid-column: span 1; }
    .eg-col--2 { grid-column: span 2; }
    .eg-col--3 { grid-column: span 3; }
    .eg-col--4 { grid-column: span 4; }
    .eg-col--5 { grid-column: span 5; }
    .eg-col--6 { grid-column: span 6; }
    .eg-col--7 { grid-column: span 7; }
    .eg-col--8 { grid-column: span 8; }
    .eg-col--9 { grid-column: span 9; }
    .eg-col--10 { grid-column: span 10; }
    .eg-col--11 { grid-column: span 11; }
}

.eg-figure {
    margin: 0 0 16px;
}

.eg-figure--center { text-align: center; }
.eg-figure--right { text-align: right; }

/* ---------- 版块 ----------
   生产通用规则：section { margin-bottom: 2em }（≥768 2.857em）；
   section header { flex; space-between; baseline; 下边框 1px #ddd; margin-bottom: 0 }（≥768 1.429em）；
   section header h1 { 17px / 700 / 行高 1.6em / 下内边距 .4em }（≥768 1.571em / 400，右边距 20px），下划线为 ::after 2px 主色；
   section header .action-text { 12px }（≥768 1em / 行高 1.286em），颜色 #5d7184，箭头为字形「y」旋转 -90°。 */
.eg-section {
    margin-bottom: 2em;
}

.eg-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0;
    border-bottom: 1px solid #ddd;
}

.eg-section__title {
    position: relative;
    display: inline-block;
    margin: 0;
    padding-bottom: .4em;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6em;
}

.eg-section__title::after {
    content: " ";
    position: absolute;
    bottom: -1px;
    left: 0;
    display: block;
    width: 100%;
    border-bottom: 2px solid var(--eg-primary);
}

.eg-section__more {
    display: flex;
    align-items: center;
    font-size: 12px;
}

.eg-section__more:not(:hover):not(:focus) {
    color: #5d7184;
}

.eg-section__more::after {
    content: "y";
    margin-left: 11px;
    font-family: "eg-icons";
    font-size: 1.214em;
    transform: rotate(-90deg);
}

@media (min-width: 768px) {
    .eg-section { margin-bottom: 2.857em; }
    .eg-section__head { margin-bottom: 1.429em; }

    .eg-section__title {
        flex-shrink: 0;
        margin-right: 20px;
        font-size: 1.571em;
        font-weight: 400;
    }

    .eg-section__more {
        font-size: 1em;
        line-height: 1.286em;
    }
}

/* 商品轮播（生产 section.section-products-carousel）：≥1200 区块下边距 1.214em、标题栏下边距 0，
   轮播外层上下内边距 .857em / 2.5em */
@media (min-width: 1200px) {
    .eg-section--carousel { margin-bottom: 1.214em; }
    .eg-section--carousel .eg-section__head { margin-bottom: 0; }
    .eg-section--carousel .eg-carousel { padding: .857em 0 2.5em; }

    /* 生产 .products-carousel .owl-item > .product { width: 97% }：每格里的商品占 97%，靠左 */
    .eg-section--carousel .eg-carousel__track > .eg-card {
        flex-basis: calc(97% / var(--eg-per-view-now));
        margin-right: calc(3% / var(--eg-per-view-now));
    }
}

/* 带计时器的商品轮播（生产 .products-carousel-with-timer）：上内边距 36px；
   <768 标题与链接上下排列，≥768 横排、链接靠右；标题下边距 0（.trending-products-carousel header h1 !important） */
.eg-section--timer {
    padding-top: 36px;
}

/* 手机（<768）：不留上内边距，首页四格底部到「Nuevo」只剩四格的下外边距 12px（主人 2026-11-29 定，原 16 + 12 = 28px） */
@media (max-width: 767.98px) {
    .eg-section--timer { padding-top: 0; }
}

.eg-section--timer .eg-section__head {
    flex-direction: column;
}

@media (min-width: 768px) {
    .eg-section--timer .eg-section__head {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }

    .eg-section--timer .eg-section__more { margin-left: auto; }
}

/* 带页签的标题栏（生产 section header.show-nav，横向卡片轮播的「Top N」）：
   <768 标题与页签上下排列、页签区上边框；≥768 横排、下边距 1em；页签 <768 主色实底白字，≥768 只有主色边框 */
.eg-section__head--nav {
    display: block;
    margin-bottom: 0;
    border-bottom-width: 0;
}

.eg-section__head--nav .eg-section__title {
    z-index: 1;
}

.eg-section__nav {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    overflow: auto;
    padding: 12px 0;
    border-top: 1px solid #ddd;
    line-height: 1;
}

.eg-section__pill {
    display: block;
    flex-shrink: 0;
    padding: .301em 1.429em;
    border: 2px solid var(--eg-primary);
    border-radius: 1em;
    background-color: var(--eg-primary);
    color: #fff;
    font-size: 1.071em;
}

@media (min-width: 768px) {
    .eg-section__head--nav {
        display: flex;
        margin-bottom: 1em;
        border-bottom: 1px solid #ddd;
    }

    .eg-section__head--nav .eg-section__title {
        z-index: 0;
        margin-bottom: 0;
    }

    .eg-section__nav {
        padding-top: 0;
        padding-bottom: 0;
        border-top-width: 0;
        font-size: 12px;
    }

    .eg-section__pill {
        background-color: transparent;
        color: #333e48;
    }
}

@media (min-width: 992px) {
    .eg-section__head--nav .eg-section__title {
        margin-right: 2em;
        white-space: nowrap;
    }

    .eg-section__nav { font-size: 14px; }
}

/* ---------- 商品卡片 ---------- */
.eg-cards {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

/* 相邻卡片之间的竖线：不占满整高 */
.eg-card::after {
    content: "";
    position: absolute;
    top: 20px;
    right: 0;
    bottom: 20px;
    width: 1px;
    background: #eaeaea;
}

/* 生产 .products > .product .product-inner / .owl-item > .product .product-inner：1em；≥1200 为 1.429em 1.714em 1em */
.eg-card__inner {
    position: relative;
    height: 100%;
    padding: 1em;
}

.eg-card__link {
    display: block;
}

/* 标题：最多 3 行、超出加省略号；区域固定为 3 行高度，同一排卡片的图片、价格、按钮保持对齐。
   生产是固定 2 行高度硬裁（无省略号），窄卡（带侧栏列表 ≥992 为 4 列，卡宽约 218px）会丢掉型号信息，2026-11-23 用户裁定改 3 行省略号。
   完整文字仍在 DOM 里（屏幕阅读器、查找、SEO 不受影响）；<992 为 .857em / 1.167em / 3.501em。 */
.eg-card__title {
    display: -webkit-box;
    height: 3.501em;
    margin: 0 0 .5rem;
    overflow: hidden;
    color: var(--eg-link);
    font-size: .857em;
    font-weight: 700;
    line-height: 1.167em;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

@media (min-width: 992px) {
    .eg-card__title {
        font-size: 1em;
        line-height: 1.28572em;
        height: 3.85716em;
    }
}

/* 生产 .products>.product .product-thumbnail(>img)：无固定比例框，图片按原比例、max 100%、居中 */
.eg-card__thumb {
    position: relative;
    margin-bottom: .714em;
    width: 100%;
}

.eg-card__thumb .eg-card__img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin: auto;
}

/* 价格行：生产 .price-add-to-cart / .price / del 的规则原样。价格与按钮都保持最小内容宽度（放不下时溢出，不折断价格）；
   有划线原价时固定放在现价上方（见下方 del 规则，纯 CSS，不再用脚本判断是否放得下）。 */
.eg-card__foot {
    clear: both;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 2.571em;
    container-type: inline-size;
}

.eg-card__price {
    display: block;
    color: var(--eg-text);
    font-size: 1.143em;
    font-weight: 400;
    line-height: 1em;
}

.eg-card__price ins {
    color: #dc3545;
    text-decoration: none;
}

.eg-card__price del {
    color: rgb(118.0243902439, 138.9512195122, 157.9756097561);
    font-size: .6em;
    line-height: 1.5em;
}

/* 划线原价固定在现价正上方（左对齐）：脱离文档流，现价位置不变，所以有无折扣的卡片价格都在同一高度，
   也不会因为 del 折行挤到销量行上。可变商品的价格区间（没有 del）、屏幕阅读器文字 .eg-sr 不受影响。
   划线价不参与宽度计算，所以要自己限宽：单行、放不下加省略号，最宽到「价格栏宽度 - 加购按钮（36px）- 4px」（浏览器不支持容器单位时退回价格自身宽度），
   不会盖到加购按钮、伸进邻卡或在轮播边缘被裁。字号不缩小，和旧主题一致。
   价格栏高度只定下限（min-height）：现价因区间价换成两行时，价格栏随之变高，划线价跟着现价顶边走，不会被压进标题。
   同一排卡片的现价上下对齐，只在现价单行时成立；换成两行的卡片，价格栏比邻卡高几个像素。 */
.eg-card__foot > .eg-card__price,
.eg-feature__foot > .eg-card__price {
    position: relative;
}

.eg-card__foot > .eg-card__price del,
.eg-feature__foot > .eg-card__price del {
    position: absolute;
    bottom: 100%;
    left: 0;
    max-width: 100%;
    overflow: hidden;
    line-height: 1.2em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eg-card__foot > .eg-card__price .amount,
.eg-feature__foot > .eg-card__price .amount {
    white-space: nowrap;
}

@supports (width: 1cqw) {
    .eg-card__foot > .eg-card__price del {
        max-width: calc(100cqw - 40px);
    }
}

@media (min-width: 1200px) {
    .eg-card__foot { margin-bottom: .5em; }
    .eg-card__price { font-size: 1.429em; }
}

/* 加购按钮：生产 .products>.product .add-to-cart-wrap .button 的规则原样（只换 class 名）。
 * 按钮本身透明、文字缩进隐藏，看得见的圆形由 ::before 画：#eaeaea 底白字 18px，卡片悬停时变主色（无过渡）。
 * 图标按商品类型：可直接加购 = 购物车字形「a」；可变 = 手指 \f0a6；外部 = \f360；其余与「Ver carrito」= 右箭头 \f30b。
 * 点击后与生产相同：加载中外观不变；成功后按钮隐藏，商城追加的「Ver carrito」圆形箭头按钮出现在原位置。 */
.eg-card__buy-wrap {
    flex: none;
}

.eg-card__buy-wrap .eg-card__buy,
.eg-card__buy-wrap .added_to_cart {
    float: right;
    background-color: transparent;
    text-indent: -99999px;
    padding: 0;
    border-width: 0;
}

.eg-card__buy-wrap .eg-card__buy::before,
.eg-card__buy-wrap .added_to_cart::before {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    font-weight: 400;
    line-height: 1;
    vertical-align: -.125em;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    padding: .5em .433em;
}

.eg-card__buy-wrap .eg-card__buy::before,
.eg-card__buy-wrap .added_to_cart::before {
    content: "\f30b";
    padding: .5em .504em;
    float: right;
    text-indent: 0;
    line-height: 16px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.eg-card__buy-wrap .eg-card__buy::before,
.eg-card__buy-wrap .added_to_cart::before {
    background-color: rgb(233.75, 233.75, 233.75);
}

.eg-card__buy-wrap .eg-card__buy.add_to_cart_button::before {
    content: "a";
    font-family: eg-icons;
    padding: 8.94px 8px;
    font-weight: 400;
}

.eg-card__buy-wrap .eg-card__buy.product_type_variable::before {
    content: "\f0a6";
    padding: .5em .575em;
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
}

.eg-card__buy-wrap .eg-card__buy.product_type_external::before {
    content: "\f360";
    padding: .5em .504em;
    float: right;
    text-indent: 0;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.eg-card:hover .eg-card__buy::before,
.eg-card:hover .added_to_cart::before,
.eg-card__buy-wrap .eg-card__buy:focus-visible::before {
    background-color: var(--eg-primary);
}

.eg-card__buy-wrap .eg-card__buy.added {
    display: none;
}

@keyframes eg-spin {
    to { transform: rotate(360deg); }
}

/* ---------- 轮播 ---------- */
.eg-carousel {
    position: relative;
    --eg-per-view-now: var(--eg-pv-0, 2);
}

.eg-carousel.is-dragging .eg-carousel__viewport {
    cursor: grabbing;
    user-select: none;
}

/* 生产 .products-carousel .owl-stage-outer：宽 100% - 2px 居中；≥1200 外层左内边距 4px、宽 100% - 3px（见下方媒体查询） */
.eg-carousel__viewport {
    margin: 0 1px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.eg-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.eg-carousel__track > .eg-card {
    flex: 0 0 calc(100% / var(--eg-per-view-now));
    scroll-snap-align: start;
}

.eg-carousel__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: none;
    width: 19px;
    height: 33px;
    margin-top: -30px;
    padding: 0;
    border: 0;
    background: none;
    color: #aeaeae;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: color var(--eg-ease);
}

.eg-carousel__nav:hover {
    color: var(--eg-text);
}

.eg-carousel__nav[disabled] {
    opacity: 0.35;
    cursor: default;
}

.eg-carousel__nav--prev { left: -6px; }
.eg-carousel__nav--next { right: -6px; }

.eg-carousel__nav .eg-icon {
    stroke-width: 2;
    vertical-align: top;
}

.eg-carousel__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    min-height: 24px;
}

.eg-carousel__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: #bcbcbc;
    cursor: pointer;
    transition: width var(--eg-ease), background-color var(--eg-ease);
}

.eg-carousel__dot.is-active {
    width: 30px;
    background: var(--eg-primary);
}

/* 每屏数量按短代码配置（同生产轮播的 responsive 设置），没配的断点沿用上一档 */
@media (min-width: 480px) {
    .eg-carousel { --eg-per-view-now: var(--eg-pv-480, var(--eg-pv-0, 2)); }
}

@media (min-width: 768px) {
    .eg-carousel { --eg-per-view-now: var(--eg-pv-768, var(--eg-pv-480, 3)); }
}

@media (min-width: 992px) {
    .eg-carousel { --eg-per-view-now: var(--eg-pv-992, min(var(--eg-per-view), 5)); }
    .eg-carousel__nav { display: block; }
}

@media (min-width: 1200px) {
    .eg-carousel { --eg-per-view-now: var(--eg-pv-1200, var(--eg-per-view)); }
}

@media (min-width: 1200px) {
    .eg-card__inner { padding: 1.429em 1.714em 1em 1.714em; }
}

/* ---------- 网格 ---------- */
.eg-grid__list {
    flex-wrap: wrap;
    --eg-cols-now: 2;
}

.eg-grid__list > .eg-card {
    flex: 0 0 calc(100% / var(--eg-cols-now));
    margin-bottom: 24px;
}

/* 生产 ul.products：row-cols-2 / md-3 / lg-{columns} / xl-{columns} / xxl-{columns_wide}（Electro 的 xxl 断点是 1480） */
/* 平板（768–1199）最多 4 列：短代码 / 商城的 columns 小于 4 时仍取 columns；≥1200 回到 columns（≥1480 columns_wide） */
@media (min-width: 768px) {
    .eg-grid__list { --eg-cols-now: min(var(--eg-cols), 4); }
}

@media (min-width: 1200px) {
    .eg-grid__list { --eg-cols-now: var(--eg-cols); }
}

@media (min-width: 1480px) {
    .eg-grid__list { --eg-cols-now: var(--eg-cols-wide, var(--eg-cols)); }
}

/* ---------- 通用 ---------- */
@media (max-width: 767px) {
    .eg-hide-xs { display: none; }
}

.eg-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border: 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    cursor: pointer;
    transition: background-color var(--eg-ease), transform var(--eg-ease);
}

.eg-button--primary {
    background: var(--eg-primary);
    color: var(--eg-on-primary);
}

.eg-button--primary:hover {
    background: color-mix(in srgb, var(--eg-primary) 86%, #000);
    color: var(--eg-on-primary);
}

.eg-button:active { transform: scale(0.97); }

.eg-button.loading {
    pointer-events: none;
    opacity: 0.75;
}

.eg-button.loading .eg-icon {
    animation: eg-spin 0.7s linear infinite;
}

/* ---------- 轮播图 ---------- */
.eg-rslider {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 1;
    background: #f1f5f6;
}

.eg-rslider__slides {
    display: grid;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eg-rslider__slide {
    grid-area: 1 / 1;
    min-height: 0;
    visibility: hidden;
}

/* 正在离场的那张留在下面，等新图进场结束再隐藏 */
.eg-rslider__slide.is-leaving {
    z-index: 1;
    visibility: visible;
}

.eg-rslider__slide.is-active {
    z-index: 2;
    visibility: visible;
    animation: eg-rslider-fade var(--eg-dur, 1000ms) ease both;
}

.eg-rslider__slide.is-active[data-eg-effect="slide-down"] {
    animation-name: eg-rslider-down;
}

/* 首屏第一张直接显示，不播进场动画 */
.eg-rslider:not(.is-started) .eg-rslider__slide.is-active {
    animation: none;
}

@keyframes eg-rslider-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes eg-rslider-down {
    from { transform: translateY(-100%); }
    to { transform: none; }
}

.eg-rslider__link {
    display: block;
    height: 100%;
}

.eg-rslider__pic {
    display: block;
    height: 100%;
}

.eg-rslider .eg-rslider__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 横向手势交给脚本（左右滑切换），竖向照常滚动页面 */
.eg-rslider { touch-action: pan-y; }

/* 左右箭头：电脑上鼠标移到图上才出现；手机上不显示（左右滑即可） */
.eg-rslider__nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: none;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #333e48;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.eg-rslider__nav--prev { left: 16px; }
.eg-rslider__nav--next { right: 16px; }
.eg-rslider__nav .eg-icon { width: 18px; height: 18px; vertical-align: middle; }
.eg-rslider__nav:hover { background: #fff; }

.eg-rslider:hover .eg-rslider__nav,
.eg-rslider__nav:focus-visible {
    opacity: 1;
}

@media (min-width: 768px) {
    .eg-rslider__nav { display: block; }
}

/* 进度条：每张一段。走过的填满，当前这段随停留时间走满，暂停时一起停 */
.eg-rslider__progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0 12px 4px;
    pointer-events: none;
}

.eg-rslider__bar {
    position: relative;
    flex: 0 1 44px;
    min-width: 16px;
    height: 24px; /* 可点范围比看得见的细条大 */
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    pointer-events: auto;
}

.eg-rslider__bar::before,
.eg-rslider__fill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    margin-top: -2px;
    border-radius: 2px;
}

.eg-rslider__bar::before {
    content: "";
    width: 100%;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.eg-rslider__fill {
    width: 0;
    background: var(--eg-primary, #00abc5);
}

.eg-rslider__bar.is-done .eg-rslider__fill { width: 100%; }

.eg-rslider.is-ready .eg-rslider__bar.is-active .eg-rslider__fill {
    animation: eg-rslider-progress var(--eg-interval, 6000ms) linear both;
}

.eg-rslider.is-paused .eg-rslider__bar.is-active .eg-rslider__fill {
    animation-play-state: paused;
}

.eg-rslider__bar:focus-visible { outline: 2px solid var(--eg-primary, #00abc5); outline-offset: -6px; }

@keyframes eg-rslider-progress {
    from { width: 0; }
    to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .eg-rslider__slide.is-active { animation: none; }
    .eg-rslider__nav { transition: none; }
    /* 进度条是在表示时间，不是装饰动效：照常走 */
}

/* ---------- 版块标题右侧的胶囊标签 ---------- */
/* 生产 .show-nav .nav .nav-item.active .nav-link：1.071em / 行高 1em / 内边距 .301em 1.429em / 圆角 1em / 2px 主色边框 */
/* ---------- 横向卡片（图片在左） ---------- */
/* 两行商品网格：生产 section.two-row-products 只有通用 section / section header 规则
   （section 下边距 2em，≥768 为 2.857em；标题栏下边距 0，≥768 为 1.429em；无上内边距；商品之间无间距） */
.eg-section--grid .eg-grid__list > .eg-card {
    margin-bottom: 0;
}



/* 横向卡片轮播（生产 electro_vc_products_cards_carousel）：一页一屏 */
.eg-carousel--rows { --eg-per-view-now: 1; }

/* 生产 .product-cards-carousel：轮播本身无留白；≥1200 每页 ul.products { padding: 4px; margin-bottom: 4px } */
.eg-carousel--rows .eg-carousel__viewport { margin: 0; }

@media (min-width: 1200px) {
    /* 视口因横向滚动被迫裁切溢出，会把卡片悬停阴影（左右各 6px、上 6px、下 10px）切掉，首张卡片贴左边、末张贴右边时最明显；
       上下各留 10px、左右各留 6px 内边距并用负外边距抵消，内容区位置和宽度与原来完全相同，版面不变。
       scroll-padding 让吸附位置跟着内边距走，首张卡片停在内容区左缘；末尾的内边距在滚动区里，滚到底时右侧阴影也完整。
       轮播按钮与翻页脚本按内容区宽度算（carousel.js 已扣掉内边距）。 */
    .eg-carousel__viewport { margin: -10px -4.5px -10px -.5px; padding: 10px 6px; scroll-padding-inline: 6px; }
    .eg-carousel--rows .eg-carousel__viewport { margin: -10px -6px; padding: 10px 6px; scroll-padding-inline: 6px; }
    .eg-cardpage__grid { padding: 4px; margin-bottom: 4px; }
}

/* 992–1199 横向卡片轮播现在也是 4 列 × 2 行，同样给悬停阴影留位置（规则同上，只作用于这一种轮播） */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .eg-carousel--rows .eg-carousel__viewport { margin: -10px -6px; padding: 10px 6px; scroll-padding-inline: 6px; }
    .eg-cardpage__grid { padding: 4px; margin-bottom: 4px; }

    /* 4 列后横向卡片的文字栏只有约 100px 宽，长金额（如 $129,999.00）加 36px 加购按钮放不下，按钮右侧会被轮播裁掉：
       这个区间价格栏允许换行，放不下时现价一行、加购按钮落到下一行靠右；放得下的短金额仍是同一行，字号不变。 */
    .eg-cards--media .eg-card__foot { flex-wrap: wrap; row-gap: 4px; }
    .eg-cards--media .eg-card__buy-wrap { margin-left: auto; }
}

/* 手机（<768）露半个：每屏显示「设置个数 + 0.3」张，右边露出下一张的约三分之一，看得出能左右滑。
   设置的个数（--eg-per-view-now）不变，小数只在这里加；商品总数不超过每屏数量时 carousel.js 加 eg-carousel--whole，照旧整屏铺满。
   Ultima llegada（--rows，按页滑）一页排法不变（<576 每行 2 张、576–767 每行 3 张），整体缩到 88%，右边露出下一页约 12%；
   carousel.js 按 --eg-page-share 算页宽，翻页与圆点数跟着对。≥768 完全不受影响。 */
@media (max-width: 767.98px) {
    .eg-carousel { --eg-peek-n: var(--eg-per-view-now); }
    .eg-carousel--rows { --eg-peek-n: 2; }
    .eg-carousel--rows:not(.eg-carousel--whole) { --eg-page-share: .88; }

    .eg-carousel:not(.eg-carousel--rows):not(.eg-carousel--whole) .eg-carousel__track > .eg-card {
        flex-basis: calc(100% / (var(--eg-per-view-now) + .3 * min(1, max(0, var(--eg-count, 99) - var(--eg-per-view-now)))));
    }

    .eg-carousel--rows:not(.eg-carousel--whole) .eg-cardpage__grid > .eg-card {
        flex-basis: calc(100% * (1 - (1 - var(--eg-page-share)) * min(1, max(0, var(--eg-count, 99) - var(--eg-peek-n)))) / var(--eg-peek-n));
    }

    /* 商品数不超过每屏数量时，JS 加 eg-carousel--whole 之前的第一帧也不先露半个再收回：用卡片总数（--eg-count，最多数到 6，
       按页滑的只数「只有一页」的情况）让上面两条的小数部分在张数 ≤ 每屏时为 0；脚本加上 whole 后结果相同。 */
    .eg-carousel__track > .eg-card:first-child:nth-last-child(-n+6),
    .eg-carousel__track > .eg-card:first-child:nth-last-child(-n+6) ~ .eg-card { --eg-count: 6; }
    .eg-carousel__track > .eg-card:first-child:nth-last-child(-n+5),
    .eg-carousel__track > .eg-card:first-child:nth-last-child(-n+5) ~ .eg-card { --eg-count: 5; }
    .eg-carousel__track > .eg-card:first-child:nth-last-child(-n+4),
    .eg-carousel__track > .eg-card:first-child:nth-last-child(-n+4) ~ .eg-card { --eg-count: 4; }
    .eg-carousel__track > .eg-card:first-child:nth-last-child(-n+3),
    .eg-carousel__track > .eg-card:first-child:nth-last-child(-n+3) ~ .eg-card,
    .eg-cardpage:only-child > .eg-cardpage__grid > .eg-card:first-child:nth-last-child(-n+3),
    .eg-cardpage:only-child > .eg-cardpage__grid > .eg-card:first-child:nth-last-child(-n+3) ~ .eg-card { --eg-count: 3; }
    .eg-carousel__track > .eg-card:first-child:nth-last-child(-n+2),
    .eg-carousel__track > .eg-card:first-child:nth-last-child(-n+2) ~ .eg-card,
    .eg-cardpage:only-child > .eg-cardpage__grid > .eg-card:first-child:nth-last-child(-n+2),
    .eg-cardpage:only-child > .eg-cardpage__grid > .eg-card:first-child:nth-last-child(-n+2) ~ .eg-card { --eg-count: 2; }
    .eg-carousel__track > .eg-card:first-child:nth-last-child(1),
    .eg-cardpage:only-child > .eg-cardpage__grid > .eg-card:first-child:nth-last-child(1) { --eg-count: 1; }

    /* 卡片变窄（每屏 2.3 张时约 150px，长金额如 $129,999.00 加 36px 加购按钮放不下，按钮会伸出卡片被裁）：
       与 992–1199 同一套——价格栏允许换行，放得下的价格仍与按钮同一行；放不下时现价一行、按钮落到下一行靠右。只轮播卡，商品网格不动。 */
    .eg-carousel .eg-card__foot { flex-wrap: wrap; row-gap: 4px; }
    .eg-carousel .eg-card__buy-wrap { margin-left: auto; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .eg-carousel--rows { --eg-peek-n: 3; }
}

/* 生产 .products-carousel .owl-dots：<768 不显示圆点（横向卡片轮播不受影响） */
@media (max-width: 767.98px) {
    .eg-section--carousel .eg-carousel__dots { display: none; }
}

.eg-cardpage {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
}

/* 页内：≥992 每页一个网格（4 列，8 张排 2 行，平板竖屏 1024 也是 4 列、右侧不留白；
   原来 768–1199 只显示前 3 张，1024 宽时 4 列只填 3 格，右边空一块）。
   <992（手机、小平板）：每页的外壳和网格都用 display: contents 摊平，64 张卡变成轮播轨道里的直接子项，
   像其他商品轮播一样一屏 2 张（≥576 为 3 张）、横向滑动，卡片用标准竖版（图在上）；
   HTML 不变、商品不隐藏，翻页脚本按「一页 = 一屏宽」照常工作。 */
.eg-cardpage__grid {
    flex-wrap: wrap;
}

@media (max-width: 991.98px) {
    .eg-cardpage,
    .eg-cardpage__grid {
        display: contents;
    }

    .eg-cardpage__grid > .eg-card {
        flex: 0 0 50%;
        min-width: 0;
        scroll-snap-align: start;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .eg-cardpage__grid > .eg-card { flex-basis: 33.3333333333%; }
}

@media (min-width: 992px) {
    .eg-cardpage__grid > .eg-card { flex-basis: calc(100% / var(--eg-cols)); }
}

@media (min-width: 1480px) {
    .eg-cardpage__grid > .eg-card { flex-basis: calc(100% / var(--eg-cols-wide)); }
}

/* 横向卡片（生产 .product-card）：左图 43%（右内边距 15px）、右文 57%（左内边距 15px），外层内边距 5.64%；
   价格栏贴底（margin-top: auto），≥1200 下边距 .5em；分隔线竖向居中、高 70%（≥1200 为 80%） */
@media (min-width: 992px) {
    .eg-cards--media > .eg-card::after {
        top: 50%;
        bottom: auto;
        height: 70%;
        transform: translateY(-50%);
    }

    .eg-cards--media .eg-card__inner {
        display: grid;
        grid-template-columns: 43% 57%;
        grid-template-rows: auto 1fr;
        align-items: start;
        padding: 5.64%;
    }

    .eg-cards--media .eg-card__link {
        display: contents;
    }

    .eg-cards--media .eg-card__thumb {
        grid-area: 1 / 1 / 3 / 2;
        margin: 0;
        padding-right: 15px;
    }

    .eg-cards--media .eg-card__title {
        grid-area: 1 / 2;
        padding-left: 15px;
    }

    .eg-cards--media .eg-card__foot {
        grid-area: 2 / 2;
        align-self: end;
        margin: 0;
        padding-left: 15px;
    }
}

@media (min-width: 1200px) {
    .eg-cards--media > .eg-card::after { height: 80%; }
    .eg-cards--media .eg-card__foot { margin-bottom: .5em; }
}

/* ---------- 中间大图版块（生产 electro_products_2_1_2 → section.products-4-1-4） ----------
   通栏浅灰底（.stretch-full-width：宽 100vw，左移 50vw - 50% + 8px；<768 不减 8px），上下内边距 1.786em、下边距 2em；
   内部同站点容器。列：≥768 左右各 25%、中间 50%；≥1480 三列各 1/3。
   两侧列表：≥768 竖排、每个商品高 50%，只显示前 2 个；≥1480 横排换行、每个宽 50%（2 × 2）。
   商品边框 1.5px 浅灰、白底，无分隔线。 */
.eg-showcase {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50% - 8px);
    margin-bottom: 2em;
    padding: 1.786em 0;
    background-color: rgb(243.95, 243.95, 243.95);
}

@media (max-width: 767.98px) {
    .eg-showcase { margin-left: calc(-50vw + 50%); }
}

.eg-showcase__row {
    display: flex;
    flex-wrap: wrap;
}

.eg-showcase__side,
.eg-showcase__main {
    flex: 0 0 100%;
    min-width: 0;
}

.eg-showcase__list {
    flex-wrap: wrap;
    height: 100%;
}

.eg-showcase__list > .eg-card {
    flex: 0 0 auto;
    width: 100%;
    border: 1.5px solid rgb(243.95, 243.95, 243.95);
    background-color: #fff;
}

.eg-showcase__list > .eg-card::after {
    content: none;
}

@media (min-width: 768px) {
    .eg-showcase__side { flex-basis: 25%; display: flex; }
    .eg-showcase__main { flex-basis: 50%; }

    .eg-showcase__list { flex-direction: column; flex-wrap: nowrap; width: 100%; }
    .eg-showcase__list > .eg-card { flex: 0 0 50%; max-width: 100%; }
}

@media (min-width: 768px) and (max-width: 1479.98px) {
    .eg-showcase__list > .eg-card:nth-child(n+3) { display: none; }
}

@media (min-width: 1480px) {
    .eg-showcase__side,
    .eg-showcase__main { flex-basis: 33.3333333333%; }

    .eg-showcase__side { display: block; }
    .eg-showcase__list { flex-direction: row; flex-wrap: wrap; height: auto; }
    .eg-showcase__list > .eg-card { flex: 0 0 auto; width: 50%; }
}

/* 中间主推商品（生产 .columns-4-1-4 .products-1 li.product，ul.product-main-2-1-2.show-btn）：
   白底、1.5px 浅灰边框；内边距同商品卡片（1em，≥1200 1.429em 1.714em 1em）；竖排、高度撑满；
   标题固定高 2.571em；图片区 margin: auto（在标题与价格栏之间居中），主图宽 92% 居中；
   缩略图（最多 4 张）格子宽 70px、1px 边框、右边距 10px，图 60px；≥1200 缩略图区上内边距 79px；
   价格栏高 2.571em、两端对齐、可换行，≥1200 下边距 .5em；按钮 13px / 700、内边距 .5em 1.385em、圆角 1.4em、主色白字 */
.eg-feature {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1em;
    border: 1.5px solid rgb(243.95, 243.95, 243.95);
    background: #fff;
}

.eg-feature__link {
    display: contents;
}

.eg-feature__media {
    width: 100%;
    margin: auto auto 0;
}

.eg-feature .eg-feature__img {
    display: block;
    width: 92%;
    height: auto;
    margin: 0 auto;
}

.eg-feature__thumbs {
    display: flex;
    margin: 0 0 auto;
    padding: 0;
    list-style: none;
}

.eg-feature__thumbs li {
    display: block;
    width: 70px;
    margin-right: 10px;
    border: 1px solid #e9e9e9;
}

.eg-feature__thumbs img {
    display: block;
    width: 60px;
    height: auto;
    margin: auto;
}

.eg-feature__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 2.571em;
    container-type: inline-size;
}

.eg-feature__buy {
    padding: .5em 1.385em;
    border-radius: 1.4em;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.714; /* 生产 .button */
}

.eg-feature__buy .eg-icon { font-size: 18px; }

@media (min-width: 1200px) {
    .eg-feature { padding: 1.429em 1.714em 1em 1.714em; }
    .eg-feature__thumbs { padding-top: 79px; }
    .eg-feature__foot { margin-bottom: .5em; }
}

/* ---------- 最近浏览（后置加载） ---------- */
.eg-recent.is-in,
[data-eg-recent-list].is-in {
    animation: eg-fade-up 0.3s ease both;
}

@keyframes eg-fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .eg-recent.is-in, [data-eg-recent-list].is-in { animation: none; }
}

/* ---------- 手机端卡片 ---------- */


/* ---------- 「新品」页：整页全宽的商品网格 + 滚动加载 ---------- */
.eg-latest {
    padding: 10px 8px;
}

.eg-latest__head { margin-bottom: 20px; }

.eg-latest__title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.eg-latest__grid { --eg-cols: 2; }

.eg-latest__grid > .eg-card {
    margin-bottom: 0;
    transition: box-shadow var(--eg-ease);
}

.eg-latest__grid > .eg-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.eg-latest__sentinel { height: 1px; }

.eg-latest__loader,
.eg-latest__end,
.eg-latest__error {
    margin: 0;
    padding: 24px 0;
    color: #6b7280;
    text-align: center;
}

.eg-latest__loader:not([hidden]) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.eg-latest__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--eg-primary);
    border-radius: 50%;
    animation: eg-spin 0.7s linear infinite;
}

.eg-latest__retry {
    margin-left: 8px;
    padding: 6px 16px;
    border: 1px solid var(--eg-primary);
    border-radius: 999px;
    background: none;
    color: var(--eg-primary);
    font: inherit;
    cursor: pointer;
}

@media (min-width: 576px) {
    .eg-latest { padding: 20px 15px; }
    .eg-latest__title { font-size: 25.6px; }
    .eg-latest__grid { --eg-cols: 3; }
}

@media (min-width: 768px) { .eg-latest__grid.eg-grid__list { --eg-cols-now: 4; } }
@media (min-width: 992px) { .eg-latest__grid.eg-grid__list { --eg-cols-now: 5; } }
@media (min-width: 1200px) { .eg-latest__grid.eg-grid__list { --eg-cols-now: 6; } }
@media (min-width: 1600px) { .eg-latest__grid.eg-grid__list { --eg-cols-now: 7; } }
@media (min-width: 1920px) { .eg-latest__grid.eg-grid__list { --eg-cols-now: 8; } }

@media (prefers-reduced-motion: reduce) {
    .eg-latest__spinner { animation-duration: 1.6s; }
}

/* ---------- 地图 ---------- */
.eg-gmap {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
    overflow: hidden;
    background: var(--eg-bg-soft);
}

.eg-gmap--ratio { aspect-ratio: 16 / 9; }
.eg-gmap--fixed { height: var(--eg-gmap-h, 450px); }

.eg-gmap__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- 商品分类列表 ---------- */
.eg-catlist__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eg-catlist__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: color var(--eg-ease);
}

.eg-catlist__link:hover { color: var(--eg-link-hover); }

.eg-catlist__img {
    display: block;
    width: 80px;
    height: 80px;
    border: 1px solid #eee;
    border-radius: 50%;
    object-fit: cover;
    background: var(--eg-bg-soft);
}

.eg-catlist__name {
    font-size: 13px;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .eg-catlist__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- 卡片悬停浮起（生产 ≥1200px：白底、四周 6px 阴影、置顶、下沿多出 4px、分隔竖线隐藏） ---------- */
@media (min-width: 1200px) {
    .eg-card:hover {
        z-index: 999;
    }

    .eg-card:hover::after {
        content: none;
    }

    .eg-card:hover > .eg-card__inner {
        height: calc(100% + 4px);
        margin-bottom: -4px;
        background: #fff;
        box-shadow: 0 0 6px rgba(1, 1, 1, 0.3);
    }
}

/* 卡片图片区里对比 / 收藏 / 快速预览按钮：底色与文字色同生产 */
.eg-card .product-thumbnail .ycw-quickview-btn,
.eg-card .product-thumbnail .ycw-compare-btn,
.eg-card .product-thumbnail .ycw-wishlist-btn {
    background-color: #efecec;
    color: var(--eg-text);
}

/* 各类型按钮的图标见上方「加购按钮」（与生产按商品类型区分） */

/* ---------- 提示气泡（页头图标、卡片按钮；同生产的样式与淡入） ---------- */
.eg-tooltip {
    position: absolute;
    z-index: 1080;
    max-width: 200px;
    padding: 0.4rem 0;
    font-size: 12.25px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.714; /* 生产 .tooltip */
    letter-spacing: normal;
    text-align: left;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s linear;
}

.eg-tooltip.is-shown { opacity: 0.9; }

.eg-tooltip__inner {
    display: block;
    padding: 10px;
    border-radius: 7px;
    background: #000;
    color: #fff;
    text-align: center;
    white-space: nowrap;
}

.eg-tooltip__arrow {
    position: absolute;
    left: 50%;
    width: 0.8rem;
    height: 0.4rem;
    margin-left: -0.4rem;
}

.eg-tooltip__arrow::before {
    content: "";
    position: absolute;
    border: 0.4rem solid transparent;
}

.eg-tooltip--top .eg-tooltip__arrow { bottom: 0; }
.eg-tooltip--top .eg-tooltip__arrow::before { top: -1px; border-bottom-width: 0; border-top-color: #000; }
.eg-tooltip--bottom .eg-tooltip__arrow { top: 0; }
.eg-tooltip--bottom .eg-tooltip__arrow::before { bottom: -1px; border-top-width: 0; border-bottom-color: #000; }

@media (prefers-reduced-motion: reduce) {
    .eg-tooltip { transition: none; }
}

/* ---------- 商城分类小工具（生产 Electro .widget_product_categories 的规则原样，只换 class 名） ----------
 * .widget_product_categories → .widget_electro_product_categories_widget（小工具外壳），product-categories → eg-pcats，
 * category-single → eg-pcats--single，show-all-cat(-dropdown) → eg-pcats__all(-toggle)，child-indicator / no-child → eg-pcats__ind / eg-pcats__noind。
 * cat-item / children / current-cat 是 WordPress 核心输出的 class，保留。顺序与生产相同（后面的规则覆盖前面的）。 */
:is(.widget_product_categories, .widget_electro_product_categories_widget) ul li>a,
:is(.widget_product_categories, .widget_electro_product_categories_widget) ul li>span {
    padding:.571em 0 .643em 0;display:inline-block
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) ul li .count {
    font-size:.857em;color:#aaa
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) ul {
    list-style:none
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats,
:is(.widget_product_categories, .widget_electro_product_categories_widget) .widget-title+ul {
    padding:0!important;border:2px solid #ddd;border-radius:6px
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) ul li {
    border-top:1px solid #ddd
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) ul li:first-child {
    border:none
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) ul li .eg-pcats__ind {
    padding-right:.429em
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) ul li .eg-pcats__ind i {
    font-size:.857em;color:#aaa;width:.571em
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) ul li .children {
    padding:0
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) ul li .children .eg-pcats__ind {
    padding-left:2.214em
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) ul li .children .eg-pcats__noind {
    padding-left:3.143em
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) ul li .eg-pcats__ind {
    padding-left:1.214em
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) ul li .eg-pcats__noind {
    padding-left:2.143em
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .product_cat>span {
    padding:1em 2em;border-bottom:1px solid #ddd;display:block;cursor:pointer
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .product_cat>ul {
    padding:.929em
}
/* 脚本就绪前（.is-ready 由 catnav.js 加）先按最终状态折叠：「全部分类」列表和各级子分类收起，只展开当前分类所在的一支。
   否则整棵树先全部展开、再被脚本收起，侧栏下面的小工具会跳动。 */
.eg-pcats:not(.is-ready) .eg-pcats__all-toggle ~ ul,
.eg-pcats:not(.is-ready) .cat-item > ul.children {
    display: none;
}

.eg-pcats:not(.is-ready) .current-cat > ul.children,
.eg-pcats:not(.is-ready) .current-cat-parent > ul.children {
    display: block;
}

:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single {
    padding:0!important
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single .eg-pcats__all>li,
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single>li {
    border:none
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single .eg-pcats__all {
    padding:0
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single .eg-pcats__all .eg-pcats__all-toggle {
    padding:1em 2em;border-bottom:1px solid #ddd;display:block;cursor:pointer
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single .eg-pcats__all .eg-pcats__all-toggle .eg-pcats__ind {
    padding-left:.643em
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single .eg-pcats__all .eg-pcats__all-toggle .eg-pcats__ind i {
    font-size:1.2em;font-weight:700;vertical-align:middle
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single .eg-pcats__all .eg-pcats__all-toggle+ul {
    padding:.929em
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single .eg-pcats__all .eg-pcats__all-toggle+ul li:first-child {
    border:none
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single>li>ul:last-child {
    padding:.929em
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single>li>ul:last-child>li>a .eg-pcats__ind {
    display:none
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single>li>ul:last-child>li>a .eg-pcats__noind {
    padding-left:0
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single>li>ul:last-child>li .children>li>a {
    display:flex
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single>li>ul:last-child>li .children>li>a .count {
    margin-top:2px;margin-left:4px
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single>li>ul:last-child li.current-cat-parent>.children li>a .eg-pcats__ind {
    padding-left:0
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single>li>ul:last-child li.current-cat-parent>.children li>a .eg-pcats__noind {
    padding-left:1.214em
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single>li>ul:last-child li.current-cat>a {
    font-weight:700
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single>li>ul:last-child li.current-cat>.children li>a .eg-pcats__ind {
    padding-left:0
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single>li>ul:last-child li.current-cat>.children li>a .eg-pcats__noind {
    padding-left:1.214em
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single>li>ul:last-child li>a {
    padding-left:1.071em;padding-bottom:.643em
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single>li>ul:last-child li>.children>li .eg-pcats__ind {
    padding-left:1.214em
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single>li>ul:last-child li>.children>li .eg-pcats__noind {
    padding-left:2.143em
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single>li>ul:last-child li>.children>li:first-child>a {
    padding-top:1em
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single>li>ul:last-child li .children li {
    padding:0
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single>li>ul:last-child li .children li .children {
    transition:opacity .1s ease;padding-bottom:.571em
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single>li>ul:last-child li .children li:first-child {
    border-top:1px solid #ddd
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single>li>ul:last-child li .children li .children li {
    border:none
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single>li>ul:last-child li .children li .children li a {
    padding-left:3.214em;line-height:1.1em;padding-bottom:.893em
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single>li>ul:last-child li .children li .children li .eg-pcats__ind,
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single>li>ul:last-child li .children li .children li .eg-pcats__noind {
    padding-left:0
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) ul li>a,
:is(.widget_product_categories, .widget_electro_product_categories_widget) ul li>span {
    padding:.4em 0
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single .eg-pcats__all .eg-pcats__all-toggle,
:is(.widget_product_categories, .widget_electro_product_categories_widget) .product_cat>span {
    padding:1.06em 2em
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .product_cat>ul {
    padding:.5em .929em .5em
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) .eg-pcats--single .eg-pcats__all {
    padding:0
}
:is(.widget_product_categories, .widget_electro_product_categories_widget) ul li .children li {
    border-top:none
}

/* 卡片里的销量行（登录买家可见）下边距 16px，同生产。
   商品流放在文本块里，文本块「最后一个子元素下边距归零」的规则会把它吃掉（生产里销量行后面还有一个隐藏元素，不是最后一个）。 */
.eg-main .eg-text .eg-card__inner > p.yitu-sold-count,
.eg-card__inner > p.yitu-sold-count {
    margin-bottom: 1rem !important;
}

/* ---------- 「Del fabricante」橙色角标（inc/shop/factory-direct.php），尺寸、颜色、图标同 App ----------
   底色 #FF6500 是主人 2026-11-28 为同 App 定的；白字配它对比度约 2.95:1，不到 WCAG AA 4.5:1，照主人定的不换深色。
   卡片：贴图片区左下角，只有右上角圆角；不占行高（同一排卡片的标题、价格不错位）；
   快速预览 / 对比 / 收藏按钮在右上，不重叠。主题卡片上没有别的角标（折扣标在 loop.php 里去掉了）。
   窄卡（手机 <576、列表 / 紧凑视图）高 16；图片比角标还窄时文字省略，读屏器仍读全文。
   列表 / 紧凑视图的小图（紧凑 90、手机紧凑 72、手机列表 104）只留图标方块，见下方。
   商品页：见 .eg-factory-anchor。 */
.eg-factory {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    box-sizing: border-box;
    max-width: 100%;
    height: 18px;
    padding: 0 5px;
    border-radius: 0 8px 0 0;
    background: #ff6500;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.eg-factory__icon {
    flex: none;
    width: 11px;
    height: 11px;
}

.eg-factory__text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.eg-feature__media {
    position: relative;
}

.eg-factory--card {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
}

.eg-products--list .eg-factory--card,
.eg-products--rows .eg-factory--card {
    height: 16px;
}

/* 列表 / 紧凑视图的小图：右侧 32–36px 竖排着收藏 / 对比 / 快速预览按钮（插件 frontend.css，触屏常显、图片框至少 122 高），
   带文字的角标（约 91px）会被第三个按钮盖住。这里只留橙色工厂图标的小方块（5 + 11 + 5 = 21×16，贴左下），
   文字视觉隐藏、读屏器照读（不能 display:none）。手机列表的断点跟 archive.css 改 104px 图的断点一致（<768），
   电脑列表 200px 图照旧带文字。只靠视图 class（archive.js 在浏览器里切），旧的缓存 HTML 一样生效。 */
.eg-products--rows .eg-factory--card .eg-factory__text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

@media (max-width: 767px) {
    .eg-products--list .eg-factory--card .eg-factory__text {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
    }
}

@media (max-width: 575.98px) {
    .eg-factory--card {
        height: 16px;
    }
}

/* 商品页：角标输出在相册之后、缩略图条之前（不放进相册，免得跟着轮播图片滑走）。
   锚点高 0、上移相册下边距（.857em，single.css），角标贴在锚点上方，正好落在主图左下角。 */
.eg-factory-anchor {
    position: relative;
    z-index: 3;
    top: -.857em;
    height: 0;
}

.eg-factory--single {
    position: absolute;
    bottom: 8px;
    left: 5px;
    gap: 4px;
    height: 22px;
    padding: 0 8px;
    border-radius: 11px;
    font-size: 11px;
}

.eg-factory--single .eg-factory__icon {
    width: 14px;
    height: 14px;
}
