.store-page {
    font-family: var(--font-body, inherit);
}

.store-page main {
    min-height: 50vh;
}

/* —— Store account auth (login / register) —— */
.store-auth,
.store-auth__card {
    font-family: var(--font-body, inherit);
}

.store-auth__wrap {
    width: 100%;
}

.store-auth__card {
    box-shadow: 0 1px 3px rgb(15 23 42 / 0.06);
}

.store-auth__head {
    background-color: var(--color-primary, #3b82f6);
    border-bottom-color: transparent;
    color: #fff;
}

.store-auth__head .text-default-950,
.store-auth__head .text-default-900,
.store-auth__head .text-default-800 {
    color: #fff;
}

.store-auth__head .text-primary {
    color: rgb(255 255 255 / 0.92);
}

.store-auth__head .text-default-400,
.store-auth__head .text-default-500 {
    color: rgb(255 255 255 / 0.78);
}

.store-auth__brand {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.store-auth__body {
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .store-auth__body {
        padding: 1.75rem;
    }
}

.store-auth__fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.store-auth__legend {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-default-900);
}

.store-auth__alt {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-default-100);
}

.store-auth__alt-title {
    margin: 0 0 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-default-900);
}

.store-auth__alt-text {
    margin: 0 0 0.875rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--color-default-600);
}

.store-auth__callout {
    border-radius: 0.5rem;
    border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
    background: color-mix(in srgb, var(--color-primary) 6%, transparent);
    padding: 0.875rem 1rem;
}

.store-auth__callout-title {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0 0 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-default-900);
}

.store-auth__callout-text {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--color-default-600);
}

.store-auth__footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-default-600);
    text-decoration: none;
}

.store-auth__footer-link:hover,
.store-auth__footer-link:focus-visible {
    color: var(--color-primary);
    outline: none;
}

.store-nav {
    margin-bottom: 0;
}

.store-nav__spacer {
    flex: 1;
    min-width: 0.5rem;
}

.store-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-default-700);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.store-nav__link:hover,
.store-nav__link:focus-visible {
    background: var(--color-default-100);
    color: var(--color-default-900);
    text-decoration: none;
    outline: none;
}

.store-nav__link.is-active {
    background: var(--color-default-100);
    color: var(--color-primary);
}

.store-nav__link--btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.store-nav__user {
    padding: 0 0.25rem;
}

/* —— Account tabs —— */
.store-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    border-bottom: 1px solid var(--color-default-200);
    margin-bottom: 1.5rem;
}

.store-tab {
    border: none;
    background: transparent;
    padding: 0.625rem 1rem;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-default-600);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.store-tab:hover,
.store-tab:focus-visible {
    color: var(--color-default-900);
    outline: none;
}

.store-tab.is-active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* —— Account tables —— */
.store-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.store-table thead th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-default-500);
    border-bottom: 1px solid var(--color-default-200);
    white-space: nowrap;
}

.store-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-default-100);
    color: var(--color-default-800);
    vertical-align: middle;
}

.store-table tbody tr:last-child td {
    border-bottom: none;
}

.store-table__num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.store-table__docs {
    white-space: nowrap;
}

.store-table__actions {
    white-space: nowrap;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background: var(--color-default-100);
    color: var(--color-default-700);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.store-badge--paid {
    background: color-mix(in srgb, var(--color-success, #16a34a) 15%, transparent);
    color: var(--color-success, #16a34a);
}

.store-badge--due {
    background: color-mix(in srgb, var(--color-warning, #d97706) 15%, transparent);
    color: var(--color-warning, #d97706);
}

.store-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
}

.store-doc-link:last-child {
    margin-right: 0;
}

.store-doc-link:hover,
.store-doc-link:focus-visible {
    text-decoration: underline;
    outline: none;
}

.store-product-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 639px) {
    .store-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .store-filters > div {
        min-width: 0 !important;
        width: 100%;
    }

    .store-filters .form-input,
    .store-filters select {
        max-width: none;
        width: 100%;
    }
}

.store-product-card {
    border: 1px solid var(--color-default-200);
    border-radius: 0.875rem;
    background: var(--color-card);
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.store-product-card:hover,
.store-product-card:focus-within {
    border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-default-200));
    box-shadow: 0 4px 16px rgb(15 23 42 / 0.08);
    transform: translateY(-1px);
}

.store-product-card__inner {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.125rem;
    align-items: stretch;
}

.store-product-card__thumb {
    flex-shrink: 0;
    align-self: center;
}

.store-product-card__img {
    display: block;
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 0.625rem;
    object-fit: cover;
    background: var(--color-default-50, #f8fafc);
    border: 1px solid var(--color-default-200);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.6);
}

.store-product-card:hover .store-product-card__img,
.store-product-card:focus-within .store-product-card__img {
    border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-default-200));
}

.store-product-card__img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-default-400);
}

