@charset "UTF-8";
/*
 * Product details page (templates/Products/view.php).
 * The theme sets html { font-size: 62.5% }, so px is used here to keep sizes predictable.
 */
.bbp {
    --bbp-red: #ED1D24;
    --bbp-red-dark: #c4141a;
    --bbp-ink: #1b1d21;
    --bbp-muted: #6b7078;
    --bbp-line: #ececef;
    --bbp-soft: #f6f7f9;
    --bbp-radius: 16px;
    --bbp-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);

    padding: 18px 0 56px;
    color: var(--bbp-ink);
}
.bbp a {
    text-decoration: none;
}

/* ---------- Breadcrumb ---------- */
.bbp-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    font-size: 13px;
}
.bbp-crumbs li {
    display: flex;
    align-items: center;
    min-width: 0;
    color: var(--bbp-muted);
}
.bbp-crumbs li + li::before {
    content: "\f105";
    margin: 0 10px;
    font-family: FontAwesome;
    color: #b5b8be;
}
.bbp-crumbs a {
    color: var(--bbp-muted);
}
.bbp-crumbs a:hover {
    color: var(--bbp-red);
}
.bbp-crumbs [aria-current] span {
    overflow: hidden;
    max-width: 320px;
    color: var(--bbp-ink);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Top: gallery + buy box ---------- */
.bbp-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}
.bbp-gallery {
    position: sticky;
    top: 90px;
    min-width: 0;
}
.bbp-gallery__main {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--bbp-line);
    border-radius: var(--bbp-radius);
}
.bbp-gallery__link {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 20px;
    cursor: zoom-in;
}
.bbp-gallery__link img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
}
.bbp-gallery__zoom {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 16px;
    color: var(--bbp-ink);
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--bbp-line);
    border-radius: 50%;
    pointer-events: none;
}
.bbp-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--bbp-red);
    border-radius: 8px;
}
.bbp-gallery__thumbs {
    position: relative;
    margin-top: 12px;
    padding: 0 34px;
}
.bbp-gallery__thumbs .swiper-slide {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 2px solid var(--bbp-line);
    border-radius: 12px;
    cursor: pointer;
    opacity: .7;
    transition: border-color .2s, opacity .2s;
}
.bbp-gallery__thumbs .swiper-slide-thumb-active,
.bbp-gallery__thumbs .swiper-slide:hover {
    border-color: var(--bbp-red);
    opacity: 1;
}
.bbp-gallery__thumbs img {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 4px;
    object-fit: contain;
}
.bbp-gallery__thumbs .swiper__nav--btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    font-size: 18px;
    color: var(--bbp-ink);
    background: #fff;
    border: 1px solid var(--bbp-line);
    border-radius: 50%;
    transform: translateY(-50%);
}
.bbp-gallery__thumbs .swiper__nav--btn::after {
    content: none;
}
.bbp-gallery__thumbs .swiper-button-prev { left: 0; }
.bbp-gallery__thumbs .swiper-button-next { right: 0; }

