/* =========================================================
   HEALTHY LIFE
   CLEAN MODERN RESPONSIVE DESIGN SYSTEM
   ========================================================= */


/* =========================================================
   01. DESIGN TOKENS
   ========================================================= */

:root {

    /* ---------- Brand ---------- */

    --primary: #003b95;
    --primary-dark: #002d73;
    --primary-light: #0071c2;
    --primary-hover: #005da8;
    --primary-soft: #eef6ff;

    --green: #38e143;
    --green-dark: #008234;
    --green-soft: #ecfdf1;

    --yellow: #ffb700;

    /* ---------- Text ---------- */

    --text: #172033;
    --text-dark: #111827;
    --text-muted: #667085;
    --text-light: #98a2b3;

    /* ---------- Background ---------- */

    --background: #f5f7fa;
    --surface: #ffffff;
    --surface-soft: #f8fafc;

    /* ---------- Borders ---------- */

    --border: #e4e7ec;
    --border-dark: #d0d5dd;

    /* ---------- Status ---------- */

    --success: #16a34a;
    --success-dark: #15803d;

    --danger: #dc2626;
    --danger-dark: #b91c1c;

    --warning: #f59e0b;

    /* ---------- Radius ---------- */

    --radius-xs: .375rem;
    --radius-sm: .5rem;
    --radius-md: .75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-pill: 999px;

    /* ---------- Shadows ---------- */

    --shadow-xs:
        0 .0625rem .1875rem rgba(16,24,40,.06);

    --shadow-sm:
        0 .25rem .75rem rgba(16,24,40,.07);

    --shadow-md:
        0 .5rem 1.5rem rgba(16,24,40,.09);

    --shadow-lg:
        0 1.125rem 2.8rem rgba(16,24,40,.13);

    --shadow-xl:
        0 1.75rem 5rem rgba(16,24,40,.20);

    /* ---------- Motion ---------- */

    --transition-fast: .15s ease;
    --transition: .22s ease;
    --transition-slow: .35s ease;

    /* ---------- Layout ---------- */

    --content-width: 78.125rem;

    /* ---------- Product UI ---------- */

    --product-primary: #2563eb;
    --product-primary-hover: #1d4ed8;
    --product-bg: #ffffff;
    --product-surface: #f8fafc;
    --product-border: #e5e7eb;
    --product-text: #111827;
    --product-muted: #6b7280;

    --product-radius: 1rem;

    --product-shadow:
        0 .5rem 1.5rem rgba(15,23,42,.07);

    --product-shadow-hover:
        0 1rem 2.5rem rgba(15,23,42,.12);
}


/* =========================================================
   02. GLOBAL RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;

    overflow-x: hidden;
    overflow-y: auto;

    scroll-behavior: smooth;

    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    min-height: 100%;

    margin: 0;

    background: var(--background);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    font-size: 1rem;
    line-height: 1.45;

    overflow-x: hidden;
    overflow-y: auto;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
    max-width: 100%;
    font-family: inherit;
}

button,
input,
textarea {
    -webkit-appearance: none;
    appearance: none;
}

button {
    border: 0;
    -webkit-tap-highlight-color: transparent;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

img {
    display: block;
}

table {
    max-width: 100%;
}

a {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: rgba(0,113,194,.18);
}

@media (max-width: 768px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
    }

}

/* =========================================================
   03. HEADER
   ========================================================= */

.header {
    position: relative;
    z-index: 20;

    padding: 1rem 6%;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #38e143 0%,
            #31d83c 100%
        );

    box-shadow:
        0 .125rem .75rem rgba(0,0,0,.07);
}

.nav {
    width: 100%;
    max-width: var(--content-width);

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1.25rem;

    color: var(--primary-dark);
}

.logo {
    flex-shrink: 0;
}

.logo img {
    width: 12.5rem;
    height: auto;

    transition:
        transform var(--transition);
}

.logo img:hover {
    transform: scale(1.02);
}

.logo span {
    color: #2217c3;
}

.nav-links {
    display: flex;
    align-items: center;

    gap: .5rem;
}

.nav-links a {
    padding: .5625rem .625rem;

    border-radius: .5rem;

    color: #fff;

    font-size: .875rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        background var(--transition),
        opacity var(--transition);
}

.nav-links a:hover {
    background: rgba(255,255,255,.12);
}


/* =========================================================
   HEADER BUTTONS
   ========================================================= */

/* =========================================================
   HEADER ACTIONS
   Language + Account + Cart
   ========================================================= */

.language-select,
.account-button,
.cart-button {
    height: 2.7rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(0, 59, 149, .12);
    border-radius: .8rem;

    background: rgba(255, 255, 255, .96);

    color: #17324d;

    font-family: inherit;
    font-size: .82rem;
    font-weight: 700;

    box-shadow:
        0 3px 12px rgba(15, 23, 42, .06);

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

/* =========================================================
   LANGUAGE
   ========================================================= */

.language-select {
    min-width: 8.8rem;

    padding: 0 .8rem;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    background-image:
        linear-gradient(45deg, transparent 50%, #64748b 50%),
        linear-gradient(135deg, #64748b 50%, transparent 50%);

    background-position:
        calc(100% - 14px) 50%,
        calc(100% - 9px) 50%;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;

    outline: none;
}

.language-select:hover {
    border-color: rgba(0, 59, 149, .3);

    background-color: #f8fbff;

    color: #003b95;

    box-shadow:
        0 5px 16px rgba(0, 59, 149, .10);

    transform: translateY(-1px);
}

.language-select:focus {
    border-color: #003b95;

    box-shadow:
        0 0 0 3px rgba(0, 59, 149, .10);
}

.language-select option {
    background: #fff;

    color: #17324d;

    font-weight: 600;
}

/* =========================================================
   ACCOUNT BUTTON
   ========================================================= */

.account-button {
    gap: .45rem;

    min-width: 7rem;

    padding: 0 .9rem;

    cursor: pointer;
}

.account-button:hover {
    border-color: rgba(0, 59, 149, .3);

    background: #f8fbff;

    color: #003b95;

    box-shadow:
        0 5px 16px rgba(0, 59, 149, .10);

    transform: translateY(-1px);
}

.account-button:active {
    transform: scale(.97);
}

.account-button:focus-visible {
    outline: 2px solid #003b95;

    outline-offset: 2px;
}

/* =========================================================
   CART BUTTON
   ========================================================= */

.cart-button {
    gap: .4rem;

    padding: 0 .9rem;

    cursor: pointer;

    white-space: nowrap;
}

.cart-button:hover {
    border-color: rgba(0, 59, 149, .3);

    background: #f8fbff;

    color: #003b95;

    box-shadow:
        0 5px 16px rgba(0, 59, 149, .10);

    transform: translateY(-1px);
}

.cart-button:active {
    transform: scale(.97);
}

.cart-button:focus-visible {
    outline: 2px solid #003b95;

    outline-offset: 2px;
}

/* =========================================================
   CART COUNT
   ========================================================= */

#cartCount {
    min-width: 1.25rem;
    height: 1.25rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 .25rem;

    border-radius: 999px;

    background: #003b95;

    color: #fff;

    font-size: .68rem;
    font-weight: 800;
    line-height: 1;
}

/* =========================================================
   HEADER ACTION GROUP
   If your buttons have a common parent
   ========================================================= */

.language-select,
.account-button,
.cart-button {
    flex-shrink: 0;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {

    .language-select,
    .account-button,
    .cart-button {
        height: 2.5rem;

        border-radius: .7rem;

        font-size: .76rem;
    }

    .language-select {
        min-width: 7.7rem;

        padding: 0 .65rem;
    }

    .account-button {
        min-width: auto;

        padding: 0 .7rem;
    }

    .cart-button {
        padding: 0 .7rem;
    }
}

/* =========================================================
   PHONE
   ========================================================= */

@media (max-width: 480px) {

    .language-select,
    .account-button,
    .cart-button {
        height: 2.35rem;

        border-radius: .65rem;

        font-size: .7rem;

        box-shadow:
            0 2px 8px rgba(15, 23, 42, .06);
    }

    .language-select {
        min-width: 6.5rem;

        padding: 0 .5rem;

        background-position:
            calc(100% - 11px) 50%,
            calc(100% - 7px) 50%;
    }

    .account-button {
        min-width: 2.35rem;

        padding: 0 .55rem;

        gap: 0;
    }

    .cart-button {
        padding: 0 .55rem;

        gap: .25rem;
    }

    #accountButtonText {
        display: none;
    }

    #cartCount {
        min-width: 1.1rem;
        height: 1.1rem;

        font-size: .6rem;
    }
}

/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

    .language-select {
        min-width: 5.8rem;

        font-size: .65rem;
    }

    .account-button,
    .cart-button {
        height: 2.2rem;
    }
}






/* =========================================================
   04. HERO
   ========================================================= */

.hero {
    position: relative;

    padding: 4.25rem 6% 6.5rem;

    overflow: hidden;

    color: #fff;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(56,225,67,.10),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #002d73 0%,
            #003b95 52%,
            #075ebd 100%
        );
}

.hero::after {
    content: "";

    position: absolute;

    width: 26.25rem;
    height: 26.25rem;

    right: -11.25rem;
    bottom: -16.25rem;

    border-radius: 50%;

    background:
        rgba(255,255,255,.035);
}

.hero-content {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: var(--content-width);

    margin: 0 auto;
}

.hero h1 {
    max-width: 50rem;

    margin: 0 0 1rem;

    font-size: clamp(1.875rem,4vw,2.75rem);
    line-height: 1.12;

    letter-spacing: -.025em;
}

.hero p {
    max-width: 40.625rem;

    margin: 0 0 1.875rem;

    color: rgba(255,255,255,.82);

    font-size: 1.0625rem;
    line-height: 1.65;
}


/* =========================================================
   05. SEARCH
   ========================================================= */

.search-box {
    width: 100%;
    max-width: 70rem;

    display: grid;

    grid-template-columns:
        1.5fr
        2.5fr
        1fr;

    gap: .375rem;

    padding: .375rem;
    border-radius: .875rem;

    background: var(--yellow);
}

.hero-search-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}


.search-field {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: .5rem;

    padding: .8125rem .875rem;

    border-radius: .5625rem;

    background: #fff;
    color: var(--text-muted);

    transition:
        box-shadow var(--transition);
}

.search-field:focus-within {
    box-shadow:
        0 0 0 .125rem rgba(0,59,149,.18);
}

.search-field input,
.search-field select {
    width: 100%;
    min-width: 0;

    border: 0;
    outline: 0;

    background: transparent;
    color: var(--text);

    font-size: .9375rem;
}

.search-field input::placeholder {
    color: var(--text-light);
}


/* =========================================================
   06. MAIN CONTAINER
   ========================================================= */

.container {
    position: relative;
    z-index: 5;

    width: 100%;
    max-width: var(--content-width);

    margin: -2.8125rem auto 3.75rem;

    padding: 0 1.25rem;
}


/* =========================================================
   07. CATEGORIES
   ========================================================= */

.categories {
    margin-bottom: 2rem;

    padding: 1.625rem;

    border:
        .0625rem solid var(--border);

    border-radius: var(--radius-lg);

    background: var(--surface);

    box-shadow: var(--shadow-md);
}

.categories h2 {
    margin: 0 0 1.25rem;

    font-size: 1.375rem;
    line-height: 1.25;
}

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(6,minmax(0,1fr));

    gap: .75rem;
}

.category {
    min-width: 0;

    padding: 1.125rem .625rem;

    border:
        .0625rem solid var(--border);

    border-radius: var(--radius-md);

    background: #fff;

    text-align: center;

    cursor: pointer;

    transition:
        border-color var(--transition),
        background var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.category:hover {
    transform: translateY(-.125rem);

    border-color: #b8d6ef;

    background: #f8fcff;

    box-shadow: var(--shadow-sm);
}

.category.active {
    border-color: #8fc3e9;

    background: #f0f8ff;

    color: var(--primary-light);

    box-shadow:
        0 .3125rem 1rem rgba(0,113,194,.08);
}

.category-icon {
    margin-bottom: .5rem;

    font-size: 1.875rem;
}

.category-name {
    font-size: .8125rem;
    font-weight: 700;
    line-height: 1.3;
}


/* =========================================================
   08. CONTENT LAYOUT
   ========================================================= */

.content-layout {
    width: 100%;

    display: grid;

    grid-template-columns:
        15.625rem
        minmax(0,1fr);

    gap: 1.5rem;
}

.content-layout > * {
    min-width: 0;
}


/* =========================================================
   09. FILTERS
   ========================================================= */

.filters {
    height: fit-content;

    padding: 1.25rem;

    border:
        .0625rem solid var(--border);

    border-radius: var(--radius-md);

    background: #fff;

    box-shadow: var(--shadow-xs);
}

.filters h3 {
    margin: 0 0 1rem;

    font-size: 1rem;
}

.filter-group {
    padding: 1.125rem 0;

    border-top:
        .0625rem solid var(--border);
}

.filter-group h4 {
    margin: 0 0 .6875rem;

    font-size: .875rem;
}

.filter-group label {
    display: block;

    margin: .5625rem 0;

    color: #475467;

    font-size: .875rem;

    cursor: pointer;

    transition:
        color var(--transition);
}

.filter-group label:hover {
    color: var(--primary-light);
}

.filter-group input {
    margin-right: .5rem;

    accent-color: var(--primary-light);
}


/* =========================================================
   10. PRODUCTS HEADER
   ========================================================= */

.products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: .9375rem;

    margin-bottom: 1.125rem;
}

.products-header h2 {
    margin: 0;

    font-size: 1.5rem;

    letter-spacing: -.015em;
}

