/**
 * NivoSync - Single Diamond ELEGANT Theme
 *
 * Scoped styles for the single diamond page when template_single = 'elegant'.
 * Inspired by Queensmith's single diamond layout.
 * All selectors scoped under .ns-single-elegant to prevent global contamination.
 *
 * @package    NivoSync
 * @subpackage Assets/CSS/Themes
 * @since      2.1.0
 *
 * Loaded with: ns-tokens.css (variables, reset, utilities)
 * Contains: gallery, info panel, accordions, 4C's, scales, modal, lightbox, responsive
 *
 * Color Palette:
 * - Navy:      #313F4E
 * - Accent:    #000000
 * - Dark Navy: #181F26
 * - White:     #FFFFFF
 * - Border:    rgba(0,0,0,0.1)
 *
 * Typography:
 * - Serif: Georgia, 'Times New Roman', serif
 * - Sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif
 */

/* ============================================
   CSS VARIABLES
   ============================================ */

.ns-single-elegant {
    --nse-navy: #313F4E;
    --nse-gold: #000000;
    --nse-dark-navy: #181F26;
    --nse-navy-10: rgba(49, 63, 78, 0.1);
    --nse-navy-20: rgba(49, 63, 78, 0.2);
    --nse-dark-10: rgba(0, 0, 0, 0.1);
    --nse-dark-60: rgba(0, 0, 0, 0.6);
    --nse-white: #FFFFFF;
    --nse-bg-light: #f8f8f8;
    --nse-font-serif: Georgia, 'Times New Roman', serif;
    --nse-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.ns-single-diamond h1,
.ns-single-diamond h2,
.ns-single-diamond h3,
.ns-single-diamond h4,
.ns-single-diamond h5,
.ns-single-diamond h6 {
    text-decoration: inherit;
}

/* ============================================
   1. CONTAINER & LAYOUT
   ============================================ */

.ns-single-elegant {
    max-width: 1360px;
    margin: 0 auto;
    padding: 40px 0;
    font-family: var(--nse-font-sans);
    color: var(--nse-navy);
    line-height: 1.5;
}

/* Override Hello Theme .site-main max-width for single diamond (desktop).
   Defensive: with the fullwidth template .site-main shouldn't exist,
   but this protects shortcode embeds where the theme template IS used. */
@media (min-width: 1200px) {
    body .site-main:has(.ns-single-elegant) {
        max-width: 1360px;
    }
}

/* Main content: gallery + info panel side by side on desktop */
.ns-single-elegant .ns-elegant-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 840px) {
    .ns-single-elegant .ns-elegant-content {
        display: flex;
        flex-direction: row;
        gap: 0;
    }
}

/* ============================================
   2. MOBILE GALLERY
   ============================================ */

.ns-single-elegant .ns-elegant-mobile-gallery {
    position: relative;
    margin-bottom: 30px;
}

@media (min-width: 840px) {
    .ns-single-elegant .ns-elegant-mobile-gallery {
        display: none;
    }
}

/* Slider */
.ns-single-elegant .ns-elegant-mobile-gallery__slider {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ns-single-elegant .ns-elegant-mobile-gallery__slider::-webkit-scrollbar {
    display: none;
}

.ns-single-elegant .ns-elegant-mobile-gallery__slide {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nse-white);
    overflow: hidden;
}

.ns-single-elegant .ns-elegant-mobile-gallery__slide .ns-elegant-spinner-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ns-single-elegant .ns-elegant-mobile-gallery__slide .ns-elegant-spinner-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    color: #999;
    font-size: 14px;
}

/* SVG container in slides */
.ns-single-elegant .ns-elegant-svg-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.ns-single-elegant .ns-elegant-svg-container svg {
    max-width: 100%;
    max-height: 100%;
}

/* Prev/Next buttons */
.ns-single-elegant .ns-elegant-mobile-gallery__prev,
.ns-single-elegant .ns-elegant-mobile-gallery__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--nse-gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
    padding: 0;
}

.ns-single-elegant .ns-elegant-mobile-gallery__prev {
    left: 10px;
}

.ns-single-elegant .ns-elegant-mobile-gallery__next {
    right: 10px;
}

.ns-single-elegant .ns-elegant-mobile-gallery__prev:hover,
.ns-single-elegant .ns-elegant-mobile-gallery__next:hover {
    background: var(--nse-white);
}

