/* Keep the page width stable while a dialog locks background scrolling. */
html { scrollbar-gutter: stable; }
body.image-preview-is-open { overflow: hidden; }
.product-image-preview-trigger { cursor: zoom-in; font: inherit; }
.product-image-preview-trigger:focus-visible { outline: 3px solid var(--store-primary); outline-offset: 3px; }
.product-image-preview-trigger.is-swipeable { cursor: grab; touch-action: pan-y pinch-zoom; user-select: none; }
.product-image-preview-trigger.is-dragging { cursor: grabbing; }
.product-image-preview-trigger.is-swipeable img { -webkit-user-drag: none; }
.product-image-dialog { width: min(720px, calc(100% - 32px)); max-width: calc(100% - 32px); height: min(600px, calc(100dvh - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--store-border); border-radius: 18px; background: var(--store-surface); color: var(--store-text); }
.product-image-dialog[open] { display: flex; flex-direction: column; }
.product-image-dialog::backdrop { background: rgb(0 0 0 / 70%); backdrop-filter: blur(5px); }
.product-image-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--store-border); flex-shrink: 0; }
.product-image-dialog-header h2 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.product-image-dialog-header button { flex-shrink: 0; }
.product-image-dialog-body { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 0; padding: 12px; overflow: hidden; }
.product-image-dialog-body img { display: block; width: 100%; max-width: 560px; height: 100%; max-height: 360px; min-height: 0; object-fit: contain; }
.product-image-dialog-body.is-swipeable { cursor: grab; touch-action: pan-y pinch-zoom; user-select: none; }
.product-image-dialog-body.is-dragging { cursor: grabbing; }
.product-image-dialog-body img { -webkit-user-drag: none; }
.gallery-slide-stage { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; }
.gallery-slide-stage > img { grid-area: 1 / 1; min-width: 0; min-height: 0; }
.product-image-dialog-body > .gallery-slide-stage { max-width: 560px; max-height: 360px; }
html, .store-cart-dialog, .cart-details, .store-product-filter, .offer-details-popover {
    scrollbar-width: thin;
    scrollbar-color: var(--store-muted) var(--store-surface-soft);
}
@supports selector(::-webkit-scrollbar) {
    html, .store-cart-dialog, .cart-details, .store-product-filter, .offer-details-popover {
        scrollbar-width: auto;
        scrollbar-color: auto;
    }
    :is(html, .store-cart-dialog, .cart-details, .store-product-filter, .offer-details-popover)::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
    :is(html, .store-cart-dialog, .cart-details, .store-product-filter, .offer-details-popover)::-webkit-scrollbar-track {
        background: var(--store-surface-soft);
    }
    :is(html, .store-cart-dialog, .cart-details, .store-product-filter, .offer-details-popover)::-webkit-scrollbar-thumb {
        background: var(--store-muted);
        border-radius: 6px;
    }
}
.support-fab, .lookup-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 10px 16px; min-height: 44px; border: 1px solid var(--store-border); border-radius: 12px; font-size: .85rem; font-weight: 700; flex-shrink: 0; }
.store-home { padding-block: 32px 48px; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-eyebrow { color: var(--store-primary); font-size: .8rem; font-weight: 700; }
.page-title h2 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 800; margin-block: 4px 6px; }
.page-title p { color: var(--store-muted); font-size: .88rem; }
.store-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.products-wrap { grid-column: 1; grid-row: 1; min-width: 0; }
.summary-column { grid-column: 2; grid-row: 1; min-width: 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.product-grid-item { min-width: 0; }
.product-card { position: relative; width: 100%; border: 1px solid var(--store-border); border-radius: 18px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.product-card::before { content: ''; display: block; height: 4px; background: linear-gradient(90deg, var(--store-primary), var(--store-primary-light)); }
html[data-store-theme] .product-card.is-selected { border-color: var(--store-primary) !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--store-primary) 25%, transparent) !important; }
.card-inner { display: flex; flex-direction: column; min-width: 0; }
.card-top { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 18px 12px; }
.product-title { width: 100%; margin: 0; color: var(--store-text); font-size: 1.1rem; font-weight: 800; line-height: 1.65; overflow-wrap: anywhere; }
.offer-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid color-mix(in srgb, var(--store-primary) 25%, var(--store-border)); border-radius: 8px; background: var(--store-surface-soft); color: var(--store-primary); font-size: .7rem; font-weight: 700; }
.offer-badge { flex-wrap: wrap; }
.offer-details-button { border: 0; border-inline-start: 1px solid var(--store-border); padding: 2px 0; padding-inline-start: 6px; background: transparent; color: var(--store-primary); font-size: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.offer-details-popover { position: fixed; inset: auto; margin: 0; width: min(280px, calc(100vw - 24px)); max-height: min(240px, calc(100dvh - 24px)); overflow-y: auto; padding: 12px 14px; border: 1px solid var(--store-border); border-radius: 12px; background: var(--store-surface); color: var(--store-text); box-shadow: 0 8px 28px color-mix(in srgb, var(--store-text) 18%, transparent); font-family: var(--store-font-family); font-size: .8rem; line-height: 1.8; text-align: start; direction: rtl; }
.offer-details-popover p + p { margin-top: 6px; color: var(--store-text-soft); }
.product-limited-offer { margin: 0 18px 12px; padding: 10px 12px; border-inline-start: 3px solid var(--store-primary); border-radius: 8px; background: var(--store-surface-soft); color: var(--store-text-soft); font-size: .75rem; line-height: 1.9; overflow-wrap: anywhere; }
/* Keep product photography on white across light and dark store themes. */
.store-home .product-image { height: 160px; flex-shrink: 0; aspect-ratio: auto; margin: 0 18px 12px; padding: 8px; border: 1px solid var(--store-border); border-radius: 12px; background: #FFFFFF; }
.store-home .product-image img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.store-home .product-sku { margin: 0 18px 6px; text-align: start; overflow-wrap: anywhere; }
.store-home .product-description { margin: 0 18px 12px; overflow-wrap: anywhere; }
.product-specifications { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 18px 12px; }
.product-specifications .badge { white-space: normal; text-align: start; line-height: 1.7; overflow-wrap: anywhere; padding: 4px 8px; border: 1px solid var(--store-border); border-radius: 6px; }
.details-wrap { padding: 0 18px 16px; }
.details-grid { display: grid; gap: 7px; }
html[data-store-theme] .store-home .product-card :is(.details-wrap, .details-grid, .detail-item) { background: transparent !important; }
.detail-item label { display: flex; align-items: baseline; gap: 8px; margin: 0; line-height: 1.6; }
.detail-item i { color: var(--store-primary); font-size: .9rem; }
.detail-item value { display: block; min-width: 0; color: var(--store-text); font-weight: 800; font-size: 1.25rem; overflow-wrap: anywhere; }
.offer-price-note { display: block; margin-top: 4px; font-size: .75rem; font-weight: 600; color: var(--store-muted); }
.card-inner > .product-variant-field { margin: 0 18px 16px; }
.product-variant-field select { width: 100%; height: 44px; font-size: .8rem; }
.qty-area { padding: 14px 18px 18px; border-top: 1px solid var(--store-border); background: var(--store-surface-soft); }
.qty-label { display: block; font-size: .75rem; font-weight: 600; color: var(--store-text-soft); margin-bottom: 8px; }
.product-card :is(button, input, select):focus-visible { outline: 2px solid var(--store-primary); outline-offset: 3px; }
.qty-control-row { display: flex; flex-wrap: wrap; gap: 8px; }
.qty-wrap { display: flex; align-items: center; flex: 1 1 130px; border: 1px solid var(--store-border); border-radius: 10px; padding: 3px; min-width: 0; background: var(--store-surface); }
.qty-btn { display: grid; place-items: center; width: 38px; height: 40px; border: 0; border-radius: 7px; flex-shrink: 0; }
.qty-btn i { font-size: .75rem; }
html[data-store-dark="1"] .store-home :is(.qty-btn, .cart-action-btn) {
    color: var(--store-primary-light) !important;
}
.qty-input { width: 100%; min-width: 30px; border: 0; background: transparent; color: var(--store-text); text-align: center; font-weight: 800; padding: 0; -moz-appearance: textfield; }
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.go-mobile-btn { display: flex; justify-content: center; align-items: center; width: 46px; min-height: 46px; padding: 8px; border: 1px solid var(--store-border); border-radius: 10px; font-size: 1rem; flex: 0 0 46px; }
.summary-card { background: var(--store-surface); border: 1px solid var(--store-border); border-radius: 18px; overflow: hidden; }
.summary-head { border-bottom: 1px solid var(--store-border); padding: 12px 16px; background: var(--store-surface-soft); }
.summary-head h3 { font-size: 1.05rem; font-weight: 800; }
.summary-body { padding: 16px; }
.cart-details { max-height: 320px; overflow-y: auto; overscroll-behavior: contain; }
.cart-empty { display: grid; justify-items: center; gap: 10px; padding: 24px 12px; color: var(--store-muted); font-size: .85rem; }
.cart-empty i { font-size: 1.7rem; color: var(--store-primary); }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 8px 12px; border-bottom: 1px solid var(--store-border); }
.cart-item-info, .cart-item-side { display: contents; }
.cart-item-name { grid-column: 1; grid-row: 1; font-weight: 700; font-size: .86rem; line-height: 1.5; overflow-wrap: anywhere; }
.cart-item-qty { grid-column: 1; grid-row: 2; font-size: .72rem; line-height: 1.5; overflow-wrap: anywhere; color: var(--store-muted); }
.cart-item-price { grid-column: 2; grid-row: 1; text-align: end; font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-actions { grid-column: 2; grid-row: 2; display: flex; justify-content: flex-end; gap: 4px; }
.cart-action-btn { width: 36px; height: 36px; border: 1px solid var(--store-border); border-radius: 8px; }
.stats-grid { display: grid; gap: 6px; background: var(--store-surface-soft); border-radius: 12px; padding: 10px 12px; margin-block: 12px; }
.stat-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-item label { margin: 0; color: var(--store-text-soft); font-size: .8rem; }
.stat-item value { font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-item:last-child { border-top: 1px solid var(--store-border); padding-top: 6px; }
.total-wrap { display: flex; gap: 5px; align-items: baseline; color: var(--store-primary); }
.total-wrap value { font-size: 1.65rem; }
.input-label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 10px; }
.payment-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.payment-method-option { position: relative; }
.payment-method-radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.payment-method-card { display: flex; align-items: center; gap: 8px; height: 100%; min-height: 56px; padding: 10px; border: 1px solid var(--store-border); border-radius: 10px; background: var(--store-surface); color: var(--store-text); cursor: pointer; }
.payment-method-name { font-size: .8rem; font-weight: 700; }
.payment-method-status { display: block; color: var(--store-muted); }
.payment-method-indicator { width: 16px; height: 16px; border: 1px solid var(--store-muted); border-radius: 50%; flex-shrink: 0; }
.payment-method-radio:checked + .payment-method-card { border-color: var(--store-primary); background: var(--store-surface-soft); box-shadow: 0 0 0 1px var(--store-primary); }
.payment-method-radio:checked + .payment-method-card .payment-method-indicator { background: var(--store-primary); border: 4px solid var(--store-surface); outline: 1px solid var(--store-primary); }
.payment-method-radio:focus-visible + .payment-method-card { outline: 3px solid var(--store-primary); outline-offset: 3px; }
.payment-method-radio:disabled + .payment-method-card { opacity: .5; cursor: not-allowed; }
.payment-card-divider { height: 1px; background: var(--store-border); margin-block: 18px; }
.phone-input { width: 100%; height: 50px; padding: 10px 14px; border: 1px solid var(--store-border); border-radius: 10px; background: var(--store-surface-soft); color: var(--store-text); font-size: 1.05rem; letter-spacing: 2px; text-align: center; }
.phone-input::placeholder { color: var(--store-muted); }
.payment-name-section { margin-bottom: 16px; }
.customer-name-input { direction: rtl; letter-spacing: normal; text-align: right; }
.pay-btn { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 12px; margin-top: 18px; border: 1px solid var(--store-border); border-radius: 12px; font-weight: 800; }
.note-area { margin-top: 12px; text-align: center; color: var(--store-muted); font-size: .75rem; }
.empty-msg { padding: 48px 20px; border: 1px dashed var(--store-border); border-radius: 18px; background: var(--store-surface); text-align: center; }
.product-grid > .col-12 { grid-column: 1 / -1; }
.empty-msg i { font-size: 2rem; color: var(--store-muted); margin-bottom: 16px; }
.empty-msg h4 { font-size: 1rem; }
.modal-overlay { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 20px; background: color-mix(in srgb, var(--store-text) 40%, transparent); backdrop-filter: blur(6px); }
.modal-overlay.active { display: flex; }
.modal-box { width: min(100%, 440px); max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid var(--store-border); background: var(--store-surface); color: var(--store-text); border-radius: 20px; padding: 24px; text-align: center; }
.modal-icon { font-size: 2rem; color: var(--store-primary); margin-bottom: 12px; }
.modal-title { font-size: 1.2rem; }
.modal-text { color: var(--store-text-soft); margin-block: 12px 20px; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-btn { flex: 1; min-height: 46px; border: 1px solid var(--store-border); border-radius: 10px; padding: 10px 16px; font-weight: 700; font-size: .85rem; }
.high-total-amount { display: inline-flex; align-items: baseline; gap: 5px; font-size: 1.4rem; font-weight: 800; color: var(--store-primary); }
.text-danger { color: var(--store-text); display: block; margin-top: 8px; }
@media (max-width: 1199px) {
    .store-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .store-layout { grid-template-columns: minmax(0, 1fr); }
    .products-wrap, .summary-column { grid-column: 1; grid-row: auto; }
    .products-wrap { order: -1; }
    .summary-column { scroll-margin-top: 20px; }
}
@media (max-width: 575px) {
    .container { width: calc(100% - 28px); }
    .main-nav { padding-block: 14px; }
    .brand { gap: 10px; }
    .brand-icon { width: 44px; height: 44px; border-radius: 12px; }
    .brand-info h1 { font-size: 1rem; }
    .brand-info span { font-size: .7rem; }
    .support-fab { padding: 9px; font-size: .72rem; }
    .nav-content { gap: 10px; flex-wrap: wrap; }
    .store-home { padding-top: 24px; }
    .page-title { align-items: stretch; flex-direction: column; gap: 16px; margin-bottom: 20px; }
    .product-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .card-top { padding: 16px 18px 12px; }
    .details-wrap { padding: 0 18px 16px; }
    .details-grid { grid-template-columns: minmax(0, 1fr); gap: 7px; }
    .detail-item:last-child { grid-column: 1 / -1; }
    .qty-control-row { flex-wrap: nowrap; }
    .qty-wrap { flex: 1; }
    .go-mobile-btn { flex: 0 0 46px; }
    .summary-body { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
.offer-quote-status {
    margin: 0;
    color: var(--store-text-soft);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.8;
    text-align: start;
    overflow-wrap: anywhere;
}

.offer-quote-status:not(:empty) {
    margin-block: 10px 14px;
    padding: 8px 10px;
    background: var(--store-surface-soft);
    border: 1px solid var(--store-border);
    border-inline-start: 3px solid var(--store-primary);
    border-radius: 8px;
}
#retryOfferQuote[hidden] {
    display: none;
}


:root {
    --store-bg: #f5f8fd;
    --store-primary: #2563eb;
    --store-primary-light: #38bdf8;
    --store-primary-dark: #1d4ed8;
    --store-accent: #84cd1a;
    --store-button-start: #84cd1a;
    --store-button-end: #69b80e;
    --store-nav-start: #fff;
    --store-nav-end: #f8fbff;
    --store-on-primary: #fff;
    --store-surface: #fff;
    --store-surface-soft: #f8fbff;
    --store-border: #e2e8f0;
    --store-text: #0f172a;
    --store-text-soft: #475569;
    --store-muted: #64748b;
}
body { background: var(--store-bg); color: var(--store-text); }
.container { max-width: 1280px; padding-inline: 0; }
.main-nav { background: linear-gradient(135deg, var(--store-nav-start), var(--store-nav-end)); }
.brand-icon, .product-card { background: var(--store-surface); }
.brand-info span { color: var(--store-muted); }
.lookup-btn, .go-mobile-btn, .pay-btn, .modal-btn.primary { background: var(--store-button-start); color: #fff; }
.lookup-btn:hover, .go-mobile-btn:hover, .pay-btn:hover { background: var(--store-button-end); color: #fff; text-decoration: none; }
.qty-btn, .cart-action-btn { background: var(--store-surface-soft); color: var(--store-primary); }
.pay-btn:disabled { opacity: .5; cursor: not-allowed; }
.product-image { margin: 16px 16px 8px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product-sku { margin: 12px 16px 8px; color: var(--store-muted); font-size: .75rem; text-align: center; }
.product-description { margin: 8px 16px; color: var(--store-text-soft); font-size: .82rem; line-height: 1.7; }
.card-inner > .form-group, .card-inner > .tx-12 { margin-inline: 16px; }
.store-home select { background: var(--store-surface); color: var(--store-text); border-color: var(--store-border); border-radius: 10px; }
.store-product-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.store-product-filter button { padding: 8px 16px; border: 1px solid var(--store-border); border-radius: 20px; background: var(--store-surface); color: var(--store-text); }
.store-product-filter button.active { background: var(--store-primary); color: #fff; border-color: var(--store-primary); }
.products-empty-filter { display: none; grid-column: 1 / -1; padding: 28px; text-align: center; color: var(--store-muted); }
.store-home .badge-light { background: var(--store-surface-soft); color: var(--store-text-soft); }
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --store-bg: #0f172a;
        --store-primary: #60a5fa;
        --store-surface: #182235;
        --store-surface-soft: #223047;
        --store-border: #35445b;
        --store-text: #f1f5f9;
        --store-text-soft: #cbd5e1;
        --store-muted: #94a3b8;
        --store-nav-start: #182235;
        --store-nav-end: #223047;
    }
}

.store-home .product-image-placeholder { display: grid; place-items: center; color: var(--store-muted); background: var(--store-surface-soft); font-size: 2.5rem; }

/* Interface colors follow the merchant/branch theme; product photography stays neutral. */
.store-nav-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.nav-orders-link { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; }
.nav-cart-button { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 14px; border: 1px solid color-mix(in srgb, var(--store-on-primary) 35%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--store-on-primary) 12%, transparent); color: var(--store-on-primary); font-weight: 700; }
.nav-cart-button [data-cart-count] { min-width: 24px; padding: 1px 6px; border-radius: 8px; background: var(--store-surface); color: var(--store-text); font-size: .8rem; }
.store-search { position: relative; flex: 1; max-width: 460px; min-width: 150px; }
.store-search input { width: 100%; height: 46px; padding: 10px 42px 10px 12px; border: 1px solid var(--store-border); border-radius: 12px; background: var(--store-surface); color: var(--store-text); font-size: .85rem; }
html[data-store-theme] .main-nav .store-search i { position: absolute; inset-inline-start: 16px; top: 16px; color: var(--store-muted) !important; }
.store-search input::placeholder { color: var(--store-muted); }
.store-layout { display: block; }
.products-wrap, #storeCategories { scroll-margin-top: 120px; }
.catalog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.catalog-heading h2 { font-size: 1.4rem; font-weight: 800; margin-top: 6px; }
.catalog-count { color: var(--store-muted); font-size: .85rem; }
.store-product-filter { flex-wrap: nowrap; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: thin; }
.store-product-filter button { white-space: nowrap; min-height: 46px; border-radius: 12px; font-size: .85rem; font-weight: 700; }
.store-product-filter i { margin-inline-end: 6px; }
html[data-store-dark="1"] .store-product-filter button.active { color: var(--store-bg); }
html[data-store-dark="1"] .mobile-cart-icon b { color: var(--store-bg); }
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 20px; }
.product-card, .card-inner { height: 100%; }
.store-home .product-image { order: -1; height: 140px; margin: 10px 12px 0; border: 0; }
.card-top { padding: 14px 16px 10px; }
.product-title { font-size: .98rem; }
.product-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qty-area { margin-top: auto; padding: 10px 12px; }
.qty-control-row { flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: 6px; }
.qty-wrap { width: auto; flex: 1 1 55%; }
.qty-control-row .qty-btn { width: 30px; height: 36px; }
.go-mobile-btn { width: auto; min-width: 0; flex: 1 1 45%; min-height: 44px; padding: 6px; gap: 5px; font-size: .78rem; font-weight: 700; line-height: 1.4; }
.qty-btn:disabled, .cart-action-btn:disabled, .go-mobile-btn:disabled { opacity: .4; cursor: not-allowed; }
.store-mobile-nav { display: none; }
.cart-is-open { overflow: hidden; }
.store-cart-dialog { position: fixed; inset: 0 auto 0 0; width: min(460px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; overflow: auto; border: 0; border-inline-end: 1px solid var(--store-border); background: var(--store-surface); color: var(--store-text); text-align: start; box-shadow: 0 0 50px color-mix(in srgb, var(--store-text) 20%, transparent); }
.store-cart-dialog::backdrop { background: color-mix(in srgb, var(--store-text) 45%, transparent); backdrop-filter: blur(5px); }
.cart-dialog-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--store-border); background: var(--store-surface); }
.cart-dialog-header h2 { font-size: 1.3rem; font-weight: 800; margin-top: 4px; }
.cart-close-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--store-border); border-radius: 12px; color: var(--store-text); background: var(--store-surface-soft); }
.cart-dialog-layout { padding: 20px; }
.cart-dialog-layout > .summary-card { border: 0; border-radius: 0; }
.summary-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; background: var(--store-surface); }
.summary-head > span { font-size: .75rem; color: var(--store-muted); }
.summary-body { padding: 16px 0; }
.cart-details { display: grid; gap: 12px; max-height: none; }
.cart-item { grid-template-columns: 48px minmax(0, 1fr) auto; padding: 14px; border: 1px solid var(--store-border); border-radius: 12px; background: color-mix(in srgb, var(--store-surface-soft) 55%, var(--store-surface)); }
.cart-item-thumbnail { grid-column: 1; grid-row: 1 / 3; display: grid; place-items: center; width: 48px; height: 56px; overflow: hidden; border-radius: 8px; background: var(--store-surface-soft); color: var(--store-muted); }
.cart-item-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-name, .cart-item-qty { grid-column: 2; }
.cart-item-price, .cart-actions { grid-column: 3; }
.cart-item-name { font-size: .8rem; }
.cart-item-price { font-size: .85rem; }
.cart-action-btn { width: 32px; height: 34px; font-size: .7rem; }
.continue-shopping-button { display: block; width: 100%; min-height: 44px; margin-top: 12px; border: 1px solid var(--store-border); border-radius: 12px; background: var(--store-surface); color: var(--store-text); font-size: .85rem; font-weight: 700; }
.store-cart-dialog.is-checkout { inset: 0; width: min(980px, calc(100% - 48px)); height: fit-content; max-height: calc(100dvh - 48px); margin: auto; border: 1px solid var(--store-border); border-radius: 22px; }
.is-checkout .cart-dialog-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 28px; padding: 24px; align-items: start; }
.is-checkout .summary-card { padding: 0 18px; border: 1px solid var(--store-border); border-radius: 16px; }
.checkout-step-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.checkout-step-heading h3 { font-size: 1rem; font-weight: 800; }
.checkout-step-heading > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--store-surface-soft); color: var(--store-primary); font-weight: 800; }
.checkout-fields { min-width: 0; }
.is-checkout .cart-details { max-height: 340px; }
.store-cart-dialog .modal-overlay { position: fixed; }
@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .store-nav-actions { gap: 12px; }
    .nav-orders-link span { display: none; }
}
@media (max-width: 767px) {
    .store-home { padding-block: 20px 30px; }
    .nav-content { flex-wrap: wrap; gap: 14px; }
    .brand { flex: 1; }
    .store-search { flex: 1 0 100%; max-width: none; order: 3; }
    .nav-cart-button > span:not([data-cart-count]) { display: none; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .store-mobile-nav { position: fixed; z-index: 1100; bottom: 0; inset-inline: 0; display: flex; align-items: stretch; justify-content: space-around; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--store-surface); border-top: 1px solid var(--store-border); box-shadow: 0 -4px 24px color-mix(in srgb, var(--store-text) 6%, transparent); }
    .store-mobile-nav > * { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; flex: 1; padding: 5px; border: 0; border-radius: 8px; background: transparent; color: var(--store-text); font-size: .7rem; }
    .store-mobile-nav i { color: var(--store-primary); font-size: 1.15rem; }
    .mobile-cart-icon { position: relative; }
    .mobile-cart-icon b { position: absolute; top: -10px; right: -15px; min-width: 18px; padding: 1px 4px; border-radius: 6px; background: var(--store-primary); color: var(--store-on-primary); font-size: .6rem; }
    .store-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
    .products-wrap, #storeCategories { scroll-margin-top: 170px; }
    .store-cart-dialog.is-checkout { width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
    .is-checkout .cart-dialog-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 18px; }
    .is-checkout .summary-card { grid-row: 1; }
    .is-checkout .cart-details { max-height: 220px; }
}
@media (max-width: 480px) {
    .store-home .product-image { height: 100px; margin: 8px 8px 0; }
    .card-top { padding: 10px; }
    .product-title { font-size: .83rem; }
    .store-home .product-sku, .store-home .product-description, .product-specifications, .product-limited-offer { margin-inline: 10px; }
    .details-wrap { padding: 0 10px 12px; }
    .detail-item value { font-size: 1rem; }
    .detail-item i { display: none; }
    .qty-area { padding: 8px; }
    .qty-control-row { gap: 4px; }
    .qty-wrap { padding: 2px; flex-basis: 58%; }
    .qty-control-row .qty-btn { width: 24px; height: 38px; }
    .qty-input { min-width: 20px; font-size: .85rem; }
    .go-mobile-btn { flex-basis: 42%; font-size: .7rem; padding: 4px; }
    .go-mobile-btn i { display: none; }
    .card-inner > .product-variant-field { margin: 0 10px 12px; }
    .catalog-heading h2 { font-size: 1.2rem; }
    .cart-dialog-header { padding: 16px; }
    .cart-dialog-layout { padding: 14px; }
    .is-checkout .summary-card { padding-inline: 14px; }
    .cart-item { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 10px; padding: 12px; }
    .cart-item-thumbnail { width: 40px; height: 48px; }
    .cart-item-price { grid-column: 1 / -1; grid-row: 3; text-align: start; }
    .cart-actions { grid-column: 1 / -1; grid-row: 4; justify-content: flex-start; }
}

.store-gallery-navigation { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 8px 12px; flex-shrink: 0; }
.store-gallery-thumbnails { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; flex-shrink: 0; }
.store-gallery-navigation[hidden], .store-gallery-thumbnails[hidden] { display: none; }
.store-gallery-navigation button, .store-gallery-thumbnails button { color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 8px; padding: 6px; cursor: pointer; }
.store-gallery-thumbnails button[aria-pressed="true"] { outline: 2px solid currentColor; outline-offset: 2px; }
.store-gallery-thumbnails img { width: 56px; height: 56px; object-fit: contain; }
