/* ============================================================================
   Siratullah Lifestyle — Product detail page (PDP)
   Layout modelled on the Sana Safinaz product page; palette/typography stay
   with the Monsoon Atelier design system. Loads after monsoon*.css so it can
   override. All classes are prefixed `ms-pdp-` to avoid collisions.
   ========================================================================== */

.ms-pdp {
    --pdp-ivory: var(--ms-ivory, #fbf8f2);
    --pdp-line: #e4dbcc;
    --pdp-line-soft: #efe8dc;
    --pdp-ink: var(--ms-ink, #123a5a);
    --pdp-ink-deep: var(--ms-ink-deep, #0f304b);
    --pdp-ink-hover: var(--ms-ink-hover, #174a70);
    --pdp-gold: var(--ms-marigold, #d4a252);
    --pdp-bronze: var(--ms-bronze, #9e7135);
    --pdp-text: var(--ms-text, #243746);
    --pdp-muted: var(--ms-muted, #596b78);
    --pdp-serif: var(--ms-serif, 'DM Serif Display', Georgia, serif);
    --pdp-sans: var(--ms-sans, 'Manrope', 'Nunito Sans', sans-serif);
    --pdp-radius: 2px;

    background: var(--pdp-ivory);
    color: var(--pdp-text);
    font-family: var(--pdp-sans);
    padding-bottom: 4rem;
}

/* extra room so the sticky mobile bar never covers content */
@media (max-width: 767.98px) {
    .ms-pdp {
        padding-bottom: 6.5rem;
    }
}

.ms-pdp img {
    display: block;
    max-width: 100%;
}

/* ---------------------------------------------------------------- Breadcrumb */
.ms-pdp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    padding: 1.25rem 0 .25rem;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--pdp-muted);
}

.ms-pdp-breadcrumb a {
    color: var(--pdp-muted);
    text-decoration: none;
    transition: color .2s ease;
}

.ms-pdp-breadcrumb a:hover {
    color: var(--pdp-ink);
}

.ms-pdp-breadcrumb-current {
    color: var(--pdp-ink);
    font-weight: 700;
}

/* ------------------------------------------------------------------ Hero grid */
.ms-pdp-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.25rem;
}

@media (min-width: 992px) {
    .ms-pdp-hero {
        grid-template-columns: 55fr 45fr;
        gap: 3.25rem;
        align-items: start;
    }
}

/* -------------------------------------------------------------------- Gallery */
.ms-pdp-gallery {
    display: flex;
    flex-direction: column-reverse;
    gap: .75rem;
}

@media (min-width: 992px) {
    .ms-pdp-gallery {
        flex-direction: row;
        gap: 1rem;
        position: sticky;
        top: 5rem;
    }
}

.ms-pdp-stage {
    flex: 1 1 auto;
    min-width: 0;
}

.ms-pdp-stage-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    background: var(--ms-card, #f5f0e8);
    border: 1px solid var(--pdp-line-soft);
    border-radius: var(--pdp-radius);
    overflow: hidden;
}

/* aspect-ratio fallback for older browsers */
@supports not (aspect-ratio: 2 / 3) {
    .ms-pdp-stage-frame {
        height: 0;
        padding-bottom: 150%;
    }
}

.ms-pdp-stage-frame > img,
.ms-pdp-stage-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ms-pdp-stage-frame > img {
    object-fit: cover;
    object-position: top center;
}

.ms-pdp-stage-video {
    background: #000;
}

.ms-pdp-stage-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Badges */
.ms-pdp-badges {
    position: absolute;
    top: .85rem;
    left: .85rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    z-index: 2;
}

.ms-pdp-badge {
    display: inline-block;
    padding: .3rem .6rem;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: 999px;
    line-height: 1;
}

.ms-pdp-badge-sale {
    background: var(--pdp-ink);
    color: #fff;
}

.ms-pdp-badge-sold {
    background: #f7f3ea;
    color: var(--pdp-bronze);
    border: 1px solid var(--pdp-line);
}

/* Thumbnails — horizontal row on mobile, vertical strip on desktop */
.ms-pdp-thumbs {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .25rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.ms-pdp-thumbs::-webkit-scrollbar {
    height: 4px;
}

.ms-pdp-thumbs::-webkit-scrollbar-thumb {
    background: var(--pdp-line);
    border-radius: 999px;
}

@media (min-width: 992px) {
    .ms-pdp-thumbs {
        flex: 0 0 86px;
        flex-direction: column;
        overflow-x: visible;
        overflow-y: auto;
        max-height: calc(100vh - 8rem);
        scroll-snap-type: none;
        padding-right: .2rem;
    }
}

.ms-pdp-thumb {
    position: relative;
    flex: 0 0 68px;
    width: 68px;
    padding: 0;
    background: var(--ms-card, #f5f0e8);
    border: 1px solid var(--pdp-line-soft);
    border-radius: var(--pdp-radius);
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    transition: border-color .2s ease, opacity .2s ease;
    opacity: .78;
}

@media (min-width: 992px) {
    .ms-pdp-thumb {
        flex: 0 0 auto;
        width: 100%;
    }
}

.ms-pdp-thumb img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: top center;
}

@supports not (aspect-ratio: 2 / 3) {
    .ms-pdp-thumb img {
        height: 102px;
    }
}

.ms-pdp-thumb:hover,
.ms-pdp-thumb:focus-visible {
    opacity: 1;
    border-color: var(--pdp-gold);
    outline: none;
}

.ms-pdp-thumb.is-active {
    opacity: 1;
    border-color: var(--pdp-ink);
}

.ms-pdp-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 58, 90, .38);
    color: #fff;
    font-size: .85rem;
}

.ms-pdp-watch-video {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .7rem;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--pdp-ink);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}

.ms-pdp-watch-video:hover {
    color: var(--pdp-bronze);
}

/* ------------------------------------------------------------ Purchase panel */
.ms-pdp-panel {
    min-width: 0;
}

.ms-pdp-vendor {
    margin: 0 0 .35rem;
    font-size: .66rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--pdp-bronze);
    font-weight: 800;
}

.ms-pdp .ms-pdp-title {
    margin: 0;
    font-family: var(--pdp-serif);
    font-size: clamp(1.6rem, 4.4vw, 2.35rem);
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    color: var(--pdp-ink-deep);
}

/* -------------------------------------------------------------------- SKU */
.ms-pdp-sku {
    margin: .5rem 0 0;
    font-size: .66rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--pdp-muted);
    opacity: .6;
}

/* Price block */
.ms-pdp-price {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    margin-top: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--pdp-line-soft);
}

