@charset "UTF-8";

/**
 * Modern Product Details Page Styles (Apple-inspired clean UI)
 * 
 * Purpose: Fully responsive product details with gallery, zoom, variants, cart
 * Mobile-First: Base styles for 375px viewport
 * Breakpoints: sm(576px), md(768px), lg(1024px)
 * 
 * @version 2.1.0
 * @date 2026-02-20
 */

/* Accent for selected states (theme can override) */
.details-container.nx-pdp {
    --nx-accent: #f97316;
    --nx-accent-hover: #ea580c;
    --nx-accent-light: rgba(249, 115, 22, 0.12);
}

/* ============================================================
   PRODUCT PAGE LAYOUT - Mobile-First (375px base)
   ============================================================ */

.details-container.nx-pdp {
    padding: 0;
    background: #f8f9fa;
    overflow-x: hidden;
}

.nx-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.nx-pdp__inner {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Row: mobile = Title+Price → Gallery → Rest; desktop = Gallery | (Title+Price + Rest) */
.nx-pdp__row {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 0;
    align-items: stretch;
}

.nx-pdp__info-top,
.nx-pdp__gallery-col,
.nx-pdp__info-col {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Mobile: order 1 = Title+Price, 2 = Gallery, 3 = Variants & rest */
@media (max-width: 767.98px) {
    .nx-pdp__row {
        gap: 0;
    }
    .nx-pdp__info-top {
        order: 1;
        padding: 1.25rem 1rem 1rem;
        background: #fff;
    }
    .nx-pdp__gallery-col {
        order: 2;
    }
    .nx-pdp__info-col {
        order: 3;
    }
    /* Gap so info block never overlaps Photos & video strip */
    .nx-pdp__info-col .desc-outer.nx-pdp__info {
        border-radius: 16px 16px 0 0;
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }
}

/* Force grid children to fill cell (override Bootstrap col widths) */
.details-container.nx-pdp .nx-pdp__row .nx-pdp__gallery-col,
.details-container.nx-pdp .nx-pdp__row .nx-pdp__info-col,
.details-container.nx-pdp .nx-pdp__row .nx-pdp__info-top {
    max-width: none;
}

/* ============================================================
   GALLERY COLUMN - 100% responsive, no overlap, modern
   ============================================================ */

.nx-pdp__gallery-col {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.nx-pdp__gallery-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
}

/* Strip must not shrink so thumbnails stay visible on small screens */
.nx-pdp__gallery-wrap .nx-pdp__media-strip {
    flex-shrink: 0;
    min-height: 140px;
}

/* Main image: full width of column, 1:1 aspect */
.nx-pdp__gallery-wrap .zoom-wrapper.nx-pdp__gallery {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

.nx-pdp__gallery-wrap .nx-pdp__main-image-wrap,
.nx-pdp__gallery-wrap .nx-zoom-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Mobile: gallery 100% width, photos strip visible, swipe enabled */
@media (max-width: 767.98px) {
    .details-container.nx-pdp {
        overflow-x: visible;
    }

    .details-container.nx-pdp .nx-pdp__row .nx-pdp__gallery-col {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
        box-sizing: border-box;
        position: relative;
        z-index: 1;
    }

    .nx-pdp__gallery-wrap {
        width: 100%;
        margin: 0;
        padding-bottom: 0.5rem;
    }

    .nx-pdp__row {
        overflow: visible;
    }

    .nx-pdp__info-col {
        width: 100%;
        min-width: 0;
        flex-shrink: 0;
        position: relative;
        z-index: 0;
    }

    .nx-pdp__media-strip {
        width: 100%;
        box-sizing: border-box;
        flex-shrink: 0;
        min-height: 150px;
        padding-bottom: 1rem;
    }

    .nx-pdp__media-strip-track,
    #gallery.nx-pdp__media-strip-track {
        width: 100%;
        max-width: 100%;
        min-height: 100px;
        align-items: stretch;
    }
}

/* Small device only: #gallery strictly inside .nx-pdp__media-section, no overlap with info column */
@media (max-width: 767.98px) {
    .details-container.nx-pdp .nx-pdp__row .nx-pdp__gallery-col,
    .nx-pdp__gallery-col {
        overflow: hidden;
        min-width: 0;
    }

    .nx-pdp__gallery-col .zoom-wrapper {
        min-width: 0;
        overflow: hidden;
    }

    .nx-pdp__gallery-col .nx-pdp__media-section {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-top: 1rem;
        margin-bottom: 0;
        padding: 1rem 1rem 1.25rem;
        padding-bottom: 1.25rem;
        box-sizing: border-box;
        background: #fff;
        flex-shrink: 0;
        overflow-x: hidden;
        overflow-y: visible;
        position: relative;
    }

    .nx-pdp__gallery-col .nx-pdp__media-section .nx-pdp__media-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        padding: 0;
    }

    .nx-pdp__gallery-col .nx-pdp__media-section .nx-pdp__media-label,
    .nx-pdp__gallery-col .nx-pdp__media-section .nx-pdp__media-header p {
        font-size: 0.9375rem;
        font-weight: 600;
        color: #1d1d1f;
        margin: 0;
    }

    .nx-pdp__gallery-col .nx-pdp__media-section .nx-pdp__media-hint {
        font-size: 0.75rem;
        color: #86868b;
    }

    .nx-pdp__gallery-col .nx-pdp__media-section #gallery.nx-pdp__gallery-thumbs {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.625rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.25rem 0 0.75rem;
        margin: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 88px;
        max-height: 88px;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        box-sizing: border-box;
        position: relative;
    }

    .nx-pdp__gallery-col .nx-pdp__media-section #gallery.nx-pdp__gallery-thumbs .elevatezoom-gallery {
        flex: 0 0 auto;
        scroll-snap-align: start;
        width: 72px;
        height: 72px;
        min-width: 72px;
        min-height: 72px;
    }

    .nx-pdp__gallery-col .nx-pdp__media-section + .nx-pdp__video-row,
    .nx-pdp__gallery-col .nx-pdp__video-row {
        margin-top: 0.75rem;
    }

    .nx-pdp__info-col {
        position: relative;
        z-index: 0;
    }

    .nx-pdp__info-col .desc-outer.nx-pdp__info {
        margin-top: 1.25rem;
    }
}

@media (min-width: 768px) {
    .nx-pdp__gallery-wrap {
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    }

    .nx-pdp__gallery-col {
        overflow: visible;
    }
}

/* Info-top block: Title + Price (mobile first, above gallery) */
.nx-pdp__info-top-inner {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.nx-pdp__info-top .nx-pdp__title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.35;
}

.nx-pdp__info-top .nx-pdp__price-block {
    margin: 0;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
}

.nx-pdp__info-top .nx-price-current {
    font-size: 1.5rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .nx-pdp__info-top .nx-pdp__title {
        font-size: 1.75rem;
    }
    .nx-pdp__info-top .nx-price-current {
        font-size: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .nx-pdp__info-top .nx-price-current {
        font-size: 2rem;
    }
}

.nx-pdp__gallery {
    width: 100%;
    max-width: 100%;
}

/* Info block: clear spacing, no overlap on mobile */
.nx-pdp__info {
    padding: 1.25rem 1rem 1.75rem;
    background: #fff;
    border-radius: 20px 20px 0 0;
    margin-top: 0;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
    .nx-container {
        max-width: 1320px;
        padding: 0 1.5rem;
    }

    .details-container.nx-pdp {
        padding: 2rem 0 2.5rem;
    }

    .nx-pdp__info {
        margin-top: 0;
        border-radius: 16px;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
        padding: 0 0 0 0;
    }
}

/* ============================================================
   PRODUCT GALLERY - Image Zoom & Thumbnails
   ============================================================ */

.zoom-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 0;
}

/* CSS-based zoom (no ElevateZoom) - hover to zoom, cursor-follow on desktop */
.nx-zoom-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    cursor: zoom-in;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nx-zoom-wrap .zoom-img.nx-zoom-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    transition: transform 0.2s ease-out;
    --zoom-x: 50%;
    --zoom-y: 50%;
}