.store-product-card__content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.store-product-card__head {
    margin-top: 0.125rem;
}

.store-product-card__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.625rem;
    width: 100%;
    min-width: 0;
}

.store-product-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-default-900);
    min-width: 0;
}

.store-product-card__title-row .store-product-chip--stock,
.store-product-card__title-row .store-product-chip:not(.store-product-chip--stock) {
    flex-shrink: 0;
}

.store-product-card__price {
    margin: 0 0 0 auto;
    flex-shrink: 0;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
    color: var(--color-primary);
    font-size: 0.9375rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
    white-space: nowrap;
}

.store-product-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.store-product-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--color-default-200);
    background: var(--color-default-50, #f8fafc);
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-default-700);
    white-space: nowrap;
}

.store-product-chip--muted {
    color: var(--color-default-600);
    font-weight: 500;
}

.store-product-chip--stock-in {
    border-color: color-mix(in srgb, var(--color-success, #16a34a) 35%, var(--color-default-200));
    background: color-mix(in srgb, var(--color-success, #16a34a) 12%, transparent);
    color: var(--color-success, #16a34a);
}

.store-product-chip--stock-out {
    border-color: color-mix(in srgb, var(--color-danger, #dc2626) 35%, var(--color-default-200));
    background: color-mix(in srgb, var(--color-danger, #dc2626) 10%, transparent);
    color: var(--color-danger, #dc2626);
}

.store-product-chip--stock-na {
    border-color: var(--color-default-200);
    background: var(--color-default-100);
    color: var(--color-default-500);
}

.store-product-card__specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.375rem 1rem;
    margin: 0;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    background: var(--color-default-50, #f8fafc);
    border: 1px solid var(--color-default-100);
}

@media (min-width: 768px) {
    .store-product-card__specs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .store-product-card__specs {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.store-product-spec {
    min-width: 0;
}

.store-product-spec__k {
    margin: 0;
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-default-500);
    line-height: 1.2;
}

.store-product-spec__v {
    margin: 0.125rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--color-default-800);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-product-spec__v--text {
    font-family: inherit;
}

.store-product-card__desc {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--color-default-500);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-product-card__actions {
    flex-shrink: 0;
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    min-width: 6.75rem;
}

.store-product-card__view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 1px 2px color-mix(in srgb, var(--color-primary) 40%, transparent);
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.store-product-card__view-btn:hover,
.store-product-card__view-btn:focus-visible {
    background: var(--color-primary-hover, var(--color-primary));
    color: #fff;
    text-decoration: none;
    outline: none;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--color-primary) 35%, transparent);
}

.store-product-card__view-btn .iconify {
    color: #fff;
}

.store-product-card__add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-default-200);
    background: var(--color-card);
    color: var(--color-default-800);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.store-product-card__add-btn:hover,
.store-product-card__add-btn:focus-visible {
    border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-default-200));
    background: color-mix(in srgb, var(--color-primary) 8%, var(--color-card));
    color: var(--color-primary);
    outline: none;
}

.store-product-card__add-btn:hover .iconify,
.store-product-card__add-btn:focus-visible .iconify {
    color: var(--color-primary);
}

.store-product-card__add-btn .iconify {
    color: currentColor;
}

.store-product-card__add-btn.is-added {
    border-color: color-mix(in srgb, var(--color-success, #16a34a) 45%, var(--color-default-200));
    background: color-mix(in srgb, var(--color-success, #16a34a) 12%, transparent);
    color: var(--color-success, #16a34a);
}

.store-product-card__add-btn.is-disabled,
.store-product-card__add-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

html[data-theme="dark"] .store-product-card .store-product-card__add-btn {
    border-color: var(--color-default-400);
    background: color-mix(in srgb, var(--color-default-600) 22%, var(--color-card));
    color: var(--color-default-900);
}

html[data-theme="dark"] .store-product-card .store-product-card__add-btn .iconify {
    color: var(--color-default-900);
}

html[data-theme="dark"] .store-product-card .store-product-card__add-btn:hover,
html[data-theme="dark"] .store-product-card .store-product-card__add-btn:focus-visible {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 20%, var(--color-card));
    color: var(--color-primary);
}

html[data-theme="dark"] .store-product-card .store-product-card__add-btn:hover .iconify,
html[data-theme="dark"] .store-product-card .store-product-card__add-btn:focus-visible .iconify {
    color: var(--color-primary);
}

html[data-theme="dark"] .store-product-card .store-product-card__add-btn.is-added {
    border-color: color-mix(in srgb, var(--color-success, #22c55e) 50%, var(--color-default-400));
    background: color-mix(in srgb, var(--color-success, #22c55e) 18%, var(--color-card));
    color: #4ade80;
}

html[data-theme="dark"] .store-product-card .store-product-card__add-btn.is-disabled,
html[data-theme="dark"] .store-product-card .store-product-card__add-btn:disabled {
    border-color: var(--color-default-500);
    background: color-mix(in srgb, var(--color-default-700) 30%, var(--color-card));
    color: var(--color-default-500);
    opacity: 1;
}

html[data-theme="dark"] .store-product-card .store-product-card__add-btn.is-disabled .iconify,
html[data-theme="dark"] .store-product-card .store-product-card__add-btn:disabled .iconify {
    color: var(--color-default-500);
}

/* —— Store modal (coming soon) —— */
body.store-modal-open {
    overflow: hidden;
}

.store-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.store-modal.hidden {
    display: none !important;
}

.store-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(15 23 42 / 0.45);
}

.store-modal__panel {
    position: relative;
    width: min(100%, 24rem);
    padding: 1.5rem 1.5rem 1.25rem;
    border-radius: 0.875rem;
    border: 1px solid var(--color-default-200);
    background: var(--color-card);
    box-shadow: 0 16px 48px rgb(15 23 42 / 0.18);
    text-align: center;
}

.store-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--color-default-500);
    cursor: pointer;
}

.store-modal__close:hover,
.store-modal__close:focus-visible {
    background: var(--color-default-100);
    color: var(--color-default-800);
    outline: none;
}

.store-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    color: var(--color-primary);
}

.store-modal__title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-default-900);
}

.store-modal__text {
    margin: 0 0 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-default-600);
}

.store-saved-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
    color: var(--color-primary);
}

html[data-theme="dark"] .store-product-card {
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
}

html[data-theme="dark"] .store-product-card:hover,
html[data-theme="dark"] .store-product-card:focus-within {
    box-shadow: 0 4px 16px rgb(0 0 0 / 0.28);
}

html[data-theme="dark"] .store-product-card__specs {
    background: rgb(255 255 255 / 0.04);
    border-color: var(--color-default-300);
}

html[data-theme="dark"] .store-product-chip {
    background: rgb(255 255 255 / 0.04);
    border-color: var(--color-default-300);
}

html[data-theme="dark"] .store-product-card__img {
    background: var(--color-default-900);
    border-color: var(--color-default-300);
}

#store-category option.store-cat-parent {
    font-weight: 700;
}

#store-category option.store-cat-child {
    font-weight: 400;
}

.store-product-preview-shell {
    padding-top: 1.5rem;
    padding-left: clamp(0.75rem, 2vw, 1rem);
    padding-right: clamp(0.75rem, 2vw, 1rem);
}

/* Product detail page — wider than the default shop grid (matches cart width). */
.store-pdp-main {
    width: 100%;
    max-width: 96rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 3vw, 2rem);
    padding-right: clamp(1rem, 3vw, 2rem);
}

.store-product-page .store-pdp-main {
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}

.store-product-page .store-product-preview-shell {
    --inv-preview-product-max: min(100%, 96rem);
    max-width: var(--inv-preview-product-max);
    padding-top: 0;
    padding-bottom: 0.5rem;
}

/* Card toolbar: back left, breadcrumbs right */
.store-product-page .inv-storefront-preview__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.5rem 0.875rem;
    border-bottom: 1px solid var(--color-default-200);
}

html[data-theme="dark"] .store-product-page .inv-storefront-preview__toolbar {
    border-bottom-color: var(--color-default-300);
}

.store-product-page .inv-storefront-preview__back {
    margin: 0;
}

.store-product-page .inv-storefront-preview__crumb {
    margin: 0 0 0 auto;
    padding: 0;
    min-width: 0;
    font-size: 0.75rem;
    line-height: 1.35;
    text-align: right;
}

/* Compact vertical rhythm so the card fits the viewport */
.store-product-page .inv-storefront-preview__body {
    padding: 0.75rem 0.875rem 0.875rem;
}

.store-product-page .inv-storefront-preview__body-grid {
    gap: 1rem;
}

.store-product-page .inv-storefront-preview__gallery-main {
    width: 100%;
    max-width: min(100%, 21rem);
    height: min(46vh, 21rem);
    min-height: min(46vh, 21rem);
    margin-inline: auto;
    background: transparent;
    border-color: var(--color-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.store-product-page .inv-storefront-preview__gallery-main .inv-storefront-preview__gallery-expand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
}

.store-product-page .inv-storefront-preview__gallery-main img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

html[data-theme="dark"] .store-product-page .inv-storefront-preview__gallery-main {
    background: transparent;
    border-color: var(--color-card);
}

html[data-theme="dark"] .store-product-page .inv-storefront-preview__gallery-placeholder {
    color: var(--color-default-500);
}

html[data-theme="dark"] .store-product-page .inv-storefront-preview__thumb {
    background: var(--color-card);
    border-color: var(--color-default-300);
}

.store-product-page .inv-storefront-preview__gallery-col {
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.store-product-page .inv-storefront-preview__thumbs {
    margin-top: 0.375rem;
    justify-content: center;
    width: 100%;
}

.store-product-page .inv-storefront-preview__category-row {
    margin-bottom: 0.125rem;
}

.store-product-page .inv-storefront-preview__identity-main .inv-storefront-preview__title {
    margin-bottom: 0.25rem;
}

.store-product-page .inv-storefront-preview__identity-main .inv-storefront-preview__sku {
    margin-bottom: 0.375rem;
}

.store-product-page .inv-storefront-preview__title {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
}

.store-product-page .inv-storefront-preview__price {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.store-product-page .inv-storefront-preview__meta {
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

.store-product-page .inv-storefront-preview__desc-heading {
    margin: 0.5rem 0 0.25rem;
    font-size: 0.8125rem;
}

.store-product-page .inv-storefront-preview__desc {
    font-size: 0.875rem;
    line-height: 1.45;
}

.store-product-page .inv-storefront-preview__dimensions-wrap {
    margin-bottom: 0.5rem;
}

.store-product-page .inv-storefront-preview__checkout {
    margin-top: 0.5rem;
    padding: 0.625rem 0.875rem 0.75rem;
    gap: 0.625rem;
}

.store-product-page .inv-storefront-preview__payments {
    padding: 0.625rem 0.75rem;
}

.store-product-page .inv-storefront-preview__stripe {
    margin-bottom: 0.375rem;
}

@media (min-width: 640px) {
    .store-product-page .inv-storefront-preview__toolbar {
        padding: 0.5rem 1.25rem;
    }

    .store-product-page .inv-storefront-preview__body {
        padding: 0.875rem 1.25rem 1rem;
    }

    .store-product-page .inv-storefront-preview__gallery-main {
        max-width: min(100%, 25rem);
        height: min(52vh, 25rem);
        min-height: min(52vh, 25rem);
        margin-inline: auto;
    }

    .store-product-page .inv-storefront-preview__checkout {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-bottom: 1rem;
    }
}

@media (min-width: 1024px) {
    .store-product-page .store-pdp-main {
        padding-top: 0.75rem;
    }

    .store-product-page .inv-storefront-preview__body-grid {
        grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
        gap: clamp(1.25rem, 2.5vw, 2rem);
    }

    .store-product-page .inv-storefront-preview__body {
        padding: 1rem 1.5rem 1rem;
    }

    .store-product-page .inv-storefront-preview__gallery-main {
        max-width: min(100%, 29rem);
        height: min(58vh, 29rem);
        min-height: min(58vh, 29rem);
    }
}

.store-product-page .inv-storefront-preview__social {
    display: none;
}

.store-product-page .inv-storefront-preview__checkout-barcodes,
.store-product-page .inv-storefront-preview__checkout-divider,
.store-product-page .inv-storefront-preview__scan-qr-wrap {
    display: none;
}

.store-product-page .inv-storefront-preview__cta-note {
    display: none;
}

.store-product-page .inv-storefront-preview__qty-input {
    width: 5.5rem;
    min-width: 5.5rem;
    padding: 0 0.5rem;
    cursor: text;
    opacity: 1;
}

.store-product-page .inv-storefront-preview__qty-btn {
    cursor: pointer;
    opacity: 1;
}

.store-page .store-qty {
    min-width: 5.5rem;
    width: 5.5rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* —— Cart page (two-column checkout layout) —— */
.store-cart {
    max-width: 96rem;
    margin-left: auto;
    margin-right: auto;
}

.store-cart__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem);
    gap: 2rem;
    align-items: start;
}

.store-cart__main {
    overflow: hidden;
}

.store-cart__main-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-default-200);
}

.store-cart__main-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-default-900);
}

.store-cart__clear {
    border: none;
    background: none;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.store-cart__clear:hover,
.store-cart__clear:focus-visible {
    color: var(--color-primary-hover, var(--color-primary));
    outline: none;
}

.store-cart-table__head,
.store-cart-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 5.5rem 6.5rem 9.5rem 6.5rem 2.25rem;
    gap: 0.75rem 1.25rem;
    align-items: center;
    padding: 0 1.75rem;
}

.store-cart-table__col--uom {
    text-align: left;
}

.store-cart-table__head {
    padding-top: 1rem;
    padding-bottom: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-default-500);
    border-bottom: 1px solid var(--color-default-100);
}

