html:has(.pd-layout) { font-size: 100%; }
body:has(.pd-layout) {
    --pd-accent: var(--drawer-shop-accent, var(--modern-blue, var(--acg-primary, #303b54)));
    --pd-ink: #20242b;
    --pd-muted: #616975;
    --pd-line: #dedfe4;
    --pd-tint: color-mix(in srgb, var(--pd-accent) 5%, white);
    color: var(--pd-ink);
}
.pd-layout, .pd-layout *, .pd-mobile-nav * { box-sizing: border-box; }
.pd-layout [hidden] { display: none !important; }
.pd-layout.pd-layout {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: clamp(16px, 1.6vw, 26px);
    width: min(1480px, calc(100% - 48px));
    margin: 24px auto 52px;
    padding: 0;
}
.pd-layout .drawer-shop__drawer-header span { display: none; }
.pd-layout .drawer-shop__drawer-header { min-height: 70px; }
.pd-main, .pd-columns > *, .pd-checkout > *, .pd-intro { min-width: 0; }
.pd-layout :is(button, a, input, select, textarea):focus-visible {
    outline: 2px solid var(--pd-accent);
    outline-offset: 3px;
}
.pd-categories, .pd-info, .pd-checkout {
    border: 1px solid var(--pd-line);
    border-radius: 16px;
    background: white;
    box-shadow: 0 3px 14px rgb(22 28 39 / 3%);
}
.pd-categories { position: sticky; top: 120px; align-self: start; max-height: calc(100vh - 140px); overflow-y: auto; padding: 20px; }
.pd-categories nav { display: grid; gap: 4px; }
.pd-categories nav a { padding: 8px 10px; border-radius: 6px; color: inherit; text-decoration: none; }
.pd-categories nav .pd-child { padding-left: 26px; font-size: .9rem; }
.pd-categories a:is(:hover, [aria-current]) { color: var(--pd-accent); background: var(--pd-tint); }
.pd-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 1px 0 14px; color: var(--pd-muted); font-size: .83rem; }
.pd-breadcrumb a { color: inherit; text-decoration: none; }
.pd-breadcrumb a:hover, .pd-links :is(a, button):hover { text-decoration: underline; }
.pd-breadcrumb [aria-current] { color: var(--pd-ink); }
.pd-columns { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: clamp(14px, 1.4vw, 22px); align-items: start; }
.pd-info { overflow: hidden; }
.pd-info h1 { margin: 0; font-size: clamp(1.45rem, 2vw, 2.15rem); line-height: 1.28; font-weight: 720; letter-spacing: -.025em; overflow-wrap: anywhere; }
.pd-layout h2 { margin: 0; color: var(--pd-ink); font-size: 1.1rem; line-height: 1.35; font-weight: 680; }
.pd-categories h2 { margin-bottom: 14px; }
.pd-cover {
    display: grid;
    place-items: center;
    height: clamp(152px, 15vw, 232px);
    overflow: hidden;
    padding: 14px;
    border-bottom: 1px solid #ebecf0;
    background: #f6f7f9;
}
.pd-cover img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.pd-intro, .pd-service { padding: clamp(18px, 1.6vw, 26px); }
.pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin-top: 10px; color: var(--pd-muted); font-size: .84rem; }
.pd-meta > span + span::before { content: "·"; margin-inline: 8px; color: #888e98; }
.pd-meta .item-stock { padding: 0; border: 0; background: none; color: inherit; }
.pd-meta [data-detail-stock="empty"] { color: #a63630; }
.pd-price { margin-top: 20px; line-height: 1.12; font-variant-numeric: tabular-nums; }
.pd-price > small, .pd-total small { display: block; margin-bottom: 5px; font-size: .81rem; color: var(--pd-muted); }
.pd-price strong { color: var(--pd-ink); font-size: clamp(1.9rem, 2.7vw, 2.6rem); font-weight: 700; letter-spacing: -.045em; }
.pd-price .detail-unit-label { color: var(--pd-muted); font-size: .875rem; }
.pd-info .product-notice { margin: 0; border: 0; border-top: 1px solid var(--pd-line); border-radius: 0; }
.pd-info .product-notice__header { padding: 18px clamp(18px, 1.6vw, 26px); }
.pd-info .product-notice__labels { gap: 5px; }
.pd-info .product-notice__labels small:first-of-type { color: var(--pd-muted); font-size: .82rem; }
.pd-info .product-notice__action { color: var(--pd-accent); }
.pd-info .product-notice__content { margin-inline: clamp(18px, 1.6vw, 26px); }
.pd-service { border-top: 1px solid var(--pd-line); }
.pd-service h2 { font-size: 1rem; }
.pd-service ul { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 18px; padding: 0; list-style: none; color: var(--pd-muted); font-size: .875rem; }
.pd-service li { display: inline-flex; align-items: center; gap: 6px; }
.pd-links { display: flex; align-items: center; gap: 16px; }
.pd-links a, .pd-links button { padding: 0; border: 0; background: none; color: var(--pd-accent); font: inherit; font-size: .875rem; text-decoration: none; }
.pd-links a { padding: 6px 12px; border: 1px solid var(--pd-line); border-radius: 8px; }
.pd-checkout.vstack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; padding: clamp(16px, 1.5vw, 24px); align-self: start; }
.pd-credentials { display: grid; gap: 13px; }
@media (min-width: 768px) {
    .pd-checkout { container: purchase / inline-size; }
    @container purchase (min-width: 370px) {
        .pd-credentials:has(> :nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
}
.pd-checkout > h2 { margin-bottom: 2px; font-size: 1.25rem; }
.pd-checkout .form-label { display: block; margin: 0 0 5px; font-size: .9rem; font-weight: 600; color: var(--pd-ink); }
.pd-checkout .form-control, .pd-checkout .optional-card {
    width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px;
    border: 1px solid #ccd0d7; border-radius: 8px; background: white; color: var(--pd-ink); font-size: 1rem;
    box-shadow: none;
}
.pd-checkout input::placeholder { color: #717785; font-size: .875rem; }
.pd-checkout :is(input, select, textarea):focus { border-color: var(--pd-accent); }
.pd-checkout .form-check-input { accent-color: var(--pd-accent); }
.pd-checkout .form-check-input:checked { background-color: var(--pd-accent); border-color: var(--pd-accent); }
.pd-checkout .form-check-label { color: var(--pd-ink); font-weight: 450; font-size: .9rem; }
.pd-checkout .form-text { color: var(--pd-muted); font-size: .82rem; }
.pd-checkout .sku-list, .pd-checkout .detail-tier-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pd-checkout .sku, .pd-checkout .detail-tier-choice { padding: 7px 10px; max-width: 100%; border: 1px solid var(--pd-line); border-radius: 7px; background: white; color: var(--pd-ink); font-size: .85rem; box-shadow: none; overflow-wrap: anywhere; }
.pd-checkout .sku.is-primary, .pd-checkout .detail-tier-choice[aria-pressed="true"] { border-color: var(--pd-accent); background: var(--pd-tint); color: var(--pd-accent); }
.pd-checkout .detail-wholesale h2 { margin-bottom: 7px; font-size: .9rem; }
.detail-tier-price { margin-left: 6px; }
.pd-quantity { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pd-quantity .form-label { margin: 0; }
.pd-quantity .qty-group { display: grid; grid-template-columns: 40px minmax(40px, 1fr) 40px; width: 138px; padding: 0; border: 1px solid #ccd0d7; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: none; }
.pd-quantity .qty-group :is(input, button) { width: 100%; height: 42px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--pd-ink); box-shadow: none; font: inherit; text-align: center; }
.pd-quantity .qty-group button { font-size: 1.15rem; }
.pd-quantity .qty-group button:hover { background: #f3f4f6; }
.pd-quantity .qty-group:focus-within { outline: 2px solid var(--pd-accent); outline-offset: 1px; }
.pd-quantity input { appearance: textfield; }
.pd-quantity input::-webkit-inner-spin-button { appearance: none; }
.pd-checkout .wholesale-table { display: none; }
.pd-captcha { display: flex; align-items: center; gap: 10px; }
.pd-captcha img { max-width: 45%; cursor: pointer; }
.pd-checkout .cash-pay { padding: 15px 0 0; border: 0; border-top: 1px solid var(--pd-line); border-radius: 0; background: transparent; box-shadow: none; }
.pd-checkout .cash-pay h2 { margin-bottom: 10px; }
.pd-checkout .pay-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; border: 0; }
.pd-checkout .pay-list .pay {
    display: grid; grid-template-columns: 20px 1fr 12px; grid-template-rows: auto auto; align-content: center;
    align-items: center; gap: 0 7px; width: 100%; min-width: 0; min-height: 50px; padding: 6px 9px;
    border: 1px solid #cdd1d7; border-radius: 8px; background: white; color: var(--pd-ink); text-align: start; box-shadow: none; white-space: normal;
}
.pd-checkout .pay img { grid-row: 1 / 3; width: 20px; height: 20px; object-fit: contain; border-radius: 4px; box-shadow: none; }
.pd-checkout .pay span { grid-column: 2; color: var(--pd-ink); font-size: .85rem; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.pd-checkout .pay small { grid-column: 2; font-size: .75rem; line-height: 1.35; color: var(--pd-muted); }
.pd-checkout .pay::after { content: ""; grid-column: 3; grid-row: 1 / 3; width: 12px; height: 12px; border: 1px solid #a3a9b3; border-radius: 50%; }
.pd-checkout .pay[aria-pressed="true"] { border-color: var(--pd-accent); background: var(--pd-tint); box-shadow: inset 0 0 0 1px var(--pd-accent); }
.pd-checkout .pay[aria-pressed="true"]::after { border: 4px solid var(--pd-accent); background: #fff; }
.pd-checkout .cash-pay > a { font-size: .82rem; color: var(--pd-accent) !important; }
.pd-checkout .pd-receipt { display: grid; gap: 4px; margin: 0; padding-top: 12px; border-top: 1px solid var(--pd-line); }
.pd-receipt > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pd-receipt dt, .pd-receipt dd { margin: 0; font-size: .875rem; font-weight: 450; font-variant-numeric: tabular-nums; }
.pd-receipt dt { color: var(--pd-muted); }
.pd-purchase-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pd-total strong { color: var(--pd-ink); font-size: 1.6rem; line-height: 1.15; font-weight: 720; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pd-buy { width: 52%; min-height: 46px; padding: 9px 14px; border: 0; border-radius: 9px; background: var(--pd-accent); color: white; font: inherit; font-size: 1rem; font-weight: 650; }
.pd-buy:hover:enabled { filter: brightness(.92); }
.pd-buy:disabled, .detail-tier-choice:disabled { opacity: .56; cursor: not-allowed; }
.pd-status:empty { display: none; }
.pd-status, .pd-checkout #detail-quantity-hint { margin: 0; color: var(--pd-muted); font-size: .875rem; }
.pd-status button, .pd-price button { border: 0; background: transparent; color: var(--pd-accent); text-decoration: underline; font: inherit; }
.pd-mobile-nav, body:has(.pd-layout) :is(.tt-customer-service-float, .modern-category-bar) { display: none; }
@media (min-width: 768px) and (max-width: 1023px) {
    .pd-layout.pd-layout { width: calc(100% - 32px); grid-template-columns: 240px minmax(0, 1fr); }
    .pd-columns { grid-template-columns: minmax(0, 1fr); }
    .pd-hero { display: flex; align-items: center; }
    .pd-cover { flex: 0 0 120px; height: 120px; margin-left: 18px; border: 0; border-radius: 9px; }
}
@media (max-width: 767.98px) {
    body:has(.pd-layout) { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; }
    body:has(.pd-layout) :is(.drawer-shop__header, .modern-header, .navbar-acg, .tt-mobile-bottom-nav), .pd-categories, .pd-breadcrumb { display: none !important; }
    .pd-mobile-nav { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; padding: 0 8px; border-bottom: 1px solid var(--pd-line); background: white; text-align: center; }
    .pd-mobile-nav :is(a, button) { display: grid; place-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: .875rem; text-decoration: none; }
    .pd-mobile-nav a { font-size: 1.75rem; }
    .pd-layout.pd-layout { display: block; width: auto; margin: 12px 10px 18px; }
    body:not(.drawer-shop--drawer-open) .pd-layout .drawer-shop__drawer { visibility: hidden; }
    .pd-columns { display: flex; flex-direction: column; gap: 12px; }
    .pd-info, .pd-checkout { width: 100%; border-radius: 12px; }
    .pd-hero { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 12px; padding: 15px; }
    .pd-cover { grid-area: 1 / 2; padding: 0; width: 64px; height: 64px; border: 1px solid var(--pd-line); border-radius: 9px; }
    .pd-intro { grid-area: 1 / 1; padding: 0; }
    .pd-info h1 { font-size: 1.25rem; }
    .pd-meta { gap: 2px 0; margin-top: 7px; font-size: .78rem; }
    .pd-meta > span + span::before { margin-inline: 5px; }
    .pd-price { margin-top: 12px; }
    .pd-price > small { display: none; }
    .pd-price strong { font-size: 1.8rem; }
    .pd-info .product-notice__header, .pd-service { padding: 12px 15px; }
    .pd-service ul, .pd-service h2, .pd-links button { display: none; }
    .pd-links a { padding: 0; border: 0; }
    .pd-checkout.vstack { padding: 16px; }
    .pd-purchase-bar { position: fixed; z-index: 1025; inset: auto 0 0; padding: 9px max(16px, env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); border-top: 1px solid var(--pd-line); background: white; }
    body.detail-keyboard-open .pd-purchase-bar { visibility: hidden; }
    .pd-checkout :is(input, select, textarea, button) { scroll-margin-block: 12px 90px; }
    body:has(.pd-layout) .tt-activity-float { position: relative; inset: auto; margin: 12px; transform: none; }
}
