/* ============================================================
   PETVET — HOMEPAGE MOBILE APP STYLE v8
   Structura: 1. Scope  2. Hero carousel  3. Account section
              4. Audience  5. Newsletter banner  6. Popular categories
   v4: cont redesenat in stil Chewy; promo bar verde eliminat.
   v5: hero preia ratio-ul direct din MerchantPro; fara crop;
       banner newsletter intre audience si categorii populare.
   v6: spatii mobile ajustate; newsletter static, fara click;
       greeting aliniat ca dimensiune cu titlurile de sectiune.
   v7: spatiu newsletter redus; greeting dupa ora zilei.
   v8: CSS identic cu v7; pereche pentru JS cu greeting + nume.
   ============================================================ */

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

@media (max-width: 767.98px) {
  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;
  }

  .pvhm a {
    color: inherit;
    text-decoration: none;
  }

  .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__dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: min(58%, 210px);
    transform: translateX(-50%);
    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;
  }

  @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: #111;
    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 4px;
  }

  .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;
  }

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

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

  .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: #111;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 550;
  }

  .pvhm__newsletter {
    display: block;
    width: 100%;
    margin: -6px 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: #111;
    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;
    }
  }
}
