::-webkit-scrollbar { width: 0; background: transparent; }

body {
    background-color: #f3f4f6;
    -webkit-tap-highlight-color: transparent;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    padding-bottom: 80px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cat-color-orange { background-color: #fff7ed; color: #f97316; }
.cat-color-purple { background-color: #faf5ff; color: #a855f7; }
.cat-color-pink { background-color: #fdf2f8; color: #ec4899; }
.cat-color-blue { background-color: #eff6ff; color: #3b82f6; }
.cat-color-gray { background-color: #f9fafb; color: #6b7280; }

.product-img-placeholder {
    background: linear-gradient(145deg, #f0fdfa 0%, #e6fffa 45%, #ccfbf1 100%);
}

.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:active {
    transform: scale(0.985);
}

.product-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #f8fafc 0%, #f0fdfa 100%);
    overflow: hidden;
}

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

.product-card__badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
    background: rgba(13, 148, 136, 0.92);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    backdrop-filter: blur(4px);
}

.product-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #14b8a6;
    font-size: 2rem;
}

.product-card__tap {
    cursor: pointer;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__body {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0.75rem 0.5rem;
}

.product-card__title {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1e293b;
    min-height: 2.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 0.75rem 0.875rem;
}

.product-card__price {
    font-size: 0.9375rem;
    font-weight: 800;
    color: #0d9488;
    letter-spacing: -0.02em;
}

.product-card__add {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: #0f172a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
    flex-shrink: 0;
    transition: background 0.15s ease, transform 0.15s ease;
}

.product-card__add:hover {
    background: #1e293b;
}

.product-card__add:active {
    transform: scale(0.94);
}

.product-card__stepper {
    display: flex;
    align-items: center;
    background: #0f172a;
    color: #fff;
    border-radius: 9999px;
    height: 2.25rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
    flex-shrink: 0;
}

.product-card__stepper.hidden {
    display: none !important;
}

.product-card__stepper button {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.product-card__stepper button:first-child {
    border-radius: 9999px 0 0 9999px;
}

.product-card__stepper button:last-child {
    border-radius: 0 9999px 9999px 0;
}

.product-card__stepper button:active {
    background: rgba(255, 255, 255, 0.12);
}

.product-card__qty {
    min-width: 1.5rem;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 800;
    user-select: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
}

.toast-show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Hero slider */
.hero-slider__viewport {
    overflow: hidden;
    border-radius: 1rem;
}

.hero-slider__track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.hero-slider__slide {
    min-width: 100%;
    border-radius: 1rem;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    min-height: 11rem;
}

.hero-slider__content {
    position: relative;
    z-index: 2;
    width: 62%;
}

.hero-slider__badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #ccfbf1;
    color: #0d9488;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.hero-slider__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #134e4a;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.hero-slider__subtitle {
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.hero-slider__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #0d9488;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.45rem 0.85rem;
    border-radius: 0.75rem;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.25);
}

.hero-slider__image {
    position: absolute;
    right: -2.5rem;
    bottom: -2.5rem;
    width: 12rem;
    height: 12rem;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0.9;
    mix-blend-mode: multiply;
}

.hero-slider__dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.hero-slider__dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 9999px;
    background: #cbd5e1;
    transition: all 0.25s ease;
}

.hero-slider__dot--active {
    width: 1.25rem;
    background: #0d9488;
}

/* Health alert banner (home) */
.health-alert {
    margin-top: 1rem;
}

.health-alert__inner {
    position: relative;
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1rem 1rem 0.875rem;
    background: linear-gradient(135deg, #fff7ed 0%, #fef2f2 100%);
    border: 1px solid #fed7aa;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.08);
}

.health-alert__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.8);
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
}

.health-alert__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: #fff;
    color: #ea580c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.health-alert__body {
    flex: 1;
    padding-right: 1.25rem;
}

.health-alert__title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #9a3412;
    margin-bottom: 0.25rem;
}

.health-alert__msg {
    font-size: 0.75rem;
    font-weight: 600;
    color: #c2410c;
    line-height: 1.4;
}

.health-alert__msg + .health-alert__msg {
    margin-top: 0.15rem;
}

.health-alert__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.health-alert__btn {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.45rem 0.75rem;
    border-radius: 0.5rem;
    transition: opacity 0.15s;
}

.health-alert__btn--secondary {
    background: #fff;
    color: #c2410c;
    border: 1px solid #fdba74;
}

.health-alert__btn--primary {
    background: #ea580c;
    color: #fff;
}

.health-alert__btn:active {
    opacity: 0.85;
}

/* Product detail — floating modal */
.product-sheet-backdrop {
    background: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    transition: background 0.28s ease, backdrop-filter 0.28s ease;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
}

.product-sheet-backdrop.hidden {
    display: none !important;
}

.product-sheet-backdrop:not(.hidden) {
    display: flex;
    pointer-events: auto;
}

.product-sheet-backdrop--open {
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.product-sheet {
    width: 100%;
    max-width: 22rem;
    max-height: min(90vh, 36rem);
    background: #fff;
    border-radius: 1.25rem;
    transform: scale(0.92) translateY(10px);
    opacity: 0;
    transition:
        transform 0.32s cubic-bezier(0.32, 0.72, 0, 1),
        opacity 0.28s ease,
        box-shadow 0.32s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.04),
        0 24px 48px rgba(15, 23, 42, 0.2);
}

