/* =========================================================
   NATURAL FRESH — ADMIN-ONLY FRONT-END PRODUCT MANAGEMENT
   Version 14
========================================================= */

:root {
    --nf-admin-green: #0d5a3c;
    --nf-admin-green-dark: #08452f;
    --nf-admin-green-soft: #e9f7f0;
    --nf-admin-lime: #92c01f;
    --nf-admin-gold: #f2a900;
    --nf-admin-red: #dc2626;
    --nf-admin-text: #14261f;
    --nf-admin-muted: #66756f;
    --nf-admin-border: #dfe8e3;
    --nf-admin-surface: #ffffff;
    --nf-admin-bg: #f4f8f6;
    --nf-admin-shadow: 0 18px 50px rgba(13, 90, 60, .10);
}

/* Logo: only a small increase, without changing the header layout. */
.elementor-location-header .elementor-widget-theme-site-logo img,
.elementor-location-header .custom-logo-link img,
.site-header .custom-logo-link img,
header.site-header img.custom-logo,
header .site-branding img.custom-logo,
header .site-logo img,
header .logo img,
header img.nf-admin-enlarged-logo {
    transform: scale(1.12) !important;
    transform-origin: center !important;
    transition: transform .2s ease !important;
}

.nf-admin-generated-page {
    min-height: 70vh;
    background: var(--nf-admin-bg);
}

/* Live product results: no page reload and no scroll manipulation. */
.nf-admin-products-results {
    position: relative;
    min-height: 120px;
}

.nf-admin-live-status {
    position: sticky;
    top: 12px;
    z-index: 20;
    width: fit-content;
    max-width: calc(100% - 24px);
    margin: 0 auto 14px;
    padding: 9px 16px;
    border: 1px solid rgba(13, 90, 60, .16);
    border-radius: 999px;
    background: #fff;
    color: var(--nf-admin-green);
    box-shadow: 0 10px 30px rgba(13, 90, 60, .12);
    font-weight: 800;
}

.nf-admin-products-results.is-loading {
    cursor: progress;
}

.nf-admin-products-results.is-loading > :not(.nf-admin-live-status) {
    opacity: .48;
    pointer-events: none;
    transition: opacity .16s ease;
}

.nf-admin-products-results.is-loading .nf-admin-live-status {
    display: block !important;
}

.nf-admin-filter-panel input,
.nf-admin-filter-panel select,
.nf-admin-filter-panel button,
.nf-admin-filter-panel a {
    touch-action: manipulation;
}

/* =========================================================
   ADMIN PROFILE ICON — ACTUAL NAVIGATION ITEM ONLY
========================================================= */
.nf-admin-profile-staging {
    display: none !important;
}

.nf-admin-profile-nav-item {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0 0 8px !important;
    padding: 0 !important;
    list-style: none !important;
    flex: 0 0 auto !important;
}

.nf-admin-profile-menu,
.nf-admin-profile-menu * {
    box-sizing: border-box;
}

.nf-admin-profile-menu {
    position: relative;
    z-index: 99998;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Cairo, Tahoma, Arial, sans-serif;
    line-height: 1.35;
}

.nf-admin-profile-trigger {
    width: 43px !important;
    height: 43px !important;
    min-width: 43px !important;
    min-height: 43px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255, 255, 255, .24) !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .12) !important;
    color: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background .18s ease, border-color .18s ease, transform .18s ease !important;
}

.nf-admin-profile-trigger:hover,
.nf-admin-profile-trigger[aria-expanded="true"] {
    background: #fff !important;
    color: var(--nf-admin-green) !important;
    border-color: #fff !important;
    transform: translateY(-1px);
}

.nf-admin-profile-trigger svg {
    width: 23px !important;
    height: 23px !important;
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.nf-admin-profile-dropdown {
    position: absolute !important;
    top: calc(100% + 14px) !important;
    inset-inline-end: 0 !important;
    width: min(310px, calc(100vw - 24px)) !important;
    padding: 10px !important;
    border: 1px solid var(--nf-admin-border) !important;
    border-radius: 20px !important;
    background: #fff !important;
    color: var(--nf-admin-text) !important;
    box-shadow: 0 22px 65px rgba(5, 44, 29, .22) !important;
    z-index: 999999 !important;
    text-align: right !important;
    overflow: visible !important;
}

.nf-admin-profile-dropdown[hidden] {
    display: none !important;
}

.nf-admin-profile-dropdown::before {
    content: "";
    position: absolute;
    top: -7px;
    inset-inline-end: 15px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-top: 1px solid var(--nf-admin-border);
    border-right: 1px solid var(--nf-admin-border);
    transform: rotate(-45deg);
}

.nf-admin-profile-heading {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 10px 10px 13px !important;
    border-bottom: 1px solid #edf2ef !important;
    margin-bottom: 6px !important;
}

.nf-admin-profile-avatar,
.nf-admin-menu-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
}

.nf-admin-profile-avatar {
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
    background: var(--nf-admin-green-soft) !important;
    color: var(--nf-admin-green) !important;
}

.nf-admin-profile-avatar svg,
.nf-admin-menu-icon svg {
    width: 21px !important;
    height: 21px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.nf-admin-profile-heading strong,
.nf-admin-profile-heading small,
.nf-admin-profile-dropdown a strong,
.nf-admin-profile-dropdown a small {
    display: block !important;
    margin: 0 !important;
    line-height: 1.45 !important;
}

.nf-admin-profile-heading strong,
.nf-admin-profile-dropdown a strong {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: var(--nf-admin-text) !important;
}

.nf-admin-profile-heading small,
.nf-admin-profile-dropdown a small {
    margin-top: 2px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--nf-admin-muted) !important;
}

.nf-admin-profile-dropdown > a {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 11px 10px !important;
    margin: 0 !important;
    border-radius: 13px !important;
    text-decoration: none !important;
    background: transparent !important;
    color: var(--nf-admin-text) !important;
    transition: background .16s ease, color .16s ease !important;
}

.nf-admin-profile-dropdown > a:hover {
    background: var(--nf-admin-green-soft) !important;
    color: var(--nf-admin-green) !important;
}

.nf-admin-menu-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 11px !important;
    background: #f1f6f3 !important;
    color: var(--nf-admin-green) !important;
}

