/* =========================================================
   MAHERA JEWELS — PRODUCT DETAIL
   Existing centralized --mj-* theme variables only.
========================================================= */

.mj-product-detail,
.mj-product-detail *,
.mj-product-detail *::before,
.mj-product-detail *::after {
    box-sizing: border-box;
}

.mj-product-detail {
    width: 100%;
    min-width: 0;
    padding: 20px 0 64px;
    background: var(--mj-background);
    color: var(--mj-text);
}

.mj-product-detail img {
    display: block;
    max-width: 100%;
}

.mj-product-detail button,
.mj-product-detail input {
    font: inherit;
}

.mj-product-detail button {
    cursor: pointer;
}

.mj-pdp-container {
    width: min(100% - 36px, 1440px);
    margin-inline: auto;
}

/* =========================================================
   BREADCRUMB
========================================================= */

.mj-pdp-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 26px;
    color: var(--mj-muted);
    font-size: 12px;
}

.mj-pdp-breadcrumb a {
    color: var(--mj-primary);
    text-decoration: none;
}

.mj-pdp-breadcrumb a:hover {
    text-decoration: underline;
}

/* =========================================================
   MAIN PRODUCT LAYOUT
========================================================= */

.mj-pdp-main {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    align-items: start;
    gap: clamp(24px, 4vw, 60px);
}

.mj-pdp-gallery {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    min-width: 0;
    position: sticky;
    top: 100px;
    align-self: start;
}

/* =========================================================
   PRODUCT THUMBNAILS
========================================================= */

.mj-pdp-thumbnails {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 11px;
    max-height: 680px;
    overflow: auto;
    scrollbar-width: thin;
}

.mj-pdp-thumb {
    display: block;
    width: 74px;
    height: 88px;
    flex: 0 0 auto;
    padding: 3px;
    overflow: hidden;
    border: 1px solid var(--mj-border);
    border-radius: 7px;
    background: var(--mj-surface);
    transition: border-color .2s ease;
}

.mj-pdp-thumb.is-active,
.mj-pdp-thumb:hover {
    border-color: var(--mj-primary);
}

.mj-pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   MAIN PRODUCT IMAGE
========================================================= */
.mj-pdp-gallery-main {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    width: 100%;
    max-width: 560px;
    min-width: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--mj-surface);
}

.mj-pdp-gallery-main > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.mj-pdp-best-seller {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 16px;
    padding: 8px 13px;
    background: var(--mj-primary);
    color: var(--mj-surface);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mj-pdp-image-wishlist {
    position: absolute;
    z-index: 3;
    top: 15px;
    right: 15px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--mj-border);
    border-radius: 50%;
    background: var(--mj-surface);
    color: var(--mj-primary);
    font-family: Arial, sans-serif;
    font-size: 27px;
    line-height: 1;
}

.mj-pdp-image-wishlist:hover,
.mj-pdp-image-wishlist.is-active {
    border-color: var(--mj-primary);
    background: var(--mj-primary);
    color: var(--mj-surface);
}

/* =========================================================
   PRODUCT INFORMATION
========================================================= */

.mj-pdp-information {
    position: relative;
    min-width: 0;
    padding: 2px 0 0;
}

.mj-pdp-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 150px);
    margin: 0 0 14px;
    padding: 6px 13px;
    border-radius: 20px;
    background: #E6F6EA;
    color: #1E8E3E;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.mj-pdp-brand:empty {
    display: none;
}

.mj-pdp-brand::before {
    content: '🌿';
    font-size: 12px;
    line-height: 1;
}

.mj-pdp-title {
    margin: 0 145px 0 0;
    color: #16213E;
    font-family: var(--mj-font-body, inherit);
    font-size: clamp(26px, 2.5vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.mj-pdp-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.mj-pdp-price-row strong {
    color: #1E8E3E;
    font-size: 30px;
    font-weight: 800;
}

.mj-pdp-price-row del {
    color: var(--mj-muted);
    font-size: 16px;
}

.mj-pdp-price-row span {
    padding: 5px 12px;
    border-radius: 20px;
    background: #1E8E3E;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.mj-pdp-price-row [hidden] {
    display: none !important;
}

/* =========================================================
   COLOR COUNT — TOP RIGHT
========================================================= */

.mj-pdp-color-picker {
    position: absolute;
    z-index: 8;
    top: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    margin: 0;
}

.mj-pdp-color-trigger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--mj-primary);
    font-size: 12px;
}

.mj-pdp-color-dots {
    display: inline-flex;
    align-items: center;
    padding-left: 3px;
}

.mj-pdp-color-dots i {
    display: block;
    width: 18px;
    height: 18px;
    margin-left: -3px;
    border: 2px solid var(--mj-surface);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--mj-border);
}

.mj-pdp-color-trigger > span:last-child {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    background: var(--mj-surface-strong);
    color: var(--mj-primary);
    font-size: 11px;
    line-height: 1.2;
}

/* =========================================================
   COLOR POPUP
========================================================= */

.mj-pdp-color-popup {
    position: absolute;
    z-index: 30;
    top: calc(100% + 9px);
    right: 0;
    width: min(310px, calc(100vw - 36px));
    padding: 16px;
    border: 1px solid var(--mj-border);
    border-radius: 9px;
    background: var(--mj-surface);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}

.mj-pdp-color-popup[hidden] {
    display: none !important;
}

.mj-pdp-popup-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--mj-text);
    font-size: 14px;
}

.mj-pdp-popup-heading button {
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: var(--mj-muted);
    font-size: 23px;
}

