/* ==========================================================================
   Ethantheme - Loop Styles
   6 loop card variants for category listings
   Uses theme CSS variables (--eth-* prefix)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. product-1 (hover title color change + image zoom)
   -------------------------------------------------------------------------- */
.eth-loop--product-1 { }
.eth-loop-card--product-1 {
    border-radius: var(--eth-radius-m);
    overflow: hidden;
    background: var(--eth-bg-surface);
}
.eth-loop-card--product-1 .eth-loop-card__link {
    display: block;
    text-decoration: none;
}
.eth-loop-card--product-1 .eth-loop-card__image-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--eth-bg-muted);
}
.eth-loop-card--product-1 .eth-loop-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--eth-transition-l);
}
.eth-loop-card--product-1:hover .eth-loop-card__image {
    transform: scale(1.08);
}
.eth-loop-card--product-1 .eth-loop-card__title {
    padding: var(--eth-space-s);
    font-size: var(--eth-fs-body);
    font-weight: var(--eth-fw-medium);
    color: var(--eth-text-title);
    transition: color var(--eth-transition-s);
}
.eth-loop-card--product-1:hover .eth-loop-card__title {
    color: var(--eth-primary);
}

/* --------------------------------------------------------------------------
   2. product-2 (bordered card with hover shadow)
   -------------------------------------------------------------------------- */
.eth-loop-card--product-2 {
    border: 1px solid var(--eth-border);
    border-radius: var(--eth-radius-m);
    overflow: hidden;
    background: var(--eth-bg-surface);
    transition: box-shadow var(--eth-transition-m), border-color var(--eth-transition-m);
}
.eth-loop-card--product-2:hover {
    box-shadow: var(--eth-shadow-l);
    border-color: var(--eth-primary);
}
.eth-loop-card--product-2 .eth-loop-card__link {
    display: block;
    text-decoration: none;
}
.eth-loop-card--product-2 .eth-loop-card__image-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--eth-bg-muted);
}
.eth-loop-card--product-2 .eth-loop-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.eth-loop-card--product-2 .eth-loop-card__body {
    padding: var(--eth-space-m);
}
.eth-loop-card--product-2 .eth-loop-card__title {
    font-size: var(--eth-fs-body);
    font-weight: var(--eth-fw-semibold);
    color: var(--eth-text-title);
    margin-bottom: var(--eth-space-2xs);
    transition: color var(--eth-transition-s);
}
.eth-loop-card--product-2:hover .eth-loop-card__title {
    color: var(--eth-primary);
}
.eth-loop-card--product-2 .eth-loop-card__excerpt {
    font-size: var(--eth-fs-small);
    color: var(--eth-text-muted);
    line-height: var(--eth-lh-body);
    margin: 0;
}

/* --------------------------------------------------------------------------
   3. product-3 (compact grid, hover lift)
   -------------------------------------------------------------------------- */
.eth-loop-card--product-3 {
    border-radius: var(--eth-radius-s);
    overflow: hidden;
    background: var(--eth-bg-surface);
    transition: transform var(--eth-transition-m), box-shadow var(--eth-transition-m);
}
.eth-loop-card--product-3:hover {
    transform: translateY(-4px);
    box-shadow: var(--eth-shadow-m);
}
.eth-loop-card--product-3 .eth-loop-card__link {
    display: block;
    text-decoration: none;
}
.eth-loop-card--product-3 .eth-loop-card__image-wrap {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--eth-bg-muted);
}
.eth-loop-card--product-3 .eth-loop-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.eth-loop-card--product-3 .eth-loop-card__title {
    padding: var(--eth-space-2xs);
    font-size: var(--eth-fs-small);
    font-weight: var(--eth-fw-medium);
    color: var(--eth-text-body);
    text-align: center;
    transition: color var(--eth-transition-s);
}
.eth-loop-card--product-3:hover .eth-loop-card__title {
    color: var(--eth-primary);
}

