/* Fragrance Notes - auto-scrolling strip shown on product cards */

.fragrance-notes-strip {
    margin-top: 0.5rem;
    /* overflow-x: auto (not hidden) so the strip is manually draggable/
       swipeable - see the drag-to-scroll script in includes/footer.php.
       Scrollbar is hidden since the mask + auto-scroll marquee already
       communicate "there's more here" without needing a visible bar. */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    cursor: grab;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    /* This is the actual scroll container (overflow-x above) - scrollTo()
       calls from includes/footer.php's auto-advance timer land here, so
       the smoothing has to be declared on this element, not the inner
       .fragrance-notes-track (which just holds the flex content). */
    scroll-behavior: smooth;
}

.fragrance-notes-strip::-webkit-scrollbar {
    display: none;
}

.fragrance-notes-strip.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.fragrance-notes-track {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: max-content;
    /* Auto-advance is JS-driven (scrollTo per chip - see includes/footer.php),
       not a CSS animation: a translateX(-50%) + steps(N) marquee was tried
       here previously, but steps() splits TIME into N equal slices while
       chip widths vary with note-name length, so the hold points didn't
       line up with chip boundaries and the strip appeared to only ever
       show the first chip plus the next one truncated. */
}

.note-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem 0.2rem 0.25rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.note-chip img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: white;
}

.note-chip-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

@media (max-width: 640px) {
    .note-chip {
        padding: 0.15rem 0.5rem 0.15rem 0.2rem;
        gap: 0.25rem;
    }

    .note-chip img {
        width: 16px;
        height: 16px;
    }

    .note-chip-name {
        font-size: 0.65rem;
    }
}

/* Product detail page - grouped notes sections */
.fragrance-notes-section {
    margin-top: 1rem;
}

.fragrance-notes-category {
    margin-bottom: 1.5rem;
}

.fragrance-notes-category-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #374151;
    margin-bottom: 0.75rem;
}

.fragrance-notes-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.fragrance-notes-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 76px;
    text-align: center;
}

.fragrance-notes-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    background: white;
    margin-bottom: 0.4rem;
}

.fragrance-notes-item span {
    font-size: 0.75rem;
    color: #4b5563;
    font-weight: 500;
    word-break: break-word;
}