.nf-admin-menu-divider {
    display: block !important;
    height: 1px !important;
    margin: 6px 8px !important;
    background: #edf2ef !important;
}

.nf-admin-profile-dropdown > a.nf-admin-logout-link:hover {
    background: #fff0f0 !important;
    color: #b91c1c !important;
}

.nf-admin-logout-link .nf-admin-menu-icon {
    color: #b91c1c !important;
    background: #fff0f0 !important;
}

/* =========================================================
   SHARED PORTAL
========================================================= */
#nfAdminPortal,
#nfAdminPortal * {
    box-sizing: border-box;
}

#nfAdminPortal {
    width: 100%;
    min-height: 60vh;
    padding: clamp(26px, 4vw, 64px) 18px clamp(55px, 7vw, 95px);
    direction: rtl;
    color: var(--nf-admin-text);
    background:
        radial-gradient(circle at 10% 0%, rgba(146, 192, 31, .10), transparent 28%),
        linear-gradient(180deg, #f8fbf9 0%, var(--nf-admin-bg) 100%);
    font-family: Cairo, Tahoma, Arial, sans-serif;
    line-height: 1.65;
}

#nfAdminPortal a,
#nfAdminPortal button,
#nfAdminPortal input,
#nfAdminPortal select,
#nfAdminPortal textarea {
    font: inherit;
}

#nfAdminPortal button,
#nfAdminPortal a {
    -webkit-tap-highlight-color: transparent;
}

#nfAdminPortal .nf-admin-shell {
    width: min(1460px, 100%);
    margin: 0 auto;
}

#nfAdminPortal .nf-admin-shell--form {
    width: min(1220px, 100%);
}

#nfAdminPortal .nf-admin-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 25px;
}

#nfAdminPortal .nf-admin-page-header > div:first-child {
    min-width: 0;
}

#nfAdminPortal .nf-admin-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    color: var(--nf-admin-green);
    font-size: 13px;
    font-weight: 900;
}

#nfAdminPortal .nf-admin-eyebrow::before {
    content: "";
    width: 25px;
    height: 3px;
    border-radius: 99px;
    background: var(--nf-admin-gold);
}

#nfAdminPortal .nf-admin-page-header h1 {
    margin: 0;
    color: var(--nf-admin-text);
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -.7px;
}

#nfAdminPortal .nf-admin-page-header p {
    max-width: 690px;
    margin: 8px 0 0;
    color: var(--nf-admin-muted);
    font-size: clamp(14px, 1.7vw, 17px);
}

#nfAdminPortal .nf-admin-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

#nfAdminPortal .nf-admin-primary-button,
#nfAdminPortal .nf-admin-secondary-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 19px;
    border: 1px solid transparent;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.35;
    cursor: pointer;
    transition: transform .17s ease, box-shadow .17s ease, background .17s ease;
}

#nfAdminPortal .nf-admin-primary-button {
    color: #fff;
    background: var(--nf-admin-green);
    box-shadow: 0 11px 28px rgba(13, 90, 60, .20);
}

#nfAdminPortal .nf-admin-primary-button:hover {
    color: #fff;
    background: var(--nf-admin-green-dark);
    transform: translateY(-1px);
}

#nfAdminPortal .nf-admin-secondary-button {
    color: var(--nf-admin-green);
    background: #fff;
    border-color: var(--nf-admin-border);
}

#nfAdminPortal .nf-admin-secondary-button:hover {
    color: var(--nf-admin-green-dark);
    background: var(--nf-admin-green-soft);
    border-color: #b8d7c7;
}

#nfAdminPortal .nf-admin-primary-button svg,
#nfAdminPortal .nf-admin-secondary-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#nfAdminPortal .nf-admin-alert {
    margin-bottom: 20px;
    padding: 14px 17px;
    border: 1px solid;
    border-radius: 14px;
    font-weight: 750;
}

#nfAdminPortal .nf-admin-alert--success {
    color: #075b36;
    background: #e9f9f0;
    border-color: #b8e8cd;
}

#nfAdminPortal .nf-admin-alert--error {
    color: #991b1b;
    background: #fff2f2;
    border-color: #ffcaca;
}

/* =========================================================
   FILTERS + PRODUCT GRID
========================================================= */
#nfAdminPortal .nf-admin-filter-panel {
    display: grid;
    grid-template-columns: minmax(250px, 1.7fr) repeat(6, minmax(135px, 1fr));
    gap: 13px;
    align-items: end;
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid var(--nf-admin-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--nf-admin-shadow);
}

#nfAdminPortal .nf-admin-filter-panel label,
#nfAdminPortal .nf-admin-filter-search {
    min-width: 0;
}

#nfAdminPortal .nf-admin-filter-panel label > span,
#nfAdminPortal .nf-admin-filter-search > label {
    display: block;
    margin-bottom: 6px;
    color: #405149;
    font-size: 12px;
    font-weight: 800;
}

#nfAdminPortal .nf-admin-filter-panel input,
#nfAdminPortal .nf-admin-filter-panel select {
    width: 100%;
    height: 44px;
    min-width: 0;
    padding: 8px 11px;
    border: 1px solid #d5e1db;
    border-radius: 11px;
    outline: none;
    color: var(--nf-admin-text);
    background: #fff;
}

#nfAdminPortal .nf-admin-filter-panel input:focus,
#nfAdminPortal .nf-admin-filter-panel select:focus {
    border-color: var(--nf-admin-green);
    box-shadow: 0 0 0 3px rgba(13, 90, 60, .10);
}

#nfAdminPortal .nf-admin-filter-search > div {
    position: relative;
}

#nfAdminPortal .nf-admin-filter-search svg {
    position: absolute;
    top: 50%;
    inset-inline-start: 12px;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    fill: none;
    stroke: #75857e;
    stroke-width: 1.8;
}

#nfAdminPortal .nf-admin-filter-search input {
    padding-inline-start: 40px;
}

#nfAdminPortal .nf-admin-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 2px;
}

#nfAdminPortal .nf-admin-filter-actions .nf-admin-primary-button,
#nfAdminPortal .nf-admin-filter-actions .nf-admin-secondary-button {
    min-height: 43px;
    padding: 9px 17px;
}

