/* ═══════════════════════════════════════════════════════════
   Our Products – Archive Page Styles
   Design: Modern Apothecary (Editorial)
   ═══════════════════════════════════════════════════════════ */

/* ── Hero Section ── */
.op-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.op-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.op-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.op-hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
}

/* ── Sticky Filter Bar ── */
.op-filter-bar {
    background: rgba(245, 239, 230, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: box-shadow 0.3s ease;
}

.op-filter-bar.scrolled {
    box-shadow: 0 8px 24px rgba(1, 45, 29, 0.06);
}

/* ── Scrollable Filter Track ── */
.op-filter-track {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 0;
}

/* Gradient fade masks on edges */
.op-filter-track::before,
.op-filter-track::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.op-filter-track::before {
    left: 36px;
    background: linear-gradient(to right, rgba(245, 239, 230, 0.95), transparent);
}

.op-filter-track::after {
    right: 36px;
    background: linear-gradient(to left, rgba(245, 239, 230, 0.95), transparent);
}

.op-filter-track.at-start::before { opacity: 0; }
.op-filter-track.at-end::after { opacity: 0; }

/* The scroll container */
.op-filter-scroll {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 8px;
    flex: 1;
    min-width: 0;
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.op-filter-scroll::-webkit-scrollbar { display: none; }

.op-filter-scroll.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

/* Arrow buttons */
.op-filter-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #012d1d;
    border: 1.5px solid #012d1d;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    z-index: 3;
    transition: all 0.25s ease;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(1, 45, 29, 0.15);
}

.op-filter-arrow:hover {
    background: #a86b24;
    color: #ffffff;
    border-color: #a86b24;
    box-shadow: 0 4px 14px rgba(168, 107, 36, 0.25);
    transform: scale(1.1);
}

.op-filter-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Category Chip */
.op-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 9999px;
    border: 1.5px solid transparent;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    color: #414844;
    border-color: #c1c8c2;
}

.op-chip:hover {
    border-color: #012d1d;
    color: #012d1d;
    transform: translateY(-1px);
}

.op-chip.active {
    background: #012d1d;
    color: #ffffff;
    border-color: #012d1d;
    box-shadow: 0 4px 16px rgba(1, 45, 29, 0.2);
}

.op-chip .op-chip__count {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
}

.op-chip:not(.active) .op-chip__count {
    background: rgba(193, 200, 194, 0.3);
}

/* ── Category Section Headers ── */
.op-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(193, 200, 194, 0.15);
}

.op-section-header__bar {
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #a86b24, #eab33b);
    border-radius: 999px;
    margin-top: 0.5rem;
}

/* ── Product Cards ── */
.op-card {
    position: relative;
    background: transparent;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.op-card:hover {
    transform: translateY(-8px);
}

.op-card__img-wrap {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    aspect-ratio: 1 / 1;
}

.op-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.op-card:hover .op-card__img {
    transform: scale(1.08);
}

/* Quick-action overlay */
.op-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    background: linear-gradient(to top, rgba(1, 45, 29, 0.75) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.op-card:hover .op-card__overlay {
    opacity: 1;
}

.op-card__wa-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: #012d1d;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 13px;
    border-radius: 10px;
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    text-decoration: none;
}

.op-card:hover .op-card__wa-btn {
    transform: translateY(0);
    opacity: 1;
}

.op-card__wa-btn:hover {
    background: #012d1d;
    color: #ffffff;
}

/* Nature badge */
.op-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(245, 239, 230, 0.92);
    backdrop-filter: blur(6px);
    border-radius: 9999px;
    font-family: 'Manrope', sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #012d1d;
}

/* Card info section */
.op-card__info {
    padding: 1rem 0.25rem 0;
    text-align: center;
}

.op-card__cat-label {
    display: inline-block;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #a86b24;
    opacity: 0.8;
}

.op-card__title {
    font-family: 'Newsreader', serif;
    font-size: 1.125rem;
    line-height: 1.3;
    color: #012d1d;
    margin-top: 4px;
    transition: color 0.3s ease;
}

.op-card:hover .op-card__title {
    color: #a86b24;
}

.op-card__title-bar {
    display: block;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #a86b24, #eab33b);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    margin: 6px auto 0;
    border-radius: 2px;
}

.op-card:hover .op-card__title-bar {
    width: 40%;
}

/* ── Placeholder card ── */
.op-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #f5efe6 0%, #eae4dc 100%);
    border-radius: 12px;
}

/* ── Stats Bar ── */
.op-stats-bar {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.op-stats-bar__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: #414844;
}

.op-stats-bar__number {
    font-weight: 800;
    color: #012d1d;
    font-size: 1.5rem;
    line-height: 1;
}

/* ── Category Section Animation ── */
.op-category-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.op-category-section.hidden {
    display: none;
}

/* ── Wholesale CTA ── */
.op-wholesale {
    position: relative;
    overflow: hidden;
}

.op-wholesale__dots {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    pointer-events: none;
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 24px 24px;
}

/* ── Back to top button ── */
.op-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #012d1d;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(1, 45, 29, 0.15);
}

.op-back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.op-back-to-top:hover {
    box-shadow: 0 8px 24px rgba(1, 45, 29, 0.25);
    transform: translateY(-2px);
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .op-hero { min-height: 400px; }
    .op-stats-bar { gap: 1rem; }
    .op-stats-bar__number { font-size: 1.25rem; }
}