.ms-pdp-price-label {
    display: block;
    font-size: .6rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pdp-muted);
    margin-bottom: .15rem;
}

.ms-pdp-price-now strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pdp-ink-deep);
    letter-spacing: .01em;
}

.ms-pdp-price-compare del {
    font-size: 1.05rem;
    color: var(--pdp-muted);
    text-decoration-thickness: 1px;
}

.ms-pdp-price-off {
    align-self: center;
    padding: .25rem .55rem;
    background: var(--pdp-ink);
    color: #fff;
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .08em;
}

/* Spec block (Colour: / Fabric: / Trouser: ...) */
.ms-pdp-specs {
    margin: 1.25rem 0 0;
    padding: 1rem 1.1rem;
    background: #f7f3ea;
    border: 1px solid var(--pdp-line-soft);
    border-radius: var(--pdp-radius);
    display: grid;
    gap: .4rem;
}

.ms-pdp-spec-row {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    font-size: .86rem;
    line-height: 1.5;
}

.ms-pdp-spec-row dt {
    margin: 0;
    font-weight: 800;
    color: var(--pdp-ink-deep);
}

.ms-pdp-spec-row dd {
    margin: 0;
    color: var(--pdp-text);
}

/* ---------------------------------------------------------- Choices (form) */
.ms-pdp-form {
    margin-top: 1.5rem;
}

.ms-pdp-choice {
    margin-bottom: 1.4rem;
}

.ms-pdp-choice-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.ms-pdp-choice-title {
    margin: 0;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pdp-ink-deep);
}

.ms-pdp-choice-value {
    letter-spacing: .04em;
    text-transform: none;
    color: var(--pdp-muted);
    font-weight: 600;
}

.ms-pdp-size-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--pdp-bronze);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ms-pdp-size-link:hover {
    color: var(--pdp-ink);
}

/* colour swatches */
.ms-pdp-swatches,
.ms-pdp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .65rem;
}

.ms-pdp-swatch {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    padding: .3rem .65rem .3rem .35rem;
    background: #fff;
    border: 1px solid var(--pdp-line);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ms-pdp-swatch input,
.ms-pdp-chip input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* The `.ms-color-choice` JS hook is also styled by monsoon-v2.css as a bare
   round button; these longer selectors keep the labelled pill layout. */
.ms-pdp .ms-pdp-swatch.ms-color-choice,
.ms-pdp .ms-pdp-chip.ms-color-choice {
    display: inline-flex;
    place-items: initial;
    height: auto;
    width: auto;
    transform: none;
}

.ms-pdp .ms-pdp-swatch.ms-color-choice {
    border-radius: 999px;
    padding: .3rem .65rem .3rem .35rem;
    background: #fff;
}

.ms-pdp .ms-pdp-swatch-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(18, 58, 90, .18);
    box-shadow: none;
    flex: 0 0 auto;
}

.ms-pdp .ms-pdp-swatch-name {
    height: auto;
    width: auto;
    border-radius: 0;
    box-shadow: none;
    font-size: .74rem;
    font-weight: 700;
    color: var(--pdp-text);
    white-space: nowrap;
}

.ms-pdp .ms-pdp-chip.ms-color-choice > span {
    height: auto;
    width: auto;
    border-radius: 0;
    box-shadow: none;
}

