/* ----------------------------------------------------------------
 * Product detail conversion layout v2
 * ---------------------------------------------------------------- */
.erp-theme-shell .erp-product {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 18px 18px 108px;
}

.erp-product__breadcrumb {
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 20px;
    color: var(--erp-text-muted);
    font-size: 12px;
    white-space: nowrap;
}

.erp-product__breadcrumb > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.erp-product__layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(410px, .92fr);
    grid-template-areas: "gallery heading" "gallery info";
    grid-template-rows: auto 1fr;
    gap: 18px clamp(38px, 5vw, 74px);
    margin-bottom: 58px;
}

.erp-product__heading {
    grid-area: heading;
    min-width: 0;
}

.erp-product__heading .erp-product__meta {
    margin-bottom: 0;
}

.erp-product__gallery {
    grid-area: gallery;
    position: sticky;
    top: 92px;
    min-width: 0;
}

.erp-product__gallery-card {
    position: relative;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--erp-border) 86%, transparent);
    border-radius: 22px;
    background: linear-gradient(145deg, var(--erp-bg), var(--erp-bg-light));
    box-shadow: 0 18px 50px rgba(15, 23, 42, .07);
}

.erp-product__main-image {
    position: relative;
    display: grid;
    width: 100%;
    aspect-ratio: 1 / 1;
    place-items: center;
    overflow: hidden;
    padding: clamp(18px, 4vw, 48px);
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.erp-product__main-image img {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
    transition: transform .28s ease;
}

.erp-product__main-image:hover img {
    transform: scale(1.025);
}

.erp-product__zoom-hint {
    position: absolute;
    right: 16px;
    bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 999px;
    background: rgba(17,24,39,.78);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.erp-product__zoom-hint svg {
    width: 15px;
    height: 15px;
}

.erp-product__gallery-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px 13px;
    border-top: 1px solid color-mix(in srgb, var(--erp-border) 76%, transparent);
    color: var(--erp-text-muted);
    font-size: 11px;
}

.erp-product__gallery-footer strong {
    color: var(--erp-text);
}

.erp-product__flags {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    pointer-events: none;
}

.erp-product__flag {
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(15,23,42,.14);
}

.erp-product__flag.is-new { background: #166534; }
.erp-product__flag.is-sale { background: #c2410c; }
.erp-product__flag.is-hot { background: #9f1239; }

.erp-product__no-image {
    display: grid;
    aspect-ratio: 1 / 1;
    place-items: center;
    align-content: center;
    gap: 10px;
    border-radius: 0;
    color: var(--erp-text-muted);
}

.erp-product__no-image span {
    font-size: 12px;
}

.erp-product__thumbs {
    display: grid;
    grid-auto-columns: 76px;
    grid-auto-flow: column;
    justify-content: start;
    gap: 10px;
    overflow-x: auto;
    margin-top: 12px;
    padding: 2px 2px 5px;
    scrollbar-width: thin;
}

.erp-product__thumb {
    width: 76px;
    height: 76px;
    padding: 5px;
    border: 1px solid var(--erp-border);
    border-radius: 12px;
    background: var(--erp-bg);
    box-shadow: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.erp-product__thumb.active {
    border-color: var(--erp-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--erp-primary) 15%, transparent);
}

.erp-product__thumb:focus-visible,
.erp-product__main-image:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--erp-primary) 22%, transparent);
    outline-offset: 2px;
}

.erp-product__info {
    grid-area: info;
    min-width: 0;
}

.erp-product__info-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 32px;
}

.erp-product__brand {
    margin: 0;
    color: var(--erp-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .085em;
}

.erp-product__share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--erp-text-muted);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.erp-product__share:hover {
    background: var(--erp-bg-light);
    color: var(--erp-primary);
}

.erp-product__share svg {
    width: 16px;
}

.erp-product__title {
    margin: 7px 0 11px;
    color: var(--erp-text);
    font-size: clamp(29px, 3.1vw, 43px);
    font-weight: 760;
    letter-spacing: -.025em;
    line-height: 1.08;
}

.erp-product__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 17px;
    color: var(--erp-text-muted);
    font-size: 11.5px;
}

