.baita-in-cart { background: #c62828 !important; border-color: #c62828 !important; color: #fff !important; }
.baita-in-cart + .added_to_cart.wc-forward { display: none; }
.baita-variants-in-cart, .baita-search-in-cart { display: block; font-size: 12px; line-height: 1.4; color: #c62828; font-weight: 600; margin-top: 4px; }
.baita-variants-in-cart { flex-basis: 100%; }
.product-card__footer:has(> .baita-variants-in-cart) { flex-wrap: wrap; }
.search-result-item > .baita-search-in-cart { flex: 0 0 calc(100% - 56px); margin-left: 56px; }
.search-result-item:has(> .baita-search-in-cart) { flex-wrap: wrap; }
.baita-search-toggle, .baita-menu-label { display: none; }
.baita-mobile-search { box-sizing: border-box; position: fixed; top: var(--baita-search-top, 76px); left: 0; right: 0; width: calc(100% - 24px); max-width: 560px; max-height: calc(100vh - var(--baita-search-top, 76px) - 16px); max-height: calc(100dvh - var(--baita-search-top, 76px) - 16px); margin: 0 auto; padding: 16px; border: 1px solid #dce5e0; border-radius: 12px; background: #fff; color: #242b28; box-shadow: 0 12px 40px #0003; overflow: auto; overscroll-behavior: contain; }
.baita-mobile-search::backdrop { background: rgb(0 0 0 / 35%); }
.baita-search-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.baita-search-heading h2 { font-size: 17px; font-weight: 600; margin: 0; }
.baita-search-close { border: 0; background: transparent; color: #242b28; width: 44px; height: 44px; flex-shrink: 0; padding: 0; border-radius: 6px; font: inherit; font-size: 28px; cursor: pointer; }
.baita-search-form { display: flex; gap: 8px; margin: 0; }
.baita-search-form input[type="search"] { box-sizing: border-box; min-width: 0; width: 100%; flex: 1; height: 48px; border: 1px solid #7a8880; border-radius: 6px; padding: 10px; font: inherit; font-size: 16px; background: #fff; color: #242b28; }
.baita-search-form button { min-height: 48px; padding: 10px 14px; border-radius: 6px; border: 1px solid #007d63; background: #007d63; color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.baita-search-status { font-size: 13px; line-height: 1.5; color: #626a65; margin: 12px 0; }
.baita-search-result { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #e6e9e7; color: #242b28; text-decoration: none; }
.baita-search-result img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.baita-search-result-info { min-width: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.baita-search-result-info > strong { display: block; margin-top: 4px; }
.baita-search-toggle:focus-visible, .baita-mobile-search button:focus-visible, .baita-mobile-search input:focus-visible, .baita-mobile-search a:focus-visible { outline: 3px solid #73c6b5; outline-offset: 2px; }
@media (max-width: 768px) {
    html.baita-storefront-capable body #site-header { position: sticky; top: var(--baita-toolbar-offset, 0px); z-index: 1000; background: #fff; }
    html.baita-storefront-capable body #site-header .header-main > .container { padding-inline: 12px; }
    html.baita-storefront-capable body #site-header .header-main__inner { display: grid; grid-template-columns: minmax(54px, 1fr) 88px 44px 44px; gap: 8px; height: 64px; align-items: center; }
    html.baita-storefront-capable body #site-header .header-main__inner > .custom-logo-link,
    html.baita-storefront-capable body #site-header .header-main__logo { grid-column: 1; grid-row: 1; width: 72px; max-width: 100%; min-width: 0; margin: 0; }
    html.baita-storefront-capable body #site-header .custom-logo { display: block; width: 100%; max-width: 72px; height: auto; }
    html.baita-storefront-capable body #site-header .header-actions { display: contents; }
    html.baita-storefront-capable body #site-header .header-actions > a:not(.header-cart),
    html.baita-storefront-capable body #site-header .header-main__inner > .header-search,
    html.baita-storefront-capable body #site-header #catalog-btn { display: none; }
    html.baita-storefront-capable body #site-header #header-burger { display: flex; grid-column: 2; grid-row: 1; align-items: center; justify-content: center; gap: 6px; width: 88px; min-width: 0; height: 44px; padding: 8px; margin: 0; border: 0; border-radius: 8px; background: #007d63; color: #fff; font-size: 14px; }
    html.baita-storefront-capable body #site-header .baita-menu-label { display: inline; }
    html.baita-storefront-capable body #site-header .baita-search-toggle { display: flex; grid-column: 3; grid-row: 1; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 10px; border: 0; border-radius: 8px; background: transparent; color: #242b28; cursor: pointer; }
    html.baita-storefront-capable body #site-header .header-cart { grid-column: 4; grid-row: 1; display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 44px; min-width: 0; height: 44px; padding: 10px; margin: 0; }
    html.baita-storefront-capable body .home-search-bar { display: none; }
    html.baita-storefront-capable body .baita-mobile-wishlist { margin-top: 0; }
    html.baita-storefront-capable body.single-product .summary { min-width: 0; max-width: 100%; }
    html.baita-storefront-capable body.single-product .woocommerce-breadcrumb { flex-wrap: wrap; }
    html.baita-storefront-capable body.single-product .woocommerce-breadcrumb > * { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
    html.baita-storefront-capable body.single-product .product-attribute > span { min-width: 0; overflow-wrap: anywhere; }
    html.baita-storefront-capable body.single-product .cart-actions-row { min-width: 0; max-width: 100%; flex-wrap: wrap; }
    html.baita-storefront-capable body.single-product .cart-actions-row .single_add_to_cart_button { flex: 1; width: auto; min-width: 0; max-width: 100%; white-space: normal; padding-inline: 12px; }
}
@media (max-width: 360px) {
    html.baita-storefront-capable body.single-product .cart-actions-row { width: 100%; flex-basis: 100%; }
    html.baita-storefront-capable body.single-product .cart-actions-row:has(> .quantity) { display: grid; grid-template-columns: minmax(0, 1fr) 44px; }
    html.baita-storefront-capable body.single-product .cart-actions-row > .quantity { grid-column: 1 / -1; }
    html.baita-storefront-capable body.single-product .product-attribute { font-size: 16px; }
    html.baita-storefront-capable body.single-product .product-attribute__label { flex: 0 0 44%; overflow-wrap: normal; }
    html.baita-storefront-capable body.single-product .product-attribute__value { flex: 1; }
}
/* Keep the mobile close button below the WordPress toolbar for staff. */
@media(max-width:782px){body.admin-bar #catalog-panel{top:46px;height:calc(100vh - 46px);height:calc(100dvh - 46px)}}