.store-cart-line {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-default-100);
}

.store-cart-line:last-child {
    border-bottom: none;
}

.store-cart-line__product {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.store-cart-line__info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.store-cart-line__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--color-default-500);
}

.store-cart-line__meta-item--mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.store-cart-line__meta-k {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-default-400);
}

.store-cart-line__uom {
    display: flex;
    align-items: center;
}

.store-cart-line__img {
    width: 4.5rem;
    height: 4.5rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
    object-fit: cover;
    background: var(--color-default-100);
}

.store-cart-line__img--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-default-200);
    color: var(--color-default-400);
}

.store-cart-line__name {
    min-width: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-default-900);
    text-decoration: none;
    line-height: 1.35;
}

.store-cart-line__name:hover,
.store-cart-line__name:focus-visible {
    color: var(--color-primary);
    outline: none;
}

.store-cart-line__uom-value,
.store-cart-line__price-value,
.store-cart-line__total {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-default-800);
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
}

.store-cart-line__uom-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    white-space: nowrap;
}

.store-cart-qty {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--color-default-200);
    border-radius: 0.375rem;
    overflow: hidden;
    background: var(--color-card, #fff);
}

.store-cart-qty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    border: 0;
    background: var(--color-default-50, #f8fafc);
    color: var(--color-primary);
    cursor: pointer;
    padding: 0;
}