.mj-pdp-popup-colors {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.mj-pdp-popup-color {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 54px;
    padding: 7px;
    border: 1px solid var(--mj-border);
    border-radius: 7px;
    background: var(--mj-surface);
    color: var(--mj-text);
    text-align: left;
    font-size: 12px;
}

.mj-pdp-popup-color:hover,
.mj-pdp-popup-color.is-active {
    border-color: var(--mj-primary);
}

.mj-pdp-popup-swatch {
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    border: 1px solid var(--mj-border);
    border-radius: 50%;
}

.mj-pdp-popup-color-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.mj-pdp-popup-color img {
    width: 42px;
    height: 42px;
    margin-left: auto;
    border-radius: 5px;
    object-fit: cover;
}

/* =========================================================
   COLOR AND SIZE BUTTONS
========================================================= */

.mj-pdp-color-section,
.mj-pdp-size-section {
    margin-top: 17px;
}

.mj-pdp-color-section > strong,
.mj-pdp-size-section > strong {
    display: block;
    margin-bottom: 10px;
    color: var(--mj-text);
    font-size: 13px;
    font-weight: 700;
}

.mj-pdp-color-buttons,
.mj-pdp-size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.mj-pdp-color-button,
.mj-pdp-size-button {
    min-height: 39px;
    padding: 8px 15px;
    border: 1px solid var(--mj-border);
    border-radius: 7px;
    background: var(--mj-surface);
    color: var(--mj-text);
    font-size: 12px;
    transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}

.mj-pdp-color-button:hover,
.mj-pdp-color-button.is-active,
.mj-pdp-size-button:hover,
.mj-pdp-size-button.is-active {
    border-color: var(--mj-primary);
    background: var(--mj-primary);
    color: var(--mj-surface);
}

/* Out of stock: clickable to show message, but not selectable */
.mj-pdp-color-button.is-out-of-stock,
.mj-pdp-popup-color.is-out-of-stock,
.mj-pdp-size-button.is-out-of-stock {
    position: relative;
    opacity: .42;
    cursor: not-allowed;
    text-decoration: line-through;
    border-style: dashed;
}

.mj-pdp-error {
    margin: 7px 0 0;
    color: var(--mj-primary);
    font-size: 11px;
}

.mj-pdp-error[hidden] {
    display: none !important;
}

/* =========================================================
   HIGHLIGHTS & INFORMATION (structured spec rows)
========================================================= */

.mj-pdp-highlights,
.mj-pdp-info-card,
.mj-pdp-description {
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid var(--mj-border);
    border-radius: 10px;
    background: #fff;
}

.mj-pdp-info-card,
.mj-pdp-description {
    margin-top: 14px;
}

.mj-pdp-highlights h2,
.mj-pdp-info-card h2,
.mj-pdp-description h2 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 12px;
    color: var(--mj-text);
    font-size: 16px;
    font-weight: 700;
}

.mj-pdp-highlights-star {
    color: var(--mj-primary);
    font-size: 15px;
}

.mj-pdp-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 16px;
}

.mj-pdp-highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.mj-pdp-highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #E6F6EA;
    font-size: 20px;
    line-height: 1;
}

.mj-pdp-highlight-label {
    color: var(--mj-muted);
    font-size: 11px;
}

.mj-pdp-highlight-value {
    color: var(--mj-text);
    font-size: 13px;
    font-weight: 700;
}

.mj-pdp-spec-list {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.mj-pdp-spec-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 0;
    border-bottom: 1px solid var(--mj-border);
}

.mj-pdp-spec-row:first-child {
    padding-top: 0;
}

.mj-pdp-spec-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.mj-pdp-spec-row dt {
    color: var(--mj-muted);
    font-size: 12px;
}

.mj-pdp-spec-row dd {
    margin: 0;
    color: var(--mj-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
}

.mj-pdp-spec-row--disclaimer dd {
    font-weight: 400;
    color: var(--mj-muted);
}

/* =========================================================
   DESCRIPTION (bullet list derived from product description)
========================================================= */

.mj-pdp-description ul {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

.mj-pdp-description li {
    margin: 6px 0;
    color: var(--mj-text);
    font-size: 13px;
    line-height: 1.6;
}

.mj-pdp-description p {
    margin: 0 0 10px;
    color: var(--mj-muted);
    font-size: 13px;
    line-height: 1.6;
}

.mj-pdp-description-body {
    overflow: hidden;
    max-height: 220px;
    transition: max-height .25s ease;
}

.mj-pdp-description.is-expanded .mj-pdp-description-body {
    max-height: 2000px;
}

.mj-pdp-info-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--mj-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.mj-pdp-info-toggle::after {
    content: '\25BE';
    font-size: 10px;
    transition: transform .2s ease;
}

.mj-pdp-description.is-expanded .mj-pdp-info-toggle::after {
    transform: rotate(180deg);
}

/* =========================================================
   STOCK MESSAGE
========================================================= */

.mj-pdp-stock {
    margin-top: 10px;
    color: var(--mj-gold-deep);
    font-size: 12px;
}

.mj-pdp-stock:empty {
    display: none;
}

.mj-pdp-stock.is-unavailable {
    color: var(--mj-primary);
    font-weight: 600;
}

/* =========================================================
   PRODUCT ACTIONS
========================================================= */

.mj-pdp-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.mj-pdp-actions button {
    display: flex;
    min-width: 0;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 15px;
    border: 1.5px solid var(--mj-primary);
    border-radius: 9px;
    background: var(--mj-primary);
    color: var(--mj-surface);
    font-size: 14px;
    font-weight: 700;
    transition: opacity .2s ease, background .2s ease;
}

.mj-pdp-actions button + button {
    background: #fff;
    color: var(--mj-primary);
}

.mj-pdp-actions button:hover {
    opacity: .88;
}

.mj-pdp-actions button:disabled {
    opacity: .42;
    cursor: not-allowed;
}

/* =========================================================
   LOWER CONTENT SECTIONS
========================================================= */

.mj-pdp-section {
    margin-top: 46px;
    padding-top: 28px;
    border-top: 1px solid var(--mj-border);
}

.mj-pdp-section > h2 {
    margin: 0 0 20px;
    color: var(--mj-text);
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 500;
}

/* =========================================================
   DELIVERY
========================================================= */

.mj-pdp-delivery-form {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    max-width: 420px;
}

.mj-pdp-delivery-form input {
    min-width: 0;
    flex: 1;
    height: 43px;
    padding: 10px 13px;
    border: 1px solid var(--mj-border);
    border-radius: 7px;
    outline: 0;
    background: var(--mj-surface);
    color: var(--mj-text);
}

.mj-pdp-delivery-form input:focus {
    border-color: var(--mj-primary);
}

.mj-pdp-delivery-form button {
    min-width: 85px;
    padding: 10px 16px;
    border: 1px solid var(--mj-primary);
    border-radius: 7px;
    background: var(--mj-primary);
    color: var(--mj-surface);
}

.mj-pdp-delivery-estimate {
    max-width: 420px;
    margin-top: 15px;
    padding: 15px 17px;
    border: 1px solid var(--mj-border);
    border-radius: 7px;
    background: var(--mj-surface);
}

.mj-pdp-delivery-estimate strong {
    display: block;
    color: var(--mj-text);
    font-size: 13px;
}

.mj-pdp-delivery-estimate p {
    margin: 6px 0;
    color: var(--mj-primary);
    font-size: 15px;
    font-weight: 700;
}

.mj-pdp-delivery-estimate small,
.mj-pdp-review small {
    color: var(--mj-muted);
    font-size: 11px;
}

#mjPdpDeliveryMessage {
    margin-top: 10px;
    color: var(--mj-muted);
    font-size: 12px;
}

/* =========================================================
   OFFERS
========================================================= */

.mj-pdp-offer {
    margin-bottom: 11px;
    padding: 17px 19px;
    border: 1px solid var(--mj-border);
    border-radius: 7px;
    background: var(--mj-surface);
}

.mj-pdp-offer strong {
    color: var(--mj-primary);
    font-size: 13px;
}

.mj-pdp-offer p {
    margin: 7px 0 0;
    color: var(--mj-text);
    font-size: 13px;
}

.mj-pdp-section > p {
    color: var(--mj-muted);
    font-size: 13px;
}

/* =========================================================
   RATINGS AND REVIEWS
========================================================= */

.mj-pdp-review-summary {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--mj-border);
    border-radius: 7px;
    background: var(--mj-surface);
}

