/* UNIVERSAL IOS TOUCH CALLOUT & LINK PREVIEW BLOCK */
*, *::before, *::after {
  -webkit-touch-callout: none !important;
}
html, body, a, img, svg, div, span, button, input, select, textarea, .product-card, .tab, footer {
  -webkit-touch-callout: none !important;
}
input, textarea {
  -webkit-user-select: auto !important;
  user-select: auto !important;
}
.product-card,
a.product-card,
.product-card a,
.product-card img,
.tab,
a.tab,
footer.floating-island,
footer.floating-island * {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

/* 1. ZERO-CLS WEB FONTS & FONT METRICS OVERRIDE */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/catalog/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/catalog/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter-Fallback';
  src: local('-apple-system'), local('BlinkMacSystemFont'), local('Segoe UI'), local('Roboto'), local('Helvetica Neue'), local('Arial');
  ascent-override: 100%;
  descent-override: 20%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

/* 2. CORE RESETS & THEME VARIABLES */
:root {
  --font-sans: 'Inter', 'Inter-Fallback', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ios-bg: #f2f2f7;
  --glass: rgba(255, 255, 255, 0.85);
  --text-main: #111111;
  --text-gray: #8e8e93;
  --search-bg: #f2f2f7;
  --search-border: #e5e5ea;
  --search-placeholder: #8e8e93;
  --search-text: #111111;
  --accent-blue: #005bff;
  --bg-card: #ffffff;
  --bg-card-img: #f7f8fa;
  --text-primary: #111111;
  --text-secondary: #8e8e93;
  --thumb-sheet-bg: #ffffff;
}
html.dark-theme {
  --ios-bg: #0c0d10;
  --glass: rgba(20, 22, 28, 0.88);
  --text-main: #ffffff;
  --text-gray: #8e8e93;
  --search-bg: #1a1b20;
  --search-border: #2c2e36;
  --search-placeholder: #8e8e93;
  --search-text: #ffffff;
  --accent-blue: #005bff;
  --bg-card: #181920;
  --bg-card-img: #22242c;
  --text-primary: #f2f2f7;
  --text-secondary: #8e8e93;
  --thumb-sheet-bg: #1c1d24;
  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html {
  font-family: var(--font-sans);
  background-color: var(--ios-bg);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}
body {
  font-family: var(--font-sans);
  background-color: var(--ios-bg) !important;
  color: var(--text-main);
  padding-bottom: 120px !important;
  overflow-x: hidden !important;
  line-height: 1.4;
}
@media (max-width: 768px) { body { padding-top: 0 !important; } }
@media (min-width: 769px) {
  body {
    padding-top: calc(122px + env(safe-area-inset-top, 0px)) !important;
  }
}
html.dark-theme body {
  background-color: #0c0d10 !important;
  color: #f2f2f7 !important;
}
main {
  min-height: 70vh !important;
  position: relative !important;
  z-index: 1 !important;
}

/* 3. 120Hz PROMOTION / HARDWARE COMPOSITING RULES */
.floating-island,
.sub-header-row,
.thumb-sheet {
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
button, a, input, select, .tab, .product-card, .ozon-cat-card, .fav-btn, .theme-switch, .sh-link {
  touch-action: manipulation;
}

/* 4. FIXED HEADER & LOGO */
header.floating-island {
  view-transition-name: main-header !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(65px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, 0.72) !important;
  -webkit-backdrop-filter: blur(48px) saturate(200%) contrast(1.05) brightness(1.02) !important;
  backdrop-filter: blur(48px) saturate(200%) contrast(1.05) brightness(1.02) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.04),
    0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
  z-index: 1000;
  display: flex;
  align-items: center;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, backdrop-filter;
}
html.dark-theme header.floating-island {
  background: rgba(26, 28, 36, 0.52) !important;
  -webkit-backdrop-filter: blur(60px) saturate(350%) brightness(1.1) contrast(1.08) !important;
  backdrop-filter: blur(60px) saturate(350%) brightness(1.1) contrast(1.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.4),
    0 8px 28px -4px rgba(0, 0, 0, 0.45) !important;
}
.header-container {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}
html.dark-theme .logo-img {
  filter: invert(1) brightness(1.2) !important;
}
.desktop-catalog-btn {
  display: none;
  /* bg brand blue */
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}
@media (min-width: 769px) {
  .desktop-catalog-btn { display: inline-flex; }
  header.floating-island { height: calc(75px + env(safe-area-inset-top, 0px)); }
}
.search-wrapper {
  flex: 1;
  position: relative;
}
.search-form {
  position: relative;
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
}
@media (min-width: 769px) {
  .search-form { height: 42px; }
}
.search-form input {
  width: 100%;
  height: 100%;
  background: var(--search-bg);
  border: 1px solid var(--search-border);
  border-radius: 20px;
  padding: 0 16px 0 36px;
  font-size: 14px;
  font-family: inherit;
  color: var(--search-text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
html.dark-theme .search-form input {
  background: #1a1b20 !important;
  border-color: #2c2e36 !important;
  color: #ffffff !important;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 11px;
  width: 16px;
  height: 16px;
  stroke: var(--search-placeholder);
  pointer-events: none;
}
.search-btn {
  display: none;
}
.desktop-menu-wrap {
  display: none;
  align-items: center;
  gap: 16px;
}
@media (min-width: 769px) {
  .desktop-menu-wrap { display: flex; }
}
.desktop-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #111;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}
html.dark-theme .desktop-tab {
  color: #e5e5ea;
}
.icon-btn.call-action {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  /* bg: flow */
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 91, 255, 0.25) !important;
}
.icon-btn.call-action i, .icon-btn.call-action svg {
  stroke: #fff !important;
}

/* 5. SUB-HEADER ROW - CLEAN MINIMAL ICONS, ZERO BACKGROUND/BORDER */
.sub-header-row {
  position: static !important;
  width: 100% !important;
  height: 40px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex !important;
  align-items: center !important;
}
@media (min-width: 769px) {
  .sub-header-row {
    height: 44px !important;
  }
}
html.dark-theme .sub-header-row {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.sub-header-container {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sh-left-group {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.sh-left-group::-webkit-scrollbar { display: none; }
.sh-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text-main);
  transition: transform 0.15s ease, background 0.15s ease;
}
.sh-link:active {
  transform: scale(0.94);
}
html.dark-theme .sh-link {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e5e5ea;
}
.sh-link.active { background: rgba(0, 91, 255, 0.09) !important; color: #005bff !important; border: none !important; border-radius: 8px !important; }
.sh-link.active i, .sh-link.active svg { stroke: #005bff !important; color: #005bff !important; }

/* THEME SWITCH BUTTON */
.theme-switch {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s ease;
}
html.dark-theme .theme-switch {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
}
.theme-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
html.dark-theme .theme-switch-knob {
  transform: translateX(20px) !important;
  background: #0a84ff !important;
}

/* 6. FLOATING BOTTOM NAVIGATION (MOBILE) */
/* ==========================================================================
   PHYSICAL OPTICAL LIQUID ISLAND & ADAPTIVE LENS DOCK
   ========================================================================== */
@media (max-width: 768px) {
    footer.floating-island.mobile-only,
    footer.mobile-only {
        position: fixed !important;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        left: 10px !important;
        right: 10px !important;
        width: calc(100% - 20px) !important;
        max-width: 520px !important;
        margin: 0 auto !important;
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
        border-radius: 29px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: stretch !important;
        z-index: 10000 !important;
                background: rgba(255, 255, 255, 0.72) !important;
        -webkit-backdrop-filter: blur(48px) saturate(200%) contrast(1.05) brightness(1.02) !important;
        backdrop-filter: blur(48px) saturate(200%) contrast(1.05) brightness(1.02) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 
            0 10px 30px rgba(0, 0, 0, 0.12),
            0 2px 8px rgba(0, 0, 0, 0.04),
            inset 0 1px 1px 0 rgba(255, 255, 255, 0.9),
            inset 0 -1px 1px 0 rgba(0, 0, 0, 0.04) !important;
        transform: translate3d(0, 0, 0) scale(1) !important;
        -webkit-transform: translate3d(0, 0, 0) scale(1) !important;
        transition: none !important;
        contain: layout style !important;
        view-transition-name: main-footer !important;
        overflow: visible !important;
    }

    footer.floating-island.mobile-only.touch-active,
    footer.mobile-only.touch-active {
        transform: translate3d(0, 0, 0) scale(1) !important;
        -webkit-transform: translate3d(0, 0, 0) scale(1) !important;
    }

    html.dark-theme footer.floating-island.mobile-only,
    html.dark-theme footer.mobile-only {
        background: rgba(26, 28, 36, 0.52) !important;
        -webkit-backdrop-filter: blur(60px) saturate(350%) brightness(1.1) contrast(1.08) !important;
        backdrop-filter: blur(60px) saturate(350%) brightness(1.1) contrast(1.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.16) !important;
        box-shadow: 
            0 16px 42px -4px rgba(0, 0, 0, 0.68),
            0 4px 14px rgba(0, 0, 0, 0.32),
            inset 0 1px 1.5px rgba(255, 255, 255, 0.22),
            inset 0 -1px 1px rgba(0, 0, 0, 0.35) !important;
    }

    html.dark-theme footer.floating-island.mobile-only.touch-active,
    html.dark-theme footer.mobile-only.touch-active {
        transform: translate3d(0, 0, 0) scale(1) !important;
        -webkit-transform: translate3d(0, 0, 0) scale(1) !important;
        box-shadow: 
            0 24px 54px -4px rgba(0, 0, 0, 0.82),
            0 8px 24px rgba(0, 0, 0, 0.5),
            inset 0 1px 2px rgba(255, 255, 255, 0.35) !important;
    }

        footer.floating-island.mobile-only .mobile-nav-row,
    footer.mobile-only .mobile-nav-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        scrollbar-width: none !important;
        border: none !important;
        box-sizing: border-box !important;
        position: relative !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        touch-action: none !important;
        -webkit-touch-callout: none !important;
    }

    footer.floating-island.mobile-only .mobile-nav-row::-webkit-scrollbar,
    footer.mobile-only .mobile-nav-row::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    /* -------------------------------------------------------------
       THE LIVING PHYSICAL MENISCUS LENS (STRICTLY A SQUARE WITH ROUNDED CORNERS)
       ------------------------------------------------------------- */
    footer.floating-island.mobile-only .liquid-lens,
    footer.mobile-only .liquid-lens {
        position: absolute !important;
        top: 50% !important;
        left: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 62px !important;
        min-width: 62px !important;
        max-width: 62px !important;
        height: 62px !important;
        min-height: 62px !important;
        max-height: 62px !important;
        border-radius: 18px !important;
        pointer-events: none !important;
        z-index: 1 !important;
        transform-origin: center center !important;
        box-sizing: border-box !important;
        border: none !important;
        will-change: transform !important;
        transition: opacity 0.18s ease !important;
    }

    /* 1. IDLE STATE: Lens completely invisible in idle (no background pill, no border) */
    footer.floating-island.mobile-only .liquid-lens:not(.lens-active),
    footer.mobile-only .liquid-lens:not(.lens-active) {
        opacity: 0 !important;
        visibility: hidden !important;
        display: none !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    html.dark-theme footer.floating-island.mobile-only .liquid-lens:not(.lens-active),
    html.dark-theme footer.mobile-only .liquid-lens:not(.lens-active) {
        opacity: 0 !important;
        visibility: hidden !important;
        display: none !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Idle State: No caustics */
    footer.floating-island.mobile-only .liquid-lens:not(.lens-active)::before,
    footer.mobile-only .liquid-lens:not(.lens-active)::before,
    footer.floating-island.mobile-only .liquid-lens:not(.lens-active)::after,
    footer.mobile-only .liquid-lens:not(.lens-active)::after {
        display: none !important;
        content: none !important;
    }

    /* 2. ACTIVE / DRAG STATE: CLEAN SQUARE WITH ROUNDED CORNERS (OVERHANGS ISLAND EDGES NATURALLY) */
    footer.floating-island.mobile-only .liquid-lens.lens-active,
    footer.mobile-only .liquid-lens.lens-active {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        width: 62px !important;
        min-width: 62px !important;
        max-width: 62px !important;
        height: 62px !important;
        min-height: 62px !important;
        max-height: 62px !important;
        border-radius: 18px !important;
        border: none !important;
        background: rgba(255, 255, 255, 0.42) !important;
        box-shadow: 
            0 8px 24px -2px rgba(0, 0, 0, 0.16),
            0 2px 6px rgba(0, 0, 0, 0.05),
            inset 0 1px 1.5px rgba(255, 255, 255, 0.95),
            inset 0 -1px 1px rgba(0, 0, 0, 0.05) !important;
        -webkit-backdrop-filter: blur(20px) brightness(1.05) contrast(102%) !important;
        backdrop-filter: blur(20px) brightness(1.05) contrast(102%) !important;
        overflow: hidden !important;
    }

    html.dark-theme footer.floating-island.mobile-only .liquid-lens.lens-active,
    html.dark-theme footer.mobile-only .liquid-lens.lens-active {
        background: rgba(255, 255, 255, 0.12) !important;
        border: none !important;
        box-shadow: 
            0 12px 30px -4px rgba(0, 0, 0, 0.7),
            0 4px 12px rgba(0, 0, 0, 0.35),
            inset 0 1px 1.5px rgba(255, 255, 255, 0.3),
            inset 0 -1px 1px rgba(0, 0, 0, 0.4) !important;
        -webkit-backdrop-filter: blur(24px) brightness(1.1) contrast(104%) !important;
        backdrop-filter: blur(24px) brightness(1.1) contrast(104%) !important;
    }

    /* ZERO RAINBOW / ZERO CAUSTICS */
    footer.floating-island.mobile-only .liquid-lens::before,
    footer.floating-island.mobile-only .liquid-lens::after,
    footer.mobile-only .liquid-lens::before,
    footer.mobile-only .liquid-lens::after,
    .liquid-lens::before,
    .liquid-lens::after {
        display: none !important;
        content: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* INDIVIDUAL TABS: RIGID 6-COLUMN STATIONARY GRID, ZERO TEXT SHIFT */
    footer.floating-island.mobile-only .tab > *,
    footer.mobile-only .tab > *,
    .mobile-nav-row .tab > * {
        pointer-events: none !important;
        -webkit-touch-callout: none !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }

    footer.floating-island.mobile-only .tab,
    footer.mobile-only .tab,
    .mobile-only .tab,
    footer .tab,
    .tab {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        flex: 0 0 16.666667% !important;
        width: 16.666667% !important;
        min-width: 16.666667% !important;
        max-width: 16.666667% !important;
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        outline: none !important;
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        filter: none !important;
        -webkit-filter: none !important;
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 2 !important;
        text-decoration: none !important;
        color: #8e8e93 !important;
        -webkit-tap-highlight-color: transparent !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -webkit-touch-callout: none !important;
        touch-action: none !important;
        overflow: visible !important;
        transform: none !important;
        -webkit-transform: none !important;
        transition: color 0.15s ease !important;
    }

    footer.floating-island.mobile-only .tab svg,
    footer.floating-island.mobile-only .tab i,
    footer.mobile-only .tab svg,
    footer.mobile-only .tab i,
    .mobile-only .tab svg,
    .mobile-only .tab i,
    .tab svg,
    .tab i {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        min-height: 22px !important;
        max-width: 22px !important;
        max-height: 22px !important;
        margin: 0 0 2px 0 !important;
        padding: 0 !important;
        display: block !important;
        stroke: #8e8e93 !important;
        color: #8e8e93 !important;
        stroke-width: 1.85px !important;
        border: none !important;
        outline: none !important;
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        transform: none !important;
        -webkit-transform: none !important;
        transition: stroke 0.15s ease, color 0.15s ease !important;
    }

    footer.floating-island.mobile-only .tab span,
    footer.mobile-only .tab span,
    .mobile-only .tab span,
    .tab span {
        display: block !important;
        font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif !important;
        font-size: 9.5px !important;
        line-height: 1.1 !important;
        font-weight: 500 !important;
        color: #8e8e93 !important;
        letter-spacing: -0.2px !important;
        padding: 0 !important;
        margin: 0 !important;
        white-space: nowrap !important;
        text-align: center !important;
        transform: none !important;
        -webkit-transform: none !important;
        transition: color 0.15s ease !important;
    }

    footer.floating-island.mobile-only .tab.active,
    footer.floating-island.mobile-only .tab.active-menu-item,
    footer.mobile-only .tab.active,
    footer.mobile-only .tab.active-menu-item,
    .tab.active,
    .tab.active-menu-item {
        color: #007aff !important;
    }

    footer.floating-island.mobile-only .tab.active svg,
    footer.floating-island.mobile-only .tab.active i,
    footer.floating-island.mobile-only .tab.active-menu-item svg,
    footer.floating-island.mobile-only .tab.active-menu-item i,
    footer.mobile-only .tab.active svg,
    footer.mobile-only .tab.active i,
    .tab.active svg,
    .tab.active i {
        stroke: #007aff !important;
        color: #007aff !important;
        stroke-width: 2.2px !important;
    }

    footer.floating-island.mobile-only .tab.active span,
    footer.floating-island.mobile-only .tab.active-menu-item span,
    footer.mobile-only .tab.active span,
    .tab.active span {
        color: #007aff !important;
        font-weight: 500 !important;
    }

    html.dark-theme footer.floating-island.mobile-only .tab.active,
    html.dark-theme footer.floating-island.mobile-only .tab.active-menu-item,
    html.dark-theme footer.mobile-only .tab.active,
    html.dark-theme footer.mobile-only .tab.active-menu-item,
    html.dark-theme .tab.active {
        color: #0a84ff !important;
    }

    html.dark-theme footer.floating-island.mobile-only .tab.active svg,
    html.dark-theme footer.floating-island.mobile-only .tab.active i,
    html.dark-theme footer.floating-island.mobile-only .tab.active-menu-item svg,
    html.dark-theme footer.floating-island.mobile-only .tab.active-menu-item i,
    html.dark-theme footer.mobile-only .tab.active svg,
    html.dark-theme footer.mobile-only .tab.active i,
    html.dark-theme .tab.active svg {
        stroke: #0a84ff !important;
        color: #0a84ff !important;
        stroke-width: 2.2px !important;
    }

    html.dark-theme footer.floating-island.mobile-only .tab.active span,
    html.dark-theme footer.floating-island.mobile-only .tab.active-menu-item span,
    html.dark-theme footer.mobile-only .tab.active span,
    html.dark-theme .tab.active span {
        color: #0a84ff !important;
        font-weight: 500 !important;
    }

    /* BADGES */
    footer.floating-island.mobile-only .tab .badge,
    footer.mobile-only .tab .badge {
        position: absolute !important;
        top: 2px !important;
        left: calc(50% + 2px) !important;
        right: auto !important;
        min-width: 16px !important;
        height: 16px !important;
        border-radius: 8px !important;
        background: #ff3b30 !important;
        color: #ffffff !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        line-height: 16px !important;
        text-align: center !important;
        padding: 0 4px !important;
        box-sizing: border-box !important;
        box-shadow: 0 2px 5px rgba(255, 59, 48, 0.4) !important;
        pointer-events: none !important;
        z-index: 2 !important;
        display: none;
        will-change: transform !important;
    }
    footer.floating-island.mobile-only .tab .badge:not(:empty):not(:contains("0")) {
        display: block !important;
    }

/* first duplicate removed */
}

@media (min-width: 769px) {
    .mobile-actions-wrapper-dock,
    footer.floating-island,
    footer.floating-island.mobile-only,
    footer.mobile-only,
    .mobile-bottom-nav,
    .bottom-nav {
        display: none !important;
        visibility: hidden !important;
    }
}

/* 7. BREADCRUMBS & SECTION TITLES */
.breadcrumbs-container {
  max-width: 1120px !important;
  margin: 15px auto 10px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  color: #8e8e93 !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  box-sizing: border-box !important;
}
.bc-link {
  color: #8e8e93;
  text-decoration: none;
  transition: color 0.15s;
}
.bc-link:hover {
  color: #005bff;
}
.catalog-page-title, .category-main-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 10px 0 14px;
  line-height: 1.25;
  color: var(--text-main);
}
html.dark-theme .catalog-page-title, html.dark-theme .category-main-title {
  color: #ffffff !important;
}
@media (min-width: 769px) {
  .catalog-page-title, .category-main-title {
    font-size: 32px;
    letter-spacing: -0.6px;
  }
}

/* 8. OZON-STYLE CATEGORY GRID (4-COL MOBILE, 8-COL DESKTOP) */
.ozon-cat-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important;
  margin-bottom: 24px !important;
}
@media (min-width: 769px) {
  .ozon-cat-grid {
    grid-template-columns: repeat(8, 1fr) !important;
    gap: 12px !important;
  }
}
.ozon-cat-card, [class*="category-card"] {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  height: 100% !important;
  box-sizing: border-box !important;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.ozon-cat-card:active { transform: none !important; }
.ozon-cat-img-wrap, [class*="category-img-wrap"] {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 14px;
  background: var(--bg-card-img);
  overflow: hidden;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0 !important;
}
html.dark-theme .ozon-cat-img-wrap {
  background: #22242c !important;
}
.ozon-cat-img-wrap img, [class*="category-img"] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}
.ozon-cat-title, [class*="category-title"] {
  font-size: 13.5px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  text-align: center !important;
  color: var(--text-main) !important;
  width: 100% !important;
  height: 35px !important;
  min-height: 35px !important;
  max-height: 35px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: break-word !important;
}
@media (max-width: 768px) {
  .ozon-cat-img-wrap, [class*="category-img-wrap"] {
    border-radius: 12px !important;
    margin-bottom: 5px !important;
  }
  .ozon-cat-title, [class*="category-title"] {
    font-size: 11.5px !important;
    height: 29px !important;
    min-height: 29px !important;
    max-height: 29px !important;
    line-height: 1.25 !important;
  }
}
html.dark-theme .ozon-cat-title {
  color: #f2f2f7 !important;
}

/* 9. PRODUCT GRID & CARDS (120Hz PROMOTION ENGINE WITH CONTENT-VISIBILITY) */
.product-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 4px !important;
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 0 20px;
}
@media (min-width: 769px) {
  .product-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 4px !important;
  }
}
.product-card {
  display: flex !important;
  flex-direction: column !important;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  content-visibility: auto;
  contain-intrinsic-size: auto 280px;
  contain: layout style paint;
}
.product-card:active { transform: none !important; }
html.dark-theme .product-card {
  background: var(--bg-card) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}
.product-card .img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-card-img);
  overflow: hidden;
  position: relative;
}
html.dark-theme .product-card .img-wrap {
  background: #22242c !important;
}
.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card .card-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card .p-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-blue);
  margin-bottom: 4px;
}
.product-card .p-title {
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html.dark-theme .product-card .p-title {
  color: #f2f2f7 !important;
}
.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease;
}
.fav-btn:active {
  transform: scale(0.85);
}
.fav-btn svg, .fav-btn i {
  width: 16px;
  height: 16px;
  stroke: #8e8e93;
}
.fav-btn.active svg, .fav-btn.active i {
  fill: #ff3b30 !important;
  color: #ff3b30 !important;
  stroke: #ff3b30 !important;
}