.bbp-info {
    min-width: 0;
}
.bbp-info__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.bbp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--bbp-red);
    background: #fff1f1;
    border-radius: 999px;
}
.bbp-chip--plain {
    color: var(--bbp-ink);
    background: var(--bbp-soft);
}
.bbp-chip--admin {
    color: #fff;
    background: #2563eb;
}
.bbp-title {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bbp-ink);
}
.bbp-subtitle {
    margin: 6px 0 0;
    font-size: 15px;
    color: var(--bbp-muted);
}
.bbp-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    margin: 18px 0 0;
    padding: 16px 18px;
    background: var(--bbp-soft);
    border-radius: 14px;
}
.bbp-price__now {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: var(--bbp-red);
}
.bbp-price__old {
    font-size: 17px;
    color: var(--bbp-muted);
}
.bbp-price__save {
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 700;
    color: #047857;
    background: #d1fae5;
    border-radius: 999px;
}
.bbp-free {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    font-size: 15px;
    font-weight: 700;
    color: #047857;
}
.bbp-short {
    margin: 16px 0 0;
    font-size: 15px;
    line-height: 1.7;
    color: #3d4149;
}
.bbp-short a {
    font-weight: 600;
    color: var(--bbp-red);
    white-space: nowrap;
}
.bbp-part {
    margin: 10px 0 0;
    font-size: 14px;
    color: var(--bbp-muted);
}
.bbp-part strong {
    color: var(--bbp-ink);
}
.bbp-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 12px;
    margin-top: 22px;
}
.bbp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 20px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 14px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.bbp-btn--primary {
    color: #fff;
    background: var(--bbp-red);
    border: 0;
    box-shadow: 0 10px 22px rgba(237, 29, 36, .30);
}
.bbp-btn--primary:hover,
.bbp-btn--primary:focus-visible {
    color: #fff;
    background: var(--bbp-red-dark);
    transform: translateY(-1px);
}
.bbp-btn--outline {
    color: var(--bbp-ink);
    background: #fff;
    border: 2px solid var(--bbp-line);
}
.bbp-btn--outline:hover,
.bbp-btn--outline:focus-visible {
    color: var(--bbp-red);
    border-color: var(--bbp-red);
}
.bbp-trust {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
    padding: 16px 18px;
    list-style: none;
    border: 1px solid var(--bbp-line);
    border-radius: 14px;
}
.bbp-trust li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #3d4149;
}
.bbp-trust .fa {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    font-size: 14px;
    line-height: 30px;
    text-align: center;
    color: var(--bbp-red);
    background: #fff1f1;
    border-radius: 50%;
}
.bbp-trust span {
    padding-top: 4px;
}
.bbp-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 14px;
    color: var(--bbp-muted);
}
.bbp-share a,
.bbp-share button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 15px;
    color: var(--bbp-ink);
    background: var(--bbp-soft);
    border: 0;
    border-radius: 50%;
    transition: background .2s, color .2s;
}
.bbp-share a:hover,
.bbp-share button:hover,
.bbp-share button.is-copied {
    color: #fff;
    background: var(--bbp-red);
}

/* ---------- Content cards ---------- */
.bbp-card {
    margin-top: 28px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--bbp-line);
    border-radius: var(--bbp-radius);
    box-shadow: var(--bbp-shadow);
}
.bbp-card__title {
    position: relative;
    margin: 0 0 18px;
    padding-left: 14px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--bbp-ink);
}
.bbp-card__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    border-radius: 4px;
    background: var(--bbp-red);
}
.bbp-card__sub {
    margin: -8px 0 16px;
    font-size: 14px;
    color: var(--bbp-muted);
}
.bbp-details--video {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.bbp-prose {
    font-size: 15px;
    line-height: 1.8;
    color: #3d4149;
    overflow-wrap: anywhere;
}
.bbp-prose p {
    margin: 0 0 10px;
}
.bbp-prose img {
    max-width: 100%;
    height: auto;
}
.bbp-prose iframe {
    max-width: 100%;
}
.bbp-video {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 14px;
}
.bbp-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.bbp-english {
    margin-top: 20px;
    border-top: 1px solid var(--bbp-line);
}
.bbp-english summary {
    padding: 16px 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--bbp-red);
    cursor: pointer;
}
.bbp-english h3 {
    margin: 12px 0 8px;
    font-size: 17px;
}
.bbp-rules {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.bbp-rules li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #3d4149;
}
.bbp-rules .fa {
    flex-shrink: 0;
    margin-top: 4px;
    font-size: 17px;
    color: #059669;
}

/* ---------- FAQ ---------- */
.bbp-faq {
    display: grid;
    gap: 10px;
}
.bbp-faq__item {
    background: var(--bbp-soft);
    border: 1px solid transparent;
    border-radius: 12px;
    transition: background .2s, border-color .2s;
}
.bbp-faq__item[open] {
    background: #fff;
    border-color: var(--bbp-line);
}
.bbp-faq__item summary {
    position: relative;
    padding: 16px 52px 16px 18px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    list-style: none;
    cursor: pointer;
}
.bbp-faq__item summary::-webkit-details-marker {
    display: none;
}
.bbp-faq__item summary::after {
    content: "\f107";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 26px;
    height: 26px;
    font-family: FontAwesome;
    font-size: 16px;
    line-height: 26px;
    text-align: center;
    color: var(--bbp-red);
    background: #fff1f1;
    border-radius: 50%;
    transform: translateY(-50%);
    transition: transform .2s;
}
.bbp-faq__item[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}
.bbp-faq__item p {
    margin: 0;
    padding: 0 18px 16px;
    font-size: 14px;
    line-height: 1.75;
    color: #3d4149;
}
.bbp-faq__item p a {
    font-weight: 600;
    color: var(--bbp-red);
}