.mj-pdp-review-summary strong {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--mj-text);
    font-size: 24px;
}

.mj-pdp-review-summary strong span,
.mj-pdp-review-heading span {
    color: var(--mj-gold-deep);
    letter-spacing: 2px;
}

.mj-pdp-review-summary p {
    margin: 5px 0 0;
    color: var(--mj-muted);
    font-size: 12px;
}

.mj-pdp-review-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.mj-pdp-review {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--mj-border);
    border-radius: 7px;
    background: var(--mj-surface);
}

.mj-pdp-review-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.mj-pdp-review-heading strong {
    color: var(--mj-text);
    font-size: 13px;
}

.mj-pdp-review-heading span {
    font-size: 12px;
    white-space: nowrap;
}

.mj-pdp-review p {
    margin: 10px 0;
    color: var(--mj-text);
    font-size: 13px;
    line-height: 1.6;
}

/* =========================================================
   SIMILAR STYLES
========================================================= */

.mj-pdp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.mj-pdp-related-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--mj-border);
    border-radius: 7px;
    background: var(--mj-surface);
    color: var(--mj-text);
    text-decoration: none;
    transition: transform .2s ease;
}

.mj-pdp-related-card:hover {
    transform: translateY(-3px);
}

.mj-pdp-related-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--mj-surface-strong);
}

.mj-pdp-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.mj-pdp-related-card:hover .mj-pdp-related-image img {
    transform: scale(1.04);
}

.mj-pdp-related-info {
    padding: 13px;
}

