html.page-product-bg,
html.page-product-bg body,
html.page-product-bg header,
body.page-product {
    background: #f2f3f5;
    background-color: #f2f3f5;
}

.pd {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 0 0 calc(150px + env(safe-area-inset-bottom, 0px));
    font-family: "Unbounded", sans-serif;
    color: #161B2D;
    box-sizing: border-box;
}

button.pd-back {
    position: fixed;
    z-index: 40;
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: max(12px, calc(50% - 360px + 12px));
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #f2f3f5;
    color: #161B2D;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.16s ease, background-color 0.2s ease;
}

button.pd-back svg {
    display: block;
}

button.pd-back:hover,
button.pd-back:focus-visible {
    background: #e8eaee;
    color: #161B2D;
}

button.pd-back:active {
    transform: scale(0.92);
}

.pd-pagehead {
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: calc(64px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 112px 0;
    background: #fff;
    font-family: "Unbounded", sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #161B2D;
    white-space: nowrap;
}

@media (max-width: 867px) {
    .pd-pagehead {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 30;
    }
}

.pd-tools {
    position: fixed;
    z-index: 40;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: max(12px, calc(50% - 360px + 12px));
    display: flex;
    gap: 8px;
}

button.pd-tool {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    border: 0;
    border-radius: 50%;
    background: #f2f3f5;
    color: #161B2D;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.16s ease, background-color 0.2s ease;
}

button.pd-tool svg,
button.pd-tool img {
    display: block;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

button.pd-tool img {
    width: 22px;
    height: 22px;
}

button.pd-tool:hover,
button.pd-tool:focus-visible {
    background: #e8eaee;
    color: #161B2D;
}

button.pd-tool:active {
    transform: scale(0.92);
}

@media (min-width: 868px) {
    button.pd-back,
    .pd-tools {
        top: calc(7vh + 32px);
    }
}

.pd-status {
    padding: 48px 16px;
    text-align: center;
    color: #6b7280;
}

.pd-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    background: #fff;
    scrollbar-width: none;
}

.pd-gallery::-webkit-scrollbar {
    display: none;
}

.pd-gallery img {
    flex: 0 0 100%;
    width: 100%;
    height: 300px;
    padding: 12px 24px;
    box-sizing: border-box;
    object-fit: contain;
    scroll-snap-align: center;
    background: #fff;
}

.pd-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 4px 0 6px;
    background: #fff;
}

.pd-dots:empty,
.pd-dots:has(span:only-child) {
    display: none;
}

.pd-dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #d5d8de;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.pd-dots span.is-on {
    width: 18px;
    background: #1280D0;
}

.pd-body {
    padding: 12px 16px 20px;
    border-radius: 0 0 24px 24px;
    background: #fff;
    font-weight: 400;
}

.pd-brand {
    display: inline-block;
    margin: 0 0 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f2f3f5;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4b5563;
}

.pd-name {
    margin: 0;
    font-family: "Unbounded", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
}

.pd-article {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 400;
    color: #8b909a;
}

.pd-price {
    margin: 16px 0 0;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.pd-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 400;
    color: #1a9e4a;
}

.pd-stock.is-off {
    color: #b42318;
}

.pd-delivery-block {
    margin-bottom: 0;
}

.pd-delivery {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    color: #161B2D;
}

.pd-delivery.is-fast {
    color: #1280D0;
}

.pd-delivery.is-tomorrow {
    color: #002f5c;
}

.pd-delivery span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
}

.pd-specs {
    margin: 8px 12px 0;
    padding: 4px 16px 6px;
    background: #fff;
    border-radius: 20px;
}

.pd-specs h2,
.pd-similar h2 {
    margin: 14px 0 8px;
    font-family: "Unbounded", sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #161B2D;
}

.pd-specs div,
.pd-specs dt,
.pd-specs dd {
    font-weight: 400;
}

