.rt-pdp {
    padding-bottom: 32px;
}

.rt-pdp__layout {
    display: grid;
    gap: 24px;
    padding-top: 16px;
}

.rt-pdp__layout > *,
.rt-pdp__details-grid > * {
    min-width: 0;
}

/* Gallery */
.rt-pdp__gallery {
    position: relative;
    min-width: 0;
}

.rt-pdp__badge {
    top: 12px;
    left: 12px;
    z-index: 2;
}

.rt-pdp__wishlist {
    top: 4px;
    right: 4px;
    z-index: 2;
}

.rt-pdp__gallery-track {
    position: relative;
    display: flex;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    border: 1px solid #e7e1d8;
    border-radius: 10px;
    background: #ffffff;
    list-style: none;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.rt-pdp__gallery-track::-webkit-scrollbar {
    display: none;
}

.rt-pdp__gallery-track:focus-visible {
    outline: 2px solid #8a6735;
    outline-offset: 3px;
}

.rt-pdp__gallery-slide {
    flex: 0 0 100%;
    min-width: 0;
    aspect-ratio: 1;
    scroll-snap-align: start;
}

.rt-pdp__gallery-slide > img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 24px;
    object-fit: contain;
}

.rt-pdp__image-placeholder {
    display: grid;
    place-items: center;
    padding: 24px;
    background: #f1ede6;
    color: #6c6862;
    font-size: 14px;
    text-align: center;
}

.rt-pdp__thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.rt-pdp__thumbnail {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    padding: 4px;
    overflow: hidden;
    border: 1px solid #e7e1d8;
    border-radius: 6px;
    background: #ffffff;
}

.rt-pdp__thumbnail[aria-pressed="true"] {
    border-color: #c9a46a;
    box-shadow: inset 0 0 0 1px #c9a46a;
}

.rt-pdp__thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product information */
.rt-pdp__brand {
    margin: 0 0 8px;
    color: #6c6862;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rt-pdp__title {
    margin: 0 0 16px;
    color: #111111;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(28px, 7vw, 36px);
    font-weight: 400;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.rt-pdp__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    margin: 0 0 8px;
    color: #111111;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
}

.rt-pdp__price del {
    color: #6c6862;
    font-size: 14px;
    font-weight: 400;
}