.erp-product__meta strong {
    color: var(--erp-text);
    font-weight: 650;
}

.erp-product__purchase-card {
    padding: 22px;
    border: 1px solid color-mix(in srgb, var(--erp-border) 86%, transparent);
    border-radius: 18px;
    background: var(--erp-bg);
    box-shadow: 0 16px 45px rgba(15, 23, 42, .08);
}

.erp-product__price-block {
    margin-bottom: 17px;
}

.erp-product__price-label {
    display: block;
    margin-bottom: 5px;
    color: var(--erp-text-muted);
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: .065em;
    text-transform: uppercase;
}

.erp-product__price {
    min-height: 48px;
    margin: 0;
}

.erp-product__price-reference {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 18px;
    color: var(--erp-text-muted);
    font-size: 10px;
}

.erp-product__price-reference .erp-product__price-old {
    margin: 0;
    font-size: 13px;
}

.erp-product__price-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.erp-product__price-current {
    color: var(--erp-text);
    font-size: clamp(30px, 3.2vw, 40px);
    font-weight: 820;
    letter-spacing: -.03em;
    line-height: 1.08;
}

.erp-product__price-saving {
    padding: 4px 7px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 10.5px;
    font-weight: 800;
}

.erp-product__price-vat {
    width: 100%;
    margin-top: 5px;
    color: var(--erp-text-muted);
    font-size: 10.5px;
}

.erp-product__price-assurance {
    display: block;
    margin-top: 2px;
    color: var(--erp-text-muted);
    font-size: 10.5px;
}

.erp-product__price-loading {
    display: grid;
    width: 220px;
    gap: 7px;
    padding-top: 4px;
}

.erp-product__price-loading span {
    display: block;
    height: 20px;
    border-radius: 7px;
    background: linear-gradient(90deg, var(--erp-bg-light), var(--erp-border), var(--erp-bg-light));
    background-size: 200% 100%;
    animation: erp-product-shimmer 1.2s linear infinite;
}

.erp-product__price-loading span:first-child { width: 185px; height: 31px; }
.erp-product__price-loading span:last-child { width: 120px; height: 11px; }

@keyframes erp-product-shimmer {
    to { background-position: -200% 0; }
}

.erp-product__availability {
    margin: 0 0 18px;
    padding: 12px 13px;
    border-radius: 11px;
    box-shadow: none !important;
}

.erp-product__availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
}

.erp-product__availability-badge i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 10%, transparent);
}

.erp-product__availability-live {
    color: var(--erp-text-muted);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.erp-product__availability-note {
    margin-top: 5px;
    font-size: 11.5px;
}

.erp-product__variants {
    margin: 0 0 18px;
    padding-top: 2px;
}

.erp-product__variants label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 750;
}

.erp-product__variants label small {
    padding: 3px 7px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--erp-primary) 8%, var(--erp-bg));
    color: var(--erp-primary);
    font-size: 9px;
    text-transform: uppercase;
}

.erp-product__variants .erp-select {
    min-height: 49px;
    padding: 11px 42px 11px 13px;
    border-radius: 10px;
    border-color: color-mix(in srgb, var(--erp-primary) 26%, var(--erp-border));
    font-size: 13px;
    font-weight: 600;
}

.erp-product__variant-navigation {
    margin: 0 0 14px;
    min-width: 0;
}

.erp-product__variant-navigation > strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
}

.erp-product__variant-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.erp-product__variant-links li {
    display: block;
    min-width: 0;
    max-width: 100%;
    margin: 0;
}

.erp-product__variant-links a {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 10px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 80px;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 2px solid var(--erp-border);
    border-radius: 8px;
    background: var(--erp-bg);
    color: var(--erp-text);
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.erp-product__variant-links a:hover,
.erp-product__variant-links a[aria-current="page"] {
    border-color: var(--erp-primary);
    background: color-mix(in srgb, var(--erp-primary) 6%, var(--erp-bg));
    color: var(--erp-primary);
}

.erp-product__variant-links a[aria-current="page"] {
    box-shadow: inset 0 0 0 1px var(--erp-primary);
}

.erp-product__variant-links a:focus-visible {
    outline: 2px solid var(--erp-primary);
    outline-offset: 3px;
}

.erp-product__variant-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
    color: var(--erp-text-muted);
}

