/* =====================================================================
   BLACK Pearl storefront theme
   Loaded LAST in frontEnd/layouts/master.blade.php. Brand colors come
   from General Settings via the inline :root block written after this
   file (--bp-ink = primary_color, --bp-red = secodery_color).
   Everything is scoped under body.bp-ui or a .bp-* block so it wins over
   the legacy /style.css rules without !important (except where legacy
   rules already use !important).
   ===================================================================== */

:root {
    --bp-ink: #050505;
    --bp-red: #e60000;
    --bp-ground: #f2f2f5;
    --bp-surface: #ffffff;
    --bp-plate: #f6f6f9;
    --bp-line: #e5e5ec;
    --bp-muted: #6b6b77;
    --bp-text: #16161a;
    --bp-ok: #1f8a4c;
    --bp-star: #f3a712;
    --bp-font: "Hind Siliguri", "Potro Sans Bangla", system-ui, sans-serif;
    --bp-display: "Jost", "Hind Siliguri", system-ui, sans-serif;
}

body.bp-ui {
    background: var(--bp-ground);
    font-family: var(--bp-font);
    color: var(--bp-text);
}

.bp-ui a:focus-visible,
.bp-ui button:focus-visible,
.bp-ui input:focus-visible,
.bp-ui select:focus-visible,
.bp-ui textarea:focus-visible {
    outline: 2px solid var(--bp-ink);
    outline-offset: 2px;
}

/* ---------- Header ---------- */
.bp-ui .logo-area {
    background: #fff;
}

.bp-ui .main-search form {
    display: flex;
    align-items: stretch;
    height: 46px;
    border: 1.5px solid var(--bp-ink);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.bp-ui .main-search form input {
    flex: 1 1 auto;
    width: auto;
    height: 100%;
    border: 0;
    outline: 0;
    padding: 0 20px;
    font-size: 15px;
    background: transparent;
}

.bp-ui .main-search form button {
    position: static;
    flex: 0 0 62px;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: var(--bp-red);
    color: #fff;
}

/* ---------- Home: category sidebar + hero ---------- */
.bp-ui section.slider-section,
.bp-ui .bottoads_area,
.bp-ui .footer_top_ads_area {
    background: transparent;
}

.bp-ui section.slider-section {
    margin: 18px 0 8px;
}

/* banner fills the sidebar's height instead of leaving a blank strip under it */
.bp-ui .home-slider-container,
.bp-ui .home-slider-container .main_slider,
.bp-ui .home-slider-container .owl-stage-outer,
.bp-ui .home-slider-container .owl-stage,
.bp-ui .home-slider-container .owl-item,
.bp-ui .home-slider-container .slider-item {
    height: 100%;
}

.bp-ui .home-slider-container .slider-item img {
    height: 100%;
    object-fit: cover;
}

.bp-ui .slider-section .sidebar-menu {
    height: 100%;
    background: #fff;
    border: 1px solid var(--bp-line);
    border-radius: 18px;
    padding: 6px;
    box-shadow: none;
}

.bp-ui .slider-section .sidebar-menu > ul > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
}

.bp-ui .slider-section .sidebar-menu > ul > li > a img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0;
}

.bp-ui .slider-section .sidebar-menu > ul > li > a i {
    margin-left: auto;
    font-size: 11px;
    color: #9a9aa6 !important;
}

.bp-ui .slider-section .sidebar-menu > ul > li:hover > a {
    background: var(--bp-plate);
}

.bp-ui .home-slider-container {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

.bp-ui .main_slider .owl-nav button.owl-prev,
.bp-ui .main_slider .owl-nav button.owl-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--bp-ink) !important;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.45);
}

.bp-ui .main_slider .owl-nav button i {
    color: var(--bp-ink);
    font-size: 18px;
}

.bp-ui .bottoads_inner img,
.bp-ui .footertop_ads_inner img {
    border-radius: 14px;
}

/* ---------- Section wrappers + titles ---------- */
.bp-ui .homeproduct {
    background: transparent;
    margin: 0;
    padding: 26px 0 6px;
}

.bp-ui .sec_title {
    margin-bottom: 16px;
}

.bp-ui .section-title-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 0;
    border-bottom: 0;
}

.bp-ui .section-title-header .timer_inner {
    flex: 1 1 auto;
    align-items: center;
}

.bp-ui .section-title-header .section-title-name {
    display: inline-block;
    position: static;
    padding: 0;
    font-family: var(--bp-display);
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--bp-text);
    text-transform: none;
}

/* the pearl: a small lustrous bead before every section title */
.bp-ui .section-title-header .section-title-name::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 12px;
    vertical-align: 0.08em;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 30%, #fff 0 16%, #ecebf2 44%, #b9b8c6 100%);
    box-shadow: 0 0 0 2px var(--bp-red);
}