.ns-single-elegant .ns-gallery-arrow {
    width: 12px;
    height: 12px;
}

/* Dots */
.ns-single-elegant .ns-elegant-mobile-gallery__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
}

.ns-single-elegant .ns-elegant-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--nse-dark-10);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease;
}

.ns-single-elegant .ns-elegant-dot.is-active {
    background: var(--nse-gold);
}

/* ============================================
   3. DESKTOP GALLERY
   ============================================ */

.ns-single-elegant .ns-elegant-desktop-gallery {
    display: none;
}

@media (min-width: 840px) {
    .ns-single-elegant .ns-elegant-desktop-gallery {
        display: block;
        flex: 0 0 66.666%;
        max-width: 66.666%;
        padding-right: 20px;
    }
}

/* 6-column grid: 2-col SVGs left, 4-col spinner right */
.ns-single-elegant .ns-elegant-desktop-gallery__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}

/* Measurement SVG: col 1-2, row 1 */
.ns-single-elegant .ns-elegant-desktop-gallery__cell--measurement {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

/* Proportions SVG: col 1-2, row 2 */
.ns-single-elegant .ns-elegant-desktop-gallery__cell--proportions {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
}

/* 360° Spinner: col 3-6, row 1-2 */
.ns-single-elegant .ns-elegant-desktop-gallery__cell--spinner {
    grid-column: 3 / 7;
    grid-row: 1 / 3;
}

/* Gallery cell styling */
.ns-single-elegant .ns-elegant-desktop-gallery__cell {
    background: var(--nse-white);
    border: 1px solid var(--nse-dark-10);
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}

.ns-single-elegant .ns-elegant-desktop-gallery__cell--spinner {
    aspect-ratio: auto;
}

.ns-single-elegant .ns-elegant-desktop-gallery__cell .ns-elegant-spinner-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ns-single-elegant .ns-elegant-desktop-gallery__cell .ns-elegant-spinner-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    color: #999;
    font-size: 14px;
}

/* 360° Canvas Viewer Container */
.ns-single-elegant .ns-360-viewer-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--ns-gray-100, #f3f4f6);
    border-radius: var(--ns-radius-md, 0.5rem);
    overflow: hidden;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.ns-single-elegant .ns-360-viewer-container:active {
    cursor: grabbing;
}

.ns-single-elegant .ns-360-viewer-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ns-single-elegant .ns-360-viewer-container .ns-360-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ns-gray-100, #f3f4f6);
}

/* 360 viewer inside gallery cells */
.ns-single-elegant .ns-elegant-desktop-gallery__cell .ns-360-viewer-container {
    aspect-ratio: auto;
    height: 100%;
    border-radius: 0;
}

/* 360 viewer inside mobile gallery slides */
.ns-single-elegant .ns-elegant-mobile-gallery__slide .ns-360-viewer-container {
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.ns-single-elegant .ns-gallery__360 .ns-360-viewer-container {
    aspect-ratio: auto;
    height: 100%;
    border-radius: 0;
}

/* SVGs inside gallery cells */
.ns-single-elegant .ns-elegant-desktop-gallery__cell .ns-elegant-svg-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.ns-single-elegant .ns-elegant-desktop-gallery__cell .ns-elegant-svg-container svg {
    max-width: 100%;
    max-height: 100%;
}

/* ============================================
   4. INFO PANEL
   ============================================ */

.ns-single-elegant .ns-elegant-info {
    padding: 0 20px;
}

@media (min-width: 840px) {
    .ns-single-elegant .ns-elegant-info {
        flex: 0 0 33.333%;
        max-width: 33.333%;
        padding: 0;
    }

    .ns-single-elegant .ns-elegant-info__inner {
        position: sticky;
        top: 120px;
    }
}

/* Title */
.ns-single-elegant .ns-elegant-title {
    font-family: var(--nse-font-serif);
    font-size: 24px;
    font-weight: 400;
    color: var(--nse-navy);
    margin: 0 0 5px;
    line-height: 1.3;
    letter-spacing: 0;
}

@media (min-width: 840px) {
    .ns-single-elegant .ns-elegant-title {
        font-size: 28px;
    }
}

/* Short Description */
.ns-single-elegant .ns-elegant-description {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--nse-dark-60);
    line-height: 1.6;
    margin: 0 0 15px;
}

/* Price Row */
.ns-single-elegant .ns-elegant-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

