/* Nafispod / Saniyar PDP v2 */
.pdp-root {
    --pdp-border: var(--bs-border-color, #e7e7e7);
    --pdp-surface: var(--bs-body-bg, #fff);
    --pdp-muted-surface: rgba(127, 127, 127, .08);
    --pdp-text: var(--bs-body-color, #303030);
}

.pdp-gallery-shell,
.pdp-product-intro,
.pdp-variants-modal .modal-content {
    position: relative;
}

.pdp-gallery-shell {
    min-height: 430px;
    border: 1px solid var(--pdp-border);
    border-radius: 14px;
    padding: 18px;
    background: var(--pdp-surface);
}

.pdp-gallery-actions {
    z-index: 5;
}

.pdp-gallery-actions .icon-product-box-item {
    border: 0;
    cursor: pointer;
}

.pdp-gallery-actions .icon-product-box-item[aria-disabled="true"] {
    cursor: default;
    opacity: .7;
}

.pdp-gallery-main {
    min-height: 360px;
}

.pdp-gallery-main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdp-gallery-image-button {
    width: 100%;
    height: 360px;
    border: 0;
    background: transparent;
    padding: 15px;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdp-gallery-image-button img {
    max-height: 330px;
    max-width: 100%;
    object-fit: contain;
}

.pdp-gallery-thumbs .swiper-slide {
    height: 82px;
    border: 1px solid var(--pdp-border);
    border-radius: 10px;
    padding: 6px;
    opacity: .6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdp-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--bs-primary, #0d6efd);
}

.pdp-gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pdp-gallery-empty,
.pdp-image-placeholder {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary-color, #777);
    background: var(--pdp-muted-surface);
    border-radius: 12px;
}

.pdp-gallery-empty i,
.pdp-image-placeholder i {
    font-size: 44px;
}

.pdp-logo-row {
    min-height: 52px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.pdp-product-logo {
    max-width: 120px;
    max-height: 48px;
    object-fit: contain;
}

.pdp-title {
    font-size: 1.35rem;
    line-height: 1.9;
    color: var(--pdp-text);
    margin-bottom: 8px;
}

.pdp-short-description {
    white-space: pre-line;
    color: var(--bs-secondary-color, #747474);
    line-height: 1.9;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--pdp-border);
}

.pdp-variants-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 10px;
}

.pdp-variants-head h2 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.pdp-variants-head p {
    margin: 0;
    font-size: .78rem;
    color: var(--bs-secondary-color, #777);
}

.pdp-variant-list {
    display: grid;
    gap: 10px;
}

.pdp-variant-row {
    display: grid;
    grid-template-columns:
        minmax(110px, .9fr)
        minmax(180px, 2fr)
        minmax(120px, .9fr)
        minmax(90px, .6fr)
        150px
        125px;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--pdp-border);
    background: var(--pdp-surface);
    border-radius: 12px;
    padding: 11px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.pdp-variant-row--modal {
    grid-template-columns:
        32px
        minmax(110px, .9fr)
        minmax(180px, 2fr)
        minmax(120px, .9fr)
        minmax(90px, .6fr)
        150px;
    cursor: pointer;
}

.pdp-variant-row--modal.is-selected {
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, .12);
}

.pdp-variant-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pdp-variant-title strong {
    font-size: .88rem;
}

.pdp-variant-title small,
.pdp-variant-stock small,
.pdp-variant-price small {
    color: var(--bs-secondary-color, #777);
    font-size: .7rem;
}

.pdp-variant-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pdp-attribute-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border: 1px solid var(--pdp-border);
    border-radius: 999px;
    background: var(--pdp-muted-surface);
    font-size: .72rem;
    white-space: nowrap;
}

.pdp-attribute-chip--color.has-color {
    border-color: var(--pdp-color);
    color: var(--pdp-color);
}

.pdp-attribute-chip--color.has-color .pdp-attribute-label {
    color: var(--pdp-color);
}

.pdp-attribute-label {
    color: var(--bs-secondary-color, #777);
}

.pdp-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--pdp-color);
    border: 1px solid rgba(127, 127, 127, .35);
    flex: 0 0 auto;
}

.pdp-variant-price,
.pdp-variant-stock {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pdp-variant-price del {
    color: var(--bs-secondary-color, #888);
    font-size: .72rem;
}

.pdp-variant-price strong {
    color: var(--bs-primary, #0d6efd);
    font-size: .9rem;
}

.pdp-variant-stock {
    font-size: .82rem;
}

.pdp-quantity {
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    border: 1px solid var(--pdp-border);
    border-radius: 9px;
    overflow: hidden;
    min-width: 135px;
}

.pdp-quantity input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    text-align: center;
    color: var(--pdp-text);
    direction: ltr;
}

.pdp-quantity-btn {
    border: 0;
    background: var(--pdp-muted-surface);
    color: var(--bs-primary, #0d6efd);
    font-weight: 700;
    min-height: 38px;
}

.pdp-variant-buy .btn {
    min-height: 40px;
}

.pdp-more-variants {
    margin-top: 12px;
    text-decoration: none;
}

.pdp-variant-select {
    display: flex;
    justify-content: center;
}

.pdp-variant-radio {
    width: 18px;
    height: 18px;
    border: 2px solid var(--pdp-border);
    border-radius: 50%;
    position: relative;
}

.pdp-variant-row--modal.is-selected .pdp-variant-radio {
    border-color: var(--bs-primary, #0d6efd);
}

.pdp-variant-row--modal.is-selected .pdp-variant-radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: var(--bs-primary, #0d6efd);
    border-radius: 50%;
}

.pdp-variants-modal .modal-body {
    max-height: min(70vh, 720px);
}

.pdp-modal-footer {
    position: sticky;
    bottom: 0;
    background: var(--pdp-surface);
    border-top: 1px solid var(--pdp-border);
}

.pdp-description-text {
    line-height: 2.1;
    color: var(--pdp-text);
}

.pdp-section-block {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--pdp-border);
}

.pdp-section-block h3 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.pdp-video {
    border-radius: 12px;
    background: #000;
    max-height: 420px;
}

.pdp-audio-list {
    display: grid;
    gap: 12px;
}

.pdp-audio-item {
    border: 1px solid var(--pdp-border);
    border-radius: 12px;
    padding: 12px;
}

.pdp-audio-item audio {
    width: 100%;
    margin-top: 8px;
}

.pdp-extra-image {
    display: flex;
    height: 190px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pdp-border);
    border-radius: 12px;
    padding: 8px;
    background: var(--pdp-surface);
}

.pdp-extra-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pdp-attachment-list {
    display: grid;
    gap: 8px;
}

.pdp-attachment-row {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--pdp-border);
    border-radius: 10px;
    padding: 10px;
}

.pdp-attachment-icon {
    font-size: 24px;
    color: var(--bs-primary, #0d6efd);
}

.pdp-attachment-info {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    align-items: center;
}

.pdp-attachment-info strong {
    flex-basis: 100%;
}

.pdp-attachment-info span {
    color: var(--bs-secondary-color, #777);
    font-size: .75rem;
    direction: ltr;
}

.pdp-spec-row {
    display: grid;
    grid-template-columns: minmax(160px, 28%) 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.pdp-spec-label,
.pdp-spec-value {
    border-radius: 9px;
    padding: 12px 14px;
    background: var(--pdp-muted-surface);
}

.pdp-spec-label {
    font-weight: 600;
}

.pdp-spec-value {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.pdp-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 2px;
}

.pdp-rating-input input {
    position: absolute;
    opacity: 0;
}

.pdp-rating-input label {
    color: #d7d7d7;
    font-size: 2rem;
    cursor: pointer;
}

.pdp-rating-input input:checked ~ label,
.pdp-rating-input label:hover,
.pdp-rating-input label:hover ~ label {
    color: #ffc107;
}

.pdp-fullscreen-modal .modal-body {
    padding: 0;
    overflow: hidden;
    background: rgba(10, 10, 10, .96);
}

.pdp-full-gallery,
.pdp-full-gallery .swiper-wrapper,
.pdp-full-gallery .swiper-slide {
    height: calc(100vh - 70px);
}

.pdp-full-gallery-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 70px;
}

.pdp-full-gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pdp-similar-swiper .swiper-slide {
    height: auto;
}

.pdp-similar-card {
    height: 100%;
}

.pdp-similar-image {
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdp-similar-image img {
    max-height: 210px;
    object-fit: contain;
}

@media (max-width: 1199.98px) {
    .pdp-variant-row,
    .pdp-variant-row--modal {
        grid-template-columns: 1fr 1.6fr 1fr;
    }

    .pdp-variant-select {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .pdp-gallery-shell {
        min-height: 350px;
    }

    .pdp-gallery-image-button {
        height: 290px;
    }

    .pdp-gallery-image-button img {
        max-height: 270px;
    }

    .pdp-variant-row,
    .pdp-variant-row--modal {
        grid-template-columns: 1fr;
    }

    .pdp-variant-row > * {
        width: 100%;
    }

    .pdp-spec-row {
        grid-template-columns: 1fr;
    }

    .pdp-full-gallery-slide {
        padding: 16px;
    }

    .pdp-attachment-row {
        grid-template-columns: 36px 1fr;
    }

    .pdp-attachment-row > a {
        grid-column: 1 / -1;
    }
}


/* PDP v2.0.2 presentation refinements */
.pdp-metadata-field-title {
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.8;
    margin: 0 0 12px;
    padding-right: 10px;
    border-right: 3px solid var(--bs-primary, #0d6efd);
    color: var(--pdp-text);
}

.pdp-metadata-field-title--hero {
    margin-bottom: 8px;
}

.pdp-metadata-field-title--gallery {
    padding-left: 58px;
    margin-bottom: 6px;
}

.pdp-product-logo-button {
    border: 0;
    background: transparent;
    padding: 3px;
    border-radius: 9px;
    cursor: zoom-in;
}

.pdp-product-logo-button:hover,
.pdp-product-logo-button:focus-visible {
    box-shadow: 0 0 0 2px rgba(13, 110, 253, .16);
}

.pdp-variants-section .content-box {
    overflow: visible;
}

.pdp-variants-section .pdp-variants-head {
    margin-top: 0;
}

.pdp-extra-image {
    width: 100%;
    border: 1px solid var(--pdp-border);
    cursor: zoom-in;
}

.pdp-metadata-image-modal .modal-body {
    min-height: min(70vh, 720px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, .94);
}

.pdp-metadata-image-modal [data-pdp-metadata-image-target] {
    display: block;
    max-width: 100%;
    max-height: min(68vh, 760px);
    object-fit: contain;
}

.pdp-metadata-image-modal [data-pdp-metadata-image-caption] {
    color: rgba(255, 255, 255, .76) !important;
}


/* PDP v2.0.3 */
.pdp-gallery-main {
    min-height: 430px;
}

.pdp-gallery-image-button {
    height: 430px;
    flex-direction: column;
    gap: 10px;
}

.pdp-gallery-image-button img {
    max-height: 365px;
}

.pdp-media-item-title {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.8;
    text-align: center;
    color: var(--pdp-text);
}

.pdp-media-item-title--logo {
    margin-top: 6px;
    white-space: nowrap;
}

.pdp-product-logo-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pdp-attachment-name {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    direction: rtl;
}

.pdp-attachment-value-title {
    color: var(--pdp-text);
}

.pdp-home-product-card {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.pdp-home-product-card__head {
    min-height: 40px;
}

.pdp-home-product-card__actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pdp-home-product-card__actions a,
.pdp-home-product-card__action {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--pdp-muted-surface);
    color: var(--pdp-text);
    transition: 200ms;
    text-decoration: none;
}

.pdp-home-product-card__actions a:hover,
.pdp-home-product-card__action:hover {
    background: rgba(127, 127, 127, .18);
}

.pdp-home-product-card__action[aria-disabled="true"] {
    cursor: default;
}

.pdp-home-product-card__image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px !important;
    overflow: hidden;
    text-decoration: none;
}

.pdp-home-product-card__logo-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    object-fit: contain !important;
    opacity: 0;
    visibility: hidden;
    transform: scale(.985);
    transition:
        opacity .3s ease,
        visibility .3s ease,
        transform .45s ease;
}

.pdp-home-product-card__logo-frame.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.pdp-home-product-card__title {
    min-height: 66px;
    height: auto !important;
    align-items: flex-start !important;
    padding-top: 8px;
}

.pdp-home-product-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    padding: 10px;
    border-radius: 9px;
    background: var(--pdp-muted-surface);
}

.pdp-home-product-card__view {
    white-space: nowrap;
    color: #fff;
}

.pdp-home-product-card__price {
    text-align: left;
    margin-inline-start: auto;
}

.pdp-home-product-card__price .new-price {
    font-weight: 700;
}

.pdp-home-product-card__price .old-price {
    text-decoration: line-through;
    color: var(--bs-secondary-color, #888);
    font-size: .75rem;
}

@media (max-width: 991.98px) {
    .pdp-gallery-main {
        min-height: 380px;
    }

    .pdp-gallery-image-button {
        height: 380px;
    }

    .pdp-gallery-image-button img {
        max-height: 320px;
    }
}

@media (max-width: 575.98px) {
    .pdp-home-product-card__image {
        height: 190px !important;
    }

    .pdp-home-product-card__footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .pdp-home-product-card__view {
        width: 100%;
    }

    .pdp-home-product-card__price {
        width: 100%;
        text-align: right;
    }
}


/* PDP v2.0.4 */
.pdp-gallery-image-button {
    justify-content: center;
}

.pdp-gallery-item-title {
    order: -1;
    width: 100%;
    margin-bottom: 8px;
    text-align: center;
}

.pdp-variant-price {
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px !important;
    white-space: nowrap;
}

.pdp-variant-price del,
.pdp-variant-price strong,
.pdp-variant-price small {
    display: inline-block;
    margin: 0;
}

.pdp-attachment-row {
    grid-template-columns:
        42px
        minmax(150px, .45fr)
        minmax(0, 1.55fr)
        auto !important;
}

.pdp-attachment-title {
    display: flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--pdp-muted-surface);
}

.pdp-attachment-title span {
    color: var(--bs-secondary-color, #888);
    font-size: .76rem;
    white-space: nowrap;
}

.pdp-attachment-title strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .82rem;
}

.pdp-attachment-info {
    min-width: 0;
}

.pdp-attachment-name {
    display: block !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
    text-align: right;
}

.pdp-attachment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-top: 4px;
}

.pdp-attachment-meta span {
    color: var(--bs-secondary-color, #777);
    font-size: .75rem;
    direction: ltr;
}

.pdp-home-product-card__actions {
    direction: ltr;
}

.pdp-home-product-card__footer {
    direction: rtl;
}

.pdp-home-product-card__price {
    order: 0;
    text-align: right !important;
    margin-inline-start: 0 !important;
    margin-inline-end: auto;
}

.pdp-home-product-card__view {
    order: 1;
}

.saniyar-product-quick-view .modal-content {
    border-radius: 14px;
    overflow: hidden;
}

.saniyar-quick-view-gallery {
    min-height: 360px;
}

.js-saniyar-quick-view-gallery {
    min-height: 330px;
}

.js-saniyar-quick-view-gallery .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 330px;
}

.js-saniyar-quick-view-gallery img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.js-saniyar-quick-view-gallery-thumb .swiper-slide {
    height: 72px;
    padding: 5px;
    border: 1px solid var(--pdp-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.js-saniyar-quick-view-gallery-thumb .swiper-slide-thumb-active {
    border-color: var(--bs-primary, #0d6efd);
}

.js-saniyar-quick-view-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.saniyar-quick-view-variants {
    display: grid;
    gap: 8px;
}

.saniyar-quick-view-variant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid var(--pdp-border);
    border-radius: 9px;
}

@media (max-width: 767.98px) {
    .pdp-attachment-row {
        grid-template-columns: 36px 1fr !important;
    }

    .pdp-attachment-title,
    .pdp-attachment-info,
    .pdp-attachment-row > a {
        grid-column: 1 / -1;
    }

    .pdp-variant-price {
        white-space: normal;
    }
}

/* NAFISPOD PDP VARIANT SELECTOR V1 */
.pdp-selector-dimensions {
    display: grid;
    gap: 18px;
    margin-top: 14px;
}

.pdp-selector-dimension {
    display: grid;
    gap: 9px;
}

.pdp-selector-dimension-label {
    font-size: .86rem;
    font-weight: 700;
    color: var(--pdp-text);
}

.pdp-selector-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pdp-selector-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 7px 13px;
    border: 1px solid var(--pdp-border);
    border-radius: 10px;
    background: var(--pdp-surface);
    color: var(--pdp-text);
    font-size: .82rem;
    transition:
        border-color .16s ease,
        background-color .16s ease,
        box-shadow .16s ease,
        opacity .16s ease;
}

.pdp-selector-option:hover:not(:disabled) {
    border-color: var(--bs-primary, #0d6efd);
}

.pdp-selector-option.is-selected {
    border-color: var(--bs-primary, #0d6efd);
    background:
        color-mix(
            in srgb,
            var(--bs-primary, #0d6efd) 9%,
            var(--pdp-surface)
        );
    box-shadow:
        0 0 0 2px
        color-mix(
            in srgb,
            var(--bs-primary, #0d6efd) 12%,
            transparent
        );
}

.pdp-selector-option:disabled {
    opacity: .38;
    cursor: not-allowed;
    text-decoration: line-through;
}

.pdp-selector-option--title {
    min-width: 130px;
    flex-direction: column;
    align-items: flex-start;
}

.pdp-selector-option--title small {
    font-size: .68rem;
    color: var(--bs-secondary-color, #777);
}

.pdp-selector-prompt {
    margin-top: 18px;
    padding: 13px 15px;
    border: 1px dashed var(--pdp-border);
    border-radius: 11px;
    color: var(--bs-secondary-color, #777);
    background: var(--pdp-muted-surface);
    font-size: .82rem;
}

.pdp-resolved-variant {
    margin-top: 18px;
    border: 1px solid var(--pdp-border);
    border-radius: 14px;
    background: var(--pdp-surface);
    overflow: hidden;
}

.pdp-resolved-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
}

.pdp-resolved-title {
    margin: 2px 0 8px;
    font-size: .95rem;
}

.pdp-resolved-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pdp-resolved-summary-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--pdp-muted-surface);
    border: 1px solid var(--pdp-border);
    font-size: .72rem;
}

.pdp-resolved-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    white-space: nowrap;
}

.pdp-resolved-price del {
    color: var(--bs-secondary-color, #888);
    font-size: .72rem;
}

.pdp-resolved-price strong {
    color: var(--bs-primary, #0d6efd);
    font-size: 1rem;
}

.pdp-resolved-actions {
    display: grid;
    grid-template-columns:
        minmax(120px, .8fr)
        minmax(145px, .8fr)
        minmax(130px, .7fr);
    gap: 12px;
    align-items: center;
    padding: 13px 16px;
    border-top: 1px solid var(--pdp-border);
    background: var(--pdp-muted-surface);
}

.pdp-resolved-stock {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: .82rem;
}

.pdp-resolved-stock small {
    color: var(--bs-secondary-color, #777);
    font-size: .7rem;
}

@media (max-width: 767.98px) {
    .pdp-resolved-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .pdp-resolved-price {
        align-items: flex-start;
    }

    .pdp-resolved-actions {
        grid-template-columns: 1fr;
    }

    .pdp-selector-option--title {
        min-width: 0;
        width: 100%;
    }
}
/* END NAFISPOD PDP VARIANT SELECTOR V1 */

/* NAFISPOD PDP VARIANT SELECTOR POLISH V1.1 */
@media (min-width: 768px) {
    .pdp-selector-dimensions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

.pdp-resolved-variant-row {
    display: grid;
    grid-template-columns:
        minmax(135px, .85fr)
        minmax(210px, 1.4fr)
        minmax(125px, .8fr)
        minmax(145px, .85fr)
        minmax(165px, .9fr);
    gap: 12px;
    align-items: center;
    padding: 13px 16px;
}

.pdp-resolved-name-cell {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.pdp-resolved-name-cell small,
.pdp-resolved-stock-note {
    font-size: .67rem;
    color: var(--bs-secondary-color, #777);
}

.pdp-resolved-title {
    margin: 0;
    font-size: .84rem;
    line-height: 1.6;
}

.pdp-resolved-summary {
    min-width: 0;
}

.pdp-resolved-summary-chip {
    font-size: .68rem;
}

.pdp-resolved-price {
    min-width: 0;
}

.pdp-resolved-price del {
    font-size: .68rem;
}

.pdp-resolved-price strong {
    font-size: .86rem;
}

.pdp-selector-add-to-cart {
    min-height: 40px;
    padding-inline: 10px;
    font-size: .74rem;
    white-space: nowrap;
}

.pdp-selector-option.is-color-option,
.pdp-resolved-summary-chip.is-color-chip {
    border-color: var(--pdp-color-border, var(--pdp-border));
    background: var(--pdp-color-bg, var(--pdp-surface));
    color: var(--pdp-color-fg, var(--pdp-text));
}

.pdp-selector-option.is-color-option.is-selected {
    box-shadow:
        0 0 0 2px var(--pdp-surface),
        0 0 0 4px var(--pdp-color-bg, var(--bs-primary, #0d6efd));
}

@media (max-width: 767.98px) {
    .pdp-selector-dimensions {
        grid-template-columns: minmax(0, 1fr);
    }

    .pdp-resolved-variant-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .pdp-resolved-price {
        align-items: flex-start;
    }

    .pdp-selector-add-to-cart {
        font-size: .72rem;
    }
}
/* END NAFISPOD PDP VARIANT SELECTOR POLISH V1.1 */

/* NAFISPOD PDP VARIANT SELECTOR POLISH V1.2 */
.pdp-selector-dimensions {
    grid-template-columns: minmax(0, 1fr);
}
/* END NAFISPOD PDP VARIANT SELECTOR POLISH V1.2 */

/* NAFISPOD PDP VARIANT SELECTOR FINAL V1.3.5 */
.pdp-selector-dimensions {
    grid-template-columns: minmax(0, 1fr);
}

.pdp-resolved-variant-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
}

.pdp-resolved-name-cell {
    flex: 1.15 1 150px;
    min-width: 120px;
}

.pdp-resolved-summary {
    flex: 1.3 1 210px;
    min-width: 150px;
}

.pdp-resolved-summary:empty {
    display: none;
}

.pdp-resolved-stock-cell {
    flex: .8 1 125px;
    min-width: 105px;
    font-size: .76rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--pdp-text);
}

.pdp-resolved-price {
    flex: .85 1 135px;
    min-width: 115px;
}

.pdp-resolved-variant-row .pdp-quantity {
    flex: .85 1 145px;
    min-width: 135px;
}

.pdp-resolved-variant-row .pdp-variant-buy {
    flex: 1 1 175px;
    min-width: 160px;
}

.pdp-selector-more-button {
    font-size: .75rem;
}

.pdp-variant-modal-list {
    display: grid;
    gap: 7px;
    max-height: min(55vh, 520px);
    overflow-y: auto;
    padding-inline-end: 4px;
}

.pdp-variant-modal-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 45px;
    padding: 8px 10px;
    border: 1px solid var(--pdp-border);
    border-radius: 10px;
    background: var(--pdp-surface);
    cursor: pointer;
}

.pdp-variant-modal-row:hover {
    border-color: var(--bs-primary, #0d6efd);
}

.pdp-variant-modal-choice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pdp-variant-modal-choice input {
    width: 18px;
    height: 18px;
}

.pdp-variant-modal-title {
    min-width: 0;
    font-size: .79rem;
    line-height: 1.7;
}

@media (max-width: 767.98px) {
    .pdp-resolved-variant-row {
        flex-direction: column;
        align-items: stretch;
    }

    .pdp-resolved-name-cell,
    .pdp-resolved-summary,
    .pdp-resolved-stock-cell,
    .pdp-resolved-price,
    .pdp-resolved-variant-row .pdp-quantity,
    .pdp-resolved-variant-row .pdp-variant-buy {
        flex: 0 0 auto;
        min-width: 0;
        width: 100%;
    }
}
/* END NAFISPOD PDP VARIANT SELECTOR FINAL V1.3.5 */

/* NAFISPOD PDP SELECTED VARIANT LIST PHASE 1 V1.0 */
.pdp-selected-variants {
    padding-top: 18px;
    border-top: 1px solid var(--pdp-border);
}

.pdp-selected-variants-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.pdp-selected-variants-head h3 {
    margin: 0 0 3px;
    font-size: .92rem;
    font-weight: 800;
    color: var(--pdp-text);
}

.pdp-selected-variants-head p {
    margin: 0;
    font-size: .72rem;
    line-height: 1.8;
    color: var(--pdp-muted);
}

.pdp-selected-variants-list {
    display: grid;
    gap: 9px;
}

.pdp-selected-variant-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--pdp-border);
    border-radius: 12px;
    background: var(--pdp-surface);
}

.pdp-selected-name-cell {
    flex: 1.15 1 150px;
    min-width: 120px;
}

.pdp-selected-title {
    display: block;
    font-size: .8rem;
    line-height: 1.8;
    color: var(--pdp-text);
}

.pdp-selected-summary {
    display: flex;
    flex: 1.3 1 210px;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 150px;
}

.pdp-selected-summary:empty {
    display: none;
}

.pdp-selected-stock-cell {
    flex: .8 1 125px;
    min-width: 105px;
    font-size: .76rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--pdp-text);
}

.pdp-selected-price {
    display: grid;
    flex: .85 1 135px;
    gap: 2px;
    min-width: 115px;
}

.pdp-selected-price del {
    font-size: .7rem;
    color: var(--pdp-muted);
}

.pdp-selected-price strong {
    font-size: .8rem;
    color: var(--pdp-text);
}

.pdp-selected-variant-row .pdp-quantity {
    flex: .85 1 145px;
    min-width: 135px;
}

.pdp-selected-remove-cell {
    flex: .55 0 90px;
    min-width: 82px;
}

.pdp-selected-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    white-space: nowrap;
    font-size: .72rem;
}

@media (max-width: 767.98px) {
    .pdp-selected-variants-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .pdp-selected-variant-row {
        align-items: stretch;
        flex-direction: column;
    }

    .pdp-selected-name-cell,
    .pdp-selected-summary,
    .pdp-selected-stock-cell,
    .pdp-selected-price,
    .pdp-selected-variant-row .pdp-quantity,
    .pdp-selected-remove-cell {
        flex: 0 0 auto;
        min-width: 0;
        width: 100%;
    }
}
/* END NAFISPOD PDP SELECTED VARIANT LIST PHASE 1 V1.0 */


/* NAFISPOD PDP SELECTED VARIANT LIST PHASE 2 V1.0 */
.pdp-selected-variants-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--pdp-border);
}

.pdp-selected-buy-button {
    min-width: 220px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 800;
}

.pdp-selected-buy-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

@media (max-width: 767.98px) {
    .pdp-selected-buy-button {
        width: 100%;
        min-width: 0;
    }
}
/* END NAFISPOD PDP SELECTED VARIANT LIST PHASE 2 V1.0 */

/* NAFISPOD_SANIYAR_PDP_SPEC_COLUMNS_1_2_V1 */
.pdp-gallery-shell > .pdp-spec-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

/* NAFISPOD_SANIYAR_PDP_VARIANT_SELECTOR_3_9_V1 */
.pdp-variant-selection-column,
.pdp-selected-variants-stage {
    min-width: 0;
}

.pdp-selected-variants-stage {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 100%;
}

.pdp-selected-variants-stage > [data-pdp-selected-variants] {
    width: 100%;
    margin-top: 0 !important;
}

.pdp-selected-variants-empty {
    flex: 1 1 auto;
    width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.pdp-selected-variants-stage
    > [data-pdp-selected-variants]:not([hidden])
    + .pdp-selected-variants-empty {
    display: none;
}

/* NAFISPOD_SANIYAR_PDP_RESOLVED_VARIANT_VERTICAL_LAYOUT_V1 */
.pdp-variant-selection-column .pdp-resolved-variant-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
        "name stock price"
        "summary summary summary"
        "quantity quantity quantity"
        "buy buy buy";
    align-items: center;
}

.pdp-variant-selection-column .pdp-resolved-name-cell {
    grid-area: name;
    min-width: 0;
}

.pdp-variant-selection-column .pdp-resolved-stock-cell {
    grid-area: stock;
}

.pdp-variant-selection-column .pdp-resolved-price {
    grid-area: price;
}

.pdp-variant-selection-column .pdp-resolved-summary {
    grid-area: summary;
}

.pdp-variant-selection-column .pdp-quantity {
    grid-area: quantity;
}

.pdp-variant-selection-column .pdp-variant-buy {
    grid-area: buy;
}

/* NAFISPOD_SANIYAR_PDP_VARIANT_ROW_UI_REFINE_V1 */

/* More breathing room between the 3/12 selector and 9/12 selected-items column. */
.pdp-variants-section .container-fluid.py-3 > .row {
    --bs-gutter-x: 1.5rem;
}

/* Remove the top/end separator lines from the selected-items column. */
.pdp-selected-variants-stage > [data-pdp-selected-variants],
.pdp-selected-variants-stage .pdp-selected-variants-head,
.pdp-selected-variants-stage .pdp-selected-variants-actions {
    border-top: 0 !important;
    border-bottom: 0 !important;
}

/*
 * Resolved variant presentation only:
 * row 1 = variant name
 * row 2 = stock + price
 * row 3 = existing attributes summary
 * row 4 = existing quantity control
 * row 5 = existing add-to-selection button
 */
.pdp-variant-selection-column .pdp-resolved-variant-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
        "name name"
        "stock price"
        "summary summary"
        "quantity quantity"
        "buy buy";
}

.pdp-variant-selection-column .pdp-resolved-name-cell {
    grid-area: name;
}

.pdp-variant-selection-column .pdp-resolved-stock-cell {
    grid-area: stock;
}

.pdp-variant-selection-column .pdp-resolved-price {
    grid-area: price;
}

.pdp-variant-selection-column .pdp-resolved-summary {
    grid-area: summary;
}

.pdp-variant-selection-column .pdp-quantity {
    grid-area: quantity;
}

.pdp-variant-selection-column .pdp-variant-buy {
    grid-area: buy;
}

/* NAFISPOD_SANIYAR_PDP_SECOND_COLUMN_SPACING_V1 */
@media (min-width: 992px) {
    .pdp-variants-section .container-fluid.py-3 > .row {
        --bs-gutter-x: 3rem;
    }

    .pdp-selected-variants-stage {
        padding-inline-start: 1.25rem;
    }
}

/* NAFISPOD_SANIYAR_PDP_SURFACE_CARDS_NO_SCROLL_V1
 * Product Detail reuses the shared feature-card renderer inside Row 2 /
 * Column 2. In this context cards wrap in semantic order and never create a
 * horizontal scroller. The global/Home feature-card behavior is untouched.
 */
.pdp-display-surface-cards {
    min-width: 0;
}

.pdp-display-surface-cards .saniyar-feature-cards {
    height: 100%;
    padding-block: 0;
}

.pdp-display-surface-cards .saniyar-feature-cards > .container-fluid {
    height: 100%;
    padding-inline: 0;
}

.pdp-display-surface-cards .saniyar-feature-cards-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-content: start;
    gap: 8px;
    height: 100%;
    overflow: visible;
    overscroll-behavior: auto;
    padding: 0;
}

.pdp-display-surface-cards .saniyar-feature-card-shell {
    width: auto;
    min-width: 0;
    flex: none;
}

@media (max-width: 991.98px) {
    .pdp-display-surface-cards .saniyar-feature-cards-track {
        grid-template-columns: 1fr;
        overflow: visible;
        padding: 0;
    }
}

/* NAFISPOD_SANIYAR_PDP_MOBILE_CARDS_AFTER_CART_V1
 * Desktop keeps cards in Row 2 / Column 2.
 * Mobile visually orders: selector -> selected/add-to-cart -> cards.
 */
@media (max-width: 991.98px) {
    .pdp-variant-layout {
        display: flex;
        flex-direction: column;
    }

    .pdp-variant-layout-row {
        display: contents;
    }

    .pdp-variant-layout-row > .col-lg-4 {
        order: 1;
        width: 100%;
    }

    .pdp-selected-variants-row {
        order: 2;
        width: 100%;
        margin-inline: 0;
    }

    .pdp-display-surface-card-column {
        order: 3;
        width: 100%;
        margin-top: 12px;
    }
}

/* NAFISPOD_SANIYAR_PDP_GALLERY_HEADING_CENTER_V1 */
/* Main PDP gallery title only: independent from the absolute-positioned actions.
   Symmetric inline padding preserves true horizontal centering at all widths. */
.pdp-gallery-shell > .pdp-metadata-field-title--gallery.pdp-gallery-heading--centered {
    box-sizing: border-box;
    width: 100%;
    padding: 0 44px;
    border-right: 0;
    text-align: center;
}