@media (min-width: 768px) {
    .nx-zoom-wrap:hover .zoom-img.nx-zoom-img {
        transform: scale(2);
        transform-origin: var(--zoom-x) var(--zoom-y);
    }
}

.zoom-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    background: #fff;
    cursor: zoom-in;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   PHOTOS & VIDEO STRIP - full width of gallery column
   Single horizontal strip: video + photo cards, touch-friendly
   ============================================================ */

.nx-pdp__media-strip {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    margin-top: 0;
    padding: 1rem 1rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    flex-shrink: 0;
    background: #fff;
}

.nx-pdp__media-strip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0;
}

.nx-pdp__media-strip-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.nx-pdp__media-strip-hint {
    font-size: 0.75rem;
    color: #86868b;
}

@media (min-width: 768px) {
    .nx-pdp__media-strip-hint {
        display: none;
    }

    .nx-pdp__media-strip {
        padding: 1rem 1.25rem 1.25rem;
    }
}

/* Track: full width of strip, horizontal scroll, scroll-snap */
.nx-pdp__media-strip-track,
#gallery.nx-pdp__media-strip-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.625rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem 0 0.75rem;
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}

.nx-pdp__media-strip-track::-webkit-scrollbar,
#gallery.nx-pdp__media-strip-track::-webkit-scrollbar {
    height: 6px;
}

.nx-pdp__media-strip-track::-webkit-scrollbar-thumb,
#gallery.nx-pdp__media-strip-track::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 3px;
}

/* Media card: shared base (photo + video) */
.nx-pdp__media-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
    text-decoration: none;
    display: block;
}

/* Photo card: image fill */
.nx-pdp__media-card .nx-pdp__media-card-img,
.nx-pdp__media-card .zoom_image_area_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nx-pdp__media-card.elevatezoom-gallery:hover {
    border-color: var(--nx-accent, #f97316);
    transform: scale(1.03);
}

.nx-pdp__media-card.elevatezoom-gallery.active {
    border-color: var(--nx-accent, #f97316);
    box-shadow: 0 0 0 2px var(--nx-accent-light, rgba(249, 115, 22, 0.25));
}

/* Video card */
.nx-pdp__media-card--video {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: linear-gradient(145deg, #1d1d1f 0%, #2d2d2f 100%);
    color: rgba(255, 255, 255, 0.95);
}

.nx-pdp__media-card--video:hover {
    background: linear-gradient(145deg, #2d2d2f 0%, #3d3d3f 100%);
    color: #fff;
    transform: scale(1.03);
}

.nx-pdp__media-card-play {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    line-height: 1;
}

.nx-pdp__media-card-play i {
    font-size: inherit;
}

.nx-pdp__media-card-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.9;
}

/* Small devices: larger touch targets, thumbnails always visible, swipe enabled */
@media (max-width: 767.98px) {
    .nx-pdp__media-strip {
        padding: 1rem 1rem 1.25rem;
    }

    .nx-pdp__media-strip-track,
    #gallery.nx-pdp__media-strip-track {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 0.375rem 0 0.875rem;
        gap: 0.75rem;
        min-height: 100px;
        height: 100px;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
        overscroll-behavior-x: contain;
        scroll-behavior: smooth;
    }

    .nx-pdp__media-card {
        width: 88px;
        height: 88px;
        min-width: 88px;
        min-height: 88px;
        flex-shrink: 0;
    }

    .nx-pdp__media-card-play {
        font-size: 2rem;
    }

    .nx-pdp__media-card-label {
        font-size: 0.6875rem;
    }

    .details-container.nx-pdp .nx-pdp__row .nx-pdp__info-col {
        min-width: 0;
    }
}

@media (max-width: 575px) {
    .nx-pdp__media-card {
        width: 80px;
        height: 80px;
        min-width: 80px;
        min-height: 80px;
    }
}

/* Legacy: keep .elevatezoom-gallery and .zoom_image_area_image for JS */
.elevatezoom-gallery {
    flex: 0 0 auto;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.zoom_image_area_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nx-pdp__video-row {
    margin-top: 0.75rem;
    padding: 0;
}

.nx-pdp__video-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #dc2626;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.nx-pdp__video-btn i {
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .nx-pdp__video-row {
        margin-top: 1rem;
    }

    .nx-pdp__video-btn {
        width: auto;
    }
}

.nx-pdp__video-btn:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

#playVideoBtn {
    /* legacy ID - same as .nx-pdp__video-btn */
}

/* Video modal */
#videoModalSimple {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

body.nx-modal-open {
    overflow: hidden;
    touch-action: none;
}

body.nx-modal-open #add_buy_form {
    visibility: hidden;
}


#videoModalSimple > div {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

#closeVideoModal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

#closeVideoModal:hover {
    background: #fff;
}

#videoIframeSimple {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================================
   PRODUCT INFO SECTION
   ============================================================ */

.desc-outer.nx-pdp__info {
    padding: 1.25rem 1rem 1.75rem;
    max-width: 100%;
    box-sizing: border-box;
}

/* Info column: clean section structure, mobile-first */
.nx-pdp__info-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nx-pdp__info-head {
    margin-bottom: 1rem;
}

/* Availability + Brand on same row, aligned with title below */
.nx-pdp__info-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.375rem 0.5rem;
    margin-bottom: 0.5rem;
}

.nx-pdp__info-head-sep {
    color: #c7c7cc;
    font-weight: 400;
    user-select: none;
}

.nx-pdp__info-head .nx-pdp__title {
    margin: 0 0 0.5rem 0;
}

.nx-pdp__info-head .nx-pdp__badges {
    margin: 0;
}

.nx-pdp__info-desc {
    margin-bottom: 1.25rem;
}

.nx-pdp__info-desc .nx-short-desc-wrap {
    margin: 0;
}

.nx-pdp__info-desc .nx-pdp__model {
    margin: 0 0 0.5rem 0;
    font-size: 0.9375rem;
    color: rgba(29, 29, 31, 0.88);
}

.nx-pdp__info-desc .nx-pdp__categories {
    margin: 0;
    font-size: 0.9375rem;
}

.nx-pdp__label {
    display: inline-block;
    font-weight: 600;
    color: rgba(29, 29, 31, 0.7);
    margin-right: 0.25rem;
    font-size: 0.875rem;
}

.nx-pdp__category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 0.5rem;
    margin-top: 0.375rem;
}

.nx-pdp__category-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1d1d1f;
    background: #f5f5f7;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nx-pdp__category-tag:hover {
    background: #ebebed;
    border-color: #d2d2d7;
    color: var(--nx-accent, #f97316);
}

.nx-pdp__meta-muted {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(110, 110, 115, 0.9);
}


.nx-pdp__info-actions {
    margin-bottom: 1rem;
}

/* Request product button in actions area: same visual weight as Shop Now / Add to Cart */
.nx-pdp__info-actions #pro_stock,
.nx-pdp__info-actions .nx-pdp__stock {
    margin-bottom: 0;
}

.nx-pdp__info-actions .nx-pdp__stock-btn--request {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    font-size: 1rem;
}

.nx-pdp__info-actions .nx-pdp__stock-badge {
    display: inline-flex;
}

.nx-pdp__info-whatsapp.nx-pdp__whatsapp-wrap {
    margin-top: 0.25rem;
    margin-bottom: 0;
}

/* Consistent spacing inside info block */
.nx-pdp__info .produt-title {
    margin-bottom: 0;
}

.nx-pdp__info .short-description {
    margin-bottom: 0;
}

/* Short description: show little text + More button */
.nx-short-desc-wrap {
    position: relative;
}

.nx-short-desc-wrap .nx-short-desc-text {
    margin-bottom: 0;
    transition: max-height 0.25s ease-out;
    color: rgba(30, 30, 31, 0.88);
    -webkit-font-smoothing: antialiased;
}

.nx-short-desc-text.nx-short-desc-text--collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    max-height: 4.8em;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}