.sort {
    min-height: 2.5rem;

    padding: 0 .75rem;

    border:
        .0625rem solid var(--border-dark);

    border-radius: .5625rem;

    outline: 0;

    background: #fff;
    color: var(--text);

    cursor: pointer;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.sort:focus {
    border-color: var(--primary-light);

    box-shadow:
        0 0 0 .1875rem rgba(0,113,194,.10);
}


/* =========================================================
   11. PUBLIC PRODUCTS GRID
   ========================================================= */

.products {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap: 1.25rem;
}

.products > * {
    min-width: 0;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.product-card {
    min-width: 0;

    overflow: hidden;

    border:
        .0625rem solid var(--border);

    border-radius: .875rem;

    background: #fff;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.product-card:hover {
    transform: translateY(-.25rem);

    border-color: #d5e1ef;

    box-shadow:
        0 .9375rem 2.1875rem rgba(16,24,40,.10);
}


/* =========================================================
   12. PRODUCT IMAGE
   ========================================================= */

.product-image {
    position: relative;

    height: 13.75rem;
    min-height: 13.75rem;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #f7fbff 0%,
            #eef6fb 100%
        );
}

.product-image .product-icon-image {
    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    padding: .875rem;

    object-fit: contain;
    object-position: center;

    transition:
        transform .3s ease;
}

.product-card:hover
.product-image .product-icon-image {
    transform: scale(1.025);
}

.product-emoji {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   13. BADGE
   ========================================================= */

.badge {
    position: absolute;
    z-index: 2;

    top: .75rem;
    left: .75rem;

    padding: .375rem .5625rem;

    border-radius: .4375rem;

    background: var(--green-dark);

    color: #fff;

    font-size: .6875rem;
    font-weight: 800;

    box-shadow:
        0 .1875rem .5rem rgba(0,0,0,.10);
}


/* =========================================================
   14. PRODUCT INFO
   ========================================================= */

.product-info {
    min-width: 0;

    padding: 1.125rem;
}

.product-info h3 {
    margin: 0 0 .4375rem;

    font-size: 1rem;
    line-height: 1.4;

    overflow-wrap: anywhere;
}

.brand {
    margin-bottom: .625rem;

    color: var(--text-muted);

    font-size: .8125rem;
}

.rating {
    display: flex;
    align-items: center;

    gap: .4375rem;

    margin-bottom: .75rem;
}

.rating-number {
    padding: .3125rem .4375rem;

    border-radius: .375rem;

    background: var(--primary);

    color: #fff;

    font-size: .75rem;
    font-weight: 800;
}

.reviews {
    color: var(--text-muted);

    font-size: .75rem;
}

.price {
    margin-top: .625rem;
}

.price small {
    color: var(--text-muted);
}

.price strong {
    font-size: 1.4375rem;

    letter-spacing: -.015em;
}

.stock {
    margin: .5rem 0;

    color: var(--green-dark);

    font-size: .8125rem;
    font-weight: 700;
}


/* =========================================================
   15. PRODUCT ACTIONS
   ========================================================= */

.product-actions {
    display: flex;

    gap: .5rem;

    margin-top: .875rem;
}

.details-btn,
.add-btn {
    flex: 1;
    min-width: 0;

    min-height: 2.625rem;

    padding: 0 .75rem;

    border-radius: .5625rem;

    cursor: pointer;

    font-weight: 700;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.details-btn {
    border:
        .0625rem solid #b8d4ed;

    background: #fff;

    color: var(--primary-light);
}

.details-btn:hover {
    transform: translateY(-.0625rem);

    border-color: #91bee2;

    background: #f5faff;
}

.add-btn {
    border: 0;

    background:
        linear-gradient(
            135deg,
            #0071c2,
            #005da8
        );

    color: #fff;

    box-shadow:
        0 .1875rem .5rem rgba(0,113,194,.12);
}

.add-btn:hover {
    transform: translateY(-.0625rem);

    background:
        linear-gradient(
            135deg,
            #0068b4,
            #005595
        );

    box-shadow:
        0 .375rem .9375rem rgba(0,113,194,.20);
}

.add-btn:active,
.details-btn:active {
    transform: scale(.98);
}


/* =========================================================
   16. CART
   ========================================================= */

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;

    display: none;

    overflow: hidden;

    background: rgba(15,23,42,.50);

    backdrop-filter: blur(.1875rem);
    -webkit-backdrop-filter: blur(.1875rem);
}

.cart-overlay.show {
    display: block;
}

.cart {
    position: absolute;

    top: 0;
    right: 0;

    width: 25rem;
    max-width: 92%;
    height: 100%;

    padding: 1.5rem;

    overflow-x: hidden;
    overflow-y: auto;

    background: #fff;

    box-shadow:
        -.75rem 0 2.5rem rgba(0,0,0,.12);

    -webkit-overflow-scrolling: touch;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 1.375rem;
}

.close-cart,
.modal-close,
.payment-close {
    width: 2.375rem;
    height: 2.375rem;

    border: 0;

    border-radius: .5625rem;

    background: #f3f5f8;

    color: #555;

    font-size: 1.375rem;

    cursor: pointer;

    transition:
        background var(--transition),
        transform var(--transition);
}

.close-cart:hover,
.modal-close:hover,
.payment-close:hover {
    background: #e8edf3;
}

.cart-item {
    display: flex;
    justify-content: space-between;

    gap: .9375rem;

    padding: .9375rem 0;

    border-bottom:
        .0625rem solid var(--border);
}

.cart-item h4 {
    font-size: .875rem;
    line-height: 1.4;
}

.remove-btn {
    border: 0;
    background: transparent;

    color: var(--danger);

    cursor: pointer;

    font-weight: 700;
}

.cart-total {
    display: flex;
    justify-content: space-between;

    margin-top: 1.375rem;
    padding-top: 1.125rem;

    border-top:
        .0625rem solid var(--border);

    font-size: 1.25rem;
    font-weight: 800;
}

.checkout {
    width: 100%;

    min-height: 3rem;

    margin-top: 1.125rem;

    border: 0;
    border-radius: .625rem;

    background:
        linear-gradient(
            135deg,
            #0071c2,
            #005da8
        );

    color: #fff;

    font-size: .9375rem;
    font-weight: 800;

    cursor: pointer;

    transition:
        box-shadow var(--transition);
}

.checkout:hover {
    transform: translateY(-.0625rem);

    box-shadow:
        0 .5rem 1.125rem rgba(0,113,194,.20);
}


/* =========================================================
   17. COMMON MODAL OVERLAY
   ========================================================= */

.modal-overlay,
.payment-overlay,
.auth-overlay,
#detailsModal,
.product-edit-modal,
#productEditModal,
#productAddModal,
.product-security-modal,
#productSecurityModal {
    backdrop-filter: blur(.1875rem);
    -webkit-backdrop-filter: blur(.1875rem);
}


/* =========================================================
   18. PRODUCT DETAILS MODAL
   ========================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 1.25rem;

    overflow-x: hidden;
    overflow-y: auto;

    background: rgba(15,23,42,.55);

    -webkit-overflow-scrolling: touch;
}

.modal-overlay.show {
    display: flex;
}

.modal,
.details-modal {
    position: relative;

    width: min(43.75rem,100%);
    max-width: 100%;
    max-height: calc(100vh - 2.5rem);

    padding: 1.625rem;

    overflow-x: hidden;
    overflow-y: auto;

    border-radius: 1rem;

    background: #fff;

    box-shadow: var(--shadow-xl);

    animation: modalIn .22s ease;
}

.modal h2 {
    margin: 0 0 .9375rem;
    padding-right: 2.8125rem;

    color: var(--primary);

    font-size: 1.5rem;
}

.modal-info {
    color: #555;

    line-height: 1.8;
}

#detailsModal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 1.25rem;

    background: rgba(15,23,42,.50);
}

#detailsModal.show {
    display: flex;
}


/* =========================================================
   19. MODAL ANIMATION
   ========================================================= */

@keyframes modalIn {

    from {
        opacity: 0;

        transform:
            translateY(.75rem)
            scale(.98);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   20. PRODUCT GALLERY
   ========================================================= */

.product-gallery {
    min-width: 0;

    margin-bottom: 1.375rem;
}

.gallery-main {
    position: relative;

    min-height: 18.75rem;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border:
        .0625rem solid #e1e8ee;

    border-radius: .75rem;

    background:
        linear-gradient(
            180deg,
            #f7fbff,
            #eef6fb
        );
}

.gallery-main-image {
    width: 100%;
    height: 18.75rem;

    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main-image .product-icon-image {
    width: 100%;
    height: 100%;

    max-height: 18.125rem;

    padding: 1.125rem;

    object-fit: contain;
}

.gallery-main-image .product-emoji {
    font-size: 6.875rem;
}

.gallery-arrow {
    position: absolute;
    top: 50%;

    width: 2.625rem;
    height: 2.625rem;

    transform: translateY(-50%);

    border: 0;
    border-radius: 50%;

    background: rgba(255,255,255,.96);

    color: var(--primary);

    font-size: 1.75rem;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 .1875rem .75rem rgba(0,0,0,.14);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.gallery-arrow:hover {
    transform: translateY(-50%);

    box-shadow:
        0 .3125rem 1rem rgba(0,0,0,.18);
}

.gallery-arrow:active,
.gallery-arrow:focus,
.gallery-arrow:focus-visible {
    transform: translateY(-50%);
}

.gallery-prev {
    left: .75rem;
}

.gallery-next {
    right: .75rem;
}

.gallery-thumbnails {
    display: flex;

    gap: .5rem;

    max-width: 100%;

    padding: .625rem .125rem .125rem;

    overflow-x: auto;

    scrollbar-width: thin;

    -webkit-overflow-scrolling: touch;
}

.gallery-thumbnail {
    flex: 0 0 4.375rem;

    width: 4.375rem;
    height: 4.375rem;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: .25rem;

    border:
        .125rem solid #ddd;

    border-radius: .5625rem;

    background: #fff;

    cursor: pointer;

    overflow: hidden;

    transition:
        border-color var(--transition),
        transform var(--transition);
}

.gallery-thumbnail:hover {
    transform: translateY(-.0625rem);

    border-color: #b7c9db;
}

.gallery-thumbnail.active {
    border-color: var(--primary-light);

    box-shadow:
        0 0 0 .125rem rgba(0,113,194,.08);
}

.gallery-thumbnail .product-icon-image {
    width: 100%;
    height: 100%;

    padding: .125rem;

    object-fit: contain;
}

.gallery-thumbnail .product-emoji {
    font-size: 2.125rem;
}


/* =========================================================
   21. PAYMENT
   ========================================================= */

.payment-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 1.25rem;

    overflow-x: hidden;
    overflow-y: auto;

    background: rgba(15,23,42,.60);

    -webkit-overflow-scrolling: touch;
}

.payment-overlay.show {
    display: flex;
}

.payment-modal {
    width: min(35rem,100%);
    max-height: calc(100vh - 2.5rem);

    padding: 1.75rem;

    overflow-x: hidden;
    overflow-y: auto;

    border-radius: 1rem;

    background: #fff;

    box-shadow: var(--shadow-xl);

    animation: modalIn .22s ease;
}

.payment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 1.25rem;
}

.payment-total {
    display: flex;
    justify-content: space-between;

    margin-bottom: 1.25rem;
    padding: .875rem;

    border:
        .0625rem solid #d8eaf8;

    border-radius: .625rem;

    background: #f0f8ff;

    font-weight: 800;
}

.payment-methods {
    display: grid;

    gap: .5625rem;

    margin-bottom: 1.25rem;
}

.payment-method {
    min-height: 3.625rem;

    display: flex;
    align-items: center;

    gap: .75rem;

    padding: .75rem .875rem;

    border:
        .125rem solid #e2e5e9;

    border-radius: .6875rem;

    background: #fff;

    text-align: left;

    font-weight: 700;

    cursor: pointer;

    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.payment-method:hover {
    border-color: #b9d5ec;

    background: #f9fcff;
}

.payment-method.active {
    border-color: var(--primary-light);

    background: #f5fbff;

    box-shadow:
        0 .25rem .75rem rgba(0,113,194,.08);
}

.payment-icon {
    width: 2.5rem;

    text-align: center;

    font-size: 1.5625rem;
}

.payment-form {
    display: none;

    padding-top: 1.125rem;

    border-top:
        .0625rem solid #eee;
}

.payment-form.show {
    display: block;
}

.payment-field {
    margin-bottom: .875rem;
}

.payment-field label {
    display: block;

    margin-bottom: .375rem;

    color: #354052;

    font-size: .8125rem;
    font-weight: 700;
}

.payment-field input {
    width: 100%;

    min-height: 2.75rem;

    padding: 0 .75rem;

    border:
        .0625rem solid #cfd5dd;

    border-radius: .5625rem;

    outline: 0;

    font-size: .9375rem;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.payment-field input:focus {
    border-color: var(--primary-light);

    box-shadow:
        0 0 0 .1875rem rgba(0,113,194,.10);
}

.payment-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: .75rem;
}

.pay-now {
    width: 100%;

    min-height: 3rem;

    border: 0;
    border-radius: .625rem;

    background:
        linear-gradient(
            135deg,
            #003b95,
            #0071c2
        );

    color: #fff;

    font-size: .9375rem;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.pay-now:hover {
    transform: translateY(-.0625rem);

    box-shadow:
        0 .5rem 1.25rem rgba(0,59,149,.20);
}

.payment-note {
    margin-top: .75rem;

    color: var(--text-muted);

    font-size: .75rem;
    line-height: 1.55;
}


/* =========================================================
   22. AUTH SYSTEM
   ========================================================= */

.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 1.25rem;

    overflow-x: hidden;
    overflow-y: auto;

    background:
        rgba(0,20,55,.74);

    backdrop-filter: blur(.3125rem);
    -webkit-backdrop-filter: blur(.3125rem);

    overscroll-behavior: contain;

    -webkit-overflow-scrolling: touch;
}

.auth-overlay.show {
    display: flex;
}

.forgot-password-link {
    margin: -.375rem 0 1.125rem;

    text-align: right;
}

.forgot-password-link a {
    color: #2563eb;

    font-size: .875rem;
    font-weight: 600;

    text-decoration: none;
}

.forgot-password-link a:hover {
    color: #1d4ed8;

    text-decoration: underline;
}


/* =========================================================
   AUTH SHELL
   ========================================================= */

.admin-auth-shell {
    width: min(68rem,100%);
    min-height: 39rem;
    max-height: calc(100vh - 2.5rem);

    display: grid;

    grid-template-columns:
        40% 60%;

    margin: auto;

    overflow: hidden;

    border-radius: 1.25rem;

    background: #fff;

    box-shadow:
        0 1.875rem 5rem rgba(0,20,55,.35);

    animation:
        adminAuthIn .25s ease-out;
}

@keyframes adminAuthIn {

    from {
        opacity: 0;

        transform:
            translateY(.75rem)
            scale(.98);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   AUTH SIDEBAR
   ========================================================= */

.admin-auth-sidebar {
    position: relative;

    min-width: 0;

    display: flex;
    flex-direction: column;

    padding: 2.25rem;

    overflow: hidden;

    color: #fff;

    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(56,225,67,.10),
            transparent 25%
        ),
        linear-gradient(
            145deg,
            #002c76 0%,
            #004da8 55%,
            #0071c2 100%
        );
}

.admin-auth-sidebar::before,
.admin-auth-sidebar::after {
    content: "";

    position: absolute;

    border-radius: 50%;

    background:
        rgba(56,225,67,.10);
}

.admin-auth-sidebar::before {
    width: 20rem;
    height: 20rem;

    top: -6.875rem;
    right: -10rem;
}

.admin-auth-sidebar::after {
    width: 15rem;
    height: 15rem;

    left: -8.125rem;
    bottom: -6.25rem;
}

.admin-auth-logo {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;

    gap: .75rem;
}

.admin-auth-logo-icon {
    width: 3rem;
    height: 3rem;

    display: grid;
    place-items: center;

    border-radius: .75rem;

    background: rgba(255,255,255,.14);

    border:
        .0625rem solid rgba(255,255,255,.25);

    font-size: 1.25rem;
}

.admin-auth-logo strong {
    display: block;

    font-size: 1.125rem;
}

.admin-auth-logo span {
    display: block;

    margin-top: .1875rem;

    opacity: .68;

    font-size: .6875rem;
}

.admin-auth-sidebar-content {
    position: relative;
    z-index: 1;

    margin: auto 0;

    padding: 3rem 0;
}

.admin-auth-badge {
    display: inline-block;

    padding: .4375rem .75rem;

    border:
        .0625rem solid rgba(255,255,255,.28);

    border-radius: var(--radius-pill);

    background:
        rgba(255,255,255,.08);

    font-size: .625rem;
    font-weight: 800;

    letter-spacing: .12em;
}

.admin-auth-sidebar-content h2 {
    margin: 1.125rem 0 .625rem;

    color: #fff;

    font-size: 2rem;
    line-height: 1.15;

    letter-spacing: -.02em;
}

.admin-auth-sidebar-content h2 b {
    color: var(--green);
}

.admin-auth-sidebar-content > p {
    max-width: 25rem;

    color: rgba(255,255,255,.75);

    font-size: .875rem;
    line-height: 1.65;
}

.admin-auth-features {
    display: grid;

    gap: .8125rem;

    margin-top: 1.75rem;
}

.admin-auth-features div {
    color: rgba(255,255,255,.86);

    font-size: .8125rem;
}

.admin-auth-features span {
    margin-right: .4375rem;

    color: var(--green);

    font-weight: 900;
}

.admin-auth-sidebar-footer {
    position: relative;
    z-index: 1;

    display: flex;
    justify-content: space-between;

    color: rgba(255,255,255,.50);

    font-size: .625rem;
}


/* =========================================================
   AUTH CONTENT
   ========================================================= */

.admin-auth-content {
    position: relative;

    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 2.5rem 3.125rem;

    overflow-x: hidden;
    overflow-y: auto;

    overscroll-behavior: contain;

    -webkit-overflow-scrolling: touch;
}

.admin-auth-close {
    position: absolute;

    top: 1rem;
    right: 1rem;

    z-index: 5;

    width: 2.25rem;
    height: 2.25rem;

    border: 0;
    border-radius: .5625rem;

    background: #f3f6fa;
    color: #555;

    font-size: 1.25rem;

    cursor: pointer;

    transition:
        background var(--transition),
        transform var(--transition);
}

.admin-auth-close:hover {
    background: #e8edf3;

    transform: rotate(3deg);
}

.admin-auth-mobile-brand {
    display: none;
}


/* =========================================================
   AUTH HEADING
   ========================================================= */

.admin-auth-heading {
    display: flex;
    align-items: center;

    gap: .875rem;

    margin-bottom: 1.375rem;
}

.admin-auth-icon {
    width: 3rem;
    height: 3rem;

    display: grid;
    place-items: center;

    border-radius: .75rem;

    background: var(--primary-soft);

    font-size: 1.125rem;
}

.admin-auth-heading h2 {
    margin: 0 0 .1875rem;

    color: var(--primary);

    font-size: 1.75rem;
    line-height: 1.2;
}

.admin-auth-heading p {
    margin: 0;

    color: #77808d;

    font-size: .75rem;
}


/* =========================================================
   AUTH TABS
   ========================================================= */

.admin-auth-tabs {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: .25rem;

    margin-bottom: 1.375rem;
    padding: .25rem;

    border-radius: .625rem;

    background: #f2f5f8;
}

.admin-auth-tab {
    padding: .6875rem;

    border: 0;
    border-radius: .4375rem;

    background: transparent;
    color: #697382;

    font-size: .8125rem;
    font-weight: 800;

    cursor: pointer;

    transition:
        background var(--transition),
        color var(--transition),
        box-shadow var(--transition);
}

.admin-auth-tab:hover {
    color: var(--primary);
}

.admin-auth-tab.active {
    background: #fff;
    color: var(--primary);

    box-shadow:
        0 .125rem .5rem rgba(0,0,0,.07);
}


/* =========================================================
   AUTH FIELDS
   ========================================================= */

.admin-auth-field {
    min-width: 0;

    margin-bottom: .9375rem;
}

.admin-auth-field label {
    display: block;

    margin-bottom: .375rem;

    color: #354052;

    font-size: .75rem;
    font-weight: 800;
}

.admin-auth-input-wrap {
    width: 100%;
    min-width: 0;
    min-height: 2.875rem;

    display: flex;
    align-items: center;

    border:
        .0625rem solid #d5dce5;

    border-radius: .5625rem;

    background: #fff;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.admin-auth-input-wrap:hover {
    border-color: #b9c3d0;
}

.admin-auth-input-wrap:focus-within {
    border-color: var(--primary-light);

    box-shadow:
        0 0 0 .1875rem rgba(0,113,194,.10);
}

.admin-auth-input-wrap > span {
    width: 2.75rem;

    flex-shrink: 0;

    color: #789;

    text-align: center;

    font-size: .875rem;
}

.admin-auth-input-wrap input,
.admin-auth-input-wrap select {
    width: 100%;
    min-width: 0;

    padding: .6875rem .75rem .6875rem 0;

    border: 0;
    outline: 0;

    background: transparent;
    color: var(--text);

    font-size: .875rem;
}

.admin-auth-input-wrap input::placeholder {
    color: #a0a8b4;
}

.admin-auth-input-wrap select {
    cursor: pointer;
}

.admin-auth-form-grid {
    width: 100%;

    display: grid !important;

    grid-template-columns:
        repeat(2,minmax(0,1fr)) !important;

    gap: 0 .75rem !important;
}

.admin-auth-form-grid > * {
    width: 100% !important;
    min-width: 0 !important;
}

#privilegedCodeField {
    grid-column: 1 / -1;
}


/* =========================================================
   AUTH OPTIONS
   ========================================================= */

.admin-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: .25rem 0 1.125rem;

    color: #7a8491;

    font-size: .6875rem;
}

.admin-auth-options label {
    display: flex;
    align-items: center;

    gap: .375rem;

    cursor: pointer;
}

.admin-auth-options input {
    accent-color: var(--primary-light);
}


/* =========================================================
   AUTH SUBMIT
   ========================================================= */

.admin-auth-submit {
    width: 100%;
    min-height: 3rem;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: .5rem;

    padding: 0 .875rem;

    border: 0;
    border-radius: .5625rem;

    background:
        linear-gradient(
            90deg,
            #003b95,
            #0071c2
        );

    color: #fff;

    font-size: .8125rem;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 .3125rem .875rem rgba(0,59,149,.18);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.admin-auth-submit:hover {
    transform: translateY(-.0625rem);

    box-shadow:
        0 .5rem 1.25rem rgba(0,59,149,.24);
}

.admin-auth-submit:active {
    transform: scale(.99);
}

.admin-auth-submit span:first-child {
    font-size: 1rem;
}


/* =========================================================
   AUTH ERROR / SECURITY
   ========================================================= */

.auth-error {
    min-height: 1.1875rem;

    margin-top: .5625rem;

    color: #c62828;

    font-size: .6875rem;
    line-height: 1.4;
}

.admin-auth-security {
    margin-top: 1.25rem;
    padding-top: .875rem;

    border-top:
        .0625rem solid #edf0f3;

    color: #8a939f;

    font-size: .625rem;

    text-align: center;
}

.admin-auth-security span {
    margin-right: .3125rem;
}


/* =========================================================
   PRIVILEGED CODE
   ========================================================= */

.privileged-hint {
    display: block;

    margin-top: .3125rem;

    color: #7a8491;

    font-size: .625rem;
    line-height: 1.4;
}

.security-code-field {
    width: 100%;
}

.security-code-field.hidden {
    display: none !important;
}

.security-code-field small {
    display: block;

    margin-top: .3125rem;

    color: #666;

    font-size: .75rem;
    line-height: 1.4;
}

.security-code-field input {
    width: 100%;
}


/* =========================================================
   23. DASHBOARD
   ========================================================= */

.dashboard-overlay {
    position: fixed;
    inset: 0;
    z-index: 450;

    display: none;

    overflow-x: hidden;
    overflow-y: auto;

    background: var(--background);

    -webkit-overflow-scrolling: touch;
}

.dashboard-overlay.show {
    display: block;
}

.dashboard {
    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: row;

    margin: 0;
    padding: 0;

    overflow: hidden;
}


/* =========================================================
   DASHBOARD SIDEBAR
   ========================================================= */

.dashboard-sidebar {
    width: 0;
    min-width: 0;
    height: 100vh;

    display: flex;
    flex-direction: column;

    gap: .375rem;

    padding: 0;

    overflow: hidden;

    transform: translateX(-100%);

    color: #fff;

    background:
        linear-gradient(
            180deg,
            #003b95,
            #002f78
        );

    transition:
        width .35s ease,
        min-width .35s ease,
        padding .35s ease,
        transform .35s ease;

    z-index: 1000;
}

.dashboard-sidebar.menu-open {
    width: 17.5rem;
    min-width: 17.5rem;

    padding: 1.25rem;

    transform: translateX(0);
}

.dashboard-logo {
    padding: .5rem 0 1.125rem;

    font-size: 1.125rem;
    font-weight: 800;
}

.dashboard-user {
    margin-bottom: .5rem;
    padding: 1.125rem 0;

    border-top:
        .0625rem solid rgba(255,255,255,.15);

    border-bottom:
        .0625rem solid rgba(255,255,255,.15);
}

.dashboard-avatar {
    width: 2.625rem;
    height: 2.625rem;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: .5625rem;

    border-radius: 50%;

    background: var(--green);
    color: var(--primary);

    font-weight: 800;
}

.dashboard-user strong,
.dashboard-user span {
    display: block;
}

.dashboard-user strong {
    font-size: .875rem;
}

.dashboard-user span {
    margin-top: .1875rem;

    opacity: .72;

    font-size: .75rem;
}

.dashboard-nav,
.dashboard-logout {
    padding: .6875rem .75rem;

    border-radius: .5625rem;

    background: transparent;
    color: #fff;

    text-align: left;

    cursor: pointer;

    font-size: .8125rem;
    font-weight: 700;

    transition:
        background var(--transition),
        transform var(--transition);
}

.dashboard-nav:hover,
.dashboard-logout:hover {
    transform: translateX(.125rem);

    background:
        rgba(255,255,255,.10);
}


/* =========================================================
   DASHBOARD MAIN
   ========================================================= */

.dashboard-main {
    flex: 1 1 auto;

    width: auto;
    min-width: 0;
    min-height: 100vh;

    max-width: none;

    padding: 1.625rem;

    overflow-x: hidden;
    overflow-y: visible;
}

.dashboard-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 1rem;

    margin-bottom: 1.5rem;
}

.dashboard-top h1 {
    margin: 0;

    font-size: 1.875rem;
    line-height: 1.2;

    letter-spacing: -.02em;
}

.dashboard-top p {
    margin-top: .375rem;

    color: var(--text-muted);

    font-size: .875rem;
}

.dashboard-title {
    padding-left: 3.25rem;
}

.dashboard-welcome {
    padding-left: 3.25rem;
}

.dashboard-close {
    width: 2.5rem;
    height: 2.5rem;

    border:
        .0625rem solid var(--border);

    border-radius: .625rem;

    background: #fff;
    color: #475467;

    font-size: 1.375rem;

    cursor: pointer;

    transition:
        background var(--transition),
        transform var(--transition);
}

.dashboard-close:hover {
    background: #f3f5f8;

    transform: rotate(3deg);
}


/* =========================================================
   DASHBOARD MENU BUTTON
   ========================================================= */

.dashboard-menu-btn {
    position: absolute;

    top: 1rem;
    left: 1rem;

    z-index: 9999;

    width: 2.75rem;
    height: 2.75rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: .3125rem;

    padding: 0;

    border-radius: .625rem;

    background: #f1f5f9;

    cursor: pointer;

    box-shadow:
        0 .125rem .5rem rgba(0,0,0,.04);

    transition:
        background var(--transition),
        transform var(--transition);
}

.dashboard-menu-btn:hover {
    transform: translateY(-.0625rem);

    background: #e8edf3;
}

.dashboard-menu-btn span {
    display: block;

    width: 1.375rem;
    height: .1875rem;

    border-radius: .1875rem;

    background: #1e293b;
}


/* =========================================================
   DASHBOARD CARDS
   ========================================================= */

.dashboard-cards {
    display: grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap: 1rem;

    margin-bottom: 1.25rem;
}

.dashboard-card {
    position: relative;

    min-width: 0;

    padding: 1.25rem;

    border:
        .0625rem solid var(--border);

    border-radius: .875rem;

    background: #fff;

    box-shadow: var(--shadow-xs);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-.125rem);

    box-shadow: var(--shadow-sm);
}

.dashboard-card span,
.dashboard-card strong,
.dashboard-card small {
    display: block;
}

.dashboard-card span {
    margin-bottom: .625rem;

    font-size: 1.5rem;
}

.dashboard-card strong {
    font-size: 1.5625rem;

    letter-spacing: -.02em;
}

.dashboard-card small {
    margin-top: .3125rem;

    color: var(--text-muted);

    font-size: .75rem;
}


/* =========================================================
   DASHBOARD PANELS
   ========================================================= */

.dashboard-panel {
    min-width: 0;

    margin-bottom: 1rem;
    padding: 1.375rem;

    border:
        .0625rem solid var(--border);

    border-radius: .875rem;

    background: #fff;

    box-shadow: var(--shadow-xs);
}

.dashboard-panel h2 {
    margin: 0 0 1.125rem;

    font-size: 1.1875rem;
}

.dashboard-section.hidden {
    display: none;
}


/* =========================================================
   DASHBOARD TABLE
   ========================================================= */

.dashboard-table-wrap {
    width: 100%;

    overflow-x: auto;

    border-radius: .5625rem;

    -webkit-overflow-scrolling: touch;
}

.dashboard-table {
    width: 100%;
    min-width: 40rem;

    border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
    padding: .8125rem;

    border-bottom:
        .0625rem solid #edf0f3;

    text-align: left;

    white-space: nowrap;
}

.dashboard-table th {
    background: #f8fafc;

    color: #667085;

    font-size: .75rem;
    font-weight: 800;
}

.dashboard-table td {
    font-size: .8125rem;
}

.dashboard-table tbody tr {
    transition:
        background var(--transition);
}

.dashboard-table tbody tr:hover {
    background: #fafcff;
}

.dashboard-status {
    display: inline-block;

    padding: .3125rem .5625rem;

    border-radius: var(--radius-pill);

    background: var(--green-soft);
    color: #087a2e;

    font-size: .6875rem;
    font-weight: 800;
}


/* =========================================================
   24. DASHBOARD PRODUCTS
   ========================================================= */

.dashboard-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1.25rem;

    margin-bottom: 1.25rem;
}

.dashboard-products-header h2 {
    margin: 0;

    font-size: 1.5rem;

    letter-spacing: -.015em;
}

.dashboard-products-header p {
    margin: .3125rem 0 0;

    color: #777;

    font-size: .8125rem;
}


/* =========================================================
   ADD PRODUCT BUTTON
   ========================================================= */

.add-product-button {
    min-height: 2.75rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: .5rem;

    padding: 0 1.125rem;

    border-radius: .625rem;

    background:
        linear-gradient(
            135deg,
            #111827,
            #1f2937
        );

    color: #fff;

    font-size: .875rem;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 .25rem .625rem rgba(0,0,0,.10);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.add-product-button span {
    font-size: 1.25rem;
}

.add-product-button:hover {
    transform: translateY(-.125rem);

    box-shadow:
        0 .5rem 1.125rem rgba(0,0,0,.15);
}

.add-product-button:active {
    transform: scale(.97);
}


/* =========================================================
   DASHBOARD PRODUCT GRID
   ========================================================= */

#dashboardProductsGrid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(auto-fill,minmax(15.5rem,1fr));

    gap: 1.25rem;

    align-items: stretch;
}

#dashboardProductsGrid .product-card {
    min-width: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border:
        .0625rem solid var(--product-border);

    border-radius: var(--product-radius);

    background: var(--product-bg);

    box-shadow: var(--product-shadow);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

#dashboardProductsGrid .product-card:hover {
    transform: translateY(-.25rem);

    border-color: #d1d5db;

    box-shadow:
        var(--product-shadow-hover);
}