#nfAdminPortal .nf-admin-results-summary {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 14px;
    color: var(--nf-admin-muted);
    font-size: 13px;
}

#nfAdminPortal .nf-admin-results-summary strong {
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 10px;
    color: var(--nf-admin-green);
    background: var(--nf-admin-green-soft);
}

#nfAdminPortal .nf-admin-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 19px;
}

#nfAdminPortal .nf-admin-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--nf-admin-border);
    border-radius: 22px;
    background: var(--nf-admin-surface);
    box-shadow: 0 12px 34px rgba(13, 90, 60, .07);
    transition: transform .18s ease, box-shadow .18s ease;
}

#nfAdminPortal .nf-admin-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 46px rgba(13, 90, 60, .12);
}

#nfAdminPortal .nf-admin-product-image {
    position: relative;
    aspect-ratio: 1 / .82;
    display: block;
    overflow: hidden;
    background: #f2f6f4;
}

#nfAdminPortal .nf-admin-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .28s ease;
}

#nfAdminPortal .nf-admin-product-card:hover .nf-admin-product-image img {
    transform: scale(1.035);
}

#nfAdminPortal .nf-admin-status-badge {
    position: absolute;
    top: 11px;
    inset-inline-start: 11px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(13, 90, 60, .92);
    backdrop-filter: blur(6px);
    font-size: 11px;
    font-weight: 800;
}

#nfAdminPortal .nf-admin-product-content {
    padding: 15px;
}

#nfAdminPortal .nf-admin-product-content h2 {
    min-height: 48px;
    margin: 0;
    color: var(--nf-admin-text);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#nfAdminPortal .nf-admin-product-sku {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: #7a8882;
    font-size: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#nfAdminPortal .nf-admin-product-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 13px 0;
    color: var(--nf-admin-muted);
    font-size: 12px;
    font-weight: 700;
}

#nfAdminPortal .nf-admin-product-meta span:first-child {
    color: var(--nf-admin-green);
    font-size: 14px;
    font-weight: 900;
}

#nfAdminPortal .nf-admin-product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

#nfAdminPortal .nf-admin-product-actions a {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid var(--nf-admin-border);
    border-radius: 11px;
    text-decoration: none;
    color: var(--nf-admin-green);
    background: #fff;
    font-size: 12px;
    font-weight: 850;
}

#nfAdminPortal .nf-admin-product-actions a:hover {
    background: var(--nf-admin-green-soft);
}

#nfAdminPortal .nf-admin-product-actions a.is-primary {
    color: #fff;
    border-color: var(--nf-admin-green);
    background: var(--nf-admin-green);
}

#nfAdminPortal .nf-admin-product-actions a.is-primary:hover {
    background: var(--nf-admin-green-dark);
}

#nfAdminPortal .nf-admin-pagination {
    margin-top: 28px;
}

#nfAdminPortal .nf-admin-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#nfAdminPortal .nf-admin-pagination a,
#nfAdminPortal .nf-admin-pagination span {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--nf-admin-border);
    border-radius: 11px;
    text-decoration: none;
    color: var(--nf-admin-green);
    background: #fff;
    font-weight: 800;
}

#nfAdminPortal .nf-admin-pagination .current {
    color: #fff;
    border-color: var(--nf-admin-green);
    background: var(--nf-admin-green);
}

#nfAdminPortal .nf-admin-empty-state {
    padding: clamp(45px, 8vw, 85px) 20px;
    border: 1px dashed #bfd1c8;
    border-radius: 24px;
    text-align: center;
    background: #fff;
}

#nfAdminPortal .nf-admin-empty-state > span {
    display: block;
    margin-bottom: 10px;
    font-size: 48px;
}

#nfAdminPortal .nf-admin-empty-state h2 {
    margin: 0;
    font-size: 24px;
}

#nfAdminPortal .nf-admin-empty-state p {
    margin: 6px 0 20px;
    color: var(--nf-admin-muted);
}

/* =========================================================
   FORMS
========================================================= */
#nfAdminPortal .nf-product-form {
    display: grid;
    gap: 18px;
}

#nfAdminPortal .nf-form-section {
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid var(--nf-admin-border);
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 11px 35px rgba(13, 90, 60, .06);
}

#nfAdminPortal .nf-form-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 20px;
}

#nfAdminPortal .nf-form-section-heading > span {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 13px;
    color: var(--nf-admin-green);
    background: var(--nf-admin-green-soft);
    font-size: 12px;
    font-weight: 900;
}

#nfAdminPortal .nf-form-section-heading h2,
#nfAdminPortal .nf-form-section-heading p {
    margin: 0;
}

#nfAdminPortal .nf-form-section-heading h2 {
    color: var(--nf-admin-text);
    font-size: 20px;
    font-weight: 900;
}

#nfAdminPortal .nf-form-section-heading p {
    margin-top: 3px;
    color: var(--nf-admin-muted);
    font-size: 13px;
}

#nfAdminPortal .nf-form-grid {
    display: grid;
    gap: 16px;
}

#nfAdminPortal .nf-form-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#nfAdminPortal .nf-form-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#nfAdminPortal .nf-form-field--wide,
#nfAdminPortal .nf-upload-field--wide {
    grid-column: 1 / -1;
}

#nfAdminPortal .nf-form-field,
#nfAdminPortal .nf-upload-field {
    display: block;
    min-width: 0;
}

#nfAdminPortal .nf-form-field > span:first-child,
#nfAdminPortal .nf-upload-title,
#nfAdminPortal .nf-other-field > span {
    display: block;
    margin-bottom: 7px;
    color: #374a41;
    font-size: 13px;
    font-weight: 850;
}

#nfAdminPortal .nf-required-star {
    color: var(--nf-admin-red);
    font-weight: 900;
}

#nfAdminPortal .nf-form-field input,
#nfAdminPortal .nf-form-field select,
#nfAdminPortal .nf-form-field textarea,
#nfAdminPortal .nf-other-field input {
    width: 100%;
    min-height: 50px;
    padding: 11px 13px;
    border: 1px solid #d5e1db;
    border-radius: 13px;
    outline: none;
    color: var(--nf-admin-text);
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}

#nfAdminPortal .nf-form-field textarea {
    min-height: 135px;
    resize: vertical;
}

