/* NVessa mobile polish layer
   Loaded last on the storefront so older page-specific CSS cannot break small screens. */
:root {
    --nv-mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
    --nv-mobile-tabbar-height: 72px;
}

html { overflow-x: hidden; }
body.nvessa-body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.nvessa-body img,
body.nvessa-body video,
body.nvessa-body canvas,
body.nvessa-body iframe { max-width: 100%; }
body.nvessa-body iframe { border-radius: 16px; }
body.nvessa-body input,
body.nvessa-body select,
body.nvessa-body textarea,
body.nvessa-body button { font-size: 16px; }
body.nvessa-body .btn,
body.nvessa-body button,
body.nvessa-body .nvessa-action,
body.nvessa-body .dropdown-item { touch-action: manipulation; }
body.nvessa-body .container,
body.nvessa-body .container-sm,
body.nvessa-body .container-md,
body.nvessa-body .container-lg,
body.nvessa-body .container-xl,
body.nvessa-body .container-xxl { max-width: 1180px; }

.nvessa-mobile-tabbar { display: none; }

@media (max-width: 991.98px) {
    body.nvessa-body { padding-bottom: calc(var(--nv-mobile-tabbar-height) + var(--nv-mobile-safe-bottom)); }
    body.nvessa-body .container,
    body.nvessa-body .container-fluid { padding-left: 14px; padding-right: 14px; }

    .nvessa-header {
        position: sticky;
        top: 0;
        z-index: 1040;
        box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    }
    .nvessa-topbar {
        min-height: auto !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 10px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
    .nvessa-brand {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        min-width: 0;
        font-size: clamp(1.08rem, 5vw, 1.35rem);
    }
    .nvessa-brand img { max-width: min(138px, 42vw) !important; max-height: 40px; }
    .nvessa-actions { gap: 3px !important; max-width: none !important; overflow: visible !important; }
    .nvessa-action {
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
        justify-content: center;
        padding: 0 !important;
        border-radius: 14px;
        background: #f6f7fb;
    }
    .nvessa-action span:not(.nvessa-cart-count) { display: none !important; }
    .nvessa-user-action::after { display: none; }
    .nvessa-cart-count {
        position: absolute;
        top: -5px;
        right: -5px;
        min-width: 19px;
        height: 19px;
        font-size: 10px;
        box-shadow: 0 0 0 2px #fff;
    }
    .nvessa-search-wrap {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        margin: 0 !important;
        max-width: none !important;
        width: 100%;
    }
    .nv-store-search__form {
        min-height: 50px !important;
        border-radius: 17px !important;
        box-shadow: 0 12px 28px rgba(15, 23, 42, .08) !important;
    }
    .nv-store-search__subline { display: none !important; }
    .nv-store-search__visual,
    .nv-store-search__submit {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        display: inline-grid !important;
        place-items: center;
    }
    .nv-store-search__visual-label,
    .nv-store-search__submit span { display: none !important; }
    .nv-store-search__results {
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        top: auto !important;
        bottom: calc(var(--nv-mobile-tabbar-height) + var(--nv-mobile-safe-bottom) + 12px) !important;
        max-height: min(72dvh, 560px);
        overflow: hidden;
        border-radius: 22px !important;
        z-index: 2090 !important;
    }
    .nv-search-result-list { max-height: 48dvh !important; }
    .nv-search-result-item { grid-template-columns: 54px minmax(0, 1fr) !important; }
    .nv-search-result-item__state,
    .nv-search-result-item__price { grid-column: 2; justify-self: start; }

    .nvessa-nav-shell { border-top: 0; }
    .nvessa-nav { min-height: auto; padding: 0 0 10px; }
    .nvessa-nav-toggler {
        margin: 0;
        min-height: 44px;
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
    }
    .nvessa-nav .navbar-collapse {
        margin-top: 9px;
        padding: 8px;
        border: 1px solid #e8edf5;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 18px 44px rgba(15, 23, 42, .10);
        max-height: min(62dvh, 520px);
        overflow: auto;
    }
    .nvessa-nav .navbar-nav { align-items: stretch !important; gap: 4px; }
    .nvessa-nav .nav-link,
    .nvessa-nav .navbar-nav > li > a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: .72rem .82rem !important;
        border-radius: 13px;
        background: #f8fafc;
    }

    .nvessa-main > .container,
    .nvessa-main .container-fluid { padding-top: 18px; padding-bottom: 32px; }
    body.nvessa-body h1 { font-size: clamp(1.65rem, 8vw, 2.35rem); letter-spacing: -.04em; }
    body.nvessa-body h2 { font-size: clamp(1.35rem, 6vw, 1.9rem); }
    body.nvessa-body h3 { font-size: clamp(1.08rem, 4.8vw, 1.35rem); }

    /* Storefront grids */
    .store-search-grid,
    .store-product-grid,
    .product-grid,
    .products-grid,
    .catalog-grid,
    .category-grid,
    .home-product-grid,
    .featured-products,
    .nv-product-grid,
    .wishlist-grid,
    .compare-grid,
    .combo-grid,
    .collection-grid,
    .blog-grid,
    .faq-grid,
    .content-grid,
    .nv-section-grid,
    .growth-grid,
    .growth-module-grid,
    .recommendation-grid,
    .product-recommendations,
    .premium-commerce-grid,
    .visual-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .storefront-hero,
    .home-hero,
    .hero-grid,
    .nv-hero,
    .campaign-hero,
    .store-search-page__hero,
    .product-detail-grid,
    .product-layout,
    .product-details-layout,
    .checkout-layout,
    .checkout-grid,
    .nvessa-checkout-grid,
    .cart-layout,
    .cart-grid,
    .summary-grid,
    .contact-grid,
    .account-layout,
    .customer-account-page .row,
    .footer-grid,
    .nvessa-footer-grid,
    .ops-grid-2,
    .ops-grid-3 {
        grid-template-columns: 1fr !important;
    }

    .card,
    .nvessa-card,
    .product-card,
    .store-product-card,
    .catalog-card,
    .checkout-card,
    .cart-card,
    .account-panel,
    .request-panel,
    .soft-card,
    .nvessa-panel,
    .ops-card {
        border-radius: 18px !important;
    }

    .product-card,
    .store-product-card { min-width: 0; overflow: hidden; }
    .product-card img,
    .store-product-card img { width: 100%; height: auto; object-fit: cover; }
    .product-card .btn,
    .store-product-card .btn { min-height: 42px; }

    .product-gallery,
    .product-info,
    .product-summary,
    .cart-summary,
    .checkout-summary,
    .order-summary,
    .summary-panel,
    .sticky-summary {
        position: static !important;
        top: auto !important;
        width: 100% !important;
    }

    .btn-group,
    .input-group,
    .filter-actions,
    .toolbar-actions,
    .checkout-actions,
    .cart-actions,
    .order-actions,
    .profile-actions {
        flex-wrap: wrap;
    }
    .checkout-actions .btn,
    .cart-actions .btn,
    .order-actions .btn,
    .profile-actions .btn,
    .filter-actions .btn,
    .toolbar-actions .btn { flex: 1 1 160px; min-height: 44px; }

    .form-control,
    .form-select,
    .input-group-text { min-height: 44px; border-radius: 12px; }
    textarea.form-control { min-height: 110px; }

    .table-responsive,
    .admin-table-wrap,
    .ops-table-wrap {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 16px;
    }

    .modal-dialog { margin: 12px; }
    .modal-content { border-radius: 22px; }
    .modal-footer { gap: 8px; }
    .modal-footer > * { margin: 0; }

    .nvessa-footer { padding-bottom: calc(var(--nv-mobile-tabbar-height) + 28px) !important; }
    body.nvessa-body .nv-ai-support { bottom: calc(var(--nv-mobile-tabbar-height) + var(--nv-mobile-safe-bottom) + 12px) !important; }
    body.nvessa-body .nvessa-footer-floating { bottom: calc(var(--nv-mobile-tabbar-height) + var(--nv-mobile-safe-bottom) + 78px) !important; }
    body.nvessa-body .pc-growth-floating { display: none !important; }

    .nvessa-mobile-tabbar {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: max(8px, var(--nv-mobile-safe-bottom));
        z-index: 2070;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
        padding: 8px;
        border: 1px solid rgba(226, 232, 240, .92);
        border-radius: 24px;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 18px 48px rgba(15, 23, 42, .18);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }
    .nvessa-mobile-tabbar a,
    .nvessa-mobile-tabbar button {
        position: relative;
        min-width: 0;
        min-height: 52px;
        border: 0;
        border-radius: 17px;
        display: grid;
        place-items: center;
        gap: 2px;
        color: #667085;
        background: transparent;
        text-decoration: none;
        font-size: 10.5px;
        font-weight: 800;
    }
    .nvessa-mobile-tabbar i { font-size: 18px; }
    .nvessa-mobile-tabbar a.is-active,
    .nvessa-mobile-tabbar button.is-active,
    .nvessa-mobile-tabbar a:focus-visible,
    .nvessa-mobile-tabbar button:focus-visible {
        color: #f05a22;
        background: #fff3ed;
        outline: 0;
    }
    .nvessa-mobile-tabbar .nvessa-cart-count {
        top: 4px;
        right: calc(50% - 22px);
    }
}

