/* =========================================================
   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,
select,
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);
}


/* =========================================================
   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: 62.5rem;

    display: grid;
    grid-template-columns:
        1.7fr
        1fr
        1fr
        9.375rem;

    gap: .375rem;

    padding: .375rem;

    border-radius: .875rem;

    background: var(--yellow);

    box-shadow:
        0 .875rem 2.2rem rgba(0,0,0,.18);
}

.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:
        transform var(--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%)
        scale(1.05);

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

.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 {
    max-width: var(--content-width);

    margin: 0 auto;

    display: grid;

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

    gap: 1.875rem;
}

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;
}

/* ---------------------------------------------------------
   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;
}
.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);
}

#ordersOrders {
    font-weight: bold;
    position: relative;
    top: -0.5em;
    font-size: 1.5em;
}

#customersCustomers {
    font-weight: bold;
    position: relative;
    top: -0.5em;
    font-size: 1.5em;
}

#managersManagers {
    font-weight: bold;
    position: relative;
    top: -0.5em;
    font-size: 1.5em;
}
/* =========================================================
   END
   ========================================================= */