.pd-specs div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid #f0f1f3;
    font-size: 13px;
    line-height: 1.35;
}

.pd-specs h2 + div {
    border-top: 0;
}

.pd-specs dt {
    color: #6b7280;
}

.pd-specs dd {
    margin: 0;
    text-align: right;
}

.pd-similar {
    margin: 8px 0 0;
    padding: 4px 0 16px;
}

.pd-similar h2 {
    margin-left: 16px;
}

.pd-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 12px;
    padding: 0 12px 4px;
    scrollbar-width: none;
}

.pd-rail::-webkit-scrollbar {
    display: none;
}

.pd-mini {
    flex: 0 0 140px;
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    margin: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 0;
    border-radius: 18px;
    padding: 6px 6px 10px;
    text-align: left;
    font-family: "Unbounded", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    color: #161B2D;
    cursor: pointer;
    box-sizing: border-box;
}

.pd-mini img {
    order: -2;
    display: block;
    width: 100%;
    height: 100px;
    padding: 6px;
    box-sizing: border-box;
    object-fit: contain;
    flex: none;
}

.pd-mini strong {
    order: -1;
    display: block;
    margin: 6px 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #161B2D;
}

.pd-mini span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 4px 4px 0;
    font-size: 11px;
    line-height: 1.3;
    color: #4b5563;
    white-space: normal;
}


.pd-mini:hover,
.pd-mini:focus-visible {
    background: #fff;
    color: #161B2D;
}

.pd-buy {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--feal-mobile-bottom-nav, 72px) + 8px + env(safe-area-inset-bottom, 0px));
    z-index: 20;
    height: 52px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 16px;
    background: #1280D0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    width: auto;
    margin: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.16s ease, background-color 0.2s ease;
}

.pd-buy:not(:disabled):active {
    transform: scale(0.97);
}

.pd-buy:disabled {
    opacity: 0.45;
}

#productPage button.pd-mini,
.pd-overlay button.pd-mini {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    margin: 0;
    padding: 6px 6px 10px;
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-weight: 400;
    font-family: "Unbounded", sans-serif;
    color: #161B2D;
    background: #fff;
}

#productPage .pd-buy,
.pd-overlay .pd-buy {
    width: auto;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    font-family: "Unbounded", sans-serif;
}

#productPage .pd-buy:hover,
.pd-overlay .pd-buy:hover {
    background: #0F6FB2;
    color: #fff;
}

html.pd-overlay-open,
body.pd-overlay-open {
    overflow: hidden;
}

body.pd-overlay-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(22, 27, 45, 0.4);
    z-index: 99999;
    animation: pd-fade 0.3s ease;
}

@keyframes pd-fade {
    from { opacity: 0; }
}

.pd-overlay {
    font-family: "Unbounded", sans-serif;
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--pd-sheet-h, 50dvh);
    max-height: 100dvh;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    background: #f2f3f5;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    transform: translate3d(0, 100%, 0);
    transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1), height 0.42s cubic-bezier(0.32, 0.72, 0, 1), border-radius 0.42s ease;
}

.pd-overlay.is-in {
    transform: translate3d(0, 0, 0);
}

.pd-overlay.is-dragging,
.pd-overlay.is-prep {
    transition: none;
}

.pd-overlay.is-full {
    height: 100dvh;
    border-radius: 0;
}

.pd-overlay.is-peek,
.pd-overlay.is-peek * {
    touch-action: none;
}

.pd-overlay[hidden] {
    display: none !important;
}

.pd-overlay .pd {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
}

.pd-overlay .pd-back {
    position: absolute;
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: 12px;
    z-index: 3;
}

.pd-overlay.is-peek .pd-back {
    display: none;
}

.pd-grab {
    display: none;
}

.pd-overlay.is-peek .pd-grab {
    display: block;
    position: absolute;
    z-index: 4;
    top: 8px;
    left: 50%;
    width: 36px;
    height: 5px;
    margin-left: -18px;
    border-radius: 999px;
    background: #d5d8de;
    pointer-events: none;
}

