:root {
    --bg: #f6f7f8;
    --surface: #ffffff;
    --surface-soft: #fbfbfc;
    --text: #161616;
    --muted: #707070;
    --muted-strong: #3b3b3b;
    --line: #e5e7eb;
    --line-strong: #cfd4d8;
    --primary: #3fbbd5;
    --primary-dark: #229db8;
    --primary-soft: #eaf9fc;
    --danger: #b42318;
    --success: #067647;
    --warning: #b45309;
    --shadow: 0 12px 28px rgba(22, 22, 22, 0.07);
    --shadow-soft: 0 6px 16px rgba(22, 22, 22, 0.05);
    --public-bg:
        radial-gradient(circle at 14% 4%, rgba(63, 187, 213, 0.18) 0 7%, transparent 25%),
        radial-gradient(circle at 88% 0%, rgba(148, 122, 255, 0.11) 0 8%, transparent 30%),
        radial-gradient(circle at 86% 78%, rgba(63, 187, 213, 0.09) 0 10%, transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #fbfdff 42%, #f8fbfc 100%);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--public-bg);
    background-attachment: fixed;
}

body {
    margin: 0;
    padding: 0 0 78px;
    background: var(--public-bg);
    background-attachment: fixed;
    color: var(--text);
    font-family: "Product Sans", "Google Sans", "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.45;
}

a {
    color: inherit;
    text-decoration: none;
}

@keyframes pop-in {
    0% {
        opacity: 0;
        transform: scale(0.96);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slide-soft {
    0% {
        opacity: 0;
        transform: translateY(-6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

button,
input,
select,
textarea {
    font: inherit;
}

input,
select,
textarea,
button {
    width: 100%;
    min-height: 44px;
    border-radius: 8px;
}

input,
select,
textarea {
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(63, 187, 213, 0.18);
}

button {
    cursor: pointer;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(229, 231, 235, 0.72);
    box-shadow: 0 10px 30px rgba(22, 22, 22, 0.045);
    backdrop-filter: blur(20px) saturate(1.18);
}

body:not(.admin-body) .topbar {
    top: 8px;
    width: calc(100% - 16px);
    margin: 8px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 24px 60px rgba(22, 22, 22, 0.09);
    backdrop-filter: blur(24px) saturate(1.22);
}

.topbar-search {
    order: 3;
    flex: 1 0 100%;
    display: flex;
    gap: 6px;
    min-width: 0;
}

.topbar-search label {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.topbar-search label span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.topbar-search input {
    width: 100%;
    min-height: 42px;
    padding: 9px 14px 9px 16px;
    border: 1px solid rgba(63, 187, 213, 0.42);
    border-radius: 999px;
    background: linear-gradient(135deg, #40bfd9, #35b5d0);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 12px 30px rgba(63, 187, 213, 0.2);
}

.topbar-search input::placeholder {
    color: rgba(255, 255, 255, 0.92);
}

.topbar-search input:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(63, 187, 213, 0.18), 0 12px 28px rgba(63, 187, 213, 0.22);
}

.topbar-search button {
    display: grid;
    place-items: center;
    width: 42px;
    flex: 0 0 42px;
    min-height: 42px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, background 0.18s ease;
}

.topbar-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    place-items: center;
    width: auto;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(63, 187, 213, 0.42);
    border-radius: 999px;
    background: #fff;
    color: var(--muted-strong);
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.topbar-search-clear span {
    font-size: 13px;
    font-weight: 500;
}

.topbar-search-clear:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.topbar-search button:hover {
    background: #000;
    transform: translateY(-1px);
}

.topbar-search svg,
.topbar-search-clear svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.brand {
    min-width: 0;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
    min-height: 38px;
}

.brand-logo img {
    display: block;
    width: auto;
    height: 32px;
    max-width: 156px;
    object-fit: contain;
}

.admin-brand-logo {
    gap: 10px;
}

.admin-brand-logo .admin-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(63, 187, 213, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 10px 26px rgba(22, 22, 22, 0.06);
    backdrop-filter: blur(14px);
}

.cart-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    min-height: 38px;
    padding: 7px 10px 7px 12px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 10px 26px rgba(22, 22, 22, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.desktop-nav {
    display: none;
}

.desktop-nav a {
    color: var(--muted-strong);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.18s ease, transform 0.18s ease;
}

.desktop-nav a:hover {
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.cart-pill:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.cart-pill strong {
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
}

.cart-pill svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.page {
    width: min(1160px, 100%);
    margin: 12px auto 0;
    padding: 16px 14px;
}

body:not(.admin-body) .page {
    width: min(1180px, calc(100% - 16px));
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.48);
    box-shadow: 0 28px 78px rgba(22, 22, 22, 0.085);
    backdrop-filter: blur(20px) saturate(1.12);
}

.hero-compact,
.section-title {
    padding: 10px 0 16px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    width: auto;
    min-height: 36px;
    margin: 2px 0 8px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-soft);
}

.back-link:hover {
    border-color: var(--primary);
    color: var(--text);
}

.hero-compact h1,
.section-title h1,
.product-detail h1,
.success-box h1 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
}

.hero-compact p,
.section-title p,
.category,
.cart-item p {
    margin: 0;
    color: var(--muted);
}

.banner-slider {
    margin: 18px -6px 18px;
}

.banner-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 6px 4px;
    scroll-snap-type: x mandatory;
}

.banner-slider.single .banner-track {
    justify-content: center;
}

.banner-slide {
    position: relative;
    flex: 0 0 min(100%, calc(100vw - 28px));
    overflow: hidden;
    aspect-ratio: 21 / 8;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(63, 187, 213, 0.14), rgba(255, 255, 255, 0)),
        #111;
    box-shadow: 0 26px 70px rgba(22, 22, 22, 0.12);
    scroll-snap-align: start;
    isolation: isolate;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.banner-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(22, 22, 22, 0.22), rgba(22, 22, 22, 0) 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 34%);
}

.banner-slide:hover {
    border-color: var(--primary);
    box-shadow: 0 22px 54px rgba(22, 22, 22, 0.14);
    transform: translateY(-2px);
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-copy {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    display: grid;
    gap: 2px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(22, 22, 22, 0.72);
    color: #fff;
    backdrop-filter: blur(8px);
}

.banner-copy strong {
    overflow: hidden;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.banner-copy small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-controls {
    display: grid;
    gap: 10px;
}

.search-panel,
.checkout-form,
.admin-panel,
.login-card,
.success-box {
    display: grid;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 18px;
    box-shadow: 0 16px 38px rgba(22, 22, 22, 0.06);
}

.admin-body .admin-panel,
.admin-body .login-card,
.admin-body .success-box {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 42px rgba(22, 22, 22, 0.1);
    backdrop-filter: blur(12px) saturate(1.08);
}

.search-panel {
    position: sticky;
    top: 61px;
    z-index: 7;
    grid-template-columns: 1fr auto;
    align-items: end;
    padding: 10px;
    border-color: rgba(63, 187, 213, 0.22);
    box-shadow: 0 18px 44px rgba(22, 22, 22, 0.08);
    backdrop-filter: blur(18px) saturate(1.12);
}

.search-panel label,
.filter-panel label,
.checkout-form label,
.admin-panel label,
.login-card label {
    display: grid;
    gap: 6px;
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 500;
}

.search-panel input {
    min-height: 46px;
    border-color: var(--line-strong);
    font-size: 15px;
}

.search-panel .primary-button {
    width: auto;
    min-width: 92px;
}

.filter-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 80;
    display: grid;
    width: min(360px, calc(100vw - 28px));
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: end;
    padding: 10px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 54px rgba(22, 22, 22, 0.13);
    animation: slide-soft 0.18s ease both;
}

.filter-panel label {
    gap: 4px;
}

.filter-panel select,
.filter-panel .filter-button {
    min-height: 38px;
    padding: 7px 9px;
    font-size: 13px;
}

.filter-panel label span {
    font-size: 11px;
}

.primary-button,
.add-form button,
.detail-add button,
.filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 13px;
    background: var(--text);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 8px 18px rgba(22, 22, 22, 0.12);
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.primary-button:hover,
.add-form button:hover,
.detail-add button:hover,
.filter-button:hover {
    background: #000;
    box-shadow: 0 10px 22px rgba(22, 22, 22, 0.16);
}

.filter-drawer {
    display: grid;
    gap: 8px;
    position: relative;
}

.filter-drawer summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: max-content;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    list-style: none;
    box-shadow: 0 10px 24px rgba(22, 22, 22, 0.055);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.filter-drawer summary:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.filter-drawer summary::-webkit-details-marker {
    display: none;
}

.filter-drawer summary svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.category-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin: 12px -14px 4px;
    padding: 0 14px 8px;
    scroll-snap-type: x proximity;
}

.category-card {
    flex: 0 0 92px;
    display: grid;
    gap: 7px;
    scroll-snap-align: start;
    padding: 8px;
    border: 1px solid rgba(229, 231, 235, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    box-shadow: 0 16px 34px rgba(22, 22, 22, 0.065);
    backdrop-filter: blur(16px) saturate(1.08);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.category-card.active {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(63, 187, 213, 0.13), 0 16px 32px rgba(63, 187, 213, 0.12);
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.category-cover {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1.18;
    overflow: hidden;
    border-radius: 11px;
    background: linear-gradient(180deg, #fff 0%, #f7f9fb 100%);
}

.category-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.category-cover span {
    color: var(--primary-dark);
    font-size: 22px;
    font-weight: 500;
}

.category-card strong {
    overflow: hidden;
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-category-menu {
    position: relative;
    z-index: 8;
    width: 100%;
    margin: 0 0 14px;
}

.category-menu-inner {
    position: relative;
    width: 100%;
}

.category-menu-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: min(280px, 100%);
    min-height: 44px;
    padding: 0 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #40bfd9, #35b5d0);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.category-menu-trigger svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.category-menu-trigger svg:last-child {
    width: 16px;
    height: 16px;
}

.category-menu-dropdown {
    position: absolute;
    top: 44px;
    left: 0;
    width: min(820px, calc(100vw - 28px));
    min-height: 360px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 58px rgba(22, 22, 22, 0.13);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.985);
    transform-origin: top left;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.catalog-category-menu.open .category-menu-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.category-menu-list {
    position: relative;
    width: 260px;
    min-height: 360px;
    padding: 8px 0;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
}

.category-menu-item {
    position: static;
}

.category-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    padding: 0 14px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.18s ease, color 0.18s ease;
}

.category-menu-link::after {
    content: "›";
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
}

.category-menu-link small {
    margin-left: auto;
    color: var(--muted);
    font-size: 11px;
}

.category-menu-item.active .category-menu-link,
.category-menu-item:hover .category-menu-link,
.category-menu-item:focus-within .category-menu-link {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.category-menu-panel {
    position: absolute;
    top: 0;
    left: 260px;
    display: none;
    width: min(560px, calc(100vw - 288px));
    min-height: 360px;
    max-height: 520px;
    overflow-y: auto;
    padding: 20px;
    background: #fff;
}

.category-menu-item.active-hover .category-menu-panel,
.category-menu-item:focus-within .category-menu-panel {
    display: block;
}

.category-menu-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.category-menu-panel-head strong {
    font-size: 15px;
    font-weight: 600;
}

.category-menu-panel-head a {
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 600;
}

.category-menu-branches {
    columns: 2 180px;
    column-gap: 18px;
}

.category-menu-branches a {
    break-inside: avoid;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.72);
    color: var(--muted-strong);
    font-size: 13px;
    line-height: 1.25;
}

.category-menu-branches a:hover {
    color: var(--primary-dark);
}

.category-menu-branches small {
    color: var(--muted);
    font-size: 11px;
}

.category-menu-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 719px) {
    .catalog-resultbar:has(.filter-drawer[open]) {
        z-index: 140;
    }

    .filter-drawer[open] .filter-panel {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        bottom: auto;
        left: auto;
        z-index: 160;
        width: min(320px, calc(100vw - 44px));
        max-width: calc(100vw - 44px);
        padding: 10px;
        border-radius: 22px;
        box-shadow: 0 22px 54px rgba(22, 22, 22, 0.16);
    }

    .category-menu-trigger {
        width: 100%;
    }

    .category-menu-dropdown {
        position: static;
        width: 100%;
        min-height: 0;
        max-height: 0;
        margin-top: 0;
        overflow-y: auto;
        transform: translateY(-6px);
        transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, margin-top 0.2s ease, border-width 0.2s ease;
    }

    .catalog-category-menu:not(.open) .category-menu-dropdown {
        border-width: 0;
    }

    .catalog-category-menu.open .category-menu-dropdown {
        max-height: 72vh;
        margin-top: 8px;
        border-width: 1px;
        transform: translateY(0);
    }

    .category-menu-list {
        width: 100%;
        min-height: 0;
        border-right: 0;
    }

    .category-menu-link::after {
        display: none;
    }

    .category-menu-panel,
    .category-menu-item.active-hover .category-menu-panel {
        position: static;
        display: none;
        width: 100%;
        min-height: 0;
        max-height: none;
        padding: 10px 14px 14px;
        border-top: 1px solid var(--line);
        background: var(--surface-soft);
    }

    .category-menu-item.active-hover .category-menu-panel,
    .category-menu-item:focus-within .category-menu-panel {
        display: block;
    }

    .category-menu-branches {
        columns: 1;
    }
}

.category-map {
    margin: 12px 0 10px;
}

.top-category-map {
    width: 100vw;
    margin: -14px 0 14px calc(50% - 50vw);
    padding: 10px 14px 12px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(22, 22, 22, 0.04);
}

.top-category-map .section-row-title {
    width: min(1160px, 100%);
    margin: 0 auto 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
}

.top-category-map .section-row-title span {
    color: rgba(255, 255, 255, 0.9);
}

.top-category-map .category-map-grid {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.category-map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.category-map-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.category-map-card.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(63, 187, 213, 0.14);
}

.category-map-card:hover {
    border-color: rgba(63, 187, 213, 0.45);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.category-map-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
    color: var(--text);
}

.category-map-title span {
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-map-title small,
.category-map-branches small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.category-map-branches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.category-map-branches a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 6px 8px;
    border: 1px solid rgba(209, 213, 219, 0.8);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted-strong);
    font-size: 12px;
    line-height: 1;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.category-map-branches a:hover {
    border-color: var(--primary);
    background: rgba(63, 187, 213, 0.1);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.category-map-branches .category-map-more {
    color: var(--primary-dark);
    font-weight: 600;
}

.category-map-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.subcategory-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin: 2px -14px 10px;
    padding: 6px 14px 10px;
    scroll-snap-type: x proximity;
}

.subcategory-chip {
    flex: 0 0 72px;
    display: grid;
    gap: 6px;
    justify-items: center;
    scroll-snap-align: start;
    color: var(--muted-strong);
    transition: color 0.18s ease, transform 0.18s ease;
}

.subcategory-chip span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: 500;
    box-shadow: var(--shadow-soft);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.subcategory-chip img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px;
}

.subcategory-chip strong {
    display: -webkit-box;
    overflow: hidden;
    max-width: 78px;
    min-height: 28px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.subcategory-chip.active {
    color: var(--text);
}

.subcategory-chip.active span {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(63, 187, 213, 0.16);
}

.subcategory-chip:hover {
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.section-row-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.section-row-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.section-row-title span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.featured-strip {
    margin-top: 12px;
}

.featured-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-right: -14px;
    margin-left: -14px;
    padding: 0 14px 4px;
    scroll-snap-type: x proximity;
}

.featured-card {
    flex: 0 0 min(250px, 78vw);
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(63, 187, 213, 0.24);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 44px rgba(22, 22, 22, 0.075);
    scroll-snap-align: start;
    animation: pop-in 0.22s ease both;
}

.featured-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    background: var(--surface-soft);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.featured-info {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.featured-info h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.24;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.featured-info strong {
    font-size: 13px;
    font-weight: 500;
}

.featured-add button {
    width: 100%;
    min-height: 32px;
    border: 0;
    border-radius: 8px;
    background: var(--text);
    color: #fff;
    font-weight: 500;
    transition: transform 0.18s ease, background 0.18s ease;
}

.featured-add button:hover {
    background: #000;
    transform: translateY(-1px);
}

.primary-button:active,
.add-form button:active,
.detail-add button:active,
.filter-button:active {
    transform: translateY(1px);
}

.filter-button {
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    box-shadow: 0 10px 24px rgba(22, 22, 22, 0.055);
    font-size: 13px;
}

.filter-button:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--text);
    box-shadow: none;
}

.full {
    width: 100%;
}

.result-count {
    display: inline-flex;
    width: auto;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.catalog-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.active-search-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    padding: 7px 10px;
    border: 1px solid rgba(63, 187, 213, 0.55);
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(63, 187, 213, 0.18);
}

.active-search-filter strong {
    font-weight: 600;
}

.active-search-filter em {
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.42);
    color: #fff;
    font-style: normal;
    font-weight: 600;
}

.active-search-filter:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.catalog-resultbar {
    position: relative;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 12px 0 10px;
}

body:not(.admin-body) .catalog-resultbar {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.52);
    box-shadow: 0 14px 34px rgba(22, 22, 22, 0.05);
    backdrop-filter: blur(18px) saturate(1.1);
}

.filter-controls {
    flex: 0 0 auto;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    overflow-x: auto;
    margin: 16px 0 4px;
    padding: 4px 0 2px;
}

.pagination a,
.pagination span,
.pagination strong {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.pagination a {
    color: var(--primary);
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.pagination a:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.pagination strong {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.product-grid {
    display: grid;
    gap: 12px;
}

.product-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.product-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 11px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    box-shadow: 0 20px 48px rgba(22, 22, 22, 0.075);
    animation: pop-in 0.2s ease both;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.product-card:hover {
    border-color: rgba(63, 187, 213, 0.34);
    box-shadow: 0 26px 58px rgba(22, 22, 22, 0.1);
}

.product-grid-compact .product-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 9px;
}

.product-grid-compact .product-info {
    gap: 5px;
}

.product-grid-compact .product-info h2 {
    display: -webkit-box;
    min-height: 36px;
    overflow: hidden;
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-grid-compact .sku,
.product-grid-compact .category,
.product-grid-compact .price-row span {
    font-size: 11px;
}

.product-grid-compact .category {
    display: none;
}

.product-grid-compact .price-row {
    display: grid;
    gap: 3px;
}

.product-grid-compact .price-row strong {
    font-size: 13px;
}

.product-grid-compact .add-form {
    grid-template-columns: 52px 1fr;
    gap: 6px;
}

.product-grid-compact .add-form input,
.product-grid-compact .add-form button {
    min-height: 38px;
    padding: 6px 8px;
    font-size: 13px;
}

.product-image,
.detail-image {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid #eef1f4;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #f8fafb 100%);
}

.product-image img,
.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 4px;
}

.image-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.product-info {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.sku {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.favorite-form {
    margin: 0;
}

.favorite-button {
    display: grid;
    place-items: center;
    width: 34px;
    min-height: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    box-shadow: 0 8px 20px rgba(22, 22, 22, 0.045);
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.favorite-button:hover {
    transform: scale(1.07);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.favorite-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.favorite-button.active {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-dark);
    animation: pop-in 0.2s ease both;
}

.favorite-button.active svg {
    fill: currentColor;
}

.detail-favorite-form {
    width: max-content;
}

.detail-favorite-button {
    display: inline-flex;
    gap: 8px;
    width: auto;
    height: auto;
    min-height: 38px;
    padding: 7px 11px;
}

.detail-favorite-button span {
    font-size: 13px;
}

.product-info h2,
.cart-item h2,
.admin-panel h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.24;
}

.product-info h2 a:hover {
    color: var(--primary-dark);
}

.price-row {
    display: grid;
    gap: 4px;
}

.price-row strong,
.detail-price {
    color: var(--text);
    font-weight: 600;
    line-height: 1.16;
}

.price-row strong {
    font-size: 15px;
}

.admin-profit-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 4px 8px;
    border: 1px solid rgba(63, 187, 213, 0.38);
    border-radius: 999px;
    background: rgba(63, 187, 213, 0.12);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.admin-profit-badge.negative {
    border-color: #fecdca;
    background: #fff7f7;
    color: var(--danger);
}

.admin-profit-badge.muted {
    border-color: var(--line);
    background: #fff;
    color: var(--muted);
}

.stock-ok,
.stock-out {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.stock-ok {
    background: #ecfdf3;
    color: var(--success);
}

.stock-out {
    background: #fff7ed;
    color: var(--warning);
}

.add-form {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 8px;
    align-items: end;
}

.add-form input {
    text-align: center;
    font-weight: 500;
}

.product-detail {
    display: grid;
    gap: 16px;
}

.detail-body {
    display: grid;
    gap: 10px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.detail-price {
    font-size: 24px;
}

.description {
    margin: 6px 0 0;
}

.detail-add {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 10px;
}

.empty-state {
    padding: 18px;
    background: #fff;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
}

.empty-state p {
    margin: 0;
}

.empty-filter {
    margin: 12px auto 0;
}

.cart-list {
    display: grid;
    gap: 10px;
}

.cart-item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.cart-item-image {
    display: block;
    width: 74px;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    background: linear-gradient(180deg, #fff 0%, #f4f6f8 100%);
}

.cart-item-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.cart-item-main {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.cart-item h2 {
    font-size: 14px;
}

.cart-item p {
    font-size: 13px;
}

.cart-item-main strong {
    font-size: 14px;
}

.cart-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 72px 56px 1fr;
    gap: 8px;
}

.ghost-button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--danger);
    font-weight: 500;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.ghost-button:hover {
    border-color: var(--danger);
    background: #fff7f7;
    transform: translateY(-1px);
}

.ghost-link {
    display: inline-flex;
    justify-content: center;
    color: var(--primary);
    font-weight: 500;
}

.checkout-bar {
    position: sticky;
    bottom: 70px;
    z-index: 8;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    align-items: center;
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.checkout-bar .primary-button,
.checkout-bar button {
    grid-column: 1 / -1;
}

.checkout-bar .continue-shopping {
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 36px;
}

.checkout-bar.static {
    position: static;
}

.alert {
    padding: 10px 12px;
    border: 1px solid #fecdca;
    border-radius: 8px;
    background: #fff1f3;
    color: var(--danger);
}

.flash-message {
    position: sticky;
    top: 74px;
    z-index: 8;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid rgba(63, 187, 213, 0.38);
    border-radius: 8px;
    background: #f0fbfd;
    color: var(--text);
    box-shadow: var(--shadow-soft);
    font-size: 14px;
    animation: slide-soft 0.24s ease both;
}

.alert p {
    margin: 0;
}

.form-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.success-box {
    margin-top: 16px;
    text-align: center;
}

.success-box.compact {
    text-align: left;
}

.profile-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.profile-title .ghost-link {
    flex: 0 0 auto;
}

.auth-form {
    max-width: 520px;
}

.order-list {
    display: grid;
    gap: 10px;
}

.favorite-list {
    display: grid;
    gap: 10px;
}

.favorite-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    animation: pop-in 0.2s ease both;
}

.favorite-item-image {
    display: block;
    width: 72px;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    background: #fff;
}

.favorite-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.favorite-item h3,
.favorite-item p {
    margin: 0;
}

.favorite-item h3 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
}

.favorite-item p {
    margin-top: 4px;
    font-size: 13px;
}

.favorite-item form {
    grid-column: 1 / -1;
}

.order-card {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.order-card div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.order-card strong,
.order-card p {
    margin: 0;
    font-weight: 500;
}

.order-card span {
    color: var(--muted);
    font-size: 13px;
}

.bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 60px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 22px 58px rgba(22, 22, 22, 0.14);
    backdrop-filter: blur(22px) saturate(1.16);
    overflow: hidden;
}

.scroll-top-button {
    position: fixed;
    right: 16px;
    bottom: 82px;
    z-index: 19;
    display: grid;
    place-items: center;
    width: 42px;
    min-height: 42px;
    height: 42px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    box-shadow: 0 14px 34px rgba(22, 22, 22, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    backdrop-filter: blur(12px);
}

.floating-whatsapp-button {
    position: fixed;
    right: 16px;
    bottom: 134px;
    z-index: 19;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(18, 140, 126, 0.35);
    border-radius: 999px;
    background: #128c7e;
    color: #fff;
    box-shadow: 0 16px 36px rgba(18, 140, 126, 0.18);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.floating-whatsapp-button:hover {
    background: #0f756a;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(18, 140, 126, 0.24);
}

.floating-whatsapp-button svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.scroll-top-button.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-button:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.scroll-top-button.visible:hover {
    transform: translateY(-2px);
}

.scroll-top-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-content: center;
    place-items: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.bottom-nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bottom-nav span {
    line-height: 1;
}

.bottom-nav a:hover {
    background: var(--surface-soft);
    color: var(--primary-dark);
}

.bottom-nav a:active {
    transform: scale(0.96);
}

.login-screen {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 16px;
}

.access-screen {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(63, 187, 213, 0.12) 0, rgba(255, 255, 255, 0) 260px),
        #fff;
}

.access-card {
    display: grid;
    gap: 16px;
    width: min(420px, 100%);
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    text-align: center;
}

.access-card img {
    width: min(220px, 80%);
    height: auto;
    margin: 0 auto 4px;
}

.access-card h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
}

.access-card p {
    margin: 0;
    color: var(--muted-strong);
    line-height: 1.5;
}

.maintenance-card {
    gap: 14px;
}

.maintenance-card h1 {
    color: var(--ink);
}

.access-card form {
    display: grid;
    gap: 12px;
    text-align: left;
}

.access-card label {
    display: grid;
    gap: 6px;
    color: var(--muted-strong);
    font-size: 13px;
}

.check-row {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px !important;
}

.check-row input {
    width: 18px;
    min-height: 18px;
    height: 18px;
}

.admin-body {
    padding-top: 24px;
    background:
        radial-gradient(circle at 15% 10%, rgba(63, 187, 213, 0.5) 0 10%, transparent 26%),
        radial-gradient(circle at 86% 8%, rgba(132, 92, 255, 0.34) 0 9%, transparent 28%),
        radial-gradient(circle at 78% 88%, rgba(255, 122, 184, 0.28) 0 8%, transparent 30%),
        radial-gradient(circle at 18% 92%, rgba(123, 220, 190, 0.34) 0 10%, transparent 28%),
        linear-gradient(135deg, #f8fbff 0%, #eef7fb 38%, #f7f4ff 100%);
    background-attachment: fixed;
}

.admin-topbar {
    margin: 0 auto;
    width: min(1180px, calc(100% - 20px));
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 0 24px 70px rgba(22, 22, 22, 0.1);
    backdrop-filter: blur(22px) saturate(1.25);
}

.admin-body .page {
    position: relative;
    width: min(1180px, calc(100% - 20px));
    margin-top: 12px;
    padding: 28px 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.48);
    box-shadow: 0 34px 90px rgba(22, 22, 22, 0.16);
    backdrop-filter: blur(28px) saturate(1.28);
}

.admin-body .page::after {
    content: "MundoTec Admin";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(22, 22, 22, 0.52);
    font-size: 12px;
    font-weight: 600;
}

.login-card {
    width: min(420px, 100%);
}

.login-card h1 {
    margin: 0;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    position: sticky;
    top: 12px;
    z-index: 9;
    margin: 0 0 18px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.44);
    box-shadow: 0 16px 38px rgba(22, 22, 22, 0.08);
    backdrop-filter: blur(22px) saturate(1.2);
}

.cart-toast {
    position: fixed;
    right: 14px;
    bottom: 88px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(420px, calc(100vw - 28px));
    padding: 10px 10px 10px 14px;
    border: 1px solid rgba(63, 187, 213, 0.38);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    box-shadow: 0 18px 40px rgba(22, 22, 22, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(14px);
}

.cart-toast.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.cart-toast span {
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
}

.cart-toast a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    width: auto;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.18s ease, transform 0.18s ease;
}

.cart-toast a:hover {
    background: #000;
    transform: translateY(-1px);
}

.admin-tabs a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.admin-tabs a:hover,
.admin-tabs a.active {
    border-color: rgba(255, 255, 255, 0.74);
    background: rgba(255, 255, 255, 0.86);
    color: #111827;
    box-shadow: 0 12px 28px rgba(22, 22, 22, 0.08);
    transform: translateY(-1px);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.stat-grid-wide {
    grid-template-columns: repeat(2, 1fr);
}

.stat-grid article {
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    animation: pop-in 0.22s ease both;
}

.admin-body .stat-grid article {
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 36px rgba(22, 22, 22, 0.08);
    backdrop-filter: blur(10px) saturate(1.05);
}

.stat-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.stat-grid strong {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1;
}

.dashboard-hero {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.dashboard-hero-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.admin-body .dashboard-hero-card {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 54px rgba(22, 22, 22, 0.11);
    backdrop-filter: blur(10px) saturate(1.06);
}

.dashboard-hero-card::after {
    content: none;
}

.dashboard-hero-card.primary {
    border-color: rgba(63, 187, 213, 0.45);
    background: linear-gradient(135deg, #eaf9fc 0%, #fff 72%);
}

.admin-body .dashboard-hero-card.primary {
    border-color: rgba(63, 187, 213, 0.35);
    background:
        linear-gradient(135deg, rgba(63, 187, 213, 0.18) 0%, rgba(255, 255, 255, 0.94) 62%),
        #fff;
}

.dashboard-hero-card span,
.dashboard-hero-card small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.dashboard-hero-card strong {
    display: block;
    margin: 4px 0;
    color: var(--text);
    font-size: 34px;
    font-weight: 600;
    line-height: 1;
}

.dashboard-mini-stats {
    grid-template-columns: repeat(2, 1fr);
}

.provider-actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.provider-action-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.provider-action-card h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.provider-action-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.provider-action-card button {
    grid-column: 1 / -1;
}

.provider-action-card.primary {
    border-color: rgba(63, 187, 213, 0.45);
    background: linear-gradient(180deg, #f1fbfd 0%, #fff 100%);
    box-shadow: 0 12px 28px rgba(63, 187, 213, 0.14);
}

.provider-action-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 18px;
    font-weight: 600;
}

.provider-action-card.primary .provider-action-icon {
    background: var(--primary);
    color: #fff;
}

.provider-danger-zone {
    margin: -4px 0 12px;
    padding: 0;
}

.provider-danger-zone summary {
    width: max-content;
    padding: 6px 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.provider-danger-zone form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid #fecdca;
    border-radius: 8px;
    background: #fffafa;
}

.provider-danger-zone strong {
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
}

.provider-danger-zone p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.sync-progress-panel {
    display: grid;
    gap: 12px;
}

.sync-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.sync-progress-head strong {
    color: var(--primary);
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
}

.sync-progress-bar {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(63, 187, 213, 0.16);
    border: 1px solid rgba(63, 187, 213, 0.2);
}

.sync-progress-bar span {
    display: block;
    height: 100%;
    min-width: 2%;
    border-radius: inherit;
    background: var(--primary);
    transition: width 0.35s ease;
}

.sync-progress-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sync-progress-meta span {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: #fff;
    font-size: 12px;
}

.admin-panel {
    margin-bottom: 14px;
}

.danger-panel {
    border-color: rgba(220, 38, 38, 0.24);
}

.danger-panel .primary-button {
    background: #dc2626;
}

.danger-panel .primary-button:hover {
    background: #b91c1c;
}

.admin-panel h2 {
    padding-bottom: 4px;
}

.dashboard-grid {
    display: grid;
    gap: 12px;
}

.activity-chart {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.activity-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 92px;
    gap: 10px;
    align-items: center;
}

.activity-row strong {
    font-size: 12px;
    font-weight: 600;
}

.activity-row div {
    display: grid;
    gap: 3px;
}

.activity-row span {
    display: block;
    height: 7px;
    min-width: 2px;
    border-radius: 999px;
    background: var(--primary);
}

.activity-row span.product {
    background: var(--text);
}

.activity-row span.cart {
    background: var(--success);
}

.activity-row em {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    text-align: right;
}

.ranking-list,
.idea-list {
    display: grid;
    gap: 8px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.admin-body .ranking-item {
    border-color: rgba(229, 231, 235, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 24px rgba(22, 22, 22, 0.05);
}

.ranking-item:hover {
    border-color: rgba(63, 187, 213, 0.5);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.ranking-item span {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.ranking-item small {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.ranking-item strong {
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 32px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 500;
}

.admin-body .ranking-item strong {
    min-width: 42px;
    height: 36px;
    background: rgba(63, 187, 213, 0.16);
    box-shadow: inset 0 0 0 1px rgba(63, 187, 213, 0.16);
    font-weight: 700;
}

.table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 500;
    transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.table-action:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    min-width: 260px;
}

.order-actions form {
    margin: 0;
}

.order-actions select {
    width: 120px;
    min-height: 32px;
    padding: 5px 8px;
    font-size: 12px;
}

.danger-button {
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid #fecdca;
    border-radius: 8px;
    background: #fff7f7;
    color: var(--danger);
    font-size: 12px;
    font-weight: 500;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.danger-button:hover {
    border-color: var(--danger);
    background: #fff1f3;
    transform: translateY(-1px);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 500;
}

.status-completado {
    background: #ecfdf3;
    color: var(--success);
}

.status-en {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.status-cancelado {
    background: #fff1f3;
    color: var(--danger);
}

.order-management {
    grid-template-columns: 1fr;
}

.order-management form {
    display: grid;
    gap: 10px;
}

.detail-list,
.order-detail-list {
    display: grid;
    gap: 10px;
}

.detail-list p {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.detail-list span,
.order-detail-main small,
.order-detail-main span,
.order-detail-money span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.detail-list strong {
    font-weight: 500;
}

.order-detail-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.order-detail-image {
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    background: #fff;
}

.order-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.order-detail-main,
.order-detail-money {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.order-detail-main strong {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
}

.order-detail-money {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
}

.order-detail-money p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff;
}

.order-detail-money strong {
    font-weight: 500;
    text-align: right;
}

.whatsapp-button {
    background: #128c7e;
}

.whatsapp-button:hover {
    background: #0f756a;
}

.idea-list p {
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--muted-strong);
    font-size: 14px;
}

.idea-list strong {
    color: var(--text);
    font-weight: 500;
}

.featured-admin-list {
    display: grid;
    gap: 10px;
}

.featured-admin-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.featured-admin-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    background: #fff;
}

.featured-admin-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.featured-admin-item div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.featured-admin-item small,
.featured-admin-item span {
    color: var(--muted);
    font-size: 12px;
}

.featured-admin-item strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.featured-admin-item form {
    grid-column: 1 / -1;
}

.featured-admin-item button {
    width: 100%;
    min-height: 38px;
}

.banner-form,
.banner-edit {
    grid-template-columns: 1fr;
}

.banner-admin-list {
    display: grid;
    gap: 12px;
}

.banner-admin-item {
    display: grid;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.banner-admin-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 7;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    background: #fff;
}

.banner-admin-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-edit {
    display: grid;
    gap: 8px;
}

.banner-edit label span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
}

.scraper-form {
    grid-template-columns: 1fr;
}

.scraper-preview-list {
    display: grid;
    gap: 10px;
}

.scraper-preview-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.scraper-preview-image {
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.scraper-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.scraper-preview-item div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.scraper-preview-item small,
.scraper-preview-item span,
.scraper-preview-item a {
    color: var(--muted);
    font-size: 12px;
}

.scraper-preview-item strong {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
}

.scraper-preview-item a {
    color: var(--primary-dark);
    font-weight: 500;
}

.scraper-final-price {
    color: var(--text) !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.1;
}

.victoria-tree,
.victoria-product-list {
    display: grid;
    gap: 8px;
}

.victoria-tree-group {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.victoria-tree-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    background: #f7f9fa;
}

.victoria-tree-group summary strong {
    font-size: 14px;
    font-weight: 600;
}

.victoria-tree-group summary span {
    color: var(--muted);
    font-size: 12px;
}

.victoria-category-row,
.victoria-product-row {
    display: grid;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.victoria-category-row {
    grid-template-columns: minmax(0, 1fr);
    border-width: 0;
    border-top-width: 1px;
    border-radius: 0;
}

.victoria-map-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.victoria-map-form .mini-check {
    margin: 0;
}

.victoria-map-form button {
    min-height: 38px;
}

.victoria-category-row div,
.victoria-product-row div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.victoria-category-row strong,
.victoria-product-row strong {
    font-size: 14px;
    font-weight: 600;
}

.victoria-category-row span,
.victoria-category-row small,
.victoria-product-row span,
.victoria-product-row small {
    color: var(--muted);
    font-size: 12px;
}

.victoria-category-row small {
    color: var(--primary-dark);
    font-weight: 600;
}

.victoria-category-row a {
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
}

.victoria-category-row.depth-1 {
    padding-left: 22px;
}

.victoria-category-row.depth-2,
.victoria-category-row.depth-3,
.victoria-category-row.depth-4 {
    padding-left: 38px;
}

.victoria-product-row {
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
}

.victoria-product-row img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    background: #fff;
}

.victoria-import-form {
    grid-template-columns: 1fr;
}

.product-admin-filter {
    grid-template-columns: 1fr;
}

.product-admin-list {
    display: grid;
    gap: 10px;
}

.product-bulk-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fcfcfd;
}

.product-bulk-bar select,
.product-bulk-bar button {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 13px;
}

.product-admin-item {
    position: relative;
    display: grid;
    grid-template-columns: 28px 72px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.product-admin-item.blocked {
    border-color: #fecdca;
    background: #fff7f7;
}

.product-admin-check {
    display: grid;
    place-items: center;
}

.product-admin-check input {
    width: 18px;
    height: 18px;
}

.product-admin-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    background: #fff;
}

.product-admin-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.product-admin-item div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.product-admin-item small,
.product-admin-item span,
.product-admin-item em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.product-admin-item strong {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
}

.product-admin-item form {
    grid-column: 1 / -1;
}

.product-admin-name-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.product-admin-name-form input {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 13px;
}

.product-admin-item button {
    width: 100%;
}

.provider-tree {
    display: grid;
    gap: 8px;
}

.provider-tree-group {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.provider-tree-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    background: var(--surface-soft);
    cursor: pointer;
    list-style: none;
}

.provider-tree-group summary::-webkit-details-marker {
    display: none;
}

.provider-tree-group summary strong {
    font-size: 14px;
    font-weight: 500;
}

.provider-tree-group summary span {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
}

.provider-tree-group summary.ready {
    border-left: 3px solid var(--success);
    background: #f0fdf4;
}

.provider-status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.provider-status.ready {
    background: #dcfce7;
    color: #15803d;
}

.provider-category-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 8px 10px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.provider-category-row.child {
    padding-left: 22px;
    background: #fcfcfd;
}

.provider-category-row.blocked {
    background: #fff7f7;
}

.provider-category-row.ready {
    border-left: 3px solid var(--success);
    background: #f6fef9;
}

.provider-category-row.child.ready {
    background: #f6fef9;
}

.provider-category-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.provider-category-main strong {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    overflow: hidden;
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.provider-inline-check {
    display: inline-grid;
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
}

.provider-category-main span {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.provider-category-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    align-items: center;
    min-width: 0;
}

.provider-category-exclude {
    display: flex;
    justify-content: end;
}

.provider-category-exclude button {
    display: grid;
    place-items: center;
    width: 30px;
    min-height: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.provider-category-exclude button:hover {
    border-color: var(--danger);
    background: #fff7f7;
    color: var(--danger);
    transform: translateY(-1px);
}

.provider-category-row.blocked .provider-category-exclude button:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.provider-category-actions select,
.provider-category-actions input,
.provider-category-actions button {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 12px;
}

.provider-category-actions select {
    grid-column: 1 / -1;
}

.provider-category-actions input[name="cover_image"] {
    grid-column: 1 / -1;
}

.provider-category-actions button {
    grid-column: 1 / -1;
}

.provider-category-actions .provider-save-button {
    display: block;
    min-height: 38px;
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.provider-category-actions .provider-save-button:hover {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
}

.provider-branch-save-form {
    display: none;
}

.provider-branch-actions {
    position: sticky;
    bottom: 12px;
    z-index: 4;
    display: flex;
    justify-content: flex-end;
    padding: 10px 0 0;
}

.provider-branch-actions .provider-save-button {
    min-height: 40px;
    padding: 8px 18px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(63, 187, 213, 0.22);
}

.provider-branch-actions .provider-save-button:hover {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
}

.provider-category-import {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

.provider-category-import button {
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.provider-category-import button:hover:not(:disabled) {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.provider-category-import button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.provider-sync-progress {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid rgba(63, 187, 213, 0.35);
    border-radius: 12px;
    background: #f0fbfd;
}

.provider-sync-progress > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.provider-sync-progress span {
    color: var(--muted);
    font-size: 13px;
}

.provider-sync-progress strong {
    color: var(--primary);
    font-size: 28px;
}

.provider-sync-progress p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.provider-progress-bar {
    overflow: hidden;
    height: 12px;
    border-radius: 999px;
    background: rgba(63, 187, 213, 0.18);
}

.provider-progress-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
    transition: width 0.25s ease;
}

.provider-sync-progress form {
    display: flex;
    justify-content: flex-end;
}

.mini-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    color: var(--muted-strong);
    font-size: 12px;
}

.mini-check input {
    width: 16px;
    height: 16px;
    min-height: 16px;
}

.table-wrap {
    overflow-x: auto;
}

.admin-body .table-wrap table {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.admin-body .table-wrap th {
    border: 0;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.02em;
}

.admin-body .table-wrap td {
    border-top: 1px solid rgba(229, 231, 235, 0.9);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    background: rgba(255, 255, 255, 0.88);
}

.admin-body .table-wrap td:first-child {
    border-left: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 14px 0 0 14px;
}

.admin-body .table-wrap td:last-child {
    border-right: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 0 14px 14px 0;
}

.category-list {
    display: grid;
    gap: 10px;
}

.category-row,
.category-edit {
    display: grid;
    gap: 8px;
}

.category-row {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.category-edit label span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
}

.admin-hint {
    margin: -4px 0 2px;
    color: var(--muted);
    font-size: 13px;
}

.subcategory-margin-list {
    display: grid;
    gap: 8px;
}

.subcategory-margin-group {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.subcategory-margin-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

.subcategory-margin-group summary::-webkit-details-marker {
    display: none;
}

.subcategory-margin-group summary strong {
    font-size: 14px;
    font-weight: 500;
}

.subcategory-margin-group summary span {
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}

.subcategory-margin-table {
    display: grid;
    border-top: 1px solid var(--line);
}

.subcategory-margin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px 82px;
    gap: 8px;
    align-items: end;
    padding: 8px 10px;
    border-top: 1px solid var(--line);
}

.subcategory-rename-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 8px;
    align-items: end;
    padding: 10px;
    border-top: 1px solid var(--line);
    background: rgba(63, 187, 213, 0.035);
}

.subcategory-rename-row label {
    display: grid;
    gap: 3px;
}

.subcategory-rename-row span {
    color: var(--muted);
    font-size: 11px;
}

.subcategory-rename-row input,
.subcategory-rename-row button {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 12px;
}

.subcategory-rename-row + .subcategory-margin-row {
    border-top: 0;
}

.subcategory-margin-row:first-child {
    border-top: 0;
}

.subcategory-margin-row div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.subcategory-margin-row div strong {
    overflow: hidden;
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subcategory-margin-row div span,
.subcategory-margin-row label span {
    color: var(--muted);
    font-size: 11px;
}

.subcategory-margin-row label {
    display: grid;
    gap: 3px;
}

.subcategory-margin-row input,
.subcategory-margin-row button {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 12px;
}

.subcategory-margin-row button {
    grid-column: 1 / -1;
}

.subcategory-cover-random-form {
    display: flex;
    justify-content: flex-end;
    padding: 0 10px 8px;
    border-top: 0;
}

.subcategory-cover-random-form button {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
}

.subcategory-tier-grid {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(63, 187, 213, 0.22);
    border-radius: 8px;
    background: rgba(63, 187, 213, 0.06);
}

.subcategory-tier-grid > span {
    margin-bottom: 6px;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 600;
}

.subcategory-tier-table {
    display: grid;
    gap: 0;
    max-width: 460px;
}

.subcategory-tier-head,
.subcategory-tier-row {
    display: grid;
    grid-template-columns: 120px minmax(120px, 1fr);
    gap: 10px;
    align-items: center;
    padding: 6px 8px;
    border-top: 1px solid rgba(63, 187, 213, 0.16);
}

.subcategory-tier-head {
    padding-top: 0;
    border-top: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.subcategory-tier-row strong {
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 600;
}

.subcategory-tier-row input {
    width: 100%;
}

table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

th,
td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 14px;
}

th {
    color: var(--muted-strong);
    font-size: 12px;
    text-transform: uppercase;
}

@media (min-width: 720px) {
    body {
        padding-bottom: 0;
    }

    body:not(.admin-body) .topbar {
        top: 14px;
        width: min(1180px, calc(100% - 28px));
        margin-top: 14px;
        padding: 14px 22px;
        border-radius: 28px;
    }

    .bottom-nav {
        display: none;
    }

    .desktop-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 18px;
        margin-left: 0;
    }

    .topbar {
        flex-wrap: nowrap;
        gap: 18px;
        padding: 13px 24px;
    }

    .topbar-search {
        order: initial;
        flex: 1 1 520px;
        max-width: 640px;
        margin: 0 auto;
    }

    .topbar-search input {
        min-height: 44px;
        padding-left: 20px;
        font-size: 15px;
    }

    .page {
        padding: 24px;
    }

    body:not(.admin-body) .page {
        margin-top: 16px;
        padding: 28px;
        border-radius: 32px;
    }

    .top-category-map {
        margin-top: -24px;
        padding-right: max(24px, calc((100vw - 1160px) / 2 + 24px));
        padding-left: max(24px, calc((100vw - 1160px) / 2 + 24px));
    }

    .search-panel {
        top: 69px;
        grid-template-columns: 1fr auto;
        align-items: end;
    }

    .filter-panel {
        grid-template-columns: 1fr;
        width: min(300px, calc(100vw - 28px));
        max-width: calc(100vw - 28px);
    }

    .filter-panel label {
        width: 100%;
    }

    .filter-panel .filter-button {
        width: 100%;
        min-width: 0;
    }

    .category-strip {
        margin-right: 0;
        margin-left: 0;
        padding-right: 0;
        padding-left: 0;
    }

    .banner-slider {
        margin: 22px 0 22px;
    }

    .banner-track {
        padding-right: 0;
        padding-left: 0;
        justify-content: center;
    }

    .banner-slide {
        flex-basis: 100%;
        aspect-ratio: 21 / 6.8;
    }

    .hero-compact h1,
    .section-title h1 {
        font-size: 34px;
    }

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

    .product-grid-compact {
        grid-template-columns: repeat(5, 1fr);
    }

    .product-card {
        grid-template-columns: 1fr;
    }

    .product-card:hover {
        transform: translateY(-1px);
    }

    .product-detail {
        grid-template-columns: 420px 1fr;
        align-items: start;
    }

    .detail-body {
        padding: 20px;
    }

    .checkout-bar {
        bottom: 16px;
        grid-template-columns: 1fr auto auto;
    }

    .cart-toast {
        right: 24px;
        bottom: 24px;
    }

    .checkout-bar .primary-button,
    .checkout-bar button {
        grid-column: auto;
        width: auto;
    }

    .checkout-bar .continue-shopping {
        grid-column: auto;
    }

    .category-row {
        grid-template-columns: 1fr 120px;
        align-items: end;
    }

    .category-edit {
        grid-template-columns: 1fr 110px 130px minmax(160px, 1fr) 110px;
        align-items: end;
    }

    .featured-track {
        margin-right: 0;
        margin-left: 0;
        padding-right: 0;
        padding-left: 0;
    }

    .featured-card {
        flex-basis: 280px;
    }

    .featured-admin-item {
        grid-template-columns: 72px 1fr 120px;
    }

    .featured-admin-item form {
        grid-column: auto;
    }

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

    .banner-form .full,
    .banner-form .check-row {
        grid-column: 1 / -1;
    }

    .banner-admin-item {
        grid-template-columns: 240px 1fr auto;
        align-items: start;
    }

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

    .banner-edit button,
    .banner-edit .check-row {
        grid-column: 1 / -1;
    }

    .scraper-form {
        grid-template-columns: 1fr 180px;
        align-items: end;
    }

    .scraper-form .form-note,
    .scraper-form .full {
        grid-column: 1 / -1;
    }

    .scraper-preview-item {
        grid-template-columns: 86px 1fr;
    }

    .victoria-category-row {
        grid-template-columns: minmax(180px, 0.8fr) minmax(540px, 1fr) 44px;
        align-items: center;
    }

    .victoria-map-form {
        grid-template-columns: minmax(130px, 0.8fr) minmax(150px, 1fr) auto auto auto;
        align-items: center;
    }

    .provider-actions-grid {
        grid-template-columns: minmax(280px, 1.3fr) repeat(2, minmax(220px, 1fr));
        align-items: stretch;
    }

    .provider-action-card {
        grid-template-rows: auto 1fr auto;
    }

    .provider-action-card.primary {
        grid-row: span 2;
    }

    .victoria-import-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: end;
    }

    .victoria-import-form h2,
    .victoria-import-form .form-note,
    .victoria-import-form .full {
        grid-column: 1 / -1;
    }

    .product-admin-filter {
        grid-template-columns: 1fr 180px 150px auto;
        align-items: end;
    }

    .product-admin-filter .full {
        width: auto;
    }

    .product-bulk-bar {
        grid-template-columns: minmax(180px, 1fr) 220px auto;
        align-items: center;
    }

    .product-admin-item {
        grid-template-columns: 28px 76px minmax(0, 1fr) 130px;
    }

    .product-admin-item form {
        grid-column: auto;
    }

    .subcategory-tier-grid {
        max-width: 520px;
    }

    .subcategory-tier-grid > span {
        margin-bottom: 0;
    }

    .subcategory-tier-head {
        display: grid;
    }

    .subcategory-tier-row {
        grid-template-columns: 120px minmax(120px, 1fr);
    }

    .subcategory-margin-row > button {
        grid-column: 3;
    }

    .provider-category-row {
        grid-template-columns: minmax(210px, 0.7fr) auto minmax(0, 1.3fr);
        align-items: start;
    }

    .provider-category-actions {
        grid-column: auto;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: end;
        width: 100%;
    }

    .provider-category-actions select,
    .provider-category-actions input[name="local_subcategory_name"],
    .provider-category-actions input[name="subcategory_name"],
    .provider-category-actions input[name="cover_image"] {
        grid-column: auto;
        min-width: 0;
    }

    .provider-category-actions .mini-check {
        grid-column: span 1;
    }

    .provider-category-actions .provider-save-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .order-detail-item {
        grid-template-columns: 78px minmax(0, 1fr) minmax(260px, 0.9fr);
        align-items: center;
    }

    .order-detail-money {
        grid-column: auto;
    }

    .order-management {
        grid-template-columns: 1fr auto;
        align-items: end;
    }

    .order-management form:first-child {
        grid-template-columns: minmax(220px, 320px) auto;
        align-items: end;
    }

    .stat-grid-wide {
        grid-template-columns: repeat(6, 1fr);
    }

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

    .dashboard-mini-stats {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .admin-body .page {
        padding: 34px 22px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}