/* =========================================================
   DASHBOARD PRODUCT IMAGE
   ========================================================= */

#dashboardProductsGrid .product-image {
    position: relative;

    width: 100%;

    height: auto;
    min-height: 0;

    aspect-ratio: 1 / .82;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #f8fafc,
            #eef2f7
        );
}

#dashboardProductsGrid .product-image img,
#dashboardProductsGrid .product-image
.product-icon-image {
    width: 100%;
    height: 100%;

    padding: 1rem;

    object-fit: contain;

    transition:
        transform .3s ease;
}

#dashboardProductsGrid .product-card:hover
.product-image img {
    transform: scale(1.04);
}


/* =========================================================
   DASHBOARD PRODUCT BADGE
   ========================================================= */

#dashboardProductsGrid .badge {
    position: absolute;

    top: .75rem;
    left: .75rem;

    z-index: 2;

    display: inline-flex;
    align-items: center;

    padding: .35rem .65rem;

    border-radius: var(--radius-pill);

    background: rgba(255,255,255,.92);

    color: var(--product-primary);

    font-size: .7rem;
    font-weight: 700;
    line-height: 1;

    box-shadow:
        0 .2rem .7rem rgba(15,23,42,.08);

    backdrop-filter: blur(.5rem);
}


/* =========================================================
   DASHBOARD PRODUCT INFO
   ========================================================= */

#dashboardProductsGrid .product-info {
    flex: 1;

    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 1rem;
}

#dashboardProductsGrid .product-info h3 {
    margin: 0;

    color: var(--product-text);

    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
}

#dashboardProductsGrid .brand {
    margin-top: .35rem;
    margin-bottom: 0;

    color: var(--product-muted);

    font-size: .8rem;
    font-weight: 500;

    white-space: nowrap;
    overflow: hidden;

    text-overflow: ellipsis;
}

#dashboardProductsGrid .rating {
    display: flex;
    align-items: center;

    gap: .45rem;

    margin-top: .7rem;
    margin-bottom: 0;
}

#dashboardProductsGrid .rating-number {
    display: inline-flex;
    align-items: center;

    padding: .2rem .45rem;

    border-radius: .4rem;

    background: #fff7ed;
    color: #c2410c;

    font-size: .75rem;
    font-weight: 700;
}

#dashboardProductsGrid .reviews {
    color: var(--product-muted);

    font-size: .75rem;
}

#dashboardProductsGrid .price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;

    gap: .35rem;

    margin-top: .85rem;
    padding-top: .8rem;

    border-top:
        .0625rem solid #f1f5f9;
}

#dashboardProductsGrid .price small {
    color: var(--product-muted);

    font-size: .7rem;
}

#dashboardProductsGrid .price strong {
    color: var(--product-text);

    font-size: 1.1rem;
    font-weight: 800;
}


/* =========================================================
   DASHBOARD PRODUCT SIZES
   ========================================================= */




/* =========================================================
   DASHBOARD STOCK
   ========================================================= */

#dashboardProductsGrid .stock {
    min-height: 1.5rem;

    margin-top: .8rem;

    color: var(--success);

    font-size: .78rem;
    font-weight: 700;
}

#dashboardProductsGrid .available-quantity {
    display: inline-flex;
    align-items: center;

    margin-top: .3rem;

    padding: .3rem .55rem;

    border-radius: .45rem;

    background: #f0fdf4;
    color: #15803d;

    font-size: .72rem;
    font-weight: 700;
}


/* =========================================================
   DASHBOARD PRODUCT ACTIONS
   ========================================================= */

#dashboardProductsGrid .product-actions {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: .5rem;

    margin-top: auto;
    padding-top: 1rem;
}

#dashboardProductsGrid .product-actions .details-btn {
    grid-column: 1 / -1;
}

#dashboardProductsGrid .product-actions button {
    min-height: 2.55rem;

    padding: .55rem .7rem;

    border:
        .0625rem solid transparent;

    border-radius: .65rem;

    font-family: inherit;

    font-size: .78rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease,
        border-color .2s ease;
}

#dashboardProductsGrid
.product-actions button:hover {
    transform: translateY(-.0625rem);
}

#dashboardProductsGrid
.product-actions button:active {
    transform: translateY(0);
}


/* =========================================================
   DASHBOARD DETAILS / EDIT / DELETE
   ========================================================= */

#dashboardProductsGrid .details-btn {
    border-color: var(--product-primary);

    background: var(--product-primary);

    color: #fff;

    box-shadow:
        0 .25rem .7rem rgba(37,99,235,.16);
}

#dashboardProductsGrid .details-btn:hover {
    border-color: var(--product-primary-hover);

    background: var(--product-primary-hover);

    box-shadow:
        0 .4rem 1rem rgba(37,99,235,.22);
}

#dashboardProductsGrid .edit-product-btn {
    border-color: #dbeafe !important;

    background: #eff6ff;

    color: #1d4ed8;
}

#dashboardProductsGrid .edit-product-btn:hover {
    background: #dbeafe;
}

#dashboardProductsGrid .delete-product-btn {
    border-color: #fee2e2 !important;

    background: #fef2f2;

    color: #dc2626;
}

#dashboardProductsGrid .delete-product-btn:hover {
    background: #fee2e2;
}


/* =========================================================
   NO PRODUCTS
   ========================================================= */

#dashboardProductsGrid .no-products {
    grid-column: 1 / -1;

    min-height: 15rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 2rem;

    border:
        .0625rem dashed var(--product-border);

    border-radius: var(--product-radius);

    background: var(--product-surface);

    text-align: center;
}

#dashboardProductsGrid .no-products h3 {
    margin: 0;

    color: var(--product-muted);

    font-size: 1rem;
}


/* =========================================================
   25. ACCOUNT INFO
   ========================================================= */

.account-info-grid {
    display: grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap: .75rem;
}

.account-info-grid > * {
    min-width: 0;
}

