/* ==========================================================================
   Infinia Shop - ecommerce styles for the Infinia child theme.
   Uses Bootstrap 5.3 CSS variables, so light / dark mode (data-bs-theme) works automatically.
   Brand colour comes from Infinia's --primary-color (Theme options > Colors).
   ========================================================================== */

:root {
    --shop-primary: var(--primary-color, #6d4df2);
    --shop-primary-rgb: var(--primary-color-rgb, 109, 77, 242);
    --shop-radius: 16px;
    --shop-border: var(--bs-border-color, #dee2e6);
    --shop-surface: var(--bs-body-bg, #fff);
    --shop-muted-bg: var(--bs-tertiary-bg, #f8f9fa);
    --shop-muted-text: var(--bs-secondary-color, #6c757d);
}

.mt-6 { margin-top: 3rem !important; }
.mt-7 { margin-top: 4.5rem !important; }
.py-6 { padding-top: 2.5rem; padding-bottom: 2.5rem; }

/* ---------- Header actions (cart / wishlist / account) ---------- */
.shop-header-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--bs-body-color);
    transition: background-color .2s ease, color .2s ease;
}
.shop-header-action:hover { background-color: rgba(var(--shop-primary-rgb), .1); color: var(--shop-primary); }
.shop-header-badge {
    position: absolute;
    top: 2px;
    inset-inline-end: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--shop-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* ---------- Toolbar ---------- */
.shop-search .form-control { min-height: 52px; border-radius: 50rem 0 0 50rem; padding-inline-start: 1.25rem; }
.shop-search .btn { border-radius: 0 50rem 50rem 0; padding-inline: 1.25rem; }
[dir="rtl"] .shop-search .form-control { border-radius: 0 50rem 50rem 0; }
[dir="rtl"] .shop-search .btn { border-radius: 50rem 0 0 50rem; }
.shop-toolbar .form-select { min-height: 52px; border-radius: 50rem; padding-inline: 1.25rem; }

.shop-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border: 1px solid var(--shop-border);
    border-radius: 50rem;
    font-size: 14px;
    font-weight: 600;
    color: var(--bs-body-color);
    background: var(--shop-surface);
    transition: all .2s ease;
}
.shop-chip:hover,
.shop-chip.active { background: var(--shop-primary); border-color: var(--shop-primary); color: #fff; }

/* ---------- Product card ---------- */
.shop-card {
    display: flex;
    flex-direction: column;
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.shop-card:hover { transform: translateY(-4px); border-color: rgba(var(--shop-primary-rgb), .4); box-shadow: 0 14px 34px rgba(0, 0, 0, .09); }
.shop-card__thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--shop-muted-bg); }
.shop-card__img-link { display: block; width: 100%; height: 100%; }
.shop-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shop-card:hover .shop-card__img { transform: scale(1.05); }
.shop-card__badge {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    z-index: 2;
    padding: 5px 12px;
    border-radius: 50rem;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    background: var(--shop-primary);
}
.shop-card__badge--sale { background: #e5484d; }
.shop-card__body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 18px 20px 20px; }
.shop-card__brand { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--shop-muted-text); }
.shop-card__title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.4; }
.shop-card__title a { color: inherit; transition: color .2s ease; }
.shop-card__title a:hover { color: var(--shop-primary); }
.shop-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.shop-card__price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.shop-card__price-current { font-size: 18px; font-weight: 800; color: var(--bs-body-color); }
.shop-card__price-old { font-size: 14px; color: var(--shop-muted-text); text-decoration: line-through; }
.shop-card__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(var(--shop-primary-rgb), .1);
    color: var(--shop-primary);
    transition: all .2s ease;
}
.shop-card:hover .shop-card__more { background: var(--shop-primary); color: #fff; }
[dir="rtl"] .shop-card__more svg { transform: scaleX(-1); }

/* star rating (CSS only): --rating is a percentage */
.shop-card__rating { display: flex; align-items: center; gap: 6px; }
.shop-card__stars {
    --star-off: var(--shop-border);
    --star-on: #f5a623;
    position: relative;
    display: inline-block;
    width: 80px;
    height: 14px;
    background: linear-gradient(90deg, var(--star-on) var(--rating, 0%), var(--star-off) var(--rating, 0%));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='14' viewBox='0 0 80 14'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M8 .6l2.2 4.6 5 .7-3.6 3.5.9 5L8 12 3.5 14.4l.9-5L.8 5.9l5-.7z'/%3E%3Cuse href='%23s' x='16'/%3E%3Cuse href='%23s' x='32'/%3E%3Cuse href='%23s' x='48'/%3E%3Cuse href='%23s' x='64'/%3E%3C/g%3E%3C/svg%3E") center / 80px 14px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='14' viewBox='0 0 80 14'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M8 .6l2.2 4.6 5 .7-3.6 3.5.9 5L8 12 3.5 14.4l.9-5L.8 5.9l5-.7z'/%3E%3Cuse href='%23s' x='16'/%3E%3Cuse href='%23s' x='32'/%3E%3Cuse href='%23s' x='48'/%3E%3Cuse href='%23s' x='64'/%3E%3C/g%3E%3C/svg%3E") center / 80px 14px no-repeat;
}
[dir="rtl"] .shop-card__stars { background: linear-gradient(270deg, var(--star-on) var(--rating, 0%), var(--star-off) var(--rating, 0%)); }
.shop-card__rating-count { font-size: 12px; color: var(--shop-muted-text); }

/* ---------- Product detail ---------- */
.product-detail__grid-img { display: block; border-radius: var(--shop-radius); overflow: hidden; background: var(--shop-muted-bg); }

.product-gallery__main {
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    background: var(--shop-muted-bg);
    overflow: hidden;
}
.product-gallery__main-link { display: block; cursor: zoom-in; }
.product-gallery__main-img { display: block; width: 100%; height: auto; transition: opacity .15s ease; }
.product-gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.product-gallery__thumb {
    width: 84px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: var(--shop-muted-bg);
    opacity: .7;
    cursor: pointer;
    transition: all .2s ease;
}
.product-gallery__thumb:hover { opacity: 1; }
.product-gallery__thumb.active { opacity: 1; border-color: var(--shop-primary); }
.product-gallery__thumb-img { width: 100%; height: 100%; object-fit: cover; }

.product-info__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 50rem;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #2f9e6b;
}
.product-info__badge--out { background: #e5484d; }
.product-info__brand { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--shop-muted-text); }
.product-info__title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; line-height: 1.25; margin-bottom: 14px; }
.product-info__price { font-size: 30px; font-weight: 800; color: var(--shop-primary); line-height: 1; }
.product-info__price-old { font-size: 18px; color: var(--shop-muted-text); text-decoration: line-through; }
.product-info__save { padding: 4px 12px; border-radius: 50rem; background: rgba(229, 72, 77, .12); color: #e5484d; font-size: 13px; font-weight: 700; }
.product-info__excerpt { color: var(--shop-muted-text); line-height: 1.8; }
.product-info__excerpt p:last-child { margin-bottom: 0; display: inline; }
.product-info__read-more { margin-inline-start: 6px; font-weight: 700; text-decoration: underline; color: var(--shop-primary); }
.product-info__btn { min-height: 54px; font-weight: 700; }
.product-info__box { padding: 20px 22px; border: 1px dashed var(--shop-border); border-radius: 14px; background: var(--shop-muted-bg); }
.product-info__box-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.product-info__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.product-info__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.product-info__list svg { flex-shrink: 0; margin-top: 3px; color: #2f9e6b; }
.product-info__meta li { margin-bottom: 6px; font-size: 14px; color: var(--shop-muted-text); }
.product-info__meta strong { color: var(--bs-body-color); }
.product-info__meta a { color: var(--shop-primary); }

/* variation swatches / product options rendered by the ecommerce plugin */
.product-info .product-filters .attribute-swatches-wrapper,
.product-info .product-option { margin-bottom: 14px; }
.product-info .form-control,
.product-info .form-select { border-radius: 12px; }

/* quantity stepper (product page + cart) */
.product-qty {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 140px;
    height: 54px;
    padding: 0 10px;
    border: 1px solid var(--shop-border);
    border-radius: 50rem;
    background: var(--shop-surface);
}
.product-qty--sm { min-width: 116px; height: 44px; }
.product-qty__btn { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--bs-body-color); font-size: 20px; font-weight: 600; line-height: 1; cursor: pointer; transition: background-color .2s ease; }
.product-qty__btn:hover { background: rgba(var(--shop-primary-rgb), .12); color: var(--shop-primary); }
.product-qty__input { width: 44px; border: 0; background: transparent; text-align: center; font-weight: 700; color: var(--bs-body-color); -moz-appearance: textfield; appearance: textfield; }
.product-qty__input::-webkit-outer-spin-button,
.product-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.product-qty__input:focus { outline: none; }

/* tabs */
.product-tabs__nav { gap: 28px; border-bottom: 1px solid var(--shop-border); }
.product-tabs__nav .nav-link { padding: 0 0 14px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; font-size: 19px; font-weight: 700; color: var(--shop-muted-text); }
.product-tabs__nav .nav-link:hover { color: var(--bs-body-color); }
.product-tabs__nav .nav-link.active { color: var(--bs-body-color); border-bottom-color: var(--shop-primary); }

/* specifications sidebar */
.product-spec { padding: 22px; border: 1px solid var(--shop-border); border-radius: var(--shop-radius); background: var(--shop-surface); }
.product-spec__section + .product-spec__section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--shop-border); }
.product-spec__title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.product-spec__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.product-spec__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--shop-muted-text); }
.product-spec__value { display: block; font-size: 15px; word-break: break-word; }