#nfAdminPortal .nf-form-field input:focus,
#nfAdminPortal .nf-form-field select:focus,
#nfAdminPortal .nf-form-field textarea:focus,
#nfAdminPortal .nf-other-field input:focus {
    border-color: var(--nf-admin-green);
    box-shadow: 0 0 0 4px rgba(13, 90, 60, .09);
}

#nfAdminPortal .nf-input-with-suffix {
    position: relative;
    display: block;
}

#nfAdminPortal .nf-input-with-suffix input {
    padding-inline-end: 58px;
}

#nfAdminPortal .nf-input-with-suffix b {
    position: absolute;
    top: 50%;
    inset-inline-end: 13px;
    transform: translateY(-50%);
    color: var(--nf-admin-green);
    font-size: 12px;
}

#nfAdminPortal .nf-upload-field {
    position: relative;
}

#nfAdminPortal .nf-upload-field > input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

#nfAdminPortal .nf-upload-dropzone {
    min-height: 175px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 22px;
    border: 1.5px dashed #b9cec3;
    border-radius: 18px;
    text-align: center;
    color: var(--nf-admin-text);
    background: #f8fbf9;
    cursor: pointer;
    transition: background .17s ease, border-color .17s ease;
}

#nfAdminPortal .nf-upload-field:hover .nf-upload-dropzone {
    border-color: var(--nf-admin-green);
    background: var(--nf-admin-green-soft);
}

#nfAdminPortal .nf-upload-icon {
    font-size: 31px;
}

#nfAdminPortal .nf-upload-dropzone strong {
    font-size: 14px;
    font-weight: 900;
}

#nfAdminPortal .nf-upload-dropzone small {
    color: var(--nf-admin-muted);
    font-size: 11px;
}

#nfAdminPortal .nf-image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
    margin-top: 9px;
}

#nfAdminPortal .nf-image-preview:empty {
    display: none;
}

#nfAdminPortal .nf-image-preview img {
    width: 100%;
    aspect-ratio: 1;
    display: block;
    object-fit: cover;
    border: 1px solid var(--nf-admin-border);
    border-radius: 12px;
}

#nfAdminPortal .nf-variation-launchers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

#nfAdminPortal .nf-variation-launcher {
    width: 100%;
    min-height: 86px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid var(--nf-admin-border);
    border-radius: 17px;
    text-align: right;
    color: var(--nf-admin-text);
    background: #fff;
    cursor: pointer;
}

#nfAdminPortal .nf-variation-launcher:hover {
    border-color: #aed2bf;
    background: var(--nf-admin-green-soft);
}

#nfAdminPortal .nf-variation-launcher-icon {
    width: 47px;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #f1f6f3;
    font-size: 23px;
}

#nfAdminPortal .nf-variation-launcher strong,
#nfAdminPortal .nf-variation-launcher small {
    display: block;
}

#nfAdminPortal .nf-variation-launcher strong {
    font-size: 14px;
    font-weight: 900;
}

#nfAdminPortal .nf-variation-launcher small {
    margin-top: 3px;
    color: var(--nf-admin-muted);
    font-size: 11px;
}

#nfAdminPortal .nf-launch-arrow {
    color: var(--nf-admin-green);
    font-size: 20px;
}

#nfAdminPortal .nf-form-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 5px 2px 0;
}

#nfAdminPortal .nf-form-submit-row p {
    margin: 0;
    color: var(--nf-admin-muted);
    font-size: 12px;
}

#nfAdminPortal .nf-submit-product-button[aria-busy="true"] {
    opacity: .72;
    pointer-events: none;
}

/* Edit images */
#nfAdminPortal .nf-edit-images-layout {
    display: grid;
    grid-template-columns: minmax(190px, .55fr) minmax(280px, 1.45fr);
    gap: 16px;
    margin-bottom: 18px;
}

#nfAdminPortal .nf-existing-main-image {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#nfAdminPortal .nf-existing-main-image > span,
#nfAdminPortal .nf-existing-gallery h3 {
    color: #374a41;
    font-size: 13px;
    font-weight: 850;
}

#nfAdminPortal .nf-existing-main-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid var(--nf-admin-border);
    border-radius: 18px;
    background: #f4f7f5;
}

#nfAdminPortal .nf-existing-gallery {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid var(--nf-admin-border);
    border-radius: 17px;
    background: #f9fbfa;
}

#nfAdminPortal .nf-existing-gallery h3,
#nfAdminPortal .nf-existing-gallery p {
    margin: 0;
}

#nfAdminPortal .nf-existing-gallery p {
    margin-top: 2px;
    color: var(--nf-admin-muted);
    font-size: 11px;
}

#nfAdminPortal .nf-existing-gallery > div {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

#nfAdminPortal .nf-existing-gallery label {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--nf-admin-border);
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
}

#nfAdminPortal .nf-existing-gallery img {
    width: 100%;
    aspect-ratio: 1;
    display: block;
    object-fit: cover;
}

#nfAdminPortal .nf-existing-gallery input {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    width: 18px;
    height: 18px;
    accent-color: var(--nf-admin-red);
}

#nfAdminPortal .nf-existing-gallery label > span {
    display: block;
    padding: 6px;
    text-align: center;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 850;
}

/* Variation editor */
#nfAdminPortal .nf-variation-editor-list {
    display: grid;
    gap: 12px;
}

#nfAdminPortal .nf-variation-editor-card {
    padding: 15px;
    border: 1px solid var(--nf-admin-border);
    border-radius: 16px;
    background: #fafcfb;
}

#nfAdminPortal .nf-variation-editor-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
}

#nfAdminPortal .nf-variation-editor-card > header strong {
    color: var(--nf-admin-text);
    font-size: 13px;
    font-weight: 900;
}

#nfAdminPortal .nf-variation-editor-card > header span {
    color: var(--nf-admin-muted);
    font-size: 10px;
}

/* =========================================================
   CHOICE MODALS
========================================================= */
body.nf-modal-open {
    overflow: hidden !important;
}

#nfAdminPortal .nf-choice-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: grid;
    place-items: center;
    padding: 18px;
}

#nfAdminPortal .nf-choice-modal[hidden] {
    display: none !important;
}