/* 10. PRODUCT DETAIL HERO (CRITICAL VIEWPORT) */
.product-page-wrapper {
  max-width: 1120px;
  margin: 15px auto;
  padding: 0 16px;
}
.product-detail-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: transparent;
}
@media (min-width: 769px) {
  .product-detail-card {
    flex-direction: row;
    gap: 40px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  }
}
.product-image-column {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}
.product-detail-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: var(--bg-card-img);
  overflow: hidden;
}
.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-detail-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 12px;
}
@media (min-width: 769px) {
  .product-detail-title {
    font-size: 32px;
    margin-bottom: 16px;
  }
}
html.dark-theme .product-detail-title {
  color: #ffffff !important;
}
.product-detail-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-blue);
  margin-bottom: 20px;
}
.detail-actions-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.detail-add-btn {
  background: var(--accent-blue);
  color: #fff;
  border: none;
  padding: 0 24px;
  height: 48px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-width: 200px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.detail-add-btn:active {
  transform: scale(0.96);
  opacity: 0.9;
}
.qty-controller {
  background: var(--search-bg);
  border-radius: 12px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  height: 48px;
  flex: 1;
  min-width: 180px;
}
.qty-btn {
  background: var(--bg-card);
  border: none;
  width: 44px;
  height: 40px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
  color: #005bff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.qty-btn:active {
  transform: scale(0.85);
}
.fav-detail-btn {
  background: var(--search-bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.fav-detail-btn:active {
  transform: scale(0.9);
}

/* 11. ONE-THUMB BOTTOM SHEET DRAWER */
.thumb-sheet-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.thumb-sheet-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.thumb-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 82vh;
  background: var(--thumb-sheet-bg);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  z-index: 100000;
  transform: translateY(105%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}
.thumb-sheet.active {
  transform: translateY(0);
}
.thumb-sheet-handle-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0 6px;
  cursor: pointer;
}
.thumb-sheet-handle {
  width: 36px;
  height: 5px;
  border-radius: 3px;
  background: #c7c7cc;
}
.thumb-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
html.dark-theme .thumb-sheet-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.thumb-sheet-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}
.thumb-sheet-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--search-bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: transform 0.15s ease;
}
.thumb-sheet-close:active {
  transform: scale(0.9);
}
.thumb-sheet-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: calc(82vh - 120px);
}
.thumb-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  min-height: 52px;
  border-radius: 14px;
  background: var(--bg-card);
  text-decoration: none;
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.thumb-category-item:active {
  transform: scale(0.97);
  background: rgba(0, 91, 255, 0.08);
}
html.dark-theme .thumb-category-item {
  border-color: rgba(255, 255, 255, 0.06);
}
.thumb-cat-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.thumb-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 91, 255, 0.1);
  color: #005bff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.thumb-cat-name {
  font-size: 15px;
  font-weight: 700;
}
.thumb-cat-arrow {
  color: var(--text-gray);
  display: flex;
  align-items: center;
}