/* --------------------------------------------------------------------------
   4. product-4 (large image + overlay tag)
   -------------------------------------------------------------------------- */
.eth-loop-card--product-4 {
    border-radius: var(--eth-radius-l);
    overflow: hidden;
    position: relative;
    background: var(--eth-bg-muted);
}
.eth-loop-card--product-4 .eth-loop-card__link {
    display: block;
    text-decoration: none;
}
.eth-loop-card--product-4 .eth-loop-card__image-wrap {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    position: relative;
}
.eth-loop-card--product-4 .eth-loop-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--eth-transition-l);
}
.eth-loop-card--product-4:hover .eth-loop-card__image {
    transform: scale(1.05);
}
.eth-loop-card--product-4 .eth-loop-card__tag {
    position: absolute;
    top: var(--eth-space-s);
    left: var(--eth-space-s);
    background: var(--eth-primary);
    color: var(--eth-text-invert);
    padding: 0.3em 0.8em;
    border-radius: var(--eth-radius-full);
    font-size: var(--eth-fs-xs);
    font-weight: var(--eth-fw-semibold);
}
.eth-loop-card--product-4 .eth-loop-card__title {
    padding: var(--eth-space-s) var(--eth-space-m);
    font-size: var(--eth-fs-body);
    font-weight: var(--eth-fw-semibold);
    color: var(--eth-text-title);
    background: var(--eth-bg-surface);
    transition: color var(--eth-transition-s);
}
.eth-loop-card--product-4:hover .eth-loop-card__title {
    color: var(--eth-primary);
}

/* --------------------------------------------------------------------------
   5. post-1 (left image, right text list)
   -------------------------------------------------------------------------- */
.eth-loop--post-1 {
    display: grid;
    gap: var(--eth-space-l);
}
.eth-post-item--post-1 {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--eth-space-m);
    padding: var(--eth-space-m) 0;
    border-bottom: 1px solid var(--eth-border);
}
.eth-post-item--post-1:last-child {
    border-bottom: none;
}
.eth-post-item--post-1 .eth-post-item__media {
    border-radius: var(--eth-radius-m);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.eth-post-item--post-1 .eth-post-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--eth-transition-l);
}
.eth-post-item--post-1 .eth-post-item__media:hover .eth-post-item__image {
    transform: scale(1.05);
}
.eth-post-item--post-1 .eth-post-item__content {
    display: flex;
    flex-direction: column;
}
.eth-post-item--post-1 .eth-post-item__categories {
    font-size: var(--eth-fs-xs);
    color: var(--eth-primary);
    font-weight: var(--eth-fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--eth-space-2xs);
}
.eth-post-item--post-1 .eth-post-item__categories a {
    color: inherit;
    text-decoration: none;
}
.eth-post-item--post-1 .eth-post-item__title {
    font-size: var(--eth-fs-h3);
    font-weight: var(--eth-fw-semibold);
    margin-bottom: var(--eth-space-2xs);
}
.eth-post-item--post-1 .eth-post-item__title a {
    color: var(--eth-text-title);
    text-decoration: none;
    transition: color var(--eth-transition-s);
}
.eth-post-item--post-1 .eth-post-item__title a:hover {
    color: var(--eth-primary);
}
.eth-post-item--post-1 .eth-post-item__excerpt {
    color: var(--eth-text-body);
    line-height: var(--eth-lh-body);
    margin-bottom: var(--eth-space-s);
}
.eth-post-item--post-1 .eth-post-item__meta {
    display: flex;
    gap: var(--eth-space-m);
    font-size: var(--eth-fs-small);
    color: var(--eth-text-muted);
    margin-top: auto;
}
@media (max-width: 768px) {
    .eth-post-item--post-1 {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   6. post-2 (magazine-style card)
   -------------------------------------------------------------------------- */
.eth-loop--post-2 { }
.eth-post-card--post-2 {
    border-radius: var(--eth-radius-m);
    overflow: hidden;
    background: var(--eth-bg-surface);
    box-shadow: var(--eth-shadow-s);
    transition: box-shadow var(--eth-transition-m), transform var(--eth-transition-m);
}
.eth-post-card--post-2:hover {
    box-shadow: var(--eth-shadow-l);
    transform: translateY(-2px);
}
.eth-post-card--post-2 .eth-post-card__link {
    display: block;
    text-decoration: none;
}
.eth-post-card--post-2 .eth-post-card__image-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--eth-bg-muted);
}
.eth-post-card--post-2 .eth-post-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--eth-transition-l);
}
.eth-post-card--post-2:hover .eth-post-card__image {
    transform: scale(1.05);
}
.eth-post-card--post-2 .eth-post-card__body {
    padding: var(--eth-space-m);
}
.eth-post-card--post-2 .eth-post-card__categories {
    font-size: var(--eth-fs-xs);
    color: var(--eth-primary);
    font-weight: var(--eth-fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--eth-space-2xs);
}
.eth-post-card--post-2 .eth-post-card__categories a {
    color: inherit;
    text-decoration: none;
}
.eth-post-card--post-2 .eth-post-card__title {
    font-size: var(--eth-fs-body);
    font-weight: var(--eth-fw-semibold);
    color: var(--eth-text-title);
    margin-bottom: var(--eth-space-2xs);
    transition: color var(--eth-transition-s);
}
.eth-post-card--post-2:hover .eth-post-card__title {
    color: var(--eth-primary);
}
.eth-post-card--post-2 .eth-post-card__meta {
    font-size: var(--eth-fs-xs);
    color: var(--eth-text-muted);
}