#nfAdminPortal .nf-choice-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 29, 19, .68);
    backdrop-filter: blur(4px);
}

#nfAdminPortal .nf-choice-modal-dialog {
    position: relative;
    width: min(960px, 100%);
    max-height: min(88vh, 850px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .30);
}

#nfAdminPortal .nf-choice-modal-dialog > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--nf-admin-border);
}

#nfAdminPortal .nf-choice-modal-dialog > header span {
    color: var(--nf-admin-green);
    font-size: 11px;
    font-weight: 900;
}

#nfAdminPortal .nf-choice-modal-dialog > header h2,
#nfAdminPortal .nf-choice-modal-dialog > header p {
    margin: 0;
}

#nfAdminPortal .nf-choice-modal-dialog > header h2 {
    margin-top: 3px;
    font-size: 23px;
    font-weight: 900;
}

#nfAdminPortal .nf-choice-modal-dialog > header p {
    margin-top: 3px;
    color: var(--nf-admin-muted);
    font-size: 12px;
}

#nfAdminPortal .nf-choice-modal-dialog > header > button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    color: var(--nf-admin-text);
    background: #f1f5f3;
    font-size: 26px;
    cursor: pointer;
}

#nfAdminPortal .nf-choice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
    padding: 20px 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#nfAdminPortal .nf-choice-card {
    position: relative;
    min-height: 115px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 14px;
    border: 1px solid var(--nf-admin-border);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

#nfAdminPortal .nf-choice-card:hover {
    border-color: #aed2bf;
    transform: translateY(-1px);
}

#nfAdminPortal .nf-choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#nfAdminPortal .nf-choice-card:has(input:checked) {
    border-color: var(--nf-admin-green);
    background: var(--nf-admin-green-soft);
}

#nfAdminPortal .nf-choice-icon {
    font-size: 27px;
}

#nfAdminPortal .nf-choice-card strong {
    text-align: center;
    font-size: 13px;
    font-weight: 900;
}

#nfAdminPortal .nf-choice-check {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    width: 23px;
    height: 23px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--nf-admin-green);
    font-size: 11px;
    font-weight: 900;
}

#nfAdminPortal .nf-choice-card:has(input:checked) .nf-choice-check {
    display: flex;
}

#nfAdminPortal .nf-color-swatch {
    width: 35px;
    height: 35px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--nf-swatch);
    box-shadow: 0 0 0 1px #cbd7d1;
}

#nfAdminPortal .nf-other-field {
    display: block;
    margin: 0 22px 18px;
}

#nfAdminPortal .nf-other-field[hidden] {
    display: none !important;
}

#nfAdminPortal .nf-choice-modal-dialog > footer {
    display: flex;
    justify-content: flex-end;
    padding: 14px 22px;
    border-top: 1px solid var(--nf-admin-border);
    background: #fafcfb;
}

/* =========================================================
   CUSTOM PRODUCT PREVIEW
========================================================= */
#nfAdminPortal .nf-product-preview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, .75fr);
    gap: 24px;
    align-items: start;
}

#nfAdminPortal .nf-preview-gallery {
    min-width: 0;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 15px;
    border: 1px solid var(--nf-admin-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--nf-admin-shadow);
}

#nfAdminPortal .nf-preview-thumbnails {
    max-height: 660px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    overflow-y: auto;
    padding-inline-end: 3px;
    scrollbar-width: thin;
}

#nfAdminPortal .nf-preview-thumb {
    width: 100%;
    aspect-ratio: 1;
    flex: 0 0 auto;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 13px;
    background: #f5f7f6;
    cursor: pointer;
}

#nfAdminPortal .nf-preview-thumb.is-active {
    border-color: var(--nf-admin-green);
    box-shadow: 0 0 0 2px rgba(13, 90, 60, .10);
}

#nfAdminPortal .nf-preview-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

#nfAdminPortal .nf-preview-main-image {
    position: relative;
    min-width: 0;
    aspect-ratio: 1 / .88;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: #f6f8f7;
    cursor: zoom-in;
}

#nfAdminPortal .nf-preview-main-image > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: transform .35s ease;
}

#nfAdminPortal .nf-preview-main-image:hover > img {
    transform: scale(1.06);
}

#nfAdminPortal .nf-preview-main-image > span {
    position: absolute;
    bottom: 12px;
    inset-inline-end: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(9, 45, 31, .76);
    backdrop-filter: blur(5px);
    font-size: 11px;
    font-weight: 800;
}

#nfAdminPortal .nf-preview-main-image svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

#nfAdminPortal .nf-preview-product-info {
    position: sticky;
    top: 24px;
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid var(--nf-admin-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--nf-admin-shadow);
}

.admin-bar #nfAdminPortal .nf-preview-product-info {
    top: 56px;
}

#nfAdminPortal .nf-preview-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 13px;
}

#nfAdminPortal .nf-preview-badges span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--nf-admin-green);
    background: var(--nf-admin-green-soft);
    font-size: 10px;
    font-weight: 850;
}

#nfAdminPortal .nf-preview-product-info h2 {
    margin: 0;
    font-size: clamp(23px, 3vw, 34px);
    line-height: 1.35;
    font-weight: 900;
}

#nfAdminPortal .nf-preview-price {
    margin: 12px 0;
    color: var(--nf-admin-green);
    font-size: clamp(22px, 3vw, 31px);
    font-weight: 900;
}

#nfAdminPortal .nf-preview-short-description {
    color: #53635c;
    font-size: 13px;
}

#nfAdminPortal .nf-preview-short-description p {
    margin: 0 0 10px;
}

#nfAdminPortal .nf-preview-facts {
    display: grid;
    gap: 0;
    margin: 18px 0;
    border-top: 1px solid var(--nf-admin-border);
}

#nfAdminPortal .nf-preview-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 11px 0;
    border-bottom: 1px solid var(--nf-admin-border);
}

#nfAdminPortal .nf-preview-facts dt,
#nfAdminPortal .nf-preview-facts dd {
    margin: 0;
    font-size: 12px;
}

#nfAdminPortal .nf-preview-facts dt {
    color: var(--nf-admin-muted);
    font-weight: 700;
}

#nfAdminPortal .nf-preview-facts dd {
    text-align: left;
    color: var(--nf-admin-text);
    font-weight: 850;
}

