.sdsh45-row { display: none; }

@media (max-width: 768px) {
  body.sdsh45-enabled #sd-header .sdsh3-row,
  body.sdsh45-enabled #sd-header .sdsh4-row,
  body.sdsh45-enabled #sd-header .sdmh-row,
  body.sdsh45-enabled #sd-header .sdmh-v2-row,
  body.sdsh45-enabled #sd-header .sdmh-mobile-row,
  body.sdsh45-enabled #sd-header .sdmh-v2-mobile-row { display:none !important; }

  body.sdsh45-enabled #sd-header.sdsh45-ready {
    --sdsh45-h: 58px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    filter: none !important;
    background: #0a0a0d !important;
    border-bottom: 1px solid rgba(255,255,255,.10) !important;
  }

  body.sdsh45-enabled #sd-header.sdsh45-ready,
  body.sdsh45-enabled #sd-header.sdsh45-ready * {
    opacity: 1 !important;
  }

  body.sdsh45-enabled #sd-header.sdsh45-ready #sd-header-top {
    display: block !important;
    visibility: visible !important;
    height: var(--sdsh45-h) !important;
    min-height: var(--sdsh45-h) !important;
    background: #0a0a0d !important;
    position: relative !important;
  }

  body.sdsh45-enabled #sd-header.sdsh45-ready #sd-header-top > .header-top-inner {
    display: none !important;
  }

  body.sdsh45-enabled #sd-header.sdsh45-ready .sdsh45-row {
    display: grid !important;
    visibility: visible !important;
    grid-template-columns: 46px minmax(0,1fr) 138px;
    align-items: center;
    width: 100%;
    height: var(--sdsh45-h);
    min-height: var(--sdsh45-h);
    padding: 0 max(8px,env(safe-area-inset-right)) 0 max(8px,env(safe-area-inset-left));
    box-sizing: border-box;
    background: #0a0a0d !important;
    color: #fff !important;
  }

  body.sdsh45-enabled .sdsh45-title {
    min-width: 0;
    padding: 0 5px;
    overflow: hidden;
    color: #fff !important;
    font-family: var(--sd-font-body,'DM Sans',system-ui,sans-serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.15;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    visibility: visible !important;
  }

  body.sdsh45-enabled .sdsh45-actions {
    display: grid !important;
    grid-template-columns: repeat(3,46px);
    align-items: center;
    justify-content: end;
  }

  body.sdsh45-enabled .sdsh45-action {
    position: relative;
    display: inline-flex !important;
    visibility: visible !important;
    align-items: center;
    justify-content: center;
    width: 46px !important;
    min-width: 46px !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  body.sdsh45-enabled .sdsh45-action svg {
    display: block !important;
    visibility: visible !important;
    width: 30px;
    height: 30px;
    fill: none !important;
    stroke: #fff !important;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body.sdsh45-enabled .sdsh45-back svg,
  body.sdsh45-enabled .sdsh45-menu svg { width: 34px; height: 34px; }

  body.sdsh45-enabled .sdsh45-cart-count {
    position: absolute;
    top: 4px;
    right: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 2px solid #0a0a0d;
    border-radius: 999px;
    background: #e63946 !important;
    color: #fff !important;
    font: 700 10px/1 var(--sd-font-body,system-ui,sans-serif);
    box-sizing: border-box;
  }

  body.sdsh45-enabled .sdsh45-cart-count[hidden] { display:none !important; }

  body.sdsh45-enabled #sd-header.sdsh45-ready #header-search.header-search {
    position: absolute !important;
    top: var(--sdsh45-h) !important;
    left: 0;
    right: 0;
    z-index: 5;
  }

  body.sdsh45-enabled.admin-bar #sd-header.is-sticky { top: 46px !important; }
}

@media (max-width: 390px) {
  body.sdsh45-enabled #sd-header.sdsh45-ready .sdsh45-row {
    grid-template-columns: 42px minmax(0,1fr) 126px;
    padding-left: 4px;
    padding-right: 4px;
  }
  body.sdsh45-enabled .sdsh45-actions { grid-template-columns: repeat(3,42px); }
  body.sdsh45-enabled .sdsh45-action { width:42px !important; min-width:42px !important; }
  body.sdsh45-enabled .sdsh45-title { font-size:16px; }
  body.sdsh45-enabled .sdsh45-action svg { width:28px; height:28px; }
  body.sdsh45-enabled .sdsh45-back svg,
  body.sdsh45-enabled .sdsh45-menu svg { width:32px; height:32px; }
}