/* --------------------------------------------------------------------------
   Premium refinements for the original loop variants
   -------------------------------------------------------------------------- */
.eth-loop {
    --eth-card-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.eth-loop-card--product-1,
.eth-loop-card--product-2,
.eth-loop-card--product-3,
.eth-loop-card--product-4,
.eth-post-card--post-2 {
    border: 1px solid color-mix(in srgb, var(--eth-border) 82%, transparent);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
    transition: border-color 260ms ease, box-shadow 360ms var(--eth-card-ease), transform 360ms var(--eth-card-ease);
}

.eth-loop-card--product-1:hover,
.eth-loop-card--product-2:hover,
.eth-loop-card--product-3:hover,
.eth-loop-card--product-4:hover,
.eth-post-card--post-2:hover {
    border-color: color-mix(in srgb, var(--eth-primary) 34%, var(--eth-border));
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.09);
    transform: translateY(-4px);
}

.eth-loop-card__link:focus-visible,
.eth-post-card__link:focus-visible,
.eth-post-item a:focus-visible,
.eth-card-link:focus-visible,
.eth-catalog-card a:focus-visible,
.eth-insight-card a:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--eth-primary) 32%, transparent);
    outline-offset: 3px;
}

.eth-loop-card--product-1 .eth-loop-card__image-wrap,
.eth-loop-card--product-2 .eth-loop-card__image-wrap,
.eth-loop-card--product-3 .eth-loop-card__image-wrap {
    aspect-ratio: 1;
}

.eth-loop-card--product-1 .eth-loop-card__image,
.eth-loop-card--product-2 .eth-loop-card__image,
.eth-loop-card--product-3 .eth-loop-card__image {
    transition: transform 650ms var(--eth-card-ease);
}

.eth-loop-card--product-1 .eth-loop-card__title,
.eth-loop-card--product-3 .eth-loop-card__title,
.eth-loop-card--product-4 .eth-loop-card__title {
    margin: 0;
    line-height: 1.35;
}

.eth-post-card--post-2 .eth-post-card__body {
    padding: clamp(1rem, 2vw, 1.35rem);
}

.eth-post-card--post-2 .eth-post-card__title {
    margin-top: 0.45rem;
    line-height: 1.35;
}