#nfAdminPortal .nf-preview-edit-button {
    width: 100%;
}

#nfAdminPortal .nf-preview-section {
    margin-top: 22px;
    padding: clamp(19px, 3vw, 28px);
    border: 1px solid var(--nf-admin-border);
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 11px 35px rgba(13, 90, 60, .06);
}

#nfAdminPortal .nf-preview-section-heading span {
    color: var(--nf-admin-green);
    font-size: 11px;
    font-weight: 900;
}

#nfAdminPortal .nf-preview-section-heading h2 {
    margin: 3px 0 13px;
    font-size: 22px;
    font-weight: 900;
}

#nfAdminPortal .nf-preview-description {
    color: #46574f;
    font-size: 14px;
}

#nfAdminPortal .nf-preview-description p:last-child {
    margin-bottom: 0;
}

#nfAdminPortal .nf-responsive-table {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--nf-admin-border);
    border-radius: 15px;
}

#nfAdminPortal .nf-preview-variations-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

#nfAdminPortal .nf-preview-variations-table th,
#nfAdminPortal .nf-preview-variations-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--nf-admin-border);
    text-align: right;
    font-size: 12px;
}

#nfAdminPortal .nf-preview-variations-table th {
    color: #405149;
    background: #f4f8f6;
    font-weight: 900;
}

#nfAdminPortal .nf-preview-variations-table tr:last-child td {
    border-bottom: 0;
}

.nf-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000001;
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr) 55px;
    align-items: center;
    gap: 15px;
    padding: 30px;
    background: rgba(2, 18, 12, .93);
    backdrop-filter: blur(7px);
}

.nf-gallery-lightbox[hidden] {
    display: none !important;
}

.nf-gallery-lightbox > img {
    max-width: 100%;
    max-height: calc(100vh - 60px);
    justify-self: center;
    object-fit: contain;
    border-radius: 16px;
}

.nf-lightbox-close,
.nf-lightbox-arrow {
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    background: rgba(255, 255, 255, .10);
    cursor: pointer;
}

.nf-lightbox-close {
    position: absolute;
    top: 20px;
    inset-inline-end: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 29px;
}

.nf-lightbox-arrow {
    width: 52px;
    height: 72px;
    border-radius: 16px;
    font-size: 35px;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1320px) {
    #nfAdminPortal .nf-admin-filter-panel {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    #nfAdminPortal .nf-admin-filter-search {
        grid-column: span 2;
    }
}

@media (max-width: 1150px) {
    #nfAdminPortal .nf-admin-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #nfAdminPortal .nf-product-preview-layout {
        grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    }

    #nfAdminPortal .nf-form-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    #nfAdminPortal .nf-admin-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    #nfAdminPortal .nf-admin-header-actions,
    #nfAdminPortal .nf-admin-page-header > .nf-admin-primary-button,
    #nfAdminPortal .nf-admin-page-header > .nf-admin-secondary-button {
        align-self: flex-start;
    }

    #nfAdminPortal .nf-admin-filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #nfAdminPortal .nf-admin-filter-search {
        grid-column: 1 / -1;
    }

    #nfAdminPortal .nf-admin-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #nfAdminPortal .nf-product-preview-layout {
        grid-template-columns: 1fr;
    }

    #nfAdminPortal .nf-preview-product-info {
        position: static;
    }

    #nfAdminPortal .nf-choice-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .nf-admin-profile-nav-item {
        width: auto !important;
        justify-content: flex-start !important;
        margin: 7px 0 !important;
    }

    .nf-admin-profile-trigger {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }

    .nf-admin-profile-dropdown {
        position: fixed !important;
        top: auto !important;
        right: 12px !important;
        left: 12px !important;
        bottom: 14px !important;
        width: auto !important;
        max-height: calc(100vh - 90px) !important;
        overflow-y: auto !important;
    }

    .nf-admin-profile-dropdown::before {
        display: none;
    }

    #nfAdminPortal {
        padding-inline: 12px;
    }

    #nfAdminPortal .nf-form-grid--two,
    #nfAdminPortal .nf-variation-launchers,
    #nfAdminPortal .nf-edit-images-layout {
        grid-template-columns: 1fr;
    }

    #nfAdminPortal .nf-form-field--wide,
    #nfAdminPortal .nf-upload-field--wide {
        grid-column: auto;
    }

    #nfAdminPortal .nf-preview-gallery {
        grid-template-columns: 1fr;
    }

    #nfAdminPortal .nf-preview-thumbnails {
        max-height: none;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
    }

    #nfAdminPortal .nf-preview-thumb {
        width: 74px;
    }

    #nfAdminPortal .nf-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nf-gallery-lightbox {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 7px;
        padding: 18px 8px;
    }

    .nf-lightbox-arrow {
        width: 42px;
        height: 58px;
    }
}

@media (max-width: 560px) {
    #nfAdminPortal .nf-admin-page-header h1 {
        font-size: 30px;
    }

    #nfAdminPortal .nf-admin-header-actions,
    #nfAdminPortal .nf-form-submit-row,
    #nfAdminPortal .nf-admin-filter-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    #nfAdminPortal .nf-admin-header-actions a,
    #nfAdminPortal .nf-form-submit-row button,
    #nfAdminPortal .nf-admin-filter-actions a,
    #nfAdminPortal .nf-admin-filter-actions button,
    #nfAdminPortal .nf-admin-page-header > .nf-admin-primary-button,
    #nfAdminPortal .nf-admin-page-header > .nf-admin-secondary-button {
        width: 100%;
    }

    #nfAdminPortal .nf-admin-filter-panel {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    #nfAdminPortal .nf-admin-filter-search {
        grid-column: auto;
    }

    #nfAdminPortal .nf-admin-products-grid {
        grid-template-columns: 1fr;
    }

    #nfAdminPortal .nf-admin-product-content h2 {
        min-height: 0;
    }

    #nfAdminPortal .nf-form-section {
        padding: 16px;
        border-radius: 18px;
    }

    #nfAdminPortal .nf-form-grid--four {
        grid-template-columns: 1fr;
    }

    #nfAdminPortal .nf-choice-modal {
        padding: 8px;
    }

    #nfAdminPortal .nf-choice-modal-dialog {
        max-height: 94vh;
        border-radius: 19px;
    }

    #nfAdminPortal .nf-choice-modal-dialog > header,
    #nfAdminPortal .nf-choice-grid,
    #nfAdminPortal .nf-choice-modal-dialog > footer {
        padding-inline: 14px;
    }

    #nfAdminPortal .nf-choice-grid {
        gap: 8px;
    }

    #nfAdminPortal .nf-choice-card {
        min-height: 98px;
        padding: 10px;
    }

    #nfAdminPortal .nf-preview-main-image {
        aspect-ratio: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    #nfAdminPortal *,
    .nf-admin-profile-menu * {
        transition: none !important;
        animation: none !important;
    }
}