.account-info-item {
    min-width: 0;

    padding: .8125rem;

    border:
        .0625rem solid #edf0f3;

    border-radius: .5625rem;

    background: #f7f9fc;
}

.account-info-item small {
    display: block;

    margin-bottom: .25rem;

    color: #667085;

    font-size: .6875rem;
}


/* =========================================================
   26. PRODUCT EDIT / ADD MODALS
   ========================================================= */

.product-edit-modal,
#productEditModal,
#productAddModal {
    position: fixed;
    inset: 0;

    z-index: 100001;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 1rem;

    background:
        rgba(15,23,42,.55);

    -webkit-overflow-scrolling: touch;
}

.product-edit-modal.show,
#productEditModal.show,
#productAddModal.show {
    display: flex;
}

.product-edit-box,
#productAddModal .product-add-box,
#productEditModal .product-edit-box {
    position: relative;

    width: min(43.75rem,100%);
    max-height: 90vh;

    padding: 1.625rem;

    overflow-x: hidden;
    overflow-y: auto;

    border-radius: 1rem;

    background: #fff;

    box-shadow: var(--shadow-xl);

    animation: modalIn .22s ease;
}


/* =========================================================
   EDIT INPUTS
   ========================================================= */

.product-edit-box input[type="text"],
.product-edit-box input[type="number"] {
    width: 100%;

    min-height: 2.75rem;

    margin-bottom: .75rem;

    padding: 0 .75rem;

    border:
        .0625rem solid #d5dce5;

    border-radius: .5625rem;

    outline: 0;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.product-edit-box input[type="text"]:focus,
.product-edit-box input[type="number"]:focus {
    border-color: var(--primary-light);

    box-shadow:
        0 0 0 .1875rem rgba(0,113,194,.10);
}

.product-edit-box h3 {
    margin: .9375rem 0 .5rem;

    font-size: 1rem;
}

.product-edit-close {
    position: absolute;

    top: .625rem;
    right: .9375rem;

    width: 2.375rem;
    height: 2.375rem;

    border: 0;
    border-radius: .5625rem;

    background: #f3f5f8;

    font-size: 1.375rem;

    cursor: pointer;
}

.product-edit-close:hover {
    background: #e8edf3;
}

.product-edit-buttons {
    display: flex;

    gap: .625rem;

    margin-top: 1.25rem;
}

.product-edit-buttons button {
    min-height: 2.75rem;

    padding: 0 1.25rem;

    border: 0;
    border-radius: .5625rem;

    cursor: pointer;

    font-weight: 700;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.product-edit-buttons button:hover {
    transform: translateY(-.0625rem);
}


/* =========================================================
   IMAGE UPLOAD
   ========================================================= */

.edit-image-upload {
    margin-top: .9375rem;
}

.edit-image-upload label {
    display: block;

    margin-bottom: .5rem;

    font-size: .8125rem;
    font-weight: 700;
}

.edit-image-upload input[type="file"] {
    width: 100%;

    margin-bottom: .625rem;
}

.edit-image-preview {
    display: block;

    width: 8.75rem;
    height: 8.75rem;

    margin-top: .5rem;

    object-fit: contain;

    border:
        .0625rem solid var(--border);

    border-radius: .625rem;

    background: #f7f9fc;
}


/* =========================================================
   EDIT IMAGE ROW
   ========================================================= */

.product-edit-box .images-row {
    width: 100% !important;

    display: flex !important;
    flex-direction: row !important;

    align-items: flex-start !important;

    gap: 1.875rem !important;

    margin-bottom: 1.5625rem !important;
}

.product-edit-box .image-item {
    width: 50% !important;
    max-width: 50% !important;
    min-width: 0 !important;

    flex: 1 1 0 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.product-edit-box .image-item input[type="file"] {
    width: 100% !important;
    max-width: 100% !important;

    margin-bottom: .3125rem !important;
}

.product-edit-box .image-item .edit-image-preview {
    width: 8.75rem !important;
    height: 8.75rem !important;

    margin-top: .5rem !important;
}


/* =========================================================
   27. PRODUCT SECURITY MODAL
   ========================================================= */

.product-security-modal,
#productSecurityModal {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 1rem;

    background:
        rgba(15,23,42,.58);

    backdrop-filter: blur(.25rem);
    -webkit-backdrop-filter: blur(.25rem);
}

.product-security-modal.show,
#productSecurityModal.show {
    display: flex;
}

.product-security-box,
#productSecurityModal > div {
    position: relative;

    width: min(100%,26.25rem);

    padding: 1.75rem;

    border-radius: 1rem;

    background: #fff;

    text-align: center;

    box-shadow: var(--shadow-xl);

    animation:
        securityModalShow .2s ease;
}

@keyframes securityModalShow {

    from {
        opacity: 0;

        transform:
            translateY(-.75rem)
            scale(.97);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}

.product-security-box h2 {
    margin: 0 0 .5625rem;

    color: var(--text-dark);

    font-size: 1.375rem;
}

.product-security-box p,
#productSecurityModal #productSecurityMessage {
    margin: 0 0 1.125rem;

    color: var(--product-muted);

    font-size: .875rem;
    line-height: 1.55;
}

.product-security-close {
    position: absolute;

    top: .625rem;
    right: .75rem;

    width: 2.25rem;
    height: 2.25rem;

    border: 0;
    border-radius: .5rem;

    background: transparent;

    color: #667085;

    font-size: 1.5625rem;

    cursor: pointer;
}

.product-security-close:hover {
    background: #f3f5f8;

    color: #111;
}

#productSecurityCode {
    width: 100%;

    min-height: 2.875rem;

    padding: 0 .875rem;

    border:
        .0625rem solid #d5d5d5;

    border-radius: .5625rem;

    outline: 0;

    font-size: 1rem;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

#productSecurityCode:focus {
    border-color: var(--primary-light);

    box-shadow:
        0 0 0 .1875rem rgba(0,113,194,.10);
}

.product-security-error,
#productSecurityModal #productSecurityError {
    min-height: 1.375rem;

    margin-top: .4375rem;

    color: var(--danger);

    font-size: .8125rem;
}

.product-security-buttons {
    display: flex;

    gap: .5625rem;

    margin-top: .75rem;
}

.product-security-buttons button {
    flex: 1;

    min-height: 2.75rem;

    padding: 0 1rem;

    border: 0;
    border-radius: .5625rem;

    cursor: pointer;

    font-size: .875rem;
    font-weight: 700;

    transition:
        transform var(--transition),
        opacity var(--transition);
}

.product-security-buttons button:first-child {
    background: #eeeeee;
    color: #333;
}

.product-security-buttons button:last-child {
    background: #111827;
    color: #fff;
}

.product-security-buttons button:hover {
    opacity: .9;

    transform: translateY(-.0625rem);
}


/* =========================================================
   28. PRODUCT SIZE ROWS
   ========================================================= */

.product-size-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: .75rem;

    margin-bottom: .45rem;
    padding: .65rem .75rem;

    border:
        .0625rem solid var(--product-border);

    border-radius: .65rem;

    background: #f8fafc;
}

.product-size-label {
    color: var(--product-text);

    font-size: .85rem;
    font-weight: 700;
}

.product-size-row input[type="number"] {
    width: 5rem;
    height: 2.3rem;

    padding: 0 .55rem;

    border:
        .0625rem solid var(--product-border);

    border-radius: .5rem;

    background: #fff;
    color: var(--product-text);

    font-size: .85rem;

    text-align: center;

    outline: 0;
}

.product-size-row input[type="number"]:focus {
    border-color: var(--product-primary);

    box-shadow:
        0 0 0 .15rem rgba(37,99,235,.10);
}


/* =========================================================
   29. PAGINATION
   ========================================================= */

.products-pagination,
.pagination,
.dashboard-products-pagination {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: .4375rem;

    flex-wrap: wrap;

    box-sizing: border-box;
}

.products-pagination {
    margin: 1.875rem 0 2.5rem;
}

.pagination {
    margin: 1.875rem auto;
    padding: .625rem 0;
}

.dashboard-products-pagination {
    margin: 1.5rem auto 0;
    padding: .5rem;
}

.pagination-btn {
    min-width: 2.75rem;
    height: 2.75rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 .8125rem;

    border:
        .0625rem solid var(--border);

    border-radius: .625rem;

    background: #fff;
    color: var(--text);

    cursor: pointer;

    font-size: .875rem;
    font-weight: 600;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-.0625rem);

    border-color: #aeb8c5;

    background: #f8fafc;
}

.pagination-btn.active {
    border-color: var(--primary);

    background:
        linear-gradient(
            135deg,
            #003b95,
            #0071c2
        );

    color: #fff;

    box-shadow:
        0 .3125rem .75rem rgba(0,59,149,.18);
}

.pagination-btn:disabled {
    opacity: .4;

    cursor: not-allowed;
}


/* =========================================================
   DASHBOARD PRODUCT PAGINATION
   ========================================================= */

.dashboard-products-pagination .pagination-btn {
    min-width: 2.4rem;
    width: 2.4rem;
    height: 2.4rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        .0625rem solid var(--product-border);

    border-radius: .6rem;

    background: #fff;
    color: #374151;

    font-size: .8rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.dashboard-products-pagination
.pagination-btn:hover:not(:disabled) {
    transform: translateY(-.0625rem);

    border-color: var(--product-primary);

    color: var(--product-primary);
}

.dashboard-products-pagination
.pagination-btn.active {
    border-color: var(--product-primary);

    background: var(--product-primary);

    color: #fff;

    box-shadow:
        0 .25rem .7rem rgba(37,99,235,.20);
}

.dashboard-products-pagination
.pagination-btn:disabled {
    opacity: .4;

    cursor: not-allowed;
}


/* =========================================================
   30. FOOTER
   ========================================================= */

footer {
    margin-top: 3.75rem;

    padding: 2.75rem 6%;

    background:
        linear-gradient(
            135deg,
            #002d73,
            #003b95
        );

    color: #fff;
}

.footer-content {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, auto);

    justify-content: center;
    align-items: start;

    gap: 100px;
}

footer h3 {
    margin: 0 0 .875rem;

    font-size: 1rem;
}

footer p,
footer a {
    display: block;

    color: #dce8ff;

    font-size: .875rem;
    line-height: 2;

    text-decoration: none;
}

footer a {
    transition:
        color var(--transition);
}

footer a:hover {
    color: #fff;
}


/* =========================================================
   31. FINAL SAFETY
   ========================================================= */

.content-layout > *,
.products > *,
.category-grid > *,
.dashboard > *,
.dashboard-cards > *,
.dashboard-product-grid > *,
.account-info-grid > *,
.admin-auth-form-grid > * {
    min-width: 0;
}


/* =========================================================
   32. TABLET
   ========================================================= */

@media (max-width: 62.5rem) {

    .category-grid {
        grid-template-columns:
            repeat(3,minmax(0,1fr));
    }

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

    .search-box {
        grid-template-columns:
            1fr 1fr;
    }

    .footer-content {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .dashboard-cards {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }
}


/* =========================================================
   33. DASHBOARD TABLET / MOBILE
   ========================================================= */

@media (max-width: 50rem) {

    .dashboard-sidebar {
        position: fixed;

        top: 0;
        left: 0;

        width: 17.5rem;
        min-width: 17.5rem;
        height: 100vh;

        overflow-x: hidden;
        overflow-y: auto;

        transform: translateX(-100%);

        box-shadow:
            0 0 1.875rem rgba(0,0,0,.22);

        -webkit-overflow-scrolling: touch;
    }

    .dashboard-sidebar.menu-open {
        width: 17.5rem;
        min-width: 17.5rem;

        transform: translateX(0);
    }

    .dashboard-main {
        width: 100%;

        min-height: 100vh;

        padding: 1.125rem;

        overflow: visible;
    }

    .dashboard-menu-btn {
        position: fixed;

        top: .875rem;
        left: .875rem;
    }

    .dashboard-top {
        padding-top: .125rem;
    }

    .dashboard-product-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }
}


/* =========================================================
   34. AUTH TABLET / MOBILE
   ========================================================= */

@media (max-width: 48rem) {

    .auth-overlay {
        align-items: flex-start;

        padding: 1rem;
    }

    .admin-auth-shell {
        width: 100%;

        display: block;

        min-height: 0;
        max-height: none;
        height: auto;

        margin: 0 auto;

        border-radius: 1rem;

        overflow: visible;
    }

    .admin-auth-sidebar {
        display: none;
    }

    .admin-auth-mobile-brand {
        display: flex;
        align-items: center;

        gap: .625rem;

        margin-bottom: 1.25rem;

        color: var(--primary);
    }

    .admin-auth-mobile-brand .admin-auth-logo-icon {
        width: 2.625rem;
        height: 2.625rem;

        border: 0;

        background: var(--primary-soft);
    }

    .admin-auth-content {
        width: 100%;

        display: block;

        min-height: 0;
        max-height: none;

        padding: 1.875rem 1.5rem;

        overflow: visible;
    }

    .admin-auth-input-wrap input,
    .admin-auth-input-wrap select,
    .auth-field input,
    .auth-field select,
    .security-code-field input {
        font-size: 1rem !important;
    }

    .admin-auth-input-wrap input,
    .admin-auth-input-wrap select {
        min-height: 2.75rem;

        -webkit-appearance: none;
        appearance: none;

        line-height: 1.25;
    }
}


/* =========================================================
   35. MOBILE 700px
   ========================================================= */

@media (max-width: 43.75rem) {

    html,
    body {
        width: 100%;
        max-width: 100%;

        overflow-x: hidden;
        overflow-y: auto;
    }

    .header {
        padding: .875rem 4%;
    }

    .nav {
        flex-wrap: wrap;

        gap: .75rem;
    }

    .logo img {
        width: 10.625rem;
    }

    .nav-links {
        width: 100%;

        justify-content: flex-end;
    }

    .nav-links a {
        display: none;
    }

    .hero {
        padding:
            3rem 4% 5.125rem;
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    .hero p {
        font-size: .9375rem;
    }

    .search-box {
        grid-template-columns: 1fr;

        max-width: 100%;
    }

    .container {
        width: 100%;
        max-width: 100%;

        margin-top: -1.875rem;

        padding: 0 .75rem;
    }

    .categories {
        padding: 1.25rem;

        border-radius: .875rem;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .filters {
        display: none;
    }

    .products {
        grid-template-columns: 1fr;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-header h2 {
        font-size: 1.3125rem;
    }

    .sort {
        width: 100%;
    }

    .category-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .footer-content {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .product-image {
        height: 13.75rem;
        min-height: 13.75rem;
    }

    .gallery-main,
    .gallery-main-image {
        height: 15rem;
        min-height: 15rem;
    }

    .gallery-main-image .product-icon-image {
        max-height: 14.375rem;
    }

    .gallery-arrow {
        width: 2.5rem;
        height: 2.5rem;

        font-size: 1.5rem;
    }

    .payment-modal {
        padding: 1.375rem;
    }

    .dashboard-products-header {
        flex-direction: column;
        align-items: stretch;
    }

    .add-product-button {
        width: 100%;
    }

    .account-info-grid {
        grid-template-columns: 1fr;
    }

    #dashboardProductsGrid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));

        gap: .75rem;
    }

    #dashboardProductsGrid .product-info {
        padding: .8rem;
    }

    #dashboardProductsGrid .product-info h3 {
        font-size: .9rem;
    }

    #dashboardProductsGrid .brand {
        font-size: .72rem;
    }

    #dashboardProductsGrid .price strong {
        font-size: .95rem;
    }

    #dashboardProductsGrid .product-actions {
        gap: .35rem;
    }

    #dashboardProductsGrid .product-actions button {
        min-height: 2.35rem;

        padding: .45rem;

        font-size: .7rem;
    }
}


/* =========================================================
   36. MOBILE AUTH / MODALS
   ========================================================= */

@media (max-width: 35rem) {

    .auth-overlay {
        padding: .625rem;
    }

    .admin-auth-content {
        padding: 1.5rem 1.125rem;
    }

    .admin-auth-form-grid {
        grid-template-columns: 1fr !important;
    }

    #privilegedCodeField {
        grid-column: auto;
    }

    .admin-auth-heading {
        gap: .625rem;

        margin-bottom: 1.125rem;
    }

    .admin-auth-heading h2 {
        font-size: 1.4375rem;
    }

    .admin-auth-heading p {
        font-size: .6875rem;
    }

    .admin-auth-submit {
        min-height: 3rem;

        font-size: .875rem;
    }

    .payment-modal {
        padding: 1.25rem;

        border-radius: .875rem;
    }

    .payment-row {
        grid-template-columns: 1fr;
    }

    .product-edit-box,
    #productEditModal .product-edit-box,
    #productAddModal .product-add-box {
        padding: 1.375rem 1.125rem;
    }

    .product-security-box,
    #productSecurityModal > div {
        padding: 1.5rem 1.125rem;
    }

    .dashboard-main {
        padding: .875rem;
    }

    .dashboard-panel {
        padding: 1.125rem;
    }

    .dashboard-top h1 {
        font-size: 1.5625rem;
    }

    .dashboard-cards {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .dashboard-card {
        padding: 1rem;
    }

    .dashboard-card strong {
        font-size: 1.375rem;
    }

    .product-edit-box .images-row {
        flex-direction: column !important;

        gap: 1.125rem !important;
    }

    .product-edit-box .image-item {
        width: 100% !important;
        max-width: 100% !important;
    }

    .product-edit-box .image-item .edit-image-preview {
        width: 8.125rem !important;
        height: 8.125rem !important;
    }

    .product-actions {
        flex-direction: column;
    }

    .details-btn,
    .add-btn {
        width: 100%;
    }
}