.bp-ui .sec_title .view_more_btn {
    flex: none;
    padding: 7px 16px;
    border: 1.5px solid var(--bp-ink);
    border-radius: 999px;
    background: transparent;
    color: var(--bp-ink);
    font-family: var(--bp-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.bp-ui .sec_title .view_more_btn:hover {
    background: var(--bp-ink);
    color: #fff;
}

.bp-ui .timer_inner .syotimer-cell {
    background: var(--bp-ink);
    border-radius: 8px;
    font-family: var(--bp-display);
}

/* ---------- Category chips (pearl rings) ---------- */
.bp-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 6px 0 4px;
    text-decoration: none;
}

.bp-cat__ring {
    display: block;
    width: 100px;
    height: 100px;
    padding: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px var(--bp-line), 0 10px 22px -14px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.2s;
}

.bp-cat__ring img {
    width: 100% !important;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.bp-cat:hover .bp-cat__ring,
.bp-cat:focus-visible .bp-cat__ring {
    box-shadow: 0 0 0 2px var(--bp-red), 0 12px 24px -14px rgba(0, 0, 0, 0.55);
}

.bp-cat__name {
    display: block;
    color: var(--bp-text);
    font-size: 14.5px;
    font-weight: 600;
    text-align: center;
    text-transform: lowercase;
}

.bp-cat__name::first-letter {
    text-transform: uppercase;
}

.bp-ui .category-slider {
    position: relative;
}

.bp-ui .category-slider .owl-nav {
    position: absolute;
    top: 39px;
    left: -12px;
    right: -12px;
    display: flex;
    justify-content: space-between;
    margin: 0;
    pointer-events: none;
}

.bp-ui .category-slider .owl-nav.disabled {
    display: none;
}

.bp-ui .category-slider .owl-nav button.owl-prev,
.bp-ui .category-slider .owl-nav button.owl-next {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: 0;
    border-radius: 50%;
    background: #fff !important;
    color: var(--bp-ink) !important;
    box-shadow: 0 0 0 1px var(--bp-line), 0 6px 14px -8px rgba(0, 0, 0, 0.45);
    pointer-events: auto;
}

.bp-ui .category-slider .owl-nav button.disabled {
    visibility: hidden;
}

/* ---------- Product card ---------- */
.bp-ui .product_item.bp-card {
    position: relative;
    z-index: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid var(--bp-line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.25s, border-color 0.25s;
}

.bp-ui .product_item.bp-card:hover {
    margin: 0;
    border-color: #d6d6df;
    box-shadow: 0 16px 32px -20px rgba(20, 20, 30, 0.35);
}

.bp-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--bp-plate);
    overflow: hidden;
}

.bp-card__media img {
    display: block;
    width: 100% !important;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.bp-card:hover .bp-card__media img {
    transform: scale(1.045);
}

.bp-card__tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--bp-red);
    color: #fff;
    font-family: var(--bp-display);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
}

.bp-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
}

.bp-card .bp-card__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.7em;
    color: var(--bp-text);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
}

.bp-card .bp-card__name:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bp-card .bp-card__rating {
    font-size: 13px;
    color: var(--bp-muted);
}

.bp-card .bp-card__rating i {
    color: var(--bp-star);
    font-size: 12px;
    margin-right: 2px;
}

.bp-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    margin-top: auto;
}

.bp-card__now {
    font-family: var(--bp-display);
    font-size: 19px;
    font-weight: 700;
    color: var(--bp-text);
}

.bp-card__price del {
    color: #9a9aa6;
    font-size: 13.5px;
}

.bp-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.bp-card__actions > :first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.bp-card__actions > :last-child {
    flex: 0 0 42px;
}

.bp-card__actions form {
    margin: 0;
}

.bp-card .bp-btn-order {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: var(--bp-red);
    color: #fff !important;
    font-family: var(--bp-font);
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.bp-card .bp-btn-order:hover {
    background: var(--bp-ink);
    border-color: var(--bp-ink);
}

.bp-card .bp-btn-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1.5px solid var(--bp-ink);
    border-radius: 10px;
    background: #fff;
    transition: background 0.2s;
}

.bp-card .bp-btn-cart i {
    color: var(--bp-ink);
    font-size: 16px;
}

.bp-card .bp-btn-cart:hover {
    background: var(--bp-ink);
    border-color: var(--bp-ink);
}

.bp-card .bp-btn-cart:hover i {
    color: #fff;
}

/* card grids + sliders */
.bp-ui .category-product.main_product_inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    gap: 16px;
    overflow: visible;
}

.bp-ui .product_slider .owl-stage,
.bp-ui .related_slider .owl-stage {
    display: flex;
}

.bp-ui .product_slider .owl-item,
.bp-ui .related_slider .owl-item {
    display: flex;
}

.bp-ui .product_slider .owl-stage-outer,
.bp-ui .related_slider .owl-stage-outer {
    padding: 2px 1px 14px;
}

.bp-ui .related_slider .owl-nav button.owl-prev,
.bp-ui .related_slider .owl-nav button.owl-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff !important;
    border: 1px solid var(--bp-line) !important;
    color: var(--bp-ink) !important;
}