.ms-pdp-swatch:hover {
    border-color: var(--pdp-gold);
}

.ms-pdp-swatch.active {
    border-color: var(--pdp-ink);
    box-shadow: inset 0 0 0 1px var(--pdp-ink);
}

/* text chips (sizes, and colours without hexes) */
.ms-pdp-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-width: 2.9rem;
    padding: .55rem .85rem;
    background: #fff;
    border: 1px solid var(--pdp-line);
    border-radius: var(--pdp-radius);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--pdp-text);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.ms-pdp-chip:hover {
    border-color: var(--pdp-ink);
}

.ms-pdp-chip.active {
    background: var(--pdp-ink);
    border-color: var(--pdp-ink);
    color: #fff;
}

/* quantity stepper */
.ms-pdp-qty-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0 1.25rem;
    border-top: 1px solid var(--pdp-line-soft);
}

.ms-pdp-qty-hint {
    margin: .3rem 0 0;
    font-size: .78rem;
    color: var(--pdp-muted);
}

.ms-pdp-qty-hint span {
    font-weight: 800;
    color: var(--pdp-ink-deep);
}

.ms-pdp-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--pdp-line);
    border-radius: var(--pdp-radius);
    background: #fff;
    overflow: hidden;
}

.ms-pdp-stepper-btn {
    width: 2.5rem;
    height: 2.7rem;
    background: transparent;
    border: 0;
    color: var(--pdp-ink, var(--ms-ink, #123a5a));
    font-size: .7rem;
    cursor: pointer;
    transition: background .2s ease;
}

.ms-pdp-stepper-btn:hover {
    background: #f2ece2;
}

.ms-pdp-stepper-input {
    width: 3.1rem;
    height: 2.7rem;
    border: 0;
    border-left: 1px solid var(--pdp-line-soft);
    border-right: 1px solid var(--pdp-line-soft);
    text-align: center;
    font-weight: 800;
    font-size: .92rem;
    color: var(--pdp-ink-deep);
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
}

.ms-pdp-stepper-input::-webkit-outer-spin-button,
.ms-pdp-stepper-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ms-pdp-stepper-input:focus {
    outline: none;
}

/* ------------------------------------------------------------------- Buttons */
.ms-pdp-actions {
    display: grid;
    gap: .6rem;
}

.ms-pdp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    min-height: 3.1rem;
    padding: .85rem 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--pdp-radius, 2px);
    font-family: var(--pdp-sans, var(--ms-sans, 'Manrope', 'Nunito Sans', sans-serif));
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.ms-pdp-btn-primary {
    background: var(--pdp-ink, var(--ms-ink, #123a5a));
    color: #fff;
}

.ms-pdp-btn-primary:hover:not([disabled]) {
    background: var(--pdp-ink-hover, var(--ms-ink-hover, #174a70));
    color: #fff;
}

.ms-pdp-btn-primary[disabled] {
    background: #cdd6dd;
    color: #6d7d88;
    cursor: not-allowed;
}

.ms-pdp-btn-whatsapp {
    background: #25D366 !important;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
    box-shadow: 0 4px 18px rgba(37, 211, 102, .35) !important;
    transition: all .2s ease !important;
}

.ms-pdp-btn-whatsapp:hover {
    background: linear-gradient(135deg, #20ba5a 0%, #0e7065 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 24px rgba(37, 211, 102, .55) !important;
    transform: translateY(-1px);
}

.ms-pdp-btn-whatsapp i.fa-whatsapp {
    font-size: 1.35rem !important;
    color: #ffffff !important;
    margin-right: .35rem;
}

.ms-pdp-btn-outline {
    background: transparent;
    border-color: var(--pdp-bronze);
    color: var(--pdp-bronze);
}

.ms-pdp-btn-outline:hover {
    background: var(--pdp-bronze);
    color: #fff;
}

/* ------------------------------------------------------- Stock + trust rows */
.ms-pdp-stock {
    margin: 1rem 0 0;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pdp-bronze);
}

.ms-pdp-stock.is-empty {
    color: #a2524b;
}

.ms-pdp-trust-inline {
    margin: 1rem 0 0;
    padding: .9rem 0 0;
    border-top: 1px solid var(--pdp-line-soft);
    font-size: .8rem;
    color: var(--pdp-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    flex-wrap: wrap;
    text-align: center;
}

.ms-pdp-trust-inline i {
    color: var(--pdp-gold);
}

.ms-pdp-trust-sep {
    color: var(--pdp-line);
}

@media (min-width: 576px) {
    .ms-pdp-trust-inline {
        font-size: .74rem;
        gap: .8rem;
        flex-wrap: nowrap;
    }
}

.ms-pdp-mini-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 1.1rem;
}

.ms-pdp-text-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--pdp-ink);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.ms-pdp-text-link:hover,
.ms-pdp-text-link.ms-save-active {
    color: var(--pdp-bronze);
}

/* ---------------------------------------------------------------- Accordions */
.ms-pdp-accordions {
    margin-top: 1.75rem;
    border-top: 1px solid var(--pdp-line);
}

.ms-pdp-accordion {
    border-bottom: 1px solid var(--pdp-line);
}

.ms-pdp-accordion > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    cursor: pointer;
    list-style: none;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--pdp-ink-deep);
}

.ms-pdp-accordion > summary::-webkit-details-marker {
    display: none;
}

.ms-pdp-accordion > summary i {
    font-size: .7rem;
    color: var(--pdp-bronze);
    transition: transform .25s var(--ms-ease, ease);
}

.ms-pdp-accordion[open] > summary i {
    transform: rotate(180deg);
}

.ms-pdp-accordion-body {
    padding: 0 0 1.25rem;
    font-size: .88rem;
    line-height: 1.7;
    color: var(--pdp-text);
}

.ms-pdp-accordion-body p {
    margin: 0 0 .6rem;
}

.ms-pdp-accordion-body p:last-child {
    margin-bottom: 0;
}

.ms-pdp-accordion-lead {
    font-weight: 800;
    color: var(--pdp-ink-deep);
}

.ms-pdp-rich img {
    max-width: 100%;
    height: auto;
}

.ms-pdp-rich ul,
.ms-pdp-rich ol {
    padding-left: 1.2rem;
    margin: 0 0 .6rem;
}

.ms-pdp-accordion-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    margin-top: .75rem;
}

.ms-pdp-accordion-links a {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--pdp-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ms-pdp-accordion-links a:hover {
    color: var(--pdp-bronze);
}

/* small label/value grid inside Description */
.ms-pdp-spec-table {
    margin-top: 1rem;
    border-top: 1px solid var(--pdp-line-soft);
}

.ms-pdp-spec-table > div {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: space-between;
    padding: .55rem 0;
    border-bottom: 1px solid var(--pdp-line-soft);
    font-size: .82rem;
}

.ms-pdp-spec-table span {
    color: var(--pdp-muted);
}

.ms-pdp-spec-table strong {
    color: var(--pdp-ink-deep);
}

/* measurements table */
.ms-pdp-measure-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: .6rem;
    font-size: .84rem;
}

.ms-pdp-measure-table th,
.ms-pdp-measure-table td {
    padding: .55rem .5rem;
    border-bottom: 1px solid var(--pdp-line-soft);
    text-align: left;
}

.ms-pdp-measure-table th {
    width: 55%;
    font-weight: 700;
    color: var(--pdp-muted);
}

.ms-pdp-measure-table td {
    font-weight: 800;
    color: var(--pdp-ink-deep);
}

/* ------------------------------------------------------------------ Sections */
.ms-pdp-section-heading {
    margin: 0;
    font-family: var(--pdp-serif);
    font-size: clamp(1.3rem, 3.4vw, 1.8rem);
    font-weight: 400;
    color: var(--pdp-ink-deep);
}

/* ------------------------------------------------------------------- Reviews */
.ms-pdp-reviews {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--pdp-line);
}

