/**
 * Yuyun Store
 * Compact storefront and admin design system.
 */

:root {
    --c-dark: #141c2b;
    --c-dark-2: #243044;
    --c-primary: #1d6f61;
    --c-primary-light: #2a9d8f;
    --c-accent: #1769aa;
    --c-gold: #f59e0b;
    --c-teal: #0ea5a0;
    --c-success: #16a34a;
    --c-warning: #d97706;
    --c-danger: #dc2626;
    --c-info: #0284c7;
    --c-text: #334155;
    --c-text-soft: #64748b;
    --c-bg: #f6f7fb;
    --c-card: #ffffff;
    --c-border: #e2e8f0;
    --c-border-strong: #cbd5e1;
    --grad-primary: linear-gradient(135deg, #1d6f61 0%, #1769aa 100%);
    --grad-accent: linear-gradient(135deg, #1d6f61 0%, #0ea5a0 100%);
    --grad-dark: linear-gradient(135deg, #141c2b 0%, #243044 100%);
    --grad-gold: linear-gradient(135deg, #f59e0b 0%, #c77700 100%);
    --grad-teal: linear-gradient(135deg, #0ea5a0 0%, #14b8a6 100%);
    --grad-market: linear-gradient(135deg, #1d6f61 0%, #58738b 48%, #0ea5a0 100%);
    --grad-glass: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 8px;
    --radius-xl: 8px;
    --radius-full: 9999px;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--c-text);
    background: var(--c-bg);
    font-size: 0.9rem;
    line-height: 1.55;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--c-dark);
    font-weight: 800;
    letter-spacing: 0;
}

a {
    color: var(--c-primary);
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

a:hover {
    color: var(--c-accent);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.container {
    max-width: 1180px;
}

.navbar {
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid var(--c-border);
    padding: 7px 0;
    backdrop-filter: blur(14px);
    transition: box-shadow 0.2s ease, padding 0.2s ease;
}

.navbar.scrolled {
    padding: 5px 0;
    box-shadow: var(--shadow-sm);
}

.navbar-brand span,
.footer-logo + span {
    letter-spacing: 0 !important;
}

.nav-link {
    color: var(--c-text) !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0 !important;
    border-radius: var(--radius-sm);
    padding: 7px 10px !important;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--c-primary) !important;
    background: #ecfdf5;
}

.dropdown-menu {
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 6px;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    padding: 8px 10px;
}

.dropdown-item i {
    width: 18px;
}

.search-box .form-control {
    min-width: 220px;
    height: 38px;
}

.btn {
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0 !important;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.btn:focus-visible,
.store-action-button:focus-visible,
.product-cart-button:focus-visible,
.icon-action:focus-visible {
    outline: 3px solid rgba(56, 189, 248, 0.35);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--grad-primary);
    border: 0;
    color: #fff;
    box-shadow: 0 10px 22px rgba(29, 111, 97, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
    filter: brightness(1.03);
    box-shadow: 0 14px 30px rgba(23, 105, 170, 0.24);
}

.btn-outline-primary {
    color: var(--c-primary);
    border-color: #a7f3d0;
    background: #fff;
}

.btn-outline-primary:hover {
    color: #fff;
    background: var(--c-primary);
    border-color: var(--c-primary);
}

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    background-color: #fff;
    color: var(--c-text);
    font-size: 0.86rem;
    min-height: 40px;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--c-primary-light);
    box-shadow: 0 0 0 3px rgba(29, 111, 97, 0.14) !important;
}

.form-label {
    color: var(--c-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0 !important;
    margin-bottom: 5px;
}

.glass-card,
.surface-card,
.admin-card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.surface-card {
    box-shadow: var(--shadow-md);
}

.section-header {
    margin-bottom: 22px;
}

.section-header h2 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    margin: 0;
}

.section-header p {
    color: var(--c-text-soft);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: #ecfdf5;
    color: #166534;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0 !important;
    margin-bottom: 8px;
}

.category-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    min-height: 120px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: #a7f3d0;
    box-shadow: var(--shadow-md);
}

.category-card .icon-wrapper {
    border-radius: var(--radius-md) !important;
}

.product-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card::before,
.catalog-panel::before,
.admin-card::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-accent), var(--c-teal));
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: #a7f3d0;
    box-shadow: var(--shadow-md);
}

.product-card .product-image {
    position: relative;
    height: 178px;
    background: #eef2f7;
    overflow: hidden;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.16);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card .product-info {
    padding: 12px;
}

.product-card .product-name {
    color: var(--c-dark);
    font-size: 0.88rem;
    line-height: 1.35;
    min-height: 2.4em;
}

.product-card .product-price {
    color: var(--c-accent);
    font-weight: 900;
    font-size: 0.96rem;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-hero {
    padding: 22px 0 16px;
    background:
        linear-gradient(180deg, rgba(29, 111, 97, 0.08), rgba(246, 247, 251, 0.95) 42%, #f6f7fb);
}

.store-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 18px;
    align-items: stretch;
    min-width: 0;
}

.store-hero-copy {
    min-width: 0;
    min-height: 374px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
    border-radius: 18px;
    background: var(--grad-market);
    color: #fff;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 42px rgba(23, 105, 170, 0.16);
}

.store-hero-copy::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.16), transparent 35%),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.2), transparent 28%);
    opacity: 0.72;
}

.store-kicker {
    position: relative;
    z-index: 1;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.16);
    color: #ecfdf5;
    font-size: 0.78rem;
    font-weight: 900;
    margin-bottom: 18px;
}

.store-hero h1 {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 0.98;
    margin-bottom: 14px;
}

.store-hero p {
    position: relative;
    z-index: 1;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    margin-bottom: 20px;
}

.hero-search {
    position: relative;
    z-index: 1;
    max-width: 610px;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    min-height: 54px;
    background: #fff;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 30px rgba(18, 57, 51, 0.18);
}

.hero-search i {
    color: var(--c-text-soft);
    text-align: center;
}

.hero-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--c-dark);
}

.hero-search button {
    height: 42px;
    margin-right: 6px;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--grad-primary);
    color: #fff;
    padding: 0 18px;
    font-weight: 900;
}

.hero-trust-row {
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.hero-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-trust-row i {
    color: #ccfbf1;
}

.hero-showcase {
    display: grid;
    grid-template-rows: minmax(0, 1fr) 128px;
    gap: 12px;
    min-width: 0;
}

.hero-showcase-main,
.hero-mini-grid a {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    min-height: 250px;
    background: #e2e8f0;
    color: #fff;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.hero-showcase-main img,
.hero-mini-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-showcase-main::after,
.hero-mini-grid a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 28, 43, 0.02), rgba(20, 28, 43, 0.72));
}

.hero-showcase-main div {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 1;
    display: grid;
    gap: 4px;
}

.hero-showcase-main span {
    font-size: 0.78rem;
    font-weight: 800;
    color: #a7f3d0;
}

.hero-showcase-main strong {
    color: #fff;
    font-size: 1.35rem;
}

.hero-showcase-main a {
    color: #fff;
    font-weight: 900;
    font-size: 0.84rem;
}

