/*
 * PDP — Request a Quote field UI (Gemstone / Diamond Type / Diamond Color /
 * Diamond Clarity / Gold Purity / Gold Color / Ring Size) + Quote modal.
 *
 * Scope: only the single-product "options" area and the Request a Quote
 * modal. Ported/adapted from templates/product-detail-dummy.php.
 * Namespaced with the `pdp-` prefix (distinct from the site's existing
 * `pd-` prefixed product page classes) so nothing here overrides them.
 *
 * Enqueued only on single product pages — see inc/enqueue-script.php.
 */

/* ---------- Details column typography & actions (Pixel-perfect match to dummy) ---------- */

.pdp-details-col {
    margin-bottom: 24px;
}

.pdp-details h1,
.pdp-details .pd-title {
    font-family: "Cormorant", serif !important;
    font-weight: 600 !important;
    font-size: 1.4rem !important;
    color: #7d1d1d !important;
    line-height: normal !important;
    margin: 0 !important;
    letter-spacing: 0.2px !important;
}

.pdp-details-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.pdp-details-top .pd-title {
    flex: 1;
}

.pdp-details-top .pd-action-wrap {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pdp-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    font-size: 12px;
    color: #6b6b6b;
    cursor: pointer;
    white-space: nowrap;
    padding: 2px 0;
    transition: color 0.15s ease;
}

.pdp-share-btn:hover {
    color: #7d1d1d;
}

.pdp-details-top .custom-wishlist-btn {
    display: inline-flex;
    align-items: center;
}

.pdp-details-top .custom-wishlist-btn .yith-wcwl-add-to-wishlist {
    margin: 0;
}

.pdp-details-top .custom-wishlist-btn a {
    display: inline-flex;
    align-items: center;
    color: #6b6b6b;
    font-size: 14px;
    transition: color 0.15s ease;
    text-decoration: none;
}

.pdp-details-top .custom-wishlist-btn a:hover {
    color: #7d1d1d;
}

.pdp-subtitle {
    font-size: 12.5px;
    color: #6b6b6b;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ---------- Field groups ---------- */

.pdp-field-group {
    margin-bottom: 16px;
}

.pdp-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.pdp-field-label-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #6b6b6b;
}

.pdp-field-link {
    background: none;
    border: none;
    font-size: 11px;
    color: #7d1d1d;
    text-decoration: underline;
    cursor: pointer;
}

/* ---------- Dropdown-style field (Gemstone, Ring Size) ---------- */

.pdp-dropdown {
    position: relative;
}

.pdp-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgb(216 216 218);
    border-radius: 6px;
    background: #fff;
    padding: 10px 12px;
    font-size: 13px;
    color: #1a1a1a;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease;
}

.pdp-dropdown-btn:hover {
    border-color: #b0b0b0;
}

.pdp-dropdown-swatch {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    flex: 0 0 auto;
    background: #1f6d4a;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.pdp-dropdown-swatch-sm {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    flex: 0 0 auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.pdp-dropdown-value {
    flex: 1;
    font-weight: 500;
}

.pdp-dropdown-value.pdp-dropdown-placeholder {
    font-weight: 400;
    color: #999;
}

.pdp-dropdown-caret {
    font-size: 10px;
    color: #8a8a8a;
    transition: transform 0.2s ease;
}

.pdp-dropdown-open .pdp-dropdown-caret {
    transform: rotate(180deg);
}

.pdp-dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgb(216 216 218);
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    z-index: 20;
    max-height: 220px;
    overflow-y: auto;
    display: none;
}

.pdp-dropdown-panel-open {
    display: block;
}

.pdp-dropdown-item {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 9px 12px;
    font-size: 12.5px;
    color: #6b6b6b;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.pdp-dropdown-item:hover {
    background: #faf6f0;
}

.pdp-dropdown-item-active,
.pdp-dropdown-item.pdp-dropdown-item-active {
    background: #efe3da !important;
    font-weight: 600 !important;
    color: #7d1d1d !important;
}

/* ---------- Pill row (Diamond Type, Diamond Color, Diamond Clarity, Gold Purity, Gold Color) ---------- */

.pdp-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pdp-pill {
    flex: 1 1 0;
    min-width: 74px;
    text-align: center;
    border: 1px solid rgb(216 216 218);
    background: #fff;
    border-radius: 6px;
    padding: 9px 8px;
    font-size: 12px;
    color: #6b6b6b;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pdp-pill:hover {
    border-color: #b0b0b0;
}