/* ---------- Product details ---------- */
.bp-pd {
    padding: 20px 0 8px;
}

.bp-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 13.5px;
    color: var(--bp-muted);
}

.bp-crumbs a {
    color: var(--bp-muted);
    text-decoration: none;
}

.bp-crumbs a:hover {
    color: var(--bp-ink);
    text-decoration: underline;
}

.bp-crumbs span {
    opacity: 0.5;
}

.bp-gallery__main {
    position: relative;
    border: 1px solid var(--bp-line);
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
}

.bp-gallery .dimage_item img {
    width: 100%;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.bp-gallery__tag {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 16px;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--bp-red);
    color: #fff;
    font-family: var(--bp-display);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.bp-thumbs.indicator_thumb {
    margin: 12px 0 0;
}

.bp-thumbs.indicator_thumb:not(.owl-carousel) {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.bp-thumbs .indicator-item {
    display: block;
    width: 100%;
    padding: 0;
    aspect-ratio: 1 / 1;
    border: 1.5px solid var(--bp-line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
}

.bp-thumbs .indicator-item img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.bp-thumbs .indicator-item.is-active {
    border-color: var(--bp-ink);
    box-shadow: 0 0 0 1px var(--bp-ink);
}

.bp-buy {
    padding: 28px;
    border: 1px solid var(--bp-line);
    border-radius: 20px;
    background: #fff;
}

.bp-buy__name {
    margin: 0 0 10px;
    color: var(--bp-text);
    font-family: var(--bp-display);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.bp-buy__rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--bp-muted);
}

.bp-buy__rating i {
    color: var(--bp-star);
    font-size: 13px;
}

.bp-buy__rating a {
    color: var(--bp-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bp-buy__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    padding: 16px 0;
    border-top: 1px solid var(--bp-line);
    border-bottom: 1px solid var(--bp-line);
}

.bp-buy__now {
    color: var(--bp-red);
    font-family: var(--bp-display);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.bp-buy__price del {
    color: #9a9aa6;
    font-size: 18px;
}

.bp-save {
    padding: 4px 10px;
    border-radius: 999px;
    background: #fdecec;
    background: color-mix(in srgb, var(--bp-red) 9%, #fff);
    color: var(--bp-red);
    font-size: 13.5px;
    font-weight: 600;
}

.bp-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    font-size: 14.5px;
    font-weight: 600;
}

.bp-stock::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.bp-stock:empty {
    display: none;
}

.bp-opt {
    margin-top: 18px;
}

.bp-pd .bp-opt .color_inner,
.bp-pd .bp-opt .size_inner {
    display: block;
}

.bp-opt__label {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
}

.bp-pd .bp-opt .selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bp-pd .pro-size .selector-item label.selector-item_label {
    min-width: 50px;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid var(--bp-line);
    border-radius: 10px;
    background: #fff;
    color: var(--bp-text);
    font-weight: 600;
    line-height: 41px;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.bp-pd .pro-size .selector-item label.selector-item_label:hover {
    border-color: var(--bp-ink);
    background: #fff;
    color: var(--bp-text);
}

.bp-pd .pro-size .selector-item .selector-item_radio:checked + label.selector-item_label {
    border-color: var(--bp-ink);
    background: var(--bp-ink);
    color: #fff;
}

.bp-pd .pro-color .selector-item label.selector-item_label {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1.5px var(--bp-line);
}

.bp-pd .pro-color .selector-item .selector-item_radio:checked + label.selector-item_label {
    box-shadow: 0 0 0 2px var(--bp-ink);
}

.bp-pd .pro-color .selector-item label.selector-item_label span img {
    width: 16px;
    height: 16px;
}

.bp-buy__actions {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.bp-pd .bp-qty-step.quantity {
    position: relative;
    width: 134px;
    height: 52px;
    margin: 0;
    border: 1.5px solid var(--bp-line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.bp-pd .bp-qty-step .minus,
.bp-pd .bp-qty-step .plus {
    height: 100%;
    width: 42px;
    border: 0;
    color: var(--bp-text);
    font-size: 22px;
    line-height: 48px;
    user-select: none;
}

.bp-pd .bp-qty-step .minus:hover,
.bp-pd .bp-qty-step .plus:hover {
    background: var(--bp-plate);
}

.bp-pd .bp-qty-step input {
    border: 0;
    background: transparent;
    font-family: var(--bp-display);
    font-size: 17px;
    font-weight: 600;
}

.bp-pd .bp-buy__actions .add_cart_btn,
.bp-pd .bp-buy__actions .order_now_btn {
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 12px;
    border-radius: 12px;
    font-family: var(--bp-font);
    font-size: 17px;
    font-weight: 600;
}

.bp-pd .bp-buy__actions .add_cart_btn {
    border: 1.5px solid var(--bp-ink);
    background: #fff;
    color: var(--bp-ink);
}

.bp-pd .bp-buy__actions .add_cart_btn:hover,
.bp-pd .bp-buy__actions .add_cart_btn:active {
    border-color: var(--bp-ink) !important;
    background-color: var(--bp-ink) !important;
    color: #fff !important;
}

.bp-pd .bp-buy__actions .order_now_btn {
    border: 1.5px solid var(--bp-red);
    background: var(--bp-red);
    color: #fff;
}

.bp-pd .bp-buy__actions .order_now_btn:hover,
.bp-pd .bp-buy__actions .order_now_btn:active {
    border-color: var(--bp-ink) !important;
    background-color: var(--bp-ink) !important;
}

.bp-help {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.bp-help a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 6px 10px;
    border: 1px solid var(--bp-line);
    border-radius: 12px;
    background: var(--bp-plate);
    color: var(--bp-text);
    font-size: 14.5px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.bp-help a:hover {
    border-color: var(--bp-ink);
    color: var(--bp-text);
}

.bp-help .fa-whatsapp {
    color: #1faa53;
    font-size: 19px;
}

.bp-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 20px;
    margin: 22px 0 0;
    font-size: 14.5px;
}

.bp-meta dt {
    color: var(--bp-muted);
    font-weight: 400;
}

.bp-meta dd {
    margin: 0;
    font-weight: 500;
}

.bp-delivery {
    display: flex;
    gap: 14px;
    margin-top: 20px;
    padding: 16px;
    border-radius: 14px;
    background: var(--bp-plate);
}

.bp-delivery > i {
    margin-top: 3px;
    color: var(--bp-ink);
    font-size: 20px;
}

.bp-delivery strong {
    display: block;
    margin-bottom: 2px;
}

.bp-delivery ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bp-delivery li {
    display: block;
    font-size: 14.5px;
    line-height: 1.7;
}

.bp-pd-info {
    padding: 12px 0 8px;
}

.bp-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--bp-line);
}

.bp-tabs a {
    margin-bottom: -1px;
    padding: 12px 18px;
    border-bottom: 2px solid transparent;
    color: var(--bp-muted);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.bp-tabs a:hover,
.bp-tabs a.is-active {
    border-bottom-color: var(--bp-ink);
    color: var(--bp-text);
}

.bp-panel {
    margin-bottom: 20px;
    padding: 28px;
    border: 1px solid var(--bp-line);
    border-radius: 20px;
    background: #fff;
}

.bp-panel > h2 {
    margin: 0 0 14px;
    font-family: var(--bp-display);
    font-size: 22px;
    font-weight: 600;
}

.bp-prose {
    max-width: 75ch;
    color: #2b2b33;
    font-size: 15.5px;
    line-height: 1.75;
}

.bp-prose p {
    margin: 0 0 1em;
    color: inherit;
}

.bp-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.bp-video iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 12px;
}

.bp-pd-info .gomobd-review-section.mt-5 {
    margin-top: 0 !important;
}

.bp-pd-info .gomobd-review-btn {
    padding: 8px 14px;
    border-color: var(--bp-ink);
    border-radius: 10px;
    background: var(--bp-ink);
}

.bp-pd-info .gomobd-review-section .gomobd-review-avatar {
    background: var(--bp-ink);
}

/* ---------- Checkout ---------- */
.bp-ui .bp-co {
    padding: 28px 0 48px;
}

.bp-co__head h1 {
    margin: 0 0 4px;
    font-family: var(--bp-display);
    font-size: 30px;
    font-weight: 600;
}

.bp-co__head p {
    margin: 0 0 20px;
    color: var(--bp-muted);
    font-size: 15px;
}

.bp-co-card,
.bp-co-summary {
    padding: 24px;
    border: 1px solid var(--bp-line);
    border-radius: 20px;
    background: #fff;
}

.bp-co-summary {
    position: sticky;
    top: 16px;
}

.bp-co-summary > h2 {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 600;
}

.bp-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
}

.bp-step ~ .bp-step {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--bp-line);
}

.bp-step__n {
    display: grid;
    place-items: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bp-ink);
    color: #fff;
    font-family: var(--bp-display);
    font-size: 14px;
    font-weight: 600;
}

.bp-step h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.bp-field {
    margin-bottom: 14px;
}

.bp-field label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--bp-font);
    font-size: 15px;
    font-weight: 600;
}

.bp-optional {
    color: var(--bp-muted);
    font-weight: 400;
}

.bp-co .form-control {
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid var(--bp-line);
    border-radius: 12px;
    box-shadow: none;
    font-size: 15px;
}

.bp-co textarea.form-control {
    height: auto;
    padding: 12px 14px;
    resize: vertical;
}

.bp-co .form-control:focus {
    border-color: var(--bp-ink);
    box-shadow: 0 0 0 3px rgba(5, 5, 5, 0.08);
}

.bp-pay {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.bp-pay__opt {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    margin: 0;
    padding: 12px 14px;
    border: 1.5px solid var(--bp-line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-weight: 500;
    transition: border-color 0.15s, background 0.15s;
}

.bp-pay__opt:hover {
    border-color: #c9c9d3;
}

.bp-pay__opt input[type="radio"] {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--bp-ink);
}

.bp-pay__opt:has(input:checked) {
    border-color: var(--bp-ink);
    background: var(--bp-plate);
    box-shadow: 0 0 0 1px var(--bp-ink);
}

.bp-pay__opt > i {
    color: var(--bp-ink);
    font-size: 20px;
}

.bp-pay__opt img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.bp-pay__opt small {
    display: block;
    color: var(--bp-muted);
    font-size: 13px;
    font-weight: 400;
}

.bp-co .bp-note {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #eef5ff;
    color: #1d3b66;
    font-size: 14.5px;
    line-height: 1.6;
}

.bp-place {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: 58px;
    margin-top: 24px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    background: var(--bp-red);
    color: #fff;
    font-family: var(--bp-font);
    font-size: 19px;
    font-weight: 700;
    transition: background 0.2s;
}

.bp-place:hover {
    background: var(--bp-ink);
}

.bp-place__total {
    font-family: var(--bp-display);
    font-weight: 600;
}

.bp-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bp-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--bp-line);
}