.erp-product__variant-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
}

.erp-product__variant-details {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.erp-product__variant-name {
    font-weight: 600;
}

.erp-product__variant-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    min-width: 0;
}

.erp-product__variant-price {
    color: var(--erp-text);
    font-size: 14px;
    font-weight: 600;
}

.erp-product__variant-links .erp-product__variant-sku,
.erp-product__variant-stock {
    color: var(--erp-text-muted);
    font-size: 11px;
    font-weight: 400;
}

.erp-product__variant-status {
    align-self: start;
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--erp-text-muted);
}

.erp-product__variant-status.is-available,
.erp-product__variant-status.is-low {
    background: var(--erp-success);
}

.erp-product__variant-status.is-incoming,
.erp-product__variant-status.is-backorder {
    background: #f59e0b;
}

.erp-product__variant-status.is-unavailable {
    background: var(--erp-danger);
}

@media (max-width: 480px) {
    .erp-product__variant-links a {
        grid-template-columns: 48px minmax(0, 1fr) 10px;
        gap: 8px;
        padding: 8px;
    }

    .erp-product__variant-image {
        width: 48px;
        height: 48px;
    }
}

.erp-product__action-labels {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 11px;
    margin-bottom: 5px;
    color: var(--erp-text-muted);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.erp-product__actions {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 11px;
    margin-bottom: 0;
}

.erp-product__actions .erp-qty {
    display: grid;
    grid-template-columns: 34px 44px 34px;
    height: 52px;
    border-radius: 10px;
}

.erp-product__actions .erp-qty__btn {
    width: auto;
    background: var(--erp-bg-light);
    font-size: 18px;
}

.erp-product__actions .erp-qty__input {
    width: auto;
    min-width: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
}

.erp-product__atc {
    width: 100%;
    min-height: 52px;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: .005em;
    box-shadow: 0 9px 20px color-mix(in srgb, var(--erp-primary) 22%, transparent);
}

.erp-product__atc:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px color-mix(in srgb, var(--erp-primary) 28%, transparent);
}

.erp-product__cta-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 9px 0 14px;
    font-size: 10.5px;
}

.erp-product__cta-note svg {
    width: 14px;
    color: var(--erp-success);
}

.erp-product__configurator-cta {
    margin: 0 0 14px;
}

.erp-product__configurator-button {
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    padding: 13px 14px;
    border-radius: 12px;
    box-shadow: none;
}

.erp-product__configurator-button em {
    display: block;
    margin-bottom: 2px;
    color: var(--erp-primary);
    font-size: 8.5px;
    font-style: normal;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.erp-product__configurator-button strong {
    font-size: 13.5px;
}

.erp-product__configurator-button small {
    font-size: 10.5px;
}

.erp-product__configurator-icon {
    width: 40px;
    height: 40px;
}

.erp-product__benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    overflow: hidden;
    border-radius: 11px;
    background: var(--erp-bg-light);
}

.erp-product__benefits li,
.erp-product__benefits li:last-child {
    align-items: flex-start;
    gap: 7px;
    min-width: 0;
    padding: 10px;
    border-right: 1px solid var(--erp-border);
    border-bottom: 0;
    font-size: 10.5px;
}

.erp-product__benefits li:last-child {
    border-right: 0;
}

.erp-product__benefits svg {
    width: 15px;
    height: 15px;
    margin-top: 1px;
}

.erp-product__benefits li > span {
    display: grid;
    gap: 2px;
}

.erp-product__benefits strong {
    color: var(--erp-text);
    font-size: 10px;
    line-height: 1.25;
}

.erp-product__benefits small {
    color: var(--erp-text-muted);
    font-size: 9px;
    line-height: 1.35;
}