/* ---------- Cart ---------- */
.cart-list { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    background: var(--shop-surface);
}
.cart-item__thumb { width: 96px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--shop-muted-bg); }
.cart-item__img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__title { margin: 0 0 4px; font-size: 17px; font-weight: 700; line-height: 1.4; }
.cart-item__title a { color: inherit; }
.cart-item__title a:hover { color: var(--shop-primary); }
.cart-item__meta { margin: 0 0 4px; font-size: 13px; color: var(--shop-muted-text); }
.cart-item__price { margin: 0; font-weight: 700; color: var(--shop-primary); }
.cart-item__actions { display: flex; align-items: center; gap: 14px; }
.cart-item__remove { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #e5484d; transition: background-color .2s ease; }
.cart-item__remove:hover { background: rgba(229, 72, 77, .12); color: #e5484d; }

.cart-summary { position: sticky; top: 110px; padding: 26px; border: 1px solid var(--shop-border); border-radius: var(--shop-radius); background: var(--shop-surface); }
.cart-summary__title { font-size: 20px; font-weight: 800; margin-bottom: 18px; }
.cart-summary__coupon { display: flex; gap: 10px; }
.cart-summary__coupon .form-control { min-height: 48px; border-radius: 12px; }
.cart-summary__coupon .btn { white-space: nowrap; border-radius: 12px; }
.cart-summary__rows { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--shop-border); display: grid; gap: 12px; }
.cart-summary__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-summary__row--total { padding-top: 14px; border-top: 1px solid var(--shop-border); font-size: 18px; font-weight: 800; }

@media (max-width: 575.98px) {
    .cart-item { grid-template-columns: 76px minmax(0, 1fr); }
    .cart-item__thumb { width: 76px; height: 64px; }
    .cart-item__actions { grid-column: 1 / -1; justify-content: space-between; }
    .cart-summary { position: static; }
}

/* ---------- Carousel shortcode ---------- */
.ecommerce-products-carousel__swiper { overflow: hidden; padding: 6px 2px 10px; }
.ecommerce-products-carousel__swiper .swiper-wrapper { align-items: stretch; }
.ecommerce-products-carousel__swiper .swiper-slide { height: auto; }
.ecommerce-carousel-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--shop-border); border-radius: 50%; background: var(--shop-surface); color: var(--bs-body-color); cursor: pointer; transition: all .2s ease; }
.ecommerce-carousel-btn:hover { background: var(--shop-primary); border-color: var(--shop-primary); color: #fff; }
.ecommerce-carousel-btn.swiper-button-lock { display: none; }
[dir="rtl"] .ecommerce-carousel-btn svg { transform: scaleX(-1); }
.ecommerce-carousel-pagination { display: flex; justify-content: center; gap: 8px; }
.ecommerce-carousel-pagination .swiper-pagination-bullet { width: 10px; height: 10px; margin: 0 !important; border-radius: 50%; background: var(--shop-border); opacity: 1; }
.ecommerce-carousel-pagination .swiper-pagination-bullet-active { background: var(--shop-primary); }

/* ==========================================================================
   Customer area + auth pages (rendered by the ecommerce plugin).
   The plugin's own stylesheet hardcodes light colours, so the dark mode of Infinia needs a few overrides.
   ========================================================================== */
.bb-customer-page { margin-top: 0; padding-top: 10px; padding-bottom: 40px; }
.bb-customer-page,
.bb-ecommerce-checkout { --bs-link-color: var(--shop-primary); }
.bb-customer-page .btn-primary,
.bb-ecommerce-checkout .btn-primary { --bs-btn-bg: var(--shop-primary); --bs-btn-border-color: var(--shop-primary); }
.iti .iti__flag-container { z-index: 2; }
.bb-customer-page .iti .iti__selected-flag,
.bb-ecommerce-checkout .iti .iti__selected-flag { padding-inline-start: 12px; }

/* Auth cards (login / register / forgot password) */
.auth-card { border: 1px solid var(--shop-border); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px rgba(0, 0, 0, .06); background-color: var(--shop-surface) !important; margin: 2rem 0 3rem; }
.auth-card .card-header { background-color: transparent !important; border: 0; }
.auth-card .auth-card__header { padding: 2.5rem 2.5rem 1.25rem; }
.auth-card .auth-card__body { padding: 0 2.5rem 2.5rem; }
.auth-card .auth-card__header-icon { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; font-size: 24px; border-radius: 14px !important; background-color: rgba(var(--shop-primary-rgb), .1) !important; color: var(--shop-primary) !important; }
.auth-card .auth-card__header-title { font-weight: 800; margin-bottom: .5rem; }
.auth-card .auth-card__header-description { color: var(--shop-muted-text); line-height: 1.6; }
.auth-card .form-group { margin-bottom: 1.25rem; }
.auth-card .form-group label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.auth-card .form-control { min-height: 52px; border-radius: 12px; }
.auth-card .form-control:focus { border-color: var(--shop-primary); box-shadow: 0 0 0 .2rem rgba(var(--shop-primary-rgb), .15); }
.auth-card .btn-auth-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin-top: 1rem; border: 0 !important; border-radius: 50rem !important; background: var(--shop-primary) !important; color: #fff !important; font-weight: 700; transition: all .25s ease; }
.auth-card .btn-auth-submit:hover { opacity: .92; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(var(--shop-primary-rgb), .3); }
.auth-card .form-check { display: flex; align-items: center; gap: 8px; margin-bottom: 0; padding-inline-start: 0; }
.auth-card .form-check-input { margin: 0; width: 18px; height: 18px; cursor: pointer; }
.auth-card .form-check-input:checked { background-color: var(--shop-primary); border-color: var(--shop-primary); }
.auth-card .form-check-label { margin: 0; font-size: 14px; color: var(--shop-muted-text); cursor: pointer; }
.auth-card .mt-3.text-center a { font-weight: 700; color: var(--shop-primary); }
.auth-card .position-relative .auth-input-icon { position: absolute; top: 50%; inset-inline-start: 0; z-index: 10; display: flex; align-items: center; justify-content: center; width: 44px; height: 100%; padding: 0; border: 0 !important; background: transparent !important; color: var(--shop-muted-text); transform: translateY(-50%); }
.auth-card .position-relative .form-control { padding-inline-start: 2.75rem; }

@media (max-width: 767.98px) {
    .auth-card .auth-card__header { padding: 1.75rem 1.5rem 1rem; }
    .auth-card .auth-card__body { padding: 0 1.5rem 1.75rem; }
}

/* Dark mode: plugin surfaces */
[data-bs-theme="dark"] .shop-card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }

[data-bs-theme="dark"] .bb-customer-page,
[data-bs-theme="dark"] .bb-customer-page .table-responsive { background-color: transparent !important; }

[data-bs-theme="dark"] .bb-customer-page .bg-white,
[data-bs-theme="dark"] .bb-customer-page .bb-customer-card,
[data-bs-theme="dark"] .bb-customer-page .bb-customer-card-header,
[data-bs-theme="dark"] .bb-customer-page .bb-customer-profile,
[data-bs-theme="dark"] .bb-customer-page .bb-empty,
[data-bs-theme="dark"] .bb-customer-page .table-responsive tbody tr,
[data-bs-theme="dark"] .bb-customer-page .pagination .page-item .page-link,
[data-bs-theme="dark"] .bb-customer-sidebar-wrapper,
[data-bs-theme="dark"] .bb-customer-sidebar-wrapper .bb-customer-sidebar .bb-customer-sidebar-heading,
[data-bs-theme="dark"] .bb-customer-sidebar-wrapper .bb-customer-sidebar-footer { background: #171a21 !important; background-color: #171a21 !important; }

[data-bs-theme="dark"] .bb-customer-page .border-border,
[data-bs-theme="dark"] .bb-customer-page .border-bottom,
[data-bs-theme="dark"] .bb-customer-page .bb-profile-content .bb-profile-header,
[data-bs-theme="dark"] .bb-customer-page .bb-customer-card,
[data-bs-theme="dark"] .bb-customer-page .bb-customer-card-header,
[data-bs-theme="dark"] .bb-customer-page .bb-customer-profile,
[data-bs-theme="dark"] .bb-customer-page .bb-empty,
[data-bs-theme="dark"] .bb-customer-page .pagination .page-item .page-link,
[data-bs-theme="dark"] .bb-customer-sidebar-wrapper,
[data-bs-theme="dark"] .bb-customer-sidebar-wrapper .bb-customer-sidebar .bb-customer-sidebar-heading,
[data-bs-theme="dark"] .bb-customer-sidebar-wrapper .bb-customer-sidebar-footer { border-color: #2e333d !important; }

[data-bs-theme="dark"] .bb-customer-page .table-responsive tbody tr td { border-bottom-color: rgba(255, 255, 255, .08) !important; }

[data-bs-theme="dark"] .bb-customer-page,
[data-bs-theme="dark"] .bb-customer-page .bb-profile-content .bb-profile-header .bb-profile-header-title,
[data-bs-theme="dark"] .bb-customer-page h2.customer-page-title,
[data-bs-theme="dark"] .bb-customer-page label,
[data-bs-theme="dark"] .bb-customer-page .form-label,
[data-bs-theme="dark"] .bb-customer-page .bb-customer-card-title,
[data-bs-theme="dark"] .bb-customer-page .bb-customer-card-title .value,
[data-bs-theme="dark"] .bb-customer-page .bb-customer-card-body .form-group label,
[data-bs-theme="dark"] .bb-customer-page .bb-customer-card-info .info-item .value,
[data-bs-theme="dark"] .bb-customer-page .bb-empty .bb-empty-title,
[data-bs-theme="dark"] .bb-customer-page .bb-customer-profile-info h4,
[data-bs-theme="dark"] .bb-customer-page .table,
[data-bs-theme="dark"] .bb-customer-page .table th,
[data-bs-theme="dark"] .bb-customer-page .table td,
[data-bs-theme="dark"] .bb-customer-sidebar-wrapper .bb-customer-sidebar .bb-customer-sidebar-heading .name { color: #eceef2 !important; }

[data-bs-theme="dark"] .bb-customer-page .text-muted,
[data-bs-theme="dark"] .bb-customer-page .bb-empty .bb-empty-subtitle,
[data-bs-theme="dark"] .bb-customer-page .bb-customer-card-info .info-item .label,
[data-bs-theme="dark"] .bb-customer-page .pagination .page-item .page-link,
[data-bs-theme="dark"] .bb-customer-sidebar-wrapper .bb-customer-sidebar .bb-customer-sidebar-heading .email,
[data-bs-theme="dark"] .bb-customer-sidebar-wrapper .bb-customer-sidebar .bb-customer-navigation .nav-section-title { color: #a3a9b5 !important; }

[data-bs-theme="dark"] .bb-customer-sidebar-wrapper .bb-customer-sidebar .bb-customer-navigation .nav-pills .nav-item .nav-link:not(.active),
[data-bs-theme="dark"] .bb-customer-sidebar-wrapper .bb-customer-sidebar .bb-customer-navigation .nav-pills .nav-item .nav-link:not(.active) .nav-icon { color: #d5d9e0 !important; }

[data-bs-theme="dark"] .bb-customer-sidebar-wrapper .bb-customer-sidebar .bb-customer-navigation .nav-pills .nav-item .nav-link:hover:not(.active) { background-color: rgba(255, 255, 255, .08) !important; color: #fff !important; }

[data-bs-theme="dark"] .bb-customer-page .form-control,
[data-bs-theme="dark"] .bb-customer-page .form-select,
[data-bs-theme="dark"] .bb-customer-page .input-group-text { background-color: #1d212a !important; border-color: #343a46 !important; color: #eceef2 !important; }

[data-bs-theme="dark"] .bb-customer-page .form-control::placeholder { color: #7f8694 !important; }
[data-bs-theme="dark"] .bb-customer-page .form-control:disabled,
[data-bs-theme="dark"] .bb-customer-page .form-control[readonly] { background-color: #161920 !important; color: #a3a9b5 !important; }

[data-bs-theme="dark"] .auth-card,
[data-bs-theme="dark"] .auth-card .card-header { background-color: #171a21 !important; }
[data-bs-theme="dark"] .auth-card { border-color: #2e333d; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
[data-bs-theme="dark"] .auth-card .form-control { background-color: #1d212a; border-color: #343a46; color: #eceef2; }
[data-bs-theme="dark"] .auth-card .auth-card__header-title,
[data-bs-theme="dark"] .auth-card label { color: #eceef2; }
[data-bs-theme="dark"] .auth-card .auth-card__header-description,
[data-bs-theme="dark"] .auth-card .form-check-label { color: #a3a9b5; }

/* ==========================================================================
   ThemeForest-style store layout (shop page + item page)
   ========================================================================== */

/* ---------- Shop: sidebar + top bar ---------- */
.shop-sidebar { position: sticky; top: 100px; display: grid; gap: 18px; }
.shop-sidebar__box { padding: 20px; border: 1px solid var(--shop-border); border-radius: 14px; background: var(--shop-surface); }
.shop-sidebar__title { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--shop-muted-text); }
.shop-sidebar__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.shop-sidebar__list a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--bs-body-color); font-weight: 600; font-size: 15px; transition: all .2s ease; }
.shop-sidebar__list a:hover { background: rgba(var(--shop-primary-rgb), .08); color: var(--shop-primary); }
.shop-sidebar__list a.active { background: var(--shop-primary); color: #fff; }
.shop-sidebar .form-control { min-height: 46px; border-radius: 10px; }
.shop-sidebar .shop-search .form-control { min-height: 46px; }

.shop-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; padding: 14px 18px; border: 1px solid var(--shop-border); border-radius: 14px; background: var(--shop-surface); }
.shop-topbar__sort { display: flex; align-items: center; gap: 10px; margin: 0; }
.shop-topbar__label { margin: 0; font-size: 14px; color: var(--shop-muted-text); white-space: nowrap; }
.shop-topbar .form-select { min-width: 190px; min-height: 42px; border-radius: 10px; }

/* ---------- Card (ThemeForest look) ---------- */
.tf-card { border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.tf-card .shop-card__thumb { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--shop-border); }
.tf-card__overlay { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(15, 17, 26, .55); opacity: 0; transition: opacity .25s ease; }
.tf-card:hover .tf-card__overlay,
.tf-card:focus-within .tf-card__overlay { opacity: 1; }
@media (hover: none) { .tf-card__overlay { display: none; } }
.tf-card .shop-card__body { gap: 6px; padding: 16px 18px 16px; }
.tf-card .shop-card__title { font-size: 16px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.tf-card__by { margin: 0; font-size: 13px; color: var(--shop-muted-text); }
.tf-card__by a { color: var(--bs-body-color); font-weight: 600; }
.tf-card__by a:hover { color: var(--shop-primary); }
.tf-card__cat { margin-inline-start: 4px; }
.tf-card__footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--shop-border); }
.tf-card__price { margin-inline-start: auto; }
.tf-card .shop-card__price-current { font-size: 18px; color: var(--shop-primary); }

/* ---------- Item page ---------- */
.tf-item__trail ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 13px; color: var(--shop-muted-text); }
.tf-item__trail li + li::before { content: "/"; margin-inline-end: 6px; opacity: .6; }
.tf-item__trail a { color: var(--shop-muted-text); }
.tf-item__trail a:hover { color: var(--shop-primary); }
.tf-item__head { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--shop-border); }
.tf-item__title { margin: 0 0 12px; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; line-height: 1.25; }
.tf-item__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 14px; color: var(--shop-muted-text); }
.tf-item__sub a { color: var(--shop-primary); font-weight: 600; }

.tf-item .product-gallery__main { box-shadow: 0 2px 12px rgba(0, 0, 0, .05); }
.tf-item .product-gallery__thumb { width: 96px; height: 70px; }
.tf-item .product-tabs__nav .nav-link { font-size: 17px; }
.tf-item .product-tabs .tab-content { line-height: 1.85; }
.tf-item .product-tabs .tab-content img { max-width: 100%; height: auto; border-radius: 10px; }

.tf-buy { position: sticky; top: 100px; display: grid; gap: 18px; }
.tf-buy__card { padding: 24px; border: 1px solid var(--shop-border); border-radius: 14px; background: var(--shop-surface); box-shadow: 0 2px 12px rgba(0, 0, 0, .04); }
.tf-buy__price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.tf-buy__price { font-size: 34px; font-weight: 800; line-height: 1; color: var(--shop-primary); }
.tf-buy__price-row .product-info__price-old { margin-inline-start: 8px; }
.tf-buy__excerpt { margin-bottom: 18px; font-size: 14px; line-height: 1.8; color: var(--shop-muted-text); }
.tf-buy .product-info__btn { min-height: 52px; border-radius: 12px; }
.tf-buy__included { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--shop-border); }
.tf-buy .product-qty { width: 100%; }
.tf-buy .product-filters .form-select,
.tf-buy .product-filters .form-control { border-radius: 10px; }

.tf-meta__title { margin: 0 0 14px; font-size: 16px; font-weight: 800; }
.tf-meta__list { margin: 0; display: grid; }
.tf-meta__list > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--shop-border); font-size: 14px; }
.tf-meta__list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.tf-meta__list dt { margin: 0; font-weight: 600; color: var(--shop-muted-text); }
.tf-meta__list dd { margin: 0; text-align: end; font-weight: 600; }
.tf-meta__list dd a { color: var(--shop-primary); }

.tf-buy__share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 4px; }

@media (max-width: 991.98px) {
    .shop-sidebar,
    .tf-buy { position: static; }
}
[data-bs-theme="dark"] .tf-card { box-shadow: none; }
[data-bs-theme="dark"] .tf-buy__card,
[data-bs-theme="dark"] .tf-item .product-gallery__main { box-shadow: none; }

/* ---------- Round 2 adjustments ---------- */
.shop-sidebar__list--sub { margin: 2px 0 6px; padding-inline-start: 14px; border-inline-start: 2px solid var(--shop-border); margin-inline-start: 12px; }
.shop-sidebar__list--sub a { font-size: 14px; font-weight: 500; padding: 6px 10px; }

/* sort box: natural width, not full width */
.shop-topbar__sort { flex: 0 0 auto; width: auto; }
.shop-topbar__sort .form-select { width: 220px !important; max-width: 100%; flex: 0 0 220px; }

/* smaller "Item details" heading */
.tf-meta__title { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--shop-muted-text); }

/* bigger, clearer price */
.tf-buy__price-row { align-items: center; margin: -24px -24px 20px; padding: 22px 24px; border-bottom: 1px solid var(--shop-border); border-radius: 14px 14px 0 0; background: rgba(var(--shop-primary-rgb), .07); flex-wrap: wrap; }
.tf-buy__price { display: inline-block; font-size: clamp(40px, 4.4vw, 52px); font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--shop-primary); }
.tf-buy__price-row .product-info__price-old { font-size: 20px; }
.tf-buy__price-row .product-info__save { font-size: 14px; padding: 6px 14px; }

/* ---------- Round 3 ---------- */

/* Cards: banners are uploaded at 1600x800 (2:1) - show the whole image, never crop it */
.tf-card .shop-card__thumb,
.shop-card__thumb { aspect-ratio: 2 / 1; background: var(--shop-muted-bg); }
.shop-card__img { object-fit: contain !important; object-position: center; }
.shop-card:hover .shop-card__img { transform: none; }

/* Headings inside shop boxes must not inherit Infinia's huge heading sizes */
.shop-sidebar__title,
.tf-meta__title,
.product-spec__title,
.tf-buy__included-title { margin: 0 0 14px !important; font-size: 12px !important; font-weight: 800 !important; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4 !important; color: var(--shop-muted-text) !important; }
.tf-buy__included-title { margin-bottom: 12px !important; }
.tf-card .shop-card__title { font-size: 16px !important; line-height: 1.45 !important; }

/* Purchase card */
.tf-buy__card { overflow: hidden; }
.tf-buy__price-row { display: block; margin: -24px -24px 22px !important; padding: 20px 24px 22px !important; border-radius: 0 !important; border-bottom: 1px solid var(--shop-border); background: rgba(var(--shop-primary-rgb), .08) !important; }
.tf-buy__label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--shop-muted-text); }
.tf-buy__price-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.tf-buy__price { font-size: clamp(40px, 4.4vw, 54px) !important; font-weight: 800; line-height: 1 !important; letter-spacing: -.02em; color: var(--shop-primary) !important; }
.tf-buy__old { font-size: 20px; color: var(--shop-muted-text); text-decoration: line-through; }
.tf-buy__save { display: inline-flex; padding: 5px 14px; border-radius: 50rem; background: #e5484d; color: #fff; font-size: 13px; font-weight: 700; }
.tf-buy__excerpt { margin: 0 0 20px; padding: 0; font-size: 14px; line-height: 1.8; color: var(--shop-muted-text); word-break: break-word; }

.tf-btn { display: flex !important; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px !important; font-size: 16px; font-weight: 700; text-decoration: none; transition: all .2s ease; }
.tf-btn--primary { border: 2px solid var(--shop-primary) !important; background: var(--shop-primary) !important; color: #fff !important; }
.tf-btn--primary:hover { opacity: .92; box-shadow: 0 8px 20px rgba(var(--shop-primary-rgb), .3); }
.tf-btn--outline { border: 2px solid var(--shop-primary) !important; background: transparent !important; color: var(--shop-primary) !important; }
.tf-btn--outline:hover { background: var(--shop-primary) !important; color: #fff !important; }

.tf-buy__included { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--shop-border); }

/* Item details rows */
.tf-meta { padding: 22px 24px !important; }
.tf-meta__list { margin: 0; padding: 0; display: block; }
.tf-meta__list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--shop-border); font-size: 14px; }
.tf-meta__list > div:first-child { padding-top: 0; }
.tf-meta__list dt { flex: 0 0 auto; margin: 0; font-weight: 600; color: var(--shop-muted-text); }
.tf-meta__list dd { margin: 0; text-align: end; font-weight: 700; word-break: break-word; }
.tf-meta__list dd a { color: var(--shop-primary); font-weight: 700; }