.bp-item__img img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: var(--bp-plate);
    object-fit: cover;
}

.bp-item__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: var(--bp-text);
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
}

.bp-item__var {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.bp-item__var span {
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--bp-plate);
    color: var(--bp-muted);
    font-size: 12.5px;
}

.bp-item__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

.bp-qty {
    display: inline-flex;
    align-items: center;
    height: 34px;
    border: 1.5px solid var(--bp-line);
    border-radius: 999px;
}

.bp-qty button {
    width: 32px;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--bp-text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.bp-qty span {
    min-width: 24px;
    font-weight: 600;
    text-align: center;
}

.bp-item__price {
    font-family: var(--bp-display);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.bp-item__remove {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9a9aa6;
}

.bp-item__remove:hover {
    background: var(--bp-plate);
    color: var(--bp-red);
}

.bp-totals {
    margin: 14px 0 0;
}

.bp-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    font-size: 15px;
}

.bp-totals dt {
    color: var(--bp-muted);
    font-weight: 400;
}

.bp-totals dd {
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
}

.bp-totals .is-grand {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dashed #d4d4dc;
}

.bp-totals .is-grand dt {
    align-self: center;
    color: var(--bp-text);
    font-size: 16px;
    font-weight: 600;
}

.bp-totals .is-grand dd {
    font-family: var(--bp-display);
    font-size: 24px;
    font-weight: 700;
}

.bp-totals .is-discount dd,
.bp-totals .is-advance dd {
    color: var(--bp-ok);
}

.bp-totals .is-due dd {
    color: var(--bp-red);
}

.bp-coupon {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--bp-line);
}

