/* Darauche Audio Web móvil — paridad visual/funcional con APK 0.21.14. */
.mobile-home-menu-button,
.mobile-home-drawer,
.mobile-whatsapp-fab,
.mobile-apk-extra-view,
.mobile-product-native-header,
.mobile-product-cart-shortcut {
  display: none;
}

@media (max-width: 760px) {
  /* Navegación inferior 0.21.11: iconos vectoriales de 24dp y badge separado. */
  .mobile-nav-item > span:not(.nav-cart-icon),
  .mobile-nav-item .nav-cart-icon {
    width: 32px;
    height: 28px;
    display: grid;
    place-items: center;
    position: relative;
    margin-inline: auto;
    font-size: 0;
  }

  .mobile-nav-item .apk-nav-svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: currentColor;
  }

  .mobile-nav-item small {
    margin-top: 2px;
    color: inherit;
    font-size: 11px;
  }

  .mobile-nav-item.is-active {
    color: var(--blue);
    font-weight: 800;
    opacity: 1;
  }

  .mobile-nav-item:not(.is-active) {
    color: var(--muted);
    opacity: .92;
  }

  .nav-cart-badge,
  .nav-cart-icon .nav-cart-badge {
    top: 0;
    right: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #dc3044;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
  }

  /* Botón Atrás compartido con UiKit.backButton(). */
  .client-back,
  .mobile-catalog-native-back,
  .apk-web-back-button {
    width: 42px;
    height: 42px;
    min-width: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    padding: 0;
    margin: 0;
    border: 1px solid rgb(55, 74, 102);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    font-size: 0;
    line-height: 1;
    cursor: pointer;
  }

  .client-back { margin-left: 0; }

  .apk-back-svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-catalog-screen-header,
  .client-view-heading {
    gap: 10px;
    align-items: center;
  }

  /* Control de menú tipo mixer, equivalente a MixerMenuIconView. */
  .mobile-home-menu-button {
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    place-items: center;
    cursor: pointer;
  }

  body:not(.mobile-catalog-open):not(.client-panel-open):not(.mobile-extra-view-open) .mobile-home-menu-button {
    display: grid;
  }

  .mobile-mixer-svg {
    width: 44px;
    height: 44px;
  }

  .mobile-mixer-svg line {
    stroke: var(--text);
    stroke-width: 2;
    stroke-linecap: round;
  }

  .mobile-mixer-svg circle { fill: var(--blue); }

  /* Drawer principal 0.21.14. */
  .mobile-home-drawer {
    position: fixed;
    inset: 0;
    z-index: 260;
    pointer-events: none;
  }

  .mobile-home-drawer.is-open {
    display: block;
    pointer-events: auto;
  }

  .mobile-home-drawer-scrim {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, .74);
    opacity: 0;
    transition: opacity 170ms ease;
  }

  .mobile-home-drawer.is-open .mobile-home-drawer-scrim { opacity: 1; }

  .mobile-home-drawer-panel {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(82vw, 360px);
    display: flex;
    flex-direction: column;
    padding: max(22px, env(safe-area-inset-top)) 18px calc(16px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-right: 1px solid var(--line);
    box-shadow: 18px 0 48px rgba(0, 0, 0, .48);
    transform: translateX(-100%);
    transition: transform 220ms ease;
  }

  .mobile-home-drawer.is-open .mobile-home-drawer-panel { transform: translateX(0); }

  .mobile-home-drawer-header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
  }

  .mobile-home-drawer-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
  }

  .mobile-home-drawer-title {
    margin: 0;
    color: var(--text);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.02em;
  }

  .mobile-home-drawer-subtitle {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
  }

  .mobile-home-drawer-close {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 0;
  }

  .mobile-home-drawer-close svg { width: 24px; height: 24px; stroke: currentColor; }

  .mobile-home-drawer-divider {
    height: 1px;
    margin: 14px 0 12px;
    background: var(--surface-alt);
  }

  .mobile-home-drawer-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .mobile-home-drawer-list::-webkit-scrollbar { display: none; }

  .mobile-home-menu-row {
    width: 100%;
    height: 56px;
    display: grid;
    grid-template-columns: 3px 46px minmax(0, 1fr) auto;
    align-items: center;
    padding: 5px 4px 5px 2px;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
  }

  .mobile-home-menu-activebar {
    width: 3px;
    height: 34px;
    background: transparent;
  }

  .mobile-home-menu-row.is-active .mobile-home-menu-activebar { background: var(--blue); }

  .mobile-home-menu-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--muted);
  }

  .mobile-home-menu-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }

  .mobile-home-menu-row.is-active .mobile-home-menu-icon,
  .mobile-home-menu-row.is-active .mobile-home-menu-label { color: var(--blue); }

  .mobile-home-menu-label {
    min-width: 0;
    color: var(--text);
    font-size: 16px;
  }

  .mobile-home-menu-row.is-active .mobile-home-menu-label { font-weight: 800; }

  .mobile-home-menu-tail {
    min-width: 28px;
    color: var(--muted);
    display: grid;
    place-items: center;
  }

  .mobile-home-menu-tail svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-home-menu-count {
    min-width: 30px;
    height: 24px;
    display: grid;
    place-items: center;
    padding: 0 7px;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-home-menu-separator {
    height: 1px;
    margin: 8px 8px 8px 49px;
    background: var(--surface-alt);
  }

  .mobile-home-drawer-footer {
    padding: 10px 0 0 49px;
    color: var(--muted);
    font-size: 11px;
  }

  body.mobile-home-menu-open { overflow: hidden; }

  /* WhatsApp 0.21.13: logotipo verde, sin círculo adicional. */
  .mobile-whatsapp-fab {
    position: fixed;
    right: 18px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    z-index: 44;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    background: transparent;
    filter: drop-shadow(0 7px 14px rgba(0, 0, 0, .26));
    cursor: pointer;
  }

  body:not(.mobile-catalog-open):not(.client-panel-open):not(.mobile-extra-view-open) .mobile-whatsapp-fab {
    display: block;
  }

  .mobile-whatsapp-fab svg { width: 60px; height: 60px; display: block; }

  /* Pantallas auxiliares del drawer. */
  .mobile-apk-extra-view {
    position: fixed;
    inset: 0;
    z-index: 230;
    overflow-y: auto;
    padding: max(18px, env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom));
    background: var(--bg);
    color: var(--text);
  }

  .mobile-apk-extra-view.is-open { display: block; }
  body.mobile-extra-view-open { overflow: hidden; }

  .mobile-extra-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
  }

  .mobile-extra-header h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
  }

  .mobile-extra-header p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
  }

  .mobile-extra-intro,
  .mobile-contact-row,
  .mobile-extra-card {
    border: 1px solid var(--surface-alt);
    border-radius: 18px;
    background: var(--surface);
  }

  .mobile-extra-intro {
    padding: 20px 18px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 18px;
  }

  .mobile-contact-list { display: grid; gap: 10px; }

  .mobile-contact-row {
    width: 100%;
    min-height: 76px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 14px;
    padding: 14px 12px 14px 14px;
    color: var(--text);
    text-decoration: none;
  }

  .mobile-contact-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--blue-soft);
    border-radius: 14px;
    background: var(--surface-alt);
    color: var(--blue);
  }

  .mobile-contact-icon svg { width: 26px; height: 26px; fill: currentColor; }
  .mobile-contact-icon.whatsapp svg { fill: #25d366; }

  .mobile-contact-label {
    display: block;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-contact-detail {
    display: block;
    margin-top: 3px;
    color: var(--text);
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .mobile-contact-arrow {
    color: var(--muted);
    display: grid;
    place-items: center;
  }

  .mobile-contact-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-extra-card {
    padding: 16px;
    margin-bottom: 10px;
  }

  .mobile-extra-card h2,
  .mobile-extra-card h3 { margin: 0 0 7px; }
  .mobile-extra-card p { margin: 5px 0; color: var(--muted); line-height: 1.5; }
  .mobile-extra-card strong { color: var(--text); }

  .mobile-extra-primary {
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    border: 1px solid var(--blue);
    border-radius: 13px;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
  }

  /* Ficha: encabezado y carrito flotante movible 0.21.10/0.21.14. */
  .product-dialog[open] {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: var(--bg);
  }

  .product-dialog .dialog-shell {
    min-height: 100%;
    padding: 14px 18px 28px;
    background: var(--bg);
  }

  .product-dialog .dialog-close { display: none; }

  .mobile-product-native-header {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  .mobile-product-native-header h2 {
    margin: 0;
    font-size: 17px;
    letter-spacing: 0;
  }

  .mobile-product-share {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #fff;
  }

  .mobile-product-share svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
  }

  .mobile-product-cart-shortcut {
    position: fixed;
    z-index: 285;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 30px;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .34);
    touch-action: none;
    user-select: none;
  }

  .mobile-product-cart-shortcut > svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
    pointer-events: none;
  }

  .mobile-product-cart-count {
    position: absolute;
    top: 1px;
    right: 1px;
    min-width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 11px;
    background: #dc3044;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    pointer-events: none;
  }

  .mobile-product-cart-count:empty { display: none; }

  .apk-parity-product-detail {
    display: block;
  }

  .apk-parity-product-detail .detail-image {
    width: 100%;
    margin-bottom: 20px;
  }
}
