/* ============================================================
   an_parachronohero v1.1 — 3 styles + full width
   Prefix: anph__    Accent: #0891B2
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Outfit:wght@600;800;900&display=swap');

/* ── FULL WIDTH BREAKOUT ── */
.anph {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 0;
}

/* ── SLIDE BASE ── */
.anph__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 520px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}
.anph__slide--active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* ── DECO ── */
.anph__deco {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.anph__circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    opacity: 0.06;
}
.anph__circle--1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -100px;
    animation: anphFloat 20s ease-in-out infinite;
}
.anph__circle--2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: 30%;
    animation: anphFloat 15s ease-in-out infinite reverse;
}
.anph__dots {
    position: absolute;
    top: 40px;
    left: 45%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(8,145,178,0.1) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.5;
}
@keyframes anphFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(20px,-20px) scale(1.03); }
    66% { transform: translate(-10px,15px) scale(0.97); }
}

/* ── LAYOUT ── */
.anph__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    gap: 40px;
    min-height: 520px;
}
.anph__text {
    flex: 0 0 400px;
    max-width: 440px;
}

/* ── BADGE ── */
.anph__badge {
    display: inline-block;
    padding: 6px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #fff;
    border-radius: 30px;
    margin-bottom: 20px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(8,145,178,0.3);
}
.anph__slide--active .anph__badge { animation: anphSlideUp 0.6s ease both; }

/* ── TITLE ── */
.anph__title {
    font-family: 'Outfit', sans-serif;
    font-size: 44px;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 16px;
    letter-spacing: -1px;
}
.anph__slide--active .anph__title { animation: anphSlideUp 0.6s ease 0.1s both; }

/* ── SUBTITLE ── */
.anph__subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    margin: 0 0 28px;
}
.anph__slide--active .anph__subtitle { animation: anphSlideUp 0.6s ease 0.2s both; }

/* ── CTA ── */
.anph__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.35s ease;
    box-shadow: 0 6px 24px rgba(8,145,178,0.3);
    letter-spacing: 0.3px;
}
.anph__slide--active .anph__cta { animation: anphSlideUp 0.6s ease 0.3s both; }
.anph__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(8,145,178,0.4);
    filter: brightness(1.12);
    text-decoration: none;
    color: #fff;
}
.anph__cta:hover svg { transform: translateX(4px); }
.anph__cta svg { transition: transform 0.3s ease; }

/* ── TRUST ── */
.anph__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}
.anph__slide--active .anph__trust { animation: anphSlideUp 0.6s ease 0.4s both; }
.anph__trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
}

/* ── PRODUCTS ── */
.anph__products {
    flex: 1;
    min-width: 0;
    position: relative;
}
.anph__products-scroll {
    display: flex;
    gap: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 16px;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.anph__products-scroll::after {
    content: '';
    flex-shrink: 0;
    width: 20px;
}
.anph__products-scroll::-webkit-scrollbar { display: none; }

/* ── PRODUCT ARROWS (hidden desktop, shown mobile) ── */
.anph__products-arrow {
    display: none;
}


/* ── CARDS ── */
.anph__card {
    flex: 0 0 195px;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s ease;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
}
.anph__slide--active .anph__card { animation: anphCardReveal 0.5s ease both; }

.anph__card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 3px 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #E53E3E;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.anph__card-img {
    display: block;
    aspect-ratio: 1;
    background: #fff;
    border-radius: 12px;
    margin: 8px;
    overflow: hidden;
}
.anph__card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.4s ease;
}
.anph__card:hover .anph__card-img img { transform: scale(1.08); }

.anph__card-body {
    padding: 8px 12px 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.anph__card-brand {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 3px;
}
.anph__card-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 35px;
}
.anph__card-name:hover { text-decoration: none; }

.anph__card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 8px;
}
.anph__card-prices { display: flex; flex-direction: column; }
.anph__card-price {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}
.anph__card-old {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    text-decoration: line-through;
    margin-top: 2px;
}