.pd-overlay.is-peek .pd-tools {
    top: 20px;
}

.pd-overlay.is-peek button.pd-tool {
    background: #fff;
}

.pd-overlay .pd-back svg {
    transform: rotate(-90deg);
}

.pd-overlay .pd-tools {
    position: absolute;
    z-index: 3;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: max(12px, calc(50% - 360px + 12px));
}

.pd-overlay .pd-buy {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    flex: none;
    width: min(696px, calc(100% - 24px));
    max-width: 696px;
    margin: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
    align-self: center;
    justify-content: center;
    z-index: 2;
}

.pd-peek {
    display: none;
}

.pd-overlay.is-peek .pd {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
}

.pd-overlay.is-peek .pd-gallery,
.pd-overlay.is-peek .pd-dots,
.pd-overlay.is-peek .pd-body,
.pd-overlay.is-peek .pd-specs,
.pd-overlay.is-peek .pd-similar {
    display: none;
}

.pd-overlay.is-peek .pd-peek {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 8px;
    padding: 72px 12px 0;
}

.pd-peek-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 20px;
    background: #fff;
}

.pd-peek-photo {
    width: 96px;
    height: 96px;
    flex: none;
    padding: 6px;
    box-sizing: border-box;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
}

.pd-peek-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.pd-peek-brand,
.pd-peek-name,
.pd-peek-article {
    margin: 0;
}

.pd-peek-brand {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f2f3f5;
    font-size: 10px;
    font-weight: 500;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pd-peek-name {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: #161B2D;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pd-peek-article {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 400;
    color: #8b909a;
}

.pd-peek-note {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    padding: 12px 14px;
}

.pd-peek-note::before {
    content: "";
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8f3fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231280D0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 3h15v13H1zM16 8h4l3 3v5h-7z'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.pd-peek-note strong,
.pd-peek-note span {
    display: block;
    grid-column: 2;
}

.pd-peek-note > span:only-child {
    grid-row: 1 / span 2;
}

.pd-peek-note strong {
    font-size: 15px;
    font-weight: 500;
    color: #161B2D;
}

.pd-peek-note strong + span {
    margin-top: 3px;
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
}

.pd-peek-note > span:only-child {
    font-size: 13px;
    color: #6b7280;
}

.pd-peek-note.is-fast strong {
    color: #1280D0;
}

.pd-peek-note.is-tomorrow strong {
    color: #002f5c;
}

.pd-overlay.is-peek .pd-dock {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}

.pd-overlay.is-full .pd-dock {
    display: contents;
}

.pd-dock-price {
    display: none;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #161B2D;
}

.pd-overlay.is-peek .pd-dock-price {
    display: block;
}

.pd-overlay.is-peek .pd-buy {
    width: auto;
    min-width: 168px;
    max-width: 52%;
    margin: 0;
    flex: 0 0 auto;
}

.pd-overlay .pd-buy.is-qty,
.pd-overlay .pd-buy.is-qty:hover,
.pd-overlay .pd-buy.is-qty:focus {
    background: #fff;
    color: #161B2D;
    border-radius: 999px;
    justify-content: stretch;
    padding: 0;
}

.pd-overlay.is-peek .pd-buy.is-qty {
    width: 168px;
    min-width: 168px;
    height: 52px;
}

.pd-overlay .pd-buy.is-qty .qty-btn,
.pd-overlay .pd-buy.is-qty .pd-qty {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    color: #161B2D;
}

.pd-overlay .pd-buy.is-qty .minus {
    color: #9aa1ad;
    font-size: 22px;
}

.pd-overlay .pd-buy.is-qty .plus {
    font-size: 22px;
}

@media (prefers-reduced-motion: reduce) {
    .pd-overlay {
        transition: none;
    }
}
