/* Stage 1 foundation: preserve the MultiShop layout while clearly marking missing brand imagery. */
.kcbf-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    color: #4f4a43;
    text-align: center;
    background: #f1eee8;
    border: 1px dashed #a49b8e;
}

.kcbf-photo-placeholder i {
    font-size: 1.35rem;
}

.kcbf-photo-placeholder small {
    max-width: 18rem;
    line-height: 1.35;
}

.kcbf-photo-placeholder--category {
    height: 100%;
    min-height: 100px;
    font-size: 0.72rem;
}

.kcbf-category-icon {
    min-height: 100px;
    color: #6b6258;
    background: #f1eee8;
    font-size: 1.8rem;
}

.kcbf-photo-placeholder--product {
    min-height: 245px;
}

.kcbf-image-note {
    position: absolute;
    z-index: 2;
    right: 0.5rem;
    bottom: 0.5rem;
    max-width: calc(100% - 1rem);
    padding: 0.25rem 0.5rem;
    color: #fff;
    font-size: 0.7rem;
    line-height: 1.25;
    text-align: right;
    background: rgba(33, 37, 41, 0.82);
}

.kcbf-empty-state {
    color: #4f4a43;
    background: #f8f7f4;
    border: 1px solid #e6e1d8;
}

.kcbf-empty-state h3,
.kcbf-empty-state h4,
.kcbf-empty-state h5 {
    color: #34302b;
}

.kcbf-brand-mark {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    max-width: 100%;
    line-height: 1;
}

.kcbf-brand-logo {
    display: block;
    width: clamp(180px, 18vw, 220px);
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
}

.kcbf-brand-mark--mobile {
    width: min(230px, calc(100vw - 6rem));
}

.kcbf-brand-mark--mobile .kcbf-brand-logo {
    width: 100%;
}

@media (max-width: 575.98px) {
    .kcbf-brand-mark:not(.kcbf-brand-mark--mobile) .kcbf-brand-logo {
        width: min(220px, calc(100vw - 2rem));
    }
}

@media (max-width: 380px) {
    .kcbf-brand-mark--mobile {
        width: min(205px, calc(100vw - 5.5rem));
    }
}

.kcbf-location-placeholder {
    color: #4f4a43;
    background: #f1eee8;
    border: 1px dashed #a49b8e;
}

.kcbf-setup-notice {
    font-size: 0.875rem;
}

[data-detail-content][hidden] {
    display: none !important;
}

[data-account-menu] [hidden] {
    display: none !important;
}

.kcbf-commerce-toast {
    position: fixed;
    z-index: 1080;
    right: 1rem;
    bottom: 1rem;
    max-width: min(26rem, calc(100vw - 2rem));
    margin: 0;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.18);
}

@media (max-width: 991.98px) {
    .kcbf-photo-placeholder--product {
        min-height: 210px;
    }
}

.kcbf-cart-table {
    min-width: 760px;
    table-layout: auto;
}

.kcbf-cart-table th,
.kcbf-cart-table td {
    vertical-align: middle;
}