/* =========================================================
   37. SMALL MOBILE 400px
   ========================================================= */

@media (max-width: 25rem) {

    .auth-overlay {
        padding: .4375rem;
    }

    .admin-auth-shell {
        border-radius: .8125rem;
    }

    .admin-auth-content {
        padding: 1.25rem .9375rem;
    }

    .admin-auth-mobile-brand {
        margin-bottom: 1rem;
    }

    .admin-auth-heading {
        margin-bottom: 1rem;
    }

    .admin-auth-input-wrap > span {
        width: 2.5rem;
    }

    .admin-auth-input-wrap input,
    .admin-auth-input-wrap select {
        padding-top: .625rem;
        padding-bottom: .625rem;

        font-size: 1rem !important;
    }

    .dashboard-main {
        padding: .625rem;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-panel {
        padding: .9375rem;
    }

    .dashboard-products-pagination,
    .pagination {
        gap: .3125rem;

        padding: .625rem .25rem;
    }

    .pagination-btn,
    .dashboard-products-pagination .pagination-btn {
        min-width: 2.5rem;
        width: 2.5rem;
        height: 2.5rem;

        font-size: .8125rem;
    }

    .category-grid {
        gap: .5rem;
    }

    .category {
        padding: .9375rem .4375rem;
    }

    .category-icon {
        font-size: 1.625rem;
    }

    .category-name {
        font-size: .75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    #dashboardProductsGrid {
        grid-template-columns: 1fr;
    }

    #dashboardProductsGrid .product-image {
        aspect-ratio: 1 / .75;
    }

    .dashboard-products-pagination {
        gap: .25rem;
    }

    .dashboard-products-pagination
    .pagination-btn {
        min-width: 2.2rem;
        height: 2.2rem;
    }
}


/* =========================================================
   38. MOBILE PRODUCT EDIT IMAGES
   ========================================================= */

@media (max-width: 37.5rem) {

    .product-edit-box .images-row {
        flex-direction: column !important;

        gap: 1.125rem !important;
    }

    .product-edit-box .image-item {
        width: 100% !important;
        max-width: 100% !important;
    }

    .product-edit-box .image-item .edit-image-preview {
        width: 8.125rem !important;
        height: 8.125rem !important;
    }
}


/* =========================================================
   39. MOBILE PAGINATION
   ========================================================= */

@media (max-width: 37.5rem) {

    .pagination,
    .dashboard-products-pagination {
        width: 100%;

        justify-content: center;

        gap: .3125rem;

        margin: 1.5rem auto;

        padding: .625rem .3125rem;
    }

    .pagination-btn {
        min-width: 2.625rem;
        width: auto;
        height: 2.625rem;

        padding: 0 .625rem;

        font-size: .8125rem;
    }

    .dashboard-products-pagination
    .pagination-btn {
        min-width: 2.625rem;
        width: 2.625rem;
        height: 2.625rem;
    }
}


/* =========================================================
   40. TOUCH DEVICES
   ========================================================= */

@media (hover: none) {

    .product-card:hover,
    .category:hover,
    .dashboard-card:hover,
    .dashboard-product:hover {
        transform: none;

        box-shadow: none;
    }

    .add-product-button:hover,
    .add-btn:hover,
    .details-btn:hover {
        transform: none;
    }
}


/* =========================================================
   41. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;
    }
}


/* =========================================================
   42. SAFARI / IOS FINAL FIXES
   ========================================================= */

@media (max-width: 48rem) {

    input,
    select,
    textarea,
    button {
        font-size: 16px;
    }

    .admin-auth-input-wrap input,
    .admin-auth-input-wrap select,
    .security-code-field input,
    .payment-field input {
        font-size: 16px !important;
    }
}

/* =========================================================
   PRODUCT SIZE SELECTOR
   ========================================================= */

#dashboardProductsGrid .dashboard-product-sizes {
    margin-top: .85rem;
}

#dashboardProductsGrid .dashboard-product-sizes-title {
    display: block;
    margin-bottom: .45rem;

    color: var(--product-muted);
    font-size: .72rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .04em;
}

#dashboardProductsGrid .dashboard-product-size-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: .4rem;
}

/* ---------------------------------------------------------
   SIZE OPTION
   --------------------------------------------------------- */

#dashboardProductsGrid .product-size-option {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    user-select: none;
    -webkit-user-select: none;
}

/* Hide native checkbox/radio */
#dashboardProductsGrid .product-size-option input {
    position: absolute;

    width: 1px;
    height: 1px;

    margin: -1px;
    padding: 0;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;

    opacity: 0;
}

/* ---------------------------------------------------------
   SIZE BUTTON
   --------------------------------------------------------- */

#dashboardProductsGrid .product-size-option span {
    min-width: 2.1rem;
    height: 2rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 .55rem;

    border: .0625rem solid var(--product-border);
    border-radius: .5rem;

    background: #fff;

    color: #374151;

    font-size: .75rem;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

/* ---------------------------------------------------------
   HOVER
   --------------------------------------------------------- */

#dashboardProductsGrid .product-size-option:hover span {
    border-color: var(--product-primary);

    color: var(--product-primary);

    transform: translateY(-.0625rem);

    box-shadow:
        0 .2rem .5rem rgba(37, 99, 235, .10);
}

/* ---------------------------------------------------------
   SELECTED
   --------------------------------------------------------- */

#dashboardProductsGrid .product-size-option input:checked + span {
    border-color: var(--product-primary);

    background: var(--product-primary);

    color: #fff;

    box-shadow:
        0 .25rem .7rem rgba(37, 99, 235, .20);

    transform: translateY(-.03125rem);
}

/* ---------------------------------------------------------
   SELECTED HOVER
   --------------------------------------------------------- */

#dashboardProductsGrid
.product-size-option:hover
input:checked + span {
    border-color: var(--product-primary);

    background: var(--product-primary);

    color: #fff;

    box-shadow:
        0 .3rem .8rem rgba(37, 99, 235, .25);
}

/* ---------------------------------------------------------
   KEYBOARD FOCUS
   --------------------------------------------------------- */

#dashboardProductsGrid
.product-size-option
input:focus-visible + span {
    outline: .125rem solid var(--product-primary);

    outline-offset: .125rem;
}

/* ---------------------------------------------------------
   DISABLED
   --------------------------------------------------------- */

#dashboardProductsGrid
.product-size-option
input:disabled + span {
    cursor: not-allowed;

    opacity: .5;

    background: #f3f4f6;

    border-color: #e5e7eb;

    color: #9ca3af;

    box-shadow: none;

    transform: none;
}

#dashboardProductsGrid
.product-size-option:has(input:disabled) {
    cursor: not-allowed;
}

.product-size-option input:disabled + span {
    cursor: not-allowed;
    opacity: .5;
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
    box-shadow: none;
    transform: none;
}

.product-size-option:has(input:disabled) {
    cursor: not-allowed;
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 480px) {

    #dashboardProductsGrid .dashboard-product-sizes {
        margin-top: .75rem;
    }

    #dashboardProductsGrid .dashboard-product-size-list {
        gap: .35rem;
    }

    #dashboardProductsGrid .product-size-option span {
        min-width: 2rem;
        height: 1.9rem;

        padding: 0 .5rem;

        border-radius: .45rem;

        font-size: .7rem;
    }
}

/* =========================================================
   PRODUCT CARD — SIZES
   ========================================================= */

.product-card-sizes {
    width: 100%;
    margin-top: .85rem;
}

.product-card-sizes-title {
    display: block;

    margin-bottom: .5rem;

    color: var(--product-muted, #6b7280);

    font-size: .72rem;
    font-weight: 700;

    line-height: 1.2;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.product-card-size-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: .4rem;
}

/* =========================================================
   SIZE OPTION
   ========================================================= */

.product-size-option {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    cursor: pointer;

    user-select: none;
    -webkit-user-select: none;
}

/* Hide checkbox */
.product-size-option input {
    position: absolute;

    width: 1px;
    height: 1px;

    margin: -1px;
    padding: 0;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);

    white-space: nowrap;

    border: 0;

    opacity: 0;
}

/* =========================================================
   SIZE BUTTON
   ========================================================= */

.product-size-option span {
    min-width: 2.5rem;
    min-height: 2rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: .35rem .65rem;

    border: 1px solid var(--product-border, #e5e7eb);
    border-radius: .5rem;

    background: #fff;

    color: #374151;

    font-size: .75rem;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;

    transition:
        color .18s ease,
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

/* =========================================================
   HOVER
   ========================================================= */

.product-size-option:hover span {
    border-color: var(--product-primary, #2563eb);

    color: var(--product-primary, #2563eb);

    background: #fff;

    transform: translateY(-1px);

    box-shadow:
        0 3px 8px rgba(37, 99, 235, .10);
}

/* =========================================================
   CHECKED
   ========================================================= */

.product-size-option input:checked + span {
    border-color: var(--product-primary, #2563eb);

    background: var(--product-primary, #2563eb);

    color: #fff;

    box-shadow:
        0 4px 10px rgba(37, 99, 235, .22);

    transform: translateY(-1px);
}

/* =========================================================
   CHECKED + HOVER
   ========================================================= */

.product-size-option:hover input:checked + span {
    background: var(--product-primary, #2563eb);

    border-color: var(--product-primary, #2563eb);

    color: #fff;

    box-shadow:
        0 5px 12px rgba(37, 99, 235, .25);
}

/* =========================================================
   FOCUS
   ========================================================= */

.product-size-option input:focus-visible + span {
    outline: 2px solid var(--product-primary, #2563eb);

    outline-offset: 2px;
}

/* =========================================================
   ACTIVE
   ========================================================= */

.product-size-option:active span {
    transform: scale(.96);
}

.product-size-option:active input:checked + span {
    transform: scale(.96);
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .product-card-sizes {
        margin-top: .7rem;
    }

    .product-card-sizes-title {
        margin-bottom: .45rem;

        font-size: .68rem;
    }

    .product-card-size-list {
        gap: .35rem;
    }

    .product-size-option span {
        min-width: 2.35rem;
        min-height: 1.9rem;

        padding: .3rem .55rem;

        border-radius: .45rem;

        font-size: .7rem;
    }
}

#dashboardProductsGrid
.product-size-option input {
    -webkit-appearance: none;
    appearance: none;
}

.admin-auth-options label {
    display: inline-flex;
    align-items: center;
    gap: 0.5625em;

    margin: 0;
    padding: 0.375em 0.5625em;

    color: #4b5870;

    font-size: 0.75em;
    font-weight: 600;

    line-height: 1;

    cursor: pointer;
    user-select: none;

    border-radius: 0.5625em;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.admin-auth-options label:hover {
    background: #f1f6fc;
    color: #0757c9;
}


/* CHECKBOX */
.admin-auth-options label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;

    width: 1.0625em;
    height: 1.0625em;

    flex: 0 0 1.0625em;

    margin: 0;

    border: 0.09375em solid #c8d2df;
    border-radius: 0.3125em;

    background: #ffffff;

    cursor: pointer;

    display: grid;
    place-items: center;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}


/* CHECK MARK */
.admin-auth-options label input[type="checkbox"]::after {
    content: "✓";

    color: #ffffff;

    font-size: 0.6875em;
    font-weight: 800;

    transform: scale(0);

    transition: transform 0.15s ease;
}


/* CHECKED */
.admin-auth-options label input[type="checkbox"]:checked {
    background: #0757c9;
    border-color: #0757c9;

    box-shadow:
        0 0.25em 0.625em rgba(7, 87, 201, 0.22);
}

.admin-auth-options label input[type="checkbox"]:checked::after {
    transform: scale(1);
}


/* CLICK */
.admin-auth-options label input[type="checkbox"]:active {
    transform: scale(0.9);
}


/* FOCUS */
.admin-auth-options label input[type="checkbox"]:focus-visible {
    outline: none;

    box-shadow:
        0 0 0 0.25em rgba(7, 87, 201, 0.12);
}


.product-size-edit-input {
    width: 110px;
    height: 30px;
    padding: 4px 8px;
    border: 1px solid #999;
    border-radius: 6px;
    outline: none;
    background: #fff;
    color: #222;
    font-size: 14px;
    box-sizing: border-box;
}

.product-size-edit-input::placeholder {
    color: #999;
    opacity: 1;
}

.size-edit-input {
    width: 80px;
    height: 30px;
    padding: 4px 8px;

    border: 1px solid #999;
    border-radius: 5px;

    outline: none;

    font-size: 14px;
    font-family: inherit;
}

.size-edit-input::placeholder {
    color: #888;
    opacity: 1;
}
.product-size-edit-input::placeholder {
    color: #888;
    opacity: 1;
}


.order-status,
.order-status-select {
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
}

.order-status-unpaid {
    color: #ffffff;
    background: #dc2626;
}

.order-status-in-progress {
    color: #ffffff;
    background: #f59e0b;
}

.order-status-paid {
    color: #ffffff;
    background: #16a34a;
}
/* =========================================================
   QUANTITY INPUT — KEEP CARD SIZE FIXED
   ========================================================= */

.product-size-option:has(.product-quantity-input) {
    width: 100%;
    max-width: 100%;
}

.product-size-option .product-quantity-input {
    position: absolute;

    width: 1px;
    height: 1px;

    margin: -1px;
    padding: 0;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);

    white-space: nowrap;

    border: 0;
    opacity: 0;
}

.product-size-option .product-quantity-input + .size-quantity-hint {
    width: 100%;
    min-width: 0;

    box-sizing: border-box;

    overflow: hidden;
    text-overflow: ellipsis;
}

/* Quantity field: display a clear trigger first, then open the real input on click. */
.product-size-option .size-quantity-hint {
    cursor: text;
}

.product-size-option.quantity-editing .product-quantity-input {
    position: static;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 9px 12px;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    opacity: 1;
    background: #fff;
    color: inherit;
    box-sizing: border-box;
    outline: none;
}

.product-size-option.quantity-editing .product-quantity-input:focus {
    border-color: #0b74b8;
    box-shadow: 0 0 0 3px rgba(11,116,184,.12);
}

.product-size-option.quantity-editing .size-quantity-hint {
    display: none;
}
.product-card {
    display: flex;
    flex-direction: column;
}

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stock {
    margin-top: auto;
    min-height: 60px;
}

.product-actions {
    margin-top: 1px;
    display: flex;
    gap: 10px;
}
.product-no-size {
    margin-top: 40px;
}
.product-no-size ~ .stock .available-quantity {
    transform: translateY(10px);
}
.stock {
    transform: translateY(15px);
}

#ordersOrder {
    display: block !important;
    font-weight: bold !important;
    position: relative !important;
    font-size: 1.5em !important;
    top: -0.5em !important;
}

#customersCustomer {
    display: block !important;
    font-weight: bold !important;
    position: relative !important;
    font-size: 1.5em !important;
    top: -0.5em !important;
}

#managersManager {
    display: block !important;
    font-weight: bold !important;
    position: relative !important;
    font-size: 1.5em !important;
    top: -0.5em !important;
}
/* =========================================================
   END
   ========================================================= */

/* =========================================================
   99. HEALTHYLIFE — 2026 MODERN UI ENHANCEMENT LAYER
   Safe override layer: keeps the existing HTML/JS structure.
   ========================================================= */

:root {
    --hl-glass: rgba(255,255,255,.82);
    --hl-glass-strong: rgba(255,255,255,.94);
    --hl-line: rgba(15,23,42,.08);
    --hl-blue-glow: rgba(0,113,194,.20);
    --hl-green-glow: rgba(56,225,67,.18);
    --hl-ease: cubic-bezier(.22,.61,.36,1);
    --hl-ease-bounce: cubic-bezier(.2,.85,.35,1.15);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 5% 0%, rgba(0,113,194,.055), transparent 26rem),
        radial-gradient(circle at 100% 12%, rgba(56,225,67,.045), transparent 24rem),
        var(--background);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(0,113,194,.18);
}

/* ---------- Accessible focus ---------- */

:where(
    a,
    button,
    input,
    select,
    textarea,
    [tabindex]
):focus-visible {
    outline: 3px solid rgba(0,113,194,.25);
    outline-offset: 3px;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,.55);
    background: var(--hl-glass);
    box-shadow: 0 8px 30px rgba(15,23,42,.06);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
}

.nav {
    max-width: var(--content-width);
    margin-inline: auto;
}

.logo img {
    transition:
        transform .28s var(--hl-ease),
        filter .28s ease;
}

.logo:hover img {
    transform: translateY(-2px) scale(1.015);
    filter: drop-shadow(0 7px 15px rgba(0,59,149,.12));
}

.nav-links a {
    position: relative;
    transition:
        color .2s ease,
        transform .2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -.4rem;
    width: 0;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary-light), var(--green));
    transform: translateX(-50%);
    transition: width .24s var(--hl-ease);
}

.nav-links a:hover {
    transform: translateY(-1px);
}

.nav-links a:hover::after {
    width: 72%;
}

.language-select,
.account-button,
.cart-button {
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 5px 18px rgba(15,23,42,.055);
    transition:
        transform .22s var(--hl-ease),
        box-shadow .22s ease,
        border-color .22s ease,
        background .22s ease;
}

.language-select:hover,
.account-button:hover,
.cart-button:hover {
    transform: translateY(-2px);
    border-color: rgba(0,113,194,.18);
    box-shadow: 0 10px 24px rgba(15,23,42,.09);
}

.account-button:active,
.cart-button:active {
    transform: translateY(0) scale(.98);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    isolation: isolate;
    min-height: clamp(29rem, 54vw, 42rem);
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 78% 18%, rgba(56,225,67,.17), transparent 19rem),
        radial-gradient(circle at 22% 70%, rgba(255,255,255,.10), transparent 22rem),
        linear-gradient(135deg, #002760 0%, #003b95 48%, #0874c9 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .72;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 88%);
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero::after {
    width: 34rem;
    height: 34rem;
    right: -10rem;
    bottom: -17rem;
    background: rgba(255,255,255,.055);
    box-shadow:
        -11rem -8rem 0 -6rem rgba(255,255,255,.035),
        -19rem 5rem 0 -10rem rgba(56,225,67,.055);
    animation: hlFloatOrb 9s ease-in-out infinite;
}

.hero-content {
    animation: hlHeroEnter .7s var(--hl-ease) both;
}

.hero h1 {
    max-width: 14ch;
    letter-spacing: -.035em;
    text-wrap: balance;
    text-shadow: 0 8px 28px rgba(0,28,76,.22);
}

.hero p {
    max-width: 44rem;
    line-height: 1.7;
}

.search-box {
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255,255,255,.48);
    background: rgba(255,255,255,.96);
    box-shadow:
        0 24px 60px rgba(0,32,78,.22),
        inset 0 1px 0 rgba(255,255,255,.9);
    transition:
        transform .25s var(--hl-ease),
        box-shadow .25s ease;
}

.search-box:focus-within {
    transform: translateY(-3px);
    box-shadow:
        0 30px 70px rgba(0,32,78,.26),
        0 0 0 4px rgba(255,255,255,.10);
}

.search-box input,
.search-box select {
    transition:
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

/* =========================================================
   GENERAL SURFACES
   ========================================================= */

.container {
    position: relative;
    z-index: 3;
}

.categories,
.filters,
.dashboard-panel,
.dashboard-card,
.payment-modal,
.admin-auth-content,
.product-edit-box,
.product-add-box,
.product-security-box {
    border: 1px solid rgba(15,23,42,.075);
    box-shadow:
        0 12px 38px rgba(15,23,42,.075),
        inset 0 1px 0 rgba(255,255,255,.75);
}

.categories,
.filters,
.dashboard-panel,
.dashboard-card {
    transition:
        transform .28s var(--hl-ease),
        box-shadow .28s ease,
        border-color .28s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,113,194,.14);
    box-shadow: 0 18px 42px rgba(15,23,42,.10);
}

/* =========================================================
   CATEGORY CARDS
   ========================================================= */

.category-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,.075);
    box-shadow: 0 7px 20px rgba(15,23,42,.045);
    transition:
        transform .28s var(--hl-ease),
        box-shadow .28s ease,
        border-color .28s ease;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(0,113,194,.07), transparent 52%);
    opacity: 0;
    transition: opacity .25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0,113,194,.18);
    box-shadow: 0 16px 34px rgba(15,23,42,.09);
}