/* --------------------------------------------------------------------------
   7. product-5 — Editorial catalogue
   -------------------------------------------------------------------------- */
.eth-catalog-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--eth-border) 84%, transparent);
    border-radius: clamp(0.85rem, 1.5vw, 1.15rem);
    background: var(--eth-bg-surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
    transition: border-color 260ms ease, box-shadow 420ms var(--eth-card-ease), transform 420ms var(--eth-card-ease);
}

.eth-catalog-card:hover {
    border-color: color-mix(in srgb, var(--eth-primary) 30%, var(--eth-border));
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.1);
    transform: translateY(-5px);
}

.eth-catalog-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    background: color-mix(in srgb, var(--eth-bg-muted) 88%, #fff);
}

.eth-catalog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--eth-card-ease);
}

.eth-catalog-card:hover .eth-catalog-card__image {
    transform: scale(1.035);
}

.eth-catalog-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(1.15rem, 2vw, 1.55rem);
}

.eth-catalog-card__eyebrow {
    display: flex;
    min-height: 1.4em;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    color: var(--eth-text-muted);
    font-size: 0.72rem;
    font-weight: var(--eth-fw-semibold);
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.eth-catalog-card__eyebrow a {
    color: var(--eth-primary);
    text-decoration: none;
}

.eth-catalog-card__title {
    margin: 0;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1.3;
}

.eth-catalog-card__title a,
.eth-insight-card__title a {
    color: var(--eth-text-title);
    text-decoration: none;
}

.eth-catalog-card__excerpt,
.eth-insight-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0.75rem 0 1.15rem;
    color: var(--eth-text-muted);
    font-size: var(--eth-fs-small);
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.eth-card-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    color: var(--eth-text-title);
    font-size: var(--eth-fs-small);
    font-weight: var(--eth-fw-semibold);
    text-decoration: none;
}

.eth-card-link svg {
    width: 1.15rem;
    transition: transform 300ms var(--eth-card-ease);
}

.eth-card-link:hover {
    color: var(--eth-primary);
}

.eth-card-link:hover svg {
    transform: translateX(4px);
}

.eth-loop-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, transparent 46%, color-mix(in srgb, var(--eth-border) 70%, transparent) 46% 54%, transparent 54%),
        color-mix(in srgb, var(--eth-bg-muted) 90%, #fff);
    background-size: 34px 34px;
}

/* --------------------------------------------------------------------------
   8. post-3 — Insight grid
   -------------------------------------------------------------------------- */
.eth-loop--post-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: var(--eth-space-l);
}
.eth-insight-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.eth-insight-card__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: clamp(0.75rem, 1.4vw, 1rem);
    background: var(--eth-bg-muted);
}

.eth-insight-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--eth-card-ease), filter 450ms ease;
}

.eth-insight-card:hover .eth-insight-card__image {
    filter: saturate(1.04);
    transform: scale(1.035);
}

.eth-insight-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem 0.15rem 0.2rem;
}