.store-cart-qty__btn:hover,
.store-cart-qty__btn:focus-visible {
    background: var(--color-default-100);
    outline: none;
}

.store-cart-qty__input {
    width: 2.75rem;
    min-width: 2.75rem;
    border: 0;
    border-left: 1px solid var(--color-default-200);
    border-right: 1px solid var(--color-default-200);
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    background: var(--color-card, #fff);
    color: var(--color-default-800);
    -moz-appearance: textfield;
}

.store-cart-qty__input::-webkit-outer-spin-button,
.store-cart-qty__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.store-cart-line__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: none;
    color: var(--color-default-400);
    cursor: pointer;
    border-radius: 0.375rem;
    padding: 0;
}

.store-cart-line__remove:hover,
.store-cart-line__remove:focus-visible {
    color: var(--color-danger, #dc2626);
    background: var(--color-default-50);
    outline: none;
}

.store-cart__main-foot {
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid var(--color-default-100);
}

.store-cart__continue {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.store-cart__continue:hover,
.store-cart__continue:focus-visible {
    text-decoration: underline;
    outline: none;
}

.store-cart-summary {
    padding: 1.25rem 1.5rem 1.5rem;
}

.store-cart-summary__title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-default-900);
}

.store-cart-summary__rows {
    margin: 0 0 1rem;
}