.mj-pdp-related-info h3 {
    margin: 0 0 8px;
    color: var(--mj-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.mj-pdp-related-info strong {
    color: var(--mj-primary);
    font-size: 13px;
}

/* =========================================================
   TOAST
========================================================= */

.mj-pdp-toast {
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 24px;
    max-width: calc(100vw - 32px);
    padding: 12px 18px;
    border-radius: 7px;
    background: var(--mj-primary);
    color: var(--mj-surface);
    font-size: 13px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);
    transition: all .2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.mj-pdp-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {
    .mj-pdp-main {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 24px;
    }

    .mj-pdp-gallery {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 10px;
    }

    .mj-pdp-thumb {
        width: 62px;
        height: 76px;
    }

    .mj-pdp-title {
        font-size: 29px;
    }

    .mj-pdp-brand {
        margin-right: 125px;
    }

    .mj-pdp-title {
        margin-right: 125px;
    }

    .mj-pdp-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {
    .mj-product-detail {
        padding: 14px 0 42px;
    }

    .mj-pdp-container {
        width: calc(100% - 28px);
    }

    .mj-pdp-breadcrumb {
        gap: 7px;
        margin-bottom: 16px;
        font-size: 11px;
    }

    .mj-pdp-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .mj-pdp-gallery {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        position: static;
        top: auto;
    }

    .mj-pdp-gallery-main {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        max-width: 100%;
        aspect-ratio: 1 / 1;
    }

    .mj-pdp-thumbnails {
        grid-column: 1;
        grid-row: 2;
        display: flex;
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 3px;
    }

    .mj-pdp-thumb {
        width: 66px;
        height: 76px;
    }

    .mj-pdp-information {
        padding-top: 2px;
    }

    .mj-pdp-brand {
        margin: 0 100px 7px 0;
        font-size: 10px;
    }

    .mj-pdp-title {
        margin-right: 92px;
        font-size: clamp(23px, 6vw, 30px);
        line-height: 1.2;
    }

    .mj-pdp-color-picker {
        top: 0;
        right: 0;
    }

    .mj-pdp-color-trigger {
        gap: 4px;
    }

    .mj-pdp-color-dots i {
        width: 16px;
        height: 16px;
    }

    .mj-pdp-price-row {
        gap: 8px;
        margin-top: 11px;
    }

    .mj-pdp-price-row strong {
        font-size: 21px;
    }

    .mj-pdp-price-row del {
        font-size: 12px;
    }

    .mj-pdp-price-row span {
        font-size: 11px;
    }

    .mj-pdp-color-section,
    .mj-pdp-size-section {
        margin-top: 15px;
    }

    .mj-pdp-highlights,
    .mj-pdp-info-card,
    .mj-pdp-description {
        margin-top: 16px;
        padding: 15px 16px;
    }

    .mj-pdp-highlights h2,
    .mj-pdp-info-card h2,
    .mj-pdp-description h2 {
        font-size: 15px;
    }

    .mj-pdp-description li {
        font-size: 12px;
    }

    .mj-pdp-actions {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        margin-top: 16px;
    }

    .mj-pdp-actions button {
        min-height: 46px;
        padding: 10px 8px;
        font-size: 12px;
    }

    .mj-pdp-section {
        margin-top: 32px;
        padding-top: 22px;
    }

    .mj-pdp-section > h2 {
        margin-bottom: 15px;
        font-size: 21px;
    }

    .mj-pdp-review-list {
        grid-template-columns: 1fr;
    }

    .mj-pdp-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .mj-pdp-related-info {
        padding: 10px;
    }

    .mj-pdp-related-info h3 {
        font-size: 12px;
    }

    .mj-pdp-color-popup {
        right: 0;
        width: min(310px, calc(100vw - 28px));
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {
    .mj-pdp-container {
        width: calc(100% - 22px);
    }

    .mj-pdp-title {
        margin-right: 86px;
        font-size: 22px;
    }

    .mj-pdp-brand {
        margin-right: 90px;
    }

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

    .mj-pdp-thumb {
        width: 58px;
        height: 68px;
    }

    .mj-pdp-color-button,
    .mj-pdp-size-button {
        min-height: 37px;
        padding: 7px 12px;
    }
}
.mj-pdp-delivery-estimate[hidden] {
    display: none !important;
}
.mj-pdp-related-image {
    overflow: hidden;
}

.mj-pdp-related-image img {
    transition: opacity .25s ease, transform .35s ease;
}

.mj-pdp-related-card:hover .mj-pdp-related-image img {
    transform: scale(1.03);
}

/* =========================================================
   MAHERA JEWELS — MOBILE PRODUCT DETAIL LAYOUT
   Desktop layout remains unchanged.
========================================================= */

@media (max-width: 760px) {

    .mj-product-detail {
        padding: 0 0 35px;
    }

    .mj-pdp-container {
        width: 100%;
        max-width: 100%;
    }

    .mj-pdp-breadcrumb {
        padding: 12px 14px;
        margin: 0;
        font-size: 10px;
        gap: 6px;
    }

    /* Main product layout */
    .mj-pdp-main {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* Gallery */
    .mj-pdp-gallery {
        display: block;
        width: 100%;
        margin: 0;
    }

    .mj-pdp-thumbnails {
        display: none !important;
    }

    .mj-pdp-gallery-main {
        position: relative;
        width: 100%;
        aspect-ratio: 3 / 4;
        overflow: hidden;
        background: var(--mj-surface-strong);
    }

    .mj-pdp-gallery-main > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .mj-pdp-best-seller {
        top: 12px;
        left: 12px;
        padding: 5px 9px;
        font-size: 9px;
    }

    .mj-pdp-image-wishlist {
        top: 12px;
        right: 12px;
        width: 35px;
        height: 35px;
        font-size: 23px;
    }

    /* Product information */
    .mj-pdp-information {
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
        padding: 15px 13px 18px;
        gap: 0;
    }

    .mj-pdp-brand {
        order: 1;
        margin: 0 95px 5px 0;
        font-size: 9px;
        letter-spacing: .12em;
    }

    .mj-pdp-title {
        order: 2;
        margin: 0 85px 0 0;
        font-size: 19px;
        line-height: 1.35;
    }

    .mj-pdp-color-picker {
        top: 12px;
        right: 13px;
        z-index: 10;
    }

    .mj-pdp-color-trigger {
        gap: 4px;
    }

    .mj-pdp-color-dots i {
        width: 14px;
        height: 14px;
    }

    .mj-pdp-color-trigger > span:last-child {
        padding: 3px 7px;
        font-size: 9px;
    }

    .mj-pdp-color-popup {
        position: fixed;
        z-index: 9998;
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 65dvh;
        overflow-y: auto;
        padding: 18px 15px 25px;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, .16);
    }

    .mj-pdp-popup-colors {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mj-pdp-popup-color {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 8px;
    }

    .mj-pdp-popup-color img {
        order: -1;
        width: 100%;
        height: 115px;
        margin: 0;
        border-radius: 6px;
    }

    .mj-pdp-popup-swatch {
        width: 17px;
        height: 17px;
    }

    .mj-pdp-popup-color-name {
        font-size: 11px;
    }

    .mj-pdp-price-row {
        order: 3;
        margin-top: 9px;
        gap: 7px;
    }

    .mj-pdp-price-row strong {
        font-size: 19px;
    }

    .mj-pdp-price-row del {
        font-size: 11px;
    }

    .mj-pdp-price-row span {
        font-size: 10px;
    }

    .mj-pdp-color-section {
        order: 4;
        margin-top: 15px;
    }

    .mj-pdp-size-section {
        order: 5;
        margin-top: 13px;
    }

    .mj-pdp-color-section > strong,
    .mj-pdp-size-section > strong {
        margin-bottom: 8px;
        font-size: 12px;
    }

    .mj-pdp-color-buttons,
    .mj-pdp-size-buttons {
        gap: 8px;
    }

    .mj-pdp-color-button,
    .mj-pdp-size-button {
        min-height: 36px;
        padding: 7px 13px;
        font-size: 11px;
    }

    .mj-pdp-stock {
        order: 6;
        margin-top: 10px;
        font-size: 11px;
    }

    /* Actions appear before Product Details */
    .mj-pdp-actions {
        order: 7;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        margin-top: 17px;
    }

    .mj-pdp-actions button {
        min-height: 44px;
        padding: 10px 7px;
        font-size: 11px;
        border-radius: 5px;
    }

    .mj-pdp-highlights,
    .mj-pdp-info-card,
    .mj-pdp-description {
        order: 8;
        margin-top: 14px;
        padding: 14px 13px;
        border-radius: 8px;
        background: var(--mj-surface);
    }

    .mj-pdp-highlights h2,
    .mj-pdp-info-card h2,
    .mj-pdp-description h2 {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .mj-pdp-description ul {
        padding-left: 17px;
    }

    .mj-pdp-description li {
        margin: 6px 0;
        font-size: 11px;
        line-height: 1.55;
    }

    .mj-pdp-description p {
        font-size: 11px;
    }

    .mj-pdp-spec-row dt {
        font-size: 11px;
    }

    .mj-pdp-spec-row dd {
        font-size: 12px;
    }

    /* Lower sections */
    .mj-pdp-section {
        margin: 0 12px;
        padding: 18px 0;
        border-top: 1px solid var(--mj-border);
    }

    .mj-pdp-section > h2 {
        margin-bottom: 13px;
        font-size: 17px;
    }

    /* Delivery */
    .mj-pdp-delivery-form {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
        gap: 7px;
    }

    .mj-pdp-delivery-form input {
        width: 0;
        min-width: 0;
        flex: 1;
        height: 40px;
        font-size: 12px;
    }

    .mj-pdp-delivery-form button {
        min-width: 70px;
        padding: 8px 12px;
        font-size: 11px;
    }

    .mj-pdp-delivery-estimate {
        width: 100%;
        max-width: 100%;
        margin-top: 11px;
        padding: 12px;
    }

    .mj-pdp-delivery-estimate strong {
        font-size: 12px;
    }

    .mj-pdp-delivery-estimate p {
        font-size: 14px;
    }

    /* Offers */
    .mj-pdp-offer {
        margin-bottom: 8px;
        padding: 12px;
    }

    .mj-pdp-offer strong,
    .mj-pdp-offer p {
        font-size: 11px;
    }

    /* Reviews */
    .mj-pdp-review-summary {
        margin-bottom: 10px;
        padding: 12px;
    }

    .mj-pdp-review-summary strong {
        font-size: 21px;
        gap: 8px;
    }

    .mj-pdp-review-summary p {
        font-size: 10px;
    }

    .mj-pdp-review-list {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .mj-pdp-review {
        padding: 12px;
    }

    .mj-pdp-review-heading strong {
        font-size: 11px;
    }

    .mj-pdp-review-heading span {
        font-size: 10px;
    }

    .mj-pdp-review p {
        font-size: 11px;
        line-height: 1.5;
    }

    /* Similar styles */
    .mj-pdp-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mj-pdp-related-card {
        border-radius: 7px;
    }

    .mj-pdp-related-image {
        aspect-ratio: 1 / 1.15;
    }

    .mj-pdp-related-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mj-pdp-related-info {
        padding: 9px;
    }

    .mj-pdp-related-info h3 {
        margin-bottom: 5px;
        font-size: 10px;
        line-height: 1.4;
    }

    .mj-pdp-related-info strong {
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .mj-pdp-actions {
        grid-template-columns: 1fr 1fr;
    }

    .mj-pdp-title {
        font-size: 18px;
    }

    .mj-pdp-related-grid {
        gap: 8px;
    }
}

/* Delivery estimate must remain hidden until valid pincode submit */
.mj-pdp-delivery-estimate[hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    .mj-pdp-color-popup {
        position: fixed;
        z-index: 9998;
        top: auto;
        right: 12px;
        bottom: 65px;
        left: 12px;
        width: auto;
        max-width: 420px;
        max-height: 38dvh;
        margin-inline: auto;
        padding: 13px;
        overflow-y: auto;
        border-radius: 12px;
        background: var(--mj-surface);
        box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
    }

    .mj-pdp-popup-heading {
        margin-bottom: 10px;
        font-size: 13px;
    }

    .mj-pdp-popup-colors {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .mj-pdp-popup-color {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-width: 0;
        min-height: 0;
        gap: 6px;
        padding: 7px;
    }

    .mj-pdp-popup-color img {
        display: block;
        width: 100%;
        height: 85px;
        margin: 0;
        object-fit: cover;
        border-radius: 6px;
    }

    .mj-pdp-popup-color-name {
        font-size: 11px;
    }

    .mj-pdp-popup-swatch {
        width: 15px;
        height: 15px;
    }
}

.mj-pdp-toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    z-index: 999999;
    display: none;
    width: max-content;
    max-width: calc(100% - 32px);
    padding: 14px 24px;
    border-radius: 8px;
    background: #57002f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}
/* Product Detail Wishlist - Final UI */

.mj-pdp-image-wishlist {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;

    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 50% !important;

    color: #333333 !important;
    font-family: Arial, sans-serif;
    font-size: 27px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    cursor: pointer !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
    transition: transform 0.2s ease, color 0.2s ease;
}

.mj-pdp-image-wishlist.is-active {
    background: #ffffff !important;
    color: #e00035 !important;
    border-color: rgba(224, 0, 53, 0.15) !important;
    font-size: 27px !important;
}

.mj-pdp-image-wishlist:hover {
    background: #ffffff !important;
    color: #e00035 !important;
    transform: scale(1.06);
}

.mj-pdp-image-wishlist:active {
    transform: scale(0.94);
}

.mj-pdp-image-wishlist:disabled {
    opacity: 1 !important;
    cursor: pointer !important;
}

.mj-pdp-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.mj-pdp-reviews-header h2 {
    margin: 8px 0 0;
}

.mj-review-eyebrow {
    color: var(--mj-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.mj-pdp-write-review {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    color: #fff;
    background: var(--mj-primary);
    border: 1px solid var(--mj-primary);
    border-radius: 30px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: .2s ease;
}

.mj-pdp-write-review:hover {
    color: #fff;
    background: var(--mj-primary-deep);
}

.mj-pdp-review-summary {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 35px;
    padding: 25px;
    margin-bottom: 15px;
    background: var(--mj-surface);
    border: 1px solid var(--mj-border);
    border-radius: 12px;
}

.mj-pdp-review-average {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.mj-pdp-review-average > strong {
    color: var(--mj-text);
    font-family: Georgia, serif;
    font-size: 42px;
    font-weight: 500;
}

.mj-pdp-review-average > span,
.mj-pdp-review-stars {
    color: var(--mj-gold);
    letter-spacing: 3px;
}

.mj-pdp-review-average p {
    margin: 7px 0 0;
    color: var(--mj-muted);
    font-size: 12px;
}

.mj-pdp-rating-breakdown {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
}

.mj-pdp-rating-row {
    display: grid;
    grid-template-columns: 42px 1fr 25px;
    align-items: center;
    gap: 10px;
    color: var(--mj-muted);
    font-size: 11px;
}

.mj-pdp-rating-track {
    height: 7px;
    overflow: hidden;
    background: var(--mj-background);
    border-radius: 10px;
}

.mj-pdp-rating-track span {
    display: block;
    height: 100%;
    background: var(--mj-gold);
    border-radius: inherit;
}

.mj-pdp-review {
    padding: 22px 0;
    border-bottom: 1px solid var(--mj-border);
}

.mj-pdp-review-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.mj-pdp-review-heading strong {
    color: var(--mj-text);
    font-size: 14px;
}

.mj-pdp-review-heading > small {
    color: var(--mj-muted);
    font-size: 11px;
}

.mj-pdp-review-stars {
    margin-top: 6px;
    font-size: 13px;
}

.mj-pdp-review-title {
    margin: 13px 0 5px;
    color: var(--mj-text);
    font-size: 14px;
}

.mj-pdp-review > p {
    margin: 12px 0;
    color: var(--mj-muted);
    font-size: 13px;
    line-height: 1.8;
}

.mj-pdp-review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.mj-pdp-review-images img {
    width: 75px;
    height: 85px;
    object-fit: cover;
    border: 1px solid var(--mj-border);
    border-radius: 8px;
}

.mj-pdp-verified {
    color: var(--mj-success);
    font-size: 11px;
    font-weight: 600;
}

.mj-pdp-no-reviews {
    padding: 40px 15px;
    text-align: center;
}

.mj-pdp-no-reviews > span {
    color: var(--mj-gold);
    font-size: 32px;
}

.mj-pdp-no-reviews h3 {
    margin: 10px 0;
    color: var(--mj-text);
    font-family: Georgia, serif;
    font-size: 21px;
    font-weight: 500;
}

.mj-pdp-no-reviews p {
    color: var(--mj-muted);
    font-size: 13px;
}

.mj-pdp-review-pagination {
    margin-top: 20px;
}

@media (max-width: 600px) {
    .mj-pdp-reviews-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .mj-pdp-review-summary {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 18px;
    }

    .mj-pdp-review-average {
        align-items: center;
    }

    .mj-pdp-review-heading {
        flex-direction: column;
        gap: 7px;
    }
}

/* =========================================================
   MAHERA JEWELS — PRODUCT RATINGS & REVIEWS
   Screenshot-matched layout using existing theme variables
========================================================= */

.mj-pdp-reviews-section {
    margin-top: 28px;
    padding-top: 0;
    border-top: 0;
}

.mj-pdp-reviews-card {
    width: 100%;
    padding: 24px;
    border: 1px solid var(--mj-border);
    border-radius: 12px;
    background: var(--mj-surface);
}

.mj-pdp-reviews-card > h2 {
    margin: 0 0 22px;
    color: var(--mj-primary);
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

/* Rating summary */

.mj-pdp-review-summary {
    display: grid;
    grid-template-columns: 205px minmax(0, 1fr);
    align-items: center;
    gap: 38px;
    padding: 0 0 26px;
    margin: 0;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--mj-border);
    background: transparent;
}

.mj-pdp-review-average {
    display: flex;
    min-height: 110px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--mj-border);
    text-align: center;
}

.mj-pdp-review-average > strong {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--mj-primary);
    font-family: Georgia, serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
}

.mj-pdp-review-average > strong span {
    color: var(--mj-gold);
    font-family: Arial, sans-serif;
    font-size: 29px;
}

.mj-pdp-review-average p {
    margin: 8px 0 0;
    color: var(--mj-muted);
    font-size: 12px;
}

/* Rating breakdown */

.mj-pdp-rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.mj-pdp-rating-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) 25px;
    align-items: center;
    gap: 12px;
    color: var(--mj-text);
    font-size: 12px;
}

.mj-pdp-rating-label {
    white-space: nowrap;
}

.mj-pdp-rating-track {
    height: 8px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--mj-background);
}

.mj-pdp-rating-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--mj-gold);
    transition: width .3s ease;
}

.mj-pdp-rating-row small {
    color: var(--mj-text);
    font-size: 12px;
    text-align: right;
}

/* Customer reviews */

.mj-pdp-customer-reviews {
    padding-top: 22px;
}

.mj-pdp-customer-reviews > h3 {
    margin: 0 0 16px;
    color: var(--mj-primary);
    font-size: 16px;
    font-weight: 700;
}

.mj-pdp-review-list {
    display: block;
}

.mj-pdp-review {
    min-width: 0;
    padding: 17px;
    border: 1px solid var(--mj-border);
    border-radius: 10px;
    background: var(--mj-surface);
}

.mj-pdp-review[hidden] {
    display: none !important;
}

.mj-pdp-review-heading {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.mj-pdp-review-customer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.mj-pdp-review-heading strong {
    color: var(--mj-text);
    font-size: 13px;
    font-weight: 700;
}

.mj-pdp-review-stars {
    margin: 0;
    color: var(--mj-gold);
    font-size: 13px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.mj-pdp-review-heading > small {
    flex-shrink: 0;
    color: var(--mj-muted);
    font-size: 10px;
}

.mj-pdp-review-title {
    margin: 12px 0 5px;
    color: var(--mj-primary);
    font-size: 14px;
    font-weight: 700;
}

.mj-pdp-review > p {
    margin: 10px 0 0;
    color: var(--mj-muted);
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

/* Customer uploaded photos */

.mj-pdp-review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 14px 0 0;
}

.mj-pdp-review-images a {
    display: block;
    width: 65px;
    height: 72px;
    overflow: hidden;
    border: 1px solid var(--mj-border);
    border-radius: 7px;
    background: var(--mj-background);
}

.mj-pdp-review-images img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.mj-pdp-review-images a:hover img {
    transform: scale(1.06);
}

/* Verified and edit review */

.mj-pdp-review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.mj-pdp-verified {
    color: var(--mj-success);
    font-size: 11px;
    font-weight: 600;
}

.mj-pdp-edit-review {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--mj-primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.mj-pdp-edit-review:hover {
    color: var(--mj-primary-deep);
    text-decoration: underline;
}

/* Review navigation */

.mj-pdp-review-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.mj-pdp-review-navigation button {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 1px solid var(--mj-border);
    border-radius: 50%;
    background: var(--mj-surface);
    color: var(--mj-primary);
    font-size: 23px;
    line-height: 1;
    transition: background .2s ease, color .2s ease;
}

.mj-pdp-review-navigation button:not(:disabled):hover {
    border-color: var(--mj-primary);
    background: var(--mj-primary);
    color: var(--mj-surface);
}

.mj-pdp-review-navigation button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.mj-pdp-review-counter {
    color: var(--mj-muted);
    font-size: 11px;
}

/* Empty state */

.mj-pdp-no-reviews {
    padding: 30px 15px;
    text-align: center;
    border: 1px solid var(--mj-border);
    border-radius: 9px;
    background: var(--mj-surface);
}

.mj-pdp-no-reviews > span {
    color: var(--mj-gold);
    font-size: 30px;
}

.mj-pdp-no-reviews h3 {
    margin: 9px 0;
    color: var(--mj-primary);
    font-family: Georgia, serif;
    font-size: 19px;
}

.mj-pdp-no-reviews p {
    margin: 0;
    color: var(--mj-muted);
    font-size: 12px;
}

/* Mobile */

@media (max-width: 760px) {

    .mj-pdp-reviews-section {
        margin: 0 12px;
        padding: 18px 0;
    }

    .mj-pdp-reviews-card {
        padding: 15px;
        border-radius: 9px;
    }

    .mj-pdp-reviews-card > h2 {
        margin-bottom: 17px;
        font-size: 17px;
    }

    .mj-pdp-review-summary {
        grid-template-columns: 1fr;
        gap: 17px;
        padding-bottom: 19px;
    }

    .mj-pdp-review-average {
        min-height: auto;
        padding-bottom: 14px;
        border-right: 0;
        border-bottom: 1px solid var(--mj-border);
    }

    .mj-pdp-review-average > strong {
        font-size: 34px;
    }

    .mj-pdp-rating-breakdown {
        gap: 11px;
    }

    .mj-pdp-rating-row {
        grid-template-columns: 78px minmax(0, 1fr) 20px;
        gap: 8px;
        font-size: 10px;
    }

    .mj-pdp-customer-reviews {
        padding-top: 17px;
    }

    .mj-pdp-customer-reviews > h3 {
        font-size: 14px;
    }

    .mj-pdp-review {
        padding: 13px;
    }

    .mj-pdp-review-heading {
        flex-direction: row;
        align-items: flex-start;
    }

    .mj-pdp-review-heading strong {
        font-size: 12px;
    }

    .mj-pdp-review-heading > small {
        font-size: 9px;
    }

    .mj-pdp-review > p {
        font-size: 12px;
    }

    .mj-pdp-review-images a {
        width: 55px;
        height: 62px;
    }
}

.mj-pdp-related-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    background: var(--mj-surface-strong);
    color: var(--mj-muted);
    font-family: Georgia, serif;
    font-size: 17px;
    letter-spacing: 1px;
}

/* DELIVERY DETAILS - REFERENCE UI */

#mjPdpDelivery.mj-pdp-delivery-card {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid var(--mj-border);
    border-radius: 11px;
    background: var(--mj-surface);
}

#mjPdpDelivery.mj-pdp-delivery-card > h2 {
    margin: 0 0 16px;
    color: var(--mj-text);
    font-family: var(--mj-font-body);
    font-size: 15px;
    font-weight: 700;
}

#mjPdpDelivery .mj-pdp-delivery-form {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.mj-pdp-pincode-field {
    position: relative;
    flex: 1;
    min-width: 0;
}

.mj-pdp-pincode-field svg {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: var(--mj-primary);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translateY(-50%);
    pointer-events: none;
}

#mjPdpDelivery .mj-pdp-pincode-field input {
    width: 100%;
    height: 43px;
    padding: 10px 13px 10px 38px;
    border: 1px solid var(--mj-border);
    border-radius: 5px;
    outline: none;
    background: var(--mj-surface);
    color: var(--mj-text);
    font-size: 13px;
}

#mjPdpDelivery .mj-pdp-pincode-field input:focus {
    border-color: var(--mj-primary);
}

#mjPdpDelivery .mj-pdp-delivery-form button {
    flex: 0 0 78px;
    min-width: 78px;
    height: 43px;
    padding: 0 15px;
    border: 1px solid var(--mj-gold);
    border-radius: 5px;
    background: var(--mj-gold);
    color: var(--mj-primary-deep);
    font-size: 12px;
    font-weight: 700;
}

#mjPdpDelivery .mj-pdp-delivery-form button:hover {
    background: var(--mj-gold-deep);
    border-color: var(--mj-gold-deep);
}

#mjPdpDeliveryMessage {
    margin: 8px 0 0;
    color: var(--mj-primary);
    font-size: 12px;
}