.ms-pdp-reviews-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
}

.ms-pdp-rating-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: 0;
    font-size: .84rem;
    color: var(--pdp-text);
}

.ms-pdp-rating-count {
    color: var(--pdp-muted);
}

.ms-pdp-stars {
    color: var(--pdp-gold);
    letter-spacing: .08em;
    font-size: .85rem;
}

.ms-pdp-reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (min-width: 992px) {
    .ms-pdp-reviews-grid {
        grid-template-columns: 1.4fr 1fr;
        gap: 3rem;
    }
}

.ms-pdp-review {
    padding: 0 0 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--pdp-line-soft);
}

.ms-pdp-review:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.ms-pdp-review-author {
    display: block;
    margin-top: .35rem;
    font-size: .84rem;
    color: var(--pdp-ink-deep);
}

.ms-pdp-review-body {
    margin: .3rem 0 0;
    font-size: .88rem;
    line-height: 1.65;
    color: var(--pdp-text);
}

.ms-pdp-reviews-empty {
    margin: 0;
    padding: 1.5rem;
    background: #f7f3ea;
    border: 1px solid var(--pdp-line-soft);
    border-radius: var(--pdp-radius);
    font-size: .88rem;
    color: var(--pdp-muted);
}

.ms-pdp-review-form {
    padding: 1.25rem;
    background: #f7f3ea;
    border: 1px solid var(--pdp-line-soft);
    border-radius: var(--pdp-radius);
}

.ms-pdp-field {
    display: block;
    width: 100%;
    margin: .6rem 0 0;
    padding: .7rem .85rem;
    background: #fff;
    border: 1px solid var(--pdp-line);
    border-radius: var(--pdp-radius);
    font-family: var(--pdp-sans);
    font-size: .88rem;
    color: var(--pdp-text);
}

.ms-pdp-field:focus {
    outline: none;
    border-color: var(--pdp-ink);
}

.ms-pdp-review-form .ms-pdp-btn {
    margin-top: .85rem;
}

