/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */

.pd-section-top {
    padding-top: 32px;
    padding-bottom: 0;
}

/* ============================================================
   GALLERY  (max 638px, responsive)
   ============================================================ */

.pd-gallery-col {
    /* Right padding creates the 130px visual gap to the info column */
    padding-right: 0;
}

.pd-gallery {
    max-width: 638px;
}

/* Main image box */
.pd-gallery__main {
    background: #ffffff;
    aspect-ratio: 638 / 380;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
}

.pd-gallery__main a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.pd-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

/* Thumbnails row */
.pd-gallery__thumbs {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.pd-gallery__thumb {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    padding: 20px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pd-gallery__thumb.is-active {
    border-color: #822E81;
}

.pd-gallery__thumb:hover:not(.is-active) {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}

.pd-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================================
   INFO COLUMN
   ============================================================ */

.pd-info-col {
    /* Bootstrap g-0 removes gutters; we apply the 130px gap as padding */
    padding-left: 130px;
}

.pd-info__title {
    margin-bottom: 48px;
    color: #1a1a1a;
}

/* ============================================================
   SPECS GRID  (2 columns, 97px column-gap)
   ============================================================ */

.pd-specs-grid {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    column-gap: 97px;
    row-gap: 14px;
    margin-bottom: 48px;
}

.pd-spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Icon placeholder — 24×24. Replace <span> with <img> when icons are ready */
.pd-spec-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 6px;
}

.pd-spec-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.pd-spec-item .p {
    line-height: 1.3;
    color: #1a1a1a;
}

/* ============================================================
   PRICE CARDS  (gap 19px, white 20%, radius 20, padding 20)
   ============================================================ */

.pd-price-cards {
    display: flex;
    gap: 19px;
    margin-bottom: 48px;
}

.pd-price-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.pd-price-card__heading {
    margin-bottom: 0;
    color: #1a1a1a;
}

.pd-price-card__note {
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.pd-price-card__price {
    margin: 0;
    color: #1a1a1a;
}

.pd-price-card__btn {
    width: 100%;
    justify-content: center !important;
    margin-top: auto;
}

.pd-price-card__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pd-status-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pd-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pd-status-dot--green  { background: #33b36b; }
.pd-status-dot--orange { background: #cd8d01; }
.pd-status-dot--red    { background: #e81212; }

/* ============================================================
   HELP BOX  (#EFD2EF, padding 40×30, radius 20)
   ============================================================ */

.pd-help-box {
    background: #EFD2EF;
    border-radius: 20px;
    padding: 40px 30px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
}

.pd-help-box__title {
    margin-bottom: 13px;
    color: #1a1a1a;
}

.pd-help-box__text {
    margin: 0;
    color: #3a3a3a;
}

.pd-help-box__btn {
    margin-top: auto;
}

/* ============================================================
   DESCRIPTION SECTION
   ============================================================ */

.pd-description-section {
    padding: 152px 0 64px;
}

.pd-description-section__title {
    margin-bottom: 52px;
    color: #1a1a1a;
}

.pd-description-section__content {
    font-size: 16px;
    line-height: 1.75;
    color: #333;
}

/* ============================================================
   SPECIFICATIONS SECTION
   ============================================================ */

.pd-specs-section {
    padding: 80px 0 80px;
}

.pd-specs__title {
    margin-bottom: 52px;
    color: #1a1a1a;
}

/* Accordion group */
.pd-specs-group {
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.pd-specs-group__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #1a1a1a;
}

.pd-specs-icon {
    font-size: 22px;
    font-weight: 300;
    color: #555;
    flex-shrink: 0;
    margin-left: 16px;
    line-height: 1;
}

/* Show — or + based on aria-expanded */
.pd-specs-group__toggle[aria-expanded="true"]  .pd-specs-icon--closed { display: none; }
.pd-specs-group__toggle[aria-expanded="false"] .pd-specs-icon--open   { display: none; }

/* Spec rows */
.pd-specs-rows {
    padding-bottom: 0;
}

.pd-specs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.4);
}

/* No line between toggle header and first row */
.pd-specs-rows .pd-specs-row:first-child {
    border-top: none;
}

/* No line after the last group */
.pd-specs-group:last-child {
    border-bottom: none;
}

.pd-specs-row span {
    margin: 0;
    line-height: 1.3;
}

.pd-specs-row .h6 {
    color: #1a1a1a;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.pd-specs-row .p {
    margin: 0;
    text-align: right;
    font-size: 16px;
}

/* FAQ card */
.pd-faq-card {
    background: #822E81;
    border-radius: 20px;
    padding: 40px 30px;
    margin-top: 118px;
}

.pd-faq-card__title {
    color: #fff;
    margin-bottom: 20px;
}

.pd-faq-body {
    color: rgba(255, 255, 255, 0.85);
}

.pd-faq-item {
    margin-bottom: 16px;
}

.pd-faq-item:last-child {
    margin-bottom: 0;
}

.pd-faq-question {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.pd-faq-answer {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin: 0;
    padding-left: 14px;
}

/* ============================================================
   STICKY GALLERY  (desktop only)
   ============================================================ */

@media (min-width: 992px) {
    /* Gallery inner div becomes sticky within its column */
    .pd-gallery {
        position: sticky !important;
        top: var(--pd-sticky-top, 80px);
    }

    /* Info column takes only its natural height so it doesn't
       force the row to grow beyond the JS-set gallery-col min-height */
    .pd-info-col {
        align-self: flex-start;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* 1400px+ — full 130px gap */
@media (max-width: 1399px) {
    .pd-info-col {
        padding-left: 80px;
    }
}

@media (max-width: 1199px) {
    .pd-info-col {
        padding-left: 48px;
    }

    .pd-specs-grid {
        column-gap: 48px;
    }
}

/* md–lg: columns stack (col-lg-6), info needs top gap + left indent */
@media (max-width: 991px) {
    .pd-info-col {
        padding-left: 40px;
        padding-top: 60px !important;
    }

    .pd-specs-grid {
        column-gap: 32px;
    }
}

@media (max-width: 767px) {
    .pd-info-col {
        padding-left: 0;
        padding-top: 32px;
    }

    .pd-gallery {
        max-width: 100%;
    }

    .pd-price-cards {
        flex-direction: column;
    }

    .pd-help-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 24px;
        gap: 16px;
    }

    .pd-specs-grid {
        column-gap: 24px;
    }
}

@media (max-width: 575px) {
    .pd-gallery__thumb {
        width: 72px;
        height: 72px;
    }

    .pd-specs-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
}

/* ============================================================
   RELATED PRODUCTS SECTION
   ============================================================ */

.rp-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.rp-inner {
    max-width: 967px; /* 3 × 309px + 2 × 20px gap */
    margin: 0 auto;
    width: 100%;
}

.rp-cards-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.rp-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    width: 309px;
    min-height: 453px;
    display: flex;
    flex-direction: column;
    padding: 24px 20px 20px;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .rp-section {
        padding: 60px 0;
        text-align: center;
    }

    .rp-cards-wrapper {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .rp-section {
        padding: 48px 0;
    }

    .rp-card {
        width: 100%;
        max-width: 340px;
        min-height: auto;
    }

    .rp-cards-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}