.category-card:hover::before {
    opacity: 1;
}

/* =========================================================
   PRODUCT GRID / PRODUCT CARDS
   ========================================================= */

.products {
    align-items: stretch;
}

.product-card {
    position: relative;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,.075);
    border-radius: 1.2rem;
    background: rgba(255,255,255,.98);
    box-shadow: 0 8px 26px rgba(15,23,42,.06);
    transform: translateZ(0);
    transition:
        transform .3s var(--hl-ease),
        box-shadow .3s ease,
        border-color .3s ease;
    animation: hlCardIn .42s var(--hl-ease) both;
}

.product-card:hover {
    transform: translateY(-7px);
    border-color: rgba(0,113,194,.16);
    box-shadow:
        0 22px 50px rgba(15,23,42,.12),
        0 8px 20px rgba(0,113,194,.055);
}

.product-image {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 32%, #fff 0%, #f7faff 65%, #f1f5f9 100%);
}

.product-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 65%, rgba(15,23,42,.025));
}

.product-image img,
.product-image .product-icon-image {
    transition:
        transform .38s var(--hl-ease),
        filter .38s ease;
}

.product-card:hover .product-image img,
.product-card:hover .product-image .product-icon-image {
    transform: scale(1.045);
    filter: saturate(1.04) contrast(1.01);
}

.product-info {
    min-width: 0;
    height: 100%;
}

.product-info h3 {
    letter-spacing: -.015em;
}

.brand {
    color: var(--text-muted);
}

.price strong {
    letter-spacing: -.02em;
}

.badge,
.stock-badge,
.dashboard-status {
    box-shadow: 0 5px 16px rgba(15,23,42,.07);
}

/* Keep all product-card lower sections aligned */
.product-card .stock {
    margin-top: auto;
    min-height: 3.5rem;
    transform: none;
}

.product-card .product-actions {
    width: 100%;
    margin-top: .8rem;
    gap: .65rem;
}

.product-card .product-actions > * {
    flex: 1 1 0;
}

.product-no-size {
    margin-top: .85rem;
}

.product-no-size ~ .stock .available-quantity {
    transform: none;
}

/* =========================================================
   BUTTONS
   ========================================================= */

button,
.button,
.search-button,
.add-product-button,
.checkout-button,
.admin-auth-submit,
.product-actions button {
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform .2s var(--hl-ease),
        box-shadow .2s ease,
        filter .2s ease,
        background .2s ease,
        border-color .2s ease;
}

button:not(:disabled):hover,
.button:not(:disabled):hover,
.search-button:not(:disabled):hover,
.add-product-button:not(:disabled):hover,
.checkout-button:not(:disabled):hover,
.admin-auth-submit:not(:disabled):hover,
.product-actions button:not(:disabled):hover {
    transform: translateY(-2px);
}

button:not(:disabled):active,
.button:not(:disabled):active,
.search-button:not(:disabled):active,
.add-product-button:not(:disabled):active,
.checkout-button:not(:disabled):active,
.admin-auth-submit:not(:disabled):active,
.product-actions button:not(:disabled):active {
    transform: translateY(0) scale(.985);
}

button:disabled {
    cursor: not-allowed;
    filter: grayscale(.15);
    opacity: .58;
}

/* =========================================================
   INPUTS / SELECTS / TEXTAREAS
   ========================================================= */

input,
select,
textarea {
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #c7d2e0;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(0,113,194,.55);
    box-shadow: 0 0 0 4px rgba(0,113,194,.09);
}

/* =========================================================
   MODALS / OVERLAYS
   ========================================================= */

.auth-overlay,
.cart-overlay,
.details-modal,
.payment-overlay,
#productEditModal,
#productAddModal,
#productSecurityModal,
.dashboard-overlay {
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}

.auth-overlay.show .admin-auth-content,
.cart-overlay.show .cart,
.details-modal.show > *,
.payment-overlay.show .payment-modal,
#productEditModal.show .product-edit-box,
#productAddModal.show .product-add-box,
#productSecurityModal.show .product-security-box {
    animation: hlModalIn .26s var(--hl-ease-bounce) both;
}

.admin-auth-content,
.cart,
.payment-modal,
.product-edit-box,
.product-add-box,
.product-security-box {
    box-shadow:
        0 30px 90px rgba(15,23,42,.22),
        0 4px 18px rgba(15,23,42,.08);
}

/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-main {
    background:
        radial-gradient(circle at 0 0, rgba(0,113,194,.05), transparent 25rem),
        #f7f9fc;
}

.dashboard-top {
    gap: 1rem;
}

.dashboard-top h1 {
    letter-spacing: -.03em;
}

.dashboard-sidebar,
.dashboard-nav {
    box-shadow: 8px 0 30px rgba(15,23,42,.035);
}

.dashboard-nav button,
.dashboard-nav a {
    transition:
        transform .2s var(--hl-ease),
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

.dashboard-nav button:hover,
.dashboard-nav a:hover {
    transform: translateX(3px);
}

#dashboardProductsGrid {
    align-items: stretch;
}

#dashboardProductsGrid .product-card {
    height: 100%;
}

/* Remove legacy vertical offsets that make dashboard headings uneven */
#ordersOrder,
#customersCustomer,
#managersManager {
    position: static;
    top: auto;
    margin: 0;
    line-height: 1.2;
}

/* =========================================================
   TABLES
   ========================================================= */

table {
    border-collapse: separate;
    border-spacing: 0;
}

thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(248,250,252,.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

tbody tr {
    transition:
        background .18s ease,
        transform .18s ease;
}

tbody tr:hover {
    background: rgba(0,113,194,.035);
}

/* =========================================================
   FOOTER
   ========================================================= */

footer,
.footer {
    position: relative;
    overflow: hidden;
}

footer::before,
.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 10%, rgba(56,225,67,.06), transparent 18rem),
        radial-gradient(circle at 90% 90%, rgba(0,113,194,.10), transparent 20rem);
}

/* =========================================================
   LOADING / EMPTY STATES
   ========================================================= */

.no-products,
.loading,
.empty-state {
    border: 1px dashed rgba(15,23,42,.13);
    border-radius: 1rem;
    background: rgba(255,255,255,.72);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes hlHeroEnter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hlCardIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.992);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hlModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.975);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hlFloatOrb {
    0%, 100% {
        transform: translate3d(0,0,0);
    }
    50% {
        transform: translate3d(-16px,-14px,0);
    }
}

/* =========================================================
   RESPONSIVE POLISH
   ========================================================= */

@media (max-width: 64rem) {
    .header {
        -webkit-backdrop-filter: blur(14px) saturate(150%);
        backdrop-filter: blur(14px) saturate(150%);
    }

    .hero {
        min-height: auto;
    }

    .content-layout {
        gap: 1.25rem;
    }
}

@media (max-width: 48rem) {
    .header {
        position: sticky;
    }

    .hero {
        padding-top: 3.25rem;
        padding-bottom: 5.25rem;
    }

    .hero h1 {
        max-width: 18ch;
        line-height: 1.12;
    }

    .search-box {
        border-radius: 1rem;
    }

    .categories,
    .dashboard-panel,
    .payment-modal,
    .admin-auth-content {
        border-radius: 1rem;
    }

    .product-card {
        border-radius: 1rem;
    }
}

@media (max-width: 30rem) {
    body {
        font-size: .96rem;
    }

    .header {
        box-shadow: 0 5px 20px rgba(15,23,42,.06);
    }

    .hero {
        padding-inline: 4%;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 9vw, 2.35rem);
    }

    .container {
        padding-inline: .7rem;
    }

    .category-grid {
        gap: .7rem;
    }

    .product-card .product-actions {
        gap: .5rem;
    }

    #dashboardProductsGrid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   REDUCED MOTION / ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
   END 2026 MODERN UI ENHANCEMENT LAYER
   ========================================================= */


/* =========================================================
   100. USER REQUESTED FIXES
   - Header no longer follows page scroll
   - Header returns to visible green background
   - White navigation text stays readable
   - Floating up/down navigation buttons
   ========================================================= */

.header {
    position: relative !important;
    top: auto !important;
    z-index: 1000;

    background: #ffffff !important;


    border-bottom: 1px solid rgba(0, 59, 149, .08);

    box-shadow:
        0 .2rem 1rem rgba(15, 23, 42, .08);

    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.nav-links a {
    color: black !important;
    text-shadow: 0 1px 2px rgba(0, 45, 60, .13);
}

.nav-links a:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,.14);
}

.nav-links a::after {
    background: rgba(255,255,255,.92);
}

.logo span {
    color: #123a6d;
}

/* ---------- Scroll controls ---------- */

.page-scroll-controls {
    position: fixed !important;
    right: 1.15rem;
    bottom: 1.15rem;
    z-index: 99999 !important;

    display: flex !important;
    flex-direction: column;
    gap: .65rem;
}

.page-scroll-button {
    width: 3rem;
    height: 3rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(15,23,42,.10);
    border-radius: 50%;

    background: rgba(255,255,255,.96);
    color: #003b95;

    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 10px 28px rgba(15,23,42,.16);

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    transition:
        transform .2s var(--hl-ease),
        box-shadow .2s ease,
        background .2s ease,
        color .2s ease;
}

.page-scroll-button:hover {
    transform: translateY(-2px) scale(1.04);

    background: #003b95;
    color: #ffffff;

    box-shadow:
        0 14px 34px rgba(0,59,149,.24);
}

.page-scroll-button:active {
    transform: scale(.96);
}

@media (max-width: 480px) {
    .page-scroll-controls {
        right: .75rem;
        bottom: .75rem;
        gap: .5rem;
    }

    .page-scroll-button {
        width: 2.7rem;
        height: 2.7rem;
        font-size: 1.05rem;
    }
}
/* =========================================================
   AUTO SLIDING HEADER
   ========================================================= */

.header {
    position: relative !important;
    z-index: 1000;

    transform: translateY(-100%);

    transition:
        transform 0.8s cubic-bezier(.22, .61, .36, 1);
}

.header.header-down {
    transform: translateY(0);
}

.header.header-up {
    transform: translateY(-100%);
}
/* =========================================================
   HERO SLIDER
   ========================================================= */

.hero-slider {
    position: relative;

    min-height: 31rem;

    padding: 0 !important;

    overflow: hidden;
}


/* =========================================================
   SLIDES
   ========================================================= */

.hero-slide {
    position: absolute;

    inset: 0;

    width: 100%;
    min-height: 31rem;

    display: flex;

    align-items: center;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform: translateX(100%);

    transition:
        transform .65s cubic-bezier(.22,.61,.36,1),
        opacity .5s ease,
        visibility .5s ease;
}


/* =========================================================
   ACTIVE SLIDE
   ========================================================= */

.hero-slide.active {
    position: relative;

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateX(0);
}


/* =========================================================
   CONTENT
   ========================================================= */

.hero-slide .hero-content {
    width: 100%;

    max-width: var(--content-width);

    margin: 0 auto;

    padding:
        4.25rem
        6%
        6.5rem;

    animation:
        heroSlideContent
        .65s
        ease
        both;
}

/* =========================================================
   ARROWS
   ========================================================= */

/* =========================================================
   HERO SLIDER ARROWS
   ========================================================= */

.hero-slider-arrow {
    position: absolute !important;

    /* Vertical center WITHOUT transform */
    top: 0 !important;
    bottom: 0 !important;
    margin-top: auto !important;
    margin-bottom: auto !important;

    z-index: 30 !important;

    width: 3.4rem !important;
    height: 3.4rem !important;

    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* IMPORTANT */
    transform: none !important;

    border: none !important;
    border-radius: 50% !important;

    background: transparent !important;

    color: #ffffff !important;

    font-size: 2.2rem !important;
    font-weight: 300 !important;
    line-height: 1 !important;

    cursor: pointer !important;

    box-shadow: none !important;

    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;

    opacity: 0.55;

    transition: opacity .2s ease !important;

    touch-action: manipulation;

    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   LEFT
   ========================================================= */

.hero-slider-prev {
    left: 1.25rem !important;
}


/* =========================================================
   RIGHT
   ========================================================= */

.hero-slider-next {
    right: 1.25rem !important;
}


/* =========================================================
   HOVER
   ========================================================= */

.hero-slider-arrow:hover {
    transform: none !important;

    background: transparent !important;

    box-shadow: none !important;

    opacity: 1;
}


/* =========================================================
   ACTIVE
   ========================================================= */

.hero-slider-arrow:active {
    transform: none !important;

    background: transparent !important;

    box-shadow: none !important;

    opacity: 1;
}


/* =========================================================
   FOCUS
   ========================================================= */

.hero-slider-arrow:focus,
.hero-slider-arrow:focus-visible {
    transform: none !important;

    background: transparent !important;

    box-shadow: none !important;

    outline: none !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .hero-slider-arrow {
        width: 2.75rem !important;
        height: 2.75rem !important;

        font-size: 1.7rem !important;

        top: 0 !important;
        bottom: 0 !important;

        margin-top: auto !important;
        margin-bottom: auto !important;

        transform: none !important;
    }


    .hero-slider-prev {
        left: .45rem !important;
    }


    .hero-slider-next {
        right: .45rem !important;
    }


    .hero-slider-arrow:hover,
    .hero-slider-arrow:active,
    .hero-slider-arrow:focus,
    .hero-slider-arrow:focus-visible {
        transform: none !important;
    }

}

.header {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* =========================================================
   HEADER UP / DOWN
   ========================================================= */

.header {
    position: relative !important;
    top: auto !important;
    z-index: 1000;

    transform: translateY(0);
    opacity: 1;
    visibility: visible;

    transition:
        transform 1.2s cubic-bezier(.22, .61, .36, 1),
        opacity 1.2s ease;
}


/* Header-ը բարձրացված / թաքնված է */

.header.header-slide-up {
    transform: translateY(-100%);
    opacity: 0;
}


/* Header-ը ներքև / տեսանելի է */

.header.header-slide-down {
    transform: translateY(0);
    opacity: 1;
}

/* Սովորական էջերի դիրքը */
.page-scroll-controls {
    position: fixed;
    right: 1.15rem;
    bottom: 1.15rem;
    z-index: 1500;
}


/* Միայն գլխավոր էջի դիրքը */
.page-scroll-controls.home-scroll-controls {
    right: 50% !important;
    bottom: 2rem !important;
    transform: translateX(50%);
}

.hero-slide:first-child .hero-content {
    position: relative;
    z-index: 2;
}

.hero-doctor-floating {
    position: absolute;
    right: 3%;
    bottom: 2rem;
    z-index: 1;

    width: min(360px, 32vw);

    pointer-events: none;
}

.hero-doctor-floating img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* Տեքստն ու search-ը GIF-ից վերև մնան */

.hero-slide:first-child h1,
.hero-slide:first-child p,
.hero-slide:first-child .search-box {
    position: relative;
    z-index: 3;
}


/* MOBILE */

@media (max-width: 900px) {

    .hero-doctor-floating {
        width: 230px;
        right: 1rem;
        bottom: 1rem;
        opacity: 0.75;
    }
}

@media (max-width: 650px) {

    .hero-doctor-floating {
        width: 180px;
        right: -20px;
        bottom: 10px;
        opacity: 0.45;
    }
}

@media (max-width: 1024px) {
    .hero-doctor-floating {
        display: none !important;
    }
}

/* =========================================================
   ADDRESS MAP
========================================================= */


/* =========================================================
   LOCATION BUTTON
========================================================= */

.location-map-button {
    width: 52px !important;
    height: 52px !important;

    min-width: 52px !important;
    min-height: 52px !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    position: relative;
    z-index: 999;

    padding: 0 !important;

    margin:
        -10px
        2px
        -10px
        -10px;

    border: 0;
    border-radius: 50%;

    background: transparent;

    font-size: 22px;

    cursor: pointer;

    pointer-events: auto !important;
    touch-action: manipulation !important;
}


#locationInput {
    position: relative;

    z-index: 998;

    pointer-events: auto !important;
    touch-action: manipulation !important;

    cursor: pointer;
}


/* =========================================================
   MODAL
========================================================= */

.address-map-modal {
    position: fixed;

    inset: 0;

    z-index: 999999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 1rem;

    background:
        rgba(
            15,
            23,
            42,
            .55
        );

    -webkit-backdrop-filter:
        blur(6px);

    backdrop-filter:
        blur(6px);
}


.address-map-modal.active {
    display: flex;
}


.address-map-dialog {
    position: relative;

    width:
        min(
            900px,
            96vw
        );

    max-height: 94vh;

    overflow: hidden;

    background: #ffffff;

    border-radius: 24px;

    box-shadow:
        0
        25px
        70px
        rgba(
            0,
            0,
            0,
            .25
        );
}


/* =========================================================
   HEADER
========================================================= */

.address-map-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding:
        1.25rem
        1.4rem;
}