.bp-coupon label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.bp-coupon form {
    display: flex;
    gap: 8px;
}

.bp-coupon input {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 1.5px solid var(--bp-line);
    border-radius: 10px;
}

.bp-coupon button {
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: var(--bp-ink);
    color: #fff;
    font-weight: 600;
}

.bp-coupon__applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #cfe9d8;
    border-radius: 10px;
    background: #eef8f1;
    color: #1f5d36;
    font-size: 14px;
}

.bp-coupon__applied a {
    color: var(--bp-red);
    font-weight: 600;
    text-decoration: none;
}

.bp-empty {
    padding: 28px 10px;
    text-align: center;
}

.bp-empty i {
    color: #b9b9c4;
    font-size: 34px;
}

.bp-empty p {
    margin: 10px 0 12px;
    color: var(--bp-muted);
    text-align: center;
}

.bp-empty a {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--bp-ink);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

/* ---------- Quick view popup (layouts/ajax/quickview.blade.php) ---------- */
html.bpq-lock,
html.bpq-lock body {
    overflow: hidden;
}

/* the popup brings its own backdrop */
body:has(.bpq) #page-overlay {
    display: none !important;
}

.bpq {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 10, 14, 0.58);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: var(--bp-text);
    font-family: var(--bp-font);
    line-height: 1.5;
    animation: bpqFade 0.22s ease both;
}

.bpq *,
.bpq *::before,
.bpq *::after {
    box-sizing: border-box;
}

.bpq__dialog {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    width: min(1000px, 100%);
    height: min(660px, calc(100vh - 48px));
    border-radius: 26px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.7);
    animation: bpqRise 0.36s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.bpq.is-closing {
    animation: bpqFadeOut 0.22s ease both;
}

.bpq.is-closing .bpq__dialog {
    animation: bpqSink 0.22s ease both;
}

.bpq__grab {
    display: none;
}

.bpq__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 8;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--bp-ink);
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.55);
    cursor: pointer;
    transition: background 0.18s, color 0.18s, transform 0.18s;
}

.bpq__close:hover {
    background: var(--bp-ink);
    color: #fff;
    transform: rotate(90deg);
}

/* stage */
.bpq__stage {
    position: relative;
    min-height: 0;
    background: var(--bp-plate);
    overflow: hidden;
}

