/* Product detail — phân bổ đều 50/50 */
.pdp-page {
    padding-bottom: 56px;
    background:
        radial-gradient(ellipse 70% 45% at 8% 0%, rgba(232, 163, 23, 0.08), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 10%, rgba(0, 65, 144, 0.06), transparent 50%),
        linear-gradient(180deg, #f7fafc 0%, #fff 42%);
}

.pdp-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 18px 0 10px;
    font-size: 13px;
    color: var(--ink-soft);
}
.pdp-crumb a {
    color: var(--brand) !important;
    text-decoration: none;
    font-weight: 600;
}
.pdp-crumb a:hover { text-decoration: underline; }

/* Hero: hai cột bằng nhau */
.pdp-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
    padding: 8px 0 28px;
}

.pdp-gallery,
.pdp-buy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0, 40, 80, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.pdp-gallery-main {
    margin: 0;
    flex: 1;
    min-height: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}
.pdp-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.pdp-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px 14px 14px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(0, 40, 80, 0.06);
}
.pdp-thumb {
    width: 64px;
    height: 48px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}
.pdp-thumb.is-active,
.pdp-thumb:hover {
    border-color: var(--brand);
}
.pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pdp-buy {
    padding: 22px 24px 20px;
    justify-content: flex-start;
}

.pdp-tag {
    margin: 0 0 8px;
    display: inline-block;
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold-deep, #c4840a);
    background: rgba(232, 163, 23, 0.14);
    padding: 4px 10px;
    border-radius: 8px;
}

.pdp-title {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.3;
    color: var(--ink);
    font-weight: 800;
}

.pdp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}
.pdp-meta span {
    font-size: 12.5px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(0, 90, 160, 0.08);
    color: var(--ink-soft);
    font-weight: 600;
}

.pdp-lead {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-soft);
}

.pdp-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid rgba(0, 40, 80, 0.1);
    border-bottom: 1px solid rgba(0, 40, 80, 0.1);
    margin-bottom: 14px;
}
.pdp-price-label {
    margin: 0 0 4px;
    font-size: 11px;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}
.pdp-price {
    margin: 0;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--ember, #d62828);
    line-height: 1.1;
}
.pdp-stock {
    margin: 0;
    font-size: 13px;
    color: #1a7a3c;
    font-weight: 600;
}

.pdp-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.pdp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    border: 2px solid transparent;
    border-radius: var(--radius);
}
.pdp-btn--primary {
    background: var(--grad-ember, var(--brand));
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(214, 40, 40, 0.2);
}
.pdp-btn--primary:hover { filter: brightness(1.05); }
.pdp-btn--ghost {
    background: transparent;
    border-color: var(--brand);
    color: var(--brand) !important;
}
.pdp-btn--ghost:hover { background: rgba(0, 90, 160, 0.06); }

.pdp-note {
    margin: 0 0 14px;
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.45;
}

.pdp-benefits {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-top: auto;
}
.pdp-benefits li {
    position: relative;
    padding: 7px 0 7px 20px;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--ink);
    border-bottom: 1px solid rgba(0, 40, 80, 0.06);
}
.pdp-benefits li:last-child { border-bottom: 0; }
.pdp-benefits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold, var(--brand));
}

/* Khối thông tin: 3 cột đều */
.pdp-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-bottom: 22px;
}

.pdp-block {
    background: #fff;
    border: 1px solid rgba(0, 40, 80, 0.08);
    border-radius: var(--radius-lg);
    padding: 18px 18px 20px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}
.pdp-block p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-soft);
}
.pdp-h2 {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--ink);
}

.pdp-list {
    margin: 0;
    padding: 0 0 0 18px;
}
.pdp-list li {
    margin-bottom: 7px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink);
}
.pdp-list li:last-child { margin-bottom: 0; }

.pdp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pdp-chips li {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 11px;
    border-radius: 8px;
    background: rgba(0, 90, 160, 0.08);
    color: var(--ink);
}

/* Related: 2 cột đều */
.pdp-related {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding-bottom: 18px;
}

.pdp-side-card {
    background: #fff;
    border: 1px solid rgba(0, 40, 80, 0.08);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}
.pdp-side-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
}
.pdp-side-link {
    display: inline-block;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--brand) !important;
    text-decoration: none;
}
.pdp-side-link:hover { text-decoration: underline; }
.pdp-side-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.pdp-side-topics {
    margin: 0;
    padding: 0;
    list-style: none;
}
.pdp-side-topics li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 40, 80, 0.06);
    font-size: 13.5px;
}
.pdp-side-topics li:last-child { border-bottom: 0; }
.pdp-side-topics span {
    font-size: 11px;
    font-weight: 700;
    color: var(--ember, var(--brand));
    white-space: nowrap;
}
.pdp-side-topics a {
    color: var(--ink) !important;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.35;
}
.pdp-side-topics a:hover { color: var(--brand) !important; }

.pdp-footer-nav {
    padding-top: 4px;
}
.pdp-back {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand) !important;
    text-decoration: none;
}
.pdp-back:hover { text-decoration: underline; }

/* 1 card info khi thiếu cột */
.pdp-info > .pdp-block:only-child {
    grid-column: 1 / -1;
}
.pdp-related > .pdp-side-card:only-child {
    grid-column: 1 / -1;
}

@media (max-width: 960px) {
    .pdp-info {
        grid-template-columns: 1fr;
    }
    .pdp-related {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .pdp-hero {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .pdp-gallery-main {
        aspect-ratio: 4 / 3;
    }
    .pdp-cta {
        grid-template-columns: 1fr;
    }
    .pdp-price { font-size: 24px; }
}