#mjPdpDeliveryMessage:empty {
    display: none;
}

.mj-pdp-delivery-benefits {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 14px;
}

.mj-pdp-delivery-benefit {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--mj-muted);
    font-size: 13px;
    line-height: 1.4;
}

.mj-pdp-delivery-benefit svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: var(--mj-primary);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mj-pdp-delivery-date {
    color: var(--mj-success);
}

.mj-pdp-delivery-date svg {
    stroke: var(--mj-success);
}

.mj-pdp-delivery-date strong {
    color: var(--mj-success);
    font-weight: 600;
}

#mjPdpDeliveryEstimate[hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    #mjPdpDelivery.mj-pdp-delivery-card {
        margin: 18px 12px 0;
        padding: 15px;
        border-radius: 9px;
    }

    #mjPdpDelivery.mj-pdp-delivery-card > h2 {
        margin-bottom: 13px;
        font-size: 14px;
    }

    #mjPdpDelivery .mj-pdp-delivery-form {
        gap: 7px;
    }

    #mjPdpDelivery .mj-pdp-pincode-field input {
        height: 41px;
        font-size: 12px;
    }

    #mjPdpDelivery .mj-pdp-delivery-form button {
        flex-basis: 68px;
        min-width: 68px;
        height: 41px;
        padding: 0 10px;
        font-size: 11px;
    }

    .mj-pdp-delivery-benefits {
        gap: 10px;
        margin-top: 13px;
    }

    .mj-pdp-delivery-benefit {
        gap: 8px;
        font-size: 11px;
    }
}