.store-cart-summary__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.375rem 0;
    font-size: 0.875rem;
}

.store-cart-summary__row dt {
    margin: 0;
    font-weight: 500;
    color: var(--color-default-600);
}

.store-cart-summary__row dd {
    margin: 0;
    font-weight: 600;
    color: var(--color-default-800);
    font-variant-numeric: tabular-nums;
}

.store-cart-summary__muted {
    font-weight: 500 !important;
    color: var(--color-default-450, var(--color-default-500)) !important;
    font-size: 0.8125rem !important;
}

.store-cart-summary__total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-top: 1px solid var(--color-default-200);
}

.store-cart-summary__total-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-default-500);
}

.store-cart-summary__total-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-default-900);
    font-variant-numeric: tabular-nums;
}

.store-cart-summary__checkout {
    display: block;
    text-align: center;
    font-weight: 600;
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.store-cart-summary__checkout:hover,
.store-cart-summary__checkout:focus-visible {
    background: var(--color-primary-hover, var(--color-primary));
    color: #fff;
}

@media (max-width: 960px) {
    .store-cart__layout {
        grid-template-columns: 1fr;
    }

    .store-cart-table__head {
        display: none;
    }

    .store-cart-line {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "product product"
            "uom uom"
            "price qty"
            "total remove";
        gap: 0.75rem 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .store-cart-line__product {
        grid-area: product;
    }

    .store-cart-line__uom {
        grid-area: uom;
    }

    .store-cart-line__uom::before {
        content: "UoM";
        font-size: 0.5625rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: var(--color-default-450, var(--color-default-500));
        margin-right: 0.5rem;
    }

    .store-cart-line__price {
        grid-area: price;
    }

    .store-cart-line__price::before {
        content: "Price: ";
        font-weight: 500;
        color: var(--color-default-500);
        font-size: 0.8125rem;
    }

    .store-cart-line__qty {
        grid-area: qty;
        justify-self: end;
    }

    .store-cart-line__total {
        grid-area: total;
    }

    .store-cart-line__total::before {
        content: "Total: ";
        font-weight: 500;
        color: var(--color-default-500);
        font-size: 0.8125rem;
    }

    .store-cart-line__action {
        grid-area: remove;
        justify-self: end;
        align-self: center;
    }
}

@media (max-width: 768px) {
    .store-product-card__inner {
        flex-wrap: wrap;
    }

    .store-product-card__thumb {
        align-self: flex-start;
    }

    .store-product-card__content {
        flex: 1 1 12rem;
    }

    .store-product-card__actions {
        flex: 1 1 100%;
        flex-direction: column;
        align-items: stretch;
        min-width: 0;
    }

    .store-product-card__view-btn,
    .store-product-card__add-btn {
        width: 100%;
    }

    .store-product-card__title-row {
        align-items: flex-start;
    }

    .store-product-card__price {
        margin-left: 0;
    }
}

.store-cart-summary__row--method,
.store-checkout-receipt__total-row--method {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.375rem 0;
}

.store-cart-summary__method-label,
.store-checkout-receipt__method-label {
    margin: 0;
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-default-600);
}

.store-cart-summary__method-select,
.store-checkout-receipt__method-select {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: 9.5rem;
}

.store-checkout-receipt__method-select {
    max-width: 11rem;
}

.store-cart-summary__note {
    margin: 0 0 0.75rem;
}

.store-checkout-lines__table {
    width: 100%;
    min-width: 42rem;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.75rem;
    line-height: 1.35;
}

.store-checkout-lines__col--line { width: 4%; }
.store-checkout-lines__col--inv { width: 10%; }
.store-checkout-lines__col--name { width: 12%; }
.store-checkout-lines__col--mfg { width: 11%; }
.store-checkout-lines__col--mfgn { width: 12%; }
.store-checkout-lines__col--qty { width: 6%; }
.store-checkout-lines__col--uom { width: 10%; }
.store-checkout-lines__col--price { width: 11%; }
.store-checkout-lines__col--total { width: 11%; }

.store-checkout-lines__table th,
.store-checkout-lines__table td {
    font-size: inherit;
    vertical-align: top;
    padding: 0.35rem 0.25rem;
}

.store-checkout-lines__c-line,
.store-checkout-lines__c-inv,
.store-checkout-lines__c-qty,
.store-checkout-lines__c-uom,
.store-checkout-lines__c-price,
.store-checkout-lines__c-total,
.store-checkout-lines__c-mfgn {
    white-space: nowrap;
}

.store-checkout-lines__c-inv {
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-checkout-lines__table thead th {
    font-size: inherit;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-default-500);
    border-bottom: 1px solid var(--color-default-200);
    white-space: nowrap;
    text-align: left;
}

.store-checkout-lines__c-line,
.store-checkout-lines__c-qty,
.store-checkout-lines__c-price,
.store-checkout-lines__c-total {
    text-align: right;
}

.store-checkout-lines__table thead .store-checkout-lines__c-line,
.store-checkout-lines__table thead .store-checkout-lines__c-qty,
.store-checkout-lines__table thead .store-checkout-lines__c-price,
.store-checkout-lines__table thead .store-checkout-lines__c-total {
    text-align: right;
}

.store-checkout-lines__c-name {
    max-width: 0;
    width: 12%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-checkout-lines__name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-default-800);
    text-decoration: none;
}

