/* =========================================================
   BACK MARKET-STYLE PRODUCT SLIDER + CARD (premium ecommerce)
   Scoped to .bm-section (section wrapper) and .bm-pcard (card)
   ========================================================= */

/* ---------- Section wrapper ---------- */
.bm-section {
    margin: 56px 0;
}
.bm-section .bm-section-inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ---------- Section header (title left, circle nav right) ---------- */
.bm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: nowrap;
}
.bm-section-title {
    font-size: 38px;
    font-weight: 700;
    color: #111;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.5px;
    flex: 1 1 auto;
    min-width: 0;
}
.bm-section-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}
.bm-section-link {
    color: #1f2025;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 0 14px 0 4px;
    border-right: 1px solid #e4e4ea;
    line-height: 1;
    align-self: center;
    transition: opacity 0.18s ease;
}
.bm-section-link:hover {
    color: #1f2025;
    opacity: 0.65;
    text-decoration: none;
}
.bm-section-nav .bm-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #f1f1f4;
    color: #6b6e78;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
    padding: 0;
    line-height: 1;
}
.bm-section-nav .bm-nav-btn:hover {
    background: #1f2025;
    color: #fff;
}
.bm-section-nav .bm-nav-btn.is-active,
.bm-section-nav .bm-nav-btn:active {
    background: #1f2025;
    color: #fff;
}
.bm-section-nav .bm-nav-btn.is-disabled {
    background: #f1f1f4;
    color: #c5c7cf;
    cursor: not-allowed;
    pointer-events: none;
}
.bm-section-nav .bm-nav-btn i {
    line-height: 1;
}

/* ---------- Slider track (slick / aiz-carousel) ---------- */
.bm-section .aiz-carousel {
    margin: 0 -10px;
}
.bm-section .aiz-carousel .slick-slide {
    padding: 0 10px;
    height: auto;
}
.bm-section .aiz-carousel .slick-track {
    display: flex !important;
    align-items: stretch;
}
.bm-section .aiz-carousel .slick-slide > div {
    height: 100%;
}
.bm-section .aiz-carousel .slick-list {
    overflow: hidden;
    padding: 6px 0 14px;
}
/* hide default slick arrows — we use our own .bm-nav-btn */
.bm-section .aiz-carousel .slick-arrow,
.bm-section .aiz-carousel .slick-prev,
.bm-section .aiz-carousel .slick-next {
    display: none !important;
}

/* ---------- Card container ---------- */
.bm-section .bm-pcard,
.bm-pcard {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 22px;
    border: 1px solid #ececf0;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.bm-pcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px -18px rgba(17, 17, 17, 0.18), 0 2px 8px rgba(17, 17, 17, 0.05);
    border-color: #e4e4ea;
}

/* ---------- Card image ---------- */
.bm-pcard-media {
    position: relative;
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7fa;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0;
    flex: 0 0 auto;
}
.bm-pcard-imglink {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}
.bm-pcard-img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.45s ease;
}
.bm-pcard-img-main {
    opacity: 1;
}
.bm-pcard:hover .bm-pcard-img-main {
    opacity: 0;
    transform: scale(1.05);
}
.bm-pcard-img-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.bm-pcard:hover .bm-pcard-img-hover {
    opacity: 1;
}

/* Stretched-link overlay: makes the entire card clickable. Buttons sit on a higher z-index so they remain independently clickable. */
.bm-pcard-stretched-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: transparent;
    text-indent: -9999px;
    overflow: hidden;
}

/* ---------- Badges (top-left pill) ---------- */
.bm-pcard-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}
.bm-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2px;
    color: #fff;
    background: #1f2025;
    text-transform: uppercase;
    white-space: nowrap;
}
.bm-badge-discount {
    background: #d8ef63;
    color: #1f2025;
}
.bm-badge-wholesale,
.bm-badge-buybox {
    background: #1f2025;
    color: #fff;
}

/* ---------- Floating action icons (wishlist/compare) ---------- */
.bm-pcard-icons {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.2s ease, transform 0.25s ease;
}
.bm-pcard:hover .bm-pcard-icons {
    opacity: 1;
    transform: translateX(0);
}
.bm-pcard-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #1f2025;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(17, 17, 17, 0.08);
    transition: background 0.18s ease, color 0.18s ease;
    padding: 0;
}
.bm-pcard-icon:hover {
    background: #1f2025;
    color: #fff;
}

