/* ── Product detail ── */
#screen-product {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 104px);
    overflow: hidden;
    padding-bottom: 0;
}

#product-detail {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.product-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: var(--bg);
}

.product-scroll {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--bg);
}

/* Product photo */
.product-photo {
    width: 100%;
    height: 354px;
    object-fit: contain;
    display: block;
    background: var(--white);
}

.product-photo-empty {
    width: 100%;
    height: 354px;
    background: var(--sec);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

/* Product info */
.product-info {
    padding: 16px;
    background: var(--bg);
}

.product-name {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 22px;
    line-height: 26px;
    color: var(--text);
    margin-bottom: 10px;
}

.product-price {
    font-family: var(--font-ui);
    font-weight: 900;
    font-size: 32px;
    line-height: 38px;
    color: var(--btn);
    margin-bottom: 16px;
}

.product-desc {
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    color: var(--hint);
    margin-bottom: 20px;
}

.product-desc-wrap {
    margin-bottom: 20px;
}

/* Characteristics */
.product-attrs {
    margin-bottom: 20px;
}

.pa-label {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 13px;
    line-height: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hint);
    margin-bottom: 8px;
}

.pa-table {
    border-top: 1px solid var(--brd-faint);
}

.pa-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--brd-faint);
    gap: 16px;
}

.pa-key {
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: var(--hint);
    flex-shrink: 0;
}

.pa-val {
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: var(--text);
    text-align: right;
    flex: 1;
    min-width: 0;
}

/* Qty control (in footer) */
.pq-ctrl {
    display: flex;
    align-items: center;
    background: var(--qty-bg);
    border-radius: var(--r-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.pq-btn {
    background: none;
    border: none;
    width: 36px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    color: var(--btn);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.pq-btn:active { background: var(--press-faint); }

#qty-value {
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
    color: var(--text);
}

/* Product footer (fixed add-to-cart bar) */
.product-footer {
    flex-shrink: 0;
    height: 64px;
    background: var(--surface);
    border-top: 1px solid var(--brd-strong);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
}

/* flex: 1 and width: auto override the full-width default from buttons.css */
.btn-add-cart { flex: 1; width: auto; height: 50px; border-radius: 16px; }
