/* Shared styles for all VIVO USA / PHARMACARE pages */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
}

img { max-width: 100%; }

/* ---------- Header ---------- */
.site-header .nav-link {
    color: #1f2937;
    font-weight: 700;
    white-space: nowrap;
    transition: color .2s;
}

.site-header .nav-link:hover,
.site-header .nav-link.is-active { color: #2563eb; }

.lang-switch a { color: #1f2937; font-weight: 600; transition: color .2s; }
.lang-switch a:hover,
.lang-switch a.is-active { color: #2563eb; }

.mobile-menu { max-height: calc(100vh - 64px); overflow-y: auto; }
.mobile-menu .mobile-link {
    display: block;
    padding: .85rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-weight: 700;
    color: #1f2937;
}
.mobile-menu .mobile-link.is-active { color: #2563eb; }
.mobile-menu .mobile-link:last-child { border-bottom: none; }

/* ---------- Floating call button ---------- */
.floating-call-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 40;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
    transition: transform .3s, opacity .3s, visibility .3s, background-color .3s;
}
.floating-call-button:hover { transform: scale(1.08); }
.floating-call-button i { font-size: 22px; }
.floating-call-button[data-show-after]:not(.visible) { opacity: 0; visibility: hidden; }
@media (max-width: 640px) {
    .floating-call-button { bottom: 16px; right: 16px; width: 52px; height: 52px; }
}

/* ---------- Product cards (home) ---------- */
.product-card { transition: transform .3s, box-shadow .3s; }
@media (hover: hover) {
    .product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 0, 0, .1); }
}
.product-image-primary { max-width: 90%; }

/* ---------- Product pages ---------- */
@media (max-width: 640px) {
    .info-section { padding: 1.25rem !important; margin-bottom: 1.25rem !important; }
    .info-section h2 { font-size: 1.25rem !important; }
    .info-section li.comp-row { font-size: .95rem; }
}

.stress-cost { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.stress-cost-item h3 { overflow-wrap: anywhere; }
@media (max-width: 768px) {
    .stress-cost { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 768px) {
    .benefits-grid { grid-template-columns: 1fr !important; }
}
@media (min-width: 769px) and (max-width: 1023px) {
    .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

.thumb { border-color: #e5e7eb; transition: border-color .2s; }
.thumb:hover, .thumb.active { border-color: #2563eb; }

/* ---------- Media page ---------- */
@media (max-width: 640px) {
    .video-grid { padding: 0 !important; gap: 1.5rem !important; }
}

/* ---------- Lightbox (factory gallery) ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, .88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: .5rem; }
.lightbox button {
    position: absolute;
    color: #fff;
    font-size: 1.75rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .12);
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
body.no-scroll { overflow: hidden; }