.hero-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hero-mini-grid a {
    min-height: 128px;
}

.hero-mini-grid strong {
    position: absolute;
    left: 14px;
    bottom: 12px;
    z-index: 1;
    color: #fff;
}

.store-quick-panel {
    transform: translateY(-10px);
}

.quick-panel-grid {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.quick-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 14px;
    border-right: 1px solid var(--c-border);
}

.quick-panel-title i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--grad-primary);
    color: #fff;
}

.quick-panel-title strong,
.quick-panel-title span {
    display: block;
    line-height: 1.15;
}

.quick-panel-title strong {
    color: var(--c-dark);
    font-weight: 900;
}

.quick-panel-title span {
    color: var(--c-text-soft);
    font-size: 0.78rem;
}

.quick-buy-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
}

.store-app-callout {
    padding: 4px 0 24px;
}

.app-callout-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(29, 111, 97, 0.18);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(239, 246, 255, 0.98)),
        #fff;
    box-shadow: var(--shadow-sm);
}

.app-callout-copy {
    min-width: 0;
}

.app-callout-copy span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 25px;
    padding: 4px 9px;
    border-radius: var(--radius-full);
    background: #fff7ed;
    color: #c2410c;
    font-size: 0.72rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.app-callout-copy h2 {
    margin: 0 0 5px;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.app-callout-copy p {
    max-width: 620px;
    margin: 0;
    color: var(--c-text-soft);
}

.app-callout-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--c-border);
    color: var(--c-dark);
    font-weight: 900;
    white-space: nowrap;
}

.app-callout-status i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--grad-primary);
    color: #fff;
}

.store-section {
    padding: 28px 0;
}

.store-section.muted {
    background: #f8fafc;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.compact-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.compact-section-head span {
    display: block;
    color: var(--c-primary);
    font-size: 0.75rem;
    font-weight: 900;
    margin-bottom: 3px;
}

.compact-section-head h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.compact-section-head a {
    color: var(--c-primary);
    font-size: 0.82rem;
    font-weight: 900;
}

.store-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.store-category-tile {
    min-height: 112px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 14px;
    border: 1px solid var(--c-border);
    border-radius: 16px;
    background: #fff;
    color: var(--c-dark);
    box-shadow: var(--shadow-sm);
    border-top: 0;
}

.store-category-tile:hover {
    color: var(--c-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #a7f3d0;
}

.store-category-tile i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    margin-bottom: 4px;
}

.store-category-tile strong {
    font-size: 0.9rem;
}

.store-category-tile span {
    color: var(--c-text-soft);
    font-size: 0.75rem;
}

.tone-blue i { background: #eff6ff; color: #3b82f6; }
.tone-teal i { background: #ccfbf1; color: #0ea5a0; }
.tone-amber i { background: #ecfdf5; color: #1d6f61; }
.tone-rose i { background: #fef2f2; color: #1769aa; }
.tone-dark i { background: #f5f3ff; color: #a855f7; }

.store-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

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

.store-split-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.product-card-v2 {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border-color: rgba(167, 243, 208, 0.92);
}

.product-card-v2 .product-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 0.78;
    background: #eef2f7;
    overflow: hidden;
}

.product-card-v2 .product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.product-card-v2:hover .product-media img {
    transform: scale(1.04);
}

.product-badges {
    position: absolute;
    top: 9px;
    left: 9px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.badge-discount,
.badge-featured {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 3px 7px;
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
}

.badge-discount {
    background: var(--grad-primary);
}

.badge-featured {
    background: rgba(14, 165, 160, 0.92);
}

.product-soldout {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.78);
    color: var(--c-dark);
    font-weight: 900;
}

.product-card-v2 .product-body {
    display: grid;
    gap: 8px;
    padding: 11px;
    flex: 1;
}

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

.product-meta {
    color: var(--c-text-soft);
    font-size: 0.72rem;
    font-weight: 800;
}

.product-meta i {
    color: var(--c-gold);
}

.product-title {
    min-height: 2.55em;
    color: var(--c-dark);
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.38;
}

.product-title:hover {
    color: var(--c-accent);
}

.product-bottom strong,
.product-bottom small {
    display: block;
}

.product-bottom strong {
    color: var(--c-accent);
    font-size: 0.95rem;
}

.product-bottom small {
    color: var(--c-text-soft);
    font-size: 0.72rem;
    text-decoration: line-through;
}

.product-cart-button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-primary);
    color: #fff;
    flex: 0 0 auto;
}

.product-cart-button:hover {
    background: var(--c-accent);
}

.product-cart-button.disabled {
    background: #cbd5e1;
}

.catalog-page {
    background: #f8fafc;
}

.catalog-hero {
    padding: 24px 0;
    background: var(--grad-primary);
    color: #fff;
}

.catalog-hero.category-hero {
    background: var(--grad-market);
}

.catalog-hero.search-hero {
    background: var(--grad-primary);
}

.catalog-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.catalog-hero span {
    display: block;
    color: #ecfdf5;
    font-size: 0.76rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.catalog-hero h1 {
    color: #fff;
    margin: 0 0 6px;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.catalog-hero p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
}

.catalog-search {
    flex: 0 0 min(460px, 45vw);
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    min-height: 46px;
    background: #fff;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.catalog-search i {
    color: var(--c-text-soft);
    text-align: center;
}

.catalog-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--c-dark);
}

.catalog-search button {
    height: 36px;
    margin-right: 5px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--grad-primary);
    color: #fff;
    font-weight: 900;
}

.catalog-content {
    padding: 24px 0 36px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 18px;
}

.catalog-sidebar {
    display: grid;
    gap: 14px;
    align-content: start;
}

.catalog-panel {
    padding: 14px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.catalog-panel h2 {
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.catalog-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--c-text);
    font-size: 0.82rem;
    font-weight: 800;
}

.catalog-panel a.active,
.catalog-panel a:hover {
    color: var(--c-primary);
    background: #ecfdf5;
}

.catalog-panel a span {
    color: var(--c-text-soft);
    font-size: 0.72rem;
}

.catalog-panel.compact {
    display: grid;
    gap: 8px;
}

.catalog-panel.compact div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--c-text-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.catalog-panel.compact i {
    color: var(--c-success);
}

.catalog-toolbar {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.catalog-toolbar.standalone {
    margin-bottom: 18px;
}

.catalog-toolbar strong,
.catalog-toolbar span {
    display: block;
    line-height: 1.2;
}

.catalog-toolbar strong {
    color: var(--c-dark);
}

.catalog-toolbar span {
    color: var(--c-text-soft);
    font-size: 0.78rem;
}

.catalog-toolbar .form-select {
    width: 190px;
}

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

.product-detail-page {
    background: #f8fafc;
}

.store-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--c-text-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.store-breadcrumb a {
    color: var(--c-text-soft);
}

.store-breadcrumb a:hover {
    color: var(--c-primary);
}

.store-breadcrumb i {
    font-size: 0.62rem;
}

.product-detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 430px;
    gap: 18px;
    align-items: start;
}

.product-gallery-panel,
.product-buy-panel,
.product-info-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.product-gallery-panel {
    padding: 12px;
}

