/* ============================================================
   PETVET — HOMEPAGE MOBILE APP STYLE v11
   Bază vizuală: v8
   Logică pereche: JS v11

   IMPORTANT:
   - Păstrează look-ul v8: hero, greeting, card cont,
     iconițe mari rotunde, newsletter, grid categorii populare.
   - Nu folosește clasele vizuale greșite din varianta anterioară.
   - Desktopul rămâne neatins.
   ============================================================ */

@media (min-width: 768px) {
  .pvhm {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  html.pvhm-ready {
    overflow-x: hidden !important;
  }

  html.pvhm-ready #page_top {
    display: none !important;
  }

  html.pvhm-ready #widget-1000459 {
    display: none !important;
  }

  .pvhm,
  .pvhm * {
    box-sizing: border-box;
  }

  .pvhm {
    display: block;
    width: 100%;
    padding: 0 10px 18px;
    background: #ffffff;
    color: #101f1d;
    font-family: inherit;
    overflow: hidden;
  }

  .pvhm a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(0, 102, 102, 0.08);
  }

  .pvhm__hero {
    position: relative;
    width: 100%;
    margin: 0 0 16px;
    border-radius: 6px;
    overflow: hidden;
    background: #ecf6f2;
    aspect-ratio: var(--pvhm-hero-ratio);
    isolation: isolate;
  }

  .pvhm__track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform 420ms ease;
    will-change: transform;
  }

  .pvhm__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: block;
    background: #ecf6f2;
  }

  .pvhm__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .pvhm__hero-controls {
    position: absolute;
    left: 50%;
    bottom: 10px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: min(68%, 236px);
    transform: translateX(-50%);
    pointer-events: auto;
  }

  .pvhm__hero-toggle {
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.26));
  }

  .pvhm__hero-toggle svg {
    display: block;
    width: 13px;
    height: 13px;
    fill: currentColor;
  }

  .pvhm__hero-toggle .pvhm__icon-play {
    display: none;
  }

  .pvhm__hero.is-paused .pvhm__hero-toggle .pvhm__icon-pause {
    display: none;
  }

  .pvhm__hero.is-paused .pvhm__hero-toggle .pvhm__icon-play {
    display: block;
  }

  .pvhm__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1 1 auto;
    min-width: 0;
    pointer-events: none;
  }

  .pvhm__dot {
    position: relative;
    flex: 1 1 0;
    height: 3px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    overflow: hidden;
    padding: 0;
  }

  .pvhm__dot::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: left center;
  }

  .pvhm__dot.is-active::before {
    animation: pvhm-progress 4s linear forwards;
  }

  .pvhm__hero.is-paused .pvhm__dot.is-active::before {
    animation-play-state: paused;
  }

  @keyframes pvhm-progress {
    from {
      transform: scaleX(0);
    }

    to {
      transform: scaleX(1);
    }
  }

  .pvhm__account {
    width: 100%;
    margin: 0 0 22px;
  }

  .pvhm__greeting {
    margin: 0 0 12px;
    color: #0a0f0e;
    font-size: 21px;
    line-height: 1.15;
    font-weight: 850;
  }

  .pvhm__signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin: 0 0 12px;
    padding: 0 16px;
    border-radius: 10px;
    background: #006666;
    color: #ffffff !important;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 750;
    text-align: center;
  }

  .pvhm__card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 68px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(16, 31, 29, 0.08), 0 1px 2px rgba(16, 31, 29, 0.06);
  }

  .pvhm__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e9f7f3;
    color: #006666;
  }

  .pvhm__card-icon svg {
    width: 24px;
    height: 24px;
    display: block;
  }

  .pvhm__card-text {
    min-width: 0;
  }

  .pvhm__card-text strong {
    display: block;
    margin: 0 0 2px;
    color: #111111;
    font-size: 14.5px;
    line-height: 1.2;
    font-weight: 800;
  }

  .pvhm__card-text span {
    display: block;
    color: #5b6b68;
    font-size: 12.5px;
    line-height: 1.25;
    font-weight: 500;
  }

  .pvhm__card-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #9aa6a3;
  }

  .pvhm__card-chevron svg {
    width: 18px;
    height: 18px;
    display: block;
  }

  .pvhm__title {
    margin: 0 0 14px;
    color: #0a0f0e;
    font-size: 21px;
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: 0;
  }

  .pvhm__audience {
    margin: 0 0 5px;
  }

  .pvhm__audience-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 29%;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 4px 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .pvhm__audience-row::-webkit-scrollbar {
    display: none;
  }

  .pvhm__audience-item {
    display: block;
    text-align: center;
    scroll-snap-align: start;
  }

  .pvhm__audience-media {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    margin: 0 0 8px;
    border-radius: 50%;
    background: #edf3ef;
    overflow: hidden;
  }

  .pvhm__audience-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .pvhm__audience-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #006666;
    background: radial-gradient(circle, #f8fffc 0%, #e5f7f1 100%);
  }

  .pvhm__audience-icon svg {
    width: 48%;
    height: 48%;
  }

  .pvhm__audience-label {
    display: block;
    color: #111111;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 550;
  }

  .pvhm__newsletter {
    display: block;
    width: 100%;
    margin: 0 0 16px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3faf7;
    transform: translateZ(0);
  }

  .pvhm__newsletter img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .pvhm__popular-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 13px;
    margin: 0 0 10px;
  }

  .pvhm__cat {
    display: block;
    min-width: 0;
    text-align: center;
  }

  .pvhm__cat-icon {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    margin: 0 0 9px;
    border-radius: 14px;
    background: #e9f2ff;
    color: #006666;
    overflow: hidden;
  }

  .pvhm__cat-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .pvhm__cat span {
    display: block;
    color: #111111;
    font-size: 13.5px;
    line-height: 1.2;
    font-weight: 550;
  }

  @media (max-width: 380px) {
    .pvhm {
      padding-left: 8px;
      padding-right: 8px;
    }

    .pvhm__greeting {
      font-size: 21px;
    }

    .pvhm__signin-btn {
      font-size: 14px;
      min-height: 46px;
    }

    .pvhm__card {
      grid-template-columns: 40px minmax(0, 1fr) 16px;
      padding: 11px 12px;
    }

    .pvhm__card-icon {
      width: 40px;
      height: 40px;
    }

    .pvhm__card-icon svg {
      width: 22px;
      height: 22px;
    }
  }
}