/* Price */
.ns-single-elegant .ns-elegant-price {
    font-family: var(--nse-font-serif);
    font-size: 24px;
    font-weight: 400;
    color: var(--nse-navy);
    margin-bottom: 0;
    line-height: 1;
}

@media (min-width: 840px) {
    .ns-single-elegant .ns-elegant-price {
        font-size: 28px;
    }
}

/* VAT Text (inline in price row) */
.ns-single-elegant .ns-elegant-vat-text {
    font-size: inherit;
    color: var(--nse-dark-60);
    line-height: 1;
}

/* Lab Certificate Badge */
.ns-single-elegant .ns-elegant-cert-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}

.ns-single-elegant .ns-elegant-cert-badge svg {
    height: 18px;
    width: auto;
    color: var(--nse-navy);
}

/* ============================================
   5. CTA BUTTONS
   ============================================ */

.ns-single-elegant .ns-elegant-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.ns-single-elegant .ns-elegant-btn {
    display: block;
    width: 100%;
    padding: 1.25rem 1.875rem !important;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--nse-font-sans);
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    letter-spacing: 0.02em;
    box-sizing: border-box;
}

.ns-single-elegant .ns-elegant-btn--full {
    width: 100%;
}

/* Solid green (Add to Ring) */
.ns-single-elegant .ns-elegant-btn--solid.ns-elegant-btn--green {
    background-color: #4a7c59;
    color: var(--nse-white);
    border: 1px solid #4a7c59;
}

.ns-single-elegant .ns-elegant-btn--solid.ns-elegant-btn--green:hover {
    background-color: #3d6a4b;
    border-color: #3d6a4b;
}

/* Bordered gold (Book Appointment) */
.ns-single-elegant .ns-elegant-btn--bordered.ns-elegant-btn--gold {
    background-color: var(--nse-gold);
    color: var(--nse-white);
    border: 1px solid var(--nse-gold);
}

.ns-single-elegant .ns-elegant-btn--bordered.ns-elegant-btn--gold:hover {
    background: transparent;
    color: var(--nse-gold);
    border: 1px solid var(--nse-gold);
}

/* ============================================
   6. ACCORDIONS
   ============================================ */

.ns-single-elegant .ns-elegant-accordions {
    border-top: 1px solid var(--nse-dark-10);
}

.ns-single-elegant .ns-elegant-accordion {
    border-bottom: 1px solid var(--nse-dark-10);
}

.ns-single-elegant .ns-elegant-accordion__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--nse-font-sans);
    font-size: 14px;
    font-weight: 400;
    color: var(--nse-navy);
    text-align: left;
    transition: color 0.2s ease;
}

.ns-single-elegant .ns-elegant-accordion__header:hover {
    color: var(--nse-dark-navy);
}

.ns-single-elegant .ns-elegant-accordion__title {
    flex: 1;
}

.ns-single-elegant .ns-elegant-accordion__title sup {
    font-size: 0.7em;
}

.ns-single-elegant .ns-elegant-accordion__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    color: var(--nse-gold);
    transition: transform 0.25s ease;
}

.ns-single-elegant .ns-elegant-accordion__icon .ns-accordion__chevron {
    width: 9px;
    height: 4px;
    fill: currentColor;
}

/* Open state: rotate chevron */
.ns-single-elegant .ns-elegant-accordion.is-open .ns-elegant-accordion__icon {
    transform: rotate(180deg);
}

/* Accordion body */
.ns-single-elegant .ns-elegant-accordion__body {
    display: none;
    padding: 5px 0 20px;
}

.ns-single-elegant .ns-elegant-accordion.is-open .ns-elegant-accordion__body {
    display: block;
}

/* Diamond Details rows */
.ns-single-elegant .ns-elegant-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ns-single-elegant .ns-elegant-details__row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--nse-navy);
    line-height: 1.4;
}

.ns-single-elegant .ns-elegant-details__label {
    font-weight: 500;
    margin-right: 2px;
}

/* Info icon */
.ns-single-elegant .ns-info-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--nse-navy);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: none; /* Hidden — will be re-enabled in a future update */
}

.ns-single-elegant .ns-info-icon:hover {
    opacity: 1;
}

