/* Store UI Styles */
:root {
    --alibaba-primary: #f8c11c;
    --alibaba-dark: #1e1d23;
    --alibaba-light: #f4f4f4;
    --alibaba-transition: all 0.3s ease;
}

/* Slide-out Cart Sidebar */
#cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: var(--alibaba-transition);
    display: flex;
    flex-direction: column;
}

#cart-sidebar.open {
    right: 0;
}

#cart-sidebar .cart-header {
    padding: 20px;
    background: var(--alibaba-dark);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#cart-sidebar .cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

#cart-sidebar .cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.cart-delivery-block {
    margin-bottom: 16px;
    padding-bottom: 4px;
    border-bottom: 1px solid #eee;
}

.cart-delivery-block[hidden] {
    display: none !important;
}

.cart-delivery-intro {
    margin: 0 0 12px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #555;
    font-weight: 500;
}

.cart-field {
    margin-bottom: 12px;
}

.cart-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 5px;
}

.cart-field .req {
    color: #c62828;
}

.cart-field input,
.cart-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.cart-field textarea {
    resize: vertical;
    min-height: 72px;
    line-height: 1.4;
}

.cart-field input:focus,
.cart-field textarea:focus {
    border-color: var(--alibaba-primary);
    outline: none;
}

.cart-checkout-error {
    background: rgba(198, 40, 40, 0.1);
    color: #b71c1c;
    font-size: 0.85rem;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.cart-checkout-error[hidden] {
    display: none !important;
}

#cart-sidebar .cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

#cart-sidebar .cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 2px;
}

.cart-item-addons {
    font-size: 0.8rem;
    color: #666;
    margin-top: 3px;
    line-height: 1.35;
}

.cart-item-price {
    color: #888;
    margin-top: 2px;
}

.cart-edit-options {
    display: block;
    margin: 8px 0 4px;
    padding: 0;
    border: none;
    background: none;
    color: var(--alibaba-primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-align: left;
}

.cart-edit-options:hover {
    opacity: 0.88;
}

#cart-sidebar .item-info {
    flex: 1;
}

#cart-sidebar .item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

#cart-sidebar .qty-btn {
    width: 25px;
    height: 25px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

#cart-sidebar .remove-item {
    color: #ff4d4d;
    cursor: pointer;
    font-size: 18px;
    margin-left: 10px;
}

#cart-sidebar .checkout-btn {
    width: 100%;
    padding: 15px;
    background: var(--alibaba-primary);
    border: none;
    color: #fff;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s;
}

#cart-sidebar .checkout-btn:hover {
    transform: scale(1.02);
}

/* Backdrop */
#sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
}

#sidebar-backdrop.open {
    display: block;
}

/* Wishlist Table */
.wishlist-container {
    padding: 50px 0;
}

.wishlist-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.wishlist-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid #eee;
}

.wishlist-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 480px) {
    #cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Home "Най-поръчвани" — pure CSS grid, no Slick dependency */
.products-grid-wrapper {
    width: 100%;
}

.products-grid-wrapper ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
}

.products-grid-wrapper ul.products > li.product {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
}

.products-grid-wrapper .product-block {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.products-grid-wrapper .product-caption {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.products-grid-wrapper .product-caption-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.products-grid-wrapper .product-caption .short-description {
    flex: 1 1 auto;
    min-height: 3.65em;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    word-break: break-word;
}

.products-grid-wrapper .product-caption-footer {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}

.products-grid-wrapper .product-caption-footer .price {
    margin: 0;
    float: none !important;
}

.products-grid-wrapper .product-caption-footer .alibaba-add-to-cart-btn {
    flex-shrink: 0;
    float: none !important;
}

/* Same visual size for all product photos (square frame, crop with object-fit) */
.products-grid-wrapper .product-image,
ul.products-list > li:not(.product-list) .product-image,
ul.products-list > li.product-list .product-image {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f0f0f0;
    border-radius: 10px;
}

/* Loading / placeholder rows — no theme margin */
ul.products-list > li:not(.product-list) .product-image {
    margin: 0;
}

.products-grid-wrapper .product-image img,
ul.products-list > li .product-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
}

/*
 * Shop list rows (.product-list): theme uses margin-right on .product-image (~30px).
 * Do not zero that margin — we add flex gap + caption padding so text never touches the photo.
 */
ul.products-list > li.product-list {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(16px, 3.5vw, 32px);
    width: 100%;
    box-sizing: border-box;
}

ul.products-list > li.product-list .product-image {
    float: none !important;
    flex: 0 0 auto;
    width: min(38vw, 240px);
    max-width: 260px;
    margin: 0 clamp(20px, 4.5vw, 40px) 0 0 !important;
}

ul.products-list > li.product-list .product-caption {
    flex: 1 1 0;
    min-width: 0;
    padding: 4px 0 10px clamp(8px, 2vw, 18px);
    text-align: left;
}

ul.products-list > li.product-list .woocommerce-loop-product__title {
    margin-top: 0;
    margin-bottom: 0.35em;
    line-height: 1.25;
}

ul.products-list > li.product-list .short-description {
    margin-bottom: 0.65em;
    line-height: 1.45;
}

ul.products-list > li.product-list .product-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
    margin-top: 0.5em;
    margin-bottom: 0.35em;
    line-height: 1.5;
}

