/*
 * Ketabika: mobile footer trailing-space correction.
 * Avoid viewport-height flex sizing on body/main; keep one natural document
 * scroll area so the footer remains the actual end of page content.
 */
@media (max-width: 700px) {
  html {
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
    overflow-y: auto !important;
    background: #f6f7fb !important;
  }
  html body {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    background: #f6f7fb !important;
  }
  html body > header.site-header {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }
  html body > main {
    display: block !important;
    position: relative !important;
    flex: initial !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
  }
  html body > footer.footer {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    float: none !important;
    clear: both !important;
    flex: initial !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)) !important;
    background: linear-gradient(115deg,#3036ac,#4946d5) !important;
  }
  html body > footer.footer::before,
  html body > footer.footer::after { content: none !important; display: none !important; }
  html body > #scroll-progress,
  html body > #back-to-top,
  html body > .cart-drawer-overlay,
  html body > .cart-drawer { position: fixed !important; }
}