.nf-admin-orders-menu-link { position: relative; }
.nf-admin-orders-badge {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    margin-right: auto;
    padding: 0 6px;
    place-items: center;
    color: #fff;
    border-radius: 999px;
    background: #dc2626;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 900;
}
.nf-admin-orders-badge[hidden] { display: none !important; }

/* =========================================================
   V26 — ROLE NAVIGATION, DELETE ACTION, AND FAST SCROLL
========================================================= */
.nf-login-nav-button {
    display: inline-flex !important;
    min-height: 43px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 19px !important;
    border: 1px solid rgba(255,255,255,.42) !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: rgba(255,255,255,.12) !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    transition: background .15s ease, color .15s ease !important;
}
.nf-login-nav-button:hover { color: var(--nf-admin-green) !important; background: #fff !important; }

#nfAdminPortal .nf-admin-product-actions { grid-template-columns: repeat(3, minmax(0,1fr)); }
#nfAdminPortal .nf-admin-product-actions button {
    min-height: 40px;
    margin: 0;
    padding: 8px 8px;
    border: 1px solid #f1b8b8;
    border-radius: 11px;
    color: #b42318;
    background: #fff5f5;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
}
#nfAdminPortal .nf-admin-product-actions button:hover { background: #ffe6e6; }
#nfAdminPortal .nf-admin-product-actions button:disabled { cursor: wait; opacity: .65; }

#nfAdminPortal .nf-admin-product-card,
.nf-admin-profile-dropdown {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
#nfAdminPortal .nf-admin-product-card {
    content-visibility: auto;
    contain: layout paint style;
    contain-intrinsic-size: 360px;
}
#nfAdminPortal .nf-admin-status-badge { backdrop-filter: none !important; }

@media (hover: none), (pointer: coarse) {
    #nfAdminPortal .nf-admin-product-card,
    #nfAdminPortal .nf-admin-product-card:hover,
    #nfAdminPortal .nf-admin-product-image img,
    #nfAdminPortal .nf-admin-product-card:hover .nf-admin-product-image img {
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 767px) {
    .nf-login-nav-button { min-height: 40px !important; padding-inline: 15px !important; }
}


/* =========================================================
   V27 — GUARANTEED ROLE ACCOUNT CONTROL INSIDE THE HEADER
========================================================= */
.nf-profile-header-host,
.nf-profile-mount-host,
.nf-profile-overflow-host {
    overflow: visible !important;
}

.nf-profile-header-host {
    position: relative !important;
}

.nf-profile-mount-host {
    display: flex !important;
    align-items: center !important;
}

.nf-admin-profile-nav-item--direct {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin-inline-start: 10px !important;
}

.nf-profile-header-fallback {
    position: absolute !important;
    z-index: 99997 !important;
    top: 50% !important;
    inset-inline-end: clamp(12px, 2vw, 28px) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: translateY(-50%) !important;
}

.nf-admin-profile-trigger {
    border-color: #0b5d35 !important;
    background: #0b5d35 !important;
    color: #fff !important;
    box-shadow: 0 7px 20px rgba(7, 77, 43, .20) !important;
}

.nf-admin-profile-trigger:hover,
.nf-admin-profile-trigger[aria-expanded="true"] {
    border-color: #0b5d35 !important;
    background: #fff !important;
    color: #0b5d35 !important;
}

.nf-login-nav-button {
    border-color: #0b5d35 !important;
    background: #0b5d35 !important;
    color: #fff !important;
    box-shadow: 0 7px 20px rgba(7, 77, 43, .18) !important;
    white-space: nowrap !important;
}

.nf-login-nav-button:hover {
    border-color: #0b5d35 !important;
    background: #fff !important;
    color: #0b5d35 !important;
}

.elementor-nav-menu .nf-admin-profile-nav-item > a,
.menu .nf-admin-profile-nav-item > a {
    display: none !important;
}

@media (max-width: 767px) {
    .nf-profile-header-fallback {
        inset-inline-end: 12px !important;
    }

    .nf-admin-profile-nav-item--direct {
        margin-inline-start: 7px !important;
    }

    .nf-admin-profile-menu,
    .nf-guest-navigation {
        z-index: 100000 !important;
    }
}