.ms-pdp-review-note {
    margin: .7rem 0 0;
    font-size: .74rem;
    color: var(--pdp-muted);
}

/* ------------------------------------------------------- You may also like */
.ms-pdp-related {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--pdp-line);
}

.ms-pdp-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem .85rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .ms-pdp-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.75rem 1.25rem;
    }
}

@media (min-width: 992px) {
    .ms-pdp-related-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.ms-pdp-related-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ms-pdp-related-media {
    position: relative;
    aspect-ratio: 2 / 3;
    background: var(--ms-card, #f5f0e8);
    border: 1px solid var(--pdp-line-soft);
    border-radius: var(--pdp-radius);
    overflow: hidden;
}

@supports not (aspect-ratio: 2 / 3) {
    .ms-pdp-related-media {
        height: 0;
        padding-bottom: 150%;
    }
}

.ms-pdp-related-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .6s var(--ms-ease, ease);
}

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

.ms-pdp-related-media .ms-pdp-badge {
    position: absolute;
    top: .6rem;
    left: .6rem;
    z-index: 2;
}

.ms-pdp-related-title {
    margin: .7rem 0 0;
    font-family: var(--pdp-sans);
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--pdp-ink-deep);
}

.ms-pdp-related-sku {
    margin: .25rem 0 0;
    font-size: .62rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pdp-muted);
}

.ms-pdp-related-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .5rem;
    margin: .35rem 0 0;
}

.ms-pdp-related-price strong {
    font-size: .9rem;
    font-weight: 800;
    color: var(--pdp-ink-deep);
}

.ms-pdp-related-price del {
    font-size: .76rem;
    color: var(--pdp-muted);
}

/* -------------------------------------------------- Sticky mobile purchase bar */
.ms-pdp-sticky-bar {
    display: none;
}

@media (max-width: 767.98px) {
    .ms-pdp-sticky-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .65rem;
        padding: .65rem .75rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, .98);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        border-top: 1px solid rgba(212, 162, 82, .35);
        box-shadow: 0 -8px 24px rgba(18, 58, 90, .14);
    }

    .ms-pdp-sticky-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-shrink: 0;
        min-width: 0;
        max-width: 33%;
        line-height: 1.15;
    }

    .ms-pdp-sticky-name {
        display: none;
    }

    .ms-pdp-sticky-price {
        display: flex;
        align-items: baseline;
        gap: .25rem;
        margin: 0;
        white-space: nowrap;
    }

    .ms-pdp-sticky-price strong {
        font-size: 1.15rem;
        font-weight: 800;
        color: #0d4637;
        font-family: inherit;
        letter-spacing: -0.01em;
        white-space: nowrap;
    }

    .ms-pdp-sticky-price del {
        font-size: .72rem;
        color: var(--pdp-muted);
        white-space: nowrap;
    }

    .ms-pdp-sticky-meta {
        font-size: .68rem;
        color: #55606d;
        margin-top: .15rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 600;
    }

    .ms-pdp-sticky-bar .ms-pdp-sticky-wa-btn {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 3.25rem;
        padding: .75rem .85rem;
        background: #25D366 !important;
        background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: .55rem;
        font-size: .95rem !important;
        font-weight: 800 !important;
        letter-spacing: .03em !important;
        text-transform: uppercase !important;
        text-decoration: none !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, .2) !important;
        box-shadow: 0 4px 18px rgba(37, 211, 102, .5), 0 2px 6px rgba(0, 0, 0, .12) !important;
        transition: transform 0.15s ease, box-shadow 0.15s ease !important;
        white-space: nowrap;
        animation: msWaPulse 2.8s infinite ease-in-out;
    }

    @keyframes msWaPulse {
        0%, 100% {
            box-shadow: 0 4px 18px rgba(37, 211, 102, .45), 0 2px 6px rgba(0, 0, 0, .12);
            transform: scale(1);
        }
        50% {
            box-shadow: 0 6px 26px rgba(37, 211, 102, .75), 0 0 0 3px rgba(37, 211, 102, .25);
            transform: scale(1.02);
        }
    }

    .ms-pdp-sticky-bar .ms-pdp-sticky-wa-btn:active {
        transform: scale(0.97) !important;
        animation: none !important;
        box-shadow: 0 2px 8px rgba(18, 140, 126, .5) !important;
    }

    .ms-pdp-sticky-bar .ms-pdp-sticky-wa-btn i.fa-whatsapp {
        font-size: 1.55rem !important;
        color: #ffffff !important;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .2));
    }
}

/* ============================================== 12 PDP improvements CSS === */

/* 1. Image zoom on hover */
.ms-pdp-zoom-target {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .35s ease;
    will-change: transform;
}

.ms-pdp-stage-frame:hover .ms-pdp-zoom-target {
    transform: scale(1.06);
}

/* 2. Breadcrumb separator (handled via › in blade; style stays) */

/* 3. Size guide centered modal (desktop & mobile) */
.ms-pdp-sheet-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(18, 58, 90, .5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .25s ease;
}

