*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }

/* ── Swipe track ── */
.swipe-track {
    display: flex;
    /* snaps on mobile; on desktop JS handles the slide */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.swipe-track::-webkit-scrollbar { display: none; }

.swipe-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    transition: opacity 0.4s ease;
}

/* ── Progress bar ── */
.progress-bar {
    height: 3px;
    background: #e7f4dd;
    border-radius: 99px;
    overflow: hidden;
    position: relative;
}
.progress-fill {
    height: 100%;
    background: #123330;
    border-radius: 99px;
    transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* ── Badge ── */
.product-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 99px;
    background: #c9f0a0;
    color: #3c6b2a;
}

/* ── Category pill ── */
.cat-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 99px;
    background: #f4f6f4;
    color: #123330;
    border: 1px solid rgba(18,51,48,0.14);
}

/* ── Nav arrow buttons ── */
.nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(18,33,29,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, transform 0.15s;
    flex-shrink: 0;
}
.nav-btn:hover {
    background: #123330;
    border-color: #123330;
}
.nav-btn:hover svg { stroke: #c9f0a0; }
.nav-btn:active { transform: scale(0.93); }
.nav-btn svg { stroke: #42544e; transition: stroke 0.18s; }

/* ── Dot indicators ── */
.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(18,51,48,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    padding: 0;
}
.dot.active {
    width: 20px;
    border-radius: 3px;
    background: #123330;
}

/* ── Desktop image panel ── */
.img-panel {
    aspect-ratio: 3/4;
    border-radius: 20px;
    overflow: hidden;
    background: #e7f4dd;
    position: relative;
}
.img-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.img-panel:hover img { transform: scale(1.04); }

/* ── Mobile: full-bleed card ── */
.mobile-card-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}

/* ── Fade animation for slide transition ── */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.slide-animate { animation: slideIn 0.38s ease both; }

/* ── Swipe hint (mobile only) ── */
@keyframes swipeHint {
    0%   { transform: translateX(0); opacity: 0.7; }
    50%  { transform: translateX(-10px); opacity: 1; }
    100% { transform: translateX(0); opacity: 0.7; }
}
.swipe-hint { animation: swipeHint 1.6s ease 1.2s 2 both; }