.kcbf-cart-product-image,
.kcbf-cart-no-image {
    display: flex;
    width: 124px;
    height: 124px;
    flex: 0 0 124px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.kcbf-cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kcbf-cart-no-image {
    color: #6b6258;
    background: #f1eee8;
    font-size: 1.7rem;
}

.kcbf-cart-product-details {
    min-width: 0;
    margin-left: 1rem;
}

.kcbf-cart-product-name {
    display: inline-block;
    margin-bottom: 0.4rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.kcbf-quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.kcbf-quantity-step {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #ddd;
}

.kcbf-cart-quantity {
    width: 3.6rem;
    min-width: 3.6rem;
    height: 44px;
    padding: 0.35rem;
}

.kcbf-cart-product a {
    overflow-wrap: anywhere;
}

.kcbf-cart-quantity {
    min-width: 4.5rem;
}

[data-commerce-persistence],
[data-cart-notice] {
    line-height: 1.5;
}

[data-shop-grid][data-view-mode="list"] {
    display: flex;
    flex-direction: column;
}

[data-shop-grid][data-view-mode="list"] > div:not(.col-12) {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

[data-shop-grid][data-view-mode="list"] .product-item:not([data-catalog-placeholder]) {
    display: flex;
    align-items: stretch;
}

[data-shop-grid][data-view-mode="list"] .product-item:not([data-catalog-placeholder]) > .product-img {
    width: min(34%, 280px);
    min-width: 180px;
    flex: 0 0 min(34%, 280px);
}

[data-shop-grid][data-view-mode="list"] .product-item:not([data-catalog-placeholder]) > .text-center {
    flex: 1 1 auto;
    text-align: left !important;
    align-self: center;
    padding: 1rem 1.25rem !important;
}

[data-shop-grid][data-view-mode="list"] .product-item:not([data-catalog-placeholder]) > .text-center .justify-content-center {
    justify-content: flex-start !important;
}

@media (max-width: 767.98px) {
    .kcbf-cart-table-wrap { width: 100%; overflow-x: visible; }

    .kcbf-cart-table {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        table-layout: fixed;
    }

    .kcbf-cart-table thead {
        display: none;
    }

    .kcbf-cart-table,
    .kcbf-cart-table tbody {
        display: block;
        width: 100%;
    }

    .kcbf-cart-table tbody tr:not(.kcbf-cart-empty) {
        display: block;
        width: 100%;
        margin-bottom: 0.85rem;
        background: #fff;
        border: 1px solid #e8e8e8;
        border-radius: 0.35rem;
        overflow: hidden;
        box-shadow: 0 0.15rem 0.5rem rgba(0, 0, 0, 0.04);
    }

    .kcbf-cart-table tbody tr:not(.kcbf-cart-empty) td {
        display: flex;
        width: 100%;
        min-width: 0;
        align-items: center;
        justify-content: space-between;
        padding: 0.7rem !important;
        text-align: right !important;
        border-top: 1px solid #f0f0f0;
        overflow-wrap: anywhere;
    }

    .kcbf-cart-table tbody tr:not(.kcbf-cart-empty) td::before {
        margin-right: 1rem;
        font-weight: 700;
        text-align: left;
        content: attr(data-label);
    }

    .kcbf-cart-table tbody tr:not(.kcbf-cart-empty) td.kcbf-cart-product-cell {
        display: block;
        text-align: left !important;
        padding: 0.85rem !important;
    }

    .kcbf-cart-product-image,
    .kcbf-cart-no-image {
        width: clamp(76px, 24vw, 104px);
        height: clamp(76px, 24vw, 104px);
        flex-basis: clamp(76px, 24vw, 104px);
    }

    .kcbf-cart-product-details { margin-left: 0.75rem; }

    .kcbf-cart-product-name {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .kcbf-cart-table .kcbf-quantity-control {
        gap: 0.25rem;
    }

    .kcbf-cart-table .kcbf-quantity-step {
        width: 44px;
        min-width: 44px;
        height: 44px;
    }

    .kcbf-cart-table .kcbf-cart-quantity {
        width: 3.25rem;
        min-width: 3.25rem;
        height: 44px;
    }

    .kcbf-cart-unavailable-quantity {
        color: #a12d2d;
        font-weight: 700;
    }

    .kcbf-cart-table tbody tr:not(.kcbf-cart-empty) td.kcbf-cart-product-cell::before {
        display: block;
        margin-bottom: 0.5rem;
    }

    .kcbf-cart-empty td {
        display: block;
        width: 100%;
    }

    [data-shop-grid][data-view-mode="list"] .product-item:not([data-catalog-placeholder]) {
        display: flex;
        min-height: 132px;
        align-items: stretch;
    }

    [data-shop-grid][data-view-mode="list"] .product-item:not([data-catalog-placeholder]) > .product-img {
        width: 40%;
        min-width: 96px;
        flex: 0 0 40%;
    }

    [data-shop-grid][data-view-mode="list"] .product-item:not([data-catalog-placeholder]) > .text-center {
        min-width: 0;
        padding: 0.6rem !important;
        text-align: left !important;
    }

    [data-shop-grid][data-view-mode="list"] .product-item:not([data-catalog-placeholder]) > .text-center .justify-content-center {
        justify-content: flex-start !important;
    }

    [data-shop-grid][data-view-mode="list"] .product-item:not([data-catalog-placeholder]) .h6 {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}


/* Managed Help/FAQ copy is plain text; preserve authored line breaks without HTML rendering. */
.kcbf-preserve-lines {
    white-space: pre-line;
}

.kcbf-shop-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.kcbf-shop-filter-header [data-mobile-filter-close] {
    display: none;
}

.kcbf-shop-filter-group > summary {
    margin-bottom: 0.65rem;
    color: #3d342b;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.kcbf-shop-filter-group > summary::marker {
    color: #f4c84a;
}

.kcbf-shop-filter-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 0;
}

.kcbf-shop-filter-actions .btn {
    flex: 1 1 auto;
}

.kcbf-mobile-filter-trigger,
.kcbf-filter-backdrop {
    display: none;
}

.kcbf-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 0.8rem;
}

.kcbf-active-filters[hidden] {
    display: none !important;
}

.kcbf-filter-chip {
    padding: 0.3rem 0.55rem;
    color: #493c25;
    background: #fff8df;
    border: 1px solid #e9d48a;
    border-radius: 1rem;
    font-size: 0.75rem;
}

.kcbf-filter-chip:hover,
.kcbf-filter-chip:focus-visible {
    background: #fff0ba;
}

.kcbf-color-swatch {
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    margin-right: 0.4rem;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    vertical-align: -0.08rem;
}

@media (max-width: 767.98px) {
    .kcbf-shop-filter-sidebar {
        position: fixed;
        z-index: 1061;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(90vw, 390px);
        max-width: 100%;
        padding: 1rem 1rem 5.5rem;
        overflow-x: hidden;
        overflow-y: auto;
        background: #fff;
        box-shadow: 0.5rem 0 2rem rgba(0, 0, 0, 0.18);
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform 180ms ease, visibility 180ms ease;
    }

    .kcbf-shop-filter-sidebar.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .kcbf-shop-filter-header [data-mobile-filter-close] {
        display: inline-block;
    }

    .kcbf-shop-filter-group > summary {
        padding: 0.45rem 0;
        border-bottom: 1px solid #e9e5dc;
    }

    .kcbf-shop-filter-actions {
        position: sticky;
        z-index: 1;
        right: 0;
        bottom: -1rem;
        margin: 0 -1rem -5.5rem;
        padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid #e9e5dc;
    }

    .kcbf-mobile-filter-trigger {
        display: inline-block;
        min-height: 38px;
        margin-right: 0.4rem;
    }

    .kcbf-filter-backdrop:not([hidden]) {
        position: fixed;
        z-index: 1060;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        background: rgba(23, 22, 19, 0.48);
        border: 0;
    }

    body.kcbf-filter-open {
        overflow: hidden;
    }

    .kcbf-shop-toolbar {
        align-items: flex-start !important;
        gap: 0.65rem;
        margin-bottom: 0.65rem !important;
    }

    .kcbf-shop-toolbar > div:first-child {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .kcbf-shop-toolbar > div:last-child {
        flex: 1 1 100%;
        margin-left: 0 !important;
        gap: 0.4rem;
    }

    .kcbf-shop-toolbar select {
        min-height: 40px;
        flex: 1 1 8rem;
        margin-right: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kcbf-shop-filter-sidebar {
        transition: none;
    }
}


/* Logo-led storefront theme: sampled from the supplied plum, orange, and warm-neutral artwork. */
:root {
    --kcbf-plum: #73143a;
    --kcbf-orange: #c45116;
    --kcbf-ink: #332c2d;
    --kcbf-warm-white: #fffdfb;
    --kcbf-cream: #f8f4ef;
    --kcbf-border: #e7ded7;
    --kcbf-muted: #6b625f;
}

html,
body {
    background-color: var(--kcbf-warm-white);
}

body {
    color: var(--kcbf-ink);
}

a,
a.text-primary,
.text-primary {
    color: var(--kcbf-plum) !important;
}

a:hover,
a:focus-visible {
    color: var(--kcbf-orange);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--kcbf-plum);
}

.bg-primary,
.btn-primary,
.dropdown-item.active,
.dropdown-item:active {
    color: #fff !important;
    background-color: var(--kcbf-plum) !important;
    border-color: var(--kcbf-plum) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.bg-primary:hover,
.bg-primary:focus {
    color: #fff !important;
    background-color: #59102d !important;
    border-color: #59102d !important;
}

.btn-primary:focus,
.btn-primary.focus,
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
.form-control:focus,
.custom-select:focus {
    outline-color: var(--kcbf-orange);
    box-shadow: 0 0 0 0.2rem rgba(115, 20, 58, 0.22);
}

.bg-secondary,
.kcbf-empty-state {
    background-color: var(--kcbf-cream) !important;
}

.bg-light {
    background-color: var(--kcbf-warm-white) !important;
}

.bg-dark {
    background-color: var(--kcbf-plum) !important;
}

/* The shared dark wrapper is retained structurally but becomes a quiet, light navigation surface. */
.container-fluid.bg-dark.mb-30,
.container-fluid.bg-dark.mb-30 > .row,
.container-fluid.bg-dark.mb-30 .navbar.bg-dark {
    background-color: var(--kcbf-warm-white) !important;
}

.container-fluid.bg-dark.mb-30 {
    margin-bottom: 0.75rem !important;
    border-top: 1px solid var(--kcbf-border);
    border-bottom: 1px solid var(--kcbf-border);
}

.container-fluid.bg-dark.mb-30 .btn.bg-primary,
.container-fluid.bg-dark.mb-30 .btn.bg-primary .text-dark {
    color: #fff !important;
}

.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-nav .show > .nav-link,
.navbar-dark .navbar-nav .active > .nav-link,
.navbar-dark .navbar-nav .nav-link.show,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--kcbf-ink);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .show > .nav-link {
    color: var(--kcbf-plum);
}

.navbar-dark .navbar-nav .nav-link.active {
    box-shadow: inset 0 -2px 0 var(--kcbf-orange);
}

.navbar-dark .navbar-toggler {
    color: var(--kcbf-plum);
    border-color: var(--kcbf-border);
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2373143a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar .text-primary,
.navbar .text-secondary,
.navbar .border-secondary,
.row.bg-secondary .text-dark,
.row.bg-secondary .border-dark {
    color: var(--kcbf-plum) !important;
    border-color: var(--kcbf-border) !important;
}

.row.bg-secondary {
    align-items: center;
    min-height: 44px;
    color: var(--kcbf-ink);
    background-color: var(--kcbf-cream) !important;
    border-bottom: 1px solid var(--kcbf-border);
}

.row.bg-secondary a.text-body {
    color: var(--kcbf-ink) !important;
}

.row.bg-secondary a.text-body:hover,
.row.bg-secondary a.text-body:focus-visible {
    color: var(--kcbf-plum) !important;
}

.row.bg-secondary .btn-light {
    color: var(--kcbf-ink);
    background-color: #fff;
    border-color: var(--kcbf-border);
}

.row.bg-secondary [data-wishlist-link],
.row.bg-secondary [data-cart-count] {
    min-width: 40px;
    min-height: 40px;
    color: var(--kcbf-plum) !important;
}

.row.bg-secondary .badge {
    color: var(--kcbf-plum) !important;
    background: #fff;
    border-color: var(--kcbf-plum) !important;
}

.kcbf-brand-mark,
.kcbf-brand-mark--mobile {
    background: transparent;
}

.kcbf-brand-mark--mobile {
    flex: 0 1 230px;
}

.navbar-collapse {
    background-color: transparent;
}

.dropdown-menu,
.card,
.product-item,
.form-control,
.custom-select {
    border-color: var(--kcbf-border);
}

.form-control,
.custom-select {
    color: var(--kcbf-ink);
    background-color: #fff;
}

.form-control:focus,
.custom-select:focus {
    border-color: var(--kcbf-plum);
}

.section-title::after {
    border-top-color: var(--kcbf-border);
}

.product-item .text-center,
.bg-light,
.kcbf-photo-placeholder,
.kcbf-category-icon {
    color: var(--kcbf-ink);
}

.container-fluid.bg-dark.text-secondary.mt-5 {
    color: #f8f4ef !important;
    background-color: #4d102b !important;
}

.container-fluid.bg-dark.text-secondary.mt-5 .text-secondary,
.container-fluid.bg-dark.text-secondary.mt-5 a.text-secondary,
.container-fluid.bg-dark.text-secondary.mt-5 h5,
.container-fluid.bg-dark.text-secondary.mt-5 h6 {
    color: #f8f4ef !important;
}

.container-fluid.bg-dark.text-secondary.mt-5 a:hover,
.container-fluid.bg-dark.text-secondary.mt-5 a:focus-visible {
    color: #ffc29f !important;
}

.container-fluid.bg-dark.text-secondary.mt-5 .text-primary {
    color: #ffc29f !important;
}

.container-fluid.bg-dark.text-secondary.mt-5 .border-top {
    border-color: rgba(248, 244, 239, 0.22) !important;
}

@media (max-width: 991.98px) {
    .container-fluid.bg-dark.mb-30 {
        padding-top: 0.35rem;
        padding-bottom: 0.15rem;
    }

    .container-fluid.bg-dark.mb-30 .navbar.navbar-expand-lg {
        min-height: 54px;
        padding-top: 0.2rem !important;
        padding-bottom: 0.2rem !important;
        background-color: var(--kcbf-warm-white) !important;
    }

    .container-fluid.bg-dark.mb-30 .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .container-fluid.bg-dark.mb-30 .navbar-collapse {
        margin-top: 0.45rem;
        padding: 0.3rem 0 0.5rem;
        background-color: var(--kcbf-warm-white);
        border-top: 1px solid var(--kcbf-border);
    }

    .container-fluid.bg-dark.mb-30 .navbar-nav .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0.65rem 0.75rem;
        border-bottom: 1px solid var(--kcbf-border);
    }

    .container-fluid.bg-dark.mb-30 .navbar-nav .nav-link.active {
        color: var(--kcbf-plum);
        background: var(--kcbf-cream);
        box-shadow: inset 3px 0 0 var(--kcbf-orange);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* The cart control stays tappable; its live count remains readable at zero and above. */
.row.bg-secondary .kcbf-header-cart,
.navbar .kcbf-header-cart {
    position: relative;
    z-index: 1;
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.row.bg-secondary .kcbf-header-cart [data-cart-count],
.navbar .kcbf-header-cart [data-cart-count] {
    position: relative;
    z-index: 1;
    display: inline-flex;
    min-width: 1.25rem;
    min-height: 1.25rem;
    align-items: center;
    justify-content: center;
    padding: 0.08rem 0.3rem;
    color: var(--kcbf-plum) !important;
    background: #fffaf4;
    border: 1px solid var(--kcbf-plum);
    border-radius: 999px;
    box-shadow: 0 0 0 1px #fffaf4;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.kcbf-header-cart:focus-visible {
    outline: 3px solid #a84312;
    outline-offset: 2px;
}

/* Footer foregrounds and controls remain readable on the brand's maroon surface. */
.container-fluid.bg-dark.text-secondary.mt-5 {
    color: #fffaf4 !important;
    background-color: #4d102b !important;
}
.container-fluid.bg-dark.text-secondary.mt-5,
.container-fluid.bg-dark.text-secondary.mt-5 p,
.container-fluid.bg-dark.text-secondary.mt-5 h5,
.container-fluid.bg-dark.text-secondary.mt-5 h6,
.container-fluid.bg-dark.text-secondary.mt-5 .text-secondary,
.container-fluid.bg-dark.text-secondary.mt-5 .text-primary,
.container-fluid.bg-dark.text-secondary.mt-5 .text-body,
.container-fluid.bg-dark.text-secondary.mt-5 .text-muted {
    color: #fffaf4 !important;
}
.container-fluid.bg-dark.text-secondary.mt-5 a:not(.btn) {
    color: #fffaf4 !important;
    text-underline-offset: 0.18em;
}
.container-fluid.bg-dark.text-secondary.mt-5 a:not(.btn):hover,
.container-fluid.bg-dark.text-secondary.mt-5 a:not(.btn):active {
    color: #ffd0ad !important;
    text-decoration: underline;
}
.container-fluid.bg-dark.text-secondary.mt-5 a:focus-visible,
.container-fluid.bg-dark.text-secondary.mt-5 button:focus-visible,
.container-fluid.bg-dark.text-secondary.mt-5 input:focus-visible {
    outline: 3px solid #ffd0ad;
    outline-offset: 3px;
    box-shadow: none;
}
.container-fluid.bg-dark.text-secondary.mt-5 .form-control {
    color: #29101b;
    background: #fffaf4;
    border-color: #fffaf4;
}
.container-fluid.bg-dark.text-secondary.mt-5 .form-control::placeholder {
    color: #5b4650;
    opacity: 1;
}
.container-fluid.bg-dark.text-secondary.mt-5 .form-control:disabled,
.container-fluid.bg-dark.text-secondary.mt-5 .form-control[aria-disabled="true"] {
    color: #51434a;
    background: #e8e0e3;
    opacity: 1;
}
.container-fluid.bg-dark.text-secondary.mt-5 .btn-primary {
    color: #29101b !important;
    background: #ffc29f !important;
    border-color: #ffc29f !important;
}
.container-fluid.bg-dark.text-secondary.mt-5 .btn-primary:hover,
.container-fluid.bg-dark.text-secondary.mt-5 .btn-primary:active {
    color: #fffaf4 !important;
    background: #7a2448 !important;
    border-color: #ffd0ad !important;
}
.container-fluid.bg-dark.text-secondary.mt-5 .btn-primary:disabled,
.container-fluid.bg-dark.text-secondary.mt-5 .btn-primary[aria-disabled="true"] {
    color: #29101b !important;
    background: #e8d5dc !important;
    border-color: #e8d5dc !important;
    opacity: 1;
}
.container-fluid.bg-dark.text-secondary.mt-5 [data-form-status] {
    color: #fffaf4 !important;
}
.container-fluid.bg-dark.text-secondary.mt-5 .kcbf-social-controls {
    flex-wrap: wrap;
    gap: 0.45rem;
}
.container-fluid.bg-dark.text-secondary.mt-5 .kcbf-social-controls > .btn,
.container-fluid.bg-dark.text-secondary.mt-5 .kcbf-social-unconfigured {
    margin: 0 !important;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    color: #fffaf4 !important;
    background: #6b1d3b !important;
    border: 1px solid #e9bba4 !important;
    border-radius: 0.25rem;
}
.container-fluid.bg-dark.text-secondary.mt-5 .kcbf-social-controls > .btn:hover,
.container-fluid.bg-dark.text-secondary.mt-5 .kcbf-social-controls > .btn:active {
    color: #29101b !important;
    background: #ffc29f !important;
    border-color: #fffaf4 !important;
}
.container-fluid.bg-dark.text-secondary.mt-5 .kcbf-social-unconfigured {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: not-allowed;
}
.kcbf-tiktok-icon {
    display: block;
    width: 1.2rem;
    height: 1.2rem;
}
.container-fluid.bg-dark.text-secondary.mt-5 .back-to-top {
    color: #29101b !important;
    background: #ffc29f !important;
    border-color: #ffc29f !important;
}
.container-fluid.bg-dark.text-secondary.mt-5 .back-to-top:hover,
.container-fluid.bg-dark.text-secondary.mt-5 .back-to-top:active {
    color: #fffaf4 !important;
    background: #7a2448 !important;
    border-color: #ffd0ad !important;
}

/* Keep primary controls legible against the shared dark-plum brand surface. */
.btn.btn-primary {
    color: #fffaf4 !important;
}

.btn:disabled,
.btn.disabled {
    opacity: 1;
    filter: grayscale(0.55);
    cursor: not-allowed;
}

.btn-primary:disabled,
.btn-primary.disabled {
    color: #4c3440 !important;
    background: #e8d5dc !important;
    border-color: #c8b4bc !important;
}

.btn:focus-visible,
a.btn:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid #c45116;
    outline-offset: 2px;
    box-shadow: 0 0 0 0.18rem rgba(115, 20, 58, 0.2);
}

/* Product-card controls stay visible and operable without hover (including touch). */
.product-item .product-action a.btn,
.product-item .product-action button.btn {
    margin-top: 0 !important;
    color: var(--kcbf-plum) !important;
    background: #fffaf4;
    border-color: var(--kcbf-plum);
    opacity: 1 !important;
    box-shadow: 0 1px 5px rgba(51, 44, 45, 0.18);
}

.product-item .product-action a.btn:hover,
.product-item .product-action a.btn:focus-visible,
.product-item .product-action button.btn:hover,
.product-item .product-action button.btn:focus-visible {
    color: #fffaf4 !important;
    background: var(--kcbf-plum);
}

/* Responsive size changes affect only the supplied logo image; its aspect ratio stays 3:2. */
.kcbf-brand-mark:not(.kcbf-brand-mark--mobile) .kcbf-brand-logo {
    width: clamp(160px, 17vw, 210px);
}

.kcbf-brand-mark--mobile {
    width: min(180px, calc(100vw - 8.5rem));
    flex: 0 1 180px;
}

.kcbf-brand-mark--mobile .kcbf-brand-logo {
    width: 100%;
}

.row.align-items-center.bg-light.py-3.px-xl-5.d-none.d-lg-flex {
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
}

.container-fluid.bg-light.py-3.px-xl-5 > .d-flex.align-items-center.justify-content-between.flex-wrap {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.container-fluid.bg-dark.mb-30 .navbar-collapse {
    margin-top: 0.3rem;
}

@media (max-width: 575.98px) {
    .kcbf-brand-mark:not(.kcbf-brand-mark--mobile) .kcbf-brand-logo {
        width: min(180px, calc(100vw - 2rem));
    }
}

@media (max-width: 380px) {
    .kcbf-brand-mark--mobile {
        width: min(160px, calc(100vw - 8.5rem));
        flex-basis: 160px;
    }
}


/* Floating WhatsApp contact action for the Shop and Cart pages only. */
.kcbf-floating-whatsapp {
    position: fixed;
    z-index: 1030;
    right: max(1rem, env(safe-area-inset-right));
    bottom: calc(5.5rem + env(safe-area-inset-bottom));
    display: inline-flex;
    min-width: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.6rem 0.95rem;
    color: #fffaf4 !important;
    background: #075e54;
    border: 2px solid #fffaf4;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(51, 44, 45, 0.28);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.kcbf-floating-whatsapp[hidden] {
    display: none !important;
}

.kcbf-floating-whatsapp--obscured {
    visibility: hidden !important;
    pointer-events: none !important;
}

.kcbf-floating-whatsapp .fab {
    font-size: 1.3rem;
    line-height: 1;
}

.kcbf-floating-whatsapp:hover,
.kcbf-floating-whatsapp:active {
    color: #fffaf4 !important;
    background: #064c44;
}

.kcbf-floating-whatsapp:focus-visible {
    outline: 3px solid #c45116;
    outline-offset: 3px;
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .kcbf-floating-whatsapp {
        bottom: calc(10rem + env(safe-area-inset-bottom));
    }
}

@media (max-width: 575.98px) {
    .kcbf-floating-whatsapp {
        bottom: calc(6rem + env(safe-area-inset-bottom));
        width: 48px;
        min-width: 48px;
        height: 48px;
        padding: 0;
    }

    .kcbf-floating-whatsapp > span {
        display: none;
    }
}


/* Compact floating Shop shortcut, positioned above the independent back-to-top control. */
.kcbf-floating-shop {
    position: fixed;
    z-index: 1030;
    right: max(1rem, env(safe-area-inset-right));
    bottom: calc(5.5rem + env(safe-area-inset-bottom));
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    color: #fffaf4 !important;
    background: var(--kcbf-plum);
    border: 1px solid #fffaf4;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(51, 44, 45, 0.25);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.kcbf-floating-shop:hover,
.kcbf-floating-shop:active {
    color: #fffaf4 !important;
    background: #59102d;
}

.kcbf-floating-shop:focus-visible {
    outline: 3px solid #c45116;
    outline-offset: 3px;
}