.ms-pdp-sheet-overlay.is-open {
    display: block;
    opacity: 1;
}

.ms-pdp-sheet {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%) scale(0.94);
    z-index: 1050;
    width: min(92vw, 480px);
    max-height: min(85vh, 620px);
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 25px 60px rgba(18, 58, 90, .28), 0 4px 16px rgba(0, 0, 0, .08);
    border: 1px solid rgba(18, 58, 90, .08);
    overflow-y: auto;
    padding: 1.6rem 1.4rem 1.6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease, transform .24s cubic-bezier(0.16, 1, 0.3, 1);
}

.ms-pdp-sheet.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.ms-pdp-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid rgba(18, 58, 90, .1);
    margin-bottom: 1rem;
}

.ms-pdp-sheet-title {
    margin: 0;
    font-family: var(--pdp-serif);
    font-size: 1.35rem;
    color: var(--pdp-ink-deep, #123a5a);
    font-weight: 700;
    line-height: 1.2;
}

.ms-pdp-sheet-close {
    width: 2.2rem;
    height: 2.2rem;
    min-width: 2.2rem;
    background: rgba(18, 58, 90, .06);
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pdp-ink-deep, #123a5a);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
    padding: 0;
}

.ms-pdp-sheet-close:hover {
    background: rgba(18, 58, 90, .15);
    color: var(--ms-ink, #123a5a);
}

.ms-pdp-sheet-lead {
    font-size: .85rem;
    color: var(--pdp-ink, #274358);
    margin: 0 0 1rem;
    line-height: 1.45;
}

.ms-pdp-sheet table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .84rem;
    border: 1px solid rgba(18, 58, 90, .12);
    border-radius: .6rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.ms-pdp-sheet th,
.ms-pdp-sheet td {
    padding: .65rem .85rem;
    border-bottom: 1px solid rgba(18, 58, 90, .08);
    text-align: left;
}

.ms-pdp-sheet tr:last-child th,
.ms-pdp-sheet tr:last-child td {
    border-bottom: 0;
}

.ms-pdp-sheet th {
    font-weight: 700;
    color: #496375;
    background: #f7f3ea;
    width: 44%;
}

.ms-pdp-sheet td {
    color: var(--pdp-ink-deep, #123a5a);
    font-weight: 600;
    background: #fff;
}

.ms-pdp-sheet-note {
    font-size: .78rem;
    color: #6a7c8a;
    line-height: 1.45;
    margin: 0 0 1.25rem;
    padding: .6rem .8rem;
    background: rgba(18, 58, 90, .04);
    border-radius: .5rem;
    border-left: 3px solid var(--ms-gold, #c29b38);
}

.ms-pdp-sheet-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.ms-pdp-sheet-wa-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    background: #25D366;
    color: #fff !important;
    text-decoration: none;
    font-size: .84rem;
    font-weight: 700;
    padding: .65rem 1rem;
    border-radius: .6rem;
    transition: background-color .18s ease;
}

.ms-pdp-sheet-wa-btn:hover {
    background: #1ebc59;
    color: #fff;
}

.ms-pdp-sheet-done-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f4ede1;
    color: var(--ms-ink, #123a5a);
    border: 1px solid rgba(18, 58, 90, .14);
    font-size: .84rem;
    font-weight: 700;
    padding: .65rem 1.4rem;
    border-radius: .6rem;
    cursor: pointer;
    transition: background-color .18s ease;
}

.ms-pdp-sheet-done-btn:hover {
    background: #e9dece;
}

@media (max-width: 575.98px) {
    .ms-pdp-sheet {
        width: calc(100vw - 1.5rem);
        max-height: 84vh;
        padding: 1.25rem 1.1rem;
        border-radius: 1rem;
    }
    .ms-pdp-sheet-title { font-size: 1.2rem; }
    .ms-pdp-sheet-actions { flex-direction: column; gap: .5rem; }
    .ms-pdp-sheet-wa-btn, .ms-pdp-sheet-done-btn { width: 100%; text-align: center; }
}

/* 4. Sticky desktop "Add to bag" */
@media (min-width: 992px) {
    .ms-pdp-panel {
        position: sticky;
        top: 5rem;
        align-self: start;
    }
}

/* 5. Horizontal thumbnail scroll on mobile (already default) */

/* 6. Colour swatch → image preview (JS-driven; no extra CSS needed) */

/* 7. Review form stacking on mobile */
@media (max-width: 991.98px) {
    .ms-pdp-reviews-grid {
        grid-template-columns: 1fr;
    }
    .ms-pdp-review-form {
        margin-top: .5rem;
    }
}

/* 8. Skeleton loading state */
.ms-pdp-skeleton {
    position: relative;
    overflow: hidden;
    background: #eee8db;
    border-radius: var(--pdp-radius);
    color: transparent !important;
    pointer-events: none;
    user-select: none;
}

.ms-pdp-skeleton * {
    visibility: hidden;
}

.ms-pdp-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, .45) 50%,
        transparent 100%
    );
    animation: ms-pdp-shimmer 1.4s ease-in-out infinite;
}

@keyframes ms-pdp-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ms-pdp-skeleton-title {
    height: 1.6rem;
    width: 70%;
    margin-bottom: .5rem;
}

.ms-pdp-skeleton-text {
    height: .85rem;
    width: 45%;
    margin-bottom: .4rem;
}

.ms-pdp-skeleton-btn {
    height: 3rem;
    width: 100%;
    border-radius: var(--pdp-radius);
}

/* 9. Share button */
.ms-pdp-share-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--pdp-bronze);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .2s ease;
}