@media (max-width: 767.98px) {
    .store-search-grid,
    .store-product-grid,
    .product-grid,
    .products-grid,
    .catalog-grid,
    .category-grid,
    .home-product-grid,
    .featured-products,
    .nv-product-grid,
    .wishlist-grid,
    .compare-grid,
    .combo-grid,
    .collection-grid,
    .blog-grid,
    .faq-grid,
    .content-grid,
    .nv-section-grid,
    .growth-grid,
    .growth-module-grid,
    .recommendation-grid,
    .product-recommendations,
    .premium-commerce-grid,
    .visual-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

    .row.g-4,
    .row.g-3 { --bs-gutter-x: .85rem; --bs-gutter-y: .85rem; }

    table.nv-mobile-card-table,
    table.nv-mobile-card-table thead,
    table.nv-mobile-card-table tbody,
    table.nv-mobile-card-table tr,
    table.nv-mobile-card-table th,
    table.nv-mobile-card-table td { display: block; width: 100%; }
    table.nv-mobile-card-table thead { display: none; }
    table.nv-mobile-card-table tbody { display: grid; gap: 12px; }
    table.nv-mobile-card-table tr {
        border: 1px solid #e6ebf3;
        border-radius: 17px;
        background: #fff;
        box-shadow: 0 10px 25px rgba(15, 23, 42, .06);
        overflow: hidden;
    }
    table.nv-mobile-card-table td {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        padding: 11px 13px !important;
        border: 0 !important;
        border-bottom: 1px solid #eef2f7 !important;
        text-align: right !important;
        white-space: normal !important;
        word-break: break-word;
    }
    table.nv-mobile-card-table td:last-child { border-bottom: 0 !important; }
    table.nv-mobile-card-table td::before {
        content: attr(data-cell-label);
        flex: 0 0 38%;
        color: #667085;
        font-size: .78rem;
        font-weight: 800;
        text-align: left;
    }
    table.nv-mobile-card-table td[data-cell-label=""]::before { display: none; }
}