.bpq__photos {
    display: flex;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.bpq__photos::-webkit-scrollbar {
    display: none;
}

.bpq__photos img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
}

.bpq__noimg {
    display: grid;
    place-items: center;
    flex: 0 0 100%;
    color: #c4c4ce;
    font-size: 64px;
}

/* one sheen sweep across the photo as the popup opens */
.bpq__stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(112deg, transparent 32%, rgba(255, 255, 255, 0.42) 48%, transparent 64%);
    transform: translateX(-120%);
    animation: bpqSheen 1.15s 0.3s ease-out forwards;
    pointer-events: none;
}

.bpq__seal {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    display: grid;
    place-content: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--bp-red);
    color: #fff;
    text-align: center;
    transform: rotate(-12deg);
    box-shadow: inset 0 0 0 4px var(--bp-red), inset 0 0 0 5.5px rgba(255, 255, 255, 0.55), 0 14px 26px -12px rgba(0, 0, 0, 0.6);
    animation: bpqSeal 0.55s 0.2s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.bpq__seal b {
    font-family: var(--bp-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.bpq__seal span {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
}

.bpq__thumbs {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.bpq__thumbs button {
    width: 54px;
    height: 54px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    opacity: 0.78;
    cursor: pointer;
    transition: opacity 0.15s, border-color 0.15s;
}

.bpq__thumbs button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bpq__thumbs button.is-active,
.bpq__thumbs button:hover {
    border-color: var(--bp-ink);
    opacity: 1;
}

.bpq__count {
    display: none;
}

/* side: form + done state */
.bpq__side {
    position: relative;
    min-height: 0;
}

.bpq__panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
}

.bpq__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 34px 36px 18px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.bpq .bpq__cat {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--bp-muted);
    font-size: 13.5px;
    text-decoration: none;
}

.bpq .bpq__cat:hover {
    color: var(--bp-ink);
    text-decoration: underline;
}

.bpq__title {
    margin: 0 52px 14px 0;
    color: var(--bp-text);
    font-family: var(--bp-display);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.01em;
}

.bpq__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin-bottom: 22px;
}