.product-sheet--open {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.product-sheet__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 5;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.95);
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.12);
    border: none;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}

.product-sheet__close:active {
    transform: scale(0.94);
}

.product-sheet__scroll {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.product-sheet__media {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(145deg, #f8fafc 0%, #ecfdf5 100%);
}

.product-sheet__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-sheet__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(13, 148, 136, 0.94);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.28rem 0.65rem;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.product-sheet__body {
    padding: 1rem 1.15rem 0.35rem;
}

.product-sheet__cat {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #0f766e;
    background: #f0fdfa;
    padding: 0.22rem 0.55rem;
    border-radius: 0.4rem;
    margin-bottom: 0.45rem;
}

.product-sheet__name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.product-sheet__desc {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.55;
}

.product-sheet__footer {
    padding: 0.75rem 1.15rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-shrink: 0;
}

.product-sheet__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-sheet__price {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0d9488;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.product-sheet__cart-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0d9488;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.4rem;
}

.product-sheet__cart-link:hover {
    background: #f0fdfa;
}

.product-sheet__cta {
    width: 100%;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff;
    font-weight: 700;
    padding: 0.9rem 1rem;
    border-radius: 0.85rem;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
    transition: transform 0.15s, opacity 0.15s;
}

.product-sheet__cta:active:not(:disabled) {
    transform: scale(0.98);
}

.product-sheet__cta:disabled {
    background: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

.product-sheet__cta.hidden {
    display: none !important;
}

.product-sheet__cart-link.hidden {
    display: none !important;
}

.product-sheet__footer .product-card__stepper {
    width: 100%;
    justify-content: center;
    height: 2.75rem;
}

.product-sheet__footer .product-card__stepper button {
    width: 3rem;
    height: 2.75rem;
}

/* Out of stock */
.product-card--out {
    opacity: 0.85;
}

.product-card--out .product-card__media img {
    filter: grayscale(0.4);
}

.product-card__badge--soldout {
    background: #ef4444;
    top: auto;
    bottom: 0.5rem;
    left: 0.5rem;
}

.product-card__soldout-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-sheet__stock-msg {
    text-align: center;
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Home clinic card */
.home-clinic-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    background: linear-gradient(135deg, #f0fdfa, #fff);
    transition: background 0.15s;
}

.home-clinic-card:active {
    background: #f0fdfa;
}

.home-clinic-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: #ccfbf1;
    color: #0d9488;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Clinic page */
.clinic-hero {
    text-align: center;
    padding: 1.5rem 0 1rem;
}

.clinic-hero__icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 0.75rem;
    border-radius: 1rem;
    background: #ccfbf1;
    color: #0d9488;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.clinic-hero__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #134e4a;
}

.clinic-hero__sub {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.clinic-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.clinic-card__label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.clinic-card__text {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.5;
}

.clinic-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0d9488;
}

.clinic-back-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

/* Order confirmation */
.order-confirm {
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

.order-confirm.hidden {
    display: none !important;
}

.order-confirm:not(.hidden) {
    pointer-events: auto;
}

.order-confirm--open {
    opacity: 1;
}

.order-confirm__card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem 1.25rem;
    max-width: 22rem;
    width: 100%;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.25s;
}

.order-confirm--open .order-confirm__card {
    transform: scale(1);
}

.order-confirm__icon {
    font-size: 3rem;
    color: #22c55e;
    margin-bottom: 0.75rem;
}

.order-confirm__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
}

.order-confirm__text {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.order-confirm__btn {
    width: 100%;
    padding: 0.85rem;
    border-radius: 0.85rem;
    background: #0d9488;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.order-confirm__link {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Product carousel (home) */
.product-carousel__viewport {
    overflow: hidden;
    margin: 0 -0.25rem;
}

.product-carousel__track {
    display: flex;
    transition: transform 0.35s ease;
}

.product-carousel__slide {
    flex: 0 0 50%;
    padding: 0 0.25rem;
    box-sizing: border-box;
}

.product-carousel__slide .product-card {
    height: 100%;
}

.product-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.product-carousel__dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 9999px;
    background: #d1d5db;
}

.product-carousel__dot--active {
    background: #0d9488;
    width: 1rem;
}

/* Shop pills */
.shop-pills {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
}

.shop-pill {
    flex-shrink: 0;
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
}

.shop-pill--active {
    background: #0d9488;
    border-color: #0d9488;
    color: #fff;
}

/* Service cards */
.service-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
}

.service-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: #f0fdfa;
    color: #0d9488;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.service-card__wa {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Search inputs (Tienda + Kit) */
.search-input-wrap {
    position: relative;
}

.search-input-wrap__icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.125rem;
    pointer-events: none;
    z-index: 1;
}

.search-input-wrap__field {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    font-size: 0.875rem;
    background: #fff;
    outline: none;
}

.search-input-wrap__field:focus {
    border-color: #14b8a6;
}