.address-map-header h2 {
    margin: 0;

    color: #123a6d;

    font-size: 1.35rem;
}


.address-map-close {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: #f1f5f9;

    color: #334155;

    font-size: 1.7rem;

    cursor: pointer;

    touch-action: manipulation;
}


/* =========================================================
   SEARCH
========================================================= */

.address-search-wrapper {
    display: flex;

    gap: .65rem;

    padding:
        0
        1.4rem
        1rem;
}


.address-search-wrapper input {
    flex: 1;

    min-width: 0;

    padding:
        .9rem
        1rem;

    border:
        1px solid
        #dbe3ec;

    border-radius: 12px;

    outline: none;

    font-size: 1rem;
}


.address-search-wrapper input:focus {
    border-color: #20b83b;

    box-shadow:
        0
        0
        0
        3px
        rgba(
            32,
            184,
            59,
            .12
        );
}


.address-search-wrapper button {
    border: 0;

    padding:
        0
        1.4rem;

    border-radius: 12px;

    background: #20b83b;

    color: #ffffff;

    font-weight: 700;

    cursor: pointer;

    touch-action: manipulation;
}


/* =========================================================
   YOUR LOCATION BUTTON
========================================================= */

.your-location-button {
    white-space: nowrap;

    border:
        1px solid
        #20b83b !important;

    background:
        #ffffff !important;

    color:
        #15952d !important;

    font-weight: 700;

    cursor: pointer;

    touch-action: manipulation;
}


.your-location-button:hover {
    background:
        #f0fff3 !important;
}


.your-location-button:disabled {
    opacity: .65;

    cursor: wait;
}


/* =========================================================
   SEARCH RESULTS
========================================================= */

.address-search-results {
    position: absolute;

    z-index: 1000;

    top: 132px;
    left: 1.4rem;
    right: 1.4rem;

    max-height: 220px;

    overflow-y: auto;

    background: #ffffff;

    border-radius: 12px;

    box-shadow:
        0
        15px
        35px
        rgba(
            0,
            0,
            0,
            .15
        );
}


.address-result-item {
    padding:
        .85rem
        1rem;

    border-bottom:
        1px solid
        #eef2f7;

    cursor: pointer;
}


.address-result-item:hover {
    background: #f4fbf5;
}


/* =========================================================
   MAP
========================================================= */

#addressMap {
    width: 100%;
    height: 420px;
}


/* =========================================================
   SELECTED ADDRESS
========================================================= */

.selected-address-box {
    display: flex;

    align-items: center;

    gap: .8rem;

    margin:
        1rem
        1.4rem;

    padding: 1rem;

    background: #f7fafc;

    border-radius: 14px;
}


.selected-address-box span {
    font-size: 1.5rem;
}


.selected-address-box div {
    display: flex;

    flex-direction: column;

    gap: .2rem;
}


.selected-address-box small {
    color: #64748b;
}


.selected-address-box strong {
    color: #123a6d;

    font-size: .95rem;
}


/* =========================================================
   CONFIRM BUTTON
========================================================= */

.confirm-address-button {
    width:
        calc(
            100% - 2.8rem
        );

    margin:
        0
        1.4rem
        1.4rem;

    padding: 1rem;

    border: 0;

    border-radius: 14px;

    background: #20b83b;

    color: #ffffff;

    font-size: 1rem;
    font-weight: 700;

    cursor: pointer;

    touch-action: manipulation;
}


.confirm-address-button:hover {
    background: #199b31;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .address-map-modal {
        padding: 0;
    }


    .address-map-modal.active {
        display: flex !important;
    }


    .address-map-dialog {
        width: 100%;
        height: 100%;

        max-height: none;

        border-radius: 0;
    }


    .location-map-button {
        width: 60px !important;
        height: 60px !important;

        min-width: 60px !important;
        min-height: 60px !important;

        margin:
            -14px
            0
            -14px
            -14px;

        font-size: 23px;

        visibility: visible !important;
        opacity: 1 !important;

        pointer-events: auto !important;
    }


    #locationInput {
        pointer-events: auto !important;
    }


    .address-search-wrapper {
        flex-wrap: wrap;

        padding-left: 1rem;
        padding-right: 1rem;
    }


    .your-location-button {
        width: 100%;
        height: 46px;
    }


    .address-search-results {
        left: 1rem;
        right: 1rem;
    }


    #addressMap {
        height: 48vh;
    }

}


/* =========================================================
   HERO SEARCH FIELDS - CLEAN MOBILE CLICK FIX
   ========================================================= */

.search-input-field,
.location-search-field,
.category-search-field {
    position: relative;
    min-height: 56px;
}

/* Search icon is directly clickable */
.search-input-field > .field-icon {
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
}

/* Location: icon and field can open the map */
.location-search-field {
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
}

.location-search-field > .field-icon {
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
}

.location-search-field #locationInput {
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
}

/* Category: keep the REAL native select visible and clickable */
.category-search-field > .field-icon {
    flex: 0 0 auto;
    pointer-events: none;
}

.category-search-field #categorySelect {
    position: static;
    display: block;
    flex: 1 1 auto;

    width: 100%;
    min-width: 0;
    min-height: 44px;

    margin: 0;
    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;
    color: var(--text);

    opacity: 1;
    visibility: visible;

    pointer-events: auto;
    touch-action: manipulation;
    cursor: pointer;

    -webkit-appearance: auto;
    appearance: auto;
}

@media (max-width: 768px) {
    .search-box:focus-within {
        transform: none !important;
    }

    .search-input-field,
    .location-search-field,
    .category-search-field {
        min-height: 56px;
    }

    .search-input-field > .field-icon,
    .location-search-field > .field-icon {
        min-width: 44px;
        min-height: 44px;

        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .category-search-field #categorySelect {
        min-height: 44px;
        font-size: 16px;
        -webkit-appearance: auto;
        appearance: auto;
    }
}
/* =========================================
   REAL MOBILE TOUCH TARGETS
========================================= */

.hero-field-icon {
    position: relative !important;
    z-index: 50 !important;

    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    background: transparent !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 20px !important;

    cursor: pointer !important;

    pointer-events: auto !important;
    touch-action: manipulation !important;

    -webkit-appearance: none !important;
}


/* LOCATION */

.location-search-field {
    pointer-events: auto !important;
}

.location-search-field #locationInput {
    pointer-events: auto !important;
    cursor: pointer !important;
}


/* =========================================
   CATEGORY ICON
========================================= */

.category-icon-wrapper {
    position: relative !important;

    width: 44px !important;
    height: 44px !important;

    min-width: 44px !important;

    flex: 0 0 44px !important;
}


/* visible 📦 */

.category-icon-visible {
    position: absolute !important;

    inset: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    z-index: 1 !important;

    pointer-events: none !important;

    font-size: 20px !important;
}


/*
   REAL SELECT sits physically over 📦.
   So iPhone touches a REAL <select>,
   not JS click().
*/

.category-icon-select {
    position: absolute !important;

    inset: 0 !important;

    width: 44px !important;
    height: 44px !important;

    z-index: 100 !important;

    opacity: 0.001 !important;

    cursor: pointer !important;

    pointer-events: auto !important;
    touch-action: manipulation !important;

    -webkit-appearance: auto !important;
    appearance: auto !important;
}


/* NORMAL CATEGORY SELECT */

.category-search-field #categorySelect {
    position: static !important;

    flex: 1 !important;

    width: 100% !important;
    height: 44px !important;

    opacity: 1 !important;
    visibility: visible !important;

    pointer-events: auto !important;
    touch-action: manipulation !important;

    -webkit-appearance: auto !important;
    appearance: auto !important;
}


.footer-legal {
    width: 100%;

    margin-top: 35px;
    padding: 20px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.15);

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 12px;

    text-align: center;
}

.footer-legal a {
    display: inline-block;

    color: inherit;
    text-decoration: none;

    font-size: 14px;
}

.footer-legal a:hover {
    text-decoration: underline;
}

.footer-legal-separator {
    opacity: 0.5;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 20px;

    max-width: 600px;
}

.footer-contact h3 {
    margin: 0 0 10px 0;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;

    gap: 18px;

    color: inherit;
    text-decoration: none;

    font-size: 18px;
    line-height: 1.5;
}

.footer-contact-item:hover {
    opacity: 0.8;
}

.footer-contact-icon {
    width: 28px;
    min-width: 28px;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 22px;
    font-weight: bold;
}

.footer-facebook {
    font-family: Arial, sans-serif;
}

.footer-contact-item span:last-child {
    overflow-wrap: anywhere;
}

/* =========================================================
   999. FINAL CONSISTENCY FIXES
   Added to resolve duplicate/cascading header, nav,
   language selector and footer rules.
   ========================================================= */

/* ---------- Header base ---------- */
.header {
    position: relative !important;
    top: auto !important;
    z-index: 1000;

    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;

    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 59, 149, .08);

    box-shadow:
        0 .2rem 1rem rgba(15, 23, 42, .08);

    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* Preserve optional JS header slide behaviour */
.header.header-slide-up,
.header.header-up {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.header.header-slide-down,
.header.header-down {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ---------- Navigation ---------- */
.nav {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1.25rem;
}

.nav-links a {
    color: #172033 !important;
    text-shadow: none !important;
}

.nav-links a:hover {
    color: #003b95 !important;
    background: rgba(0, 59, 149, .06) !important;
}

.nav-links a::after {
    background:
        linear-gradient(
            90deg,
            var(--primary-light),
            var(--green)
        ) !important;
}

/* ---------- Header actions ---------- */
.language-select,
.account-button,
.cart-button {
    height: 2.7rem;

    flex-shrink: 0;

    border: 1px solid rgba(0, 59, 149, .12);
    border-radius: .8rem;

    background-color: rgba(255, 255, 255, .96);

    color: #17324d;

    box-shadow:
        0 3px 12px rgba(15, 23, 42, .06);
}

/* ---------- Language selector: same compact control everywhere ---------- */
.language-select,
#languageSelect.language-select {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;

    height: 2.7rem !important;

    flex: 0 0 52px !important;

    padding: 0 18px 0 6px !important;

    box-sizing: border-box !important;

    cursor: pointer;

    appearance: none !important;
    -webkit-appearance: none !important;

    background-color: rgba(255, 255, 255, .96) !important;

    background-image:
        linear-gradient(45deg, transparent 50%, #64748b 50%),
        linear-gradient(135deg, #64748b 50%, transparent 50%) !important;

    background-position:
        calc(100% - 12px) 50%,
        calc(100% - 7px) 50% !important;

    background-size:
        5px 5px,
        5px 5px !important;

    background-repeat: no-repeat !important;

    color: #17324d !important;

    font-size: 12px !important;
    font-weight: 700;

    line-height: 1 !important;

    outline: none;
}

.language-select:hover,
#languageSelect.language-select:hover {
    border-color: rgba(0, 59, 149, .30) !important;
    background-color: #f8fbff !important;
    color: #003b95 !important;

    box-shadow:
        0 5px 16px rgba(0, 59, 149, .10) !important;
}

.language-select:focus,
#languageSelect.language-select:focus {
    border-color: #003b95 !important;

    box-shadow:
        0 0 0 3px rgba(0, 59, 149, .10) !important;
}

.language-select option,
#languageSelect.language-select option {
    background: #ffffff;
    color: #17324d;

    font-size: 14px !important;
    font-weight: 600;
}

/* ---------- Footer ---------- */
footer,
.footer {
    width: 100%;
    margin-top: 3.75rem;

    position: relative;
    overflow: hidden;
}

.footer-content {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    align-items: start;

    gap: clamp(2rem, 6vw, 6.25rem);
}

/* ---------- Responsive ---------- */
@media (max-width: 62.5rem) {
    .footer-content {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 2rem;
    }
}

@media (max-width: 43.75rem) {
    .header {
        padding: .875rem 4%;
    }

    .nav {
        flex-wrap: wrap;
        gap: .75rem;
    }

    .language-select,
    #languageSelect.language-select {
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;

        flex: 0 0 52px !important;

        height: 2.5rem !important;

        padding: 0 18px 0 6px !important;

        font-size: 12px !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-contact {
        max-width: 100%;
    }
}

@media (max-width: 30rem) {
    .language-select,
    #languageSelect.language-select {
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;

        flex: 0 0 52px !important;

        font-size: 12px !important;
    }

    .account-button,
    .cart-button {
        min-width: auto;
    }

    .footer-legal {
        flex-wrap: wrap;
        row-gap: .5rem;
    }
}


/* =========================================================
   PRODUCT ADMIN — SIZE QUANTITY + PRICE + DESCRIPTION
   ========================================================= */
.product-size-row {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) minmax(190px, 1.6fr) minmax(120px, 1fr) minmax(140px, 1fr);
    gap: 12px;
    align-items: end;
    margin: 10px 0;
}

.product-size-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-size-field small {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.product-size-field input[type="text"],
.product-size-field input[type="number"] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#productAddForm textarea,
#productEditForm textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid #d9e1ea;
    border-radius: 10px;
    font: inherit;
}

@media (max-width: 640px) {
    .product-size-row {
        grid-template-columns: 1fr;
    }
}