.bpq__now {
    color: var(--bp-red);
    font-family: var(--bp-display);
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.bpq__price del {
    color: #9a9aa6;
    font-size: 17px;
}

.bpq__save {
    padding: 4px 10px;
    border-radius: 999px;
    background: #fdecec;
    background: color-mix(in srgb, var(--bp-red) 9%, #fff);
    color: var(--bp-red);
    font-size: 13.5px;
    font-weight: 600;
}

.bpq__opt {
    margin-bottom: 18px;
}

.bpq__label {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--bp-text);
    font-size: 15px;
    font-weight: 600;
}

.bpq__label span {
    color: var(--bp-muted);
    font-weight: 400;
}

.bpq__swatches,
.bpq__sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bpq__swatch,
.bpq__size {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.bpq__swatch input,
.bpq__size input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.bpq__swatch i {
    display: block;
    width: 40px;
    height: 40px;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1.5px var(--bp-line);
    transition: box-shadow 0.15s, transform 0.15s;
}

.bpq__swatch:hover i {
    transform: scale(1.06);
}

.bpq__swatch input:checked + i {
    box-shadow: 0 0 0 2px var(--bp-ink);
}

.bpq__swatch input:focus-visible + i,
.bpq__size input:focus-visible + span {
    outline: 2px solid var(--bp-ink);
    outline-offset: 3px;
}

.bpq__swatch.is-na i {
    opacity: 0.35;
}

.bpq__size span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 46px;
    padding: 0 16px;
    border: 1.5px solid var(--bp-line);
    border-radius: 12px;
    background: #fff;
    color: var(--bp-text);
    font-weight: 600;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.bpq__size:hover span {
    border-color: var(--bp-ink);
}

.bpq__size input:checked + span {
    border-color: var(--bp-ink);
    background: var(--bp-ink);
    color: #fff;
}

.bpq__size.is-na span {
    border-style: dashed;
    color: #b3b3be;
    text-decoration: line-through;
}

.bpq .bpq__stock {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 16px;
    color: var(--bp-muted);
    font-size: 14.5px;
    font-weight: 600;
}

.bpq .bpq__stock::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.bpq .bpq__stock:empty {
    display: none;
}

.bpq .bpq__stock[data-tone="ok"] { color: var(--bp-ok); }
.bpq .bpq__stock[data-tone="low"] { color: #b86e00; }
.bpq .bpq__stock[data-tone="out"] { color: var(--bp-red); }
.bpq .bpq__stock[data-tone="hint"] { color: var(--bp-text); }

.bpq__sum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--bp-plate);
    color: var(--bp-muted);
    font-size: 15px;
}

.bpq__sum strong {
    color: var(--bp-text);
    font-family: var(--bp-display);
    font-size: 21px;
    font-weight: 700;
}

.bpq__info {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    color: var(--bp-muted);
    font-size: 13.5px;
    line-height: 1.6;
}

.bpq__ship {
    display: flex;
    gap: 12px;
}

.bpq__ship > i {
    margin-top: 3px;
    color: var(--bp-ink);
    font-size: 16px;
}

.bpq__ship ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bpq__ship li {
    display: block;
}

.bpq__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.bpq .bpq__links a {
    color: var(--bp-ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* action bar */
.bpq__bar {
    flex: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    padding: 16px 28px 24px;
    border-top: 1px solid var(--bp-line);
    background: #fff;
}

.bpq-step {
    display: inline-flex;
    align-items: center;
    height: 54px;
    border: 1.5px solid var(--bp-line);
    border-radius: 14px;
    background: #fff;
}

.bpq-step button {
    width: 40px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bp-text);
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.bpq-step button:disabled {
    opacity: 0.3;
    cursor: default;
}

.bpq-step input {
    width: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bp-text);
    font-family: var(--bp-display);
    font-size: 17px;
    font-weight: 600;
    text-align: center;
}

.bpq__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 54px;
    padding: 0 10px;
    border-radius: 14px;
    font-family: var(--bp-font);
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.bpq__btn--cart {
    border: 1.5px solid var(--bp-ink);
    background: #fff;
    color: var(--bp-ink);
}

.bpq__btn--cart:hover {
    background: var(--bp-ink);
    color: #fff;
}

.bpq .bpq__btn--order {
    border: 1.5px solid var(--bp-red);
    background: var(--bp-red);
    color: #fff;
}

.bpq .bpq__btn--order:hover {
    border-color: var(--bp-ink);
    background: var(--bp-ink);
    color: #fff;
}

.bpq__btn--ghost {
    border: 1.5px solid var(--bp-line);
    background: #fff;
    color: var(--bp-text);
}

.bpq__btn--ghost:hover {
    border-color: var(--bp-ink);
}

.bpq__btn:disabled {
    border-color: #ececf1;
    background: #ececf1;
    color: #a3a3ae;
    cursor: not-allowed;
}

.bpq__btn.is-busy {
    color: transparent !important;
    pointer-events: none;
}

.bpq__btn.is-busy::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2.5px solid var(--bp-ink);
    border-right-color: transparent;
    border-radius: 50%;
    animation: bpqSpin 0.7s linear infinite;
}

.bpq__btn--order.is-busy::after {
    border-color: #fff;
    border-right-color: transparent;
}

/* added-to-cart confirmation */
.bpq-done {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 36px;
    background: #fff;
    text-align: center;
    animation: bpqFade 0.25s ease both;
}

.bpq-done[hidden] {
    display: none;
}

.bpq-done__mark svg {
    display: block;
    width: 92px;
    height: 92px;
}

.bpq-done__ring {
    fill: var(--bp-plate);
    stroke: var(--bp-red);
    stroke-width: 3;
    stroke-dasharray: 252;
    stroke-dashoffset: 252;
    animation: bpqDraw 0.55s 0.05s ease-out forwards;
}

.bpq-done__tick {
    fill: none;
    stroke: var(--bp-ink);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 54;
    stroke-dashoffset: 54;
    animation: bpqDraw 0.35s 0.5s ease-out forwards;
}

.bpq-done__title {
    margin: 0;
    color: var(--bp-text);
    font-family: var(--bp-display);
    font-size: 26px;
    font-weight: 600;
}

.bpq-done__item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 360px;
    padding: 12px;
    border: 1px solid var(--bp-line);
    border-radius: 16px;
    text-align: left;
}

.bpq-done__item img {
    flex: none;
    width: 58px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
}

.bpq-done__item > div {
    flex: 1 1 auto;
    min-width: 0;
}

.bpq .bpq-done__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
    color: var(--bp-text);
    font-weight: 600;
    line-height: 1.35;
}

.bpq .bpq-done__meta {
    margin: 2px 0 0;
    color: var(--bp-muted);
    font-size: 13px;
}

.bpq-done__item strong {
    flex: none;
    font-family: var(--bp-display);
    font-size: 17px;
}

.bpq .bpq-done__count {
    margin: 0;
    color: var(--bp-muted);
    font-size: 14.5px;
    text-align: center;
}

.bpq-done__count b {
    color: var(--bp-text);
}

.bpq-done__actions {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    margin-top: 4px;
}

