/* =========================================================
   PRODUCT DETAIL PAGE  (Divija Surgical)
   All classes use the "pd-" prefix so they never clash with
   your existing style.css. Uses your brand colours.
========================================================= */

.pd-section {
    padding: 60px 0 80px;
    background: #f7fbfc;
}

.pd-container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.pd-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 55px;
    align-items: start;
}


/* =========================================================
   LEFT : GALLERY
========================================================= */

.pd-gallery {
    position: sticky;
    top: 110px;
}

/* main image box */
.pd-zoom {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce7ee;
    border-radius: 8px;
    cursor: zoom-in;
}

.pd-zoom img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    display: block;
    transform-origin: 50% 50%;
    transition: transform .25s ease;
    user-select: none;
}

/* zoom is applied by JS (hover, desktop only) */
.pd-zoom.is-zooming img {
    transform: scale(2.2);
    transition: transform .1s ease-out;
}

.pd-zoom-hint {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    background: rgba(16, 42, 67, .82);
    color: #fff;
    font-size: 11px;
    border-radius: 20px;
    pointer-events: none;
    transition: opacity .25s ease;
}

.pd-zoom.is-zooming .pd-zoom-hint {
    opacity: 0;
}

/* thumbnails */
.pd-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.pd-thumb {
    aspect-ratio: 1 / 1;
    padding: 6px;
    background: #fff;
    border: 1px solid #dce7ee;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color .2s ease;
}

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

.pd-thumb:hover,
.pd-thumb.active {
    border-color: #1E6FA8;
}

.pd-thumb.active {
    box-shadow: 0 0 0 1px #1E6FA8;
}


/* =========================================================
   RIGHT : PRODUCT INFO
========================================================= */

.pd-info {
    min-width: 0;
}

.pd-category {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #1E6FA8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
}

.pd-category::before {
    content: "";
    width: 28px;
    height: 2px;
    background: #D9A441;
}

.pd-title {
    margin: 0 0 14px;
    color: #102A43;
    font-family: "Poppins", sans-serif;
    font-size: clamp(26px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.2;
}

.pd-short {
    margin: 0 0 24px;
    color: #5B6F7D;
    font-size: 15px;
    line-height: 1.8;
}


/* ---------- OVERVIEW TABLE ---------- */

.pd-overview {
    margin-bottom: 26px;
    border: 1px solid #dce7ee;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.pd-overview h2 {
    margin: 0;
    padding: 13px 20px;
    background: #EAF2F7;
    color: #123B5D;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid #dce7ee;
}

.pd-overview dl {
    margin: 0;
}

.pd-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 15px;
    padding: 11px 20px;
    border-bottom: 1px solid #edf2f5;
    font-size: 13px;
    line-height: 1.6;
}

.pd-row:last-child {
    border-bottom: 0;
}

.pd-row dt {
    color: #102A43;
    font-weight: 600;
}

.pd-row dd {
    margin: 0;
    color: #5B6F7D;
}


/* ---------- ENQUIRY ---------- */

.pd-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 28px;
    border: 1px solid #123B5D;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.pd-btn--primary {
    background: #123B5D;
    color: #fff;
}

.pd-btn--primary:hover {
    background: #1E6FA8;
    border-color: #1E6FA8;
    transform: translateY(-2px);
}

.pd-btn--outline {
    background: transparent;
    color: #123B5D;
}

.pd-btn--outline:hover {
    background: #123B5D;
    color: #fff;
}

.pd-btn:focus-visible,
.pd-tab:focus-visible {
    outline: 2px solid #1E6FA8;
    outline-offset: 3px;
}


/* ---------- TRUST STRIP ---------- */

.pd-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    padding-top: 22px;
    border-top: 1px solid #dce7ee;
    list-style: none;
    margin: 0;
}

.pd-trust li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #5B6F7D;
    font-size: 12.5px;
}

.pd-trust i {
    color: #1E6FA8;
    font-size: 15px;
}