.ms-pdp-share-btn:hover {
    color: var(--pdp-ink);
}

/* 10. Recently viewed section */
.ms-pdp-recently {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--pdp-line);
}

.ms-pdp-recently-heading {
    margin: 0 0 1.25rem;
    font-family: var(--pdp-serif);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 400;
    color: var(--pdp-ink-deep);
}

.ms-pdp-recently-grid,
.ms-pdp-recently-scroll {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 992px) {
    .ms-pdp-recently-grid,
    .ms-pdp-recently-scroll {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.75rem 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .ms-pdp-recently-grid,
    .ms-pdp-recently-scroll {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: .85rem;
        padding-bottom: .6rem;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
        margin-top: 1.25rem;
    }

    .ms-pdp-recently-grid::-webkit-scrollbar,
    .ms-pdp-recently-scroll::-webkit-scrollbar {
        height: 4px;
    }

    .ms-pdp-recently-grid::-webkit-scrollbar-thumb,
    .ms-pdp-recently-scroll::-webkit-scrollbar-thumb {
        background: var(--pdp-line);
        border-radius: 999px;
    }

    .ms-pdp-recently-card {
        flex: 0 0 160px;
        scroll-snap-align: start;
    }
}

.ms-pdp-recently-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity .2s ease;
}

.ms-pdp-recently-card:hover {
    opacity: .92;
}

.ms-pdp-recently-media,
.ms-pdp-recently-img {
    position: relative;
    aspect-ratio: 2 / 3;
    background: var(--ms-card, #f5f0e8);
    border: 1px solid var(--pdp-line-soft);
    border-radius: var(--pdp-radius);
    overflow: hidden;
}

@supports not (aspect-ratio: 2 / 3) {
    .ms-pdp-recently-media,
    .ms-pdp-recently-img {
        height: 0;
        padding-bottom: 150%;
    }
}

.ms-pdp-recently-media img,
.ms-pdp-recently-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .6s var(--ms-ease, ease);
}

.ms-pdp-recently-card:hover .ms-pdp-recently-media img,
.ms-pdp-recently-card:hover .ms-pdp-recently-img img {
    transform: scale(1.04);
}

.ms-pdp-recently-title,
.ms-pdp-recently-name {
    margin: .7rem 0 0;
    font-family: var(--pdp-sans);
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--pdp-ink-deep);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ms-pdp-recently-sku {
    margin: .2rem 0 0;
    font-size: .72rem;
    color: var(--pdp-muted);
}

.ms-pdp-recently-price {
    margin: .35rem 0 0;
    font-size: .84rem;
    color: var(--pdp-ink-deep);
}

.ms-pdp-recently-price strong {
    font-weight: 800;
}

.ms-pdp-recently-price del {
    margin-left: .35rem;
    color: var(--pdp-muted);
    font-size: .76rem;
    font-weight: 500;
}

/* 11. Aspect-ratio lock on stage (already set via .ms-pdp-stage-frame) */

/* 12. Product & Hero slider image vertical lock (ensure model faces are visible, not middle torso) */
.ms-hero-slide--image img,
.ms-hero-slider .splide__slide img {
    object-position: top center !important;
}