.store-checkout-lines__name:hover,
.store-checkout-lines__name:focus-visible {
    color: var(--color-primary);
    text-decoration: underline;
}

.store-checkout-lines__name--plain {
    cursor: default;
}

.store-checkout-lines__name--plain:hover,
.store-checkout-lines__name--plain:focus-visible {
    color: var(--color-default-800);
    text-decoration: none;
}

.store-checkout-lines__col--return { width: 9%; }

.store-checkout-lines__c-return {
    text-align: right;
    white-space: nowrap;
}

.store-checkout-lines__table--returns .store-rma-line-qty {
    padding: 0.25rem 0.35rem;
    min-height: 2rem;
}

.store-checkout-lines__table thead .store-checkout-lines__c-return {
    text-align: right;
}

.store-checkout-lines__col--disposition { width: 10%; }

.store-checkout-lines__c-disposition {
    white-space: nowrap;
}

.store-checkout-lines__item td {
    border-top: 1px solid var(--color-default-100);
}

.store-checkout-lines__mono {
    font-variant-numeric: tabular-nums;
}

.store-checkout-lines__desc td {
    padding-top: 0.1rem;
    padding-bottom: 0.5rem;
    color: var(--color-default-500);
    border-top: none;
    white-space: normal;
    word-break: break-word;
}