/* ===== HealthyLife v24 checkout back button ===== */
.payment-header{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important}
.payment-header h2{text-align:center!important;min-width:0!important;margin:0!important;overflow-wrap:anywhere}
.payment-back{border:1px solid rgba(0,59,149,.12);background:#f6f9fc;color:#17324d;border-radius:10px;padding:9px 11px;font:inherit;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.payment-close{position:static!important;justify-self:end}
@media(max-width:560px){.payment-back{padding:8px;font-size:12px}.payment-back span{display:none}.payment-header{grid-template-columns:38px minmax(0,1fr) 38px!important}.payment-header h2{font-size:20px!important}}


/* HealthyLife discount pricing */
.hl-price-discounted{position:relative;display:flex!important;flex-direction:column;align-items:flex-start;gap:2px}.hl-old-price{color:#d43b3b!important;text-decoration:line-through;text-decoration-thickness:2px;font-weight:700;font-size:.92em}.hl-new-price{color:#0a8f55!important;font-weight:900!important}.hl-card-discount-badge{position:absolute;right:0;bottom:2px;background:#e43e4d;color:#fff;border-radius:999px;padding:4px 7px;font-size:11px;font-weight:900}.hl-discounts-nav-link{color:#0a8f55!important;font-weight:800!important}


/* =========================================================
   AUTOMATIC DISCOUNT PRODUCT HERO SLIDES
   ========================================================= */
/* =========================================================
   DISCOUNT HERO — SAME VISUAL STYLE AS PRODUCT CARDS
   ========================================================= */
.hero-discount-slide .hero-discount-products-look {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    padding: clamp(1.5rem, 3vw, 3rem) 6rem;
}

.hero-discount-product-card {
    width: min(100%, 390px);
    max-width: 390px;
    margin: 0 auto;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 1.25rem 3.5rem rgba(0, 29, 80, .26);
}

.hero-discount-card-link {
    display: block;
    color: inherit;
    text-decoration: none !important;
}

.hero-discount-product-card .product-image {
    height: 15rem;
    min-height: 15rem;
}

.hero-discount-product-card .product-info h3 {
    color: var(--text);
    font-size: 1.05rem;
}

.hero-discount-product-card .brand,
.hero-discount-product-card .reviews,
.hero-discount-product-card .price small {
    color: var(--text-muted);
}

.hero-product-discount-badge {
    background: #dc2626;
}

.hero-product-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: .2rem;
}

.hero-product-old-price {
    color: #dc2626;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.hero-discount-product-card .hero-product-new-price {
    color: #15803d;
    font-size: 1.45rem;
}

@media (max-width: 700px) {
    .hero-discount-slide .hero-discount-products-look {
        padding: 3.4rem 3.8rem 4.8rem;
    }

    .hero-discount-product-card {
        width: min(100%, 330px);
        max-width: 330px;
    }

    .hero-discount-product-card .product-image {
        height: 11rem;
        min-height: 11rem;
    }

    }

/* Hero sequence: intro title first, then discounted products only */
.hero-intro-slide .hero-content > :not(h1) {
    display: none !important;
}

/* Center every discounted product exactly in the hero area */
.hero-discount-slide {
    align-items: center !important;
    justify-content: center !important;
}
.hero-discount-slide .hero-content.hero-discount-content.hero-discount-products-look {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 2rem 5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}
.hero-discount-product-card {
    flex: 0 0 auto !important;
    margin: 0 auto !important;
}
@media (max-width: 700px) {
    .hero-discount-slide .hero-content.hero-discount-content.hero-discount-products-look {
        padding: 2.5rem 3.5rem !important;
    }
}

/* FIX: discounted slides must occupy the full hero canvas, not the holder's document-flow box */
#discountHeroSlides.discount-hero-slides {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
}

#discountHeroSlides .hero-discount-slide,
#discountHeroSlides .hero-discount-slide.active {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#discountHeroSlides .hero-discount-slide.active {
    pointer-events: auto !important;
}

#discountHeroSlides .hero-discount-content.hero-discount-products-look {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    padding: 2rem 5rem !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

#discountHeroSlides .hero-discount-product-card {
    margin: 0 !important;
    flex: 0 0 auto !important;
}

@media (max-width: 700px) {
    #discountHeroSlides .hero-discount-content.hero-discount-products-look {
        padding: 2rem 3.5rem !important;
    }
}


/* =========================================================
   AUTH LEGAL LINKS / REGISTRATION TERMS
   ========================================================= */
.admin-auth-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 15px;
  font-size: 12.5px;
  color: #7b8794;
}

.admin-auth-legal-links a,
.admin-auth-terms-text a {
  color: #167c69;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 124, 105, .28);
  transition: color .2s ease, border-color .2s ease;
}

.admin-auth-legal-links a:hover,
.admin-auth-terms-text a:hover {
  color: #0f5f50;
  border-bottom-color: currentColor;
}

.admin-auth-terms-box {
  margin: 4px 0 16px;
  padding: 12px 13px;
  border: 1px solid rgba(20, 104, 88, .16);
  border-radius: 12px;
  background: rgba(22, 124, 105, .045);
}

.admin-auth-terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.admin-auth-terms-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-auth-checkmark {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid #aab7b4;
  border-radius: 6px;
  background: #fff;
  transition: all .2s ease;
}

.admin-auth-terms-check input:checked + .admin-auth-checkmark {
  background: #167c69;
  border-color: #167c69;
  box-shadow: 0 4px 12px rgba(22, 124, 105, .2);
}

.admin-auth-terms-check input:checked + .admin-auth-checkmark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.admin-auth-terms-check input:focus-visible + .admin-auth-checkmark {
  outline: 3px solid rgba(22, 124, 105, .18);
  outline-offset: 2px;
}

.admin-auth-terms-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: #64716f;
}

.admin-auth-submit:disabled {
  opacity: .52;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 560px) {
  .admin-auth-terms-box {
    padding: 11px;
    margin-bottom: 13px;
  }

  .admin-auth-legal-links {
    margin-top: 10px;
    font-size: 12px;
  }

  .admin-auth-terms-text {
    font-size: 12px;
  }
}

/* =========================================================
   AUTH MOBILE — KEEP DESKTOP TWO-COLUMN DESIGN
   ========================================================= */
@media (max-width: 48rem) {
  .auth-overlay {
    align-items: center;
    justify-content: center;
    padding: .5rem;
    overflow: auto;
  }

  .admin-auth-shell {
    width: 100%;
    min-height: min(39rem, calc(100vh - 1rem));
    max-height: calc(100vh - 1rem);
    height: auto;
    display: grid;
    grid-template-columns: 34% 66%;
    margin: auto;
    overflow: hidden;
    border-radius: 1rem;
  }

  .admin-auth-sidebar {
    display: flex;
    padding: 1.15rem .85rem;
  }

  .admin-auth-sidebar-content h2 {
    margin: .75rem 0 .45rem;
    font-size: 1.2rem;
    line-height: 1.12;
  }

  .admin-auth-sidebar-content > p {
    font-size: .65rem;
    line-height: 1.45;
  }

  .admin-auth-features {
    gap: .5rem;
    margin-top: .9rem;
  }

  .admin-auth-features div {
    font-size: .62rem;
    line-height: 1.35;
  }

  .admin-auth-sidebar-footer {
    gap: .4rem;
    flex-wrap: wrap;
    font-size: .5rem;
  }

  .admin-auth-mobile-brand {
    display: none !important;
  }

  .admin-auth-content {
    width: auto;
    min-height: 0;
    max-height: calc(100vh - 1rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.35rem 1.1rem;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .admin-auth-close {
    top: .6rem;
    right: .6rem;
    width: 1.9rem;
    height: 1.9rem;
    font-size: 1rem;
  }

  .admin-auth-heading {
    gap: .55rem;
    margin-bottom: .85rem;
    padding-right: 2rem;
  }

  .admin-auth-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .6rem;
    font-size: .9rem;
  }

  .admin-auth-heading h2 {
    font-size: 1.2rem;
  }

  .admin-auth-heading p {
    font-size: .6rem;
    line-height: 1.35;
  }

  .admin-auth-tabs {
    margin-bottom: .85rem;
  }

  .admin-auth-tab {
    padding: .55rem .3rem;
    font-size: .66rem;
  }

  .admin-auth-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 .5rem !important;
  }

  #privilegedCodeField {
    grid-column: 1 / -1;
  }

  .admin-auth-field {
    margin-bottom: .65rem;
  }

  .admin-auth-field label {
    margin-bottom: .28rem;
    font-size: .61rem;
  }

  .admin-auth-input-wrap {
    min-height: 2.35rem;
    border-radius: .5rem;
  }

  .admin-auth-input-wrap > span {
    width: 2.1rem;
    font-size: .72rem;
  }

  .admin-auth-input-wrap input,
  .admin-auth-input-wrap select,
  .auth-field input,
  .auth-field select,
  .security-code-field input {
    min-height: 2.2rem;
    padding: .5rem .4rem .5rem 0;
    font-size: .72rem !important;
    line-height: 1.2;
  }

  .admin-auth-options {
    margin: .15rem 0 .75rem;
    font-size: .58rem;
    gap: .4rem;
  }

  .admin-auth-submit {
    min-height: 2.5rem;
    font-size: .7rem;
  }

  .admin-auth-security {
    margin-top: .8rem;
    padding-top: .65rem;
    font-size: .52rem;
  }

  .admin-auth-legal-links {
    gap: 5px;
    margin: 8px 0 10px;
    font-size: .61rem;
  }

  .admin-auth-terms-box {
    margin: 2px 0 10px;
    padding: 8px 9px;
    border-radius: 9px;
  }

  .admin-auth-terms-check {
    gap: 7px;
  }

  .admin-auth-checkmark {
    flex-basis: 16px;
    width: 16px;
    height: 16px;
    border-radius: 5px;
  }

  .admin-auth-terms-check input:checked + .admin-auth-checkmark::after {
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
  }

  .admin-auth-terms-text {
    font-size: .61rem;
    line-height: 1.4;
  }
}

@media (max-width: 30rem) {
  .auth-overlay {
    padding: .35rem;
  }

  .admin-auth-shell {
    grid-template-columns: 31% 69%;
    min-height: calc(100vh - .7rem);
    max-height: calc(100vh - .7rem);
    border-radius: .8rem;
  }

  .admin-auth-sidebar {
    padding: .95rem .6rem;
  }

  .admin-auth-sidebar-content h2 {
    font-size: .98rem;
  }

  .admin-auth-sidebar-content > p {
    font-size: .55rem;
  }

  .admin-auth-features div {
    font-size: .54rem;
  }

  .admin-auth-content {
    max-height: calc(100vh - .7rem);
    padding: 1.05rem .72rem;
  }

  .admin-auth-heading {
    margin-bottom: .65rem;
  }

  .admin-auth-heading h2 {
    font-size: 1.02rem;
  }

  .admin-auth-heading p {
    font-size: .54rem;
  }

  .admin-auth-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 .35rem !important;
  }

  .admin-auth-input-wrap > span {
    width: 1.8rem;
    font-size: .64rem;
  }

  .admin-auth-input-wrap input,
  .admin-auth-input-wrap select,
  .auth-field input,
  .auth-field select,
  .security-code-field input {
    min-width: 0;
    font-size: .66rem !important;
  }

  .admin-auth-terms-text,
  .admin-auth-legal-links {
    font-size: .56rem;
  }
}


/* ===== Admin product visibility ===== */
.hl-hidden-product-badge {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  padding: 6px 10px; border-radius: 999px; background: #20252b; color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .01em;
}
.visibility-product-btn {
  border: 1px solid #d7dde3; background: #fff; color: #39434d;
  border-radius: 9px; padding: 8px 11px; cursor: pointer; font-weight: 700;
}
.visibility-product-btn.is-hidden { background: #20252b; color: #fff; border-color: #20252b; }

/* Product editor: up to 10 images with removable slots */
.product-images-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;width:100%}
.product-image-slot{position:relative;min-width:0;padding:10px;border:1px solid rgba(0,0,0,.12);border-radius:12px}
.product-image-slot .edit-image-preview{width:100%;height:120px;object-fit:contain;margin-top:8px}
.product-image-remove{position:absolute;z-index:3;top:5px;right:5px;width:28px;height:28px;border:0;border-radius:50%;font-size:22px;line-height:26px;cursor:pointer;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.25)}
@media(max-width:600px){.product-images-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-image-slot input[type=file]{max-width:100%;font-size:12px}}


/* =========================================================
   MOBILE PRODUCT CARD IMAGE SWIPE
========================================================= */
.hl-card-swipe-gallery {
    position: relative;
    flex: 0 0 100%;
    min-width: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.hl-card-swipe-track {
    display: flex;
    flex: 0 0 100%;
    min-width: 0;
    width: 100%;
    height: 100%;
    transform: translate3d(0,0,0);
    will-change: transform;
}
.hl-card-swipe-track .hl-card-swipe-image {
    flex: 0 0 100%;
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}
.hl-card-swipe-dots { display: none; }
.hl-card-gallery-nav{
    position:absolute;top:50%;z-index:5;transform:translateY(-50%);
    display:grid;place-items:center;width:34px;height:34px;padding:0;
    border:1px solid rgba(25,62,88,.12);border-radius:50%;
    background:rgba(255,255,255,.94);color:#173b59;font-size:25px;line-height:1;
    box-shadow:0 3px 12px rgba(20,45,66,.16);cursor:pointer;opacity:0;
    transition:opacity .18s ease,background .18s ease;
}
.hl-card-gallery-prev{left:8px}.hl-card-gallery-next{right:8px}
.hl-card-swipe-gallery:hover .hl-card-gallery-nav,
.hl-card-gallery-nav:focus-visible{opacity:1}
@media (hover:none){.hl-card-gallery-nav{display:none!important}}
@media (max-width: 768px) {
    .hl-card-swipe-gallery {
        touch-action: pan-y pinch-zoom;
    }
    .hl-card-swipe-dots {
        position: absolute;
        left: 50%;
        bottom: 7px;
        transform: translateX(-50%);
        display: flex;
        gap: 4px;
        z-index: 4;
        pointer-events: none;
    }
    .hl-card-swipe-dots i {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: rgba(0,0,0,.28);
    }
    .hl-card-swipe-dots i.is-active {
        width: 12px;
        border-radius: 999px;
        background: rgba(0,0,0,.72);
    }
}
/* HealthyLife reports analytics */
#dashboardReports{padding-bottom:32px}.hl-reports-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}.hl-reports-head h2{margin:0 0 5px;font-size:26px}.hl-reports-head p{margin:0;color:#718096}.hl-report-range{display:flex;gap:7px;flex-wrap:wrap}.hl-report-range button{border:1px solid #dce5ef;background:#fff;border-radius:10px;padding:9px 12px;cursor:pointer;font-weight:700;color:#41546b}.hl-report-range button.active{background:#1585e5;color:#fff;border-color:#1585e5}.hl-report-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:14px}.hl-report-kpis article{background:#fff;border:1px solid #e7edf4;border-radius:16px;padding:18px;box-shadow:0 5px 18px rgba(35,62,92,.05)}.hl-report-kpis small{display:block;color:#718096;margin-bottom:8px}.hl-report-kpis strong{display:block;font-size:25px;color:#18324c}.hl-report-kpis span{display:block;margin-top:7px;font-size:12px;color:#718096}.hl-report-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.hl-report-grid .dashboard-panel{min-width:0}.hl-report-wide{grid-column:span 2}.hl-report-title h3{margin:0 0 15px;color:#18324c}.hl-chart-wrap{position:relative;width:100%;height:300px}.hl-chart-small{height:250px}.hl-chart-wrap canvas{width:100%;height:100%;display:block}.hl-chart-legend{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px;font-size:12px;color:#52667b}.hl-chart-legend i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px;background:currentColor}.hl-top-products{display:grid;gap:10px}.hl-top-product-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}.hl-top-product-row div{min-width:0}.hl-top-product-row strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.hl-top-product-row .bar{height:7px;background:#edf3f8;border-radius:99px;margin-top:5px;overflow:hidden}.hl-top-product-row .bar span{display:block;height:100%;background:#1685e5;border-radius:99px}.hl-report-empty{padding:40px 10px;text-align:center;color:#8291a3}
@media(max-width:850px){.hl-reports-head{align-items:flex-start;flex-direction:column}.hl-report-kpis{grid-template-columns:1fr 1fr}.hl-report-grid{grid-template-columns:1fr}.hl-report-wide{grid-column:span 1}.hl-chart-wrap{height:260px}}
@media(max-width:520px){.hl-report-kpis{grid-template-columns:1fr}.hl-report-range{width:100%;display:grid;grid-template-columns:1fr 1fr}.hl-report-range button{width:100%}.hl-chart-wrap{height:230px}}

/* Reports chart point tooltip */
.hl-chart-tooltip{position:absolute;z-index:20;display:none;min-width:175px;max-width:220px;padding:10px 12px;border:1px solid #dfe8f1;border-radius:11px;background:rgba(255,255,255,.98);box-shadow:0 8px 24px rgba(24,50,76,.16);pointer-events:none;color:#18324c;font-size:12px;line-height:1.35}.hl-chart-tooltip.show{display:grid;gap:3px}.hl-chart-tooltip strong{font-size:12px}.hl-chart-tooltip span{color:#718096}.hl-chart-tooltip b{font-size:13px;color:#1685e5}

/* Reports: clickable translated top products */
.hl-top-product-link { color: inherit; text-decoration: none; cursor: pointer; }
.hl-top-product-link:hover, .hl-top-product-link:focus-visible { text-decoration: none; }
.hl-top-product-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }


/* =====================================================
   PRODUCT 3-STATE STATUS CONTROL
===================================================== */
.hl-disabled-product-badge{
    position:absolute;top:10px;right:10px;z-index:4;padding:6px 9px;border-radius:999px;
    background:#9f1239;color:#fff;font-size:11px;font-weight:800;letter-spacing:.01em;
    box-shadow:0 4px 12px rgba(159,18,57,.2)
}
.hl-product-status-control{display:grid;gap:5px;min-width:150px}
.hl-product-status-control>span{font-size:11px;font-weight:800;color:#60758b}
.hl-product-status-select{width:100%;min-height:39px;padding:0 34px 0 11px;border:1px solid #d7e2ec;border-radius:9px;background:#fff;color:#18324c;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.hl-product-status-select.status-visible{border-color:#9bd7b1;background:#f0fff5;color:#146c38}
.hl-product-status-select.status-hidden{border-color:#c7d1dc;background:#f5f7fa;color:#374151}
.hl-product-status-select.status-disabled{border-color:#fecdd3;background:#fff1f2;color:#9f1239}
@media(max-width:700px){.hl-product-status-control{min-width:132px}.hl-product-status-select{min-height:42px}}
