/* ── Category product slider container ── */
.cp-swiper {
    flex: 1;
    overflow: hidden;
}

.cp-swiper .swiper-slide {
    width: 55%;
    min-width: 200px;
    max-width: 320px;
}
@media (min-width: 576px) {
    .cp-swiper .swiper-slide {
        width: 50%;
        min-width: 200px;
        max-width: 320px;
    }
}
@media (min-width: 768px) {
    .cp-swiper .swiper-slide {
        width: 33.333%;
        min-width: 200px;
        max-width: 320px;
    }
}
@media (min-width: 992px) {
    .cp-swiper .swiper-slide {
        width: 16.667%;
        min-width: 200px;
        max-width: 320px;
    }
}

/* ── Section ── */
.fp-section {
    background: var(--site-section-bg, #f9f9f9);
}

/* ── Header ── */
.fp-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fp-section__title {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--site-text, #1a1a1a);
    display: inline-block;
    padding-bottom: 7px;
    border-bottom: 3px solid var(--site-primary, #1a1a2e);
    margin-bottom: 0;
}

/* ── Swiper wrapper ── */
.fp-swiper-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fp-swiper {
    flex: 1;
    overflow: hidden;
}

/* ── Nav arrows ── */
.fp-nav {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--site-primary, #1a1a2e);
    background: #fff;
    color: var(--site-primary, #1a1a2e);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s;
}

.fp-nav:hover {
    background: var(--site-primary, #1a1a2e);
    color: #fff;
}

/* ── Card ── */
.fp-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid #e8e8e8;
    transition:
        box-shadow 0.25s,
        transform 0.25s,
        border-color 0.25s;
    display: flex;
    flex-direction: column;
}

.fp-card:hover {
    box-shadow: 0 8px 28px rgba(34, 66, 41, 0.13);
    transform: translateY(-3px);
    border-color: var(--site-primary, #1a1a2e);
}

/* ── Image wrap ── */
.fp-card__img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    max-height: 240px;
}

.fp-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

.fp-card:hover .fp-card__img {
    transform: scale(1.06);
}

/* ── Badges ── */
.fp-badge {
    position: absolute;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    color: #fff;
}

.fp-badge--sale {
    top: 10px;
    background: var(--site-primary, #1a1a2e);
}

[dir="ltr"] .fp-badge--sale {
    left: 10px;
}
[dir="rtl"] .fp-badge--sale {
    right: 10px;
}

.fp-badge--oos {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--site-primary, #1a1a2e);
    white-space: nowrap;
    font-size: 0.7rem;
    padding: 4px 12px;
}

/* ── Body ── */
.fp-card__body {
    padding: 12px 14px 4px;
}

.fp-card__name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--site-text, #1a1a1a);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2px;
    line-height: 1.35;
}

.fp-card__name:hover {
    color: var(--site-primary, #1a1a2e);
    text-decoration: none;
}

.fp-card__brand {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 6px;
}

.fp-card__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.fp-card__price--old {
    font-size: 0.75rem;
    color: #bbb;
    text-decoration: line-through;
}

.fp-card__price--current {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--site-text, #1a1a1a);
}

/* ── Cart actions ── */
.fp-card__actions {
    padding: 10px 0;
}

.fp-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition:
        background 0.2s,
        color 0.2s;
}

.fp-card__btn--outline {
    background: transparent;
    color: var(--site-primary, #1a1a2e);
    border: 2px solid var(--site-primary, #1a1a2e);
}

.fp-card__btn--outline:hover {
    background: var(--site-primary, #1a1a2e);
    color: #fff;
    text-decoration: none;
}

.fp-card__btn--wa-outline {
    background: transparent;
    color: #25d366;
    border: 2px solid #25d366;
}

.fp-card__btn--wa-outline:hover {
    background: #25d366;
    color: #fff;
    text-decoration: none;
}

/* ── All products link ── */
.fp-all-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--site-primary, #1a1a2e);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.25s ease;
}

.fp-all-btn:hover {
    color: var(--site-primary, #1a1a2e);
    text-decoration: none;
    border-color: var(--site-primary, #1a1a2e);
}

/* ── RTL nav arrows ── */
[dir="rtl"] .fp-nav--prev i {
    transform: rotate(180deg);
}
[dir="rtl"] .fp-nav--next i {
    transform: rotate(180deg);
}