/* ── CART BTN ── */
.anph__cart-form { margin: 0; }
.anph__cart-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: #0891B2;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(8,145,178,0.25);
    flex-shrink: 0;
}
.anph__cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(8,145,178,0.35);
    filter: brightness(1.15);
}
.anph__cart-btn:active { transform: scale(0.95); }
.anph__cart-btn--added { background: #38a169 !important; }

/* ── NAV DOTS ── */
.anph__nav {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}
.anph__dot {
    width: 28px;
    height: 4px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    padding: 0;
    transition: all 0.4s ease;
}
.anph__dot--active { width: 48px; }

/* ============================================================
   STYLE: LIGHT (default — parapharmacie)
   ============================================================ */
.anph__slide--light {
    background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 60%, #E2E8F0 100%);
}
.anph__slide--light .anph__dots {
    background-image: radial-gradient(circle, rgba(8,145,178,0.08) 1px, transparent 1px);
}
.anph__slide--light .anph__title {
    color: #1A202C;
}
.anph__slide--light .anph__subtitle {
    color: #4A5568;
}
.anph__slide--light .anph__trust-item {
    color: #718096;
}
.anph__slide--light .anph__trust-item svg {
    color: #0891B2;
    opacity: 0.7;
}

/* Light cards */
.anph__slide--light .anph__card {
    background: #fff;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.anph__slide--light .anph__card:hover {
    border-color: #0891B2;
    box-shadow: 0 8px 32px rgba(8,145,178,0.12);
    transform: translateY(-6px);
}
.anph__slide--light .anph__card-brand {
    color: #0891B2;
}
.anph__slide--light .anph__card-name {
    color: #1A202C;
}
.anph__slide--light .anph__card-name:hover {
    color: #0891B2;
}
.anph__slide--light .anph__card-price {
    color: #0891B2;
}
.anph__slide--light .anph__card-old {
    color: #A0AEC0;
}

/* Light nav */
.anph__slide--light ~ .anph__nav .anph__dot {
    background: rgba(0,0,0,0.15);
}
.anph__slide--light ~ .anph__nav .anph__dot--active {
    background: #0891B2;
}
.anph__slide--light ~ .anph__nav .anph__dot:hover {
    background: rgba(0,0,0,0.3);
}

/* ============================================================
   STYLE: DARK (marine)
   ============================================================ */
.anph__slide--dark .anph__dots {
    background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
}
.anph__slide--dark .anph__title {
    color: #fff;
}
.anph__slide--dark .anph__subtitle {
    color: rgba(255,255,255,0.78);
}
.anph__slide--dark .anph__trust-item {
    color: rgba(255,255,255,0.65);
}
.anph__slide--dark .anph__trust-item svg {
    color: #fff;
    opacity: 0.6;
}

/* Dark cards — glassmorphism */
.anph__slide--dark .anph__card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
}
.anph__slide--dark .anph__card:hover {
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,255,255,0.22);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}
.anph__slide--dark .anph__card-brand {
    color: rgba(255,255,255,0.5);
}
.anph__slide--dark .anph__card-name {
    color: rgba(255,255,255,0.9);
}
.anph__slide--dark .anph__card-name:hover {
    color: #fff;
}
.anph__slide--dark .anph__card-price {
    color: #fff;
}
.anph__slide--dark .anph__card-old {
    color: rgba(255,255,255,0.45);
}

/* Dark nav */
.anph__slide--dark ~ .anph__nav .anph__dot {
    background: rgba(255,255,255,0.25);
}
.anph__slide--dark ~ .anph__nav .anph__dot--active {
    background: #fff;
}
.anph__slide--dark ~ .anph__nav .anph__dot:hover {
    background: rgba(255,255,255,0.6);
}

/* ============================================================
   STYLE: GRADIENT (cyan)
   ============================================================ */
.anph__slide--gradient .anph__dots {
    background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
}
.anph__slide--gradient .anph__title {
    color: #fff;
}
.anph__slide--gradient .anph__subtitle {
    color: rgba(255,255,255,0.85);
}
.anph__slide--gradient .anph__trust-item {
    color: rgba(255,255,255,0.7);
}
.anph__slide--gradient .anph__trust-item svg {
    color: #fff;
    opacity: 0.7;
}
.anph__slide--gradient .anph__cta {
    background: #0A192F !important;
}
.anph__slide--gradient .anph__cta:hover {
    background: #1A202C !important;
}

/* Gradient cards */
.anph__slide--gradient .anph__card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.2);
}
.anph__slide--gradient .anph__card:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}
.anph__slide--gradient .anph__card-brand {
    color: rgba(255,255,255,0.55);
}
.anph__slide--gradient .anph__card-name {
    color: rgba(255,255,255,0.95);
}
.anph__slide--gradient .anph__card-name:hover {
    color: #fff;
}
.anph__slide--gradient .anph__card-price {
    color: #fff;
}
.anph__slide--gradient .anph__card-old {
    color: rgba(255,255,255,0.5);
}

/* Gradient nav */
.anph__slide--gradient ~ .anph__nav .anph__dot {
    background: rgba(255,255,255,0.3);
}
.anph__slide--gradient ~ .anph__nav .anph__dot--active {
    background: #fff;
}

/* ── ANIMATIONS ── */
@keyframes anphSlideUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes anphCardReveal {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    .anph__inner {
        flex-direction: column;
        padding: 40px 24px;
        gap: 24px;
        min-height: auto;
    }
    .anph__slide { min-height: auto; }
    .anph__text {
        flex: none;
        max-width: 100%;
        text-align: center;
    }
    .anph__title { font-size: 32px; }
    .anph__trust { justify-content: center; }
    .anph__products { width: 100%; }
}
@media (max-width: 600px) {
    .anph__inner { padding: 32px 16px 48px; }
    .anph__title { font-size: 26px; }
    .anph__subtitle { font-size: 14px; }
    .anph__card {
        flex: 0 0 calc(50% - 8px);
        min-width: 0;
    }
    .anph__products-scroll {
        overflow: hidden;
        gap: 12px;
        padding: 8px 0 16px;
    }
    .anph__products-scroll::after {
        display: none;
    }
    .anph__card-price { font-size: 16px; }
    .anph__cart-btn { width: 36px; height: 36px; border-radius: 10px; }
    .anph__trust { flex-direction: column; gap: 8px; align-items: center; }
    .anph__cta { padding: 12px 24px; font-size: 14px; }
    .anph__dots { display: none; }

    /* Product arrows — visible on mobile */
    .anph__products-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: #1A202C;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
        transition: all 0.2s;
        padding: 0;
    }
    .anph__products-arrow:active {
        transform: translateY(-50%) scale(0.92);
    }
    .anph__products-arrow--left {
        left: -6px;
    }
    .anph__products-arrow--right {
        right: -6px;
    }
    .anph__products-arrow[disabled] {
        opacity: 0.3;
        pointer-events: none;
    }
    /* Light slide arrows */
    .anph__slide--light .anph__products-arrow {
        background: rgba(255, 255, 255, 0.95);
        border-color: #E2E8F0;
        color: #1A202C;
    }
}