/* === UNIVERSAL RESPONSIVE & MOBILE-FIRST OVERHAUL === */
#cookie-banner {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    left: auto !important;
    transform: none !important;
    max-width: 380px !important;
    width: calc(100% - 48px) !important;
    background: rgba(15, 23, 42, 0.95) !important;
    color: #f8fafc !important;
    border-radius: 16px !important;
    padding: 14px 18px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    z-index: 99999 !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35) !important;
    display: none;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}
#cookie-banner .cb-text {
    flex: 1;
    font-size: 12.5px;
    color: #e2e8f0;
}
#cookie-banner .cb-text a {
    color: #38bdf8;
    text-decoration: underline;
}
#cookie-banner .cb-btn {
    background: #0284c7 !important;
    color: #fff !important;
    border: none !important;
    padding: 6px 14px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: background 0.2s ease !important;
}
#cookie-banner .cb-btn:hover {
    background: #0369a1 !important;
}
#magicUpBtn, .btn-up-magic, #scrollTopBtn {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    width: 46px !important;
    height: 46px !important;
    z-index: 9990 !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 14px rgba(0, 91, 255, 0.28) !important;
}
@media (min-width: 769px) {
    .art-desktop-footer > div {
        padding-right: 50px !important;
    }
}
@media (max-width: 768px) {
    html, body {
        width: 100% !important;
        height: 100% !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        overflow: hidden !important;
        overscroll-behavior: none !important;
        -webkit-overscroll-behavior: none !important;
        touch-action: none !important;
    }
    main, .v-page-container, .vd-container, #articles-container {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        height: 100dvh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: contain !important;
        touch-action: pan-y !important;
        box-sizing: border-box !important;
        padding-top: calc(107px + env(safe-area-inset-top, 0px)) !important;
        padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
        position: relative !important;
    }
    .stories-scroll, .style-collections-bar, .subcats-scroll, .sh-left-group, .media-tabs-wrapper {
        touch-action: pan-x pan-y !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-x: contain !important;
    }
    #cookie-banner {
        bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: none !important;
    }
    #magicUpBtn, .btn-up-magic, #scrollTopBtn {
        display: none !important;
    }
    input, select, textarea, .search-form input, .cart-qty-input {
        font-size: 16px !important;
    }
    .art-desktop-footer {
        padding: 35px 16px calc(95px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .art-desktop-footer > div {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        padding-right: 0 !important;
    }
}


/* === PERMANENT FIX: DESKTOP FOOTER DOCKED TO NORMAL FLOW === */
.art-desktop-footer, div.art-desktop-footer, footer.art-desktop-footer {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    display: block !important;
    transform: none !important;
    border-radius: 0 !important;
    z-index: 10 !important;
    box-sizing: border-box !important;
    margin-top: 60px !important;
    border-left: none !important;
    border-right: none !important;
}


/* === ELIMINATE ALL MOBILE NAVIGATION DRAWERS AND SHEETS === */
.thumb-sheet, .thumb-sheet-backdrop, #mobile-category-sheet, #thumb-sheet-backdrop, #modal-catalog {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transform: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}



/* ================================================================
   HEADER SEARCH PERFECTION & ZERO-BUTTON CLEAN INPUT
   ================================================================ */
.search-btn {
    display: none !important;
}
.search-form {
    display: flex !important;
    width: 100% !important;
    position: relative !important;
    align-items: center !important;
}
.search-form input {
    width: 100% !important;
    flex: 1 1 auto !important;
    padding-left: 38px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
}
.search-icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    -webkit-transform: translateY(-50%) !important;
    pointer-events: none !important;
}

/* ================================================================
   STORIES EDGE-TO-EDGE ON MOBILE & DISSOLVE MASK ON DESKTOP
   ================================================================ */
.stories-wrapper {
    width: 100% !important;
    max-width: 1120px !important;
    margin: 12px auto 6px auto !important;
    padding: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.stories-scroll {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0 14px 6px 14px !important;
    box-sizing: border-box !important;
}

.stories-scroll::-webkit-scrollbar {
    display: none !important;
}

@media (max-width: 768px) {
    .stories-wrapper {
        margin: 8px 0 4px 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    .stories-scroll {
        padding: 0 12px 4px 12px !important;
        gap: 10px !important;
    }
}

@media (min-width: 769px) {
    .stories-scroll {
        padding: 0 20px 8px 20px !important;
        -webkit-mask-image: linear-gradient(to right, transparent, black 36px, black calc(100% - 36px), transparent) !important;
        mask-image: linear-gradient(to right, transparent, black 36px, black calc(100% - 36px), transparent) !important;
    }
}

.story-circle,
.story-avatar-wrap {
    transform: none !important;
    -webkit-transform: none !important;
    transition: opacity 0.15s ease !important;
}
.story-circle:active,
.story-circle:hover,
.story-avatar-wrap:active,
.story-avatar-wrap:hover {
    transform: none !important;
    -webkit-transform: none !important;
    opacity: 0.8 !important;
}

/* ================================================================
   TIGHT PRODUCT GRID GAPS (REDUCED BY 3X: ~3.5px MOBILE, 6px DESKTOP)
   ================================================================ */
.product-grid {
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 3.5px !important;
        padding: 4px 6px 14px 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    main > .product-grid {
        padding: 4px 6px 14px 6px !important;
    }
    .catalog-page-wrapper,
    .fav-page-wrapper,
    .cart-page-wrapper {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    .ozon-cat-grid,
    .category-grid,
    [class*="category-grid"] {
        gap: 4px !important;
        padding: 0 6px !important;
    }
}

/* ================================================================
   TOTAL JUMP ELIMINATION (100% STATIONARY CARDS & ELEMENTS ACROSS SITE)
   ================================================================ */
.product-card,
.product-card:hover,
.product-card:focus,
.product-card:active,
.ozon-cat-card,
.ozon-cat-card:hover,
.ozon-cat-card:focus,
.ozon-cat-card:active,
.category-card,
.category-card:hover,
.category-card:focus,
.category-card:active,
[class*="category-card"],
[class*="category-card"]:hover,
[class*="category-card"]:active,
[class*="cat-card"],
[class*="cat-card"]:hover,
[class*="cat-card"]:active,
.desktop-catalog-btn:active,
.fav-btn:active,
.add-to-cart-btn:active,
.fav-detail-btn:active,
#cookie-banner button:active {
    transform: none !important;
    -webkit-transform: none !important;
}

.product-card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
}
.product-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}
.product-card:active {
    opacity: 0.92 !important;
}

.ozon-cat-card,
.category-card,
[class*="category-card"] {
    transition: opacity 0.15s ease !important;
}
.ozon-cat-card:active,
.category-card:active,
[class*="category-card"]:active {
    opacity: 0.88 !important;
}

/* ================================================================
   1. GLOBAL FIXED TOP HEADER CLEARANCE (NEVER OVERLAP ANY PAGE)
   ================================================================ */