.eth-insight-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    color: var(--eth-text-muted);
    font-size: 0.7rem;
    font-weight: var(--eth-fw-medium);
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.eth-insight-card__categories {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eth-insight-card__categories a {
    color: var(--eth-primary);
    text-decoration: none;
}

.eth-insight-card__title {
    margin: 0;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.4;
}

.eth-insight-card__title a {
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: color 220ms ease, background-size 350ms var(--eth-card-ease);
}

.eth-insight-card:hover .eth-insight-card__title a {
    color: var(--eth-primary);
    background-size: 100% 1px;
}

@media (max-width: 1024px) {
    .eth-loop--post-3,
    .eth-loop--product-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .eth-loop--post-3,
    .eth-loop--product-5 {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .eth-loop *,
    .eth-loop *::before,
    .eth-loop *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
 * 9. product-1 极简重写（无边框无背景）
 * 覆盖上方 Premium refinements 对 product-1 的边框/阴影
 * ========================================================= */
.eth-loop-card--product-1 {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
.eth-loop-card--product-1:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.09);
    border-color: transparent !important;
}
.eth-loop-card--product-1 .eth-loop-card__link {
    display: block;
    text-decoration: none;
}
.eth-loop-card--product-1 .eth-loop-card__image-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--eth-bg-muted);
    border-radius: var(--eth-radius-s);
}
.eth-loop-card--product-1 .eth-loop-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 650ms var(--eth-card-ease);
}
.eth-loop-card--product-1:hover .eth-loop-card__image {
    transform: scale(1.08);
}
.eth-loop-card--product-1 .eth-loop-card__title {
    margin: var(--eth-space-2xs) 0 0;
    padding: 0;
    font-size: var(--eth-fs-body);
    font-weight: var(--eth-fw-medium);
    line-height: 1.35;
    color: var(--eth-text-title);
    transition: color var(--eth-transition-s);
}
.eth-loop-card--product-1:hover .eth-loop-card__title {
    color: var(--eth-primary);
}

/* =========================================================
 * 10. product-3 信息覆盖图片内（overlay）
 * ========================================================= */
.eth-loop-card--product-3 {
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: var(--eth-radius-m);
    overflow: hidden;
}
.eth-loop-card--product-3 .eth-loop-card__link {
    display: block;
    text-decoration: none;
}
.eth-loop-card--product-3 .eth-loop-card__image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--eth-bg-muted);
}
.eth-loop-card--product-3 .eth-loop-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 650ms var(--eth-card-ease);
}
.eth-loop-card--product-3:hover .eth-loop-card__image {
    transform: scale(1.06);
}
.eth-loop-card--product-3 .eth-loop-card__overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: var(--eth-space-m) var(--eth-space-s);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
    color: var(--eth-light);
}
.eth-loop-card--product-3 .eth-loop-card__title {
    margin: 0;
    font-size: var(--eth-fs-body);
    font-weight: var(--eth-fw-semibold);
    line-height: 1.35;
    color: inherit;
}

/* =========================================================
 * 11. product-5 hover 切换图集下一张（参考 Zing-Pro）
 * 两张图叠放，hover 时主图淡出、hover 图淡入。
 * ========================================================= */
.eth-loop-card--product-5 {
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: var(--eth-radius-s);
    overflow: hidden;
}
.eth-loop-card--product-5 .eth-loop-card__link {
    display: block;
    text-decoration: none;
}
.eth-loop-card--product-5 .eth-loop-card__image-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--eth-bg-muted);
}
.eth-loop-card--product-5 .eth-loop-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 450ms var(--eth-card-ease);
}
.eth-loop-card--product-5 .eth-loop-card__image--main {
    opacity: 1;
}
.eth-loop-card--product-5 .eth-loop-card__image--hover {
    opacity: 0;
}
.eth-loop-card--product-5:hover .eth-loop-card__image--main {
    opacity: 0;
}
.eth-loop-card--product-5:hover .eth-loop-card__image--hover {
    opacity: 1;
}
.eth-loop-card--product-5 .eth-loop-card__title {
    margin: var(--eth-space-2xs) 0 0;
    padding: 0;
    font-size: var(--eth-fs-body);
    font-weight: var(--eth-fw-medium);
    line-height: 1.35;
    color: var(--eth-text-title);
    transition: color var(--eth-transition-s);
}
.eth-loop-card--product-5:hover .eth-loop-card__title {
    color: var(--eth-primary);
}

/* =========================================================
 * 12. product-6 标题覆盖图片，hover 标题上升 + 描述显现
 * ========================================================= */
