/* seemb14 产品详情页 – 左信息 + 右购买侧栏（参考 DigiKey 式布局） */

.app-main.pd14-page {
    width: 100%;
    background: transparent;
    padding-bottom: 48px;
    --pd14-accent: var(--cat-primary, #e1251b);
    --pd14-border: #ddd;
    --pd14-label: #666;
    --pd14-text: #333;
    --pd14-surface: #fff;
    --pd14-radius: 4px;
}

.app-main.pd14-page .not-text-transform,
.app-main.pd14-page .not-text-transform * {
    text-transform: none;
}

.pd14-inner {
    padding-top: 0;
}

.pd14-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    margin-top: 16px;
}

.pd14-main {
    flex: 3 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pd14-sidebar {
    flex: 1 1 280px;
    max-width: 380px;
    width: 100%;
}

/* ----- 左侧产品信息卡 ----- */
.pd14-intro {
    background: var(--pd14-surface);
    border: 1px solid var(--pd14-border);
    border-radius: var(--pd14-radius);
    padding: 18px 20px 22px;
}

.pd14-intro__title {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--pd14-text);
    letter-spacing: 0.01em;
}

.pd14-intro__body {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.pd14-gallery {
    flex: 0 0 220px;
    width: 220px;
    max-width: 100%;
}

.pd14-gallery__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #eee;
    background: #fff;
    overflow: hidden;
}

.pd14-gallery__stage img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 12px;
}

.pd14-gallery__empty {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #eceff3;
}

.pd14-gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.pd14-gallery__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1px solid var(--pd14-border);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}

.pd14-gallery__thumb.is-active,
.pd14-gallery__thumb:hover {
    border-color: var(--pd14-accent);
    box-shadow: 0 0 0 1px rgba(225, 37, 27, 0.15);
}

.pd14-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.pd14-meta {
    flex: 1;
    min-width: 220px;
    margin: 0;
}

.pd14-meta__row {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 8px 12px;
    padding: 7px 0;
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid #f0f0f0;
}

.pd14-meta__row:last-child {
    border-bottom: none;
}

.pd14-meta__row dt {
    margin: 0;
    color: var(--pd14-label);
    font-weight: 400;
    text-align: right;
}

.pd14-meta__row dd {
    margin: 0;
    color: var(--pd14-text);
    word-break: break-word;
}

.pd14-link {
    color: #1a5fb4;
    text-decoration: none;
}

.pd14-link:hover {
    text-decoration: underline;
}

.pd14-link--sheet {
    color: #c99700;
}

/* ----- 产品属性 ----- */
.pd14-params {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.pd14-params__title {
    margin: 0 0 12px;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--pd14-text);
    background: transparent;
    border: none;
}

.pd14-params__table-wrap {
    overflow: auto;
    background: var(--pd14-surface);
    border: 1px solid var(--pd14-border);
    border-radius: var(--pd14-radius);
}

.pd14-params__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pd14-params__table th,
.pd14-params__table td {
    padding: 11px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.pd14-params__table tr:last-child th,
.pd14-params__table tr:last-child td {
    border-bottom: none;
}

.pd14-params__table th {
    width: 38%;
    max-width: 420px;
    font-weight: 400;
    color: var(--pd14-text);
    background: #fff;
    text-align: right;
}

.pd14-params__table tr:nth-child(even) th {
    background: #f7f7f7;
}

.pd14-params__table tr:nth-child(even) td {
    background: #f7f7f7;
}

.pd14-params__table td {
    color: var(--pd14-text);
    word-break: break-word;
}

/* ----- 右侧购买侧栏 ----- */
.pd14-sidebar__card {
    background: var(--pd14-surface);
    border: 1px solid var(--pd14-border);
    border-radius: var(--pd14-radius);
    padding: 18px 16px 20px;
}

.pd14-stock {
    margin-bottom: 14px;
}

.pd14-stock__line {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--pd14-label);
    line-height: 1.4;
}

.pd14-stock__num {
    font-weight: 700;
    color: var(--pd14-text);
}

.pd14-stock__meta {
    margin: 0;
    font-size: 13px;
    color: #999;
}

.pd14-qty {
    margin-bottom: 14px;
}

.pd14-qty__label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--pd14-label);
}

.pd14-qty__input {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    font-size: 14px;
    color: var(--pd14-text);
    border: 1px solid var(--pd14-border);
    border-radius: 4px;
    box-sizing: border-box;
}

.pd14-summary {
    margin-bottom: 10px;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    border-left: none;
    border-right: none;
    border-radius: 0;
    overflow: hidden;
    font-size: 13px;
}

.pd14-summary__head,
.pd14-summary__row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: left;
    align-items: center;
    min-height: 36px;
    padding: 0 6px;
}

.pd14-summary__head {
    background: #f6f8fc;
    font-weight: 600;
    color: var(--pd14-text);
}

.pd14-summary__row {
    background: #fff;
}

.pd14-total {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--pd14-text);
}

.pd14-total strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--pd14-accent);
}

.pd14-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.pd14-btn {
    display: inline-flex;
    flex: 1 1 calc(50% - 5px);
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    box-sizing: border-box;
    line-height: 1.2;
}

.pd14-btn .iconfont {
    font-size: 16px;
}

.pd14-btn--ghost {
    background: #fff;
    color: var(--pd14-text);
    border-color: #ccc;
}

.pd14-btn--ghost:hover {
    border-color: #999;
}

.pd14-btn--primary {
    background: var(--pd14-accent);
    color: #fff;
    border-color: var(--pd14-accent);
}

.pd14-btn--primary:hover {
    filter: brightness(0.92);
}

.pd14-moq {
    margin: 0;
    font-size: 13px;
    color: var(--pd14-label);
}

.pd14-ladder__head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pd14-text);
}

.pd14-ladder__head .iconfont {
    font-size: 16px;
    color: var(--pd14-label);
}

.pd14-ladder__table {
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    border-left: none;
    border-right: none;
    border-radius: 0;
    overflow: hidden;
    font-size: 13px;
}

.pd14-ladder__row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: left;
    align-items: center;
    min-height: 36px;
    padding: 0 6px;
}

.pd14-ladder__row--head {
    background: #f6f8fc;
    font-weight: 600;
}

.pd14-ladder__row:not(.pd14-ladder__row--head):nth-child(odd) {
    background: #fff;
}

.pd14-ladder__row:not(.pd14-ladder__row--head):nth-child(even) {
    background: #f3f3f3;
}

/* ----- 响应式 ----- */
@media (max-width: 991.98px) {
    .pd14-layout {
        flex-direction: column;
    }

    .pd14-sidebar {
        flex: 1 1 auto;
        max-width: none;
    }

    .pd14-intro__body {
        flex-direction: column;
    }

    .pd14-gallery {
        flex: 0 0 auto;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .pd14-meta__row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .pd14-meta__row dt {
        text-align: left;
    }

    .pd14-actions {
        flex-direction: column;
    }

    .pd14-btn {
        flex: 1 1 auto;
        width: 100%;
    }
}