.nx-short-desc-wrap.nx-short-desc-wrap--expanded .nx-short-desc-text.nx-short-desc-text--collapsed {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
}

.nx-short-desc-more-btn {
    margin-top: 0.5rem;
    padding: 0;
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--nx-accent, #f97316);
    cursor: pointer;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.nx-short-desc-more-btn:hover {
    color: var(--nx-accent-hover, #ea580c);
    text-decoration: underline;
}

.nx-short-desc-more-btn:focus-visible {
    outline: 2px solid var(--nx-accent, #f97316);
    outline-offset: 2px;
}

.nx-pdp__info .rating {
    margin-bottom: 0;
}

.nx-pdp__info .thm-devider {
    margin: 0;
}

.nx-pdp__info .nx-price-block {
    margin-bottom: 0;
}

.nx-pdp__info .nx-product-meta {
    margin-bottom: 0;
}

.nx-pdp__info .nx-warranty-line {
    margin-bottom: 0;
}

/* Aligned meta stack: review, price, availability, warranty */
.nx-pdp__meta-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    margin-bottom: 1rem;
}

.nx-pdp__meta-row {
    margin: 0;
    padding: 0;
    min-height: 1.5em;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem 0.75rem;
}

/* Rating · Availability · Code on one row */
.nx-pdp__meta-row--top {
    font-size: 0.875rem;
    color: rgba(45, 45, 47, 0.85);
    gap: 0.25rem 0.5rem;
}

.nx-pdp__meta-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.nx-pdp__meta-row--top .group {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.nx-pdp__meta-row--top .group i {
    font-size: 0.9375rem;
    color: #f5a623;
}

.nx-pdp__meta-row--top .rating-count {
    font-size: 0.8125rem;
}

.nx-pdp__meta-sep {
    color: #c7c7cc;
    font-weight: 400;
    user-select: none;
}

.nx-pdp__meta-row--top .nx-availability {
    font-weight: 500;
}

.nx-pdp__meta-row--top .nx-product-code {
    font-weight: 500;
}

.nx-pdp__meta-stack > .nx-pdp__meta-row + .nx-pdp__meta-row {
    margin-top: 0.75rem;
}

.nx-pdp__meta-divider {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    height: 1px;
    background: #e5e5ea;
    align-self: stretch;
    flex-shrink: 0;
}

.nx-pdp__meta-stack > .nx-pdp__meta-divider {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.nx-pdp__info #pro_stock {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .details-container.nx-pdp .col-md-7 .desc-outer.nx-pdp__info {
        padding-top: 0;
        padding-left: 1.5rem;
        padding-right: 0;
        padding-bottom: 0;
    }

    .nx-pdp__info .produt-title {
        margin-bottom: 0;
    }

    .nx-pdp__info-head {
        margin-bottom: 1.25rem;
    }

    .nx-pdp__info-desc {
        margin-bottom: 1.5rem;
    }

    .nx-pdp__info-meta {
        margin-bottom: 1.5rem;
    }

    .nx-pdp__info-actions {
        margin-bottom: 1.25rem;
    }
}


/* Availability label (in same row as brand) */
.nx-pdp__availability-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nx-pdp__availability-label--available {
    color: #059669;
}

.nx-pdp__availability-label--preorder {
    color: #b45309;
}

.nx-pdp__availability-label--request {
    color: rgba(29, 29, 31, 0.75);
}

.nx-pdp__availability-label--out {
    color: #b91c1c;
}

/* Brand link (in same row as availability) */
.nx-pdp__info-head-row .nx-pdp__brand-link {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(29, 29, 31, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nx-pdp__info-head-row .nx-pdp__brand-link:hover {
    color: var(--nx-accent, #f97316);
}

/* Product title - prominent, clean; no top margin so it aligns with image */
.produt-title {
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1d1d1f;
    margin-top: 0;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* Product badges: New, Best Selling */
.nx-pdp__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.nx-pdp__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.nx-pdp__badge--new {
    color: #065f46;
    background: #d1fae5;
}

.nx-pdp__badge--best-selling {
    color: #fff;
    background: var(--nx-accent, #f97316);
}

.short-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #6e6e73;
    margin-bottom: 1rem;
}

.short-description ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    padding-left: 0;
}

.short-description li {
    margin-bottom: 0.5rem;
}

/* Warranty badge (legacy) */
.product-model {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #1d1d1f;
    margin-bottom: 0.75rem;
}

.product-model svg {
    flex-shrink: 0;
}

/* Rating - inside meta stack */
.nx-pdp__meta-stack .rating {
    margin-bottom: 0;
}

.rating .group {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.group {
    display: flex;
    gap: 2px;
}

.group i {
    font-size: 1rem;
    color: #f5a623;
    line-height: 1;
}

.rating-count {
    font-size: 0.875rem;
    color: rgba(110, 110, 115, 0.95);
}

.rating-count a {
    text-decoration: none;
}

.rating-count a:hover {
    text-decoration: underline;
}

.thm-devider {
    height: 1px;
    background: #e5e5ea;
}

/* Price block - aligned row: price, cash label, discount badge, old price */
.nx-pdp__meta-stack .nx-price-block {
    align-items: baseline;
    flex-wrap: wrap;
}

.nx-price-block .nx-price-current {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.nx-price-block .nx-price-cash-label {
    font-size: 0.8125rem;
    color: rgba(110, 110, 115, 0.95);
    font-weight: 400;
    margin-left: 0.25rem;
    vertical-align: baseline;
}

.nx-price-discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2em 0.5em;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: var(--nx-accent, #f97316);
    border-radius: 6px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.nx-price-block .del-old-price {
    font-size: 1rem;
    color: #8e8e93;
    text-decoration: line-through;
    margin-left: 0.5rem;
    font-weight: 500;
    vertical-align: baseline;
}

/* Product meta row: Availability · Code */
.nx-product-meta {
    font-size: 0.875rem;
    color: rgba(45, 45, 47, 0.85);
    align-items: center;
    gap: 0.25rem 0.5rem;
}

.nx-product-meta .nx-availability {
    font-weight: 500;
}

.nx-product-meta-sep {
    color: #c7c7cc;
    font-weight: 400;
    user-select: none;
}

.nx-product-meta .nx-product-code {
    font-weight: 500;
}

/* Warranty - same visual weight as meta row */
.nx-warranty-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(45, 45, 47, 0.9);
}

.nx-warranty-line svg,
.nx-warranty-icon {
    flex-shrink: 0;
    color: var(--nx-accent, #f97316);
}

/* Price section (legacy) */
.text-thm {
    color: var(--nx-accent, #f97316);
}

.text-lg {
    font-size: 1.5rem;
}

#product_price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1d1d1f;
}

.del-old-price {
    font-size: 1rem;
    color: #8e8e93;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

/* Stock / availability & request product - theme aligned */
.nx-pdp__stock,
#pro_stock {
    margin-bottom: 1rem;
}

.nx-pdp__stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid transparent;
}

.nx-pdp__stock-badge--available {
    color: #059669;
    background: rgba(5, 150, 105, 0.12);
    border-color: rgba(5, 150, 105, 0.25);
}

.nx-pdp__stock-badge--preorder {
    color: #b45309;
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.25);
}

.nx-pdp__stock-badge--out {
    color: #b91c1c;
    background: rgba(185, 28, 28, 0.1);
    border-color: rgba(185, 28, 28, 0.2);
}

.nx-pdp__stock-badge--requested {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.12);
    border-color: rgba(107, 114, 128, 0.2);
}

.nx-pdp__stock-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.nx-pdp__stock-btn--request {
    background: var(--nx-accent, #f97316);
    color: #fff;
}

.nx-pdp__stock-btn--request:hover:not(:disabled) {
    background: var(--nx-accent-hover, #ea580c);
}

.nx-pdp__stock-btn:disabled,
.nx-pdp__stock-btn.nx-pdp__stock-badge--requested {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
    cursor: default;
}

#requestProductBtn:focus-visible {
    outline: 2px solid var(--nx-accent, #f97316);
    outline-offset: 2px;
}

/* Request product modal - theme */
.nx-pdp__request-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.nx-pdp__request-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.nx-pdp__request-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow: auto;
}

.nx-pdp__request-modal-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.nx-pdp__request-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.nx-pdp__request-modal-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1d1d1f;
}

.nx-pdp__request-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nx-pdp__request-modal-close:hover {
    background: #f3f4f6;
    color: #1d1d1f;
}

.nx-pdp__request-modal-body {
    padding: 1.25rem;
}

.nx-pdp__request-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    resize: vertical;
    min-height: 100px;
}

.nx-pdp__request-textarea:focus {
    border-color: var(--nx-accent, #f97316);
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.nx-pdp__request-modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.nx-pdp__request-submit-btn {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: var(--nx-accent, #f97316);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nx-pdp__request-submit-btn:hover:not(:disabled) {
    background: var(--nx-accent-hover, #ea580c);
}

.nx-pdp__request-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Legacy class compatibility */
.pro-stock-in,
.pre-order-details-label,
.pro-stock-out {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

/* Variant box - card style with label */
.nx-variant-box {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    background: #fff;
}

.nx-variant-box .nx-variant-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.75rem;
    display: block;
}

/* Grouped variant UI: two rows (2-column grid), compact, mobile responsive */
.nx-variant-groups {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: #fff;
    max-width: 100%;
    box-sizing: border-box;
}

.nx-variant-groups__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem 1rem;
}

@media (min-width: 480px) {
    .nx-variant-groups__row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.nx-variant-groups .nx-variant-group {
    margin-bottom: 0;
    min-width: 0;
}

.nx-variant-groups .nx-variant-group:last-of-type {
    margin-bottom: 0;
}

.nx-variant-groups .nx-variant-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.375rem;
    display: block;
}

.nx-variant-groups .nx-variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
}

.nx-variant-groups .nx-variant-option {
    min-height: 44px;
    min-width: 44px;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    flex-shrink: 0;
    box-sizing: border-box;
}

.nx-variant-groups .nx-variant-option:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.nx-variant-groups .nx-variant-option.active {
    border-color: var(--nx-accent, #f97316);
    background: var(--nx-accent-light, rgba(249, 115, 22, 0.08));
    color: var(--nx-accent, #f97316);
}

.nx-variant-groups .nx-variant-option--swatch .nx-variant-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #e5e7eb;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.nx-variant-groups .nx-variant-option-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.nx-variant-sku-row {
    margin-top: 0.75rem;
    padding-top: 0.625rem;
    border-top: 1px solid #eee;
    font-size: 0.8125rem;
}

.nx-variant-sku-label {
    font-weight: 600;
    color: #374151;
    margin-right: 0.375rem;
}

.nx-variant-sku-value {
    font-family: ui-monospace, monospace;
    color: #1d1d1f;
    word-break: break-all;
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .nx-variant-groups {
        padding: 1rem 1.25rem;
        margin-bottom: 1.25rem;
    }

    .nx-variant-groups__row {
        gap: 0.875rem 1.25rem;
    }

    .nx-variant-groups .nx-variant-group {
        margin-bottom: 0;
    }

    .nx-variant-groups .nx-variant-label {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }

    .nx-variant-groups .nx-variant-options {
        gap: 0.5rem;
    }

    .nx-variant-groups .nx-variant-option {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        gap: 0.5rem;
    }

    .nx-variant-groups .nx-variant-option--swatch .nx-variant-swatch {
        width: 18px;
        height: 18px;
    }

    .nx-variant-groups .nx-variant-option-label {
        max-width: none;
    }

    .nx-variant-sku-row {
        margin-top: 1rem;
        padding-top: 0.75rem;
        font-size: 0.875rem;
    }

    .nx-variant-sku-value {
        font-size: 0.875rem;
    }
}

/* ============================================================
   VARIANT SELECTION (Color/Size)
   ============================================================ */

.color-thumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.color-thumb li {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.color-thumb li:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-thumb li.active {
    border-color: var(--nx-accent, #f97316);
    box-shadow: 0 0 0 2px var(--nx-accent-light, rgba(249, 115, 22, 0.2));
}

.color-thumb li.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.color-thumb li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.color-thumb li .stock {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

.color-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    text-align: center;
    line-height: 20px;
}

/* ============================================================
   QUANTITY SELECTOR - Unified pill, mobile-first (44px touch)
   ============================================================ */

.nx-pdp__qty-wrap,
.nx-quantity-box {
    margin-bottom: 1.25rem;
}

.nx-pdp__qty-label,
.nx-quantity-box .nx-quantity-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

/* Single pill: one border, no internal dividers */
.nx-pdp__qty.input-group.quantity.dif-quantity,
.quantity.dif-quantity {
    display: inline-flex;
    align-items: stretch;
    width: auto;
    min-width: 140px;
    max-width: 180px;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.nx-pdp__qty-btn,
.input-group-prepend.decrement-btn,
.input-group-append.increment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.75rem;
    border: none;
    background: #f5f5f7;
    color: #1d1d1f;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.nx-pdp__qty-btn:hover,
.input-group-prepend.decrement-btn:hover,
.input-group-append.increment-btn:hover {
    background: #e8e8ed;
}

.nx-pdp__qty-btn:active,
.input-group-prepend.decrement-btn:active,
.input-group-append.increment-btn:active {
    background: #d2d2d7;
}

.nx-pdp__qty-btn i,
.input-group-prepend .input-group-text i,
.input-group-append .input-group-text i {
    font-size: 1.125rem;
}

.nx-pdp__qty-input.qty-input,
.qty-input {
    width: 2.5rem;
    min-width: 2.5rem;
    flex: 1;
    max-width: 3.5rem;
    height: 44px;
    padding: 0 0.25rem;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #1d1d1f;
    -moz-appearance: textfield;
}

.nx-pdp__qty-input.qty-input::-webkit-outer-spin-button,
.nx-pdp__qty-input.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Legacy: hide .input-group-text when inside new pill (we use button > i) */
.nx-pdp__qty .input-group-text {
    display: none;
}

.nx-pdp__qty .input-group-prepend,
.nx-pdp__qty .input-group-append {
    border: none;
    background: transparent;
}

/* ============================================================
   ACTION BUTTONS - Theme-aligned, 100% mobile-first
   ============================================================ */

.nx-pdp__actions.bottom-action-bar {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 1.25rem 0;
    align-items: stretch;
}

/* Two-column row: Shop Now | Add to Cart always side by side */
.nx-pdp__actions-row--two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.nx-pdp__actions-row--link {
    margin-bottom: 1rem;
}

.nx-pdp__actions-row--link .nx-pdp__btn {
    width: 100%;
}

/* Base: full width of cell, min 44px touch */
.nx-pdp__btn,
.bottom-action-bar .btn.style-two {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 48px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

.nx-pdp__btn:disabled,
.bottom-action-bar .btn.style-two:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Primary: Shop Now - theme accent */
.nx-pdp__btn--primary.buy-now-btn,
.btn-secondary.style-two.buy-now-btn,
.nx-btn-shop {
    background: var(--nx-accent, #f97316);
    color: #fff;
}

.nx-pdp__btn--primary.buy-now-btn:hover:not(:disabled),
.btn-secondary.style-two.buy-now-btn:hover:not(:disabled),
.nx-btn-shop:hover:not(:disabled) {
    background: var(--nx-accent-hover, #ea580c);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

/* Secondary: Add to Cart - outline */
.nx-pdp__btn--secondary.add-to-cart-btn,
.btn-primary.style-two.add-to-cart-btn {
    background: #fff;
    color: #1d1d1f;
    border: 2px solid #e5e7eb;
}

.nx-pdp__btn--secondary.add-to-cart-btn:hover:not(:disabled),
.btn-primary.style-two.add-to-cart-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.nx-pdp__btn i,
.bottom-action-bar .style-two i {
    font-size: 1.125rem;
    flex-shrink: 0;
}

/* WhatsApp button - official style: green, icon + centered text */
/* ============================================================
   WHATSAPP BUTTON - Redesigned (nx-wa-btn)
   ============================================================ */

.nx-pdp__whatsapp-wrap {
    margin-top: 0;
    margin-bottom: 0;
    margin-top: 0.25rem;
}

.nx-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    min-height: 50px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
    background: #25D366;
    border: none;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.nx-wa-btn:hover {
    background: #20bd5a;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    transform: translateY(-1px);
}

.nx-wa-btn:active {
    transform: translateY(0);
}

.nx-wa-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.nx-wa-btn__icon svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: currentColor;
}

.nx-wa-btn__label {
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* Legacy WhatsApp button (if used elsewhere) */
.nx-pdp__btn--whatsapp.whatsapp-btn-outline,
.desc-outer .whatsapp-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 48px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
    border: none;
    color: #fff;
    background: #25D366;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.desc-outer .whatsapp-btn-outline:hover {
    background: #20bd5a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

/* Get Link - outline variant */
.nx-pdp__btn--outline#get-link-btn {
    background: #fff;
    color: #1d1d1f;
    border: 2px solid #e5e7eb;
}

.nx-pdp__btn--outline#get-link-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Legacy .style-two when not overridden above */
.btn-primary.style-two {
    background: var(--bs-primary, #0d6efd);
    color: #fff;
}

.btn-primary.style-two:hover:not(:disabled) {
    background: var(--bs-primary-hover, #0b5ed7);
}

.btn-secondary.style-two {
    background: #1d1d1f;
    color: #fff;
}

.whatsapp-btn-outline:not(.nx-pdp__btn--whatsapp) {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #25D366;
    border-radius: 14px;
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
}

.whatsapp-btn-outline:not(.nx-pdp__btn--whatsapp):hover {
    background: #25D366;
    color: #fff;
}

/* ============================================================
   WHOLESALE PRICE TABLE
   ============================================================ */

.table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.table-bordered {
    border: 1px solid #e5e5ea;
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: var(--bs-primary, #0d6efd);
    color: #fff;
}

.table th {
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: left;
}

.table td {
    padding: 0.75rem;
    border-top: 1px solid #e5e5ea;
    font-size: 0.875rem;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================================
   PRODUCT TABS (Description, Specs, Reviews)
   ============================================================ */

.nav-tabs {
    border-bottom: 2px solid #e5e5ea;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.nav-tabs::-webkit-scrollbar {
    height: 2px;
}

.nav-link {
    padding: 0.75rem 1.25rem;
    border: none;
    border-bottom: 2px solid transparent;
    color: #6e6e73;
    font-weight: 500;
    white-space: nowrap;
    margin-bottom: -2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
    color: var(--bs-primary, #0d6efd);
    border-bottom-color: rgba(13, 110, 253, 0.3);
}

.nav-link.active {
    color: var(--bs-primary, #0d6efd);
    border-bottom-color: var(--bs-primary, #0d6efd);
    font-weight: 600;
}

.tab-content {
    padding: 1.5rem 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.pro-details-area {
    line-height: 1.7;
    color: #1d1d1f;
}

.product-desc-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* ============================================================
   RESPONSIVE - LARGE PHONE (576px+) - Actions in row
   ============================================================ */

@media (min-width: 576px) {
    .nx-pdp__actions-row--two-col {
        gap: 1rem;
    }

    .nx-pdp__whatsapp-wrap .nx-pdp__btn--whatsapp {
        width: 100%;
    }
}

/* ============================================================
   RESPONSIVE - TABLET (768px+)
   ============================================================ */

@media (min-width: 768px) {
    .details-container {
        padding: 2rem 0;
    }

    /* Side-by-side: grid layout, left/right aligned */
    .nx-pdp__row {
        display: grid;
        grid-template-columns: minmax(0, 42%) minmax(0, 58%);
        grid-template-rows: auto auto;
        gap: 0 2rem;
        align-items: start;
        justify-items: stretch;
    }

    .details-container.nx-pdp .row.mbl-m-0.nx-pdp__row {
        display: grid;
        grid-template-columns: minmax(0, 42%) minmax(0, 58%);
        grid-template-rows: auto auto;
        gap: 0 2rem;
        align-items: start;
    }

    .nx-pdp__gallery-col {
        grid-column: 1;
        grid-row: 1 / -1;
        padding-left: 0;
        padding-right: 0;
        align-self: start;
    }

    .nx-pdp__info-top {
        grid-column: 2;
        grid-row: 1;
        padding: 0 0 0.5rem 1.5rem;
        order: unset;
    }

    .nx-pdp__row .nx-pdp__info-col {
        grid-column: 2;
        /* grid-row: 2; */
        padding-left: 0;
        padding-right: 0;
        align-self: start;
        order: unset;
    }

    .zoom-img {
        border-radius: 16px;
    }

    /* More photos – modern view (tablet and up), full height visible */
    .nx-pdp__gallery-col .nx-pdp__media-section {
        margin-top: 1.25rem;
        padding: 1.25rem;
        background: #fafafa;
        border-radius: 16px;
        border: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nx-pdp__gallery-col #gallery.nx-pdp__gallery-thumbs,
    .details-container.nx-pdp .nx-pdp__gallery-col #gallery {
        height: auto;
        min-height: 0;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        position: static;
        top: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .nx-pdp__gallery-col .nx-pdp__media-section .nx-pdp__media-header {
        margin-bottom: 1rem;
    }

    .nx-pdp__gallery-col .nx-pdp__media-section .nx-pdp__media-label,
    .nx-pdp__gallery-col .nx-pdp__media-section .nx-pdp__media-header p {
        font-size: 0.9375rem;
        font-weight: 600;
        color: #1d1d1f;
        letter-spacing: -0.01em;
        margin: 0;
    }

    .nx-pdp__gallery-col #gallery.nx-pdp__gallery-thumbs {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
        gap: 0.75rem;
        padding: 0;
        margin: 0;
    }

    .nx-pdp__gallery-col #gallery.nx-pdp__gallery-thumbs .elevatezoom-gallery {
        flex: 0 0 auto;
        width: 90px;
        height: 90px;
        min-width: 90px;
        min-height: 90px;
        border-radius: 12px;
        overflow: hidden;
        border: 2px solid rgba(0, 0, 0, 0.08);
        background: #fff;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    .nx-pdp__gallery-col #gallery.nx-pdp__gallery-thumbs .elevatezoom-gallery:hover {
        border-color: var(--nx-accent, #f97316);
        box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.15);
        transform: scale(1.02);
    }

    .nx-pdp__gallery-col #gallery.nx-pdp__gallery-thumbs .elevatezoom-gallery.active {
        border-color: var(--nx-accent, #f97316);
        box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.25);
    }

    .nx-pdp__gallery-col #gallery .zoom_image_area_image {
        border: none;
        padding: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }

    .nx-pdp__gallery-col .nx-pdp__video-row {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nx-pdp__gallery-col .nx-pdp__video-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.625rem 1.25rem;
        border-radius: 12px;
        background: #1d1d1f;
        color: #fff;
        border: none;
        font-size: 0.9375rem;
        font-weight: 600;
        transition: background 0.2s ease, transform 0.1s ease;
    }

    .nx-pdp__gallery-col .nx-pdp__video-btn:hover {
        background: #2d2d2f;
        color: #fff;
        transform: scale(1.02);
    }

    .nx-pdp__gallery-col .nx-pdp__video-btn i {
        font-size: 1.25rem;
    }

    #gallery {
        gap: 1rem;
    }

    .elevatezoom-gallery {
        width: 90px;
        height: 90px;
        min-width: 90px;
        min-height: 90px;
    }

    .produt-title {
        font-size: 1.75rem;
    }

    #product_price {
        font-size: 2rem;
    }

    .color-thumb li {
        width: 70px;
        height: 70px;
    }

    .nx-pdp__actions-row--two-col {
        gap: 1rem;
        margin-bottom: 1.25rem;
    }

    .nx-pdp__whatsapp-wrap .nx-pdp__btn--whatsapp {
        width: 100%;
    }

    .desc-outer .whatsapp-btn-outline {
        width: 100%;
    }
}

/* ============================================================
   RESPONSIVE - DESKTOP (1024px+)
   ============================================================ */

@media (min-width: 1024px) {
    .details-container.nx-pdp {
        padding: 2.5rem 0 3rem;
    }

    .nx-pdp__row {
        gap: 2.5rem;
        grid-template-columns: minmax(280px, 0.4fr) minmax(320px, 0.6fr);
    }

    .details-container.nx-pdp .row.mbl-m-0.nx-pdp__row {
        gap: 2.5rem;
        grid-template-columns: minmax(280px, 0.4fr) minmax(320px, 0.6fr);
    }

    .nx-pdp__gallery-col {
        position: sticky;
        /* top: 100px; */
    }

    .nx-pdp__info-col {
        min-width: 0;
    }

    .details-container.nx-pdp .col-md-7 .desc-outer.nx-pdp__info {
        padding: 2rem;
    }

    .zoom-img {
        border-radius: 20px;
    }

    /* More photos – large desktop refinement */
    .nx-pdp__gallery-col .nx-pdp__media-section {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .nx-pdp__gallery-col #gallery.nx-pdp__gallery-thumbs {
        gap: 1rem;
    }

    .nx-pdp__gallery-col #gallery.nx-pdp__gallery-thumbs .elevatezoom-gallery {
        width: 100px;
        height: 100px;
        min-width: 100px;
        min-height: 100px;
        border-radius: 14px;
    }

    .nx-pdp__gallery-col #gallery .zoom_image_area_image {
        border-radius: 12px;
    }

    #gallery {
        gap: 1rem;
    }

    .elevatezoom-gallery {
        width: 100px;
        height: 100px;
        min-width: 100px;
        min-height: 100px;
    }

    .produt-title {
        font-size: 2rem;
    }
}

/* ============================================================
   MOBILE - 100% Responsive (max-width: 767px)
   ============================================================ */

@media (max-width: 767px) {
    .details-container.nx-pdp {
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .nx-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .mbl-p-0 {
        padding: 0;
    }

    .mbl-m-0 {
        margin: 0;
    }

    .nx-pdp__row {
        gap: 1.25rem;
    }

    .nx-pdp__gallery {
        padding: 0;
    }

    .zoom-wrapper {
        margin-bottom: 0;
        overflow: visible;
    }

    .details-container.nx-pdp .nx-pdp__gallery-col .zoom-wrapper {
        overflow: visible;
    }

    .zoom-img {
        border-radius: 0;
        pointer-events: auto;
        touch-action: pan-y;
    }

    #gallery.nx-pdp__media-strip-track {
        gap: 0.75rem;
        padding: 0.375rem 0 0.875rem;
    }

    .nx-pdp__media-strip {
        margin-top: 0.75rem;
        margin-bottom: 0;
        padding-top: 0.75rem;
        padding-bottom: 1rem;
    }

    .nx-pdp__info {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 2rem;
    }

    .produt-title {
        font-size: 1.125rem;
        line-height: 1.35;
        margin-bottom: 0.75rem;
    }

    .short-description {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .nx-price-block .nx-price-current {
        font-size: 1.5rem;
    }

    .nx-product-meta {
        font-size: 0.8125rem;
    }

    .bottom-action-bar {
        flex-direction: column;
        gap: 0.75rem;
        margin: 1.25rem 0;
    }

    .bottom-action-bar .style-two {
        width: 100%;
        min-height: 48px;
    }

    .color-thumb {
        gap: 0.5rem;
    }

    .color-thumb li {
        width: 48px;
        height: 48px;
    }

    .nx-variant-box {
        padding: 1rem;
    }

    .nx-quantity-box .nx-quantity-label {
        margin-bottom: 0.5rem;
    }

    .quantity .input-group-prepend,
    .quantity .input-group-append {
        min-width: 48px;
        height: 48px;
    }

    .qty-input {
        height: 48px;
    }
}

/* Small mobile (max-width: 575px) */
@media (max-width: 575px) {
    .nx-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .nx-pdp__info {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        border-radius: 16px 16px 0 0;
    }

    .produt-title {
        font-size: 1rem;
    }

}

/* ============================================================
   PDP FOOTER ACTIONS (small device only) - above bottom nav
   Shop Now & Add to Cart always visible
   ============================================================ */

.nx-pdp__footer-actions {
    display: none;
}

@media (max-width: 991.98px) {
    .nx-pdp__footer-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
        bottom: calc(64px + env(safe-area-inset-bottom, 0));
        padding: 0.75rem 1rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08);
        z-index: 999;
        box-sizing: border-box;
    }

    .nx-pdp__footer-actions .nx-pdp__footer-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        min-height: 48px;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
        font-weight: 600;
        border-radius: 12px;
        border: none;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.1s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .nx-pdp__footer-actions .nx-pdp__footer-btn:active {
        transform: scale(0.98);
    }

    .nx-pdp__footer-actions .nx-pdp__footer-btn i {
        font-size: 1.25rem;
    }

    .nx-pdp__footer-actions .buy-now-btn {
        background: var(--bs-secondary, #6c757d);
        color: #fff;
    }

    .nx-pdp__footer-actions .buy-now-btn:hover:not(:disabled) {
        background: var(--bs-secondary-hover, #5c636a);
        color: #fff;
    }

    .nx-pdp__footer-actions .add-to-cart-btn {
        background: var(--bs-primary, #0d6efd);
        color: #fff;
    }

    .nx-pdp__footer-actions .add-to-cart-btn:hover:not(:disabled) {
        background: var(--bs-primary-hover, #0b5ed7);
        color: #fff;
    }

    .nx-pdp__footer-actions .nx-pdp__footer-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .details-container.nx-pdp .nx-pdp__info-actions .nx-pdp__actions.bottom-action-bar {
        display: none;
    }

    .details-container.nx-pdp {
        padding-bottom: calc(140px + env(safe-area-inset-bottom, 0));
    }
}

@media (min-width: 992px) {
    .details-container.nx-pdp .nx-pdp__info-actions .nx-pdp__actions.bottom-action-bar {
        display: block;
    }
}

/* ============================================================
   PRODUCT TABS (Description, Specification, Reviews)
   Theme-styled tabs, description HTML/links, reviews
   ============================================================ */

.details-container.nx-pdp-tabs {
    background: var(--filter-bg, #f8f9fa);
}

/* Two-column layout: left tabs, right recently viewed - 100% responsive */
.nx-pdp-tabs__row {
    align-items: flex-start;
}

.nx-pdp-tabs__col--main {
    min-width: 0;
}

.nx-pdp-tabs__col--sidebar {
    min-width: 0;
}

@media (min-width: 992px) {
    .nx-pdp-tabs__col--sidebar {
        position: sticky;
        top: 1rem;
        align-self: flex-start;
    }
}

/* Recently Viewed sidebar - Apple theme with glass effect */
.nx-pdp-recently-viewed {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.nx-pdp-recently-viewed__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary, #1d1d1f);
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    letter-spacing: -0.02em;
}

.nx-pdp-recently-viewed__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nx-pdp-recently-viewed__item {
    margin: 0;
}

/* Each card: glass effect */
.nx-pdp-recently-viewed__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--text-primary, #1d1d1f);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.2s ease;
}

.nx-pdp-recently-viewed__link:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.06);
    color: var(--primary, #0071e3);
}

.nx-pdp-recently-viewed__img-wrap {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 0.625rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.nx-pdp-recently-viewed__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nx-pdp-recently-viewed__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nx-pdp-recently-viewed__name {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: inherit;
}

.nx-pdp-recently-viewed__link:hover .nx-pdp-recently-viewed__name {
    color: inherit;
}

.nx-pdp-recently-viewed__price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary, #1d1d1f);
    letter-spacing: -0.02em;
}

.nx-pdp-recently-viewed__link:hover .nx-pdp-recently-viewed__price {
    color: var(--primary, #0071e3);
}

.nx-pdp-recently-viewed__old {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary, #6e6e73);
    margin-left: 0.25rem;
}

.nx-pdp-recently-viewed__badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, #ff3b30 0%, #e63329 100%);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    margin-top: 0.2rem;
    align-self: flex-start;
    box-shadow: 0 1px 3px rgba(255, 59, 48, 0.3);
}

.nx-pdp-recently-viewed__empty {
    font-size: 0.875rem;
    color: var(--text-secondary, #6e6e73);
}

/* Tab navigation - theme colors; sticky on scroll */
.nx-pdp-tabs__nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--filter-bg, #f8f9fa);
    border-bottom: 2px solid var(--border-color, #ced4da);
    gap: 0;
    margin-bottom: 1rem;
    padding-bottom: 0;
}

.nx-pdp-tabs__nav .nav-item {
    margin-bottom: -2px;
}

.nx-pdp-tabs__nav-btn {
    color: var(--text-secondary, #6c757d);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.25rem;
    margin-bottom: -2px;
    border-radius: var(--border-radius-sm, 0.375rem) var(--border-radius-sm, 0.375rem) 0 0;
    transition: color var(--transition-base), border-color var(--transition-base), background 0.2s ease;
}

.nx-pdp-tabs__nav-btn:hover {
    color: var(--text-primary, #212529);
    border-color: transparent;
}

.nx-pdp-tabs__nav-btn.active {
    color: var(--primary, #0d6efd);
    background: transparent;
    border-bottom-color: var(--primary, #0d6efd);
    font-weight: 600;
}

/* Tab content box */
.nx-pdp-tabs__content {
    background: var(--card-bg, #ffffff) !important;
    border: 1px solid var(--border-color, #ced4da);
    border-radius: var(--border-radius-md, 0.5rem);
    color: var(--text-primary, #212529);
}

/* Description tab: HTML content and links */
.nx-pdp-tabs__description {
    color: var(--text-primary, #212529);
    line-height: 1.6;
}

.nx-pdp-tabs__description p {
    margin-bottom: 1rem;
}

.nx-pdp-tabs__description p:last-child {
    margin-bottom: 0;
}

.nx-pdp-tabs__description ul,
.nx-pdp-tabs__description ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* Description HTML links - theme primary, underline on hover */
.nx-pdp-tabs__description .nx-pdp-tabs__desc-link,
.nx-pdp-tabs__description a.nx-pdp-tabs__desc-link {
    color: var(--primary, #0d6efd);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color var(--transition-base), border-color var(--transition-base);
}

.nx-pdp-tabs__description .nx-pdp-tabs__desc-link:hover,
.nx-pdp-tabs__description a.nx-pdp-tabs__desc-link:hover {
    color: var(--primary-hover, #0b5ed7);
    border-bottom-color: var(--primary-hover, #0b5ed7);
}

.nx-pdp-tabs__description .product-desc-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm, 0.375rem);
    margin: 0.5rem 0;
}

/* Specification accordion - theme */
.nx-pdp-tabs__spec-accordion .accordion-item {
    border-color: var(--border-color, #ced4da);
    border-radius: var(--border-radius-sm, 0.375rem);
}

.nx-pdp-tabs__spec-accordion .accordion-button {
    color: var(--text-primary, #212529);
    background: var(--filter-bg, #f8f9fa) !important;
    border: none;
    font-weight: 600;
}

.nx-pdp-tabs__spec-accordion .accordion-button:not(.collapsed) {
    color: var(--primary, #0d6efd);
    background: var(--filter-bg, #f8f9fa) !important;
    box-shadow: none;
}

.nx-pdp-tabs__spec-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    border-color: transparent;
}

.nx-pdp-tabs__spec-accordion .accordion-body {
    color: var(--text-primary, #212529);
    background: var(--card-bg, #ffffff);
}

.nx-pdp-tabs__spec-accordion .row.py-2.border-bottom {
    border-color: var(--border-color, #ced4da) !important;
}

.nx-pdp-tabs__spec-accordion .text-muted {
    color: var(--text-secondary, #6c757d) !important;
}

/* Single spec block (non-accordion) */
.nx-pdp-tabs__spec-accordion .border.p-3.rounded.bg-light {
    background: var(--filter-bg, #f8f9fa) !important;
    border-color: var(--border-color, #ced4da) !important;
    border-radius: var(--border-radius-sm, 0.375rem);
}

/* Reviews tab - theme */
.nx-pdp-tabs__reviews-pane {
    color: var(--text-primary, #212529);
}

/* Reviews section wrapper */
.nx-pdp-reviews {
    padding: 0;
}

/* ========== Leave a Review - compact card ========== */
.nx-pdp-reviews__form {
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    padding: 0;
    background: var(--card-bg, #ffffff) !important;
    border: 1px solid var(--border-color, #ced4da);
    border-radius: var(--border-radius-md, 0.5rem);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.nx-pdp-reviews__form-head {
    padding: 1rem 1.25rem 0;
    text-align: center;
}

.nx-pdp-reviews__form-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary, #0d6efd) 0%, var(--primary-hover, #0b5ed7) 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.nx-pdp-reviews__form-icon i {
    font-size: 1.125rem;
}

.nx-pdp-reviews__form-title {
    color: var(--text-primary, #212529);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.15rem 0;
    letter-spacing: -0.02em;
}

.nx-pdp-reviews__form-desc {
    color: var(--text-secondary, #6c757d);
    font-size: 0.8125rem;
    margin: 0 0 0.75rem 0;
}

.nx-pdp-reviews__form-inner {
    padding: 0 1.25rem 1.25rem;
}

.nx-pdp-reviews__field {
    margin-bottom: 0.75rem;
}

.nx-pdp-reviews__label {
    display: block;
    color: var(--text-primary, #212529);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

/* Star rating - larger, hover effect */
.nx-pdp-reviews__stars {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.nx-pdp-reviews__form .star-wrapper {
    cursor: pointer;
    padding: 0.25rem;
    margin: -0.25rem;
    border-radius: 0.375rem;
    transition: transform 0.15s ease, color 0.15s ease;
}

.nx-pdp-reviews__form .star-wrapper:hover {
    transform: scale(1.15);
}

.nx-pdp-reviews__star {
    font-size: 1.75rem !important;
    color: var(--border-color, #ced4da);
    transition: color 0.2s ease, transform 0.15s ease;
}

.nx-pdp-reviews__form .star-wrapper:hover .ri-star-line {
    color: var(--primary, #0d6efd);
}

.nx-pdp-reviews__form .rating-stars .ri-star-fill {
    color: var(--primary, #0d6efd);
}

.nx-pdp-reviews__form .rating-stars .ri-star-line {
    color: var(--border-color, #ced4da);
}

.nx-pdp-reviews__rating-error {
    display: none;
    font-size: 0.8125rem;
    color: var(--discount-text, #dc3545) !important;
    margin-top: 0.5rem;
}

.nx-pdp-reviews__textarea {
    border-radius: var(--border-radius-sm, 0.375rem);
    border: 1px solid var(--border-color, #ced4da);
    resize: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    color: var(--text-primary, #212529);
    background: var(--card-bg, #ffffff);
}

.nx-pdp-reviews__textarea:focus {
    border-color: var(--primary, #0d6efd);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
    outline: 0;
}

.nx-pdp-reviews__textarea::placeholder {
    color: var(--text-secondary, #6c757d);
    opacity: 0.8;
}

.nx-pdp-reviews__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: linear-gradient(180deg, var(--primary, #0d6efd) 0%, var(--primary-hover, #0b5ed7) 100%) !important;
    border: none;
    border-radius: var(--border-radius-md, 0.5rem);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.nx-pdp-reviews__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.4);
    color: #fff !important;
}

.nx-pdp-reviews__submit:active {
    transform: translateY(0);
}

.nx-pdp-reviews__submit:disabled {
    opacity: 0.7;
    transform: none;
}

/* Login prompt - compact */
.nx-pdp-reviews__login-prompt {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: var(--filter-bg, #f8f9fa) !important;
    border: 1px dashed var(--border-color, #ced4da);
    color: var(--text-primary, #212529);
    border-radius: var(--border-radius-sm, 0.375rem);
    font-size: 0.875rem;
}

.nx-pdp-reviews__login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #ced4da);
    color: var(--text-secondary, #6c757d);
    border-radius: 50%;
    font-size: 1rem;
}

.nx-pdp-reviews__link {
    color: var(--primary, #0d6efd) !important;
    text-decoration: none;
    font-weight: 600;
}

.nx-pdp-reviews__link:hover {
    color: var(--primary-hover, #0b5ed7) !important;
    text-decoration: underline;
}

/* ========== Customer Reviews section header ========== */
.nx-pdp-reviews__list {
    margin-top: 0.25rem;
}

.nx-pdp-reviews__list-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color, #ced4da);
}

.nx-pdp-reviews__list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary, #0d6efd) 0%, var(--primary-hover, #0b5ed7) 100%);
    color: #fff;
    border-radius: var(--border-radius-sm, 0.375rem);
    font-size: 1rem;
}

.nx-pdp-reviews__list-title {
    color: var(--text-primary, #212529);
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.nx-pdp-reviews__list-count {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary, #6c757d);
    background: var(--filter-bg, #f8f9fa);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

/* ========== Review cards - compact layout ========== */
.nx-pdp-review-card {
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color, #ced4da);
    border-radius: var(--border-radius-md, 0.5rem);
    background: var(--card-bg, #ffffff) !important;
    color: var(--text-primary, #212529);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nx-pdp-review-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border-color: rgba(13, 110, 253, 0.2);
}

.nx-pdp-review-card__top {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.nx-pdp-review-card__avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary, #0d6efd) 0%, var(--primary-hover, #0b5ed7) 100%);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(13, 110, 253, 0.25);
}

.nx-pdp-review-card__meta {
    flex: 1;
    min-width: 0;
}

.nx-pdp-review-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 0.15rem;
}

.nx-pdp-review-card__author {
    color: var(--text-primary, #212529);
    font-size: 0.9375rem;
    font-weight: 600;
}

.nx-pdp-review-card__date {
    color: var(--text-secondary, #6c757d) !important;
    font-size: 0.75rem;
}

.nx-pdp-review-card__stars {
    gap: 0.1rem;
}

.nx-pdp-review-card__stars .ri-star-fill {
    color: var(--primary, #0d6efd);
    font-size: 0.875rem;
}

.nx-pdp-review-card__stars .ri-star-line {
    color: var(--border-color, #ced4da);
    font-size: 0.875rem;
}

.nx-pdp-review-card__text {
    color: var(--text-primary, #212529);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.nx-pdp-review-card__replies {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    padding-left: 0.75rem;
    margin-left: 0.25rem;
    border-left: 2px solid var(--primary, #0d6efd);
    border-color: var(--border-color, #ced4da);
}

/* Reply: social-style trigger, compact form on click */
.nx-pdp-review-card__reply-wrap {
    margin-top: 0.5rem;
}

.nx-pdp-review-card__reply-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary, #0d6efd);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nx-pdp-review-card__reply-trigger:hover {
    color: var(--primary-hover, #0b5ed7);
}

.nx-pdp-review-card__reply-trigger i {
    font-size: 0.9375rem;
}

.nx-pdp-review-card__reply-trigger.is-active {
    opacity: 0.8;
}

.nx-pdp-review-card__reply-form-wrap {
    margin-top: 0.5rem;
    overflow: hidden;
}

.nx-pdp-review-card__reply-form-wrap.is-collapsed {
    display: none;
}

.nx-pdp-review-card__reply-form-wrap.is-open {
    display: block;
}

.nx-pdp-review-card__reply-form {
    margin-top: 0;
}

/* Reply box: compact padding, single-row flex to avoid unused space */
.nx-pdp-review-card__reply-box {
    padding: 0.5rem 0.75rem;
    background: var(--filter-bg, #f8f9fa);
    border: 1px solid var(--border-color, #ced4da);
    border-radius: var(--border-radius-sm, 0.375rem);
}

.nx-pdp-review-card__reply-box .row {
    margin: 0 -0.25rem;
}

.nx-pdp-review-card__reply-box .row [class*="col-"] {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.nx-pdp-review-card__reply-box .row.g-2 {
    gap: 0;
}

.nx-pdp-review-card__reply-input,
.nx-pdp-review-card .reply-form .form-control {
    padding: 0.35rem 0.5rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-color, #ced4da);
    border-radius: var(--border-radius-sm, 0.375rem);
    color: var(--text-primary, #212529);
    background: var(--card-bg, #ffffff);
}

.nx-pdp-review-card__reply-input:focus,
.nx-pdp-review-card .reply-form .form-control:focus {
    border-color: var(--primary, #0d6efd);
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
    outline: 0;
}

.nx-pdp-review-card__reply-cancel,
.nx-pdp-review-card__reply-btn,
.nx-pdp-review-card .reply-form .btn-success {
    padding: 0.35rem 0.6rem;
    font-size: 0.8125rem;
}

.nx-pdp-review-card__reply-cancel {
    background: transparent !important;
    border: 1px solid var(--border-color, #ced4da);
    color: var(--text-secondary, #6c757d) !important;
    font-weight: 500;
    border-radius: var(--border-radius-sm, 0.375rem);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nx-pdp-review-card__reply-cancel:hover {
    background: var(--filter-bg, #f8f9fa) !important;
    border-color: var(--text-secondary, #6c757d);
    color: var(--text-primary, #212529) !important;
}

.nx-pdp-review-card__reply-btn,
.nx-pdp-review-card .reply-form .btn-success {
    background: var(--primary, #0d6efd) !important;
    border: 1px solid var(--primary, #0d6efd);
    color: #fff !important;
    border-radius: var(--border-radius-sm, 0.375rem);
    font-weight: 500;
    transition: background var(--transition-base), border-color var(--transition-base);
}

.nx-pdp-review-card__reply-btn:hover,
.nx-pdp-review-card .reply-form .btn-success:hover {
    background: var(--primary-hover, #0b5ed7) !important;
    border-color: var(--primary-hover, #0b5ed7);
    color: #fff !important;
}

.nx-pdp-review-card__login-hint {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.nx-pdp-review-card__login-hint .nx-pdp-reviews__link {
    color: var(--primary, #0d6efd) !important;
}

/* Reply items - compact */
.nx-pdp-review-reply {
    margin-bottom: 0.5rem;
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--primary, #0d6efd);
    border-color: var(--border-color, #ced4da);
}

.nx-pdp-review-reply:last-child {
    margin-bottom: 0;
}

.nx-pdp-review-reply__meta {
    margin-bottom: 0.15rem;
}

.nx-pdp-review-reply__author {
    color: var(--text-primary, #212529);
    font-size: 0.875rem;
}

.nx-pdp-review-reply__date {
    color: var(--text-secondary, #6c757d) !important;
    font-size: 0.75rem;
}

.nx-pdp-review-reply__text {
    color: var(--text-primary, #212529);
    font-size: 0.875rem;
    line-height: 1.45;
}

/* ============================================================
   ACCESSIBILITY & PERFORMANCE
   ============================================================ */

.zoom-img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zoom-img[loading="lazy"].lazyloaded {
    opacity: 1;
}

/* Focus states */
.elevatezoom-gallery:focus-visible,
.nx-pdp__media-card:focus-visible,
.style-two:focus-visible,
#requestProductBtn:focus-visible {
    outline: 2px solid var(--bs-primary, #0d6efd);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .elevatezoom-gallery,
    .nx-pdp__media-card,
    .style-two,
    .zoom-img,
    .nav-link {
        transition: none;
    }
}