.product-main-image {
    aspect-ratio: 1 / 0.82;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #eef2f7;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumbs {
    display: flex;
    gap: 9px;
    margin-top: 10px;
    overflow-x: auto;
}

.product-thumbs .thumb-item {
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #eef2f7;
}

.product-thumbs .thumb-item.active {
    border-color: var(--c-primary);
}

.product-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-buy-panel {
    position: sticky;
    top: 138px;
    padding: 18px;
}

.product-detail-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--c-text-soft);
    font-size: 0.76rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.product-detail-meta i {
    color: var(--c-gold);
}

.product-buy-panel h1 {
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 1.15;
    margin-bottom: 8px;
}

.product-buy-panel p {
    color: var(--c-text-soft);
    font-size: 0.9rem;
}

.product-price-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
    margin: 16px 0;
    background: #f8fafc;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
}

.product-price-box strong {
    color: var(--c-primary);
    font-size: 1.55rem;
    font-weight: 900;
}

.product-price-box span {
    color: var(--c-text-soft);
    text-decoration: line-through;
}

.product-price-box em {
    padding: 4px 8px;
    border-radius: var(--radius-full);
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
}

.product-option-group {
    margin-bottom: 16px;
}

.product-option-group label {
    display: block;
    color: var(--c-dark);
    font-size: 0.78rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.variant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-list .variant-item {
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--c-text);
    font-size: 0.82rem;
    font-weight: 800;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-control button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--c-dark);
}

.qty-control input {
    width: 74px;
    height: 36px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 900;
}

.qty-control span {
    color: var(--c-text-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.product-buy-actions {
    display: grid;
    grid-template-columns: 1fr 0.72fr;
    gap: 10px;
    margin-bottom: 16px;
}

.product-assurance {
    display: grid;
    gap: 9px;
    padding-top: 14px;
    border-top: 1px solid var(--c-border);
}

.product-assurance div {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 8px;
    color: var(--c-text);
    font-size: 0.8rem;
    font-weight: 700;
}

.product-assurance i {
    color: var(--c-teal);
}

.product-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 18px;
    margin-top: 18px;
}

.product-info-card {
    padding: 18px;
}

.product-info-card h2 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.product-info-card p {
    color: var(--c-text);
}

.spec-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.spec-list div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--c-border);
}

.spec-list div:last-child {
    border-bottom: 0;
}

.spec-list dt {
    color: var(--c-text-soft);
    font-weight: 800;
}

.spec-list dd {
    margin: 0;
    color: var(--c-dark);
    font-weight: 800;
}

.loader-wrapper {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-bg);
}

.loader {
    width: 32px;
    height: 32px;
    border: 3px solid #dbeafe;
    border-top-color: var(--c-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-primary);
    color: #fff;
    font-size: 1.25rem;
}

.auth-icon-accent {
    background: var(--grad-accent);
}

.auth-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.08)),
        #f8fafc;
}

.auth-page .surface-card {
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-lg);
}

footer {
    margin-top: 0;
    padding: 0;
    background: transparent;
    color: inherit;
}

.store-header {
    z-index: 1020;
    background: var(--grad-primary);
    border-bottom: 0;
    box-shadow: 0 12px 28px rgba(23, 105, 170, 0.18);
}

.store-topbar {
    background: linear-gradient(135deg, #1d6f61 0%, #1769aa 100%);
    color: #ecfdf5;
    font-size: 0.76rem;
}

.store-topbar-inner {
    min-height: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.store-topbar-left,
.store-topbar-links {
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
}

.store-topbar i {
    color: #ccfbf1;
}

.store-topbar a {
    color: #ecfdf5;
    font-weight: 700;
}

.store-mainbar.navbar {
    padding: 12px 0;
    background: var(--grad-primary) !important;
    border-bottom: 0;
    box-shadow: none;
}

.store-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    min-width: max-content;
}

.store-brand:hover {
    color: #fff;
}

.store-brand img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 24px rgba(18, 57, 51, 0.18);
}

.store-brand strong,
.store-brand small {
    display: block;
    line-height: 1.05;
}

.store-brand strong {
    font-size: 1rem;
    font-weight: 900;
}

.store-brand small {
    color: rgba(236, 253, 245, 0.85);
    font-size: 0.68rem;
    font-weight: 700;
    margin-top: 3px;
}

.store-brand.dark {
    color: #fff;
}

.store-brand.dark small {
    color: rgba(255, 255, 255, 0.55);
}

.store-search {
    position: relative;
    width: min(520px, 44vw);
    height: 48px;
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.store-search i {
    color: var(--c-text-soft);
    text-align: center;
}

.store-search input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--c-dark);
    font-size: 0.86rem;
}

.store-search button {
    height: 38px;
    margin-right: 6px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--radius-full);
    background: #ecfdf5;
    color: var(--c-primary);
    font-weight: 900;
    font-size: 0.78rem;
}

.search-container {
    position: relative;
    width: min(520px, 44vw);
}

.search-container .store-search {
    width: 100%;
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1050;
    display: none;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.search-result-item,
.no-results {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    color: var(--c-text);
}

.search-result-item:hover {
    background: #f8fafc;
    color: var(--c-dark);
}

.search-result-image {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #eef2f7;
}

.search-result-info h6 {
    margin: 0 0 2px;
    font-size: 0.82rem;
}

.search-result-info .price {
    color: var(--c-primary);
    font-size: 0.76rem;
    font-weight: 900;
}

.no-results {
    display: block;
    color: var(--c-text-soft);
    font-size: 0.82rem;
}

.store-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 14px;
}

.store-login-link {
    color: #fff;
    font-weight: 900;
    font-size: 0.84rem;
    padding: 8px 4px;
}

.store-register-link {
    min-height: 38px;
    background: #fff !important;
    color: var(--c-primary) !important;
    box-shadow: 0 8px 18px rgba(18, 57, 51, 0.14);
}

.store-action-button {
    position: relative;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--c-primary);
    box-shadow: 0 8px 18px rgba(18, 57, 51, 0.14);
}

.store-action-button:hover {
    color: var(--c-accent);
    border-color: #fff;
    background: #ecfdf5;
}

.cart-button span {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--c-accent);
    color: #fff;
    font-size: 0.67rem;
    font-weight: 900;
    border: 2px solid #fff;
}

.store-menu-button {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.68) !important;
    border-radius: var(--radius-md);
    color: #fff;
}

.store-categorybar {
    background: #fff;
    border-bottom: 1px solid var(--c-border);
}

.store-category-scroll {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.store-category-scroll::-webkit-scrollbar {
    display: none;
}

.store-category-scroll a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: var(--radius-full);
    color: var(--c-text);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.store-category-scroll a:hover {
    background: #ecfdf5;
    color: var(--c-primary);
}

.store-nav-divider {
    width: 1px;
    height: 18px;
    background: var(--c-border);
    flex: 0 0 auto;
}

.dropdown-header span,
.dropdown-header strong {
    display: block;
}

.store-prefooter {
    margin-top: 56px;
    padding: 0 0 18px;
}

.store-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.store-service-grid div {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 2px 10px;
    align-items: center;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.store-service-grid i {
    grid-row: span 2;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: #ecfeff;
    color: var(--c-teal);
}

.store-service-grid strong {
    color: var(--c-dark);
    font-size: 0.86rem;
}

.store-service-grid span {
    color: var(--c-text-soft);
    font-size: 0.76rem;
}

.store-footer-main {
    background: var(--c-dark);
    color: rgba(255, 255, 255, 0.72);
    padding: 42px 0 22px;
}

.store-footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 1fr));
    gap: 28px;
}