/* ---------- Mobile polish ---------- */
.ms-pdp-chip span { color: var(--pdp-ink, #123a5a); }
.ms-pdp-chip.active span,
.ms-pdp-chip.active { color: #fff; }

html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe { max-width: 100%; }

@media (max-width: 767.98px) {
    /* comfortable touch targets */
    .ms-pdp-chip, .ms-size-chip, .ms-filter-chip { min-height: 2.75rem; }
    .ms-btn-primary, .ms-btn-secondary { min-height: 2.9rem; }

    /* hero: shorter on phones so content below is reachable */
    .ms-hero-slider .splide__track,
    .ms-hero-slider .splide__slide { max-height: 62vh; }
    .ms-hero-slide-title { font-size: clamp(1.5rem, 7vw, 2rem); line-height: 1.15; }
    .ms-hero-slide-caption .ms-btn-primary { padding: .7rem 1.1rem; font-size: .8rem; }

    /* product detail: wrap long copy, keep sticky bar clear of content */
    .ms-pdp { overflow-wrap: anywhere; }
    .ms-pdp-chips, .ms-pdp-swatches { gap: .45rem; }
    body { padding-bottom: env(safe-area-inset-bottom); }
}

@media (max-width: 380px) {
    .ms-catalogue-grid { gap: .7rem; }
    .ms-card-name { font-size: .85rem; }
    .ms-container { padding-left: .9rem; padding-right: .9rem; }
}

/* =============================================================================
   Mobile responsive polish (2026-10-05)
   Loaded last so it can fix the home grid, Quick Add centring and small-screen
   spacing without touching the older design-system files.
   ========================================================================== */

/* 1. Home catalogue: 2-up on phones (listing pages already do this via .ms-lst-grid) */
@media (max-width: 639.98px) {
    .ms-catalogue-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.6rem .7rem;
        margin-top: 1.25rem;
    }

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

.ms-catalogue-grid .ms-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 639.98px) {
    .ms-section-head .ms-search-field {
        width: 100% !important;
        min-width: 100% !important;
    }
}

/* 2. Quick Add / Add to bag bar: truly centred */
.ms-card .ms-card-quickadd {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 2.6rem;
    padding: .6rem .5rem;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .ms-card .ms-card-quickadd {
        font-size: .62rem;
        letter-spacing: .06em;
        padding: .55rem .3rem;
        min-height: 2.4rem;
        font-weight: 700;
    }

    /* compact, perfectly centred card copy in the 2-up grid */
    .ms-card .ms-card-copy {
        padding: .65rem .15rem 0;
        gap: .3rem;
        text-align: center;
        align-items: center;
    }
    .ms-card .ms-card-copy .ms-card-name {
        font-size: .78rem;
        font-weight: 600;
        line-height: 1.35;
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }
    /* Hide long specs on mobile so 2-up cards have consistent, elegant height */
    .ms-card-specs { display: none; }
    .ms-card .ms-card-sku { font-size: .6rem; text-align: center; color: #88929a; }
    .ms-card .ms-card-price .ms-price-label { display: none; }
    .ms-card .ms-card-copy .ms-card-price {
        font-size: .8rem;
        gap: .05rem .4rem;
        justify-content: center;
    }
    .ms-card .ms-card-price .ms-price-now strong { font-size: .88rem; }

    /* size chips: centred with touch-friendly min targets */
    .ms-card .ms-card-sizes {
        gap: .25rem;
        justify-content: center;
    }
    .ms-card .ms-size-chip { min-height: 1.6rem; min-width: 1.7rem; padding: .15rem .3rem; font-size: .58rem; }

    /* swatches: centred */
    .ms-card .ms-card-swatches {
        justify-content: center;
    }

    .ms-card .ms-card-flags { left: .4rem; top: .4rem; }
    .ms-card .ms-save-btn { right: .4rem; top: .4rem; width: 2rem; height: 2rem; }
}

/* 3. Home filter chips: one swipeable row instead of three wrapped rows */
@media (max-width: 767.98px) {
    .ms-chip-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-inline: -1rem;
        padding: .1rem 1rem .4rem;
        scroll-snap-type: x proximity;
    }
    .ms-chip-row::-webkit-scrollbar { display: none; }
    .ms-chip-row .ms-filter-chip { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; min-height: 2.4rem; }

    /* filter panel: tighter, price sliders side by side */
    .ms-filter-panel { padding: .85rem; border-radius: 1rem; }
    .ms-filter-grid { gap: 1rem; }
    .ms-price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
    .ms-filter-count { text-align: left; }
    .ms-filter-summary { overflow-wrap: anywhere; }
}

/* 4. Footer: reset the browser button look on "Size guidance" (was white on white) */
.ms-footer-link-btn {
    display: block;
    width: auto;
    padding: .25rem 0;
    min-height: 2rem;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
    font-size: .8rem;
}

@media (max-width: 575.98px) {
    .ms-footer-cols { gap: 1.5rem 1.25rem; }
    .ms-footer-link { padding-block: .25rem; min-height: 1.8rem; display: flex; align-items: center; }
}

/* 4b. Splide slider dots: comfortable touch target without altering dot size */
.splide__pagination { gap: .4rem; }
.splide__pagination li { display: inline-flex; align-items: center; justify-content: center; }
.splide__pagination__page { position: relative; }
.splide__pagination__page::before {
    content: "";
    position: absolute;
    inset: -14px -10px;
}

/* 5. Listing bottom bar: keep "Items per page" on one line */
.ms-lst-perpage { white-space: nowrap; }
.ms-lst-perpage select { min-height: 2.4rem; }

@media (max-width: 575.98px) {
    .ms-lst-grid { gap: 1.6rem .6rem; }
    .ms-lst-footer { margin-top: 2rem; }
    .ms-lst-total { font-size: 1.1rem; }
}

/* 6. Very small phones */
@media (max-width: 360px) {
    .ms-card .ms-card-quickadd { font-size: .56rem; letter-spacing: .06em; }
    .ms-card .ms-card-copy .ms-card-name { font-size: .68rem; }
}