/* ==========================================================================
   Round 4 - professional product card (.pcard) + dark mode palette
   ========================================================================== */

/* Dark palette for every shop surface: one consistent set instead of mixed greys */
[data-bs-theme="dark"] {
    --shop-surface: #1a1a2b;
    --shop-muted-bg: #13131f;
    --shop-border: rgba(255, 255, 255, .1);
    --shop-muted-text: #a9aabd;
}
[data-bs-theme="dark"] .shop-sidebar__box,
[data-bs-theme="dark"] .shop-topbar,
[data-bs-theme="dark"] .tf-buy__card,
[data-bs-theme="dark"] .product-spec,
[data-bs-theme="dark"] .cart-summary,
[data-bs-theme="dark"] .cart-item { background: var(--shop-surface) !important; border-color: var(--shop-border) !important; }
[data-bs-theme="dark"] .tf-buy__price-row { background: rgba(var(--shop-primary-rgb), .16) !important; border-bottom-color: var(--shop-border); }
[data-bs-theme="dark"] .tf-buy__price { color: #b79cff !important; }
[data-bs-theme="dark"] .shop-sidebar .form-control,
[data-bs-theme="dark"] .shop-topbar .form-select,
[data-bs-theme="dark"] .tf-buy .form-control,
[data-bs-theme="dark"] .tf-buy .form-select,
[data-bs-theme="dark"] .product-qty { background-color: var(--shop-muted-bg) !important; border-color: var(--shop-border) !important; color: var(--bs-body-color) !important; }
[data-bs-theme="dark"] .tf-meta__list > div,
[data-bs-theme="dark"] .tf-buy__included { border-color: var(--shop-border); }
[data-bs-theme="dark"] .tf-btn--outline { color: #b79cff !important; border-color: #b79cff !important; }
[data-bs-theme="dark"] .tf-btn--outline:hover { background: var(--shop-primary) !important; border-color: var(--shop-primary) !important; color: #fff !important; }

/* ---------- Product card ---------- */
.pcard {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--shop-border);
    border-radius: 18px;
    background: var(--shop-surface);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.pcard:hover { transform: translateY(-5px); border-color: rgba(var(--shop-primary-rgb), .5); box-shadow: 0 18px 40px rgba(var(--shop-primary-rgb), .16); }

.pcard__media { position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--shop-muted-bg); }
.pcard__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s ease; }
.pcard:hover .pcard__img { transform: scale(1.06); }
.pcard__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(10, 10, 25, .35), transparent); pointer-events: none; }