.eth-loop-card--product-6 {
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: var(--eth-radius-m);
    overflow: hidden;
}
.eth-loop-card--product-6 .eth-loop-card__link {
    display: block;
    text-decoration: none;
}
.eth-loop-card--product-6 .eth-loop-card__image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--eth-bg-muted);
}
.eth-loop-card--product-6 .eth-loop-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 650ms var(--eth-card-ease);
}
.eth-loop-card--product-6:hover .eth-loop-card__image {
    transform: scale(1.05);
}
.eth-loop-card--product-6 .eth-loop-card__caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: var(--eth-space-m) var(--eth-space-s) var(--eth-space-s);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    color: var(--eth-light);
    transition: transform 400ms var(--eth-card-ease);
}
.eth-loop-card--product-6 .eth-loop-card__title {
    margin: 0;
    font-size: var(--eth-fs-body);
    font-weight: var(--eth-fw-semibold);
    line-height: 1.35;
    color: inherit;
}
.eth-loop-card--product-6 .eth-loop-card__excerpt {
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    font-size: var(--eth-fs-small);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    transition: max-height 400ms var(--eth-card-ease), opacity 360ms ease, margin-top 400ms ease;
}
.eth-loop-card--product-6:hover .eth-loop-card__caption {
    transform: translateY(-6px);
}
.eth-loop-card--product-6:hover .eth-loop-card__excerpt {
    max-height: 6em;
    opacity: 1;
    margin-top: var(--eth-space-2xs);
}

/* =========================================================
 * 13. Loop Slider (module 9 carousel)
 * --------------------------------------------------------
 * JS 鍚敤鏃讹細.eth-slider--active .eth-loop 鍙樹负 flex 妯悜杞ㄩ亾锛? * 閰嶅悎 scroll-snap 瀹炵幇杞挱锛涘乏鍙崇澶存寜閽帶鍒舵粴鍔ㄣ€? * JS 绂佺敤鎴栧瓙椤?鈮?锛氶€€鍖栦负 autogrid 缃戞牸锛?eth-slider--static锛夈€? * ========================================================= */
.eth-slider {
    position: relative;
}
.eth-slider--active .eth-loop {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--eth-space-m);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0 0 var(--eth-space-s);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox: hide scrollbar */
}
.eth-slider--active .eth-loop::-webkit-scrollbar {
    display: none; /* Chrome/Safari: hide scrollbar */
}
.eth-slider--active .eth-loop > * {
    flex: 0 0 auto;
    width: min(80vw, 340px);
    scroll-snap-align: start;
}

.eth-slider .eth-slider__btn {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* width: 2.6rem; */
    /* height: 2.6rem; */
    border-radius: var(--eth-radius-full);
    border: 1px solid var(--eth-border);
    background: var(--eth-bg-surface);
    color: var(--eth-text-title);
    cursor: pointer;
    box-shadow: var(--eth-shadow-s);
    transition: background var(--eth-transition-s), color var(--eth-transition-s), opacity var(--eth-transition-s);
    z-index: 2;
}
.eth-slider .eth-slider__btn svg {
    display: block;
    width: 1.3rem !important;
    height: 1.3rem !important;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.eth-slider .eth-slider__btn:hover {
    background: var(--eth-primary);
    color: var(--eth-text-invert);
    border-color: var(--eth-primary);
}
.eth-slider .eth-slider__btn--prev { left: var(--eth-space-2xs); }
.eth-slider .eth-slider__btn--next { right: var(--eth-space-2xs); }
.eth-slider .eth-slider__btn[disabled] { opacity: 0.4; cursor: default; }

@media (max-width: 768px) {
    .eth-slider--active .eth-loop > * { width: 78vw; }
}

/* 圆点指示器（额外控件） */
.eth-slider__dots {
    display: flex;
    justify-content: center;
    gap: var(--eth-space-2xs);
    margin-top: var(--eth-space-s);
}
.eth-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: var(--eth-radius-full);
    border: none;
    background: var(--eth-border-strong);
    cursor: pointer;
    padding: 0;
    transition: background var(--eth-transition-s), width var(--eth-transition-s);
}
.eth-slider__dot.is-active {
    background: var(--eth-primary);
    width: 24px;
}