.rt-pdp__stock {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.rt-pdp[data-in-stock="true"] .rt-pdp__stock {
    color: #487257;
}

.rt-pdp[data-in-stock="false"] .rt-pdp__stock {
    color: #b83a3a;
}

/* Product colors */
.rt-pdp__purchase-form {
    margin-top: 24px;
}

.rt-pdp__colors {
    min-width: 0;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

.rt-pdp__colors legend {
    margin-bottom: 12px;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.rt-pdp__colors legend span {
    color: #6c6862;
    font-weight: 400;
}

.rt-pdp__color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rt-pdp__color-option {
    position: relative;
    cursor: pointer;
}

.rt-pdp__color-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #e7e1d8;
    border-radius: 6px;
    background: #ffffff;
    color: #181818;
    font-size: 13px;
    line-height: 1.4;
}

.rt-pdp__color-swatch {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border: 1px solid rgb(17 17 17 / 20%);
    border-radius: 50%;
    background: var(--rt-product-color, #181818);
}

.rt-pdp__color-option input:checked + .rt-pdp__color-chip {
    border-color: #c9a46a;
    box-shadow: inset 0 0 0 1px #c9a46a;
}

.rt-pdp__color-option input:focus-visible + .rt-pdp__color-chip {
    outline: 2px solid #8a6735;
    outline-offset: 3px;
}

/* Purchase actions */
.rt-pdp__actions {
    display: grid;
    gap: 12px;
}

.rt-pdp .rt-pdp__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

.rt-pdp__button--primary {
    background: #c9a46a;
    color: #111111;
}

.rt-pdp__button--secondary {
    background: #111111;
    color: #ffffff;
}

.rt-pdp[data-in-stock="false"] .rt-pdp__button:disabled {
    opacity: 0.45;
}

.rt-pdp .rt-pdp__enquiry {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 8px;
    color: #6c6862;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Compact delivery / trust information */
.rt-pdp__benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 0;
    padding: 16px 0;
    border-top: 1px solid #e7e1d8;
    border-bottom: 1px solid #e7e1d8;
    list-style: none;
}

.rt-pdp__benefits li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #6c6862;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.rt-pdp__benefits svg {
    width: 22px;
    height: 22px;
    color: #181818;
}

/* Description and specifications */
.rt-pdp__details-grid {
    display: grid;
    gap: 32px;
    margin-top: 32px;
}

.rt-pdp__section-title {
    margin: 0 0 16px;
    color: #111111;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
}

.rt-pdp__description {
    max-width: 65ch;
    margin: 0;
    color: #6c6862;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-line;
}

.rt-pdp__specifications {
    margin: 0;
}

.rt-pdp__specifications > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    padding-block: 12px;
    border-bottom: 1px solid #e7e1d8;
    font-size: 13px;
    line-height: 1.5;
}

.rt-pdp__specifications dt {
    color: #6c6862;
}

.rt-pdp__specifications dd {
    margin: 0;
    color: #181818;
    overflow-wrap: anywhere;
}

.rt-pdp__related {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e7e1d8;
}

/* Tablet */
@media (min-width: 768px) {
    .rt-pdp__layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        gap: 32px;
        padding-top: 24px;
    }

    .rt-pdp__details-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 32px;
    }

    .rt-pdp__details-grid > :only-child {
        grid-column: 1 / -1;
    }

    .rt-pdp__related {
        margin-top: 48px;
        padding-top: 32px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .rt-pdp__layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 48px;
    }

    .rt-pdp__information {
        padding-top: 16px;
    }

    .rt-pdp__gallery-slide > img {
        padding: 32px;
    }
}

@media (hover: hover) {
    .rt-pdp__button--primary:not(:disabled):hover {
        background: #bf975e;
    }

    .rt-pdp__button--secondary:not(:disabled):hover {
        background: #282828;
    }

    .rt-pdp .rt-pdp__enquiry[href]:hover {
        color: #181818;
    }
}


/* Product quantity */
.rt-pdp__quantity {
    margin-bottom: 24px;
}

.rt-pdp__quantity-label {
    display: block;
    margin-bottom: 8px;
    color: #111111;
    font-size: 13px;
    font-weight: 500;
}

.rt-pdp__quantity-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.rt-pdp__quantity-control {
    display: inline-grid;
    grid-template-columns: 44px 48px 44px;
    border: 1px solid #e7e1d8;
    border-radius: 8px;
    background: #ffffff;
}

.rt-pdp .rt-pdp__quantity-button {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #111111;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.rt-pdp .rt-pdp__quantity-button:disabled {
    opacity: 0.35;
    cursor: default;
}

.rt-pdp .rt-pdp__quantity-input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 4px;
    border: 0;
    border-inline: 1px solid #e7e1d8;
    border-radius: 0;
    background: transparent;
    color: #111111;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.rt-pdp__quantity-input::-webkit-inner-spin-button,
.rt-pdp__quantity-input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.rt-pdp .rt-pdp__quantity-input:disabled {
    opacity: 1;
}

.rt-pdp__quantity-stock {
    color: #6c6862;
    font-size: 12px;
    line-height: 1.5;
}

.rt-pdp .rt-pdp__quantity-button:focus-visible,
.rt-pdp .rt-pdp__quantity-input:focus-visible {
    outline: 2px solid #c9a46a;
    outline-offset: 3px;
}

@media (hover: hover) {
    .rt-pdp .rt-pdp__quantity-button:hover:not(:disabled) {
        background: #f1ede6;
    }
}
/* Cart validation uses a small inline message inside the existing purchase form. */
.rt-pdp__feedback {
    margin: 0 0 16px;
    color: #b83a3a;
    font-size: 13px;
}