.store-footer-grid h6 {
    color: #fff !important;
    font-size: 0.82rem;
    margin-bottom: 14px;
}

.store-footer-grid a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 0.84rem;
    margin-bottom: 9px;
}

.store-footer-grid a:hover {
    color: #fff !important;
}

.store-footer-brand p {
    max-width: 390px;
    margin: 16px 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
}

.store-newsletter {
    max-width: 390px;
    display: grid;
    grid-template-columns: 1fr 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.store-newsletter input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    padding: 11px 12px;
    font-size: 0.84rem;
}

.store-newsletter button {
    border: 0;
    background: var(--c-primary);
    color: #fff;
}

.store-socials {
    display: flex;
    gap: 7px;
    margin-top: 12px;
}

.store-socials a {
    width: 34px;
    height: 34px;
    justify-content: center;
    margin: 0;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
}

.store-footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.78rem;
}

.store-footer-bottom div {
    display: flex;
    gap: 16px;
}

.store-footer-bottom a {
    color: rgba(255, 255, 255, 0.6) !important;
}

.whatsapp-fab:hover {
    transform: translateY(-2px);
}

.breadcrumb {
    --bs-breadcrumb-divider-color: var(--c-text-soft);
}

.nav-tabs .nav-link {
    color: var(--c-text-soft) !important;
}

.nav-tabs .nav-link.active {
    color: var(--c-primary) !important;
    border-bottom: 2px solid var(--c-primary) !important;
    background: transparent;
}

.variant-item:hover {
    border-color: var(--c-primary) !important;
    color: var(--c-primary);
}

.variant-item.active {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary) !important;
}

.cart-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--c-border);
}

.cart-row:last-child {
    border-bottom: 0;
}

.cart-row img {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: #eef2f7;
    border: 1px solid var(--c-border);
}

.cart-row-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.cart-row-main a {
    color: var(--c-dark);
    font-weight: 900;
}

.cart-row-main span,
.cart-row-main small {
    color: var(--c-text-soft);
    font-size: 0.78rem;
}

.cart-row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-row-actions .cart-quantity {
    width: 74px;
    min-height: 36px;
}

.cart-page,
.checkout-page {
    background: #f8fafc;
}

.checkout-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.checkout-head span {
    display: block;
    color: var(--c-primary);
    font-size: 0.76rem;
    font-weight: 900;
    margin-bottom: 3px;
}

.checkout-head h1 {
    margin: 0;
    font-size: clamp(1.55rem, 2vw, 2.1rem);
}

.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.cart-list-panel,
.checkout-panel,
.order-summary-panel {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.cart-list-panel {
    padding: 6px 18px;
}

.order-summary-panel {
    position: sticky;
    top: 138px;
    padding: 18px;
}

.order-summary-panel h2 {
    font-size: 1rem;
    margin-bottom: 14px;
}

.order-summary-panel > div:not(.checkout-items),
.checkout-items div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--c-border);
}

.order-summary-panel span {
    color: var(--c-text-soft);
}

.order-summary-panel strong {
    color: var(--c-dark);
}

.order-summary-panel .summary-total {
    align-items: center;
    border-bottom: 0 !important;
    margin: 6px 0 12px;
}

.summary-total strong {
    color: var(--c-primary);
    font-size: 1.22rem;
}

.order-summary-panel p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--c-text-soft);
    font-size: 0.78rem;
    margin: 12px 0 0;
}

.cart-empty {
    background: #fff;
}

.cart-empty i {
    display: block;
    color: var(--c-primary);
    font-size: 2rem;
    margin-bottom: 10px;
}

.checkout-forms {
    display: grid;
    gap: 18px;
}

.checkout-panel {
    padding: 18px;
}

.checkout-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.checkout-panel-head > i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: #ecfdf5;
    color: var(--c-primary);
}

.checkout-panel-head h2 {
    margin: 0 0 2px;
    font-size: 1rem;
}

.checkout-panel-head p {
    margin: 0;
    color: var(--c-text-soft);
    font-size: 0.8rem;
}

.payment-choice {
    display: grid;
    grid-template-columns: 20px 44px 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    cursor: pointer;
}

.payment-choice.active {
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.payment-choice.disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.payment-choice span {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--c-primary);
}

.payment-choice strong,
.payment-choice small {
    display: block;
}

.payment-choice small {
    color: var(--c-text-soft);
}

.checkout-items {
    margin-bottom: 8px;
}

.checkout-items span strong,
.checkout-items span small {
    display: block;
}

.checkout-items em {
    color: var(--c-dark);
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.digital-page {
    background: #f8fafc;
}

.digital-hero {
    padding: 34px 0 74px;
    background: var(--grad-market);
    color: #fff;
}

.digital-hero span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ecfdf5;
    font-size: 0.8rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.digital-hero h1 {
    max-width: 760px;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.08;
}

.digital-hero p {
    max-width: 610px;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 0;
}

.digital-workspace {
    margin-top: -48px;
    padding-bottom: 36px;
}

.digital-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 260px;
    gap: 18px;
    align-items: start;
}

.digital-service-panel,
.digital-form-panel,
.digital-info-panel {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.digital-service-panel,
.digital-form-panel,
.digital-info-panel {
    padding: 18px;
}

.digital-service-panel h2 {
    font-size: 1rem;
    margin-bottom: 14px;
}

.digital-service-grid {
    display: grid;
    gap: 9px;
}

.digital-service-card {
    min-height: 58px;
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--c-text);
    text-align: left;
    padding: 9px;
    font-weight: 900;
}

.digital-service-card i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: #f1f5f9;
    color: var(--c-primary);
}

.digital-service-card.active,
.digital-service-card:hover {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: var(--c-primary);
}

.nominal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

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

.nominal-item,
.provider-item {
    min-height: 74px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    background: #fff;
    display: grid;
    align-content: center;
    gap: 4px;
    color: var(--c-dark);
}

.nominal-item strong,
.nominal-item span,
.provider-item strong,
.provider-item span {
    display: block;
}

.nominal-item span,
.provider-item span {
    color: var(--c-primary);
    font-size: 0.78rem;
    font-weight: 900;
}

.nominal-item.active,
.nominal-item:hover,
.provider-item.active,
.provider-item:hover {
    border-color: var(--c-primary);
    background: var(--c-primary);
    color: #fff;
}

.nominal-item.active span,
.nominal-item:hover span,
.provider-item.active span,
.provider-item:hover span {
    color: #fff;
}

.digital-empty-option {
    grid-column: 1 / -1;
    border: 1px dashed var(--c-border);
    border-radius: var(--radius-md);
    padding: 16px;
    color: var(--c-muted);
    font-size: 0.9rem;
    background: #f8fafc;
}