@media (max-width: 575.98px) {
    body.nvessa-body .container,
    body.nvessa-body .container-fluid { padding-left: 12px; padding-right: 12px; }
    .nvessa-topbar { padding-left: 12px; padding-right: 12px; }
    .nvessa-actions .nvessa-action:first-child { display: none; }
    .nvessa-action { width: 40px; min-width: 40px; height: 40px; }

    .store-search-grid,
    .store-product-grid,
    .product-grid,
    .products-grid,
    .catalog-grid,
    .category-grid,
    .home-product-grid,
    .featured-products,
    .nv-product-grid,
    .wishlist-grid,
    .compare-grid,
    .combo-grid,
    .collection-grid,
    .blog-grid,
    .faq-grid,
    .content-grid,
    .nv-section-grid,
    .growth-grid,
    .growth-module-grid,
    .recommendation-grid,
    .product-recommendations,
    .premium-commerce-grid,
    .visual-search-grid { grid-template-columns: 1fr !important; }

    .product-card,
    .store-product-card,
    .catalog-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: stretch; }
    .product-card__media,
    .store-product-card__media,
    .catalog-card__media { height: 100% !important; min-height: 132px; }
    .product-card__body,
    .store-product-card__body,
    .catalog-card__body { padding: 12px !important; }

    .store-search-page__form,
    .hero-search,
    .newsletter-form { flex-direction: column; align-items: stretch; }
    .store-search-page__form button,
    .hero-search button,
    .newsletter-form button { width: 100%; min-height: 44px; }

    .offcanvas,
    .modal-dialog { max-width: calc(100vw - 20px); }
    .dropdown-menu { max-width: calc(100vw - 20px); }
}

@media (max-width: 575.98px) {
    .modal.right .modal-dialog {
        width: min(100vw, 420px) !important;
        max-width: 100vw !important;
        height: 100dvh !important;
    }
    .modal.right .modal-content { border-radius: 22px 0 0 22px !important; }
    .list-group-item .d-flex { min-width: 0; }
    .list-group-item small.text-nowrap { white-space: normal !important; text-align: right; }
}


/* ===== Mobile refinement patch v4 ===== */
@media (max-width: 991.98px) {
    body.nvessa-body.nv-mobile-menu-open { overflow: hidden; }

    .nvessa-nav { position: relative; }
    .nvessa-mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .42);
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
        z-index: 2055;
    }
    .nvessa-mobile-menu-backdrop.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .nvessa-nav .navbar-collapse {
        display: none !important;
    }
    .nvessa-nav .navbar-collapse.show,
    .nvessa-nav .navbar-collapse.nv-mobile-open {
        display: block !important;
        position: fixed;
        left: 12px;
        right: 12px;
        top: calc(100% + 10px);
        margin-top: 0;
        padding: 12px;
        border-radius: 22px;
        max-height: min(70dvh, 580px);
        overflow: auto;
        z-index: 2060;
    }
    .nvessa-nav .navbar-nav > li > a,
    .nvessa-nav .nav-link,
    .nvessa-nav .anime.mn,
    .nvessa-nav .mega-menu > a {
        min-height: 48px;
        font-size: .96rem;
        font-weight: 800;
    }

    /* Floating helpers should never cover content on mobile */
    body.nvessa-body .pc-growth-floating,
    body.nvessa-body .growth-live-sale,
    body.nvessa-body .growth-live-help,
    body.nvessa-body [data-growth-floating],
    body.nvessa-body [data-growth-widget] {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.nvessa-body .nvessa-footer-floating {
        right: 12px !important;
        bottom: calc(var(--nv-mobile-tabbar-height) + var(--nv-mobile-safe-bottom) + 94px) !important;
        gap: 8px !important;
        z-index: 2050 !important;
    }
    body.nvessa-body .nvessa-footer-floating a,
    body.nvessa-body .nvessa-footer-floating button {
        width: 44px !important;
        height: 44px !important;
        border-radius: 14px !important;
        box-shadow: 0 10px 24px rgba(15, 23, 42, .16) !important;
    }
}

@media (max-width: 767.98px) {
    /* Keep storefront product grids as cards, do not convert to single-column list */
    .store-search-grid,
    .store-product-grid,
    .product-grid,
    .products-grid,
    .catalog-grid,
    .category-grid,
    .home-product-grid,
    .featured-products,
    .nv-product-grid,
    .wishlist-grid,
    .compare-grid,
    .combo-grid,
    .collection-grid,
    .recommendation-grid,
    .product-recommendations,
    .premium-commerce-grid,
    .visual-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .product-card,
    .store-product-card,
    .catalog-card {
        display: block !important;
        grid-template-columns: none !important;
    }
    .product-card__media,
    .store-product-card__media,
    .catalog-card__media {
        min-height: 180px;
        height: auto !important;
    }

    /* Home and catalog cards must breathe on mobile */
    .store-product-card__body,
    .product-card__body,
    .catalog-card__body {
        padding: 12px !important;
    }

    /* Cart page cleanup */
    .cart-shell { padding-top: 20px !important; }
    .cart-title { font-size: 1.75rem !important; margin-bottom: 16px !important; }
    .cart-item-card {
        display: grid !important;
        grid-template-columns: 88px minmax(0, 1fr) auto;
        align-items: start !important;
        gap: 12px !important;
        padding: 14px !important;
        border-radius: 18px !important;
    }
    .cart-img {
        width: 88px !important;
        height: 88px !important;
        border-radius: 16px !important;
    }
    .cart-item-name {
        font-size: .98rem !important;
        line-height: 1.35 !important;
    }
    .cart-price-row {
        gap: 8px !important;
        align-items: center !important;
    }
    .cart-price-row > * { margin-right: 0 !important; }
    .cart-price-row .input-group {
        width: 118px !important;
        flex: 0 0 118px;
    }
    .remove-btn {
        align-self: start;
        width: 38px;
        height: 38px;
        border-radius: 12px !important;
        padding: 0 !important;
    }
    .cart-summary-card {
        margin-top: 6px !important;
        padding: 18px !important;
        border-radius: 20px !important;
    }
    .summary-grand strong { font-size: 1.5rem !important; }
    .coupon-pill { padding: 10px 12px !important; }
    .premium-reco-box {
        margin-top: 22px !important;
        padding: 18px !important;
        border-radius: 20px !important;
    }
    .premium-reco-head h3 { font-size: 1.1rem !important; }
    .premium-reco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
}