/* =========================================================
   SIMILAR STYLES — COMPACT RESPONSIVE CARDS
   Scoped only to Similar Styles. Existing functionality safe.
========================================================= */

#mjPdpSimilar .mj-pdp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 270px));
    gap: 20px;
    align-items: start;
}

#mjPdpSimilar .mj-pdp-related-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--mj-border);
    border-radius: 9px;
    background: var(--mj-surface);
}

#mjPdpSimilar .mj-pdp-related-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #ffffff;
}

#mjPdpSimilar .mj-pdp-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
    object-position: center;
    transition: transform .3s ease;
}

#mjPdpSimilar .mj-pdp-related-card:hover .mj-pdp-related-image img {
    transform: scale(1.03);
}

#mjPdpSimilar .mj-pdp-related-info {
    padding: 12px;
}

#mjPdpSimilar .mj-pdp-related-info h3 {
    display: -webkit-box;
    min-height: 38px;
    margin: 0 0 7px;
    overflow: hidden;
    color: var(--mj-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#mjPdpSimilar .mj-pdp-related-info strong {
    color: var(--mj-primary);
    font-size: 14px;
}

/* Tablet */
@media (max-width: 1024px) {
    #mjPdpSimilar .mj-pdp-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px;
    }
}

/* Mobile */
@media (max-width: 760px) {
    #mjPdpSimilar .mj-pdp-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #mjPdpSimilar .mj-pdp-related-image {
        aspect-ratio: 1 / 1;
    }

    #mjPdpSimilar .mj-pdp-related-image img {
        padding: 7px;
    }

    #mjPdpSimilar .mj-pdp-related-info {
        padding: 9px;
    }

    #mjPdpSimilar .mj-pdp-related-info h3 {
        min-height: 34px;
        font-size: 11px;
    }

    #mjPdpSimilar .mj-pdp-related-info strong {
        font-size: 12px;
    }
}