@keyframes bpqFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bpqFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes bpqRise { from { opacity: 0; transform: translateY(22px) scale(0.965); } to { opacity: 1; transform: none; } }
@keyframes bpqSink { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(14px) scale(0.98); } }
@keyframes bpqUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes bpqDown { from { transform: none; } to { transform: translateY(100%); } }
@keyframes bpqSheen { to { transform: translateX(120%); } }
@keyframes bpqSeal { from { opacity: 0; transform: rotate(-50deg) scale(0.3); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }
@keyframes bpqSpin { to { transform: rotate(360deg); } }
@keyframes bpqDraw { to { stroke-dashoffset: 0; } }

@media (max-width: 767px) {
    .bpq {
        align-items: flex-end;
        padding: 0;
    }

    .bpq__dialog {
        display: block;
        width: 100%;
        height: auto;
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: 24px 24px 0 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        animation: bpqUp 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }

    .bpq.is-closing .bpq__dialog {
        animation: bpqDown 0.22s ease-in both;
    }

    .bpq__grab {
        position: sticky;
        top: 0;
        z-index: 9;
        display: block;
        height: 24px;
        margin-bottom: -24px;
        touch-action: none;
    }

    .bpq__grab::before {
        content: "";
        position: absolute;
        top: 9px;
        left: 50%;
        width: 46px;
        height: 5px;
        margin-left: -23px;
        border-radius: 99px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    }

    .bpq__close {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
    }

    .bpq__stage {
        height: min(100vw, 50vh);
    }

    .bpq__seal {
        top: 16px;
        left: 16px;
        width: 64px;
        height: 64px;
    }

    .bpq__seal b {
        font-size: 18px;
    }

    .bpq__thumbs {
        display: none;
    }

    .bpq__count {
        position: absolute;
        right: 14px;
        bottom: 14px;
        z-index: 3;
        display: block;
        padding: 3px 10px;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
        font-size: 12.5px;
        font-weight: 600;
    }

    .bpq__panel {
        height: auto;
    }

    .bpq__body {
        padding: 18px 18px 10px;
        overflow: visible;
    }

    .bpq__title {
        margin-right: 0;
        font-size: 22px;
    }

    .bpq__now {
        font-size: 30px;
    }

    .bpq__bar {
        position: sticky;
        bottom: 0;
        z-index: 5;
        grid-template-columns: auto 54px minmax(0, 1fr);
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
        box-shadow: 0 -12px 24px -20px rgba(0, 0, 0, 0.45);
    }

    .bpq__btn--cart {
        padding: 0;
    }

    .bpq__btn--cart span {
        display: none;
    }

    .bpq__btn--cart i {
        font-size: 18px;
    }

    .bpq-done {
        padding: 26px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bpq,
    .bpq *,
    .bpq *::before,
    .bpq *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        transition: none !important;
    }

    .bpq__stage::after {
        display: none;
    }
}

/* ---------- Footer ---------- */
/* legacy heading was dark text on the dark footer */
.bp-ui .footer-top .d_app h2 {
    color: #c9d1d1;
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
    .bp-card__media img,
    .bp-ui .product_item.bp-card,
    .bp-cat__ring {
        transition: none;
    }

    .bp-card:hover .bp-card__media img {
        transform: none;
    }
}

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
    .bp-co-summary {
        position: static;
    }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
    .bp-ui .homeproduct {
        padding: 18px 0 2px;
    }

    .bp-ui .section-title-header .section-title-name {
        font-size: 20px;
    }

    .bp-ui .home-slider-container {
        border-radius: 14px;
    }

    .bp-cat__ring {
        width: 76px;
        height: 76px;
        padding: 3px;
    }

    .bp-cat__name {
        font-size: 13px;
    }

    .bp-ui .category-product.main_product_inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .bp-ui .product_item.bp-card {
        border-radius: 14px;
    }

    .bp-card__body {
        gap: 5px;
        padding: 10px;
    }

    .bp-card .bp-card__name {
        font-size: 14px;
    }

    .bp-card__now {
        font-size: 17px;
    }

    .bp-card__actions {
        gap: 6px;
    }

    .bp-card__actions > :last-child {
        flex-basis: 40px;
    }

    .bp-card .bp-btn-order {
        height: 40px;
        font-size: 14px;
        padding: 0 6px;
    }

    .bp-card .bp-btn-cart {
        width: 40px;
        height: 40px;
    }

    .bp-pd {
        padding-top: 12px;
    }

    .bp-gallery__main {
        border-radius: 16px;
    }

    .bp-thumbs.indicator_thumb:not(.owl-carousel) {
        gap: 8px;
    }

    .bp-buy {
        padding: 18px;
        border-radius: 16px;
    }

    .bp-buy__name {
        font-size: 23px;
    }

    .bp-buy__now {
        font-size: 29px;
    }

    .bp-buy__actions {
        grid-template-columns: 1fr 1fr;
    }

    .bp-buy__actions .bp-qty-step {
        grid-column: 1 / -1;
    }

    .bp-pd .bp-buy__actions .add_cart_btn,
    .bp-pd .bp-buy__actions .order_now_btn {
        font-size: 16px;
    }

    .bp-help {
        grid-template-columns: 1fr;
    }

    .bp-panel {
        padding: 18px;
        border-radius: 16px;
    }

    .bp-tabs a {
        padding: 10px 14px;
    }

    .bp-ui .bp-co {
        padding: 16px 0 32px;
    }

    .bp-co__head h1 {
        font-size: 24px;
    }

    .bp-co-card,
    .bp-co-summary {
        padding: 18px;
        border-radius: 16px;
    }

    .bp-place {
        font-size: 17px;
    }
}
