/**
 * Site v3 mobile polish — drawer, heroes, floating widgets, product pages
 */

@media (max-width: 767px) {
  body.hipopo-site-v3 .elementor-location-header,
  body.hipopo-site-v3 .hp-codex-header {
    position: relative;
    top: auto;
    z-index: 1200 !important;
    overflow: visible !important;
  }

  body.hipopo-site-v3:not(.home) .hp-nav {
    position: relative;
    top: auto;
  }

  body.hipopo-site-v3:not(.home) .hp-topbar {
    position: sticky;
    top: 0;
    z-index: 1210 !important;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 161, 216, 0.14);
    box-shadow: 0 4px 16px rgba(0, 72, 135, 0.07);
  }

  body.hipopo-thursday-bar-on.hipopo-site-v3:not(.home) .hp-topbar {
    top: var(--hp-thursday-bar-height, 52px);
  }

  body.hipopo-thursday-live.hipopo-site-v3:not(.home) .hp-topbar {
    background: rgba(11, 21, 38, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }

  body.hipopo-site-v3:not(.home) .hp-topbar__inner {
    min-height: 0;
    height: auto;
    padding: 7px 0 8px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto;
    gap: 6px 10px;
    align-items: center;
  }

  body.hipopo-site-v3:not(.home) .hp-topbar__brand {
    order: 0;
    grid-column: 2;
    justify-self: center;
    transform: none;
  }

  body.hipopo-site-v3:not(.home) .hp-header-left {
    order: 0;
    grid-column: 1;
    justify-self: start;
    width: auto;
  }

  body.hipopo-site-v3:not(.home) .hp-header-right {
    order: 0;
    grid-column: 3;
    justify-self: end;
    width: auto;
  }

  body.hipopo-site-v3:not(.home) .hp-header-left .hp-socials,
  body.hipopo-site-v3:not(.home) .hp-header-right .hp-shipping {
    display: none;
  }

  body.hipopo-site-v3:not(.home) .hp-logo {
    width: 118px;
    max-width: 118px;
    max-height: 54px;
  }

  body.hipopo-site-v3:not(.home) .hp-contact-pill,
  body.hipopo-site-v3:not(.home) .hp-cart-pill {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 12px;
  }

  body.hipopo-site-v3 .elementor-location-header .e-con,
  body.hipopo-site-v3 .hp-topbar,
  body.hipopo-site-v3 .hp-mainbar {
    overflow: visible !important;
  }

  body.hipopo-site-v3 .hp-mobile-drawer__panel {
    width: min(94vw, 400px);
    max-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.hipopo-site-v3 .hp-mobile-drawer__cta {
    display: inline-flex !important;
    width: calc(100% - 32px);
    max-width: 100%;
    margin: 0 16px 8px !important;
    min-height: 42px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    gap: 6px !important;
    box-shadow: 0 8px 18px rgba(0, 139, 220, 0.18) !important;
  }

  body.hipopo-site-v3 .hp-mobile-drawer__cta svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    flex-shrink: 0;
  }

  body.hipopo-site-v3 .hp-mobile-drawer__contact-link {
    margin: 2px 16px 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  body.hipopo-site-v3:not(.home) .hp-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 14px;
    padding-inline: 4px;
  }

  body.hipopo-site-v3:not(.home) .hp-hero-cta {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
  }

  body.hipopo-site-v3:not(.home):not(.hipopo-codex-inner) .hp-hero-stage {
    min-height: clamp(440px, 62vh, 560px) !important;
    background-size: 100% 100%, auto 380px !important;
    background-position: center center, left top !important;
  }

  body.hipopo-site-v3:not(.home):not(.hipopo-codex-inner) .hp-hero-layout {
    width: calc(100% - 24px) !important;
    min-height: clamp(420px, 60vh, 540px) !important;
    padding: clamp(220px, 42vh, 300px) 0 28px !important;
  }

  body.hipopo-codex-inner .hp-sale-hero.hp-hero-stage,
  body.hipopo-codex-inner .hp-brand-hero.hp-hero-stage,
  body.page-slug-sale .hp-hero-stage.hp-sale-hero {
    min-height: clamp(360px, 58vh, 520px) !important;
    height: clamp(360px, 58vh, 520px) !important;
    max-height: none !important;
    background-size: 100% 100%, cover !important;
    background-position: center center, center center !important;
    background-repeat: no-repeat, no-repeat !important;
  }

  body.hipopo-codex-inner .hp-sale-hero .hp-hero-layout,
  body.hipopo-codex-inner .hp-brand-hero .hp-hero-layout,
  body.page-slug-sale .hp-sale-hero .hp-hero-layout {
    min-height: 0 !important;
    height: 100% !important;
    padding: 20px 0 24px !important;
    align-items: center !important;
  }

  body.hipopo-site-v3:not(.home) .hp-hero-copy {
    width: 100%;
    padding: 20px 16px !important;
    border-radius: 18px;
  }

  body.hipopo-site-v3:not(.home) .hp-hero-copy h1 {
    font-size: clamp(26px, 7vw, 34px) !important;
    line-height: 1.12 !important;
  }

  body.hipopo-site-v3:not(.home) .hp-hero-subtitle {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  body.hipopo-site-v3:not(.home) .hp-friday-card {
    min-height: 240px !important;
  }

  body.hipopo-codex-inner .hp-about-hero .hp-hero-layout,
  body.hipopo-codex-inner .hp-brand-hero .hp-hero-layout,
  body.hipopo-codex-inner .hp-sale-hero .hp-hero-layout,
  body.hipopo-codex-inner .hp-contact-hero .hp-hero-layout {
    width: calc(100% - 24px) !important;
    min-height: clamp(380px, 54vh, 480px) !important;
    padding: 28px 0 32px !important;
  }

  body.hipopo-codex-inner .hp-hero-copy {
    width: 100%;
    padding: 20px 16px !important;
    border-radius: 18px;
  }

  body.hipopo-codex-inner .hp-hero-copy h1 {
    font-size: clamp(26px, 7vw, 34px) !important;
    line-height: 1.12 !important;
  }

  body.hipopo-codex-inner .hp-hero-subtitle {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  body.hipopo-thursday-live .hp-friday-wide {
    padding: 18px 14px !important;
    text-align: center;
  }

  body.hipopo-thursday-live .hp-friday-wide h2 {
    font-size: clamp(20px, 5.5vw, 26px) !important;
    line-height: 1.2 !important;
  }

  body.hipopo-thursday-live .hp-countdown {
    gap: 6px !important;
  }

  body.hipopo-thursday-live .hp-countdown span {
    min-height: 52px !important;
    font-size: 18px !important;
  }

  body.hipopo-v3-product-preview .hp-product-trust-wrap,
  body.hipopo-redesign-product .hp-product-trust-wrap {
    overflow: visible;
    padding-bottom: 0;
  }

  body.hipopo-v3-product-preview .hp-product-tabs-wrap,
  body.hipopo-redesign-product .hp-product-tabs-wrap {
    margin-inline: 12px;
    padding-bottom: 72px;
  }

  body.hipopo-v3-product-preview .hp-product-summary-col,
  body.hipopo-redesign-product .hp-product-summary-col {
    padding: 18px 18px 20px !important;
  }

  body.hipopo-v3-product-preview .hp-product-gallery-col,
  body.hipopo-redesign-product .hp-product-gallery-col {
    padding: 14px 14px 10px !important;
  }

  body.hipopo-v3-product-preview .hp-product-summary-col > .elementor-widget-woocommerce-product-title,
  body.hipopo-redesign-product .hp-product-summary-col > .elementor-widget-woocommerce-product-title {
    padding-inline-end: 64px;
    margin-bottom: 4px;
  }

  body.hipopo-v3-product-preview .hp-product-summary-col > .elementor-widget-woocommerce-product-short-description,
  body.hipopo-redesign-product .hp-product-summary-col > .elementor-widget-woocommerce-product-short-description {
    margin-bottom: 14px;
    padding: 14px 16px;
  }

  body.hipopo-v3-product-preview .hp-product-buy-box > .e-con-inner,
  body.hipopo-redesign-product .hp-product-buy-box > .e-con-inner {
    gap: 14px !important;
  }

  body.hipopo-v3-product-preview .hp-product-gift-banner,
  body.hipopo-redesign-product .hp-product-gift-banner {
    margin-top: 4px;
    padding: 12px 14px;
  }

  body.hipopo-v3-product-preview .elementor-widget-woocommerce-product-meta,
  body.hipopo-redesign-product .elementor-widget-woocommerce-product-meta {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed rgba(5, 142, 232, 0.16);
  }

  body.hipopo-site-v3 .hp-mini-trust__grid,
  body.hipopo-site-v3 .hp-big-trust {
    grid-template-columns: 1fr !important;
  }

  body.hipopo-site-v3 .hp-footer__main {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  body.hipopo-site-v3 .hp-footer__bottom {
    padding: 18px 12px 24px;
  }
}
