.wh-part-single {
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr);
    margin: 0 auto;
}

.wh-part-single[data-padding] {
    padding: var(--wh-part-padding, 24px);
}

.wh-part-single.has-background {
    background-color: var(--wh-part-bg, #ffffff);
}

.wh-part-layout {
    display: grid;
    gap: 36px;
}

@media (min-width: 900px) {
    .wh-part-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        align-items: start;
    }
}

.wh-part-gallery {
    display: grid;
    gap: 18px;
}

.wh-part-gallery-main {
    position: relative;
    padding-top: 72%;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f3f4f6;
}

.wh-part-gallery-main img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.wh-part-gallery-main img:hover {
    transform: scale(1.02);
}

.wh-part-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.wh-part-thumb {
    width: 92px;
    height: 92px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    background-color: #f8fafc;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease;
    flex: 0 0 auto;
}

.wh-part-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wh-part-thumb.is-active {
    border-color: var(--wh-part-accent, #5f3dc4);
    transform: translateY(-2px);
}

.wh-part-content {
    display: grid;
    gap: 24px;
}

.wh-part-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 8px;
}

.wh-part-breadcrumbs a {
    color: var(--wh-part-accent, #5f3dc4);
    text-decoration: none;
    font-weight: 500;
}

.wh-part-breadcrumbs span {
    color: #64748b;
}

.wh-part-header {
    display: grid;
    gap: 12px;
}

.wh-part-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wh-part-label {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    padding: 6px 14px;
    background-color: var(--wh-part-label-bg, rgba(95, 61, 196, 0.12));
    color: var(--wh-part-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.wh-part-title {
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.wh-part-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 14px;
    color: #475569;
}

.wh-part-meta span {
    font-weight: 600;
    color: #0f172a;
}

.wh-part-price-block {
    display: grid;
    gap: 12px;
}

.wh-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.wh-current-price {
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 700;
    color: #0f172a;
}

.wh-sale-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #c026d3;
    background-color: rgba(192, 38, 211, 0.12);
    padding: 6px 12px;
    border-radius: 999px;
}

.wh-original-price {
    font-size: 18px;
    color: #94a3b8;
    text-decoration: line-through;
}

.wh-savings {
    font-size: 14px;
    color: #22c55e;
    font-weight: 600;
}

.wh-part-actions {
    display: grid;
    gap: 16px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    padding: 18px 20px;
    background: rgba(15, 23, 42, 0.015);
}

.wh-qty-row {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.wh-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 999px;
    padding: 8px 12px;
}

.wh-qty-control button {
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    cursor: pointer;
    color: #0f172a;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.wh-qty-control button:hover {
    background-color: rgba(15, 23, 42, 0.05);
}

.wh-qty-display {
    font-size: 18px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.wh-compat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
}

.wh-compat-links a {
    color: #475569;
    text-decoration: none;
}

.wh-compat-links a:hover {
    text-decoration: underline;
}

.wh-part-description {
    font-size: 16px;
    color: #1e293b;
    line-height: 1.66;
}

.wh-part-description h2,
.wh-part-description h3 {
    margin-top: 1.5em;
}

.wh-part-specs {
    display: grid;
    gap: 12px;
    font-size: 15px;
}

.wh-part-spec {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    padding-bottom: 8px;
}

.wh-part-spec strong {
    color: #0f172a;
}

.wh-alert-lowstock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #f97316;
    background-color: rgba(249, 115, 22, 0.12);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
}

.wh-part-cart-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: #475569;
}

.wh-part-cart-links a {
    color: var(--wh-part-accent);
    text-decoration: none;
}

.wh-part-cart-links a:hover {
    text-decoration: underline;
}

.wh-backorder-note {
    color: #b45309;
    font-weight: 600;
}

.wh-part-out-of-stock {
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    font-weight: 600;
    font-size: 15px;
}

.wh-part-empty {
    padding: 48px;
    text-align: center;
    border: 1px dashed rgba(148, 163, 184, 0.5);
    border-radius: 18px;
    color: #475569;
}