/* Desktop: Header (65px) + Subheader (44px) = 109px -> Clearance 125px */
@media (min-width: 769px) {
    body {
        padding-top: calc(125px + env(safe-area-inset-top, 0px)) !important;
        padding-bottom: 110px !important;
    }
    main {
        padding-top: 0 !important;
    }
    footer.floating-island,
    footer.floating-island.mobile-only,
    footer.mobile-only,
    .mobile-bottom-nav,
    .bottom-nav {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* Mobile: Body locked at top 0, main scrolls with exact 120px clearance */
@media (max-width: 768px) {
    body {
        padding-top: 0 !important;
        margin: 0 !important;
    }
    main, .v-page-container, .vd-container, #articles-container {
        padding-top: calc(120px + env(safe-area-inset-top, 0px)) !important;
        padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* Detail and catalog page wrappers comfortable breathing room */
.breadcrumbs-wrapper {
    max-width: 1120px !important;
    margin: 12px auto 8px auto !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
}

/* ================================================================
   2. UNIFIED SEARCH CAPSULE WITH CATALOG BUTTON INSIDE ON THE RIGHT
   ================================================================ */
.search-wrapper {
    position: relative !important;
    flex: 1 1 auto !important;
    max-width: 520px !important;
    margin: 0 12px !important;
}

.search-form {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    width: 100% !important;
    height: 40px !important;
    background: var(--search-bg, #f2f2f7) !important;
    border: 1px solid var(--search-border, #e5e5ea) !important;
    border-radius: 12px !important;
    padding: 2px 3px 2px 12px !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.search-form:focus-within {
    border-color: var(--accent-blue, #0071e3) !important;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15) !important;
}

.search-form .search-icon {
    position: static !important;
    transform: none !important;
    -webkit-transform: none !important;
    width: 17px !important;
    height: 17px !important;
    stroke: var(--search-placeholder, #8e8e93) !important;
    color: var(--search-placeholder, #8e8e93) !important;
    flex-shrink: 0 !important;
    margin-right: 8px !important;
    pointer-events: none !important;
}

.search-form input {
    flex: 1 1 auto !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    height: 100% !important;
    padding: 0 !important;
    font-size: 14px !important;
    color: var(--search-text, #111) !important;
    min-width: 60px !important;
}

.search-form .desktop-catalog-btn {
    position: static !important;
    height: 34px !important;
    /* bg: flow */
    color: #ffffff !important;
    border: none !important;
    border-radius: 9px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 0 0 6px !important;
    box-shadow: 0 2px 6px rgba(0, 113, 227, 0.25) !important;
    transition: background 0.15s ease, opacity 0.15s ease !important;
    transform: none !important;
    -webkit-transform: none !important;
}

.search-form .desktop-catalog-btn:hover {
    background: #005bb5 !important;
}

.search-form .desktop-catalog-btn:active {
    opacity: 0.85 !important;
    transform: none !important;
    -webkit-transform: none !important;
}

.search-form .desktop-catalog-btn i,
.search-form .desktop-catalog-btn svg {
    width: 15px !important;
    height: 15px !important;
    stroke: #ffffff !important;
}

@media (max-width: 768px) {
    .search-wrapper {
        margin: 0 !important;
    }
    .search-form .desktop-catalog-btn {
        display: none !important;
    }
}

/* ================================================================
   3. STORIES: SEAMLESS EDGE-TO-EDGE (MOBILE) & DISSOLVE MASK (DESKTOP)
   ================================================================ */
.stories-wrapper {
    width: 100% !important;
    max-width: 1120px !important;
    margin: 8px auto 4px auto !important;
    padding: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    display: block !important;
}

.stories-scroll {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 4px 14px 6px 14px !important;
    box-sizing: border-box !important;
    scrollbar-width: none !important;
    width: 100% !important;
}

.stories-scroll::-webkit-scrollbar {
    display: none !important;
}

@media (max-width: 768px) {
    .stories-wrapper {
        margin: 4px 0 2px 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .stories-scroll {
        padding: 2px 14px 6px 14px !important;
        gap: 10px !important;
        width: 100% !important;
    }
}

@media (min-width: 769px) {
    .stories-scroll {
        padding: 4px 20px 8px 20px !important;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 48px, black calc(100% - 48px), transparent 100%) !important;
        mask-image: linear-gradient(to right, transparent 0%, black 48px, black calc(100% - 48px), transparent 100%) !important;
    }
}

/* ================================================================
   4. PRODUCT GRID GAPS (REDUCED BY 3X ON DESKTOP & MOBILE)
   ================================================================ */
.product-grid {
    gap: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 4px !important;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 4px !important;
    }
}
@media (min-width: 769px) and (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 4px !important;
    }
}
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 3.5px !important;
        padding: 4px 8px 14px 8px !important;
    }
    .ozon-cat-grid, [class*="category-grid"] {
        gap: 4px !important;
    }
}

/* ================================================================
   5. COMPLETE ZERO-JUMP ENGINE ACROSS ENTIRE WEBSITE
   ================================================================ */
.product-card,
.product-card:hover,
.product-card:focus,
.product-card:active,
.ozon-cat-card,
.ozon-cat-card:hover,
.ozon-cat-card:focus,
.ozon-cat-card:active,
.category-card,
.category-card:hover,
.category-card:focus,
.category-card:active,
[class*="category-card"],
[class*="category-card"]:hover,
[class*="category-card"]:active,
[class*="cat-card"],
[class*="cat-card"]:hover,
[class*="cat-card"]:active,
.subcats-scroll a,
.subcats-scroll a:hover,
.subcats-scroll a:active,
.style-pill,
.style-pill:hover,
.style-pill:active,
.venue-card,
.venue-card:hover,
.venue-card:active,
.contact-card,
.contact-card:hover,
.contact-card:active,
.article-card,
.article-card:hover,
.article-card:active,
.story-circle,
.story-circle:hover,
.story-circle:active,
.story-avatar-wrap,
.story-avatar-wrap:hover,
.story-avatar-wrap:active,
.sh-link,
.sh-link:hover,
.sh-link:active,
.desktop-catalog-btn,
.desktop-catalog-btn:hover,
.desktop-catalog-btn:active,
.search-form .search-btn:active,
.fav-btn:active,
.add-to-cart-btn:active,
.fav-detail-btn:active {
    transform: none !important;
    -webkit-transform: none !important;
}

.product-card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
}
.product-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}
.product-card:active {
    opacity: 0.92 !important;
}

.ozon-cat-card,
.category-card,
[class*="category-card"] {
    transition: opacity 0.15s ease !important;
}
.ozon-cat-card:hover,
.category-card:hover,
[class*="category-card"]:hover {
    transform: none !important;
    -webkit-transform: none !important;
    opacity: 0.9 !important;
}
.ozon-cat-card:active,
.category-card:active,
[class*="category-card"]:active {
    transform: none !important;
    -webkit-transform: none !important;
    opacity: 0.75 !important;
}


/* ================================================================
   PHASE 3 PERFECTION: MONOLITHIC ISLAND, FLUSH CATALOG & EDGE STORIES
   ================================================================ */

/* 1. MONOLITHIC DESKTOP HEADER (SINGLE UNIFIED ROW) */
@media (min-width: 769px) {
    header.floating-island {
        height: calc(68px + env(safe-area-inset-top, 0px)) !important;
        padding-top: env(safe-area-inset-top, 0px) !important;
        display: flex !important;
        align-items: center !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    }
    html.dark-theme header.floating-island {
        border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
    }
    .header-container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        height: 100% !important;
        max-width: 1120px !important;
        margin: 0 auto !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }
    .sub-header-row {
        display: none !important;
    }
    body {
        padding-top: calc(78px + env(safe-area-inset-top, 0px)) !important;
    }
    main {
        padding-top: 0 !important;
    }
    
    /* Desktop menu wrapper & icons */
    .desktop-menu-wrap {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
    .desktop-sub-icons {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }
    .desktop-nav-divider {
        width: 1px !important;
        height: 20px !important;
        background: rgba(0, 0, 0, 0.1) !important;
        margin: 0 6px !important;
        flex-shrink: 0 !important;
    }
    html.dark-theme .desktop-nav-divider {
        background: rgba(255, 255, 255, 0.16) !important;
    }
}

/* 2. MONOLITHIC MOBILE ISLAND (< 769px) */
@media (max-width: 768px) {
    header.floating-island {
        border-bottom: none !important;
        box-shadow: none !important;
        height: calc(65px + env(safe-area-inset-top, 0px)) !important;
    }
    .sub-header-row {
        position: static !important;
        width: 100% !important;
        height: 40px !important;
        border: none !important;
        border-top: none !important;
        border-bottom: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    html.dark-theme .sub-header-row {
        border: none !important;
        border-bottom: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    .desktop-sub-icons,
    .desktop-nav-divider,
    .desktop-theme-btn,
    .desktop-menu-wrap {
        display: none !important;
    }
    body {
        padding-top: 0 !important;
    }
    main, .v-page-container, .vd-container, #articles-container {
        padding-top: calc(112px + env(safe-area-inset-top, 0px)) !important;
    }
}

/* 3. FLUSH FULL-HEIGHT CATALOG BUTTON INSIDE SEARCH CAPSULE */
.search-form {
    display: flex !important;
    align-items: center !important;
    height: 42px !important;
    max-height: 42px !important;
    border-radius: 12px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: var(--search-bg, #f2f2f7) !important;
    border: 1px solid var(--search-border, #e5e5ea) !important;
    box-sizing: border-box !important;
    position: relative !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}
html.light-theme .search-form {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}
html.dark-theme .search-form {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
.search-form:focus-within {
    border-color: #005bff !important;
    box-shadow: 0 0 0 3px rgba(0, 91, 255, 0.18) !important;
}
.search-form .search-icon {
    position: static !important;
    transform: none !important;
    -webkit-transform: none !important;
    width: 18px !important;
    height: 18px !important;
    stroke: var(--search-placeholder, #8e8e93) !important;
    color: var(--search-placeholder, #8e8e93) !important;
    margin-left: 14px !important;
    margin-right: 8px !important;
    flex-shrink: 0 !important;
    pointer-events: none !important;
}
.search-form input {
    flex: 1 1 auto !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    height: 100% !important;
    padding: 0 8px 0 0 !important;
    font-size: 14px !important;
    font-family: inherit !important;
    color: var(--search-text, #111) !important;
    min-width: 60px !important;
}
html.dark-theme .search-form input {
    color: #f2f2f7 !important;
}
.search-form .desktop-catalog-btn {
    position: static !important;
    height: 42px !important;
    margin: -1px -1px -1px 0 !important;
    padding: 0 18px !important;
    /* bg: flow */
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    box-shadow: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    letter-spacing: -0.1px !important;
    transition: background 0.15s ease, opacity 0.15s ease !important;
}
.search-form .desktop-catalog-btn:hover {
    background: #004ecc !important;
}
.search-form .desktop-catalog-btn:active {
    opacity: 0.85 !important;
}
.search-form .desktop-catalog-btn i,
.search-form .desktop-catalog-btn svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #ffffff !important;
    stroke-width: 2 !important;
}
@media (max-width: 768px) {
    .search-form .desktop-catalog-btn {
        display: none !important;
    }
}

/* 4. STORIES: SEAMLESS EDGE-TO-EDGE ON MOBILE & DISSOLVE MASK ON DESKTOP */
.stories-wrapper {
    width: 100% !important;
    max-width: 1120px !important;
    margin: 8px auto 4px auto !important;
    padding: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: block !important;
}
.stories-scroll {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 2px 0 6px 0 !important;
    box-sizing: border-box !important;
    scrollbar-width: none !important;
    width: 100% !important;
}
.stories-scroll::-webkit-scrollbar {
    display: none !important;
}
.stories-scroll .story-circle:first-child {
    margin-left: 10px !important;
}
.stories-scroll .story-circle:last-child {
    margin-right: 10px !important;
}

@media (max-width: 768px) {
    .stories-wrapper {
        margin: 4px 0 2px 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    .stories-scroll {
        padding: 2px 0 6px 0 !important;
        gap: 8px !important;
        width: 100% !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }
    .stories-scroll .story-circle:first-child {
        margin-left: 6px !important;
    }
    .stories-scroll .story-circle:last-child {
        margin-right: 6px !important;
    }
}
@media (min-width: 769px) {
    .stories-scroll {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.15) 15px, rgba(0,0,0,0.85) 45px, #000 70px, #000 calc(100% - 70px), rgba(0,0,0,0.85) calc(100% - 45px), rgba(0,0,0,0.15) calc(100% - 15px), transparent 100%) !important;
        mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.15) 15px, rgba(0,0,0,0.85) 45px, #000 70px, #000 calc(100% - 70px), rgba(0,0,0,0.85) calc(100% - 45px), rgba(0,0,0,0.15) calc(100% - 15px), transparent 100%) !important;
    }
}

/* 5. TIGHT MOBILE PRODUCT GRID GAPS (2px GAP, 4px PADDING) */
@media (max-width: 768px) {
    .product-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2px !important;
        padding: 4px 4px 14px 4px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    main > .product-grid {
        padding: 4px 4px 14px 4px !important;
    }
    .catalog-page-wrapper,
    .cart-page-wrapper,
    .fav-page-wrapper,
    .product-page-wrapper {
        padding-left: 4px !important;
        padding-right: 4px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .ozon-cat-grid, [class*="category-grid"] {
        padding: 0 !important;
        gap: 4px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
}



/* ================================================================
   MONOLITHIC ISLAND: NO DIVIDER STRIP, SEAMLESS GLASS, ORIGINAL HEIGHT
   ================================================================ */

/* 1. HEADER (TOP HALF OF MONOLITHIC ISLAND) */
header.floating-island,
header {
    position: fixed !important;
    top: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    margin-top: 0 !important;
    border-top: none !important;
    outline: none !important;
    z-index: 9998 !important;
    border-bottom: none !important; /* NO DIVIDER STRIP! */
    box-shadow: none !important;     /* NO DIVIDER SHADOW! */
}

@media (min-width: 769px) {
    header.floating-island {
        height: calc(75px + env(safe-area-inset-top, 0px)) !important;
        padding-top: env(safe-area-inset-top, 0px) !important;
        display: flex !important;
        align-items: center !important;
    }
    .header-container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 20px !important;
        height: 100% !important;
        max-width: 1120px !important;
        margin: 0 auto !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }
    .desktop-menu-wrap {
        display: flex !important;
        align-items: center !important;
        gap: 16px !important;
        margin-left: auto !important;
    }
    /* Total Island Height is 75px + 44px = 119px */
    body {
        padding-top: calc(125px + env(safe-area-inset-top, 0px)) !important;
    }
    main {
        padding-top: 0 !important;
    }
    .sub-header-row {
        display: block !important;
        height: 44px !important;
        top: calc(75px + env(safe-area-inset-top, 0px)) !important;
    }
}

@media (max-width: 768px) {
    header.floating-island {
        height: calc(65px + env(safe-area-inset-top, 0px)) !important;
        padding-top: env(safe-area-inset-top, 0px) !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }
    .header-container {
        gap: 12px !important;
    }
    .sub-header-row {
        display: block !important;
        height: 40px !important;
        top: calc(65px + env(safe-area-inset-top, 0px)) !important;
    }
    body {
        padding-top: 0 !important;
    }
    main, .v-page-container, .vd-container, #articles-container {
        padding-top: calc(118px + env(safe-area-inset-top, 0px)) !important;
    }
}

/* Top island monolithic glass - NO rectangular container / border on subheader row */
html.light-theme header.floating-island {
    background: rgba(255, 255, 255, 0.72) !important;
    -webkit-backdrop-filter: blur(48px) saturate(200%) contrast(1.05) brightness(1.02) !important;
    backdrop-filter: blur(48px) saturate(200%) contrast(1.05) brightness(1.02) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
}
html.light-theme .sub-header-row,
html.light-theme .sub-header-container,
html.light-theme .sh-left-group,
html.light-theme .sh-right-group,
html.light-theme .sh-link {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html.dark-theme header.floating-island {
    background: rgba(26, 28, 36, 0.52) !important;
    -webkit-backdrop-filter: blur(60px) saturate(350%) brightness(1.1) contrast(1.08) !important;
    backdrop-filter: blur(60px) saturate(350%) brightness(1.1) contrast(1.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 8px 28px -4px rgba(0, 0, 0, 0.45) !important;
}
html.dark-theme .sub-header-row,
html.dark-theme .sub-header-container,
html.dark-theme .sh-left-group,
html.dark-theme .sh-right-group,
html.dark-theme .sh-link {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 2. FLUSH FULL-HEIGHT CATALOG BUTTON INSIDE SEARCH CAPSULE */
.search-form {
    display: flex !important;
    align-items: center !important;
    height: 42px !important;
    max-height: 42px !important;
    border-radius: 12px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: var(--search-bg, #f2f2f7) !important;
    border: 1px solid var(--search-border, #e5e5ea) !important;
    box-sizing: border-box !important;
    position: relative !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}
html.light-theme .search-form {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}
html.dark-theme .search-form {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
.search-form:focus-within {
    border-color: #005bff !important;
    box-shadow: 0 0 0 3px rgba(0, 91, 255, 0.18) !important;
}
.search-form .search-icon {
    position: static !important;
    transform: none !important;
    -webkit-transform: none !important;
    width: 18px !important;
    height: 18px !important;
    stroke: var(--search-placeholder, #8e8e93) !important;
    color: var(--search-placeholder, #8e8e93) !important;
    margin-left: 14px !important;
    margin-right: 8px !important;
    flex-shrink: 0 !important;
    pointer-events: none !important;
}
.search-form input {
    flex: 1 1 auto !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    height: 100% !important;
    padding: 0 8px 0 0 !important;
    font-size: 14px !important;
    font-family: inherit !important;
    color: var(--search-text, #111) !important;
    min-width: 60px !important;
}
html.dark-theme .search-form input {
    color: #f2f2f7 !important;
}
.search-form .desktop-catalog-btn {
    position: static !important;
    height: 42px !important;
    margin: -1px -1px -1px 0 !important;
    padding: 0 18px !important;
    /* bg: flow */
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    box-shadow: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    letter-spacing: -0.1px !important;
    transition: background 0.15s ease, opacity 0.15s ease !important;
}
.search-form .desktop-catalog-btn:hover {
    background: #004ecc !important;
}
.search-form .desktop-catalog-btn:active {
    opacity: 0.85 !important;
}
.search-form .desktop-catalog-btn i,
.search-form .desktop-catalog-btn svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #ffffff !important;
    stroke-width: 2 !important;
}
@media (max-width: 768px) {
    .search-form .desktop-catalog-btn {
        display: none !important;
    }
}

/* 3. SUBHEADER ACTIVE ICON NEVER WHITE */
html.light-theme .sh-link.active i,
html.light-theme .sh-link.active svg {
    stroke: #005bff !important;
    color: #005bff !important;
}
html.light-theme .sh-link.active { background: rgba(0, 91, 255, 0.09) !important; color: #005bff !important; border: none !important; border-radius: 8px !important; }
html.dark-theme .sh-link.active i,
html.dark-theme .sh-link.active svg {
    stroke: #0a84ff !important;
    color: #0a84ff !important;
}
html.dark-theme .sh-link.active { background: rgba(0, 91, 255, 0.09) !important; color: #005bff !important; border: none !important; border-radius: 8px !important; }

/* 4. STORIES: SEAMLESS EDGE-TO-EDGE (MOBILE) & DISSOLVE MASK (DESKTOP) */
.stories-wrapper {
    width: 100% !important;
    max-width: 1120px !important;
    margin: 8px auto 4px auto !important;
    padding: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: block !important;
}
.stories-scroll {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 2px 0 6px 0 !important;
    box-sizing: border-box !important;
    scrollbar-width: none !important;
    width: 100% !important;
}
.stories-scroll::-webkit-scrollbar {
    display: none !important;
}
.stories-scroll .story-circle:first-child {
    margin-left: 10px !important;
}
.stories-scroll .story-circle:last-child {
    margin-right: 10px !important;
}

@media (max-width: 768px) {
    .stories-wrapper {
        margin: 4px 0 2px 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    .stories-scroll {
        padding: 2px 0 6px 0 !important;
        gap: 8px !important;
        width: 100% !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }
    .stories-scroll .story-circle:first-child {
        margin-left: 6px !important;
    }
    .stories-scroll .story-circle:last-child {
        margin-right: 6px !important;
    }
}
@media (min-width: 769px) {
    .stories-scroll {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.15) 15px, rgba(0,0,0,0.85) 45px, #000 70px, #000 calc(100% - 70px), rgba(0,0,0,0.85) calc(100% - 45px), rgba(0,0,0,0.15) calc(100% - 15px), transparent 100%) !important;
        mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.15) 15px, rgba(0,0,0,0.85) 45px, #000 70px, #000 calc(100% - 70px), rgba(0,0,0,0.85) calc(100% - 45px), rgba(0,0,0,0.15) calc(100% - 15px), transparent 100%) !important;
    }
}

/* 5. TIGHT MOBILE PRODUCT GRID GAPS (2px GAP, 4px PADDING) */
@media (max-width: 768px) {
    .product-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2px !important;
        padding: 4px 4px 14px 4px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    main > .product-grid {
        padding: 4px 4px 14px 4px !important;
    }
    .catalog-page-wrapper,
    .cart-page-wrapper,
    .fav-page-wrapper,
    .product-page-wrapper {
        padding-left: 4px !important;
        padding-right: 4px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .ozon-cat-grid, [class*="category-grid"] {
        padding: 0 !important;
        gap: 4px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
}



/* ================================================================
   TRUE 100% MONOLITHIC SINGLE-ELEMENT ISLAND (ZERO HORIZONTAL SEAM)
   ================================================================ */

header.floating-island,
header {
    position: fixed !important;
    top: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    margin-top: 0 !important;
    border-top: none !important;
    outline: none !important;
    z-index: 9998 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

@media (min-width: 769px) {
    header.floating-island {
        height: calc(119px + env(safe-area-inset-top, 0px)) !important;
        padding-top: env(safe-area-inset-top, 0px) !important;
    }
    .header-container {
        height: 75px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 20px !important;
        max-width: 1120px !important;
        margin: 0 auto !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    .desktop-menu-wrap {
        display: flex !important;
        align-items: center !important;
        gap: 16px !important;
        margin-left: auto !important;
    }
    .sub-header-row {
        height: 44px !important;
        display: block !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    body {
        padding-top: calc(125px + env(safe-area-inset-top, 0px)) !important;
    }
    main {
        padding-top: 0 !important;
    }
}

@media (max-width: 768px) {
    header.floating-island {
        height: calc(105px + env(safe-area-inset-top, 0px)) !important;
        padding-top: env(safe-area-inset-top, 0px) !important;
    }
    .header-container {
        height: 65px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    .sub-header-row {
        height: 40px !important;
        display: block !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    body {
        padding-top: 0 !important;
    }
    main, .v-page-container, .vd-container, #articles-container {
        padding-top: calc(118px + env(safe-area-inset-top, 0px)) !important;
    }
}

/* Frosted glass strictly and exclusively on the parent header.floating-island */
html.light-theme header.floating-island {
    background: rgba(255, 255, 255, 0.72) !important;
    -webkit-backdrop-filter: blur(48px) saturate(200%) contrast(1.05) brightness(1.02) !important;
    backdrop-filter: blur(48px) saturate(200%) contrast(1.05) brightness(1.02) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.9),
        0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
}

html.dark-theme header.floating-island {
    background: rgba(26, 28, 36, 0.52) !important;
    -webkit-backdrop-filter: blur(60px) saturate(350%) brightness(1.1) contrast(1.08) !important;
    backdrop-filter: blur(60px) saturate(350%) brightness(1.1) contrast(1.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.18),
        0 8px 28px -4px rgba(0, 0, 0, 0.45) !important;
}

/* Zero backgrounds/borders on internal rows */
html.light-theme .header-container,
html.light-theme .sub-header-row,
html.dark-theme .header-container,
html.dark-theme .sub-header-row {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}


/* ================================================================
   PHASE 5: BORDERLESS SEARCH CAPSULE & PERFECTLY CENTERED CATALOG BUTTON
   ================================================================ */
/* 1. Complete border/outline removal on search field across all themes and states */
.search-form,
html.light-theme .search-form,
html.dark-theme .search-form {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: rgba(0, 0, 0, 0.04) !important;
}
html.dark-theme .search-form {
    background: rgba(255, 255, 255, 0.08) !important;
}
.search-form:focus-within {
    border: none !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(0, 91, 255, 0.15) !important;
}

/* 2. Desktop: Catalog button strictly centered in the middle of the page (50vw) */
@media (min-width: 769px) {
    .header-container {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        max-width: 1120px !important;
        margin: 0 auto !important;
        padding: 0 16px !important;
    }
    .logo-link {
        flex-shrink: 0 !important;
        z-index: 2 !important;
    }
    .desktop-menu-wrap {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
        z-index: 2 !important;
    }
    .desktop-tab {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 6px 10px !important;
        font-size: 13.5px !important;
        font-weight: 500 !important;
    }
    .desktop-tab i,
    .desktop-tab svg {
        width: 17px !important;
        height: 17px !important;
    }
    .search-wrapper {
        position: absolute !important;
        left: 120px !important;
        /* right: calc(50% - 59px) replaced */
        max-width: none !important;
        width: auto !important;
        margin: 0 !important;
        z-index: 1 !important;
    }
    .search-form .desktop-catalog-btn {
        width: 118px !important;
        min-width: 118px !important;
        max-width: 118px !important;
        padding: 0 !important;
        justify-content: center !important;
        gap: 6px !important;
        border-radius: 12px !important;
        margin: 0 !important;
    }
}

@media (max-width: 1100px) and (min-width: 769px) {
    .desktop-tab {
        padding: 5px 6px !important;
        font-size: 12.5px !important;
        gap: 4px !important;
    }
    .desktop-menu-wrap {
        gap: 4px !important;
    }
}

@media (max-width: 768px) {
    .search-wrapper {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        width: auto !important;
        flex: 1 1 auto !important;
        margin: 0 4px !important;
    }
    .search-form .desktop-catalog-btn {
        display: none !important;
    }
}

/* ================================================================
   PHASE 6 REFINEMENTS:
   1. Search 20% shorter on desktop (left: 220px,Catalog centered at 50vw)
   2. Subheader icons (articles, stories, ai chat) moved to right next to theme toggle
   3. Stories mask completely removed (no dissolving)
   4. Mobile search: 0 border, input padding-left: 38px (no overlap), phone icon black
   5. Mobile detail actions strictly single line
   ================================================================ */

/* 1. Desktop Search Width - shortened by 20% away from logo, button remains centered */
@media (min-width: 769px) {
    .search-wrapper {
        position: absolute !important;
        left: 220px !important;
        /* right: calc(50% - 59px) replaced */
        max-width: none !important;
        width: auto !important;
        margin: 0 !important;
        z-index: 1 !important;
    }
}

/* 2. Subheader row on desktop: icons moved to the right next to theme toggle */
@media (min-width: 769px) {
    .sub-header-container {
        justify-content: flex-end !important;
        gap: 8px !important;
    }
    .sh-left-group {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-left: auto !important;
        margin-right: 0 !important;
    }
    .sh-right-group {
        display: flex !important;
        align-items: center !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}

/* 3. Stories: zero dissolving, completely opaque across all viewports */
.stories-scroll {
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

/* 4. Mobile Search perfection: zero border, no overlap with magnifying glass */
.search-form,
html.light-theme .search-form,
html.dark-theme .search-form {
    border: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    background: rgba(0, 0, 0, 0.04) !important;
}
html.dark-theme .search-form {
    background: rgba(255, 255, 255, 0.08) !important;
}
.search-form input,
html.light-theme .search-form input,
html.dark-theme .search-form input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    -webkit-appearance: none !important;
    padding-left: 38px !important;
    padding-right: 12px !important;
    font-size: 14px !important;
    color: var(--search-text, #111) !important;
}
.search-form .search-icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    -webkit-transform: translateY(-50%) !important;
    width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    stroke: var(--search-placeholder, #8e8e93) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

/* 4b. Mobile Phone Icon: Black in light theme, white in dark theme */
html.light-theme .icon-btn.call-action i, html.light-theme .icon-btn.call-action svg, .icon-btn.call-action i, .icon-btn.call-action svg { stroke: #ffffff !important; color: #ffffff !important; }
html.dark-theme .icon-btn.call-action i,
html.dark-theme .icon-btn.call-action svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
}

/* 5. Mobile Product Detail Action Buttons strictly in one line */
@media (max-width: 768px) {
    .detail-actions-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 25px !important;
    }
    .detail-add-btn {
        flex: 1.3 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        height: 44px !important;
        padding: 0 8px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
    }
    .detail-add-btn i, .detail-add-btn svg {
        width: 16px !important;
        height: 16px !important;
        flex-shrink: 0 !important;
    }
    .qty-controller {
        flex: 1.3 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        height: 44px !important;
        padding: 2px 4px !important;
        border-radius: 10px !important;
        flex-wrap: nowrap !important;
    }
    .qty-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
    }
    #detail-qty-input {
        font-size: 15px !important;
    }
    .detail-oneclick-btn {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        height: 44px !important;
        padding: 0 8px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        margin: 0 !important;
    }
    .detail-oneclick-btn i, .detail-oneclick-btn svg {
        width: 16px !important;
        height: 16px !important;
        flex-shrink: 0 !important;
    }
    .fav-detail-btn {
        flex: 0 0 44px !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        border-radius: 10px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }
    .fav-detail-btn i, .fav-detail-btn svg {
        width: 20px !important;
        height: 20px !important;
    }
}

/* ================================================================
   PHASE 6 REFINEMENTS:
   1. Search 20% shorter on desktop (left: 220px, Catalog centered at 50vw)
   2. Subheader icons (articles, stories, ai chat) moved to right next to theme toggle
   3. Stories mask completely removed (no dissolving)
   4. Mobile search: 0 border, input padding-left: 38px (no overlap), phone icon black
   5. Mobile detail actions strictly single line
   ================================================================ */

/* 1. Desktop Search Width - shortened by 20% away from logo, button remains centered */
@media (min-width: 769px) {
    .search-wrapper {
        position: absolute !important;
        left: 220px !important;
        /* right: calc(50% - 59px) replaced */
        max-width: none !important;
        width: auto !important;
        margin: 0 !important;
        z-index: 1 !important;
    }
}

/* 2. Subheader row on desktop: icons moved to the right next to theme toggle */
@media (min-width: 769px) {
    .sub-header-container {
        justify-content: flex-end !important;
        gap: 8px !important;
    }
    .sh-left-group {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-left: auto !important;
        margin-right: 0 !important;
    }
    .sh-right-group {
        display: flex !important;
        align-items: center !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}

/* 3. Stories: zero dissolving, completely opaque across all viewports */
.stories-scroll {
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

/* 4. Mobile Search perfection: zero border, no overlap with magnifying glass */
.search-form,
html.light-theme .search-form,
html.dark-theme .search-form {
    border: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    background: rgba(0, 0, 0, 0.04) !important;
}
html.dark-theme .search-form {
    background: rgba(255, 255, 255, 0.08) !important;
}
.search-form input,
html.light-theme .search-form input,
html.dark-theme .search-form input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    -webkit-appearance: none !important;
    padding-left: 38px !important;
    padding-right: 12px !important;
    font-size: 14px !important;
    color: var(--search-text, #111) !important;
}
.search-form .search-icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    -webkit-transform: translateY(-50%) !important;
    width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    stroke: var(--search-placeholder, #8e8e93) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

/* 4b. Mobile Phone Icon: Black in light theme, white in dark theme */
html.light-theme .icon-btn.call-action i, html.light-theme .icon-btn.call-action svg, .icon-btn.call-action i, .icon-btn.call-action svg { stroke: #ffffff !important; color: #ffffff !important; }
html.dark-theme .icon-btn.call-action i,
html.dark-theme .icon-btn.call-action svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
}

/* 5. Mobile Product Detail Action Buttons strictly in one line */
@media (max-width: 768px) {
    .detail-actions-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 25px !important;
    }
    .detail-add-btn {
        flex: 1.3 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        height: 44px !important;
        padding: 0 8px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
    }
    .detail-add-btn i, .detail-add-btn svg {
        width: 16px !important;
        height: 16px !important;
        flex-shrink: 0 !important;
    }
    .qty-controller {
        flex: 1.3 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        height: 44px !important;
        padding: 2px 4px !important;
        border-radius: 10px !important;
        flex-wrap: nowrap !important;
    }
    .qty-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
    }
    #detail-qty-input {
        font-size: 15px !important;
    }
    .detail-oneclick-btn {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        height: 44px !important;
        padding: 0 8px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        margin: 0 !important;
    }
    .detail-oneclick-btn i, .detail-oneclick-btn svg {
        width: 16px !important;
        height: 16px !important;
        flex-shrink: 0 !important;
    }
    .fav-detail-btn {
        flex: 0 0 44px !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        border-radius: 10px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }
    .fav-detail-btn i, .fav-detail-btn svg {
        width: 20px !important;
        height: 20px !important;
    }
}

/* Phase 7: Dynamic Logo Sizing, Alignment, and Theme Filter */
@media (min-width: 769px) {
    .logo-link {
        align-self: flex-start !important;
        margin-top: 15.86px !important;
    }
    .logo-img {
        height: 80px !important;
        width: auto !important;
        display: block !important;
    }
}
html.dark-theme .logo-img {
    filter: none !important;
}

/* Content padding for mobile bottom island */
@media (max-width: 768px) {
    .product-page-wrapper,
    main {
        padding-bottom: calc(135px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* PHASE 8: MOBILE ZOOM FIX & CATALOG BUTTON SYMMETRY */
.search-form .desktop-catalog-btn {
    border-radius: 12px !important;
}
@media (max-width: 768px) {
    .search-form input,
    .search-form input[type="text"],
    #live-search,
    input[type="text"],
    input[type="search"],
    input[type="tel"],
    input[type="email"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
    }
}
.search-form input,
.search-form button,
.desktop-catalog-btn,
.icon-btn,
button {
    touch-action: manipulation !important;
}
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* ================================================================
   PHASE 10: ZERO-GHOST-LINE SEARCH DROPDOWN, 84px LOGO & COMPLETE ICON INTEGRITY
   ================================================================ */
header.floating-island {
    overflow: visible !important;
}

@media (min-width: 769px) {
    .logo-link {
        align-self: flex-start !important;
        margin-top: 15.86px !important;
    }
    .logo-img {
        height: 84px !important;
        width: auto !important;
        display: block !important;
    }
    .search-wrapper {
        position: absolute !important;
        left: 220px !important;
        /* right: calc(50% - 59px) replaced */
        max-width: none !important;
        width: auto !important;
        margin: 0 !important;
        z-index: 100 !important;
        overflow: visible !important;
    }
    .search-form {
        border-radius: 12px !important;
    }
    .search-form .desktop-catalog-btn {
        width: 118px !important;
        min-width: 118px !important;
        max-width: 118px !important;
        border-radius: 12px !important;
        margin: 0 !important;
    }
    .search-form .search-clear {
        position: absolute !important;
        right: 128px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 10 !important;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 34px !important;
        width: auto !important;
    }
    .search-wrapper {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        width: auto !important;
        flex: 1 1 auto !important;
        margin: 0 4px !important;
        overflow: visible !important;
    }
    .search-form .search-clear {
        position: absolute !important;
        right: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 10 !important;
    }
}

/* SEARCH DROPDOWN (Strictly hidden when empty - NO ghost horizontal line!) */
.search-dropdown,
.live-search-dropdown {
    display: none;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    z-index: 99999 !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.search-dropdown:empty,
.live-search-dropdown:empty,
.search-dropdown[style*="display: none"],
.live-search-dropdown[style*="display: none"] {
    display: none !important;
    border: none !important;
    box-shadow: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.search-dropdown-item,
.live-search-item {
    display: flex !important;
    align-items: center !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    text-decoration: none !important;
    color: #111111 !important;
    transition: background 0.15s ease !important;
}

.search-dropdown-item:hover,
.live-search-item:hover {
    background: rgba(0, 0, 0, 0.03) !important;
}

.search-dropdown-img,
.live-search-img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
}

.search-dropdown-info,
.live-search-info {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.search-dropdown-title,
.live-search-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111111 !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.search-dropdown-price,
.live-search-price {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #005bff !important;
    margin-top: 2px !important;
}

/* DARK THEME SEARCH DROPDOWN */
html.dark-theme .search-dropdown,
html.dark-theme .live-search-dropdown {
    background: #1c1d24 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6) !important;
}

html.dark-theme .search-dropdown:empty,
html.dark-theme .live-search-dropdown:empty {
    display: none !important;
    border: none !important;
    box-shadow: none !important;
}

html.dark-theme .search-dropdown-item,
html.dark-theme .live-search-item {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    color: #f2f2f7 !important;
}

html.dark-theme .search-dropdown-item:hover,
html.dark-theme .live-search-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

html.dark-theme .search-dropdown-title,
html.dark-theme .live-search-title {
    color: #f2f2f7 !important;
}

html.dark-theme .search-dropdown-price,
html.dark-theme .live-search-price {
    color: #2979ff !important;
}

html.dark-theme .live-search-item[style*="background"],
html.dark-theme .search-dropdown-item[style*="background"] {
    background: #252836 !important;
    color: #2979ff !important;
}

/* ================================================================
   PERMANENT UNIFIED ZERO-JUMP MOBILE BOTTOM NAVIGATION BAR
   ================================================================ */
/* ==========================================================================
   PHYSICAL OPTICAL LIQUID ISLAND & ADAPTIVE LENS DOCK
   ========================================================================== */
@media (max-width: 768px) {
    footer.floating-island.mobile-only,
    footer.mobile-only {
        position: fixed !important;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        left: 10px !important;
        right: 10px !important;
        width: calc(100% - 20px) !important;
        max-width: 520px !important;
        margin: 0 auto !important;
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
        border-radius: 29px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: stretch !important;
        z-index: 10000 !important;
                background: rgba(255, 255, 255, 0.72) !important;
        -webkit-backdrop-filter: blur(48px) saturate(200%) contrast(1.05) brightness(1.02) !important;
        backdrop-filter: blur(48px) saturate(200%) contrast(1.05) brightness(1.02) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 
            0 10px 30px rgba(0, 0, 0, 0.12),
            0 2px 8px rgba(0, 0, 0, 0.04),
            inset 0 1px 1px 0 rgba(255, 255, 255, 0.9),
            inset 0 -1px 1px 0 rgba(0, 0, 0, 0.04) !important;
        transform: translate3d(0, 0, 0) scale(1) !important;
        -webkit-transform: translate3d(0, 0, 0) scale(1) !important;
        transition: none !important;
        contain: layout style !important;
        view-transition-name: main-footer !important;
        overflow: visible !important;
    }

    footer.floating-island.mobile-only.touch-active,
    footer.mobile-only.touch-active {
        transform: translate3d(0, 0, 0) scale(1) !important;
        -webkit-transform: translate3d(0, 0, 0) scale(1) !important;
    }

    html.dark-theme footer.floating-island.mobile-only,
    html.dark-theme footer.mobile-only {
        background: rgba(26, 28, 36, 0.52) !important;
        -webkit-backdrop-filter: blur(60px) saturate(350%) brightness(1.1) contrast(1.08) !important;
        backdrop-filter: blur(60px) saturate(350%) brightness(1.1) contrast(1.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.16) !important;
        box-shadow: 
            0 16px 42px -4px rgba(0, 0, 0, 0.68),
            0 4px 14px rgba(0, 0, 0, 0.32),
            inset 0 1px 1.5px rgba(255, 255, 255, 0.22),
            inset 0 -1px 1px rgba(0, 0, 0, 0.35) !important;
    }

    html.dark-theme footer.floating-island.mobile-only.touch-active,
    html.dark-theme footer.mobile-only.touch-active {
        transform: translate3d(0, 0, 0) scale(1) !important;
        -webkit-transform: translate3d(0, 0, 0) scale(1) !important;
        box-shadow: 
            0 24px 54px -4px rgba(0, 0, 0, 0.82),
            0 8px 24px rgba(0, 0, 0, 0.5),
            inset 0 1px 2px rgba(255, 255, 255, 0.35) !important;
    }

        footer.floating-island.mobile-only .mobile-nav-row,
    footer.mobile-only .mobile-nav-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        scrollbar-width: none !important;
        border: none !important;
        box-sizing: border-box !important;
        position: relative !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        touch-action: none !important;
        -webkit-touch-callout: none !important;
    }

    footer.floating-island.mobile-only .mobile-nav-row::-webkit-scrollbar,
    footer.mobile-only .mobile-nav-row::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    /* -------------------------------------------------------------
       THE LIVING PHYSICAL MENISCUS LENS (STRICTLY A SQUARE WITH ROUNDED CORNERS)
       ------------------------------------------------------------- */
    footer.floating-island.mobile-only .liquid-lens,
    footer.mobile-only .liquid-lens {
        position: absolute !important;
        top: 50% !important;
        left: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 62px !important;
        min-width: 62px !important;
        max-width: 62px !important;
        height: 62px !important;
        min-height: 62px !important;
        max-height: 62px !important;
        border-radius: 18px !important;
        pointer-events: none !important;
        z-index: 1 !important;
        transform-origin: center center !important;
        box-sizing: border-box !important;
        border: none !important;
        will-change: transform !important;
        transition: opacity 0.18s ease !important;
    }

    /* 1. IDLE STATE: Lens completely invisible in idle (no background pill, no border) */
    footer.floating-island.mobile-only .liquid-lens:not(.lens-active),
    footer.mobile-only .liquid-lens:not(.lens-active) {
        opacity: 0 !important;
        visibility: hidden !important;
        display: none !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    html.dark-theme footer.floating-island.mobile-only .liquid-lens:not(.lens-active),
    html.dark-theme footer.mobile-only .liquid-lens:not(.lens-active) {
        opacity: 0 !important;
        visibility: hidden !important;
        display: none !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Idle State: No caustics */
    footer.floating-island.mobile-only .liquid-lens:not(.lens-active)::before,
    footer.mobile-only .liquid-lens:not(.lens-active)::before,
    footer.floating-island.mobile-only .liquid-lens:not(.lens-active)::after,
    footer.mobile-only .liquid-lens:not(.lens-active)::after {
        display: none !important;
        content: none !important;
    }

    /* 2. ACTIVE / DRAG STATE: CLEAN SQUARE WITH ROUNDED CORNERS (OVERHANGS ISLAND EDGES NATURALLY) */
    footer.floating-island.mobile-only .liquid-lens.lens-active,
    footer.mobile-only .liquid-lens.lens-active {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        width: 62px !important;
        min-width: 62px !important;
        max-width: 62px !important;
        height: 62px !important;
        min-height: 62px !important;
        max-height: 62px !important;
        border-radius: 18px !important;
        border: none !important;
        background: rgba(255, 255, 255, 0.42) !important;
        box-shadow: 
            0 8px 24px -2px rgba(0, 0, 0, 0.16),
            0 2px 6px rgba(0, 0, 0, 0.05),
            inset 0 1px 1.5px rgba(255, 255, 255, 0.95),
            inset 0 -1px 1px rgba(0, 0, 0, 0.05) !important;
        -webkit-backdrop-filter: blur(20px) brightness(1.05) contrast(102%) !important;
        backdrop-filter: blur(20px) brightness(1.05) contrast(102%) !important;
        overflow: hidden !important;
    }

    html.dark-theme footer.floating-island.mobile-only .liquid-lens.lens-active,
    html.dark-theme footer.mobile-only .liquid-lens.lens-active {
        background: rgba(255, 255, 255, 0.12) !important;
        border: none !important;
        box-shadow: 
            0 12px 30px -4px rgba(0, 0, 0, 0.7),
            0 4px 12px rgba(0, 0, 0, 0.35),
            inset 0 1px 1.5px rgba(255, 255, 255, 0.3),
            inset 0 -1px 1px rgba(0, 0, 0, 0.4) !important;
        -webkit-backdrop-filter: blur(24px) brightness(1.1) contrast(104%) !important;
        backdrop-filter: blur(24px) brightness(1.1) contrast(104%) !important;
    }

    /* ZERO RAINBOW / ZERO CAUSTICS */
    footer.floating-island.mobile-only .liquid-lens::before,
    footer.floating-island.mobile-only .liquid-lens::after,
    footer.mobile-only .liquid-lens::before,
    footer.mobile-only .liquid-lens::after,
    .liquid-lens::before,
    .liquid-lens::after {
        display: none !important;
        content: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* INDIVIDUAL TABS: RIGID 6-COLUMN STATIONARY GRID, ZERO TEXT SHIFT */
    footer.floating-island.mobile-only .tab > *,
    footer.mobile-only .tab > *,
    .mobile-nav-row .tab > * {
        pointer-events: none !important;
        -webkit-touch-callout: none !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }

    footer.floating-island.mobile-only .tab,
    footer.mobile-only .tab,
    .mobile-only .tab,
    footer .tab,
    .tab {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        flex: 0 0 16.666667% !important;
        width: 16.666667% !important;
        min-width: 16.666667% !important;
        max-width: 16.666667% !important;
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        outline: none !important;
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        filter: none !important;
        -webkit-filter: none !important;
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 2 !important;
        text-decoration: none !important;
        color: #8e8e93 !important;
        -webkit-tap-highlight-color: transparent !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -webkit-touch-callout: none !important;
        touch-action: none !important;
        overflow: visible !important;
        transform: none !important;
        -webkit-transform: none !important;
        transition: color 0.15s ease !important;
    }

    footer.floating-island.mobile-only .tab svg,
    footer.floating-island.mobile-only .tab i,
    footer.mobile-only .tab svg,
    footer.mobile-only .tab i,
    .mobile-only .tab svg,
    .mobile-only .tab i,
    .tab svg,
    .tab i {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        min-height: 22px !important;
        max-width: 22px !important;
        max-height: 22px !important;
        margin: 0 0 2px 0 !important;
        padding: 0 !important;
        display: block !important;
        stroke: #8e8e93 !important;
        color: #8e8e93 !important;
        stroke-width: 1.85px !important;
        border: none !important;
        outline: none !important;
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        transform: none !important;
        -webkit-transform: none !important;
        transition: stroke 0.15s ease, color 0.15s ease !important;
    }

    footer.floating-island.mobile-only .tab span,
    footer.mobile-only .tab span,
    .mobile-only .tab span,
    .tab span {
        display: block !important;
        font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif !important;
        font-size: 9.5px !important;
        line-height: 1.1 !important;
        font-weight: 500 !important;
        color: #8e8e93 !important;
        letter-spacing: -0.2px !important;
        padding: 0 !important;
        margin: 0 !important;
        white-space: nowrap !important;
        text-align: center !important;
        transform: none !important;
        -webkit-transform: none !important;
        transition: color 0.15s ease !important;
    }

    footer.floating-island.mobile-only .tab.active,
    footer.floating-island.mobile-only .tab.active-menu-item,
    footer.mobile-only .tab.active,
    footer.mobile-only .tab.active-menu-item,
    .tab.active,
    .tab.active-menu-item {
        color: #007aff !important;
    }

    footer.floating-island.mobile-only .tab.active svg,
    footer.floating-island.mobile-only .tab.active i,
    footer.floating-island.mobile-only .tab.active-menu-item svg,
    footer.floating-island.mobile-only .tab.active-menu-item i,
    footer.mobile-only .tab.active svg,
    footer.mobile-only .tab.active i,
    .tab.active svg,
    .tab.active i {
        stroke: #007aff !important;
        color: #007aff !important;
        stroke-width: 2.2px !important;
    }

    footer.floating-island.mobile-only .tab.active span,
    footer.floating-island.mobile-only .tab.active-menu-item span,
    footer.mobile-only .tab.active span,
    .tab.active span {
        color: #007aff !important;
        font-weight: 500 !important;
    }

    html.dark-theme footer.floating-island.mobile-only .tab.active,
    html.dark-theme footer.floating-island.mobile-only .tab.active-menu-item,
    html.dark-theme footer.mobile-only .tab.active,
    html.dark-theme footer.mobile-only .tab.active-menu-item,
    html.dark-theme .tab.active {
        color: #0a84ff !important;
    }

    html.dark-theme footer.floating-island.mobile-only .tab.active svg,
    html.dark-theme footer.floating-island.mobile-only .tab.active i,
    html.dark-theme footer.floating-island.mobile-only .tab.active-menu-item svg,
    html.dark-theme footer.floating-island.mobile-only .tab.active-menu-item i,
    html.dark-theme footer.mobile-only .tab.active svg,
    html.dark-theme footer.mobile-only .tab.active i,
    html.dark-theme .tab.active svg {
        stroke: #0a84ff !important;
        color: #0a84ff !important;
        stroke-width: 2.2px !important;
    }

    html.dark-theme footer.floating-island.mobile-only .tab.active span,
    html.dark-theme footer.floating-island.mobile-only .tab.active-menu-item span,
    html.dark-theme footer.mobile-only .tab.active span,
    html.dark-theme .tab.active span {
        color: #0a84ff !important;
        font-weight: 500 !important;
    }

    /* BADGES */
    footer.floating-island.mobile-only .tab .badge,
    footer.mobile-only .tab .badge {
        position: absolute !important;
        top: 2px !important;
        left: calc(50% + 2px) !important;
        right: auto !important;
        min-width: 16px !important;
        height: 16px !important;
        border-radius: 8px !important;
        background: #ff3b30 !important;
        color: #ffffff !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        line-height: 16px !important;
        text-align: center !important;
        padding: 0 4px !important;
        box-sizing: border-box !important;
        box-shadow: 0 2px 5px rgba(255, 59, 48, 0.4) !important;
        pointer-events: none !important;
        z-index: 2 !important;
        display: none;
        will-change: transform !important;
    }
    footer.floating-island.mobile-only .tab .badge:not(:empty):not(:contains("0")) {
        display: block !important;
    }

    footer.floating-island.mobile-only.has-actions,
    footer.mobile-only.has-actions {
        position: fixed !important;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        left: 10px !important;
        right: 10px !important;
        width: calc(100% - 20px) !important;
        max-width: 520px !important;
        margin: 0 auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        padding: 0 !important;
        border-radius: 29px !important;
        gap: 0 !important;
        overflow: visible !important;
        z-index: 10000 !important;
        background: rgba(255, 255, 255, 0.72) !important;
        -webkit-backdrop-filter: blur(48px) saturate(200%) contrast(1.05) brightness(1.02) !important;
        backdrop-filter: blur(48px) saturate(200%) contrast(1.05) brightness(1.02) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 
            0 10px 30px rgba(0, 0, 0, 0.12),
            0 2px 8px rgba(0, 0, 0, 0.04),
            inset 0 1px 1px 0 rgba(255, 255, 255, 0.9),
            inset 0 -1px 1px 0 rgba(0, 0, 0, 0.04) !important;
        transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease !important;
        will-change: height, transform, backdrop-filter;
    }

    html.dark-theme footer.floating-island.mobile-only.has-actions,
    html.dark-theme footer.mobile-only.has-actions {
        background: rgba(26, 28, 36, 0.52) !important;
        -webkit-backdrop-filter: blur(60px) saturate(350%) brightness(1.1) contrast(1.08) !important;
        backdrop-filter: blur(60px) saturate(350%) brightness(1.1) contrast(1.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.16) !important;
        box-shadow: 
            0 16px 42px -4px rgba(0, 0, 0, 0.68),
            0 4px 14px rgba(0, 0, 0, 0.32),
            inset 0 1px 1.5px rgba(255, 255, 255, 0.22),
            inset 0 -1px 1px rgba(0, 0, 0, 0.35) !important;
    }
    footer.floating-island.mobile-only.has-actions .detail-actions-wrapper {
        order: 1 !important;
        padding: 8px 10px 6px 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    footer.floating-island.mobile-only.has-actions .detail-actions-wrapper .detail-add-btn {
        flex: 1 1 auto !important;
        height: 44px !important;
        background: #005bff !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 12px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        cursor: pointer !important;
        box-shadow: 0 4px 12px rgba(0, 91, 255, 0.25) !important;
    }
    footer.floating-island.mobile-only.has-actions .detail-actions-wrapper .qty-controller {
        display: flex !important;
        align-items: center !important;
        background: #f2f2f7 !important;
        border-radius: 12px !important;
        padding: 2px !important;
        height: 44px !important;
        box-sizing: border-box !important;
    }
    html.dark-theme footer.floating-island.mobile-only.has-actions .detail-actions-wrapper .qty-controller {
        background: #232530 !important;
    }
    footer.floating-island.mobile-only.has-actions .detail-actions-wrapper .qty-btn {
        width: 38px !important;
        height: 40px !important;
        border: none !important;
        background: #ffffff !important;
        border-radius: 10px !important;
        font-size: 18px !important;
        font-weight: bold !important;
        color: #111 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
    }
    html.dark-theme footer.floating-island.mobile-only.has-actions .detail-actions-wrapper .qty-btn {
        background: #2c2f3e !important;
        color: #fff !important;
    }
    footer.floating-island.mobile-only.has-actions .detail-actions-wrapper .detail-qty-input {
        width: 32px !important;
        text-align: center !important;
        border: none !important;
        background: transparent !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #111 !important;
    }
    html.dark-theme footer.floating-island.mobile-only.has-actions .detail-actions-wrapper .detail-qty-input {
        color: #fff !important;
    }
    footer.floating-island.mobile-only.has-actions .detail-actions-wrapper .fav-detail-btn {
        flex: 0 0 44px !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f2f2f7 !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        cursor: pointer !important;
    }
    html.dark-theme footer.floating-island.mobile-only.has-actions .detail-actions-wrapper .fav-detail-btn {
        background: #232530 !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
    }
    footer.floating-island.mobile-only.has-actions .detail-actions-wrapper .fav-detail-btn svg,
    footer.floating-island.mobile-only.has-actions .detail-actions-wrapper .fav-detail-btn i {
        width: 20px !important;
        height: 20px !important;
        stroke: #8e8e93 !important;
        color: #8e8e93 !important;
        fill: none !important;
    }
    footer.floating-island.mobile-only.has-actions .detail-actions-wrapper .fav-detail-btn.active svg,
    footer.floating-island.mobile-only.has-actions .detail-actions-wrapper .fav-detail-btn.active i {
        stroke: #ff3b30 !important;
        color: #ff3b30 !important;
        fill: #ff3b30 !important;
    }
    footer.floating-island.mobile-only.has-actions .detail-actions-wrapper .detail-oneclick-btn {
        flex: 0 0 auto !important;
        height: 44px !important;
        padding: 0 14px !important;
        border-radius: 12px !important;
        background: #ff7700 !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        font-size: 13px !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        cursor: pointer !important;
        box-shadow: 0 3px 10px rgba(255, 120, 0, 0.28) !important;
    }
    footer.floating-island.mobile-only.has-actions .detail-actions-wrapper .detail-oneclick-btn svg,
    footer.floating-island.mobile-only.has-actions .detail-actions-wrapper .detail-oneclick-btn i {
        width: 17px !important;
        height: 17px !important;
        stroke: #ffffff !important;
        color: #ffffff !important;
        fill: #ffffff !important;
    }
    footer.floating-island.mobile-only.has-actions .mobile-nav-row {
        order: 2 !important;
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    }
    html.dark-theme footer.floating-island.mobile-only.has-actions .mobile-nav-row {
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
}

@media (min-width: 769px) {
    footer.floating-island,
    footer.floating-island.mobile-only,
    footer.mobile-only,
    .mobile-bottom-nav,
    .bottom-nav {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Guarantee desktop button visibility & flow */
@media (min-width: 769px) {
    #open-catalog-btn,
    .search-form .desktop-catalog-btn,
    .desktop-catalog-btn {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

.breadcrumbs-wrapper .breadcrumbs-container,
.v-page-container .breadcrumbs-container,
.vd-container .breadcrumbs-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 16px !important;
}


/* ================================================================
   AUTHORITATIVE TOP ISLAND & BUTTON COLOR FLOW (ALL PAGES 100% SYNC)
   ================================================================ */
header.floating-island,
header {
    position: fixed !important;
    top: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    margin-top: 0 !important;
    border-top: none !important;
    outline: none !important;
    -webkit-border-vertical-spacing: 0 !important;
}

html, body {
    margin-top: 0 !important;
}

#open-catalog-btn,
.search-form .desktop-catalog-btn,
.desktop-catalog-btn,
.header-container .call-action,
.header-container a.call-action,
header .call-action,
.icon-btn.call-action {
    background-color: #005bff;
    background-image: none !important;
    animation: none !important;
    color: #ffffff !important;
    border: none !important;
    transition: filter 0.15s ease, transform 0.15s ease !important;
}

#open-catalog-btn:hover,
.search-form .desktop-catalog-btn:hover,
.desktop-catalog-btn:hover,
.header-container .call-action:hover,
.header-container a.call-action:hover,
header .call-action:hover,
.icon-btn.call-action:hover {
    filter: brightness(1.12) !important;
}

#open-catalog-btn i,
#open-catalog-btn svg,
.search-form .desktop-catalog-btn i,
.search-form .desktop-catalog-btn svg,
.desktop-catalog-btn i,
.desktop-catalog-btn svg,
.header-container .call-action i,
.header-container .call-action svg,
header .call-action i,
header .call-action svg,
.icon-btn.call-action i,
.icon-btn.call-action svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
}

/* ================================================================
   MASTER 100% MOBILE SYNCHRONIZATION BLOCK (390px - 768px)
   ================================================================ */
@media (max-width: 768px) {
    /* 1. TOP ISLAND (MONOLITHIC HEADER) */
    header.floating-island,
    header {
        position: fixed !important;
        top: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        right: 0 !important;
        height: calc(105px + env(safe-area-inset-top, 0px)) !important;
        padding-top: env(safe-area-inset-top, 0px) !important;
        margin: 0 !important;
        border-top: none !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
        z-index: 9998 !important;
    }
    html.dark-theme header.floating-island,
    html.dark-theme header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
        box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4) !important;
    }

    /* 2. TOP ROW (.header-container) */
    .header-container {
        padding: 0 16px !important;
        gap: 12px !important;
        height: 65px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .logo-link {
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        width: auto !important;
    }

    .logo-img {
        height: 34px !important;
        width: auto !important;
    }

    .search-wrapper {
        flex: 1 1 auto !important;
        margin: 0 !important;
        min-width: 0 !important;
    }

    /* Phone button with synchronized animated flow */
    header .call-action,
    header .icon-btn.call-action,
    .header-container .call-action,
    .header-container a.call-action,
    .icon-btn.call-action {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        border-radius: 50% !important;
        background-color: #005bff;
        background-image: none !important;
        animation: none !important;
        color: #ffffff !important;
        border: none !important;
        box-shadow: 0 2px 8px rgba(0, 91, 255, 0.25) !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        text-decoration: none !important;
    }

    header .call-action i,
    header .call-action svg,
    .icon-btn.call-action i,
    .icon-btn.call-action svg {
        stroke: #ffffff !important;
        color: #ffffff !important;
        width: 18px !important;
        height: 18px !important;
        fill: none !important;
    }

    /* 3. SUBHEADER ROW (.sub-header-row) - EXACT 16px ALIGNMENT */
    .sub-header-row {
        height: 40px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .sub-header-container {
        padding: 0 16px !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .sh-left-group {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 !important;
    }

    .sh-right-group {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
    }

    .sh-link {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        border-radius: 8px !important;
    }

    .sh-link i, .sh-link svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* 4. CONTENT CONTAINERS & CLEARANCE */
    main,
    #articles-container {
        padding-top: calc(118px + env(safe-area-inset-top, 0px)) !important;
        padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
        box-sizing: border-box !important;
    }
    .v-page-container,
    .vd-container,
    .info-page-wrapper {
        padding-top: 0 !important;
        box-sizing: border-box !important;
    }

    /* Reset side padding on outer wrappers so breadcrumbs are aligned to viewport edge (16px) */
    .breadcrumbs-wrapper,
    .v-page-container,
    .vd-container,
    .info-page-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .breadcrumbs-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 5. STATIONARY BREADCRUMBS (STRICTLY x = 16px, y = 118px, ZERO 2-LINE JUMP) */
    .breadcrumbs-container,
    .v-page-container .breadcrumbs-container,
    .vd-container .breadcrumbs-container,
    .breadcrumbs-wrapper .breadcrumbs-container,
    .info-page-wrapper .breadcrumbs-container {
        margin: 0 auto 12px !important;
        padding: 0 16px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        white-space: nowrap !important;
        height: 24px !important;
        min-height: 24px !important;
        max-height: 24px !important;
        gap: 8px !important;
        font-size: 13.5px !important;
        line-height: 24px !important;
        color: #8e8e93 !important;
    }

    .breadcrumbs-container::-webkit-scrollbar,
    .v-page-container .breadcrumbs-container::-webkit-scrollbar,
    .vd-container .breadcrumbs-container::-webkit-scrollbar,
    .breadcrumbs-wrapper .breadcrumbs-container::-webkit-scrollbar,
    .info-page-wrapper .breadcrumbs-container::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .breadcrumbs-container a,
    .breadcrumbs-container .bc-link,
    .breadcrumbs-container span {
        font-size: 13.5px !important;
        line-height: 24px !important;
        height: 24px !important;
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .breadcrumbs-container a,
    .breadcrumbs-container .bc-link {
        font-size: 14px !important;
        color: #8e8e93 !important;
        text-decoration: none !important;
        line-height: 20px !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    .breadcrumbs-container span {
        font-size: 14px !important;
        color: #8e8e93 !important;
        line-height: 20px !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    .breadcrumbs-container span:last-child {
        color: #111111 !important;
        font-weight: 500 !important;
    }

    html.dark-theme .breadcrumbs-container span:last-child {
        color: #ffffff !important;
    }

    /* 6. CONTENT BOXES 16px PADDING / MARGINS BELOW BREADCRUMBS */
    .v-hero-box,
    .v-filter-bar,
    .v-cards-grid,
    .v-faq-card,
    .vd-hero-card,
    .vd-specs-card,
    .vd-hall-card,
    .vd-gallery-section,
    .vd-services-card,
    .vd-rules-card,
    .vd-lead-card,
    .info-card {
        margin-left: 16px !important;
        margin-right: 16px !important;
        box-sizing: border-box !important;
    }

    .container,
    .product-page-wrapper,
    .catalog-page-wrapper,
    .shop-page-wrapper,
    .cart-page-wrapper,
    .fav-page-wrapper,
    .contacts-container,
    .article-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
    }

    /* 7. MOBILE BOTTOM NAVIGATION BAR (LEGACY FALLBACK) */
    .mobile-bottom-nav {
        display: none !important;
    }

/* cleaned bottom:0 override */
}



/* ==========================================================================
   PRODUCT DETAIL & THUMBNAILS - GLOBAL CRITICAL STYLING
   Prevents unconstrained thumbnail blowup during SPA transitions and initial load
   ========================================================================== */
.product-page-wrapper {
    max-width: 1120px !important;
    margin: 15px auto !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
}
.product-detail-card {
    display: flex;
    gap: 40px;
    background: var(--bg-card, #fff);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #f2f2f7;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    box-sizing: border-box;
}
.product-image-column {
    flex: 0 0 45%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product-detail-image {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 20px;
    background: var(--bg-card-img, #f7f8fa);
    flex-shrink: 0;
    cursor: zoom-in;
    position: relative;
}
.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    transition: transform 0.3s ease;
}
.detail-thumbnails {
    display: flex !important;
    gap: 10px !important;
    margin-top: 5px !important;
    margin-bottom: 10px !important;
    overflow-x: auto !important;
    padding-bottom: 5px !important;
    scrollbar-width: none !important;
}
.detail-thumbnails::-webkit-scrollbar {
    display: none !important;
}
.thumb-wrap {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    border: 2px solid transparent !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    box-sizing: border-box !important;
}
.thumb-wrap.active {
    border-color: #005bff !important;
}
.thumb-wrap img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 8px !important;
}

@media (max-width: 768px) {
    .product-detail-card {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 20px 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    .product-image-column {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .product-detail-image {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px !important;
    }
}

/* ==========================================================================
   DESKTOP TOP ISLAND STABILIZATION (ZERO HORIZONTAL JITTER / PIXEL-LOCKED)
   Guarantees 100% identical horizontal coordinates across all routes
   ========================================================================== */
html {
    scrollbar-gutter: stable !important;
    overflow-y: scroll !important;
}

.search-form,
html.light-theme .search-form,
html.dark-theme .search-form {
    gap: 0 !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
}

@media (min-width: 769px) {
    .header-container {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        max-width: 1120px !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }

    .logo-link {
        flex-shrink: 0 !important;
        width: 130px !important;
        z-index: 2 !important;
    }

    .search-wrapper {
        position: absolute !important;
        left: 220px !important;
        width: 334px !important;
        max-width: 334px !important;
        min-width: 334px !important;
        margin: 0 !important;
        z-index: 100 !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .search-form {
        width: 334px !important;
        max-width: 334px !important;
        min-width: 334px !important;
        height: 42px !important;
        gap: 0 !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }

    .search-form input,
    .search-form input[type="text"],
    #live-search {
        width: 216px !important;
        min-width: 216px !important;
        max-width: 216px !important;
        flex: 0 0 216px !important;
        height: 42px !important;
        margin: 0 !important;
        padding-left: 38px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }

    .search-form .desktop-catalog-btn,
    #open-catalog-btn {
        width: 118px !important;
        min-width: 118px !important;
        max-width: 118px !important;
        flex: 0 0 118px !important;
        height: 42px !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }

    .desktop-menu-wrap {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
        z-index: 2 !important;
    }

    .sub-header-container {
        max-width: 1120px !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }

    .breadcrumbs-container {
        max-width: 1120px !important;
        width: 100% !important;
        margin: 15px auto 10px !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }
}

.desktop-tab .badge:empty,
#c-badge-desktop:empty,
#f-badge-desktop:empty,
.desktop-tab .badge[style*="display: none"],
#c-badge-desktop[style*="display: none"],
#f-badge-desktop[style*="display: none"] {
    display: none !important;
}

/* UNIVERSAL BUTTON В 1 КЛИК & PRODUCT IMAGE ZOOM */
.detail-oneclick-btn,
.desktop-actions-wrapper .detail-oneclick-btn,
footer.floating-island.mobile-only.has-actions .detail-actions-wrapper .detail-oneclick-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 46px !important;
    padding: 0 18px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #ff9500 0%, #ff5e3a 100%) !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(255, 120, 0, 0.32) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
.detail-oneclick-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(255, 120, 0, 0.42) !important;
}
.detail-oneclick-btn:active {
    transform: scale(0.97) !important;
}
.detail-oneclick-btn i,
.detail-oneclick-btn svg {
    width: 18px !important;
    height: 18px !important;
    stroke: #ffffff !important;
    color: #ffffff !important;
    fill: #ffffff !important;
    flex-shrink: 0 !important;
}
.detail-oneclick-btn span {
    color: #ffffff !important;
    font-weight: 700 !important;
}
@media (max-width: 768px) {
    footer.floating-island.mobile-only.has-actions .detail-actions-wrapper .detail-oneclick-btn {
        height: 44px !important;
        padding: 0 14px !important;
        font-size: 13.5px !important;
    }
}

/* UNIVERSAL HIGH-PERFORMANCE IMAGE ZOOM OVERLAY */
.zoom-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.88) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    z-index: 9999999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    transition: opacity 0.25s ease !important;
    cursor: zoom-out !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}
.zoom-overlay.show {
    opacity: 1 !important;
}
.zoom-overlay img {
    max-width: 95vw !important;
    max-height: 90vh !important;
    object-fit: contain !important;
    border-radius: 16px !important;
    transform: scale(0.94);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45) !important;
    cursor: zoom-out !important;
}
.zoom-overlay.show img {
    transform: scale(1) !important;
}
.product-detail-image,
#product-detail-image-box,
#main-product-img {
    cursor: zoom-in !important;
}


/* ================================================================
   THREE-ENTITY MOBILE APP SHELL & ROCK-SOLID ISOLATION ARCHITECTURE
   ================================================================ */
#app-top-island,
header.floating-island,
header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9998 !important;
    touch-action: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    transform: none !important;
    -webkit-transform: none !important;
}

#app-top-island input,
#app-top-island button,
#app-top-island a,
header.floating-island input,
header.floating-island button,
header.floating-island a {
    touch-action: manipulation !important;
    -webkit-user-select: auto !important;
    user-select: auto !important;
}

#glassCanvas {
    position: fixed !important;
    touch-action: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    z-index: 999999 !important;
}

main {
    touch-action: pan-y pinch-zoom !important;
    position: relative !important;
    z-index: 10 !important;
}

/* HIGH-RESOLUTION OPTICAL ZOOM INSPECTOR MODAL */
#artspace-zoom-inspector {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 999998 !important;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    opacity: 0;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    touch-action: none !important;
    overflow: hidden !important;
}

#artspace-zoom-inspector.active {
    display: flex !important;
    opacity: 1 !important;
}

#artspace-zoom-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    overflow: hidden;
}

#artspace-zoom-img {
    max-width: 92vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    transform-origin: center center;
    touch-action: none;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

.artspace-zoom-close-btn {
    position: absolute !important;
    top: calc(16px + env(safe-area-inset-top, 0px)) !important;
    right: 16px !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    font-size: 28px !important;
    line-height: 38px !important;
    text-align: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    touch-action: manipulation !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.artspace-zoom-badge {
    position: absolute !important;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(0, 0, 0, 0.65) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    pointer-events: none !important;
    z-index: 10 !important;
}