/* PT Product Description — Frontend */

/* ── Intro ── */
.pt-product-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: pt-d-fade-in 0.6s 0.1s ease forwards;
}
.pt-product-intro strong {
    color: #0f172a;
}

/* ── Carousel ── */
.pt-carousel {
    margin: 32px 0;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: pt-d-fade-in 0.6s 0.3s ease forwards;
}
.pt-carousel-main {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: box-shadow 0.3s ease;
}
.pt-carousel-main:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.pt-carousel-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: opacity 0.4s ease, transform 0.4s ease;
    cursor: zoom-in;
}
.pt-carousel-main:hover img {
    transform: scale(1.02);
}

/* Carousel buttons */
.pt-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #334155;
    transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    opacity: 0;
}
.pt-carousel-main:hover .pt-carousel-btn {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}
.pt-carousel-btn:hover {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-50%) scale(1.1) !important;
}
.pt-carousel-btn:active {
    transform: translateY(-50%) scale(0.95) !important;
}
.pt-carousel-prev { left: 12px; }
.pt-carousel-next { right: 12px; }

/* Thumbnails */
.pt-carousel-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    justify-content: center;
}
.pt-carousel-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
    background: #f8fafc;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pt-carousel-thumb:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.pt-carousel-thumb.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
    transform: translateY(-2px);
}
.pt-carousel-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.pt-carousel-thumb:hover img {
    transform: scale(1.1);
}
.pt-carousel-counter {
    text-align: center;
    margin-top: 8px;
    font-size: 0.82rem;
    color: #94a3b8;
}

/* ── Features grid ── */
.pt-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0 32px;
}
.pt-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(16px);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.pt-feature-item.pt-d-visible {
    opacity: 1;
    transform: translateY(0);
}
.pt-feature-item:hover {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(59,130,246,0.08);
    transform: translateY(-2px);
}
.pt-feature-item .pt-check {
    color: #16a34a;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 1px;
    transition: transform 0.3s ease;
}
.pt-feature-item:hover .pt-check {
    transform: scale(1.3);
}
@media (max-width: 600px) {
    .pt-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Accordion ── */
.pt-accordion-desc {
    margin-top: 32px;
}
.pt-accordion-desc details {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    opacity: 0;
    transform: translateY(16px);
}
.pt-accordion-desc details.pt-d-visible {
    opacity: 1;
    transform: translateY(0);
}
.pt-accordion-desc details:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}
.pt-accordion-desc details[open] {
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    border-color: #3b82f6;
}
.pt-accordion-desc summary {
    padding: 18px 22px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
    transition: color 0.2s ease;
}
.pt-accordion-desc details:hover summary,
.pt-accordion-desc details[open] summary {
    color: #3b82f6;
}
.pt-accordion-desc summary::-webkit-details-marker {
    display: none;
}
.pt-accordion-desc summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: #94a3b8;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), color 0.2s ease;
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
}
.pt-accordion-desc details:hover summary::after {
    color: #3b82f6;
    background: #eff6ff;
}
.pt-accordion-desc details[open] summary::after {
    content: '\2212';
    transform: rotate(180deg);
    color: #3b82f6;
    background: #eff6ff;
}
.pt-accordion-desc .pt-acc-body {
    padding: 0 22px 22px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
    animation: pt-d-acc-open 0.4s ease;
}
.pt-accordion-desc .pt-acc-body ul {
    padding-left: 18px;
    margin: 8px 0;
}
.pt-accordion-desc .pt-acc-body li {
    margin-bottom: 6px;
}

/* ── Requirements table ── */
.pt-req-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.pt-req-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.92rem;
    transition: background 0.2s ease;
}
.pt-req-table tr:hover td {
    background: #f8fafc;
}
.pt-req-table td:first-child {
    font-weight: 600;
    color: #0f172a;
    width: 40%;
}
.pt-req-table td:last-child {
    color: #475569;
}

/* ── Lightbox ── */
.pt-lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    padding: 20px;
    transition: background 0.3s ease;
}
.pt-lightbox-overlay.active {
    display: flex;
    animation: pt-d-lb-in 0.3s ease forwards;
}
.pt-lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.9);
    opacity: 0;
    animation: pt-d-lb-img 0.4s 0.1s ease forwards;
}

/* ── Section heading ── */
.pt-section-heading {
    opacity: 0;
    transform: translateY(20px);
}
.pt-section-heading.pt-d-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ── Animations ── */
@keyframes pt-d-fade-in {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pt-d-acc-open {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pt-d-lb-in {
    to { background: rgba(0,0,0,0.85); }
}
@keyframes pt-d-lb-img {
    to { transform: scale(1); opacity: 1; }
}