/* =========================================================
   V28 — SMART SHEET IMPORT + FIVE/TWO PRODUCT GRID
========================================================= */
#nfAdminPortal .nf-sheet-import-panel {
    margin: 0 0 22px;
    padding: 20px;
    border: 1px solid #cce7d9;
    border-radius: 24px;
    background: linear-gradient(135deg, #f0fbf5 0%, #ffffff 72%);
    box-shadow: 0 16px 38px rgba(7, 84, 56, .08);
}
#nfAdminPortal .nf-sheet-import-panel__heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
#nfAdminPortal .nf-sheet-import-panel__icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #fff;
    background: #075438;
    font-size: 27px;
    font-weight: 900;
}
#nfAdminPortal .nf-sheet-import-panel__heading > div > span {
    color: #d68508;
    font-size: 12px;
    font-weight: 900;
}
#nfAdminPortal .nf-sheet-import-panel__heading h2 {
    margin: 2px 0 4px;
    color: #143c2d;
    font-size: clamp(20px, 2.4vw, 29px);
    line-height: 1.25;
}
#nfAdminPortal .nf-sheet-import-panel__heading p {
    margin: 0;
    color: #64766e;
    font-size: 14px;
}
#nfAdminPortal .nf-sheet-import-form {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) minmax(220px, 1fr) auto;
    align-items: center;
    gap: 14px;
}
#nfAdminPortal .nf-sheet-import-dropzone {
    min-height: 88px;
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-areas: "icon title" "icon copy";
    align-items: center;
    gap: 2px 11px;
    padding: 14px 16px;
    border: 2px dashed #9ecdb5;
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
#nfAdminPortal .nf-sheet-import-dropzone:hover {
    border-color: #08744b;
    background: #f9fffb;
    transform: translateY(-1px);
}
#nfAdminPortal .nf-sheet-import-dropzone input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}
#nfAdminPortal .nf-sheet-import-dropzone > span { grid-area: icon; font-size: 32px; }
#nfAdminPortal .nf-sheet-import-dropzone strong { grid-area: title; color: #075438; font-size: 15px; }
#nfAdminPortal .nf-sheet-import-dropzone small { grid-area: copy; overflow: hidden; color: #6d7e76; text-overflow: ellipsis; white-space: nowrap; }
#nfAdminPortal .nf-sheet-import-options {
    display: grid;
    gap: 9px;
    color: #354b41;
    font-size: 13px;
    font-weight: 750;
}
#nfAdminPortal .nf-sheet-import-options label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}
#nfAdminPortal .nf-sheet-import-options input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: #08744b;
}
#nfAdminPortal .nf-sheet-import-form > .nf-admin-primary-button {
    min-width: 190px;
    white-space: nowrap;
}
#nfAdminPortal .nf-sheet-import-status {
    grid-column: 1 / -1;
    padding: 11px 13px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
}
#nfAdminPortal .nf-sheet-import-status.is-loading { color: #734b00; background: #fff6dd; }
#nfAdminPortal .nf-sheet-import-status.is-success { color: #075438; background: #e9f9f0; }
#nfAdminPortal .nf-sheet-import-status.is-error { color: #991b1b; background: #fff0f0; }
#nfAdminPortal .nf-import-report {
    margin: 0 0 18px;
    padding: 15px 17px;
    border: 1px solid #bde4ce;
    border-radius: 17px;
    background: #ecfaf2;
}
#nfAdminPortal .nf-import-report.has-errors { border-color: #f3d19c; background: #fff8e9; }
#nfAdminPortal .nf-import-report__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px 18px;
}
#nfAdminPortal .nf-import-report__summary strong { color: #075438; }
#nfAdminPortal .nf-import-report__summary span { color: #42584e; font-size: 13px; font-weight: 800; }
#nfAdminPortal .nf-import-report__errors { margin-top: 12px; color: #7b4a00; }
#nfAdminPortal .nf-import-report__errors summary { cursor: pointer; font-weight: 900; }
#nfAdminPortal .nf-import-report__errors ol { max-height: 220px; overflow: auto; margin: 9px 20px 0 0; padding: 0; }
#nfAdminPortal .nf-optional-label {
    display: inline-flex;
    margin-inline-start: 5px;
    padding: 2px 7px;
    border-radius: 999px;
    color: #567067;
    background: #edf4f0;
    font-size: 10px;
    font-weight: 800;
}

/* Exactly five product cards on non-mobile screens and two on mobile. */
#nfAdminPortal .nf-admin-products-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 13px !important;
}
#nfAdminPortal .nf-admin-product-card { border-radius: 17px; }
#nfAdminPortal .nf-admin-product-content { padding: 12px !important; }
#nfAdminPortal .nf-admin-product-content h2 { font-size: 15px !important; }

@media (max-width: 1050px) {
    #nfAdminPortal .nf-sheet-import-form { grid-template-columns: 1fr 1fr; }
    #nfAdminPortal .nf-sheet-import-form > .nf-admin-primary-button { width: 100%; }
}
@media (max-width: 767px) {
    #nfAdminPortal .nf-sheet-import-panel { padding: 14px; border-radius: 18px; }
    #nfAdminPortal .nf-sheet-import-panel__heading { align-items: flex-start; }
    #nfAdminPortal .nf-sheet-import-panel__icon { width: 43px; height: 43px; flex-basis: 43px; border-radius: 13px; font-size: 22px; }
    #nfAdminPortal .nf-sheet-import-form { grid-template-columns: 1fr; }
    #nfAdminPortal .nf-sheet-import-status { grid-column: auto; }
    #nfAdminPortal .nf-sheet-import-form > .nf-admin-primary-button { min-width: 0; }
    #nfAdminPortal .nf-admin-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }
    #nfAdminPortal .nf-admin-product-content { padding: 9px !important; }
    #nfAdminPortal .nf-admin-product-content h2 { min-height: 38px !important; font-size: 13px !important; }
    #nfAdminPortal .nf-admin-product-meta { gap: 5px !important; font-size: 10px !important; }
    #nfAdminPortal .nf-admin-product-actions { grid-template-columns: 1fr !important; gap: 6px !important; }
    #nfAdminPortal .nf-admin-product-actions a,
    #nfAdminPortal .nf-admin-product-actions button { min-height: 34px !important; padding: 6px !important; font-size: 10px !important; }
}


/* =========================================================
   V29 — RELIABLE PRODUCT DELETE + MINIMAL SHEET UPLOADER
========================================================= */
#nfAdminPortal .nf-sheet-import-panel--minimal {
    padding: 18px !important;
}
#nfAdminPortal .nf-sheet-import-title {
    margin: 0 0 13px !important;
    color: #143c2d !important;
    font-size: clamp(20px, 2.3vw, 28px) !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
}
#nfAdminPortal .nf-sheet-import-form--minimal {
    display: block !important;
}
#nfAdminPortal .nf-sheet-import-dropzone--minimal {
    width: 100% !important;
    min-height: 100px !important;
    box-sizing: border-box !important;
}
#nfAdminPortal .nf-sheet-import-form--minimal .nf-sheet-import-status {
    margin-top: 12px !important;
}
@media (max-width: 767px) {
    #nfAdminPortal .nf-sheet-import-panel--minimal {
        padding: 13px !important;
    }
    #nfAdminPortal .nf-sheet-import-title {
        margin-bottom: 10px !important;
        font-size: 20px !important;
    }
    #nfAdminPortal .nf-sheet-import-dropzone--minimal {
        min-height: 88px !important;
    }
}