.erp-product__partner-trust {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 11px 13px;
    border: 1px solid #e7ce86;
    border-radius: 12px;
    background: linear-gradient(135deg, #fffdf7 0%, #fbf4df 100%);
    color: var(--erp-text);
}

.erp-product__partner-trust img {
    display: block;
    width: 52px;
    height: auto;
    max-height: 70px;
    object-fit: contain;
}

.erp-product__partner-trust > span {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.erp-product__partner-trust small {
    color: #846516;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.erp-product__partner-trust strong {
    color: #33270c;
    font-size: 11px;
    line-height: 1.35;
}

.erp-product__partner-trust b {
    color: #6d571d;
    font-size: 9.5px;
    font-weight: 500;
    line-height: 1.4;
}

.erp-product__sales-help {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    margin-top: 15px;
    padding: 14px;
    border: 1px solid var(--erp-border);
    border-radius: 14px;
    background: var(--erp-bg-light);
}

.erp-product__sales-help-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 11px;
    background: var(--erp-bg);
    color: var(--erp-primary);
    box-shadow: var(--erp-shadow);
}

.erp-product__sales-help-icon svg {
    width: 21px;
}

.erp-product__sales-help-copy {
    display: grid;
    gap: 3px;
}

.erp-product__sales-help-copy strong {
    font-size: 12.5px;
}

.erp-product__sales-help-copy span {
    color: var(--erp-text-muted);
    font-size: 10.5px;
    line-height: 1.4;
}

.erp-product__sales-help-actions {
    display: grid;
    justify-items: end;
    gap: 5px;
}

.erp-product__sales-help-actions a {
    color: var(--erp-primary);
    font-size: 10.5px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.erp-product__sales-help-actions a:hover {
    text-decoration: underline;
}

.erp-product__bundle {
    margin: 15px 0 0;
    border: 1px solid var(--erp-border);
    border-radius: 13px;
}

.erp-product__details {
    margin: 0 0 46px;
    padding: 28px;
    border: 1px solid var(--erp-border);
    border-radius: 20px;
    background: var(--erp-bg);
}

.erp-product__details-heading {
    margin-bottom: 18px;
}

.erp-product__details-heading > span {
    color: var(--erp-primary);
    font-size: 9.5px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.erp-product__details-heading h2 {
    margin: 4px 0 0;
    color: var(--erp-text);
    font-size: 25px;
}

.erp-product__tabs {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 5px;
    border-radius: 11px;
    background: var(--erp-bg-light);
}

.erp-product__tabs button {
    min-height: 39px;
    padding: 8px 15px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--erp-text-muted);
    font: inherit;
    font-size: 12px;
    font-weight: 720;
    white-space: nowrap;
    cursor: pointer;
}

.erp-product__tabs button[aria-selected="true"] {
    background: var(--erp-bg);
    color: var(--erp-text);
    box-shadow: var(--erp-shadow);
}

.erp-product__tabs button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--erp-primary) 20%, transparent);
}

.erp-product__tab-panel {
    padding: 25px 4px 2px;
    color: var(--erp-text);
    font-size: 14px;
    line-height: 1.7;
}

.erp-product__tab-panel[hidden] {
    display: none !important;
}

.erp-product__description-body {
    max-width: 90ch;
    font-size: 14px;
    line-height: 1.72;
}

/* Pixfort removes list markers globally. Restore readable editorial lists
   only inside the product description, without touching menus or UI lists. */
body.erp-shop-route--product .erp-product__description-body ul,
body.erp-shop-route--product .erp-product__description-body ol {
    margin: 1em 0 !important;
    padding-inline-start: 1.55em !important;
    list-style-position: outside !important;
}

body.erp-shop-route--product .erp-product__description-body ul > li {
    display: list-item !important;
    margin: .38em 0;
    padding-inline-start: .2em;
    list-style: disc outside !important;
}

body.erp-shop-route--product .erp-product__description-body ol > li {
    display: list-item !important;
    margin: .38em 0;
    padding-inline-start: .2em;
    list-style: decimal outside !important;
}

body.erp-shop-route--product .erp-product__description-body ul ul > li {
    list-style-type: circle !important;
}

body.erp-shop-route--product .erp-product__description-body ul ul ul > li {
    list-style-type: square !important;
}

body.erp-shop-route--product .erp-product__description-body li::marker {
    color: var(--erp-primary);
    font-weight: 750;
}

body.erp-shop-route--product .erp-product__description-body li > ul,
body.erp-shop-route--product .erp-product__description-body li > ol {
    margin-top: .35em !important;
    margin-bottom: .35em !important;
}