.store-checkout-lines__empty {
    color: var(--color-default-400);
}

.store-checkout-lines__empty-msg {
    margin: 0;
    font-size: 0.75rem;
    color: var(--color-default-500);
}

.store-checkout-receipt__card {
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.store-checkout-receipt__totals {
    margin: 0;
}

.store-checkout-receipt__total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
}

.store-checkout-receipt__total-row dt {
    margin: 0;
    color: var(--color-default-600);
    font-weight: 500;
}

.store-checkout-receipt__total-row dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.store-checkout-receipt__total-row--grand {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-default-200);
}

.store-checkout-receipt__total-row--grand dt {
    font-weight: 600;
    color: var(--color-default-800);
}

/* —— Mobile: checkout line items as cards —— */
@media (max-width: 767px) {
    #store-checkout-lines {
        overflow-x: visible;
    }

    .store-checkout-lines__table {
        min-width: 0;
        display: block;
    }

    .store-checkout-lines__table thead {
        display: none;
    }

    .store-checkout-lines__table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .store-checkout-lines__item {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.35rem 0.75rem;
        padding: 0.875rem 1rem;
        border: 1px solid var(--color-default-200);
        border-radius: 0.75rem;
        background: var(--color-card, #fff);
    }

    html[data-theme="dark"] .store-checkout-lines__item {
        border-color: var(--color-default-300);
        background: var(--color-card);
    }

    .store-checkout-lines__item td {
        display: block;
        padding: 0;
        white-space: normal;
    }

    .store-checkout-lines__item td::before {
        display: block;
        margin-bottom: 0.15rem;
        font-size: 0.625rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--color-default-500);
    }

    .store-checkout-lines__item .store-checkout-lines__c-line::before { content: "#"; }
    .store-checkout-lines__item .store-checkout-lines__c-inv::before { content: "Inv#"; }
    .store-checkout-lines__item .store-checkout-lines__c-name::before { content: "Name"; }
    .store-checkout-lines__item .store-checkout-lines__c-mfg::before { content: "Mfg"; }
    .store-checkout-lines__item .store-checkout-lines__c-mfgn::before { content: "Mfg#"; }
    .store-checkout-lines__item .store-checkout-lines__c-qty::before { content: "Qty"; }
    .store-checkout-lines__item .store-checkout-lines__c-uom::before { content: "UoM"; }
    .store-checkout-lines__item .store-checkout-lines__c-price::before { content: "List price"; }
    .store-checkout-lines__item .store-checkout-lines__c-total::before { content: "Line total"; }
    .store-checkout-lines__item .store-checkout-lines__c-return::before { content: "Return qty"; }
    .store-checkout-lines__item .store-checkout-lines__c-disposition::before { content: "Disposition"; }

    .store-checkout-lines__item .store-checkout-lines__c-name {
        grid-column: 1 / -1;
    }

    .store-checkout-lines__table--returns .store-checkout-lines__item .store-checkout-lines__c-qty::before {
        content: "Ordered";
    }

    .store-checkout-lines__desc {
        display: block;
        margin-top: -0.35rem;
        margin-bottom: 0.75rem;
    }

    .store-checkout-lines__desc td {
        display: block;
        padding: 0.625rem 1rem 0.875rem;
        border: 1px solid var(--color-default-200);
        border-top: 0;
        border-radius: 0 0 0.75rem 0.75rem;
        background: var(--color-default-50, #f8fafc);
        font-size: 0.8125rem;
        color: var(--color-default-600);
        white-space: normal;
    }

    html[data-theme="dark"] .store-checkout-lines__desc td {
        border-color: var(--color-default-300);
        background: rgb(30 30 30);
        color: var(--color-default-400);
    }

    .store-checkout-lines__desc td::before {
        display: block;
        margin-bottom: 0.2rem;
        font-size: 0.625rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--color-default-500);
        content: "Description";
    }

    .store-checkout-lines__item:has(+ .store-checkout-lines__desc) {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin-bottom: 0;
    }
}

/* —— Mobile: product buy row stacks full width —— */
@media (max-width: 639px) {
    .store-product-page .inv-storefront-preview__buy-row {
        flex-direction: column;
        align-items: stretch;
    }

    .store-product-page .inv-storefront-preview__qty-stepper {
        width: 100%;
        justify-content: space-between;
    }

    .store-product-page .inv-storefront-preview__qty-input {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }

    .store-product-page .inv-storefront-preview__cta,
    .store-product-page .inv-storefront-preview__checkout-buy .btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .store-product-page .inv-storefront-preview__crumb {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .store-checkout-receipt__method-select,
    .store-cart-summary__method-select {
        max-width: none;
        width: 100%;
    }
}