/* Product gallery image quality and sizing fix */
.mj-pdp-gallery-main {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    overflow: hidden;
    background: #fff;
}

.mj-pdp-gallery-main > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center;
}

/* Keep thumbnails proportional */
.mj-pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Mobile */
@media (max-width: 760px) {
    .mj-pdp-gallery-main {
        max-width: 100%;
        max-height: 380px;
        aspect-ratio: 1 / 1;
        background: #fff;
    }

    .mj-pdp-gallery-main > img {
        object-fit: contain !important;
    }
}

/* =========================================================
   GROCERY MART — RELATED PRODUCTS
   Isolated styling: cart drawer cannot affect these cards.
   Existing --mj theme variables only.
========================================================= */

#mjPdpSimilar {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 48px;
    padding-top: 30px;
    border-top: 1px solid var(--mj-border);
}

#mjPdpSimilar > h2 {
    margin: 0 0 24px;
    color: var(--mj-text);
    font-family: var(--mj-font-body);
    font-size: clamp(21px, 2vw, 27px);
    font-weight: 700;
    line-height: 1.3;
}

#mjPdpSimilar .mj-pdp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

#mjPdpSimilar .mj-pdp-related-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--mj-border);
    border-radius: var(--mj-radius-lg);
    background: var(--mj-background);
    color: var(--mj-text);
    text-decoration: none;
    box-shadow: var(--mj-shadow-sm);
    transition:
        transform var(--mj-transition),
        box-shadow var(--mj-transition),
        border-color var(--mj-transition);
}