@media (max-width: 575.98px) {
    .store-search-grid,
    .store-product-grid,
    .product-grid,
    .products-grid,
    .catalog-grid,
    .category-grid,
    .home-product-grid,
    .featured-products,
    .nv-product-grid,
    .wishlist-grid,
    .combo-grid,
    .collection-grid,
    .recommendation-grid,
    .product-recommendations,
    .premium-commerce-grid,
    .visual-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .product-card,
    .store-product-card,
    .catalog-card {
        display: block !important;
        grid-template-columns: none !important;
    }
    .product-card__media,
    .store-product-card__media,
    .catalog-card__media {
        min-height: 170px !important;
        height: auto !important;
    }
    .product-card__body,
    .store-product-card__body,
    .catalog-card__body {
        padding: 10px !important;
    }

    .cart-item-card {
        grid-template-columns: 76px minmax(0, 1fr);
    }
    .cart-item-card .remove-btn {
        grid-column: 2;
        justify-self: end;
        margin-top: -40px;
    }
    .cart-price-row {
        flex-direction: column;
        align-items: flex-start !important;
    }
    .cart-price-row .input-group {
        width: 112px !important;
        flex-basis: auto;
    }
    .premium-reco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

    /* keep only one compact floating helper to prevent overlap */
    body.nvessa-body .nvessa-footer-floating a { display: none !important; }
}

/* ===== Mobile storefront fix v5: header + category drawer + no-overlap layout ===== */
.nvessa-mobile-menu-button,
.nvessa-mobile-menu-head,
.nvessa-mobile-search-button,
.nvessa-mobile-dim { display: none; }