/* ---------- Reviews ---------- */
.bbp-reviews {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
}
.bbp-review {
    flex: 0 0 auto;
    width: 180px;
    height: 240px;
    overflow: hidden;
    background: var(--bbp-soft);
    border: 1px solid var(--bbp-line);
    border-radius: 12px;
    scroll-snap-align: start;
}
.bbp-review img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform .3s;
}
.bbp-review:hover img {
    transform: scale(1.04);
}

/* ---------- Similar products ---------- */
.bbp-section {
    margin-top: 36px;
}
.bbp-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.bbp-section__head .bbp-card__title {
    margin-bottom: 16px;
}
.bbp-section__head a {
    flex-shrink: 0;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bbp-red);
}
.bbp-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.bbp-mini {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 10px 14px;
    background: #fff;
    border: 1px solid var(--bbp-line);
    border-radius: 14px;
    box-shadow: var(--bbp-shadow);
    transition: transform .2s, box-shadow .2s;
}
.bbp-mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(16, 24, 40, .10);
}
.bbp-mini__img {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
}
.bbp-mini__img img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
}
.bbp-mini__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.45em * 2);
    font-size: 14px;
    line-height: 1.45;
    color: var(--bbp-ink);
}
.bbp-mini__price {
    font-size: 16px;
    font-weight: 700;
    color: var(--bbp-red);
}

/* ---------- Mobile sticky order bar ---------- */
.bbp-sticky {
    display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .bbp-top {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .bbp-gallery {
        position: static;
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
    }
    .bbp-details--video {
        grid-template-columns: minmax(0, 1fr);
    }
    .bbp-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* sits just above the site's fixed bottom toolbar */
    .bbp-sticky {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 64px;
        z-index: 98;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 16px;
        background: #fff;
        border-top: 1px solid var(--bbp-line, #ececef);
        box-shadow: 0 -6px 18px rgba(16, 24, 40, .08);
        transform: translateY(140%);
        visibility: hidden;
        transition: transform .25s ease, visibility .25s;
    }
    .bbp-sticky.is-visible {
        transform: none;
        visibility: visible;
    }
    .bbp-sticky__price strong {
        display: block;
        font-size: 20px;
        line-height: 1.1;
        color: #ED1D24;
    }
    .bbp-sticky__price s {
        font-size: 13px;
        color: #6b7078;
    }
    .bbp-sticky .bbp-btn {
        min-height: 46px;
        padding: 0 22px;
        font-size: 15px;
        color: #fff;
        background: #ED1D24;
        border: 0;
    }
    /* the floating "all categories" pill would sit on top of the sticky bar */
    .mobile-fixed-footer {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .bbp {
        padding-top: 10px;
        padding-bottom: 150px; /* room for the sticky bar + toolbar */
    }
    .bbp-crumbs ol {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        white-space: nowrap;
    }
    .bbp-crumbs ol::-webkit-scrollbar {
        display: none;
    }
    .bbp-crumbs li {
        flex-shrink: 0;
    }
    .bbp-crumbs [aria-current] span {
        max-width: 180px;
    }
    .bbp-gallery__link {
        padding: 12px;
    }
    .bbp-title {
        font-size: 22px;
    }
    .bbp-subtitle {
        font-size: 14px;
    }
    .bbp-price {
        margin-top: 14px;
        padding: 14px;
    }
    .bbp-price__now {
        font-size: 26px;
    }
    .bbp-actions {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
    .bbp-btn {
        min-height: 50px;
        font-size: 16px;
    }
    .bbp-card {
        margin-top: 20px;
        padding: 20px 16px;
        border-radius: 14px;
    }
    .bbp-card__title {
        font-size: 18px;
    }
    .bbp-faq__item summary {
        padding: 14px 48px 14px 14px;
        font-size: 14px;
    }
    .bbp-faq__item p {
        padding: 0 14px 14px;
    }
    .bbp-review {
        width: 140px;
        height: 190px;
    }
    .bbp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}