.digital-info-panel {
    display: grid;
    gap: 14px;
}

.digital-info-panel div {
    display: grid;
    gap: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--c-border);
}

.digital-info-panel div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.digital-info-panel i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: #ecfdf5;
    color: var(--c-teal);
}

.digital-info-panel strong {
    color: var(--c-dark);
}

.digital-info-panel span {
    color: var(--c-text-soft);
    font-size: 0.78rem;
}

.account-nav {
    display: grid;
    gap: 6px;
}

.account-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    color: var(--c-text);
    font-size: 0.86rem;
    font-weight: 700;
}

.account-nav a.active {
    color: var(--c-primary);
    background: #ecfdf5;
}

.account-nav a.danger {
    color: var(--c-danger);
}

/* Admin */
.admin-body {
    background: #eef3f8;
    color: var(--c-text);
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #111827;
    color: #cbd5e1;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 18px;
}

.admin-brand:hover {
    color: #fff;
}

.admin-brand img {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.admin-nav {
    display: grid;
    gap: 5px;
}

.admin-nav a,
.admin-sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    color: #cbd5e1;
    font-size: 0.87rem;
    font-weight: 700;
}

.admin-nav a i,
.admin-sidebar-footer a i {
    width: 18px;
    text-align: center;
}

.admin-nav a:hover,
.admin-sidebar-footer a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.admin-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(15, 118, 110, 0.95));
}

.admin-sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 5px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-main {
    min-width: 0;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 76px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(246, 248, 251, 0.94);
    border-bottom: 1px solid var(--c-border);
    backdrop-filter: blur(14px);
}

.admin-topbar h1 {
    margin: 0;
    font-size: 1.35rem;
}

.admin-eyebrow {
    color: var(--c-text-soft);
    font-size: 0.72rem;
    font-weight: 800;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
}

.admin-profile strong,
.admin-profile span {
    display: block;
    line-height: 1.15;
}

.admin-profile span {
    color: var(--c-text-soft);
    font-size: 0.74rem;
}

.admin-profile-avatar,
.avatar-sm {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-primary);
    color: #fff;
    font-weight: 900;
}

.admin-content {
    padding: 24px;
}

.admin-card {
    padding: 18px;
}

.admin-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-card-header h2,
.compact-title {
    margin: 0;
    font-size: 1rem;
}

.admin-card-header p {
    margin: 3px 0 0;
    color: var(--c-text-soft);
    font-size: 0.82rem;
}

.admin-grid {
    display: grid;
    gap: 16px;
}

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

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

.metric-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.metric-card span,
.metric-card small {
    color: var(--c-text-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.metric-card strong {
    color: var(--c-dark);
    font-size: 1.45rem;
    line-height: 1.1;
}

.metric-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 4px;
}

.bg-blue {
    background: #2563eb;
}

.bg-green {
    background: #0f766e;
}

.bg-amber {
    background: #d97706;
}

.bg-rose {
    background: #5b6ee1;
}

.admin-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) minmax(150px, 190px) auto;
    gap: 12px;
    align-items: end;
}

.admin-filter-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.admin-table {
    margin: 0;
    font-size: 0.84rem;
}

.admin-table thead th {
    color: var(--c-text-soft);
    background: #f8fafc;
    border-bottom: 1px solid var(--c-border);
    font-size: 0.72rem;
    font-weight: 900;
}

.admin-table td {
    border-color: var(--c-border);
}

.admin-product-cell,
.admin-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 210px;
}

.admin-product-cell img,
.admin-list-item img,
.admin-image-preview img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #eef2f7;
    border: 1px solid var(--c-border);
}

.admin-logo-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    background: #f8fafc;
}

.admin-logo-preview img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--c-border);
}

.admin-logo-preview span {
    color: var(--c-text-soft);
    font-size: 0.78rem;
    word-break: break-all;
}

.admin-product-cell strong,
.admin-user-cell strong,
.admin-list-item strong {
    display: block;
    color: var(--c-dark);
    font-size: 0.86rem;
}

.admin-product-cell span,
.admin-user-cell span,
.admin-list-item span {
    display: block;
    color: var(--c-text-soft);
    font-size: 0.75rem;
}

.icon-action {
    width: 32px;
    height: 32px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--c-text);
    margin-left: 3px;
}

.icon-action:hover {
    color: var(--c-primary);
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.icon-action.danger {
    color: var(--c-danger);
}

.icon-action.danger:hover {
    color: #fff;
    background: var(--c-danger);
    border-color: var(--c-danger);
}

.status-badge,
.rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 900;
    background: #e2e8f0;
    color: var(--c-dark);
}

.status-active,
.status-delivered,
.status-approved,
.pay-paid {
    background: #dcfce7;
    color: #166534;
}

.status-pending,
.pay-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing,
.status-shipped {
    background: #dbeafe;
    color: #1e40af;
}

.status-inactive,
.status-cancelled,
.status-rejected,
.status-out_of_stock,
.pay-failed {
    background: #fee2e2;
    color: #991b1b;
}

.pay-refunded {
    background: #ede9fe;
    color: #5b21b6;
}

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

.admin-list-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    color: var(--c-text);
}

.admin-list-item:hover {
    background: #f8fafc;
}

.admin-list-item em {
    color: var(--c-danger);
    font-style: normal;
    font-weight: 900;
}

.empty-state {
    padding: 24px;
    border: 1px dashed var(--c-border-strong);
    border-radius: var(--radius-md);
    color: var(--c-text-soft);
    text-align: center;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 18px;
}

.admin-form-grid > .admin-card:nth-of-type(n + 2):not(.admin-side-stack) {
    grid-column: 1 / -1;
}

.admin-side-stack {
    display: grid;
    gap: 18px;
    align-content: start;
}

.admin-image-preview {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px dashed var(--c-border-strong);
    border-radius: var(--radius-md);
    color: var(--c-text-soft);
    font-size: 2rem;
}

.admin-image-preview img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

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

.admin-product-gallery-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: #fff;
}

.admin-product-gallery-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: #f8fafc;
}

.admin-product-gallery-item div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-inline-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-inline-controls .form-select {
    min-width: 120px;
}

.admin-total-box {
    max-width: 340px;
    margin-left: auto;
    display: grid;
    gap: 8px;
    padding-top: 16px;
}

.admin-total-box div {
    display: flex;
    justify-content: space-between;
    color: var(--c-text-soft);
}

.admin-total-box .grand {
    padding-top: 10px;
    border-top: 1px solid var(--c-border);
    color: var(--c-dark);
    font-size: 1.08rem;
}

.info-box {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
}

.info-box h3 {
    font-size: 0.86rem;
    margin-bottom: 8px;
}

.info-box p {
    margin: 0 0 4px;
    color: var(--c-text);
}

.pagination .page-link {
    border-color: var(--c-border);
    color: var(--c-primary);
    font-size: 0.82rem;
}

