/* Trang chi tiết sản phẩm / dịch vụ — dùng cùng style-interior-2.css. */
.pd-breadcrumb {
    padding: 132px 0 28px;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}
.pd-breadcrumb-trail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: var(--color-text-muted);
    font-size: .86rem;
}
.pd-breadcrumb-trail a { color: var(--color-main-dark); }
.pd-section { padding: 76px 0 92px; }
.pd-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    gap: clamp(36px, 6vw, 80px);
    align-items: start;
}

/* Gallery sản phẩm */
.pd-cover {
    position: sticky;
    top: 112px;
    overflow: hidden;
    background: #eee8dd;
    border: 1px solid var(--color-border);
    box-shadow: 0 22px 54px rgba(38, 51, 44, .12);
}
.pd-carousel {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.pd-carousel-slide {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.035);
    transition: opacity .75s ease, transform 1.1s cubic-bezier(.22, 1, .36, 1), visibility .75s;
    pointer-events: none;
    cursor: zoom-in;
}
.pd-carousel-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}
.pd-carousel img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}
.pd-cover:hover .pd-carousel-slide.is-active img { transform: scale(1.025); }
.pd-carousel-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    background: rgba(29, 41, 35, .34);
    color: rgba(255, 255, 255, .9);
    opacity: .68;
    transform: translateY(-50%);
    transition: opacity .25s ease, background .25s ease, transform .25s ease;
    place-items: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
}
.pd-carousel-arrow:hover,
.pd-carousel-arrow:focus-visible {
    background: rgba(29, 41, 35, .7);
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}
.pd-carousel-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pd-carousel-arrow svg { width: 19px; height: 19px; }
.pd-carousel-prev { left: 15px; }
.pd-carousel-next { right: 15px; }
.pd-cover-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    background: #fff;
    color: var(--color-text-muted);
    font-size: .78rem;
    letter-spacing: .05em;
}

/* Tóm tắt và giá sản phẩm */
.pd-summary { padding-top: 8px; }
.pd-title {
    margin: 8px 0 18px;
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 500;
    line-height: 1.08;
}
.pd-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 15px;
    margin: 28px 0 26px;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.pd-price-label {
    color: var(--color-text-muted);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.pd-price-old {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}
.pd-price-new {
    color: var(--color-main-dark);
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.45rem);
    font-weight: 700;
    line-height: 1;
}
.pd-price-new small {
    font-family: var(--font-body);
    font-size: .48em;
    font-weight: 700;
}
.pd-short {
    margin: 0;
    color: var(--color-text);
    font-size: 1.02rem;
    line-height: 1.85;
}
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Nội dung sản phẩm do CKEditor sinh ra: không yêu cầu class trên thẻ con. */
.pd-detail {
    margin-top: 76px;
    padding-top: 60px;
    border-top: 1px solid var(--color-border);
}
.pd-detail-copy { display: block; }
.pd-detail-content {
    margin-top: clamp(28px, 4vw, 44px);
    overflow-x: auto;
}
.pd-detail-copy p { margin-top: 0; line-height: 1.85; }
.pd-detail-copy > div:first-child .section-title {
    max-width: 100%;
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 6.2vw, 3.5rem);
    font-style: italic;
    font-weight: 600;
    line-height: 1.08;
    white-space: nowrap;
}
.article-content h2,
.article-content h3 {
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 600;
    line-height: 1.18;
}
.article-content h2 {
    margin: 42px 0 18px;
    font-size: clamp(1.9rem, 4vw, 3rem);
}
.article-content h3 {
    margin: 38px 0 16px;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}
.article-content ul,
.article-content ol {
    margin: 24px 0;
    padding: 0;
    list-style: none;
}
.article-content ol { counter-reset: article-ordered-list; }
.article-content li {
    position: relative;
    padding: 11px 0 11px 28px;
    border-bottom: 1px solid rgba(217, 213, 202, .7);
    line-height: 1.75;
}
.article-content ul > li::before {
    position: absolute;
    top: 17px;
    left: 1px;
    width: 10px;
    height: 10px;
    background: var(--color-main);
    content: "";
}
.article-content ol > li { counter-increment: article-ordered-list; }
.article-content ol > li::before {
    position: absolute;
    top: 11px;
    left: 0;
    color: var(--color-main-dark);
    content: counter(article-ordered-list) ".";
    font-weight: 700;
}
.article-content li > ul,
.article-content li > ol { margin: 10px 0 0; }
.article-content table {
    width: 100%;
    min-width: 720px;
    margin: 24px 0 8px;
    border: 1px solid var(--color-border);
    border-collapse: collapse;
    background: #fff;
    color: var(--color-text);
    font-size: .9rem;
    line-height: 1.55;
}
.article-content th,
.article-content td {
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    text-align: left;
    vertical-align: middle;
}
.article-content thead th {
    background: var(--color-secondary);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.article-content tbody tr:nth-child(even) td { background: var(--color-bg-alt); }
.article-content th:first-child,
.article-content td:first-child { width: 36%; }
.article-content th:nth-child(2),
.article-content td:nth-child(2),
.article-content th:nth-child(3),
.article-content td:nth-child(3) { text-align: center; }
.article-content th:nth-child(4),
.article-content td:nth-child(4),
.article-content th:nth-child(5),
.article-content td:nth-child(5) {
    text-align: right;
    white-space: nowrap;
}
.article-content tfoot th,
.article-content tfoot td {
    background: var(--color-dark);
    color: #fff;
    font-weight: 700;
}
.article-content tfoot th { text-align: right; }

@media (max-width: 860px) {
    .pd-grid { grid-template-columns: 1fr; }
    .pd-cover { position: static; }
    .pd-section { padding: 54px 0 70px; }
    .pd-detail { margin-top: 56px; padding-top: 44px; }
}

@media (max-width: 520px) {
    .pd-breadcrumb { padding-top: 108px; }
    .pd-carousel-arrow { width: 40px; height: 40px; }
    .pd-carousel-prev { left: 10px; }
    .pd-carousel-next { right: 10px; }
    .pd-actions .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .pd-carousel-slide,
    .pd-carousel img,
    .pd-carousel-arrow { transition-duration: .01ms; }
}