ul.products-list > li.product-list .product-detail-tags strong {
    flex: 1 0 100%;
    margin: 0 0 2px;
}

ul.products-list > li.product-list .detail-tag,
ul.products-list > li.product-list .addon-tag {
    display: inline-block;
    margin: 0;
    vertical-align: middle;
}

ul.products-list > li.product-list .price {
    display: block;
    margin-top: 0.75em;
    margin-bottom: 0.5em;
}

@media (max-width: 640px) {
    ul.products-list > li.product-list {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    ul.products-list > li.product-list .product-image {
        width: 100%;
        max-width: none;
        margin: 0 0 4px 0 !important;
    }

    ul.products-list > li.product-list .product-caption {
        padding: 0 2px 6px 0;
    }
}

/* Sidebar “top products” — lock thumb box so mixed assets don’t jump */
#top-products-sidebar .top-product-thumb-link {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
    display: block;
}

#top-products-sidebar .top-product-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Desktop main nav: active tab — underline only, same font metrics (no jump) */
.elementor-2022 .primary-navigation .menu > li > a {
    display: inline-block;
    padding: 6px 2px 10px;
    border-bottom: 3px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
    font-weight: 600;
    box-sizing: border-box;
}

.elementor-2022 .primary-navigation .menu > li > a .menu-title {
    font-weight: inherit;
}

.elementor-2022 .primary-navigation .menu > li.current-menu-item > a {
    border-bottom-color: var(--primary, #FFC222);
}

/* Mobile slide-out menu: active = left accent */
.elementor-2022 .handheld-navigation .menu > li > a {
    display: block;
    padding: 12px 14px;
    margin: 0 -14px;
    border-left: 4px solid transparent;
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.elementor-2022 .handheld-navigation .menu > li.current-menu-item > a {
    border-left-color: var(--primary, #FFC222);
    background: rgba(255, 194, 34, 0.08);
}

@media (max-width: 1024px) {
    .products-grid-wrapper ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

@media (max-width: 600px) {
    .products-grid-wrapper ul.products {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

@media (max-width: 767px) {
    #page {
        padding-bottom: 56px;
    }
}

/* Auth Modal */
.auth-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.auth-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.auth-modal {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: authSlideUp .3s ease;
}
@keyframes authSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.auth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}
.auth-modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--alibaba-dark);
}
.auth-modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
}
.auth-modal-body {
    padding: 20px 24px 28px;
}
.auth-field {
    margin-bottom: 14px;
}
.auth-field label {
    display: block;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 5px;
    font-weight: 600;
}
.auth-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color .2s;
    box-sizing: border-box;
}
.auth-field input:focus {
    border-color: var(--alibaba-primary);
    outline: none;
}
.auth-btn {
    width: 100%;
    padding: 13px;
    background: var(--alibaba-primary);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 6px;
    transition: background .2s, transform .15s;
}
.auth-btn:hover { background: #e5b018; transform: scale(1.01); }
.auth-btn:disabled { opacity: .6; cursor: not-allowed; }
.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: #777;
}
.auth-switch a {
    color: var(--alibaba-primary);
    font-weight: 600;
    text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }

/* Product Detail Modal */
.product-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.product-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.product-modal {
    background: #fff;
    border-radius: 18px;
    width: 92%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: authSlideUp .3s ease;
    position: relative;
}
.product-modal-close {
    position: absolute;
    top: 12px; right: 14px;
    background: rgba(0,0,0,0.45);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-modal-close:hover { background: rgba(0,0,0,0.7); }
.product-modal-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: #f4f4f4;
}
.product-modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.product-modal-body {
    padding: 20px 24px 28px;
}
.product-modal-body h2 {
    margin: 0 0 4px;
    font-size: 1.4rem;
    color: var(--alibaba-dark);
}
.product-modal-cat {
    display: inline-block;
    font-size: 0.8rem;
    background: var(--alibaba-primary);
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}
.product-modal-desc {
    color: #666;
    font-size: 0.95rem;
    margin: 6px 0 12px;
    line-height: 1.45;
}
.product-modal-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--alibaba-dark);
    margin-bottom: 16px;
}
.product-modal-price-hint {
    display: inline;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    margin-left: 6px;
    vertical-align: middle;
}
.pm-addon-price {
    font-weight: 700;
    color: #2e7d32;
    font-size: 0.88em;
}
.cart-item-price-breakdown {
    font-weight: 600;
    color: var(--alibaba-dark);
}
.cart-item-per-unit {
    font-weight: 500;
    color: #888;
    font-size: 0.85em;
}
.product-modal-section {
    margin-bottom: 16px;
}
.product-modal-section h4 {
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: #444;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.product-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pm-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #444;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
}
.product-modal-addons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pm-addon-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    font-size: 0.92rem;
}
.pm-addon-label:hover { border-color: var(--alibaba-primary); background: #fffdf5; }
.pm-addon-check { accent-color: var(--alibaba-primary); width: 18px; height: 18px; cursor: pointer; }
.pm-addon-check:checked + span { font-weight: 600; }
/* Scoped to modal overlay so WooCommerce / theme button + flex rules cannot crush the stepper */
#product-modal .product-modal-qty-row {
    display: flex;
    align-items: stretch;
    gap: 14px;
    margin-top: 20px;
    flex-wrap: nowrap;
}

#product-modal .product-modal-qty {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: 0 0 auto;
    gap: 0;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
    min-height: 48px;
}

#product-modal .pm-qty-btn {
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    height: auto;
    min-height: 48px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    border-radius: 0;
    background: var(--alibaba-primary);
    color: var(--alibaba-dark);
    font-family: inherit;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, filter .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    appearance: none;
}

#product-modal .pm-qty-btn .pm-qty-btn-text {
    display: block;
    line-height: 1;
    pointer-events: none;
}

#product-modal .pm-qty-btn:hover {
    background: #e5b018;
    filter: brightness(1.02);
}

#product-modal #pm-qty-value.pm-qty-value {
    flex: 0 0 44px;
    min-width: 44px;
    width: 44px;
    max-width: 44px;
    margin: 0;
    padding: 0 4px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    color: var(--alibaba-dark);
    background: #fff;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

#product-modal .pm-add-btn {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 48px;
    padding: 12px 16px;
    margin: 0;
    box-sizing: border-box;
    background: var(--alibaba-primary);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background .2s, transform .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
}

#product-modal .pm-add-btn:hover {
    background: #e5b018;
    transform: scale(1.01);
}

@media (max-width: 480px) {
    .product-modal { max-width: 100%; border-radius: 14px; }
    .product-modal-img { border-radius: 14px 14px 0 0; }
    .product-modal-body { padding: 16px 18px 22px; }
}

/* Profile trigger: icon only stays centered inside the circular hit area */
#header-account.site-header-account > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
}

#header-account.site-header-account > a .poco-icon-user {
    display: block;
    line-height: 1;
}

/* Header profile dropdown: align to account icon, theme-friendly menu (store.css loads after theme) */
#header-account.site-header-account {
    position: relative;
    z-index: 10050;
    overflow: visible;
}

.elementor-header-group-wrapper .header-group-action {
    overflow: visible;
}

/* Center panel under the profile column (theme .justify) */
#header-account .account-dropdown.justify {
    left: auto !important;
    right: 50% !important;
    transform: translateX(50%) !important;
    -webkit-transform: translateX(50%) !important;
    padding-top: 12px;
    z-index: 10050 !important;
}