@media (max-width: 991.98px) {
    :root { --nv-mobile-header-height: 64px; }

    body.nvessa-body.nv-mobile-menu-open,
    body.nvessa-body.nv-mobile-search-open { overflow: hidden !important; }

    .nvessa-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 2080 !important;
        background: rgba(255,255,255,.98) !important;
        border-bottom: 1px solid rgba(226, 232, 240, .88) !important;
        box-shadow: 0 8px 26px rgba(15, 23, 42, .06) !important;
    }

    .nvessa-topbar {
        min-height: var(--nv-mobile-header-height) !important;
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px 12px !important;
    }

    .nvessa-mobile-menu-button,
    .nvessa-mobile-search-button {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        display: inline-grid !important;
        place-items: center !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: transparent !important;
        color: #111827 !important;
        font-size: 1.18rem !important;
        line-height: 1 !important;
        padding: 0 !important;
        box-shadow: none !important;
        -webkit-tap-highlight-color: transparent;
    }

    .nvessa-mobile-menu-button:active,
    .nvessa-mobile-search-button:active,
    .nvessa-action:active { transform: scale(.96); }

    .nvessa-brand {
        justify-self: start !important;
        min-height: 44px !important;
        max-width: min(46vw, 190px) !important;
        overflow: hidden !important;
        font-size: clamp(1.25rem, 6vw, 1.8rem) !important;
        font-weight: 900 !important;
        letter-spacing: -.04em !important;
        white-space: nowrap !important;
    }
    .nvessa-brand img {
        max-width: min(46vw, 168px) !important;
        max-height: 42px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .nvessa-actions {
        justify-self: end !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        min-width: 0 !important;
    }
    .nvessa-actions .nvessa-action {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        border-radius: 14px !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #111827 !important;
        font-size: 1.08rem !important;
    }
    .nvessa-actions .nvessa-action span:not(.nvessa-cart-count) { display: none !important; }
    .nvessa-actions > a[aria-label="Beğendiklerim"] { display: none !important; }
    .nvessa-cart-count {
        top: -3px !important;
        right: -3px !important;
        min-width: 18px !important;
        height: 18px !important;
        padding: 0 4px !important;
        display: inline-grid !important;
        place-items: center !important;
        font-size: 10px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        border-radius: 99px !important;
        box-shadow: 0 0 0 2px #fff !important;
    }

    .nvessa-search-wrap {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .nvessa-mobile-dim {
        position: fixed !important;
        inset: 0 !important;
        z-index: 2085 !important;
        display: block !important;
        opacity: 0 !important;
        pointer-events: none !important;
        background: rgba(15, 23, 42, .42) !important;
        transition: opacity .22s ease !important;
    }
    body.nv-mobile-menu-open .nvessa-mobile-dim,
    body.nv-mobile-search-open .nvessa-mobile-dim {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .nvessa-nav-shell {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: min(88vw, 390px) !important;
        max-width: 390px !important;
        height: 100dvh !important;
        z-index: 2110 !important;
        transform: translateX(-105%) !important;
        transition: transform .28s cubic-bezier(.2,.8,.2,1) !important;
        background: #fff !important;
        border-right: 1px solid #e5e7eb !important;
        box-shadow: 24px 0 60px rgba(15, 23, 42, .20) !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        padding-top: max(10px, env(safe-area-inset-top, 0px)) !important;
    }
    body.nv-mobile-menu-open .nvessa-nav-shell { transform: translateX(0) !important; }
    .nvessa-nav-shell > .container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        display: flex !important;
        min-height: 0 !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
    }
    .nvessa-mobile-menu-head {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        min-height: 58px !important;
        padding: 10px 16px !important;
        border-bottom: 1px solid #eef2f7 !important;
    }
    .nvessa-mobile-menu-head strong {
        color: #111827 !important;
        font-size: 1.05rem !important;
        font-weight: 900 !important;
        letter-spacing: -.02em !important;
    }
    .nvessa-mobile-menu-close {
        width: 42px !important;
        height: 42px !important;
        display: inline-grid !important;
        place-items: center !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: #f3f4f6 !important;
        color: #111827 !important;
    }

    .nvessa-nav {
        display: block !important;
        min-height: 0 !important;
        padding: 10px 12px calc(22px + var(--nv-mobile-safe-bottom)) !important;
        overflow: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .nvessa-nav-toggler { display: none !important; }
    .nvessa-nav .navbar-collapse,
    .nvessa-nav .navbar-collapse.show,
    .nvessa-nav .navbar-collapse.nv-mobile-open {
        display: block !important;
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        overflow: visible !important;
        visibility: visible !important;
        transform: none !important;
    }
    .nvessa-nav .navbar-nav {
        display: grid !important;
        gap: 8px !important;
        width: 100% !important;
        align-items: stretch !important;
    }
    .nvessa-nav .nav-item,
    .nvessa-nav .has-mega { width: 100% !important; position: relative !important; }
    .nvessa-nav .nav-link,
    .nvessa-nav .navbar-nav > li > a,
    .nvessa-nav .anime,
    .nvessa-nav .anime.mn,
    #menuKategoriler {
        width: 100% !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 14px !important;
        border-radius: 16px !important;
        background: #f8fafc !important;
        color: #111827 !important;
        text-decoration: none !important;
        text-transform: none !important;
        font-size: .98rem !important;
        font-weight: 850 !important;
        line-height: 1.2 !important;
        letter-spacing: -.01em !important;
    }
    .nvessa-nav .navbar-nav > li > div[style] {
        width: 100% !important;
        line-height: 1.2 !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 0 !important;
        color: #111827 !important;
        text-transform: none !important;
        font-size: .98rem !important;
        font-weight: 850 !important;
    }
    #menuKategoriler::after {
        content: "\f078";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        transition: transform .2s ease;
    }
    .has-mega.active #menuKategoriler::after { transform: rotate(180deg); }
    .has-mega > .mega-menu {
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        display: none !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        margin: 6px 0 0 !important;
        padding: 10px !important;
        border: 1px solid #eef2f7 !important;
        border-radius: 18px !important;
        background: #fff !important;
        box-shadow: none !important;
    }
    .has-mega.active > .mega-menu { display: block !important; }
    .mega-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .mega-col {
        border: 0 !important;
        padding: 0 !important;
        border-radius: 14px !important;
        background: #fbfcfe !important;
    }
    .mega-head {
        min-height: 46px !important;
        margin: 0 !important;
        padding: 10px !important;
        gap: 10px !important;
    }
    .mega-head img { width: 34px !important; height: 34px !important; border-radius: 10px !important; }
    .mega-head a { color: #111827 !important; font-weight: 850 !important; }
    .mega-links {
        display: grid !important;
        gap: 3px !important;
        padding: 0 10px 10px 54px !important;
    }
    .mega-links a {
        min-height: 38px !important;
        display: flex !important;
        align-items: center !important;
        padding: 8px 10px !important;
        border-radius: 12px !important;
        color: #4b5563 !important;
        background: #fff !important;
        font-size: .9rem !important;
    }
}

@media (max-width: 575.98px) {
    :root { --nv-mobile-tabbar-height: 70px; }
    body.nvessa-body { padding-bottom: calc(var(--nv-mobile-tabbar-height) + var(--nv-mobile-safe-bottom) + 8px) !important; }

    .nvessa-header { box-shadow: none !important; }
    .nvessa-topbar {
        min-height: 62px !important;
        grid-template-columns: 42px minmax(0, 1fr) auto !important;
        padding: 8px 10px !important;
    }
    .nvessa-brand { justify-self: start !important; max-width: 40vw !important; }
    .nvessa-actions { gap: 2px !important; }
    .nvessa-actions .nvessa-action,
    .nvessa-mobile-menu-button,
    .nvessa-mobile-search-button {
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
    }

    .nvessa-search-wrap {
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        top: max(72px, calc(env(safe-area-inset-top, 0px) + 70px)) !important;
        z-index: 2120 !important;
        display: none !important;
        padding: 10px !important;
        border: 1px solid rgba(226, 232, 240, .95) !important;
        border-radius: 22px !important;
        background: #fff !important;
        box-shadow: 0 24px 68px rgba(15, 23, 42, .22) !important;
    }
    body.nv-mobile-search-open .nvessa-search-wrap { display: block !important; }
    body.nv-mobile-search-open .nvessa-nav-shell { transform: translateX(-105%) !important; }
    .nv-store-search__form {
        min-height: 48px !important;
        border-radius: 16px !important;
        box-shadow: none !important;
        border: 1px solid #e5e7eb !important;
    }
    .nv-store-search__results {
        position: static !important;
        margin-top: 10px !important;
        max-height: 58dvh !important;
        border-radius: 18px !important;
        box-shadow: none !important;
    }
    .nv-search-result-list { max-height: 45dvh !important; }

    .store-product-grid,
    .catalog-product-grid,
    .likes-product-grid,
    .fw-spotlight-products,
    .store-search-grid,
    .product-grid,
    .products-grid,
    .catalog-grid,
    .category-grid,
    .home-product-grid,
    .featured-products,
    .nv-product-grid,
    .wishlist-grid,
    .combo-grid,
    .collection-grid,
    .recommendation-grid,
    .product-recommendations,
    .premium-commerce-grid,
    .visual-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px 10px !important;
    }
    .store-product-card,
    .product-card,
    .catalog-card {
        display: block !important;
        min-width: 0 !important;
        overflow: visible !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .store-product-card__media,
    .product-card__media,
    .catalog-card__media {
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: 3 / 4.35 !important;
        border-radius: 0 !important;
    }
    .store-product-card__media img,
    .product-card__media img,
    .catalog-card__media img { object-fit: cover !important; }
    .store-product-card__body,
    .product-card__body,
    .catalog-card__body {
        padding: 9px 0 0 !important;
        text-align: left !important;
    }
    .store-product-card__title,
    .product-card__title,
    .catalog-card__title {
        color: #111 !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        line-height: 1.32 !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        min-height: 34px !important;
    }
    .store-product-card__price,
    .product-card__price,
    .catalog-card__price {
        font-size: 14px !important;
        font-weight: 850 !important;
        color: #111 !important;
    }

    .nvessa-mobile-tabbar {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        border-radius: 18px 18px 0 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-bottom: 0 !important;
        padding: 7px 8px max(7px, var(--nv-mobile-safe-bottom)) !important;
        box-shadow: 0 -10px 35px rgba(15, 23, 42, .13) !important;
    }
    .nvessa-mobile-tabbar a,
    .nvessa-mobile-tabbar button {
        min-height: 50px !important;
        border-radius: 14px !important;
        font-size: 10px !important;
    }

    body.nvessa-body .nvessa-footer-floating,
    body.nvessa-body .nv-ai-support,
    body.nvessa-body .pc-growth-floating,
    body.nvessa-body .growth-live-sale,
    body.nvessa-body .growth-live-help,
    body.nvessa-body [data-growth-floating],
    body.nvessa-body [data-growth-widget] {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .cart-shell,
    .checkout-shell,
    .payment-shell,
    .summary-shell { padding-bottom: calc(var(--nv-mobile-tabbar-height) + var(--nv-mobile-safe-bottom) + 24px) !important; }
}

/* Mobile cart bottom checkout bar: visible only on phones */
.mobile-cart-checkout { display: none; }
@media (max-width: 575.98px) {
    .mobile-cart-checkout {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: calc(var(--nv-mobile-tabbar-height) + var(--nv-mobile-safe-bottom)) !important;
        z-index: 2065 !important;
        display: grid !important;
        grid-template-columns: minmax(0, .95fr) minmax(150px, 1.1fr) !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 10px 12px !important;
        border-top: 1px solid #e5e7eb !important;
        background: rgba(255,255,255,.97) !important;
        box-shadow: 0 -14px 38px rgba(15,23,42,.14) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
    }
    .mobile-cart-checkout__total {
        min-width: 0 !important;
        display: grid !important;
        gap: 1px !important;
    }
    .mobile-cart-checkout__total small {
        color: #6b7280 !important;
        font-size: 11px !important;
        font-weight: 800 !important;
    }
    .mobile-cart-checkout__total strong {
        color: #111827 !important;
        font-size: 18px !important;
        font-weight: 950 !important;
        letter-spacing: -.03em !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .mobile-cart-checkout__button {
        min-height: 48px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 16px !important;
        background: #8b2142 !important;
        color: #fff !important;
        text-decoration: none !important;
        font-size: 14px !important;
        font-weight: 900 !important;
        letter-spacing: -.01em !important;
        box-shadow: 0 12px 26px rgba(139,33,66,.26) !important;
    }
    .cart-summary-card .d-flex.flex-column.gap-2.mt-4 a.btn-success { display: none !important; }
    .cart-summary-card.sticky-top { position: static !important; }
    body:has(.mobile-cart-checkout) .cart-shell {
        padding-bottom: calc(var(--nv-mobile-tabbar-height) + var(--nv-mobile-safe-bottom) + 104px) !important;
    }
}
@media (max-width: 575.98px) {
    .cart-shell { padding-bottom: calc(var(--nv-mobile-tabbar-height) + var(--nv-mobile-safe-bottom) + 116px) !important; }
}

/* ===== Mobile overlay/search/category hotfix v5.1 =====
   Fixes: dark layer covering the search drawer, stale backdrop blocking taps,
   and mobile category drawer stacking. Desktop stays untouched. */
@media (max-width: 991.98px) {
    .nvessa-mobile-dim {
        z-index: 2120 !important;
        opacity: 0 !important;
        pointer-events: none !important;
        background: rgba(15, 23, 42, .20) !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
    body.nv-mobile-menu-open .nvessa-mobile-dim {
        display: block !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    body.nv-mobile-search-open .nvessa-mobile-dim {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    body.nvessa-body.nv-mobile-search-open {
        overflow: auto !important;
        touch-action: auto !important;
    }
    body.nvessa-body.nv-mobile-menu-open {
        overflow: hidden !important;
        touch-action: none !important;
    }

    body.nv-mobile-menu-open .nvessa-header,
    body.nv-mobile-search-open .nvessa-header {
        z-index: 2140 !important;
    }

    .nvessa-nav-shell {
        z-index: 2160 !important;
        pointer-events: auto !important;
    }
    body.nv-mobile-menu-open .nvessa-nav-shell {
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    body.nv-mobile-search-open .nvessa-nav-shell {
        transform: translateX(-105%) !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .nvessa-mobile-search-close {
        display: none;
    }
}

@media (max-width: 575.98px) {
    body.nv-mobile-search-open .nvessa-header {
        z-index: 2180 !important;
    }
    body.nv-mobile-search-open .nvessa-search-wrap {
        display: block !important;
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        top: max(72px, calc(env(safe-area-inset-top, 0px) + 68px)) !important;
        z-index: 2190 !important;
        pointer-events: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-height: calc(100dvh - 92px - var(--nv-mobile-tabbar-height) - var(--nv-mobile-safe-bottom)) !important;
        overflow: auto !important;
        background: #ffffff !important;
        border: 1px solid rgba(226, 232, 240, .96) !important;
        box-shadow: 0 18px 48px rgba(15, 23, 42, .18) !important;
    }
    body.nv-mobile-search-open .nv-store-search,
    body.nv-mobile-search-open .nv-store-search__form,
    body.nv-mobile-search-open .nv-store-search__results,
    body.nv-mobile-search-open .nv-store-search__results * {
        pointer-events: auto !important;
    }
    body.nv-mobile-search-open .nv-store-search__results {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        z-index: auto !important;
    }
    .nvessa-mobile-search-close {
        display: inline-grid !important;
        position: absolute !important;
        top: -12px !important;
        right: -8px !important;
        width: 34px !important;
        height: 34px !important;
        place-items: center !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 999px !important;
        background: #fff !important;
        color: #111827 !important;
        box-shadow: 0 10px 24px rgba(15,23,42,.14) !important;
        z-index: 2 !important;
    }

    .nv-search-discovery__chips {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 9px !important;
    }
    .nv-search-discovery__chip {
        max-width: 100% !important;
        min-height: 38px !important;
        padding: 8px 12px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        touch-action: manipulation !important;
    }
}

/* ===== Mobile refinement v6: real app-like catalog/account layout =====
   Keeps desktop design untouched; only small screens are refined. */
.catalog-mobile-actions,
.catalog-mobile-panel-head,
.catalog-mobile-filter-backdrop { display: none; }

@media (max-width: 575.98px) {
    /* Search close button must only exist while the search panel is open. */
    body:not(.nv-mobile-search-open) .nvessa-mobile-search-close {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
    }
    body.nv-mobile-search-open .nvessa-mobile-search-close {
        display: inline-grid !important;
        visibility: visible !important;
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    /* More usable screen width on storefront/account pages. */
    body.nvessa-body .container,
    body.nvessa-body .container-sm,
    body.nvessa-body .container-md,
    body.nvessa-body .container-lg,
    body.nvessa-body .container-xl,
    body.nvessa-body .container-xxl,
    body.nvessa-body .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .catalog-page-shell,
    .customer-account-page,
    .profile-page-shell,
    .cart-shell,
    .checkout-shell {
        overflow-x: hidden !important;
    }

    /* Catalog: products are visible first; category/filter controls open as a drawer. */
    .catalog-page-shell .container { padding-left: 8px !important; padding-right: 8px !important; }
    .catalog-page-head {
        padding: 10px 2px 8px !important;
        margin-bottom: 8px !important;
    }
    .catalog-page-head h1 {
        font-size: clamp(1.28rem, 6vw, 1.75rem) !important;
        letter-spacing: -.04em !important;
        margin-bottom: 4px !important;
    }
    .catalog-page-head p {
        font-size: .88rem !important;
        margin: 0 !important;
    }
    .catalog-mobile-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin: 6px 0 10px !important;
        position: sticky !important;
        top: calc(var(--nv-mobile-header-height, 64px) + 4px) !important;
        z-index: 1200 !important;
    }
    .catalog-mobile-action {
        min-height: 44px !important;
        border: 1px solid rgba(226,232,240,.95) !important;
        border-radius: 15px !important;
        background: rgba(255,255,255,.96) !important;
        color: #111827 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        font-size: 13.5px !important;
        font-weight: 900 !important;
        box-shadow: 0 10px 24px rgba(15,23,42,.08) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
    }
    .catalog-mobile-action i { color: #8b2142 !important; }

    .catalog-layout {
        display: block !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    .catalog-mobile-filter-backdrop {
        position: fixed !important;
        inset: 0 !important;
        z-index: 2210 !important;
        display: none !important;
        background: rgba(15,23,42,.28) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity .2s ease !important;
    }
    body.catalog-mobile-filter-open .catalog-mobile-filter-backdrop {
        display: block !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    body.catalog-mobile-filter-open { overflow: hidden !important; }

    .catalog-filter-panel {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-height: min(78dvh, 680px) !important;
        overflow: auto !important;
        z-index: 2220 !important;
        transform: translateY(110%) !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s ease, visibility .2s ease !important;
        padding: 0 12px calc(16px + var(--nv-mobile-safe-bottom)) !important;
        border-radius: 26px 26px 0 0 !important;
        border: 1px solid rgba(226,232,240,.96) !important;
        border-bottom: 0 !important;
        background: #fff !important;
        box-shadow: 0 -22px 58px rgba(15,23,42,.18) !important;
        -webkit-overflow-scrolling: touch !important;
    }
    body.catalog-mobile-filter-open .catalog-filter-panel {
        transform: translateY(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .catalog-mobile-panel-head {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 2 !important;
        margin: 0 -12px 10px !important;
        padding: 14px 14px 12px !important;
        background: rgba(255,255,255,.98) !important;
        border-bottom: 1px solid #eef2f7 !important;
        border-radius: 26px 26px 0 0 !important;
    }
    .catalog-mobile-panel-head strong {
        display: block !important;
        color: #111827 !important;
        font-size: 1.05rem !important;
        font-weight: 950 !important;
        letter-spacing: -.02em !important;
    }
    .catalog-mobile-panel-head small {
        display: block !important;
        color: #64748b !important;
        font-size: .78rem !important;
        font-weight: 700 !important;
    }
    .catalog-mobile-panel-close {
        width: 40px !important;
        height: 40px !important;
        display: inline-grid !important;
        place-items: center !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: #f3f4f6 !important;
        color: #111827 !important;
    }
    .catalog-filter-panel[data-mobile-mode="categories"] [data-catalog-mobile-section="filters"],
    .catalog-filter-panel[data-mobile-mode="filters"] [data-catalog-mobile-section="categories"] {
        display: none !important;
    }
    .catalog-filter-block {
        margin: 0 0 12px !important;
        padding: 12px !important;
        border-radius: 18px !important;
        background: #f8fafc !important;
        border: 1px solid #eef2f7 !important;
    }
    .catalog-filter-title {
        font-size: .93rem !important;
        margin: 0 0 10px !important;
        color: #111827 !important;
    }
    .catalog-filter-list {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
        gap: 8px !important;
        max-height: none !important;
        overflow: visible !important;
    }
    .catalog-filter-list a {
        min-height: 40px !important;
        border-radius: 13px !important;
        padding: 9px 10px !important;
        background: #fff !important;
        color: #334155 !important;
        border: 1px solid #e5e7eb !important;
        font-size: 12.5px !important;
        font-weight: 850 !important;
        line-height: 1.15 !important;
    }
    .catalog-filter-list a span {
        min-width: 0 !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }
    .catalog-filter-list a.active {
        background: #fff3ed !important;
        border-color: rgba(240,90,34,.32) !important;
        color: #f05a22 !important;
    }
    .catalog-filter-list a span:first-child:has(+ small) { padding-right: 2px !important; }
    .catalog-filter-inputs { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
    .catalog-filter-inputs input {
        min-height: 44px !important;
        border-radius: 14px !important;
    }
    .catalog-filter-swatch-list { gap: 10px !important; }
    .catalog-filter-swatch { width: 36px !important; height: 36px !important; }

    .catalog-toolbar {
        display: grid !important;
        grid-template-columns: 1fr minmax(138px, .74fr) !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 4px 0 12px !important;
        padding: 0 !important;
    }
    .catalog-toolbar-count { font-size: 12.5px !important; color: #475569 !important; }
    .catalog-sort {
        min-height: 40px !important;
        border-radius: 13px !important;
        font-size: 12.5px !important;
        padding: 0 10px !important;
    }
    .catalog-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px 8px !important;
    }
}

@media (max-width: 575.98px) {
    /* Account: do not make the customer scroll a long sidebar before seeing content. */
    .profile-shell {
        position: relative !important;
        top: 0 !important;
        padding: 10px !important;
        border-radius: 18px !important;
        box-shadow: 0 10px 28px rgba(15,23,42,.08) !important;
        overflow: visible !important;
    }
    .profile-head {
        gap: 10px !important;
        padding-bottom: 10px !important;
        margin-bottom: 10px !important;
    }
    .profile-avatar {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        border-radius: 14px !important;
        font-size: 18px !important;
    }
    .profile-head h5 { font-size: 15px !important; }
    .profile-head small { font-size: 11.5px !important; max-width: 70vw !important; }
    .profile-menu {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        padding: 0 2px 6px !important;
        margin: 0 -2px !important;
        scroll-snap-type: x proximity !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .profile-menu::-webkit-scrollbar,
    .account-menu-pro::-webkit-scrollbar { display: none !important; }
    .profile-menu-section { display: none !important; }
    .profile-menu a,
    .profile-more summary,
    .profile-logout {
        width: auto !important;
        min-width: max-content !important;
        min-height: 40px !important;
        padding: 9px 12px !important;
        border-radius: 14px !important;
        gap: 8px !important;
        font-size: 12.5px !important;
        font-weight: 900 !important;
        background: #f8fafc !important;
        scroll-snap-align: start !important;
    }
    .profile-menu a i,
    .profile-more summary i,
    .profile-logout i { width: auto !important; font-size: 15px !important; }
    .profile-more { position: relative !important; flex: 0 0 auto !important; }
    .profile-more .profile-submenu {
        position: absolute !important;
        left: 0 !important;
        top: calc(100% + 8px) !important;
        z-index: 30 !important;
        min-width: 220px !important;
        margin: 0 !important;
        padding: 8px !important;
        display: grid !important;
        gap: 6px !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 16px !important;
        background: #fff !important;
        box-shadow: 0 16px 38px rgba(15,23,42,.16) !important;
    }

    .account-sidebar-pro {
        padding: 10px !important;
        border-radius: 18px !important;
        box-shadow: 0 10px 28px rgba(15,23,42,.08) !important;
        overflow: visible !important;
    }
    .account-profile-pro {
        gap: 10px !important;
        padding-bottom: 10px !important;
        margin-bottom: 8px !important;
    }
    .account-avatar-pro {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        border-radius: 14px !important;
        font-size: 17px !important;
    }
    .account-profile-pro h3 { font-size: 15px !important; }
    .account-profile-pro p {
        font-size: 11.5px !important;
        max-width: 70vw !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    .account-menu-pro {
        margin-top: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        overflow-x: auto !important;
        padding-bottom: 6px !important;
        scroll-snap-type: x proximity !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .account-menu-pro a,
    .account-logout-pro button {
        width: auto !important;
        min-width: max-content !important;
        min-height: 40px !important;
        padding: 9px 12px !important;
        border-radius: 14px !important;
        font-size: 12.5px !important;
        font-weight: 900 !important;
        gap: 8px !important;
        background: #f8fafc !important;
        scroll-snap-align: start !important;
    }
    .account-logout-pro { margin: 0 !important; flex: 0 0 auto !important; }

    .account-hero {
        padding: 20px !important;
        border-radius: 20px !important;
    }
    .account-hero h2 { font-size: 26px !important; }
    .account-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 10px !important; }
    .account-card { min-height: 100px !important; padding: 16px !important; border-radius: 18px !important; }
    .account-card strong { font-size: 22px !important; }
    .panel-head { padding: 16px !important; }
    .order-row { padding: 14px 16px !important; }
}


/* ===== v7: desktop search close leak fix + wider storefront container ===== */

/* This button is created by JS for the phone search sheet only.
   Keep it impossible to leak into desktop/tablet header. */
.nvessa-mobile-search-close {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 575.98px) {
    body.nv-mobile-search-open .nvessa-mobile-search-close {
        display: inline-grid !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: absolute !important;
        top: -12px !important;
        right: -8px !important;
        width: 34px !important;
        height: 34px !important;
        place-items: center !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 999px !important;
        background: #fff !important;
        color: #111827 !important;
        box-shadow: 0 10px 24px rgba(15,23,42,.14) !important;
        z-index: 3 !important;
    }
}

/* The main storefront felt too squeezed on desktop.
   Widen only the public storefront content without changing admin or component structure. */
@media (min-width: 1200px) {
    body.nvessa-body .container,
    body.nvessa-body .container-lg,
    body.nvessa-body .container-xl,
    body.nvessa-body .container-xxl {
        max-width: 1320px !important;
    }
}

@media (min-width: 1500px) {
    body.nvessa-body .container,
    body.nvessa-body .container-lg,
    body.nvessa-body .container-xl,
    body.nvessa-body .container-xxl {
        max-width: 1380px !important;
    }
}

/* Home/category visual blocks should benefit from the wider shell too. */
@media (min-width: 1200px) {
    body.nvessa-body .home-shell,
    body.nvessa-body .home-section,
    body.nvessa-body .storefront-shell,
    body.nvessa-body .catalog-page,
    body.nvessa-body .category-page,
    body.nvessa-body .cart-shell,
    body.nvessa-body .checkout-shell {
        max-width: 1380px !important;
    }
}