.pdp-pill-active,
.pdp-pill.pdp-pill-active {
    border-color: #7d1d1d !important;
    background: #fbf1e2 !important;
    color: #7d1d1d !important;
    font-weight: 600 !important;
}

/* Gold colour pills — with swatch dot matching dummy */
.pdp-pill-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pdp-pill-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 auto;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.pdp-pill-dot-yellow {
    background: linear-gradient(145deg, #f7dfa5, #c9a227) !important;
}

.pdp-pill-dot-white {
    background: linear-gradient(145deg, #f4f4f4, #c9c9c9) !important;
}

.pdp-pill-dot-rose {
    background: linear-gradient(145deg, #f3c9c2, #cf8f83) !important;
}

/* ---------- Inline "Custom" input (appears under a field when Custom is picked) ---------- */

.pdp-custom-inline {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.pdp-custom-inline-input {
    flex: 1;
    border: 1px solid rgb(216 216 218);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12.5px;
    color: #1a1a1a;
    font-family: inherit;
    transition: border-color 0.15s ease;
}

.pdp-custom-inline-input:focus {
    border-color: #7d1d1d;
    outline: none;
    box-shadow: 0 0 0 2px rgba(125, 29, 29, 0.1);
}

.pdp-custom-inline-confirm {
    flex: 0 0 auto;
    border: 1px solid #7d1d1d;
    background: #7d1d1d;
    color: #fff;
    border-radius: 6px;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.pdp-custom-inline-confirm:hover {
    background: #631717;
}

.pdp-custom-inline-note {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #8a8a8a;
}

.pdp-custom-inline-input-error {
    border-color: #7d1d1d;
}

.pdp-custom-inline-input-error::placeholder {
    color: #7d1d1d;
}

.pdp-custom-inline-confirmed {
    align-items: center;
    background: #fbf1e2;
    border: 1px solid #7d1d1d;
    border-radius: 6px;
    padding: 8px 10px;
}

.pdp-custom-inline-confirmed-text {
    flex: 1;
    font-size: 12.5px;
    color: #7d1d1d;
    font-weight: 600;
    word-break: break-word;
}

.pdp-custom-inline-edit {
    flex: 0 0 auto;
    border: none;
    background: none;
    color: #7d1d1d;
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

/* ---------- Price note ---------- */

.pdp-price-note {
    font-size: 11.5px;
    color: #7d1d1d;
    margin: 2px 0 0;
    font-weight: 500;
}

/* ---------- CTA ---------- */

.pdp-cta-row {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.pdp-btn {
    flex: 1;
    border: none;
    border-radius: 4px;
    padding: 11px 10px;
    cursor: pointer;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.3;
}

.pdp-btn-dark {
    background: #1a1a1a;
    color: #fff;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.pdp-btn-dark:hover {
    background: #000;
}

.pdp-btn-dark strong {
    display: block;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.pdp-btn-dark span {
    display: block;
    font-size: 10.5px;
    color: #d8d8d8;
}

.pdp-btn-outline {
    background: #fff;
    border: 1px solid rgb(216 216 218);
    color: #1a1a1a;
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.pdp-btn-outline:hover {
    border-color: #1a1a1a;
}

.pdp-btn-outline strong {
    display: block;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.pdp-btn-outline span {
    display: block;
    font-size: 10.5px;
    color: #8a8a8a;
}

.pdp-customize-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: #fff;
    border: 1px solid #7d1d1d;
    color: #7d1d1d;
    border-radius: 4px;
    padding: 11px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdp-customize-btn strong {
    display: block;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.pdp-customize-btn span {
    display: block;
    font-size: 10.5px;
    color: #8a8a8a;
    margin-top: 2px;
}

.pdp-customize-btn:hover {
    background: #fbf1e2;
    border-color: #631717;
}


/* ---------- Modal shell (Request a Quote) ---------- */

.pdp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    /* Matches the z-index used by the site's other overlays
       (#quotePopupOverlay / #sideCartQuoteOverlay in style.css). */
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

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

.pdp-modal-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    max-width: 480px;
    background: #fff;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.pdp-modal-overlay-open .pdp-modal-panel {
    transform: translateX(0);
}

.pdp-modal-close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.pdp-modal-header {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #f5f5f5;
    border-bottom: 1px solid rgb(231 231 233);
    padding: 20px;
    text-align: center;
}

.pdp-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.pdp-modal-eyebrow {
    display: block;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #7d1d1d;
    font-weight: 600;
    margin-bottom: 4px;
}

.pdp-modal-body {
    padding: 24px 20px 40px;
}

@media (max-width: 767px) {
    .pdp-modal-panel {
        max-width: 100%;
    }

    .pdp-cta-row {
        flex-direction: column;
    }
}

/* ---------- Selected-options summary (rendered above the CF7 fields) ---------- */

.pdp-quote-summary {
    max-width: 480px;
    margin: 0 auto 20px;
    border: 1px solid rgb(231 231 233);
    border-radius: 8px;
    padding: 14px 16px;
    background: #faf9f8;
}

.pdp-quote-summary-empty {
    font-size: 12px;
    color: #8a8a8a;
    margin: 0;
}

.pdp-quote-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.5px;
    color: #333;
    padding: 4px 0;
}

.pdp-quote-summary-row + .pdp-quote-summary-row {
    border-top: 1px solid rgb(238 238 238);
}

.pdp-quote-summary-row dt {
    font-weight: 600;
    color: #6b6b6b;
}

.pdp-quote-summary-row dd {
    margin: 0;
    text-align: right;
}

/* ---------- Contact Form 7 field styling to match the modal ---------- */

.pdp-modal-body .wpcf7-form p {
    max-width: 480px;
    margin: 0 auto 12px;
}

.pdp-modal-body .wpcf7-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b6b6b;
    margin-bottom: 6px;
}

.pdp-modal-body .wpcf7-form input[type="text"],
.pdp-modal-body .wpcf7-form input[type="email"],
.pdp-modal-body .wpcf7-form input[type="tel"],
.pdp-modal-body .wpcf7-form textarea {
    width: 100%;
    border: 1px solid rgb(216 216 218);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: #1a1a1a;
    font-family: inherit;
    background: #fff;
}

.pdp-modal-body .wpcf7-form textarea {
    resize: vertical;
    min-height: 80px;
}

.pdp-modal-body .wpcf7-form input[type="submit"] {
    width: 100%;
    max-width: 480px;
    display: block;
    margin: 8px auto 0;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.pdp-modal-body .wpcf7-form input[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pdp-modal-body .wpcf7-response-output {
    max-width: 480px;
    margin: 12px auto 0;
    font-size: 12.5px;
}

.pdp-modal-body .wpcf7-not-valid-tip {
    font-size: 11px;
    color: #7d1d1d;
    margin-top: 4px;
}

/* ===============================================================
 * CUSTOMIZE THIS DESIGN — CTA Button & Luxury Dark Modal Styling
 * ============================================================= */

.pdp-customize-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: #fff;
    border: 1px solid #7d1d1d;
    color: #7d1d1d;
    border-radius: 4px;
    padding: 11px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pdp-customize-btn:hover {
    background: #fdf8f8;
    border-color: #5c1414;
    color: #5c1414;
}

.pdp-customize-btn strong {
    display: block;
    font-size: 13px;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.pdp-customize-btn span {
    display: block;
    font-size: 10.5px;
    color: #8a8a8a;
    margin-top: 2px;
}

/* ---------- Custom Design Modal & Form (Clean Light Theme matching Site Design) ---------- */

.pdp-modal-panel--customize {
    background: #fff;
    max-width: 480px;
}

.pdp-modal-panel--customize .pdp-modal-header {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #f5f5f5;
    border-bottom: 1px solid rgb(231 231 233);
    padding: 20px;
    text-align: center;
}

.pdp-modal-panel--customize .pdp-modal-body {
    padding: 24px 20px 40px;
    background: #fff;
    color: #1a1a1a;
}

.cd-modal-subtitle {
    font-size: 12.5px;
    font-style: italic;
    color: #6b6b6b;
    margin: 0 0 16px;
    line-height: 1.4;
    text-align: center;
}

.cd-product-badge {
    max-width: 100%;
    margin-bottom: 16px;
    background: #faf9f8;
    border: 1px solid rgb(231 231 233);
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #1a1a1a;
}

.cd-product-sku-badge {
    font-size: 12px;
    color: #7d1d1d;
    font-weight: 600;
}

.cd-selection-block {
    margin-bottom: 16px;
}

.cd-selection-box {
    background: #faf9f8;
    border: 1px solid rgb(231 231 233);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 12.5px;
    color: #333;
    line-height: 1.5;
    font-weight: 500;
}

.pdp-form-group {
    margin-bottom: 14px;
    text-align: left;
    max-width: 100%;
}

.pdp-form-label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #6b6b6b;
    margin-bottom: 6px;
}

.pdp-form-input,
.pdp-form-textarea,
.pdp-form-file {
    width: 100%;
    border: 1px solid rgb(216 216 218);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: #1a1a1a;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s ease;
}

.pdp-form-input:focus,
.pdp-form-textarea:focus {
    border-color: #7d1d1d;
    outline: none;
}

.pdp-form-textarea {
    resize: vertical;
    min-height: 80px;
}

.cd-field-desc {
    font-size: 11.5px;
    font-style: italic;
    color: #8a8a8a;
    margin: -2px 0 6px;
}

.cd-example-note {
    font-size: 11px;
    font-style: italic;
    color: #8a8a8a;
    margin-top: 5px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Checkboxes (What would you like to customize?) */
.cd-checkbox-group .wpcf7-checkbox {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
    background: #faf9f8;
    border: 1px solid rgb(231 231 233);
    border-radius: 6px;
    padding: 12px 14px;
}

.cd-checkbox-group .wpcf7-list-item {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #333;
    cursor: pointer;
}

.cd-checkbox-group input[type="checkbox"] {
    accent-color: #7d1d1d;
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
}

/* Quantity Required Radio Pills */
.cd-qty-wrap {
    margin-top: 4px;
}

.cd-qty-pills .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cd-qty-pills .wpcf7-list-item {
    margin: 0;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgb(216 216 218);
    border-radius: 6px;
    padding: 6px 14px;
    background: #fff;
    font-size: 12px;
    color: #6b6b6b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cd-qty-pills .wpcf7-list-item:hover {
    border-color: #b0b0b0;
}

.cd-qty-pills .wpcf7-list-item:has(input:checked) {
    background: #fbf1e2;
    border-color: #7d1d1d;
    color: #7d1d1d;
    font-weight: 600;
}

.cd-qty-pills .wpcf7-list-item input[type="radio"] {
    margin-right: 6px;
    accent-color: #7d1d1d;
}

.cd-qty-other-box input {
    max-width: 200px;
    font-size: 13px;
    border: 1px solid rgb(216 216 218);
    border-radius: 6px;
    padding: 7px 12px;
    background: #fff;
    color: #1a1a1a;
}

.cd-qty-other-box input:focus {
    border-color: #7d1d1d;
    outline: none;
}

/* Upload Box */
.cd-upload-box {
    background: #faf9f8;
    border: 1px dashed rgb(216 216 218);
    border-radius: 6px;
    padding: 12px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cd-upload-box:hover {
    border-color: #7d1d1d;
    background: #fff;
}

.cd-upload-box input[type="file"] {
    display: none;
}

.cd-upload-trigger {
    cursor: pointer;
    display: inline-block;
}

.cd-upload-btn-text {
    font-size: 12.5px;
    font-weight: 600;
    color: #7d1d1d;
    letter-spacing: 0.3px;
}

.cd-file-name-badge {
    color: #2e7d32;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
}

/* Submit Button */
.pdp-form-submit {
    width: 100%;
    max-width: 480px;
    display: block;
    margin: 16px auto 0;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-transform: uppercase;
}

.pdp-form-submit:hover {
    background: #7d1d1d;
    color: #fff;
}

.cd-footer-note {
    font-size: 11.5px;
    font-style: italic;
    color: #8a8a8a;
    margin-top: 8px;
    text-align: center;
    line-height: 1.4;
}

/* ===============================================================
 * PRODUCT GALLERY (Matching Dummy Template) & IMAGE LIGHTBOX
 * ============================================================= */

/* ---------- Image Lightbox ---------- */
.pdp-lightbox-img {
    cursor: zoom-in;
}

.pdp-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.pdp-lightbox-overlay-open {
    opacity: 1;
    visibility: visible;
}

.pdp-lightbox-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.pdp-lightbox-img-el {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
}

.pdp-lightbox-close,
.pdp-lightbox-prev,
.pdp-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s ease, transform 0.15s ease;
    z-index: 10;
}

.pdp-lightbox-close:hover,
.pdp-lightbox-prev:hover,
.pdp-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.pdp-lightbox-close {
    top: 20px;
    right: 20px;
}

.pdp-lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.pdp-lightbox-prev:hover {
    transform: translateY(-50%) scale(1.05);
}

.pdp-lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.pdp-lightbox-next:hover {
    transform: translateY(-50%) scale(1.05);
}

.pdp-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #e0e0e0;
    font-size: 13px;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 12px;
    border-radius: 999px;
}

@media (max-width: 767px) {
    .pdp-lightbox-prev,
    .pdp-lightbox-next {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
}

/* ---------- 2-Column Product Gallery (Desktop / Tablet) ---------- */
.pdp-gallery-col {
    margin-bottom: 24px;
}

.pdp-gallery-grid {
    --bs-gutter-x: 8px !important;
    --bs-gutter-y: 8px !important;
    margin: 0 !important;
}

.pdp-gallery-grid .row {
    --bs-gutter-x: 8px !important;
    --bs-gutter-y: 8px !important;
    margin-left: -4px !important;
    margin-right: -4px !important;
}

.pdp-gallery-grid .col-6 {
    padding-left: 4px !important;
    padding-right: 4px !important;
    margin-bottom: 8px !important;
}

.pdp-gallery-cell {
    position: relative;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin-bottom: 0;
}

.pdp-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.pdp-gallery-cell:hover .pdp-gallery-img {
    transform: scale(1.02);
}

.pdp-gallery-cell-video {
    background: #000;
    cursor: pointer;
}

.pdp-gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pdp-gallery-caption {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    text-align: center;
    font-size: 11px;
    color: #4a4a4a;
    letter-spacing: 0.2px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
    pointer-events: none;
}

/* Scrollable container for desktop gallery when more than 4 images */
.pdp-gallery-desktop {
    display: block;
}

.pdp-gallery-grid.pdp-gallery-desktop > .row {
    max-height: 860px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

.pdp-gallery-grid.pdp-gallery-desktop > .row::-webkit-scrollbar {
    width: 5px;
}

.pdp-gallery-grid.pdp-gallery-desktop > .row::-webkit-scrollbar-thumb {
    background: rgb(216 216 218);
    border-radius: 999px;
}

.pdp-gallery-grid.pdp-gallery-desktop > .row::-webkit-scrollbar-track {
    background: transparent;
}

/* ---------- Mobile Gallery Swiper ---------- */
.pdp-gallery-mobile {
    display: none;
}

@media (max-width: 767px) {
    .pdp-gallery-desktop {
        display: none;
    }
    .pdp-gallery-mobile {
        display: block;
    }
}

.pdp-gallery-swiper .pdp-gallery-cell,
.pdp-gallery-swiper .swiper-slide {
    aspect-ratio: 1 / 1;
}

.pdp-gallery-thumbs {
    margin-top: 10px;
}

.pdp-gallery-thumbs .swiper-slide {
    width: 68px;
    height: 68px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #fbfbfb;
}

.pdp-gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pdp-gallery-thumbs .swiper-slide-thumb-active {
    border-color: #7d1d1d !important;
}

.pdp-thumb-video {
    position: relative;
}

.pdp-video-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}

/* ---------- Spec grid (Product Specifications / Manufacturing & MOQ) — Pixel Perfect from Dummy ---------- */

.pdp-spec-section {
    padding: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    margin-top: 36px;
    margin-bottom: 40px;
    background: #fff;
}

.pdp-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.pdp-spec-block h2 {
    font-family: "Cormorant", serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #7d1d1d;
    text-transform: uppercase;
    margin: 0 0 4px;
    padding-bottom: 10px;
    border-bottom: 2px solid #7d1d1d;
    display: inline-block;
}

.pdp-spec-rows {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
    padding-left: 0;
}

.pdp-spec-row {
    display: flex;
    gap: 16px;
    font-size: 13px;
    line-height: 1.4;
}

.pdp-spec-row dt {
    flex: 0 0 42%;
    color: #6b6b6b;
    font-weight: 600;
    margin: 0;
}

.pdp-spec-row dd {
    flex: 1;
    margin: 0;
    color: #6b6b6b;
}

.pdp-spec-intro {
    font-size: 13px;
    color: #6b6b6b;
    line-height: 1.6;
    margin-top: 14px;
    margin-bottom: 6px;
}

.pdp-custom-cta {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgb(251 244 231);
    border-radius: 8px;
    padding: 15px 15px;
}

.pdp-custom-cta-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #7d1d1d;
}

.pdp-custom-cta-body h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.pdp-custom-cta-body p {
    font-size: 12px;
    color: #6b6b6b;
    margin: 0 0 10px;
}

.pdp-custom-cta-body a,
.pdp-custom-cta-body button.pdp-custom-cta-link {
    display: inline-block;
    border: 1px solid #7d1d1d;
    background: none;
    color: #7d1d1d;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdp-custom-cta-body button.pdp-custom-cta-link:hover {
    background: #7d1d1d;
    color: #fff;
}

@media (max-width: 767px) {
    .pdp-spec-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .pdp-custom-cta {
        flex-direction: column;
        text-align: center;
    }
}