#mjPdpSimilar .mj-pdp-related-card:hover {
    transform: translateY(-5px);
    border-color: var(--mj-primary);
    box-shadow: var(--mj-shadow-md);
}

#mjPdpSimilar .mj-pdp-related-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--mj-surface);
}

#mjPdpSimilar .mj-pdp-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 300ms ease;
}

#mjPdpSimilar .mj-pdp-related-card:hover
.mj-pdp-related-image img {
    transform: scale(1.06);
}

#mjPdpSimilar .mj-pdp-related-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: var(--mj-surface);
    color: var(--mj-muted);
}

#mjPdpSimilar .mj-pdp-related-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    background: var(--mj-surface);
}

#mjPdpSimilar .mj-pdp-related-info h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--mj-text);
    font-family: var(--mj-font-body);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#mjPdpSimilar .mj-pdp-related-info strong {
    display: block;
    color: var(--mj-primary);
    font-size: 16px;
    font-weight: 800;
}

#mjPdpSimilar .mj-pdp-related-card:focus-visible {
    outline: 2px solid var(--mj-primary);
    outline-offset: 4px;
}

@media (max-width: 1024px) {
    #mjPdpSimilar .mj-pdp-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 600px) {
    #mjPdpSimilar {
        margin-top: 30px;
        padding-top: 22px;
    }

    #mjPdpSimilar .mj-pdp-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    #mjPdpSimilar .mj-pdp-related-info {
        padding: 12px;
    }

    #mjPdpSimilar .mj-pdp-related-info h3 {
        font-size: 12px;
    }

    #mjPdpSimilar .mj-pdp-related-info strong {
        font-size: 14px;
    }
}
