/**
 * BSMC Product Carousel — Component Styles
 * The product grid's section, header and card, on the video carousel's rail.
 * Dark background, Bebas Neue headlines, Proxima Nova body
 */

/* ── Section wrapper ───────────────────────────────────────────────────── */
.bsmc-product-carousel {
    width: 100%;
    background: #0e0e0e;
    border-radius: 20px;
	margin: 20px;
	padding: 36px 40px;
    box-sizing: border-box;
}

/* ── Header ────────────────────────────────────────────────────────────── */
.bsmc-product-carousel__header {
    padding: 0 4px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bsmc-product-carousel__headline {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
    color: #edeadf;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1.8px;
}

.bsmc-product-carousel__shop-all {
    font-family: 'Proxima Nova', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #edeadf;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 4px;
    border-bottom: 1.5px solid #edeadf;
    width: fit-content;
    transition: opacity 0.2s;
}

.bsmc-product-carousel__shop-all:hover {
    opacity: 0.75;
}

/* ── Outer wrapper (clips overflow) ───────────────────────────────────── */
.bsmc-product-carousel__outer {
    position: relative;
    overflow: hidden;
}

/* ── Track ─────────────────────────────────────────────────────────────── */
.bsmc-product-carousel__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    cursor: grab;
    user-select: none;
    align-items: flex-start;
    min-width: 0;
}

.bsmc-product-carousel__track.is-dragging {
    cursor: grabbing;
    transition: none;
}

/* ── Arrow buttons ─────────────────────────────────────────────────────── */
.bsmc-pc-arrow {
    display: none; /* shown via JS once carousel needs it */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(237,234,223,0.25);
    background: rgba(0,0,0,0.55);
    color: #edeadf;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s, border-color 0.2s;
    backdrop-filter: blur(4px);
}

.bsmc-pc-arrow.is-visible {
    display: flex;
}

.bsmc-pc-arrow:hover {
    background: #edeadf;
    border-color: #edeadf;
}

.bsmc-pc-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.bsmc-pc-arrow svg {
    display: none;
}

.bsmc-pc-arrow--prev::after {
    content: '\2039';
    font-size: 24px;
    line-height: 1;
    color: #edeadf;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.bsmc-pc-arrow--next::after {
    content: '\203A';
    font-size: 24px;
    line-height: 1;
    color: #edeadf;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.bsmc-pc-arrow:hover::after {
    color: #1a1208;
}

.bsmc-pc-arrow--prev { left: 8px; }
.bsmc-pc-arrow--next { right: 8px; }

/* ── Dots ──────────────────────────────────────────────────────────────── */
.bsmc-pc-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.bsmc-pc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(237,234,223,0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.bsmc-pc-dot.is-active {
    background: #edeadf;
    transform: scale(1.3);
}


/* ── Card sizing on the rail ───────────────────────────────────────────── */
/* Widths are set by product-carousel.js (4 up on desktop, 2 up below
   900px), matching the video carousel; these are the no-JS fallbacks. */
.bsmc-product-carousel .bsmc-product-card {
    flex: 0 0 calc(25% - 12px);
}

@media ( max-width: 900px ) {
    .bsmc-product-carousel .bsmc-product-card {
        flex: 0 0 calc(50% - 8px);
    }
}

/* ── Product card ──────────────────────────────────────────────────────── */
.bsmc-product-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-decoration: none;
    cursor: pointer;
}

/* ── Image wrapper ─────────────────────────────────────────────────────── */
.bsmc-product-card__img-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #1a1a1a;
}

.bsmc-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bsmc-product-card:hover .bsmc-product-card__img {
    transform: scale(1.05);
}

.bsmc-product-card__img--placeholder {
    width: 100%;
    height: 100%;
    background: #1e1e1e;
}

/* ── Cart badge ────────────────────────────────────────────────────────── */
.bsmc-product-card__cart {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: transform 0.2s, background 0.2s;
    flex-shrink: 0;
}

.bsmc-product-card:hover .bsmc-product-card__cart {
    transform: scale(1.1);
    background: #edeadf;
    color: #edeadf;
}

/* ── Info ──────────────────────────────────────────────────────────────── */
.bsmc-product-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 2px;
}

.bsmc-product-card__title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.1;
    color: #edeadf;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin: 0;
}

.bsmc-product-card__price {
    font-family: 'Proxima Nova', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #edeadf;
    margin: 0;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

/* Tablet: 2 columns */
@media ( max-width: 900px ) {}

/* Mobile: 2 columns (matches design), tighter padding */
@media ( max-width: 768px ) {
    .bsmc-product-carousel {
        width: auto;
        margin-left: 8px;
        margin-right: 8px;
    }
}

@media ( max-width: 600px ) {
    .bsmc-product-carousel {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .bsmc-product-carousel__header {
        padding-bottom: 20px;
    }

    .bsmc-product-card__img-wrap {
        border-radius: 10px;
    }

    .bsmc-product-card__title {
        font-size: 15px;
    }

    .bsmc-product-card__price {
        font-size: 13px;
    }

    .bsmc-product-card__cart {
        width: 34px;
        height: 34px;
        bottom: 8px;
        right: 8px;
    }

    .bsmc-product-card__cart svg {
        width: 15px;
        height: 15px;
    }
}