.erp-product__description-body > :first-child { margin-top: 0; }
.erp-product__description-body > :last-child { margin-bottom: 0; }

.erp-product__spec-groups {
    display: grid;
    gap: 30px;
}

.erp-product__spec-group {
    min-width: 0;
}

.erp-product__spec-group h3 {
    margin: 0 0 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--erp-text);
    color: var(--erp-text);
    font-size: 14px;
    font-weight: 750;
    letter-spacing: -.01em;
}

.erp-product__specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 30px;
    margin: 0;
}

.erp-product__specs > div {
    display: grid;
    grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--erp-border);
}

.erp-product__specs dt {
    color: var(--erp-text-muted);
    font-size: 11.5px;
}

.erp-product__specs dd {
    margin: 0;
    color: var(--erp-text);
    font-size: 12.5px;
    font-weight: 650;
}

.erp-product__service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.erp-product__service-grid article {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--erp-border);
    border-radius: 12px;
    background: var(--erp-bg-light);
}

.erp-product__service-grid svg {
    width: 27px;
    color: var(--erp-primary);
}

.erp-product__service-grid strong {
    font-size: 12.5px;
}

.erp-product__service-grid p {
    margin: 3px 0 0;
    color: var(--erp-text-muted);
    font-size: 11px;
    line-height: 1.45;
}

html.erp-product-lightbox-open {
    overflow: hidden;
}

.erp-product-lightbox {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(1120px, calc(100vw - 30px));
    max-width: none;
    height: min(900px, calc(100dvh - 30px));
    max-height: none;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: var(--erp-bg);
    color: var(--erp-text);
    box-shadow: 0 30px 90px rgba(15,23,42,.35);
}

.erp-product-lightbox::backdrop {
    background: rgba(15,23,42,.76);
    backdrop-filter: blur(6px);
}

.erp-product-lightbox__shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    min-width: 0;
}

.erp-product-lightbox header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 44px;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--erp-border);
}

.erp-product-lightbox header strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.erp-product-lightbox header span {
    color: var(--erp-text-muted);
    font-size: 11px;
}

.erp-product-lightbox header button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--erp-border);
    border-radius: 50%;
    background: var(--erp-bg);
    color: var(--erp-text);
    cursor: pointer;
}

.erp-product-lightbox header button svg { width: 18px; height: 18px; display: block; }

.erp-product-lightbox__stage {
    box-sizing: border-box;
    touch-action: pan-y pinch-zoom;
    position: relative;
    display: grid;
    min-height: 0;
    place-items: center;
    overflow: hidden;
    padding: 24px 72px;
    background: var(--erp-bg-light);
}

