/* ---------- Product page ---------- */
.product-page {
    position: relative;
}

/* ---------- Product gallery ---------- */
.pd-gallery {
    position: relative;
}

.pd-main-frame {
    position: relative;
    background-color: var(--white);
    border: 1px solid var(--light-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}

.pd-main-img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: contain;
}

.pd-thumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.pd-thumb {
    width: 110px;
    height: 86px;
    padding: 4px;
    background-color: var(--white);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.pd-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pd-thumb:hover,
.pd-thumb.active {
    border-color: var(--primary);
}

.pd-nav-prev,
.pd-nav-next {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.pd-nav-prev:hover,
.pd-nav-next:hover {
    color: var(--primary-dark);
}

.pd-expand {
    position: absolute;
    bottom: 14px;
    inset-inline-end: 14px;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.pd-expand:hover {
    color: var(--primary-dark);
    transform: scale(1.08);
}

/* ---------- Product info ---------- */
.pd-name {
    color: var(--primary);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 14px;
}

.pd-short-desc {
    color: var(--text);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 24px;
}

.pd-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pd-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    color: var(--heading);
    font-size: 15px;
    font-weight: 500;
}

.pd-feature-icon {
    width: 34px;
    flex-shrink: 0;
    color: var(--primary);
    font-size: 22px;
    text-align: center;
}

.pd-features + .btn-amp {
    margin-top: 10px;
}

/* ---------- Tabs card ---------- */
.pd-tabs-card {
    background-color: var(--light-bg);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

.pd-card-img {
    display: block;
    width: 100%;
    height: 240px;
    padding: 10px;
    object-fit: contain;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.pd-card-body {
    min-width: 0;
}

.pd-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.pd-tab {
    padding: 0 0 6px;
    background: transparent;
    border: none;
    color: var(--heading);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.pd-tab:hover {
    color: var(--primary);
}

.pd-tabs .pd-tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    background-color: transparent;
}

.pd-tab-content {
    min-width: 0;
}

.pd-pane {
    color: var(--text);
    font-size: 15px;
    line-height: 2;
}

.pd-specs {
    margin: 0;
}

.pd-spec-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--white);
}

.pd-spec-row dt {
    color: var(--heading);
    font-weight: 700;
}

.pd-spec-row dd {
    margin: 0;
    color: var(--text);
}

.pd-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pd-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--heading);
}

.pd-list li i {
    color: var(--primary);
}

/* ---------- Lightbox ---------- */
.pd-lightbox {
    --bs-modal-bg: transparent;
}

.pd-lightbox .modal-dialog {
    max-width: 900px;
}

.pd-lightbox-content {
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
}

.pd-lightbox-img {
    display: block;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    background-color: var(--white);
    border-radius: 8px;
}

.pd-lightbox-close {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    padding: 8px;
    background-color: var(--white);
    border: none;
    border-radius: 50%;
    color: var(--heading);
    line-height: 1;
    opacity: 1;
    cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .pd-main-img {
        height: 320px;
    }

    .pd-tabs-card {
        padding: 22px;
    }

    .pd-card-img {
        height: 200px;
        margin-bottom: 8px;
    }

    .pd-tabs {
        gap: 18px;
    }
}

@media (max-width: 575.98px) {
    .pd-name {
        font-size: 22px;
    }

    .pd-main-img {
        height: 240px;
    }

    .pd-expand {
        font-size: 16px;
    }

    .pd-thumbs {
        gap: 10px;
    }

    .pd-thumb {
        width: 78px;
        height: 62px;
    }

    .pd-tabs-card {
        padding: 18px;
        border-radius: 14px;
    }

    .pd-tab {
        font-size: 14px;
    }
}