/* Certificate link */
.ns-single-elegant .ns-elegant-cert-link {
    display: block;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.ns-single-elegant .ns-elegant-cert-link:hover {
    opacity: 0.85;
}

.ns-single-elegant .ns-elegant-cert-label {
    font-size: 13px;
    color: var(--nse-navy);
}

/* Certificate preview image */
.ns-single-elegant .ns-elegant-cert-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 4px;
    display: block;
    margin-top: 8px;
}

/* ============================================
   7. FOUR C'S SECTION
   ============================================ */

.ns-single-elegant .ns-elegant-fourcees {
    background: var(--nse-white);
    padding: 40px 0;
    margin-top: 40px;
}

.ns-single-elegant .ns-elegant-fourcees__container {
    max-width: 1200px;
    margin: 0 auto;
}

.ns-single-elegant .ns-elegant-fourcees__title {
    font-family: var(--nse-font-serif);
    font-size: 24px;
    font-weight: 400;
    color: var(--nse-navy);
    text-align: center;
    margin: 0 0 40px;
}

@media (min-width: 840px) {
    .ns-single-elegant .ns-elegant-fourcees__title {
        font-size: 32px;
        margin-bottom: 60px;
    }
}

/* Each C row */
.ns-single-elegant .ns-elegant-fourcees__row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 0;
}

.ns-single-elegant .ns-elegant-fourcees__row--border {
    border-bottom: 1px solid var(--nse-dark-10);
}

@media (min-width: 840px) {
    .ns-single-elegant .ns-elegant-fourcees__row {
        flex-direction: row;
        gap: 40px;
        padding: 40px 0;
    }
}

/* Text column */
.ns-single-elegant .ns-elegant-fourcees__text {
    flex: 1;
}

.ns-single-elegant .ns-elegant-fourcees__heading {
    font-family: var(--nse-font-serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--nse-navy);
    margin: 0 0 10px;
}

.ns-single-elegant .ns-elegant-fourcees__text p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--nse-dark-60);
    margin: 0;
}

.ns-single-elegant .ns-elegant-fourcees__desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--nse-dark-60);
}

.ns-single-elegant .ns-elegant-fourcees__desc p {
    margin: 0 0 0.5em;
}

.ns-single-elegant .ns-elegant-fourcees__desc p:last-child {
    margin-bottom: 0;
}

.ns-single-elegant .ns-elegant-fourcees__desc a {
    color: var(--nse-gold);
    text-decoration: underline;
}

/* Data column */
.ns-single-elegant .ns-elegant-fourcees__data {
    flex: 1;
    min-width: 0;
}

.ns-single-elegant .ns-elegant-fourcees__data-row {
    display: flex;
    gap: 30px;
}

.ns-single-elegant .ns-elegant-fourcees__label {
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--nse-dark-60);
    margin-bottom: 4px;
}

.ns-single-elegant .ns-elegant-fourcees__value-large {
    font-family: var(--nse-font-serif);
    font-size: 36px;
    font-weight: 400;
    color: var(--nse-navy);
    line-height: 1;
}

.ns-single-elegant .ns-elegant-fourcees__unit {
    font-size: 20px;
    color: var(--nse-dark-60);
}

.ns-single-elegant .ns-elegant-fourcees__value-medium {
    font-size: 16px;
    font-weight: 500;
    color: var(--nse-navy);
    margin-top: 4px;
}

/* Data columns (Cut section: Cut Grade | Polish | Symmetry) */
.ns-single-elegant .ns-elegant-fourcees__data-cols {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

@media (min-width: 840px) {
    .ns-single-elegant .ns-elegant-fourcees__data-cols {
        gap: 30px;
    }
}

/* ============================================
   8. COLOUR / CLARITY SCALE
   ============================================ */

.ns-single-elegant .ns-elegant-scale {
    position: relative;
    margin: 15px 0;
}

.ns-single-elegant .ns-elegant-scale__gradient {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right,
        #f5f5f5 0%,
        #e0e0e0 20%,
        #c0c0c0 40%,
        #a0a0a0 60%,
        #808080 80%,
        #606060 100%
    );
}

.ns-single-elegant .ns-elegant-scale__gradient--clarity {
    background: linear-gradient(to right,
        #ffffff 0%,
        #f0f0f0 20%,
        #d8d8d8 40%,
        #c0c0c0 60%,
        #a8a8a8 80%,
        #909090 100%
    );
}

.ns-single-elegant .ns-elegant-scale__marks {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

.ns-single-elegant .ns-elegant-scale__mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    cursor: default;
}