/* =========================================================
   DESCRIPTION (full width, below)
========================================================= */

.pd-description {
    margin-top: 55px;
    padding: 34px 38px 38px;
    background: #fff;
    border: 1px solid #dce7ee;
    border-radius: 8px;
}

.pd-tabs {
    display: flex;
    gap: 28px;
    margin-bottom: 26px;
    border-bottom: 1px solid #dce7ee;
}

.pd-tab {
    position: relative;
    padding: 0 0 14px;
    border: 0;
    background: transparent;
    color: #5B6F7D;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.pd-tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: #D9A441;
    transform: scaleX(0);
    transition: transform .25s ease;
}

.pd-tab:hover,
.pd-tab.active {
    color: #123B5D;
}

.pd-tab.active::after {
    transform: scaleX(1);
}

.pd-panel {
    display: none;
    /* max-width: 880px; */
    color: #5B6F7D;
    font-size: 14.5px;
    line-height: 1.9;
}

.pd-panel.active {
    display: block;
}

.pd-panel h3 {
    margin: 0 0 12px;
    color: #102A43;
    font-size: 18px;
}

.pd-panel p {
    margin: 0 0 16px;
}

.pd-panel ul {
    margin: 0 0 16px;
    padding-left: 20px;
}

.pd-panel li {
    margin-bottom: 6px;
}


/* =========================================================
   ENQUIRY MODAL
========================================================= */

.pd-modal {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 41, 66, .6);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.pd-modal.open {
    opacity: 1;
    visibility: visible;
}

.pd-modal-box {
    position: relative;
    width: min(480px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    padding: 32px 30px 30px;
    background: #fff;
    border-top: 4px solid #1E6FA8;
    border-radius: 8px;
    transform: translateY(14px);
    transition: transform .25s ease;
}

.pd-modal.open .pd-modal-box {
    transform: translateY(0);
}

.pd-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #5B6F7D;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.pd-modal-close:hover {
    color: #123B5D;
}

.pd-modal h2 {
    margin: 0 0 4px;
    color: #102A43;
    font-size: 21px;
}

.pd-modal-product {
    margin: 0 0 20px;
    color: #1E6FA8;
    font-size: 13px;
    font-weight: 600;
}

.pd-field {
    margin-bottom: 14px;
}

.pd-field label {
    display: block;
    margin-bottom: 5px;
    color: #102A43;
    font-size: 12.5px;
    font-weight: 600;
}

.pd-field input,
.pd-field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #cdd9e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 13.5px;
    color: #102A43;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.pd-field textarea {
    min-height: 90px;
    resize: vertical;
}

.pd-field input:focus,
.pd-field textarea:focus {
    outline: none;
    border-color: #1E6FA8;
    box-shadow: 0 0 0 3px rgba(30, 111, 168, .15);
}

.pd-modal .pd-btn {
    width: 100%;
    margin-top: 6px;
}


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

@media (max-width: 991px) {

    .pd-section {
        padding: 40px 0 60px;
    }

    .pd-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pd-gallery {
        position: static;
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
    }

    .pd-description {
        padding: 26px 24px 30px;
    }
}

@media (max-width: 576px) {

    .pd-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .pd-actions .pd-btn {
        width: 100%;
    }

    .pd-tabs {
        gap: 20px;
        overflow-x: auto;
    }

    .pd-tab {
        white-space: nowrap;
    }

    .pd-zoom-hint {
        display: none;
    }
}

/* touch screens: no hover zoom */
@media (hover: none) {
    .pd-zoom { cursor: default; }
    .pd-zoom-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .pd-zoom img,
    .pd-btn,
    .pd-modal,
    .pd-modal-box {
        transition: none;
    }
}


.pd-video {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: #000;
}
.pd-zoom.show-video .pd-video { display: block; }
.pd-zoom.show-video #pdMainImg,
.pd-zoom.show-video .pd-zoom-hint { display: none; }

.pd-thumb { position: relative; }
.pd-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 18px;
  pointer-events: none;
}