/* ---------- Quick add-to-cart CTA ---------- */
.bm-pcard-cta {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    background: #1f2025;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.25s ease, background 0.18s ease;
    z-index: 2;
}
.bm-pcard-cta:hover {
    background: #000;
}
.bm-pcard:hover .bm-pcard-cta {
    opacity: 1;
    transform: translateY(0);
}
.bm-pcard-cta i { font-size: 14px; }

/* ---------- Card body ---------- */
.bm-pcard-body {
    display: flex;
    flex-direction: column;
    padding: 18px 4px 4px;
    flex: 1 1 auto;
    min-height: 0;
    /* Body sits visually on top of the stretched link, but pointer events fall through to the link */
    position: relative;
    z-index: 1;
    pointer-events: none;
}
/* Re-enable pointer events for interactive children (title link), so they continue to work too */
.bm-pcard-body a {
    pointer-events: auto;
}
.bm-pcard-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    line-height: 1.25;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.5em;
}
.bm-pcard-title a {
    color: inherit;
    text-decoration: none;
}
.bm-pcard-title a:hover {
    color: #000;
    text-decoration: none;
}
.bm-pcard-subtitle {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    line-height: 1.3;
    margin: 0 0 12px;
    min-height: 1.3em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.bm-pcard-subtitle.is-empty { visibility: hidden; }

/* ---------- Rating ---------- */
.bm-pcard-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 13px;
    color: #1f2025;
    font-weight: 600;
    min-height: 1.3em;
}
.bm-pcard-rating .bm-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    color: #1f2025;
}
.bm-pcard-rating .bm-stars i {
    font-size: 13px;
    line-height: 1;
}
.bm-pcard-rating .bm-stars i.la-star.active,
.bm-pcard-rating .bm-stars i.la-star.half { color: #1f2025; }
.bm-pcard-rating .bm-stars i.la-star { color: #c8c8d0; }
.bm-pcard-rating .bm-rating-count {
    color: #666;
    font-weight: 500;
}
.bm-pcard-rating.is-empty { visibility: hidden; min-height: 1.3em; }

/* ---------- Pricing ---------- */
.bm-pcard-pricing {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.bm-pcard-price {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    line-height: 1.05;
    letter-spacing: -0.5px;
}
.bm-pcard-price-old {
    font-size: 14px;
    color: #888;
    font-weight: 500;
    text-decoration: none;
}
.bm-pcard-price-old > .bm-pcard-price-num {
    text-decoration: line-through;
}

/* ---------- Trust indicators row inside card ---------- */
.bm-pcard-body .product-trust-indicators,
.bm-pcard-body .trust-indicators {
    margin-top: 6px;
    margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .bm-section { margin: 44px 0; }
    .bm-section-title { font-size: 30px; }
    .bm-pcard-media { height: 200px; }
    .bm-pcard-price { font-size: 26px; }
}
@media (max-width: 991px) {
    .bm-section { margin: 36px 0; }
    .bm-section .bm-section-inner { padding: 0 20px; }
    .bm-section-title { font-size: 26px; }
    .bm-section-nav .bm-nav-btn { width: 44px; height: 44px; font-size: 16px; }
    .bm-pcard-media { height: 190px; }
    .bm-pcard { padding: 16px; border-radius: 18px; }
    .bm-pcard-title { font-size: 16px; }
    .bm-pcard-price { font-size: 24px; }
}
@media (max-width: 575px) {
    .bm-section { margin: 28px 0; }
    .bm-section .bm-section-inner { padding: 0 14px; }
    .bm-section-header { margin-bottom: 16px; }
    .bm-section-title { font-size: 22px; }
    .bm-section-nav { gap: 8px; }
    .bm-section-nav .bm-nav-btn { width: 40px; height: 40px; font-size: 15px; }
    .bm-pcard-media { height: 180px; }
    .bm-pcard { padding: 14px; }
    .bm-pcard-title { font-size: 15px; min-height: auto; }
    .bm-pcard-price { font-size: 22px; }
    .bm-pcard-icons { opacity: 1; transform: none; }
    .bm-pcard-cta { opacity: 1; transform: none; }
}