.ns-single-elegant .ns-elegant-scale__tick {
    width: 1px;
    height: 8px;
    background: var(--nse-dark-10);
}

.ns-single-elegant .ns-elegant-scale__label {
    font-size: 10px;
    color: var(--nse-dark-60);
    margin-top: 2px;
    text-align: center;
}

/* Active mark */
.ns-single-elegant .ns-elegant-scale__mark.is-active .ns-elegant-scale__tick {
    width: 2px;
    height: 14px;
    background: var(--nse-navy);
    margin-top: -3px;
}

.ns-single-elegant .ns-elegant-scale__mark.is-active .ns-elegant-scale__label {
    font-weight: 700;
    color: var(--nse-navy);
    font-size: 11px;
}

/* Info box under scale */
.ns-single-elegant .ns-elegant-fourcees__info-box {
    margin-top: 12px;
    padding: 12px 16px;
    background: #f5f3ef;
    border-radius: 3px;
}

.ns-single-elegant .ns-elegant-fourcees__info-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--nse-navy);
    margin-bottom: 2px;
}

.ns-single-elegant .ns-elegant-fourcees__info-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--nse-dark-60);
    margin: 4px 0 0;
}

/* ============================================
   9. RESPONSIVE
   ============================================ */

/* Mobile: < 640px */
@media (max-width: 639px) {
    .ns-single-elegant .ns-elegant-title {
        font-size: 22px;
    }

    .ns-single-elegant .ns-elegant-price {
        font-size: 22px;
    }

    .ns-single-elegant .ns-elegant-fourcees__title {
        font-size: 20px;
    }

    .ns-single-elegant .ns-elegant-fourcees__value-large {
        font-size: 28px;
    }

    .ns-single-elegant .ns-elegant-fourcees__data-cols {
        flex-direction: column;
        gap: 12px;
    }

    .ns-single-elegant .ns-elegant-scale__label {
        font-size: 8px;
    }

    .ns-single-elegant .ns-elegant-scale__mark.is-active .ns-elegant-scale__label {
        font-size: 9px;
    }
}

/* Tablet: 640px - 839px */
@media (min-width: 640px) and (max-width: 839px) {
    .ns-single-elegant .ns-elegant-fourcees {
        padding: 40px 30px;
    }

    .ns-single-elegant .ns-elegant-fourcees__row {
        flex-direction: row;
        gap: 30px;
    }
}

/* ============================================
   10. PRINT
   ============================================ */

@media print {
    .ns-single-elegant .ns-elegant-mobile-gallery,
    .ns-single-elegant .ns-elegant-mobile-gallery__prev,
    .ns-single-elegant .ns-elegant-mobile-gallery__next,
    .ns-single-elegant .ns-elegant-mobile-gallery__dots,
    .ns-single-elegant .ns-elegant-cta {
        display: none;
    }

    .ns-single-elegant .ns-elegant-desktop-gallery {
        display: block;
    }

    .ns-single-elegant .ns-elegant-accordion__body {
        display: block;
    }
}

/* ============================================
   11. INQUIRY MODAL FORM
   Modal base styles are in assets/css/ns-modal.css (shared dependency).
   Only form-specific styles below.
   ============================================ */

.ns-inquiry-diamond-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ns-inquiry-diamond-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
}

.ns-inquiry-diamond-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.875rem;
}

.ns-inquiry-diamond-price {
    font-weight: 600;
    color: var(--nse-dark-navy, #181F26);
}

.ns-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.ns-form-group {
    margin-bottom: 15px;
}

.ns-form-row .ns-form-group {
    margin-bottom: 0;
}

.ns-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.ns-form-group .required {
    color: #e53e3e;
}

.ns-form-group input[type="text"],
.ns-form-group input[type="email"],
.ns-form-group input[type="tel"],
.ns-form-group select,
.ns-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: inherit;
    box-sizing: border-box;
}

.ns-form-group textarea {
    resize: vertical;
}

.ns-form-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    cursor: pointer;
}

.ns-form-checkbox input[type="checkbox"] {
    width: auto;
}

.ns-form-actions {
    margin-top: 20px;
}