.pcard__badges { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; display: flex; gap: 6px; }
.pcard__badge { padding: 4px 11px; border-radius: 50rem; font-size: 12px; font-weight: 800; line-height: 1.4; color: #fff; background: var(--shop-primary); }
.pcard__badge--sale { background: #ef4458; }
.pcard__badge--out { background: #4b5563; }
.pcard__type { position: absolute; z-index: 2; bottom: 10px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 50rem; font-size: 11px; font-weight: 700; color: #fff; background: rgba(15, 15, 30, .62); backdrop-filter: blur(6px); }

.pcard__body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 16px 18px 18px; }
.pcard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 20px; }
.pcard__cat { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--shop-primary); }
.pcard__cat:hover { text-decoration: underline; }
.pcard__rating { display: inline-flex; align-items: center; gap: 5px; }
.pcard__rating-count { font-size: 12px; color: var(--shop-muted-text); }

.pcard__title { margin: 0 !important; font-size: 17px !important; font-weight: 700; line-height: 1.45 !important; min-height: 2.9em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__title a { color: var(--bs-body-color); transition: color .2s ease; }
.pcard__title a:hover { color: var(--shop-primary); }
.pcard__brand { font-size: 13px; color: var(--shop-muted-text); }
.pcard__brand:hover { color: var(--shop-primary); }

.pcard__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--shop-border); }
.pcard__price { display: flex; flex-direction: column; line-height: 1.15; }
.pcard__price-now { font-size: 22px; font-weight: 800; color: var(--shop-primary); }
[data-bs-theme="dark"] .pcard__price-now { color: #b79cff; }
.pcard__price-old { font-size: 13px; color: var(--shop-muted-text); text-decoration: line-through; }
.pcard__actions { display: flex; align-items: center; gap: 8px; }
.pcard__btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; border-radius: 50rem; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s ease; }
.pcard__btn--ghost { padding: 0 18px; border: 1.5px solid var(--shop-border); color: var(--bs-body-color); background: transparent; }
.pcard__btn--ghost:hover { border-color: var(--shop-primary); color: var(--shop-primary); }
.pcard__btn--cart { width: 40px; padding: 0; border: 0; background: var(--shop-primary); color: #fff; }
.pcard__btn--cart:hover { transform: scale(1.08); box-shadow: 0 8px 18px rgba(var(--shop-primary-rgb), .38); }

@media (max-width: 575.98px) {
    .pcard__price-now { font-size: 20px; }
}

/* ---------- Round 5: card spacing + short description ---------- */
.pcard__body { gap: 6px; padding: 14px 18px 16px; }
.pcard__top { min-height: 0; }
.pcard__title { min-height: 0 !important; }
.pcard__excerpt { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--shop-muted-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Round 6: mobile header + RTL selects ---------- */

/* Header: keep logo + shop buttons + header controls on ONE row on tablets / phones. */
@media (max-width: 991.98px) {
    .navbar > .container,
    .navbar > .container-fluid { flex-wrap: nowrap !important; gap: 4px; }
    .navbar .navbar-brand { min-width: 0; max-width: 38vw; margin-inline-end: 0; }
    .navbar .navbar-brand img { max-width: 100%; height: auto; max-height: 40px; object-fit: contain; }
    .shop-header-actions { margin-inline-start: auto; }
    .shop-header-action { width: 38px; height: 38px; }
}
@media (max-width: 575.98px) {
    .shop-header-action { width: 34px; height: 34px; border-radius: 10px; }
    .shop-header-action svg { width: 20px; height: 20px; }
    .shop-header-badge { top: 0; min-width: 16px; height: 16px; font-size: 10px; line-height: 16px; padding: 0 4px; }
    .navbar .dark-light-switcher { margin-inline-start: .25rem !important; margin-inline-end: .25rem !important; }
}

/* Selects: the native arrow must sit on the "end" side and never under the text (LTR right, RTL left). */
.shop-topbar .form-select,
.shop-sidebar .form-select,
.tf-buy .form-select,
.cart-summary .form-select {
    padding-block: .55rem;
    padding-left: 1.25rem;
    padding-right: 2.6rem;
    background-position: right .9rem center;
    background-repeat: no-repeat;
}
[dir="rtl"] .shop-topbar .form-select,
[dir="rtl"] .shop-sidebar .form-select,
[dir="rtl"] .tf-buy .form-select,
[dir="rtl"] .cart-summary .form-select {
    padding-right: 1.25rem;
    padding-left: 2.6rem;
    background-position: left .9rem center;
}
.shop-topbar__sort { flex-wrap: nowrap; }

/* ---------- Round 7: boxed header icons (same look as the theme switcher button) ---------- */
.shop-header-actions--boxed { gap: 8px; margin-inline-end: 8px; }
.shop-header-actions--boxed .shop-header-action {
    width: 42px;
    height: 42px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 12px;
    background: #fff;
}
.shop-header-actions--boxed .shop-header-action:hover { border-color: var(--shop-primary); background: rgba(var(--shop-primary-rgb), .08); }
.shop-header-actions--boxed .shop-header-badge { top: -7px; inset-inline-end: -7px; box-shadow: 0 0 0 2px #fff; }
[data-bs-theme="dark"] .shop-header-actions--boxed .shop-header-action { background: var(--shop-surface); border-color: var(--shop-border); }
[data-bs-theme="dark"] .shop-header-actions--boxed .shop-header-badge { box-shadow: 0 0 0 2px var(--shop-surface); }

@media (max-width: 991.98px) {
    .shop-header-actions--boxed { gap: 6px; margin-inline-end: 6px; }
    .shop-header-actions--boxed .shop-header-action { width: 40px; height: 40px; }
}
@media (max-width: 575.98px) {
    .shop-header-actions--boxed { gap: 5px; margin-inline-end: 4px; }
    .shop-header-actions--boxed .shop-header-action { width: 36px; height: 36px; border-radius: 10px; }
}

/* ---------- Round 8: desktop - keep shop icons right next to the header controls ----------
   Infinia's header row uses justify-content: space-between, so every widget (menu, shop icons, controls)
   gets an equal gap. An auto margin on the start side of the shop icons absorbs the free space instead,
   which pushes them against the Header Controls widget that follows them. */
@media (min-width: 992px) {
    .shop-header-actions { margin-inline-start: auto; margin-inline-end: 10px; }
    .shop-header-actions--plain { margin-inline-end: 4px; }
    .shop-header-actions--boxed { margin-inline-end: 12px; }
}

/* ---------- Round 9: Header Shop Actions is now the only right-side header widget ---------- */
.shop-header-actions { gap: 4px; }
.shop-header-actions--boxed { gap: 8px; }
.shop-header-actions .dark-light-switcher { margin: 0 !important; flex-shrink: 0; }
.shop-header-actions .shop-header-cta { margin-inline-start: 6px; white-space: nowrap; }
.shop-header-actions .burger-icon-header { margin-inline-start: 4px; }
[data-bs-theme="dark"] .shop-header-actions .dark-light-switcher { background: var(--shop-surface) !important; border-color: var(--shop-border) !important; }
@media (min-width: 992px) {
    .shop-header-actions,
    .shop-header-actions--plain,
    .shop-header-actions--boxed { margin-inline-end: 0; }
}
@media (max-width: 991.98px) {
    .shop-header-actions--boxed { gap: 6px; margin-inline-end: 0; }
}
@media (max-width: 575.98px) {
    .shop-header-actions--boxed { gap: 5px; }
    .shop-header-actions .dark-light-switcher { width: 36px; height: 36px; }
}

/* ---------- Round 10: compact action button on phones ---------- */
@media (max-width: 767.98px) {
    .shop-header-actions .shop-header-cta { margin-inline-start: 2px; padding: 7px 12px; font-size: 13px; line-height: 1.3; border-radius: 10px; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 575.98px) {
    .shop-header-actions .shop-header-cta { padding: 6px 10px; font-size: 12px; max-width: 28vw; }
}

/* ==========================================================================
   Round 11 - button variants.
   Infinia redefines the base .btn variables after Bootstrap loads, and only re-themes a few variants
   (primary, outline-secondary, success, danger, warning, dark). Every other Bootstrap variant lost its
   colour and border and only showed them on hover. Used by the shop, the cart, checkout and the
   customer area (btn-outline-primary / -danger / -info, btn-secondary, btn-info, btn-light ...).
   ========================================================================== */
.btn.btn-outline-primary {
    --bs-btn-color: var(--shop-primary);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--shop-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--shop-primary);
    --bs-btn-hover-border-color: var(--shop-primary);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--shop-primary);
    --bs-btn-active-border-color: var(--shop-primary);
    --bs-btn-disabled-color: var(--shop-primary);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--shop-primary);
}
[data-bs-theme="dark"] .btn.btn-outline-primary { --bs-btn-color: #b79cff; --bs-btn-border-color: #b79cff; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--shop-primary); --bs-btn-hover-border-color: var(--shop-primary); --bs-btn-disabled-color: #b79cff; --bs-btn-disabled-border-color: #b79cff; }
.btn.btn-outline-danger {
    --bs-btn-color: #e5484d;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: #e5484d;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #e5484d;
    --bs-btn-hover-border-color: #e5484d;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #e5484d;
    --bs-btn-active-border-color: #e5484d;
    --bs-btn-disabled-color: #e5484d;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #e5484d;
}
[data-bs-theme="dark"] .btn.btn-outline-danger { --bs-btn-color: #ff7b80; --bs-btn-border-color: #ff7b80; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #e5484d; --bs-btn-hover-border-color: #e5484d; --bs-btn-disabled-color: #ff7b80; --bs-btn-disabled-border-color: #ff7b80; }
.btn.btn-outline-success {
    --bs-btn-color: #2f9e6b;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: #2f9e6b;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #2f9e6b;
    --bs-btn-hover-border-color: #2f9e6b;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #2f9e6b;
    --bs-btn-active-border-color: #2f9e6b;
    --bs-btn-disabled-color: #2f9e6b;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #2f9e6b;
}
[data-bs-theme="dark"] .btn.btn-outline-success { --bs-btn-color: #4cc790; --bs-btn-border-color: #4cc790; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #2f9e6b; --bs-btn-hover-border-color: #2f9e6b; --bs-btn-disabled-color: #4cc790; --bs-btn-disabled-border-color: #4cc790; }
.btn.btn-outline-info {
    --bs-btn-color: #0ea5e9;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: #0ea5e9;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0ea5e9;
    --bs-btn-hover-border-color: #0ea5e9;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0ea5e9;
    --bs-btn-active-border-color: #0ea5e9;
    --bs-btn-disabled-color: #0ea5e9;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #0ea5e9;
}
[data-bs-theme="dark"] .btn.btn-outline-info { --bs-btn-color: #4cc4ff; --bs-btn-border-color: #4cc4ff; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #0ea5e9; --bs-btn-hover-border-color: #0ea5e9; --bs-btn-disabled-color: #4cc4ff; --bs-btn-disabled-border-color: #4cc4ff; }
.btn.btn-outline-warning {
    --bs-btn-color: #d98a00;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: #d98a00;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #d98a00;
    --bs-btn-hover-border-color: #d98a00;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #d98a00;
    --bs-btn-active-border-color: #d98a00;
    --bs-btn-disabled-color: #d98a00;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #d98a00;
}
[data-bs-theme="dark"] .btn.btn-outline-warning { --bs-btn-color: #ffb938; --bs-btn-border-color: #ffb938; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #d98a00; --bs-btn-hover-border-color: #d98a00; --bs-btn-disabled-color: #ffb938; --bs-btn-disabled-border-color: #ffb938; }
.btn.btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #6b7280;
    --bs-btn-border-color: #6b7280;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #4b5563;
    --bs-btn-hover-border-color: #4b5563;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #4b5563;
    --bs-btn-active-border-color: #4b5563;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #6b7280;
    --bs-btn-disabled-border-color: #6b7280;
}
.btn.btn-info {
    --bs-btn-color: #fff;
    --bs-btn-bg: #0ea5e9;
    --bs-btn-border-color: #0ea5e9;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0284c7;
    --bs-btn-hover-border-color: #0284c7;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0284c7;
    --bs-btn-active-border-color: #0284c7;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #0ea5e9;
    --bs-btn-disabled-border-color: #0ea5e9;
}
.btn.btn-light { --bs-btn-color: #111827; --bs-btn-bg: #fff; --bs-btn-border-color: var(--shop-border); --bs-btn-hover-color: #111827; --bs-btn-hover-bg: #f3f4f6; --bs-btn-hover-border-color: var(--shop-border); --bs-btn-active-bg: #e5e7eb; --bs-btn-active-border-color: var(--shop-border); --bs-btn-active-color: #111827; }
[data-bs-theme="dark"] .btn.btn-light { --bs-btn-color: #eceef2; --bs-btn-bg: var(--shop-surface); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, .1); --bs-btn-active-bg: rgba(255, 255, 255, .14); --bs-btn-active-color: #fff; }
[data-bs-theme="dark"] .btn.btn-secondary { --bs-btn-bg: #3b4252; --bs-btn-border-color: #3b4252; --bs-btn-hover-bg: #4b5468; --bs-btn-hover-border-color: #4b5468; }

/* shop buttons keep a comfortable, even size */
.shop-cart .btn,
.shop-empty .btn,
.cart-summary .btn { --bs-btn-padding-y: 13px; --bs-btn-padding-x: 26px; --bs-btn-border-radius: 12px; }
.cart-summary__coupon .btn { --bs-btn-padding-x: 20px; }
