
/* ean.bz V1.3.68.5 product detail, based on the production V1.3.65 shell */
.product-main{padding:24px 13px 18px;background:var(--frame);color:var(--text)}
.product-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:18px;box-shadow:none;color:var(--text)}
.product-card .grid{display:grid;grid-template-columns:minmax(220px,330px) minmax(0,1fr);gap:24px;align-items:start}
.product-card .product-image{display:block;width:100%;max-height:330px;object-fit:contain;padding:14px;border:1px solid var(--border);border-radius:9px;background:var(--surface-soft)}
.product-card h1{margin:0 0 12px;color:var(--text);font-size:clamp(1.55rem,3vw,2.25rem);line-height:1.08;letter-spacing:-.035em}
.product-card h2{margin:26px 0 10px;color:var(--text);font-size:1.05rem}
.product-card .meta{color:var(--muted);font-size:.76rem;line-height:1.55}
.product-card .fallback{padding:11px 13px;margin:0 0 16px;border:1px solid var(--border);border-radius:8px;background:var(--accent-soft);color:var(--text);font-size:.7rem}
.product-card .description{white-space:pre-line;color:var(--text);font-size:.76rem;line-height:1.7}
.product-card .offer-group{margin-top:14px;border:1px solid var(--border);border-radius:9px;overflow:hidden;background:var(--surface)}
.product-card .offer-group:first-of-type{margin-top:0}
.product-card .offer-group-title{margin:0;padding:12px 14px;background:var(--surface-soft);border-bottom:1px solid var(--border);color:var(--text);font-size:.78rem;display:flex;align-items:center;justify-content:space-between;gap:12px}
.product-card .offer-market{color:var(--muted);font-size:.62rem;font-weight:700;white-space:nowrap}
.product-card .offers{width:100%;border-collapse:collapse}
.product-card .offers th,.product-card .offers td{text-align:left;padding:10px 14px;border-bottom:1px solid var(--border);color:var(--text);font-size:.7rem}
.product-card .offers th{color:var(--muted);font-size:.61rem;font-weight:800}
.product-card .offers tbody tr:last-child td{border-bottom:0}
.product-card .price{font-weight:850;white-space:nowrap}
.product-card .variant-id{font-size:.68rem;color:var(--muted);white-space:nowrap}
.product-card .variant-note{margin:8px 14px 13px;color:var(--muted);font-size:.62rem;line-height:1.45}
.product-card .button{display:inline-flex;align-items:center;justify-content:center;min-width:104px;height:34px;padding:0 13px;border-radius:7px;background:var(--accent);color:#fff;text-decoration:none;font-size:.65rem;font-weight:850;white-space:nowrap}
.product-card .button:hover{filter:brightness(.94)}
.product-card .external-offer-body{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px}
.product-card .external-offer-body p{margin:0;color:var(--text);font-size:.7rem;line-height:1.5}
.product-card .external-offer-table .external-offer-copy{color:var(--text);line-height:1.5}
.product-card .notice{margin:13px 1px 0;color:var(--muted);font-size:.61rem;line-height:1.5}
.product-main + .page-footer{margin-top:12px}
html[data-theme="dark"] .product-card,html[data-theme="dark"] .product-card .offer-group{background:var(--surface)}
html[data-theme="warm"] .product-card,html[data-theme="warm"] .product-card .offer-group{background:var(--surface)}
@media(max-width:680px){
 .product-main{padding:16px 9px 12px}
 .product-card{padding:12px}
 .product-card .grid{grid-template-columns:1fr;gap:16px}
 .product-card .product-image{max-height:270px}
 .product-card .offers thead{display:none}
 .product-card .offers,.product-card .offers tbody,.product-card .offers tr,.product-card .offers td{display:block;width:100%}
 .product-card .offers tr{padding:10px 0;border-bottom:1px solid var(--border)}
 .product-card .offers td{padding:3px 12px;border:0}
 .product-card .offers td:last-child{padding-top:8px}
 .product-card .offer-group-title{align-items:flex-start;flex-direction:column;gap:3px}
 .product-card .external-offer-body{align-items:flex-start;flex-direction:column}
}

/* V1.3.79.8.6.6.1.14.2 - identical offer action alignment */
.product-card{
    --offer-action-button-width:132px;
    --offer-action-column-width:160px;
}

.product-card .offers th:last-child,
.product-card .offers td:last-child{
    width:var(--offer-action-column-width);
    text-align:right;
}

.product-card .offers td:last-child .button{
    width:var(--offer-action-button-width);
    min-width:var(--offer-action-button-width);
    box-sizing:border-box;
}

@media(max-width:680px){
    .product-card .offers td:last-child{
        width:100%;
        text-align:left;
    }

    .product-card .offers td:last-child .button{
        width:var(--offer-action-button-width);
        min-width:var(--offer-action-button-width);
    }
}

/* V1.3.79.8.6.6.1.16.1 - cross-browser offer action column */
.product-card .offers .offer-action-col{
    width:160px;
}

.product-card .offers th:last-child,
.product-card .offers td:last-child{
    width:160px;
    min-width:160px;
    max-width:160px;
    text-align:right;
}

.product-card .offers td:last-child .button{
    display:flex;
    width:132px;
    min-width:132px;
    max-width:132px;
    margin-left:auto;
    box-sizing:border-box;
}

@media(max-width:680px){
    .product-card .offers th:last-child,
    .product-card .offers td:last-child{
        width:100%;
        min-width:0;
        max-width:none;
        text-align:left;
    }

    .product-card .offers td:last-child .button{
        width:132px;
        min-width:132px;
        max-width:132px;
        margin-left:0;
    }
}

/* V1.3.79.8.6.6.1.16.2 - identical offer button geometry */
.product-card .offers td:last-child{
    vertical-align:middle;
}

.product-card .offers td:last-child .button{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:132px;
    min-width:132px;
    max-width:132px;

    height:34px;
    min-height:34px;
    max-height:34px;

    padding:0 10px;
    margin-left:auto;

    line-height:1;
    box-sizing:border-box;
    vertical-align:middle;
    flex:none;
}