.ns-btn-inquiry-submit {
    width: 100%;
    padding: 12px 24px;
    background: var(--nse-navy, #313F4E);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.ns-btn-inquiry-submit:hover {
    background: var(--nse-dark-navy, #181F26);
}

/* body.ns-modal-open is in shared ns-modal.css */

@media (max-width: 639px) {
    .ns-form-row {
        grid-template-columns: 1fr;
    }

    .ns-modal__container {
        width: 95%;
        padding: 20px;
    }
}

/* ============================================
   12. SPECIFICATIONS TABLE (Full Detail Table)
   ============================================ */

.ns-single-elegant .ns-specs {
    margin-top: 50px;
    padding: 0 20px;
}

@media (min-width: 840px) {
    .ns-single-elegant .ns-specs {
        padding: 0;
    }
}

/* Main title */
.ns-single-elegant .ns-specs__title {
    font-family: var(--nse-font-serif);
    font-size: 24px;
    font-weight: 400;
    color: var(--nse-navy);
    margin: 0 0 30px;
    padding: 0;
    line-height: 1.3;
    letter-spacing: 0;
    border: none;
    text-align: left;
}

@media (min-width: 840px) {
    .ns-single-elegant .ns-specs__title {
        font-size: 28px;
        margin-bottom: 40px;
    }
}

/* Groups container */
.ns-single-elegant .ns-specs__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 840px) {
    .ns-single-elegant .ns-specs__container {
        grid-template-columns: 1fr 1fr;
        gap: 40px 60px;
    }
}

/* Each group */
.ns-single-elegant .ns-specs__group {
    padding: 0;
}

/* Group title */
.ns-single-elegant .ns-specs__group-title {
    font-family: var(--nse-font-sans);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--nse-dark-60);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--nse-dark-10);
    text-decoration: none;
}

/* Table */
.ns-single-elegant .ns-specs__table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

/* Rows */
.ns-single-elegant .ns-specs__row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ns-single-elegant .ns-specs__row:last-child {
    border-bottom: none;
}

/* Labels & Values */
.ns-single-elegant .ns-specs__label,
.ns-single-elegant .ns-specs__value {
    padding: 10px 0;
    font-size: 13px;
    line-height: 1.5;
    vertical-align: middle;
    text-align: left;
    background: transparent;
}

.ns-single-elegant .ns-specs__label {
    width: 45%;
    font-weight: 500;
    color: var(--nse-navy);
    padding-left: 16px;
    padding-right: 16px;
}

.ns-single-elegant .ns-specs__value {
    font-weight: 400;
    color: var(--nse-dark-60);
    padding-left: 16px;
}

/* Certificate link */
.ns-single-elegant .ns-specs__cert-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--nse-navy);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.ns-single-elegant .ns-specs__cert-link:hover {
    opacity: 0.7;
}

.ns-single-elegant .ns-specs__cert-link svg {
    opacity: 0.5;
}

/* --- Tabs Style --- */
.ns-single-elegant .ns-specs__tabs {
    border: none;
}

.ns-single-elegant .ns-specs__tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--nse-dark-10);
    margin-bottom: 20px;
}

.ns-single-elegant .ns-specs__tab-btn {
    padding: 10px 20px;
    font-family: var(--nse-font-sans);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--nse-dark-60);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    margin-bottom: -1px;
}

.ns-single-elegant .ns-specs__tab-btn:hover {
    color: var(--nse-navy);
}

.ns-single-elegant .ns-specs__tab-btn--active {
    color: var(--nse-navy);
    border-bottom-color: var(--nse-navy);
    font-weight: 600;
}

.ns-single-elegant .ns-specs__tab-panel {
    animation: nsFadeIn 0.25s ease;
}

@keyframes nsFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Accordion Style --- */
.ns-single-elegant .ns-specs__accordion {
    border: none;
}

.ns-single-elegant .ns-specs__accordion-item {
    border-bottom: 1px solid var(--nse-dark-10);
}

.ns-single-elegant .ns-specs__accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--nse-font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--nse-navy);
    text-align: left;
    transition: color 0.2s ease;
}

.ns-single-elegant .ns-specs__accordion-trigger:hover {
    color: var(--nse-dark-navy);
}

.ns-single-elegant .ns-specs__accordion-icon {
    display: flex;
    align-items: center;
    transition: transform 0.25s ease;
    color: var(--nse-dark-60);
}

.ns-single-elegant .ns-specs__accordion-item--open .ns-specs__accordion-icon {
    transform: rotate(180deg);
}

