/* =============================================================
   BROPRO STORE — NATIVE COMMERCE EXPERIENCE LAYER
   Compact, touch-first and device-adaptive. Loaded after store.css.
   ============================================================= */

:root {
    --store-native-tabbar-height: 64px;
    --store-app-max: 1520px;
    --store-app-gutter: clamp(0.75rem, 2.4vw, 2rem);
    --store-press-scale: 0.97;
    --store-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    min-height: 100%;
    background: #060b13;
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html[data-store-theme="light"] {
    background: #f8fafc;
}

body.store-page {
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(1000px 620px at 82% -12%, rgba(13, 148, 136, 0.13), transparent 68%),
        radial-gradient(760px 520px at -10% 36%, rgba(245, 158, 11, 0.055), transparent 72%),
        var(--store-bg);
    overscroll-behavior-y: none;
    -webkit-tap-highlight-color: transparent;
}

body.store-page[data-theme="light"] {
    background:
        radial-gradient(1000px 620px at 82% -12%, rgba(13, 148, 136, 0.09), transparent 68%),
        radial-gradient(760px 520px at -10% 36%, rgba(245, 158, 11, 0.045), transparent 72%),
        var(--store-bg);
}

body.store-page button,
body.store-page a,
body.store-page select,
body.store-page [role="button"] {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body.store-page button,
body.store-page select,
body.store-page input,
body.store-page textarea {
    font: inherit;
}

body.store-page :focus-visible {
    outline: 3px solid rgba(45, 212, 191, 0.68);
    outline-offset: 3px;
}

body.store-page[data-theme="light"] :focus-visible {
    outline-color: rgba(13, 148, 136, 0.72);
}

/* App chrome */
.store-top-announcement {
    min-height: 34px;
    padding: 6px max(var(--store-app-gutter), var(--safe-left)) 6px max(var(--store-app-gutter), var(--safe-right));
    background: linear-gradient(100deg, #0f766e, #0d9488 54%, #047857);
    box-shadow: 0 8px 30px -22px rgba(13, 148, 136, 0.9);
}

.store-navbar {
    min-height: 64px;
    padding-inline: max(var(--store-app-gutter), var(--safe-left)) max(var(--store-app-gutter), var(--safe-right));
    border-color: rgba(255, 255, 255, 0.075);
    background: rgba(6, 11, 19, 0.84);
    box-shadow: 0 16px 40px -34px rgba(0, 0, 0, 0.92);
    isolation: isolate;
}

body.store-page[data-theme="light"] .store-navbar {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.88);
}

.store-navbar.scrolled {
    height: 60px;
    box-shadow: 0 18px 44px -30px rgba(0, 0, 0, 0.86);
}

.store-nav-brand-logo,
.store-nav-menu-btn,
.store-cart-trigger,
.store-wishlist-trigger,
.store-nav-search-toggle {
    flex: 0 0 auto;
}

.store-nav-brand-name {
    font-family: 'Outfit', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 850;
    letter-spacing: -0.025em;
    background: linear-gradient(100deg, #f59e0b 0 46%, #2dd4bf 54% 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.25)) drop-shadow(0 2px 8px rgba(45, 212, 191, 0.25)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
    text-shadow: none;
}

[data-store-lang="hi"] .store-nav-brand-name,
:lang(hi) .store-nav-brand-name {
    font-family: 'Noto Sans Devanagari', 'Outfit', sans-serif;
    letter-spacing: 0;
}

body.store-page[data-theme="light"] .store-nav-brand-name {
    background: linear-gradient(100deg, #d97706 0 46%, #0d9488 54% 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
    text-shadow: none;
}

.store-nav-search {
    max-width: 660px;
}

.store-nav-search input {
    min-height: 44px;
    border-color: rgba(45, 212, 191, 0.18);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

body.store-page[data-theme="light"] .store-nav-search input {
    background: rgba(255, 255, 255, 0.92);
}

.store-nav-search input:focus {
    border-color: #2dd4bf;
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.13);
}

.store-nav-auth-btn,
.store-cart-trigger,
.store-nav-notification-btn,
.store-wishlist-trigger,
.store-nav-menu-btn,
.store-nav-search-toggle {
    min-width: 44px;
    min-height: 44px;
    border-radius: 14px;
}

.store-cart-trigger,
.store-nav-notification-btn,
.store-wishlist-trigger {
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--store-border);
    background: var(--store-bg-raised);
    color: var(--store-text-primary);
}

.store-nav-notification-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    display: block;
}

body.store-page[data-theme="light"] .store-nav-notification-btn,
body.store-page[data-theme="light"] .store-nav-notification-btn.bp-notification-bell {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
    color: #0f172a !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

body.store-page[data-theme="light"] .store-nav-notification-btn:hover,
body.store-page[data-theme="light"] .store-nav-notification-btn.bp-notification-bell:hover {
    background: #f8fafc !important;
    border-color: rgba(13, 148, 136, 0.4) !important;
    color: #0d9488 !important;
}

body.store-page[data-theme="light"] .store-nav-notification-btn svg,
body.store-page[data-theme="light"] .store-nav-notification-btn.bp-notification-bell svg {
    stroke: #0f172a !important;
}

body.store-page[data-theme="light"] .store-nav-notification-btn:hover svg,
body.store-page[data-theme="light"] .store-nav-notification-btn.bp-notification-bell:hover svg {
    stroke: #0d9488 !important;
}

/* A working storefront: compact promotion, then immediate shopping controls. */
.store-hero-banner {
    width: min(calc(100% - (var(--store-app-gutter) * 2)), var(--store-app-max));
    margin: 1rem auto 0.8rem;
    border: 1px solid rgba(45, 212, 191, 0.16);
    border-radius: 26px;
    box-shadow: 0 30px 70px -48px rgba(13, 148, 136, 0.72);
}

.store-hero-slide {
    min-height: clamp(230px, 25vw, 330px);
    padding: clamp(2rem, 5vw, 4rem);
}

.store-hero-slide-content {
    max-width: 700px;
}

.store-hero-title {
    max-width: 15ch;
    font-size: clamp(2.05rem, 4vw, 3.7rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.store-hero-desc {
    max-width: 62ch;
    font-size: 1rem;
    line-height: 1.55;
}

.store-hero-cta {
    min-height: 46px;
    border-radius: 14px;
    box-shadow: 0 16px 30px -18px rgba(13, 148, 136, 0.9);
}

.store-trust-bar {
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--store-app-gutter);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.2rem, 3vw, 3.2rem);
    flex-wrap: wrap;
    overflow-x: visible;
}

.store-trust-bar::-webkit-scrollbar {
    display: none;
}

.store-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    font-size: var(--store-fs-xs);
    color: var(--store-text-secondary);
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.store-trust-item:hover {
    color: var(--store-text-primary);
    transform: translateY(-1px);
}

.store-trust-item span:first-child {
    font-size: 1.05rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.store-content {
    width: min(100%, var(--store-app-max));
    margin-inline: auto;
    padding: 1rem var(--store-app-gutter) 4.5rem;
}

.store-section-header {
    margin-bottom: 0.7rem;
}

.store-section-title {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    letter-spacing: -0.035em;
}

.store-cat-nav-wrapper {
    position: sticky;
    top: 66px;
    z-index: 70;
    margin-inline: calc(var(--store-app-gutter) * -0.25);
    margin-bottom: 1rem;
    border: 1px solid var(--store-border);
    border-radius: 18px;
    background: rgba(6, 11, 19, 0.82);
    box-shadow: 0 18px 40px -34px rgba(0, 0, 0, 0.86);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    backdrop-filter: blur(24px) saturate(145%);
}

body.store-page[data-theme="light"] .store-cat-nav-wrapper {
    background: rgba(255, 255, 255, 0.88);
}

.store-categories {
    min-height: 56px;
}

.store-cat-chip {
    min-height: 44px;
    font-size: 0.9rem;
}

.store-toolbar {
    min-height: 48px;
    margin-bottom: 0.9rem;
}

.store-sort-select {
    min-height: 44px;
    padding-inline: 0.9rem 2.2rem;
    border-radius: 12px;
}

/* Product cards */
.store-product-grid {
    align-items: stretch;
    gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

.store-product-card {
    position: relative;
    min-width: 0;
    border-color: rgba(255, 255, 255, 0.085);
    border-radius: 20px;
    background:
        linear-gradient(150deg, rgba(45, 212, 191, 0.03), transparent 38%),
        var(--store-bg-card);
    box-shadow: 0 22px 48px -42px rgba(0, 0, 0, 0.96), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    isolation: isolate;
    transform: translateZ(0);
    transition: transform 340ms var(--store-spring), border-color 220ms ease, box-shadow 340ms var(--store-spring);
}

body.store-page[data-theme="light"] .store-product-card {
    border-color: rgba(15, 23, 42, 0.09);
    background: linear-gradient(150deg, rgba(13, 148, 136, 0.026), transparent 38%), #ffffff;
}

.store-card-open-target {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
}

.store-card-open-target:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 3px #2dd4bf;
}

.store-product-card:active {
    transform: scale(var(--store-press-scale));
}

.store-card-visual {
    height: auto;
    aspect-ratio: 4 / 3;
    background: var(--store-bg-raised);
    pointer-events: none;
}

.store-card-visual img {
    transition: opacity 320ms ease-out, transform 520ms var(--store-spring), filter 300ms ease;
}

.store-card-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}

.store-card-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    opacity: 0;
    visibility: hidden;
    transition: opacity 450ms cubic-bezier(0.4, 0, 0.2, 1), transform 500ms ease;
    will-change: opacity;
    pointer-events: none;
}

.store-card-slide-img.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.store-card-dots-bar {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    z-index: 6;
    padding: 3px 6px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    touch-action: pan-y;
}

.store-card-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex-shrink: 0;
}

.store-card-dot.active {
    width: 14px;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.store-card-photos-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 7;
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.store-product-card.is-sold-out .store-card-visual img {
    filter: grayscale(18%) brightness(0.92);
    opacity: 0.85;
}

.store-sold-out-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    user-select: none;
    padding: 6px;
    box-sizing: border-box;
}

.store-sold-out-stamp {
    width: 82%;
    max-width: 220px;
    min-width: 130px;
    aspect-ratio: 240 / 82;
    transform: rotate(-13deg);
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    user-select: none;
}

.store-sold-out-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.store-card-info {
    padding: 0.95rem;
    gap: 0.45rem;
}

.store-card-title {
    min-height: 2.7em;
    font-size: 1rem;
    font-weight: 700;
}

.store-card-price {
    font-size: clamp(1.22rem, 2vw, 1.55rem);
}

.store-card-weight-chips {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 4px 0 6px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.store-card-weight-chips::-webkit-scrollbar {
    display: none;
}

.store-weight-chip {
    white-space: nowrap;
    background: rgba(16, 185, 129, 0.09);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #059669;
    padding: 3px 8px;
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.store-weight-chip:hover {
    background: rgba(16, 185, 129, 0.18);
    border-color: #10b981;
    transform: translateY(-1px);
}

.store-weight-chip:active {
    transform: scale(0.96);
}

body.store-page[data-theme="dark"] .store-weight-chip {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.store-card-atc {
    position: relative;
    z-index: 3;
    margin-top: auto;
    padding-top: 0.35rem;
}

.store-btn-atc,
.btn-add-initial,
.stepper-control {
    min-height: 44px;
    border-radius: 12px;
}

.stepper-btn {
    min-width: 44px;
    min-height: 44px;
}

.store-badge {
    max-width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-badge-urgency {
    top: 8px;
    left: 8px;
    right: auto;
    max-width: calc(100% - 52px);
}

.store-badge-bestseller {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.45);
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Native tab bar */
.store-native-tabbar {
    display: none;
}

.store-native-tab {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 52px;
    padding: 5px 4px 3px;
    border: 0;
    border-radius: 13px;
    color: var(--store-text-muted);
    background: transparent;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, transform 160ms ease;
}

.store-native-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    line-height: 1;
    position: relative;
    pointer-events: none;
}

.store-native-tab-icon svg,
.store-nav-svg {
    width: 22px;
    height: 22px;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), stroke 180ms ease, filter 220ms ease;
    will-change: transform;
}

.store-native-tab.active {
    color: #5eead4;
    background: rgba(13, 148, 136, 0.14);
}

.store-native-tab.active .store-native-tab-icon svg,
.store-native-tab.active .store-nav-svg {
    stroke: #5eead4;
    transform: translateY(-1.5px) scale(1.08);
    filter: drop-shadow(0 2px 8px rgba(94, 234, 212, 0.45));
}

body.store-page[data-theme="light"] .store-native-tab.active {
    color: #0f766e;
    background: rgba(13, 148, 136, 0.1);
}

body.store-page[data-theme="light"] .store-native-tab.active .store-native-tab-icon svg,
body.store-page[data-theme="light"] .store-native-tab.active .store-nav-svg {
    stroke: #0f766e;
    filter: drop-shadow(0 2px 6px rgba(15, 118, 110, 0.35));
}

/* Subtle translucent active accent on Shop grid tiles */
.store-native-tab.active[data-native-tab="shop"] .store-native-tab-icon svg rect {
    fill: rgba(94, 234, 212, 0.2);
}

body.store-page[data-theme="light"] .store-native-tab.active[data-native-tab="shop"] .store-native-tab-icon svg rect {
    fill: rgba(15, 118, 110, 0.16);
}

.store-native-tab:active {
    transform: scale(0.92);
}

.store-native-cart-badge {
    position: absolute;
    top: 2px;
    left: calc(50% + 7px);
    min-width: 17px;
    height: 17px;
    padding-inline: 4px;
    display: grid;
    place-items: center;
    border: 2px solid var(--store-bg-raised);
    border-radius: 999px;
    color: #ffffff;
    background: #64748b;
    font: 800 0.6rem/1 var(--store-font);
    pointer-events: none;
    z-index: 2;
    transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1), background 180ms ease, box-shadow 180ms ease;
}

.store-native-cart-badge.has-items {
    background: #0d9488;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.48);
    animation: nativeCartBadgePop 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes nativeCartBadgePop {
    0% { transform: scale(0.6); }
    70% { transform: scale(1.22); }
    100% { transform: scale(1); }
}

/* Drawers, sheets and full-screen surfaces */
.store-cart-overlay {
    width: 100%;
    padding: 0;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
}

.store-cart-drawer,
.store-nav-drawer,
.store-mobile-search-modal,
.store-pdp-page {
    overscroll-behavior: contain;
}

.store-cart-header,
.store-checkout-header,
.store-drawer-header,
.store-pdp-topbar {
    padding-left: max(1rem, var(--safe-left));
    padding-right: max(1rem, var(--safe-right));
}

.store-cart-close,
.store-drawer-close,
.store-pdp-back-btn,
.store-pdp-action-btn,
.mobile-search-back-btn {
    min-width: 44px;
    min-height: 44px;
}

.store-pdp-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.store-pdp-action-btn {
    position: relative;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.store-pdp-action-btn .pdp-btn-label {
    display: none;
}

.store-pdp-action-btn .pdp-action-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.store-pdp-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--store-bg-dark, #060b13);
    line-height: 1;
    pointer-events: none;
    box-sizing: border-box;
}

body.store-page[data-theme="light"] .store-pdp-cart-badge {
    border-color: #ffffff;
}

.store-cart-items,
.store-drawer-body,
.store-checkout-body,
.mobile-search-body,
.store-pdp-page {
    scrollbar-width: thin;
    scrollbar-color: rgba(45, 212, 191, 0.28) transparent;
}

.store-checkout-overlay,
.store-cart-overlay,
.store-drawer-backdrop {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.store-mobile-search-modal {
    min-height: 100vh;
    min-height: 100dvh;
}

.store-pdp-page {
    height: 100vh;
    height: 100dvh;
}

/* Desktop density */
@media (min-width: 1440px) {
    .store-product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .store-card-info {
        padding: 1rem;
    }
}

/* Tablets use an app tab bar but retain the wider catalog. */
@media (max-width: 900px) {
    :root {
        --store-app-gutter: 0.85rem;
    }

    html {
        scroll-padding-top: 78px;
    }

    body.store-page {
        padding-bottom: calc(var(--store-native-tabbar-height) + var(--safe-bottom));
    }

    .store-native-tabbar {
        position: fixed;
        z-index: 100030;
        left: max(8px, var(--safe-left));
        right: max(8px, var(--safe-right));
        bottom: max(7px, var(--safe-bottom));
        min-height: var(--store-native-tabbar-height);
        padding: 5px 6px;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 3px;
        border: 1px solid rgba(255, 255, 255, 0.11);
        border-radius: 20px;
        background: rgba(9, 16, 25, 0.91);
        box-shadow: 0 22px 54px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.06);
        -webkit-backdrop-filter: blur(28px) saturate(165%);
        backdrop-filter: blur(28px) saturate(165%);
    }

    body.store-page[data-theme="light"] .store-native-tabbar {
        border-color: rgba(15, 23, 42, 0.1);
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.86);
    }

    body.cart-drawer-open .store-native-tabbar,
    body.modal-open .store-native-tabbar,
    body.checkout-open .store-native-tabbar,
    body.pdp-open .store-native-tabbar,
    body:has(.store-mobile-search-modal.open) .store-native-tabbar,
    body:has(.store-pdp-page[style*="display: flex"]) .store-native-tabbar {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(110%);
    }

    .floating-quick-cart {
        display: none !important;
    }

    .floating-live-order-tracker {
        bottom: calc(var(--store-native-tabbar-height) + var(--safe-bottom) + 18px) !important;
    }

    /* Floating 'Talk to Bhai' Avatar: Sit cleanly elevated above native bottom tabbar (never obstruct Cart icon) */
    .bhai-container {
        width: 54px !important;
        height: 54px !important;
        box-sizing: border-box !important;
    }

    .bhai-container:not(.bhai-positioned) {
        bottom: calc(var(--store-native-tabbar-height, 64px) + max(7px, var(--safe-bottom, 0px)) + 14px) !important;
        right: max(1rem, var(--safe-right, 0px)) !important;
        z-index: 100020 !important;
    }

    .bhai-btn {
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        min-height: 54px !important;
        top: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        right: auto !important;
        margin: 0 !important;
        position: relative !important;
    }

    /* Seamless auto-hide when commerce drawers or search modals are open */
    body.cart-drawer-open .bhai-container:not(.bhai-dragging),
    body.modal-open .bhai-container:not(.bhai-dragging),
    body.checkout-open .bhai-container:not(.bhai-dragging),
    body.pdp-open .bhai-container:not(.bhai-dragging),
    body:has(.store-mobile-search-modal.open) .bhai-container:not(.bhai-dragging),
    body:has(.store-pdp-page[style*="display: flex"]) .bhai-container:not(.bhai-dragging) {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(20px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    }

    .store-trust-section,
    .store-footer {
        scroll-margin-bottom: calc(var(--store-native-tabbar-height) + 16px);
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .store-navbar {
        gap: 0.7rem;
    }

    .store-nav-brand-name {
        font-size: 1.35rem;
    }

    .store-nav-search {
        max-width: none;
    }

    .store-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .store-trust-bar {
        justify-content: center;
        gap: clamp(0.75rem, 1.8vw, 1.6rem);
        padding-inline: max(0.75rem, var(--store-app-gutter));
    }

    .store-trust-item {
        font-size: 0.78rem;
        gap: 6px;
    }
}

/* Phones */
@media (max-width: 768px) {
    :root {
        --store-native-tabbar-height: 62px;
        --store-app-gutter: 0.7rem;
    }

    .store-top-announcement {
        min-height: calc(31px + var(--safe-top));
        padding-top: calc(5px + var(--safe-top));
        padding-bottom: 5px;
        justify-content: flex-start;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 0.78rem;
    }

    .store-top-announcement .badge-pill {
        display: none;
    }

    .store-top-announcement > span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .store-navbar,
    .store-navbar.scrolled {
        height: 60px;
        min-height: 60px;
        padding: 0 max(0.5rem, var(--safe-right)) 0 max(0.5rem, var(--safe-left)) !important;
        gap: 0.35rem;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .store-nav-brand {
        min-width: max-content;
        gap: 8px;
        flex: 0 0 auto;
        max-width: none;
    }

    .store-nav-brand-logo,
    .store-navbar.scrolled .store-nav-brand-logo {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }

    .store-nav-brand-name,
    .store-navbar.scrolled .store-nav-brand-name {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
        font-size: 1.18rem;
    }

    .store-nav-actions {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
        overflow: visible !important;
    }

    /* Auth is prominently featured in the side-drawer & bottom-bar on mobile */
    #authContainer,
    .store-nav-auth-btn {
        display: none !important;
    }

    @media (max-width: 520px) {
        #storeNavbar #notificationBell,
        .store-nav-actions .bp-notification-bell {
            display: none !important;
        }
    }

    .store-drawer-header-actions .store-drawer-close.bp-notification-bell {
        display: inline-flex !important;
    }

    /* Compact Mobile Language Switcher */
    .store-nav-lang-btn.store-nav-lang-segmented {
        padding: 2px !important;
        gap: 2px !important;
        height: 34px !important;
        min-height: 34px !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
    }

    .lang-segmented-btn {
        padding: 3px 6px !important;
        font-size: 0.68rem !important;
        gap: 3px !important;
        line-height: 1 !important;
        height: 28px !important;
        border-radius: 999px !important;
    }

    .lang-segmented-btn .lang-flag {
        font-size: 0.72rem !important;
    }

    /* Guaranteed visibility for Cart and Hamburger Menu */
    .store-cart-trigger,
    .store-nav-menu-btn {
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
        flex-shrink: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        border-radius: 12px !important;
    }

    .store-nav-search-toggle {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        flex-shrink: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 12px !important;
    }

    .store-nav-notification-btn,
    .store-wishlist-trigger {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
        flex-shrink: 0;
    }

    @media (max-width: 360px) {
        .store-navbar,
        .store-navbar.scrolled {
            padding: 0 6px !important;
            gap: 4px !important;
        }

        .store-nav-brand-name {
            max-width: none !important;
            overflow: visible !important;
            font-size: 1.05rem !important;
        }

        .store-nav-actions {
            gap: 3px !important;
        }

        .store-nav-lang-btn.store-nav-lang-segmented {
            padding: 2px !important;
            gap: 1px !important;
            height: 30px !important;
            min-height: 30px !important;
        }

        .lang-segmented-btn {
            padding: 2px 4px !important;
            font-size: 0.62rem !important;
            gap: 2px !important;
            height: 24px !important;
        }

        .store-cart-trigger,
        .store-nav-menu-btn {
            width: 35px !important;
            min-width: 35px !important;
            height: 35px !important;
            min-height: 35px !important;
        }

        .store-nav-search-toggle {
            width: 33px !important;
            min-width: 33px !important;
            height: 33px !important;
            min-height: 33px !important;
        }
    }

    .store-hero-banner {
        width: calc(100% - 1rem);
        margin: 0.6rem auto 0.55rem;
        border-radius: 19px;
    }

    .store-hero-slide {
        min-height: 182px !important;
        padding: 1.15rem !important;
        align-items: flex-end;
    }

    .store-hero-slide-content {
        max-width: min(88%, 430px);
    }

    .store-hero-badge {
        margin-bottom: 0.45rem;
        font-size: 0.68rem;
    }

    .store-hero-title {
        max-width: 16ch;
        margin-bottom: 0.45rem;
        font-size: clamp(1.5rem, 7vw, 2.05rem) !important;
        line-height: 1.05;
    }

    .store-hero-desc {
        display: -webkit-box;
        margin-bottom: 0.65rem;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 0.84rem;
        line-height: 1.35;
    }

    .store-hero-cta {
        min-height: 42px;
        padding: 8px 15px;
        font-size: 0.84rem;
    }

    .store-hero-arrow {
        display: none !important;
    }

    .store-hero-dots {
        bottom: 8px;
    }

    .store-trust-bar {
        min-height: 43px;
        padding: 0 0.7rem 3px;
        gap: 0.45rem;
        justify-content: flex-start;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }

    .store-trust-item {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 6px 10px;
        border: 1px solid var(--store-border);
        border-radius: 999px;
        background: var(--store-bg-card);
        font-size: 0.75rem;
        scroll-snap-align: start;
    }

    .store-content {
        padding: 0.75rem var(--store-app-gutter) calc(2.2rem + var(--store-native-tabbar-height) + var(--safe-bottom)) !important;
    }

    .store-section-header {
        margin-bottom: 0.5rem;
    }

    .store-section-title {
        font-size: 1.35rem;
    }

    .store-cat-nav-wrapper {
        top: 65px;
        margin-inline: -0.25rem;
        margin-bottom: 0.65rem;
        padding: 0.25rem !important;
        border-radius: 16px;
    }

    .store-categories {
        min-height: 49px;
        padding: 3px 2px !important;
        gap: 6px !important;
        scroll-padding-inline: 3px;
    }

    .store-cat-chip {
        min-height: 42px;
        padding: 7px 12px !important;
        font-size: 0.82rem !important;
    }

    .store-toolbar {
        min-height: 44px;
        margin-bottom: 0.65rem;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .store-product-count {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.84rem;
    }

    .store-sort-select {
        max-width: 54%;
        min-height: 42px;
        padding: 7px 2rem 7px 0.7rem;
        font-size: 0.82rem;
    }

    .store-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.55rem !important;
    }

    .store-product-card {
        border-radius: 16px !important;
    }

    .store-card-visual {
        height: auto !important;
        aspect-ratio: 1 / 0.88;
    }

    .store-card-info {
        padding: 0.7rem !important;
        gap: 0.3rem;
    }

    .store-card-title {
        min-height: 2.7em;
        font-size: 0.88rem !important;
        line-height: 1.35;
    }

    .store-card-price-row {
        gap: 4px;
        margin-block: 2px;
    }

    .store-card-price {
        font-size: 1.16rem !important;
    }

    .store-card-mrp {
        font-size: 0.74rem;
    }

    .store-card-trust,
    .store-card-stock {
        font-size: 0.74rem;
    }

    .store-btn-atc,
    .btn-add-initial,
    .stepper-control {
        min-height: 42px !important;
    }

    .stepper-btn {
        width: 40px !important;
        min-width: 40px;
        height: 40px !important;
        min-height: 40px;
    }

    .store-cart-drawer,
    .store-wishlist-drawer {
        height: min(88dvh, 780px) !important;
        max-height: 88dvh !important;
        padding-bottom: var(--safe-bottom) !important;
        border-radius: 24px 24px 0 0 !important;
    }

    .store-cart-header,
    .store-wishlist-header {
        min-height: 62px;
        padding-block: 0.65rem;
        cursor: grab;
    }

    .store-cart-items,
    .store-wishlist-items {
        padding: 0.75rem;
        -webkit-overflow-scrolling: touch;
    }

    .store-cart-footer,
    .store-wishlist-footer {
        padding-bottom: max(0.75rem, var(--safe-bottom));
    }

    .store-checkout-sheet {
        width: 100%;
        max-height: 92dvh !important;
        border-radius: 24px 24px 0 0 !important;
    }

    .store-nav-drawer {
        height: 100dvh;
        max-width: min(92vw, 420px);
        padding-bottom: var(--safe-bottom);
    }

    .store-drawer-header {
        padding-top: max(0.85rem, var(--safe-top));
    }

    .store-pdp-container {
        padding-bottom: calc(7rem + var(--safe-bottom));
    }

    .store-pdp-sticky-bar {
        padding-bottom: max(0.75rem, var(--safe-bottom)) !important;
    }

    .store-trust-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 370px) {
    .store-nav-brand-name {
        display: inline-flex;
        font-size: 1.02rem;
    }

    .store-product-grid {
        gap: 0.42rem !important;
    }

    .store-card-info {
        padding: 0.58rem !important;
    }

    .store-card-trust {
        display: none;
    }

    .store-native-tab {
        font-size: 0.65rem;
    }
}

/* Short landscape devices retain actions without consuming the viewport. */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 900px) {
    :root {
        --store-native-tabbar-height: 54px;
    }

    .store-native-tabbar {
        min-height: 52px;
        padding-block: 3px;
    }

    .store-native-tab {
        min-height: 44px;
        flex-direction: row;
        font-size: 0.7rem;
    }

    .store-native-tab-icon {
        width: 18px;
        height: 18px;
    }

    .store-native-tab-icon svg,
    .store-nav-svg {
        width: 18px;
        height: 18px;
    }

    .store-cart-drawer,
    .store-checkout-sheet {
        max-height: 96dvh !important;
        height: 96dvh !important;
    }
}

@media (hover: hover) and (pointer: fine) {
    .store-product-card:hover {
        transform: translateY(-6px) scale(1.008);
        border-color: rgba(45, 212, 191, 0.34);
        box-shadow: 0 34px 68px -46px rgba(13, 148, 136, 0.64), 0 24px 52px -42px rgba(0, 0, 0, 0.96);
    }

    .store-product-card:hover .store-card-visual img {
        transform: scale(1.045);
        filter: saturate(1.04) contrast(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body.store-page *,
    body.store-page *::before,
    body.store-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: more) {
    .store-product-card,
    .store-cat-nav-wrapper,
    .store-native-tabbar,
    .store-cart-drawer,
    .store-checkout-sheet {
        border-color: currentColor !important;
    }
}

@media (display-mode: standalone) {
    .store-top-announcement {
        padding-top: calc(6px + var(--safe-top));
    }

}