#header-account .account-dropdown.right {
    left: auto !important;
    right: 0 !important;
    transform: none !important;
}

/* Theme draws a full-width yellow bar here; remove for a cleaner panel */
#header-account .account-dropdown::after {
    display: none !important;
}

#header-account .account-dropdown .account-wrap {
    border-radius: 10px;
    border-color: rgba(30, 29, 35, 0.12) !important;
    overflow: hidden;
}

#header-account .account-dropdown .account-inner.dashboard {
    width: auto !important;
    min-width: 200px;
    max-width: 280px;
}

#header-account .account-dashboard a {
    color: #1e1d23 !important;
}

#header-account .account-dashboard a:hover {
    color: #1e1d23 !important;
}

/* Mobile bottom bar: reliable taps (include.js must load footer into DOM) */
.poco-handheld-footer-bar a {
    touch-action: manipulation;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.06);
}

/* Mobile: full-screen search sheet (like auth modal); results scroll below the field */
.site-search-popup-overlay.site-search-overlay--mobile {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10040 !important;
    background: rgba(0, 0, 0, 0.45) !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.site-search-popup-overlay.site-search-overlay--mobile.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.site-search-popup.site-search-popup--mobile-sheet {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10041 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: stretch;
    justify-content: stretch;
    background: #fff !important;
    box-sizing: border-box;
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

.site-search-popup.site-search-popup--mobile-sheet .site-search-popup-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 12px 16px 16px;
    box-sizing: border-box;
}

.site-search-popup.site-search-popup--mobile-sheet .site-search-popup-wrap::before {
    content: "Търсене";
    display: block;
    flex: 0 0 auto;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--alibaba-dark, #1e1d23);
    padding: 8px 44px 14px 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
}

.site-search-popup.site-search-popup--mobile-sheet .site-search-popup-close {
    position: absolute;
    top: 14px;
    right: 12px;
    z-index: 2;
}

.site-search-popup.site-search-popup--mobile-sheet .site-search.ajax-search {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.site-search-popup.site-search-popup--mobile-sheet .widget_product_search {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.site-search-popup.site-search-popup--mobile-sheet .woocommerce-product-search {
    flex: 0 0 auto;
    order: 1;
}

.site-search-popup.site-search-popup--mobile-sheet .woocommerce-product-search .search-field {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
}

.site-search-popup.site-search-popup--mobile-sheet .ajax-search-result {
    order: 2;
    flex: 1 1 auto;
    min-height: 120px;
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    margin-top: 8px !important;
    padding: 4px 0 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.site-search-popup.site-search-popup--mobile-sheet .product-item-search {
    border-radius: 10px;
}

.site-search-popup.site-search-popup--mobile-sheet .product-item-search + .product-item-search {
    margin-top: 6px;
}

/* Mobile slide-out nav: fill viewport (no gap under panel on scroll / iOS toolbar) */
.poco-mobile-nav {
    top: 0 !important;
    bottom: 0 !important;
    height: auto !important;
    min-height: 100vh !important;
    min-height: -webkit-fill-available !important;
    min-height: 100dvh !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    box-sizing: border-box !important;
}

html.mobile-nav-active .poco-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    min-height: 100vh !important;
    min-height: -webkit-fill-available !important;
    min-height: 100dvh !important;
}

/* Mobile header: remove flex row-gap strip; keep bar in normal flow (not sticky) */
@media (max-width: 1024px) {
    .elementor-2022 .elementor-element.elementor-element-c607fef > .elementor-container {
        row-gap: 0 !important;
    }

    .elementor-2022 .elementor-element.elementor-element-3573675 > .elementor-widget-container {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 767px) {
    .elementor-2022 .elementor-element.elementor-element-c607fef {
        position: relative !important;
        top: auto !important;
        transform: none !important;
        will-change: auto !important;
    }

    .elementor-2022 .elementor-element.elementor-element-c607fef.elementor-sticky--active,
    .elementor-2022 .elementor-element.elementor-element-c607fef.elementor-sticky {
        position: relative !important;
    }

    .poco-handheld-footer-bar {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        margin: 0 !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
        box-sizing: border-box !important;
    }
}