.erp-product-lightbox__stage img {
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.erp-product-lightbox .erp-product-lightbox__nav {
    box-sizing: border-box;
    appearance: none;
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    width: 46px;
    height: 46px;
    min-width: 0;
    min-height: 0;
    place-items: center;
    padding: 0;
    margin: 0;
    line-height: 1;
    transform: translateY(-50%);
    border: 1px solid var(--erp-border);
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: #111827;
    font-size: 0;
    cursor: pointer;
    box-shadow: var(--erp-shadow-lg);
}

.erp-product-lightbox__nav svg { display: block; width: 24px; height: 24px; pointer-events: none; }
.erp-product-lightbox button:focus-visible { outline: 3px solid var(--erp-primary, #922668); outline-offset: 2px; }

.erp-product-lightbox__nav.is-prev { left: 16px; }
.erp-product-lightbox__nav.is-next { right: 16px; }

.erp-shop-route .erp-sticky-atc {
    z-index: var(--erp-z-sticky-atc, 2147483000) !important;
    isolation: isolate;
    border-top-color: color-mix(in srgb, var(--erp-border) 80%, transparent);
    background: color-mix(in srgb, var(--erp-bg) 94%, transparent);
    box-shadow: 0 -12px 35px rgba(15,23,42,.11);
    backdrop-filter: blur(14px);
}

.erp-sticky-atc__inner {
    max-width: 1320px;
    min-height: 68px;
    padding: 9px 18px calc(9px + env(safe-area-inset-bottom));
}

.erp-sticky-atc__meta {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.erp-sticky-atc__meta img {
    width: 48px;
    height: 48px;
    border: 1px solid var(--erp-border);
    border-radius: 9px;
    background: var(--erp-bg-light);
    object-fit: contain;
}

.erp-sticky-atc__meta > span {
    min-width: 0;
}

.erp-sticky-atc__meta strong {
    overflow: hidden;
    max-width: 430px;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.erp-sticky-atc__meta small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.erp-sticky-atc__price {
    display: inline !important;
    font-size: 12px !important;
}

.erp-sticky-atc__mobile-price {
    display: none;
    color: var(--erp-text);
    font-size: 13px;
    white-space: nowrap;
}

.erp-sticky-atc__configurator {
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid color-mix(in srgb, var(--erp-primary) 45%, var(--erp-border));
    border-radius: 9px;
    background: var(--erp-bg);
    color: var(--erp-primary);
    font: inherit;
    font-size: 11px;
    font-weight: 780;
    cursor: pointer;
}

.erp-sticky-atc__configurator:hover:not(:disabled) {
    border-color: var(--erp-primary);
    background: color-mix(in srgb, var(--erp-primary) 5%, var(--erp-bg));
}

.erp-sticky-atc__configurator:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.erp-sticky-atc__button {
    min-height: 42px;
    border-radius: 9px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

@media (max-width: 1100px) {
    .erp-product__layout {
        grid-template-columns: minmax(0, 1fr) minmax(380px, .95fr);
        column-gap: 34px;
    }

    .erp-product__benefits {
        grid-template-columns: 1fr;
    }

    .erp-product__benefits li,
    .erp-product__benefits li:last-child {
        border-right: 0;
        border-bottom: 1px solid var(--erp-border);
    }

    .erp-product__benefits li:last-child { border-bottom: 0; }
}

@media (max-width: 900px) {
    .erp-product__layout {
        grid-template-columns: 1fr;
        grid-template-areas: "heading" "gallery" "info";
        grid-template-rows: auto;
        gap: 18px;
    }

    .erp-product__gallery {
        position: static;
        width: 100%;
        max-width: 650px;
        margin: 0 auto;
    }

    .erp-product__heading,
    .erp-product__info {
        width: 100%;
        max-width: 720px;
        margin: 0 auto;
    }
}

@media (max-width: 700px) {
    .single-product #content.erp-shop-shell-content {
        padding-top: 10px !important;
    }

    .erp-theme-shell .erp-product {
        padding: 10px 12px 112px;
    }

    .erp-product__breadcrumb {
        margin-bottom: 11px;
        padding-bottom: 3px;
        overflow-x: auto;
    }

    .erp-product__layout {
        gap: 20px;
        margin-bottom: 30px;
    }

    .erp-product__gallery-card {
        border-radius: 15px;
    }

    .erp-product__main-image {
        height: clamp(220px, 42svh, 360px);
        aspect-ratio: auto;
        padding: 16px;
    }

    .erp-product__zoom-hint {
        right: 10px;
        bottom: 10px;
        padding: 6px 8px;
        font-size: 0;
    }

    .erp-product__zoom-hint svg { width: 17px; }

    .erp-product__gallery-footer {
        padding: 8px 12px 10px;
    }

    .erp-product__thumbs {
        grid-auto-columns: 60px;
        gap: 8px;
    }

    .erp-product__thumb {
        width: 60px;
        height: 60px;
        border-radius: 9px;
    }

    .erp-product__title {
        margin-top: 4px;
        font-size: 26px;
        line-height: 1.12;
    }

    .erp-product__purchase-card {
        padding: 16px;
        border-radius: 15px;
    }

    .erp-product__price-current {
        font-size: 30px;
    }

    .erp-product__action-labels {
        grid-template-columns: 102px minmax(0, 1fr);
    }

    .erp-product__actions {
        grid-template-columns: 102px minmax(0, 1fr);
    }

    .erp-product__actions .erp-qty {
        grid-template-columns: 30px 42px 30px;
    }

    .erp-product__configurator-button {
        grid-template-columns: 38px minmax(0, 1fr) 18px;
    }

    .erp-product__sales-help {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .erp-product__sales-help-actions {
        grid-column: 2;
        grid-auto-flow: column;
        justify-content: start;
        justify-items: start;
        gap: 12px;
    }

    .erp-product__details {
        margin-bottom: 28px;
        padding: 18px 15px;
        border-radius: 15px;
    }

    .erp-product__details-heading h2 { font-size: 21px; }

    .erp-product__tabs {
        margin: 0 -4px;
    }

    .erp-product__tab-panel {
        padding-top: 19px;
    }

    .erp-product__specs,
    .erp-product__service-grid {
        grid-template-columns: 1fr;
    }

    .erp-product__specs > div {
        grid-template-columns: minmax(105px, .8fr) minmax(0, 1.2fr);
    }

    .erp-product-lightbox {
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
    }

    .erp-product-lightbox header {
        grid-template-columns: minmax(0, 1fr) 44px;
        padding-top: calc(14px + env(safe-area-inset-top));
        padding-left: max(18px, env(safe-area-inset-left));
        padding-right: max(18px, env(safe-area-inset-right));
    }

    .erp-product-lightbox header span { display: none; }

    .erp-product-lightbox__stage {
        padding: 18px calc(54px + env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) calc(54px + env(safe-area-inset-left));
    }

    .erp-product-lightbox .erp-product-lightbox__nav {
        width: 44px;
        height: 44px;
    }

    .erp-product-lightbox__nav.is-prev { left: calc(6px + env(safe-area-inset-left)); }
    .erp-product-lightbox__nav.is-next { right: calc(6px + env(safe-area-inset-right)); }

    .erp-sticky-atc__inner {
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    }

    .erp-sticky-atc__meta {
        display: none;
    }

    .erp-sticky-atc__controls {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 6px;
    }

    .erp-sticky-atc__mobile-price {
        display: block;
        width: 100%;
        line-height: 1;
    }

    .erp-sticky-atc__qty {
        display: none;
    }

    .erp-sticky-atc__configurator,
    .erp-sticky-atc__button {
        flex: 1 1 145px;
        min-width: 0;
        min-height: 39px;
        padding: 7px 9px;
    }
}

.erp-product__delivery-detail,
.erp-product__package {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--erp-border);
    color: var(--erp-text);
    font-size: 13px;
    line-height: 1.6;
}
.erp-product__delivery-detail > strong { font-weight: 650; }
.erp-product__delivery-detail > p { margin: 4px 0; }
.erp-product__delivery-detail > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--erp-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.erp-product__package > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    cursor: pointer;
    font-weight: 650;
    list-style: none;
}
.erp-product__package > summary::-webkit-details-marker { display: none; }
.erp-product__package > summary::after { content: '+'; font-size: 20px; color: var(--erp-primary); }
.erp-product__package[open] > summary::after { content: '−'; }
.erp-product__package-body { padding-top: 8px; overflow-wrap: anywhere; }
.erp-product__package-body :is(p, ul, ol) { margin: 0 0 10px; }
.erp-product__package-body :is(ul, ol) { padding-left: 20px; }
.erp-product__delivery-detail > a:focus-visible,
.erp-product__package > summary:focus-visible { outline: 3px solid var(--erp-primary); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    .erp-product__main-image img,
    .erp-product__atc,
    .erp-product__price-loading span {
        transition: none;
        animation: none;
    }
}

/* Native quantity menus retain the same centred purchase controls. */
#erp-qty, #erp-sticky-qty {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    height: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    text-align-last: center;
    background: var(--erp-bg);
    color: var(--erp-text);
    border-radius: 0;
    cursor: pointer;
}
.erp-product__actions .erp-qty__btn,
.erp-sticky-atc .erp-sticky-atc__qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    padding: 0;
    line-height: 1;
}
.erp-product__brand[href] { text-decoration: none; }
.erp-product__brand[href]:hover { color: var(--erp-primary-hover); text-decoration: underline; }
.erp-product__brand[href]:focus-visible,
#erp-qty:focus-visible, #erp-sticky-qty:focus-visible {
    outline: 2px solid var(--erp-primary);
    outline-offset: 2px;
}