.ns-single-elegant .ns-specs__accordion-content {
    padding: 0 0 16px;
}

/* ============================================
   13. LIGHTBOX / ZOOM MODAL
   (Absorbed from ns-single.css)
   ============================================ */

.ns-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: var(--ns-z-modal, 500);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--ns-transition, 200ms ease);
}

.ns-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.ns-lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.ns-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.ns-lightbox-close {
    position: absolute;
    top: var(--ns-spacing-lg, 1.5rem);
    right: var(--ns-spacing-lg, 1.5rem);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--ns-radius-full, 9999px);
    color: #ffffff;
    cursor: pointer;
    transition: background var(--ns-transition, 200ms ease);
}

.ns-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ns-lightbox-close svg {
    width: 24px;
    height: 24px;
}

.ns-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--ns-radius-full, 9999px);
    color: #ffffff;
    cursor: pointer;
    transition: background var(--ns-transition, 200ms ease);
}

.ns-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ns-lightbox-prev {
    left: var(--ns-spacing-lg, 1.5rem);
}

.ns-lightbox-next {
    right: var(--ns-spacing-lg, 1.5rem);
}

.ns-lightbox-nav svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   13. STICKY ACTIONS (MOBILE)
   (Absorbed from ns-single.css)
   ============================================ */

@media (max-width: 768px) {
    .ns-sticky-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        gap: var(--ns-spacing-sm, 0.5rem);
        padding: var(--ns-spacing-md, 1rem);
        background: #ffffff;
        border-top: 1px solid var(--ns-gray-200, #e5e7eb);
        box-shadow: var(--ns-shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
        z-index: var(--ns-z-sticky, 200);
    }

    .ns-sticky-actions .ns-action-btn {
        flex: 1;
        padding: 0.875rem;
    }

    .ns-single-elegant {
        padding-bottom: 100px;
    }
}

/* ============================================
   14. SIMILAR DIAMONDS SECTION
   Cards with Elegant loop styling + expansion panel
   ============================================ */

.ns-single-elegant .ns-similar-diamonds {
    margin-top: 64px;
    padding-top: 0;
}

/* ── Header: centered title + divider ── */
.ns-similar-diamonds__header {
    text-align: center;
    margin-bottom: 36px;
}

.ns-similar-diamonds__title {
    font-family: var(--nse-font-serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--nse-navy);
    margin: 0 0 20px;
    letter-spacing: 0.02em;
}

/* 80 % width divider line under title */
.ns-similar-diamonds__header::after {
    content: '';
    display: block;
    width: 80%;
    height: 1px;
    background: rgba(0, 0, 0, 0.10);
    margin: 0 auto;
}

/* ── Grid (overrides for similar-diamonds context) ── */
.ns-similar-diamonds .ns-grid-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ns-gap-md, 20px);
}

/* ── Carousel nav buttons ── */
.ns-similar-diamonds__nav {
    display: inline-flex;
    gap: 8px;
    margin-top: 12px;
}

.ns-similar-diamonds__nav-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    color: var(--nse-navy);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ns-similar-diamonds__nav-btn:hover:not(:disabled) {
    background: var(--nse-navy);
    color: #fff;
    border-color: var(--nse-navy);
}

.ns-similar-diamonds__nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* ── Pagination dots ── */
.ns-similar-diamonds__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.ns-similar-diamonds__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}

.ns-similar-diamonds__dot--active {
    background: var(--nse-navy);
}

/* ── "View All" footer link ── */
.ns-similar-diamonds__footer {
    text-align: center;
    margin-top: 36px;
}

.ns-similar-diamonds__view-all {
    font-family: var(--nse-font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nse-navy);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
}

.ns-similar-diamonds__view-all:hover {
    opacity: 0.65;
}

.ns-similar-diamonds__view-all svg {
    flex-shrink: 0;
}

/* ── Expansion panel: full grid-width inside similar diamonds ── */
.ns-similar-diamonds .ns-expansion-panel {
    grid-column: 1 / -1;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .ns-similar-diamonds .ns-grid-items {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ns-similar-diamonds .ns-grid-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .ns-similar-diamonds__title {
        font-size: 24px;
    }

    .ns-single-elegant .ns-similar-diamonds {
        margin-top: 48px;
    }
}

@media (max-width: 480px) {
    .ns-similar-diamonds .ns-grid-items {
        grid-template-columns: 1fr;
    }
}