.pagination .active .page-link {
    background: var(--c-primary);
    border-color: var(--c-primary);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

@media (max-width: 1100px) {
    .store-hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-showcase {
        grid-template-columns: 1fr 0.75fr;
        grid-template-rows: auto;
    }

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

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

    .catalog-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .product-detail-shell,
    .product-info-grid {
        grid-template-columns: 1fr;
    }

    .product-buy-panel {
        position: static;
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .order-summary-panel {
        position: static;
    }

    .digital-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .digital-info-panel {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

@media (max-width: 991px) {
    .store-topbar-left span:nth-child(2),
    .store-topbar-links a:nth-child(2) {
        display: none;
    }

    .store-mainbar .navbar-collapse {
        margin-top: 12px;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--c-border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
    }

    .store-search {
        width: 100%;
        margin: 0 0 12px !important;
    }

    .search-container {
        width: 100%;
        margin: 0 0 12px !important;
    }

    .store-actions {
        margin-left: 0;
        justify-content: space-between;
    }

    .store-mainbar .navbar-collapse .store-login-link {
        color: var(--c-dark);
    }

    .store-mainbar .navbar-collapse .store-register-link {
        background: var(--grad-primary) !important;
        color: #fff !important;
    }

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

    .quick-panel-grid {
        grid-template-columns: 1fr;
    }

    .quick-panel-title {
        border-right: 0;
        padding-right: 0;
    }

    .quick-buy-form {
        grid-template-columns: 1fr 1fr auto;
    }

    .app-callout-card {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .app-callout-status {
        width: fit-content;
    }

    .store-split-sections {
        grid-template-columns: 1fr;
    }

    .catalog-hero-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-search {
        flex: none;
        width: 100%;
    }

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

    .catalog-sidebar {
        display: none;
    }

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

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

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

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

    .navbar-collapse {
        margin-top: 8px;
        padding: 14px;
        background: #fff;
        border: 1px solid var(--c-border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
    }

    .search-box {
        display: none;
    }

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

    .admin-sidebar {
        position: static;
        height: auto;
        border-right: 0;
    }

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

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

@media (max-width: 768px) {
    .store-topbar-inner {
        justify-content: center;
    }

    .store-topbar-links {
        display: none;
    }

    .store-brand small {
        display: none;
    }

    .store-category-scroll {
        min-height: 40px;
    }

    .store-service-grid,
    .store-footer-grid {
        grid-template-columns: 1fr;
    }

    .store-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .store-hero {
        padding-top: 16px;
    }

    .store-hero .container,
    .store-hero-grid,
    .hero-showcase,
    .hero-showcase-main {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .store-hero-copy {
        width: min(100%, calc(100vw - 24px));
        min-height: 0;
        padding: 24px;
        max-width: 100%;
        overflow: hidden;
    }

    .store-hero h1 {
        font-size: 2rem;
        line-height: 1.04;
        max-width: calc(100vw - 72px);
        overflow-wrap: break-word;
    }

    .store-hero p {
        font-size: 0.92rem;
        max-width: calc(100vw - 72px);
    }

    .hero-search {
        width: 100%;
        max-width: calc(100vw - 72px);
        grid-template-columns: 40px 1fr;
    }

    .hero-search button {
        grid-column: 1 / -1;
        width: calc(100% - 12px);
        margin: 0 6px 6px;
    }

    .hero-trust-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: calc(100vw - 72px);
    }

    .hero-trust-row span {
        justify-content: center;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

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

    .quick-buy-form,
    .store-category-grid,
    .store-product-grid,
    .store-product-grid.small-grid,
    .catalog-grid.store-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-toolbar .form-select {
        width: 100%;
    }

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

    .product-detail-meta {
        flex-direction: column;
    }

    .checkout-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-row {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .cart-row img {
        width: 64px;
        height: 64px;
    }

    .cart-row-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
    }

    .digital-service-grid,
    .provider-grid,
    .nominal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-buy-form .btn {
        grid-column: 1 / -1;
    }

    .store-app-callout {
        padding-bottom: 18px;
    }

    .app-callout-card {
        padding: 16px;
    }

    body {
        font-size: 0.86rem;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .product-card .product-image {
        height: 150px;
    }

    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px;
    }

    .admin-content {
        padding: 14px;
    }

    .admin-grid-4,
    .admin-grid-2,
    .admin-filter {
        grid-template-columns: 1fr;
    }

    .admin-filter-actions {
        justify-content: stretch;
    }

    .admin-filter-actions .btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .store-brand img {
        width: 38px;
        height: 38px;
    }

    .store-brand strong {
        font-size: 0.92rem;
    }

    .store-actions {
        flex-wrap: wrap;
    }

    .store-category-grid {
        grid-template-columns: 1fr;
    }

    .store-section {
        padding: 22px 0;
    }

    .compact-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-card .product-image {
        height: 136px;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }
}

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

/* Modern admin backend shell */
.admin-body {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(29, 111, 97, 0.08), rgba(23, 105, 170, 0.06)),
        #eef3f6;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 276px minmax(0, 1fr);
    transition: grid-template-columns 0.24s ease;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 100vh;
    overflow: hidden auto;
    padding: 16px 14px;
    background:
        linear-gradient(155deg, #111827 0%, #123933 48%, #1769aa 100%);
    color: rgba(255, 255, 255, 0.76);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 18px 0 44px rgba(15, 23, 42, 0.12);
    isolation: isolate;
}

.admin-sidebar::before {
    content: "";
    position: absolute;
    inset: -16% -42%;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 22%, rgba(255, 255, 255, 0.12) 42%, transparent 58%),
        linear-gradient(45deg, rgba(245, 158, 11, 0.16), transparent 40%, rgba(29, 111, 97, 0.2));
    opacity: 0.82;
    transform: translateX(-18%);
    animation: adminSidebarFlow 9s ease-in-out infinite alternate;
}

.admin-sidebar > * {
    position: relative;
    z-index: 1;
}

@keyframes adminSidebarFlow {
    from {
        transform: translateX(-18%);
    }

    to {
        transform: translateX(18%);
    }
}

.admin-brand {
    min-height: 52px;
    padding: 8px;
    margin-bottom: 18px;
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-brand img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
}

.admin-brand span,
.admin-brand strong,
.admin-brand small {
    display: block;
    min-width: 0;
}

.admin-brand strong {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.05;
}

.admin-brand small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 3px;
}

.admin-nav-label {
    padding: 0 10px 8px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.admin-nav {
    gap: 6px;
}

.admin-nav a,
.admin-sidebar-footer a {
    position: relative;
    min-height: 42px;
    padding: 10px 11px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.76);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.admin-nav a::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 99px;
    background: #f59e0b;
    opacity: 0;
    transform: scaleY(0.4);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.admin-nav a:hover,
.admin-sidebar-footer a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}

.admin-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.17);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 22px rgba(0, 0, 0, 0.12);
}

.admin-nav a.active::before {
    opacity: 1;
    transform: scaleY(1);
}

.admin-sidebar-footer {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.admin-main {
    min-width: 0;
}

.admin-topbar {
    min-height: 72px;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(203, 213, 225, 0.76);
}

.admin-topbar-left,
.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-menu-toggle,
.admin-quick-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--c-dark);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.admin-menu-toggle:hover,
.admin-quick-link:hover {
    color: var(--c-primary);
    border-color: rgba(29, 111, 97, 0.32);
    transform: translateY(-1px);
}

.admin-topbar h1 {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.admin-profile {
    min-height: 42px;
    padding: 6px 9px 6px 7px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.admin-profile-avatar {
    border-radius: 8px;
    background: linear-gradient(135deg, #1d6f61, #1769aa);
}

.admin-content {
    padding: 20px;
}

.admin-card,
.metric-card {
    border-radius: 8px;
    border-color: rgba(203, 213, 225, 0.78);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.admin-card {
    overflow: hidden;
}

.admin-card::before {
    height: 2px;
    background: linear-gradient(90deg, #1d6f61, #1769aa, #2a9d8f);
}

.admin-card-header {
    margin-bottom: 14px;
}

.metric-card {
    position: relative;
    overflow: hidden;
    padding: 15px;
}

.metric-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, #1d6f61, #1769aa);
}

.metric-icon {
    border-radius: 8px;
}

.admin-filter {
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) minmax(140px, 180px) auto;
}

.admin-table {
    font-size: 0.82rem;
}

.admin-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: #475569;
    background: #eef4f6;
}

.admin-table tbody tr {
    transition: background 0.16s ease;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

body.admin-sidebar-collapsed .admin-shell {
    grid-template-columns: 84px minmax(0, 1fr);
}

body.admin-sidebar-collapsed .admin-sidebar {
    padding-left: 12px;
    padding-right: 12px;
}

body.admin-sidebar-collapsed .admin-brand {
    justify-content: center;
}

body.admin-sidebar-collapsed .admin-brand span,
body.admin-sidebar-collapsed .admin-nav-label,
body.admin-sidebar-collapsed .admin-nav a span,
body.admin-sidebar-collapsed .admin-sidebar-footer a span {
    display: none;
}

body.admin-sidebar-collapsed .admin-nav a,
body.admin-sidebar-collapsed .admin-sidebar-footer a {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

body.admin-sidebar-collapsed .admin-nav a::before {
    left: 4px;
}

.admin-mobile-backdrop {
    display: none;
}

@media (max-width: 1100px) {
    .admin-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(286px, calc(100vw - 44px));
        height: 100vh;
        transform: translateX(-104%);
        transition: transform 0.24s ease;
    }

    body.admin-sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    body.admin-sidebar-open .admin-mobile-backdrop {
        position: fixed;
        inset: 0;
        z-index: 90;
        display: block;
        background: rgba(15, 23, 42, 0.42);
    }

    body.admin-sidebar-collapsed .admin-shell {
        grid-template-columns: 1fr;
    }

    body.admin-sidebar-collapsed .admin-brand span,
    body.admin-sidebar-collapsed .admin-nav-label,
    body.admin-sidebar-collapsed .admin-nav a span,
    body.admin-sidebar-collapsed .admin-sidebar-footer a span {
        display: block;
    }

    body.admin-sidebar-collapsed .admin-nav a,
    body.admin-sidebar-collapsed .admin-sidebar-footer a {
        justify-content: flex-start;
        padding: 10px 11px;
    }

    .admin-topbar {
        flex-direction: row;
        align-items: center;
        padding: 12px 14px;
    }

    .admin-topbar-actions {
        margin-left: auto;
    }

    .admin-profile div:last-child {
        display: none;
    }

    .admin-content {
        padding: 14px;
    }

    .admin-nav,
    .admin-sidebar-footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-grid-4,
    .admin-grid-2,
    .admin-filter,
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-filter-actions {
        justify-content: stretch;
    }

    .admin-filter-actions .btn {
        flex: 1;
    }

    .admin-topbar h1 {
        max-width: 58vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Wallet, marketplace reviews, and balance payments */
.wallet-mini-card,
.wallet-hero-card,
.product-review-panel {
    border: 1px solid var(--c-border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.wallet-mini-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #ecfdf5, #ecfdf5);
}

.wallet-mini-card span,
.wallet-hero-card span {
    display: block;
    color: var(--c-text-soft);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.wallet-mini-card strong {
    color: var(--c-primary);
    font-size: 0.98rem;
}

.wallet-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(29, 111, 97, 0.92)),
        #111827;
    color: #fff;
}

.wallet-hero-card strong {
    display: block;
    color: #fff;
    font-size: clamp(1.65rem, 4vw, 2.45rem);
    line-height: 1;
    margin: 4px 0 8px;
}

.wallet-hero-card p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.wallet-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.wallet-topup-note {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    background: #ecfdf5;
}

.wallet-topup-note > i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    color: var(--c-primary);
}

.wallet-topup-note strong,
.wallet-topup-note span {
    display: block;
}

.wallet-topup-note span {
    color: var(--c-text-soft);
    font-size: 0.84rem;
}

.wallet-hero-card-sm strong {
    font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.wallet-transaction-list,
.review-list {
    display: grid;
    gap: 10px;
}

.wallet-transaction-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: #fff;
}

.wallet-transaction-item > span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.wallet-transaction-item .credit {
    color: var(--c-success);
}

.wallet-transaction-item > span.credit {
    background: #ecfdf5;
}

.wallet-transaction-item .debit {
    color: var(--c-danger);
}

.wallet-transaction-item > span.debit {
    background: #fef2f2;
}

.wallet-transaction-item strong,
.wallet-transaction-item small {
    display: block;
}

.wallet-transaction-item small {
    color: var(--c-text-soft);
    font-size: 0.76rem;
}

.wallet-transaction-item em {
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.product-review-panel {
    margin-top: 18px;
    padding: 18px;
    background: #fff;
}

.review-summary-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.review-score-card {
    display: grid;
    gap: 8px;
    align-content: center;
    min-height: 156px;
    padding: 18px;
    border-radius: 8px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    text-align: center;
}

.review-score-card > strong {
    color: #166534;
    font-size: 2.8rem;
    line-height: 1;
}

.review-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #f59e0b;
}

.review-stars .muted {
    color: #cbd5e1;
}

.review-score-card span {
    color: var(--c-text-soft);
    font-size: 0.8rem;
}

.review-bars {
    display: grid;
    align-content: center;
    gap: 8px;
}

.review-bars > div {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 10px;
}

.review-bars span,
.review-bars small {
    color: var(--c-text-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.review-bars em {
    height: 8px;
    overflow: hidden;
    border-radius: 99px;
    background: #e2e8f0;
}

.review-bars b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f59e0b, #1d6f61, #0ea5a0);
}

.review-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: #fff;
}

.review-avatar,
.review-product-thumb {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #ecfdf5;
    color: var(--c-primary);
    font-weight: 900;
}

.review-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.review-item-head strong {
    min-width: 0;
    color: var(--c-dark);
}

.review-item-head span,
.review-item small {
    color: var(--c-text-soft);
    font-size: 0.76rem;
}

.review-item h3 {
    margin: 8px 0 4px;
    font-size: 0.95rem;
}

.review-item p {
    margin: 6px 0 0;
    color: var(--c-text);
    font-size: 0.88rem;
}

.account-review-list .review-item {
    grid-template-columns: 56px minmax(0, 1fr);
}

.account-review-list .review-product-thumb {
    width: 56px;
    height: 56px;
}

.inline-review-form {
    display: grid;
    grid-template-columns: 110px minmax(180px, 1fr) auto;
    gap: 6px;
    max-width: 560px;
    margin-top: 8px;
}

.review-status-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--c-text-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.review-status-line i {
    color: #f59e0b;
}

.status-approved {
    background: #ecfdf5;
    color: #047857;
}

.status-rejected {
    background: #fef2f2;
    color: #b91c1c;
}

.status-pending {
    background: #fffbeb;
    color: #92400e;
}

.admin-wallet-form {
    display: grid;
    grid-template-columns: minmax(82px, 96px) minmax(92px, 120px) minmax(120px, 1fr) 34px;
    gap: 6px;
    align-items: center;
    min-width: 360px;
}

.admin-wallet-form .btn {
    width: 34px;
    height: 31px;
    padding: 0;
}

.payment-choice.wallet-payment:not(.disabled):hover {
    border-color: var(--c-primary);
    background: #ecfdf5;
}

.shipping-fallback-box,
.order-success-summary,
.shipping-admin-note {
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: #f8fafc;
}

.shipping-fallback-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
}

.shipping-api-box {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: #f8fafc;
}

.shipping-search-results,
.shipping-quote-options {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.shipping-destination-option,
.shipping-quote-option {
    width: 100%;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: #fff;
    color: var(--c-text);
    text-align: left;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.shipping-destination-option {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
}

.shipping-destination-option:hover,
.shipping-quote-option:hover,
.shipping-quote-option.active {
    border-color: var(--c-primary-light);
    background: #ecfdf5;
    transform: translateY(-1px);
}

.shipping-destination-option strong,
.shipping-destination-option span {
    display: block;
}

.shipping-destination-option span,
.shipping-quote-option small {
    color: var(--c-text-soft);
    font-size: 0.78rem;
}

.shipping-selected-destination,
.shipping-inline-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #ecfdf5;
    color: var(--c-primary);
    font-size: 0.82rem;
    font-weight: 800;
}

.shipping-inline-message {
    display: block;
    color: var(--c-text-soft);
    font-weight: 700;
}

.shipping-inline-message.danger {
    background: #fef2f2;
    color: var(--c-danger);
}

.shipping-quote-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
}

.shipping-quote-option strong,
.shipping-quote-option small {
    display: block;
}

.shipping-quote-option em {
    color: var(--c-primary);
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.shipping-fallback-box strong,
.shipping-fallback-box span {
    display: block;
}

.shipping-fallback-box span,
.shipping-helper-text {
    color: var(--c-text-soft);
    font-size: 0.8rem;
}

.shipping-fallback-box em {
    color: var(--c-primary);
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.shipping-helper-text {
    margin: 10px 0 0;
}

.order-success-summary {
    display: grid;
    gap: 0;
    overflow: hidden;
    text-align: left;
}

.order-success-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--c-border);
}

.order-success-summary > div:last-child {
    border-bottom: 0;
}

.order-success-summary span {
    color: var(--c-text-soft);
}

.order-success-summary strong {
    color: var(--c-dark);
}

.shipping-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.shipping-setting-panel {
    padding: 16px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    background: #fff;
}

.shipping-setting-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.shipping-setting-head > i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #ecfdf5;
    color: var(--c-primary);
}

.shipping-setting-head h3 {
    margin: 0 0 2px;
    color: var(--c-dark);
    font-size: 1rem;
}

.shipping-setting-head p {
    margin: 0;
    color: var(--c-text-soft);
    font-size: 0.8rem;
}

.shipping-admin-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    color: var(--c-text-soft);
    font-size: 0.84rem;
}

.shipping-admin-note i {
    color: var(--c-primary);
    margin-top: 2px;
}

@media (max-width: 991px) {
    .review-summary-grid {
        grid-template-columns: 1fr;
    }

    .admin-wallet-form {
        grid-template-columns: 1fr;
        min-width: 180px;
    }

    .shipping-settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .wallet-hero-card,
    .wallet-transaction-item,
    .review-item,
    .review-item-head {
        align-items: flex-start;
    }

    .wallet-hero-card,
    .review-item-head {
        flex-direction: column;
    }

    .wallet-hero-actions {
        width: 100%;
        justify-content: stretch;
    }

    .wallet-hero-actions .btn {
        flex: 1;
    }

    .wallet-transaction-item {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .wallet-transaction-item em {
        grid-column: 2;
    }

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

/* Custom dialogs, toasts, and validation feedback */
.store-dialog-open {
    overflow: hidden;
}

.store-dialog-layer {
    position: relative;
    z-index: 3000;
}

.store-toast-stack {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 3050;
    display: grid;
    gap: 10px;
    width: min(390px, calc(100vw - 28px));
    pointer-events: none;
}

.store-toast {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 11px 10px 11px 12px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.store-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.store-toast.closing {
    opacity: 0;
    transform: translateY(-8px);
}

.store-toast > i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ecfdf5;
    color: var(--c-primary);
}

.store-toast.success > i {
    background: #ecfdf5;
    color: var(--c-success);
}

.store-toast.warning > i {
    background: #fffbeb;
    color: #b45309;
}

.store-toast.danger > i {
    background: #fef2f2;
    color: var(--c-danger);
}

.store-toast span {
    color: var(--c-dark);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.35;
}

.store-toast button,
.store-dialog-close {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--c-text-soft);
}

.store-toast button:hover,
.store-dialog-close:hover {
    background: #f1f5f9;
    color: var(--c-dark);
}

.store-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3040;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.store-dialog-backdrop.show {
    opacity: 1;
}

.store-dialog {
    position: relative;
    width: min(430px, 100%);
    padding: 22px;
    border-radius: 8px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    background: #fff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.3);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.18s ease;
}

.store-dialog-backdrop.show .store-dialog {
    transform: translateY(0) scale(1);
}

.store-dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
}

.store-dialog-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 14px;
    background: #ecfdf5;
    color: var(--c-primary);
    font-size: 1.25rem;
}

.store-dialog[data-type="success"] .store-dialog-icon {
    background: #ecfdf5;
    color: var(--c-success);
}

.store-dialog[data-type="warning"] .store-dialog-icon {
    background: #fffbeb;
    color: #b45309;
}

.store-dialog[data-type="danger"] .store-dialog-icon {
    background: #fef2f2;
    color: var(--c-danger);
}

.store-dialog-copy h2 {
    margin: 0 32px 7px 0;
    color: var(--c-dark);
    font-size: 1.18rem;
}

.store-dialog-copy p {
    margin: 0;
    color: var(--c-text-soft);
    line-height: 1.55;
}

.store-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 20px;
}

@media (max-width: 576px) {
    .store-toast-stack {
        top: 10px;
        right: 10px;
        width: calc(100vw - 20px);
    }

    .store-dialog-actions {
        flex-direction: column-reverse;
    }

    .store-dialog-actions .btn {
        width: 100%;
    }
}
